2011-03-11 3 views
0

페이지가로드 될 때 내 a4j : commandButton이 렌더링되지 않으면 작동하지 않습니다. 다음 시도 : 사용자가 설정 한 경우a4j : pageload에서 렌더링되지 않으면 commandButton이 작동하지 않습니다.

<h:form> 
    <h:selectBooleanCheckbox value="#{showpnl}"> 
     <a4j:support event="onclick" reRender="pnl" /> 
    </h:selectBooleanCheckbox> 

    <a4j:outputPanel id="pnl"> 
     <a4j:outputPanel rendered="#{showpnl}"> 
      <h:inputText value="#{text}" /> 
      <a4j:commandButton value="Go" reRender="out" /> 
     </a4j:outputPanel> 
    </a4j:outputPanel> 

    <h:outputText id="out" value="Text: #{text}" /> 
</h:form> 

의미가 있습니다 : <a4j:outputPanel rendered="true">을 7 행에! 왜?

답변

0

# {showpnl}이 (가) 버튼을 클릭 할 때 'true'로 표시되는지 확인하십시오. 그렇지 않으면 버튼이 처리되지 않습니다.

관련 문제