6
rendered
의 값을 h:commandLink
의 JavaScript로 설정할 수 있습니까?JavaScript에서 렌더링 된 속성의 값을 설정할 수 있습니까?
<h:commandLink id="profileLink" rendered="#{bean.enable}">
rendered
의 값을 h:commandLink
의 JavaScript로 설정할 수 있습니까?JavaScript에서 렌더링 된 속성의 값을 설정할 수 있습니까?
<h:commandLink id="profileLink" rendered="#{bean.enable}">
아니오 rendered
특성되지 클라이언트 측위한 서버 측이다. 클라이언트 측의 일반 HTML/JS에서는 CSS display
속성을 토글 할 수 있습니다.
// Get element by client ID.
var element = document.getElementById('formid:buttonid');
// Hide it.
element.style.display = 'none';
// Show it.
element.style.display = 'inline'; // or 'block' if it's a HTML block element