2013-09-27 4 views
0

나는 다음과 같은 백업 빈 자바 코드 내 페이지JSF 아약스 상자가 선택의

<h:panelGroup id="rSelectionPanel" rendered="#{bean.admin}"> 
       <h4 class="header-line">Admin Panel</h4> 
       <h:panelGroup rendered="#{bean.selectionMode=='RS'}"> 
       <h:form styleClass="registerForm"> 

       <h:outputLabel value="End Line1?" rendered="#{not bean.endLine2}"></h:outputLabel> 
            <h:selectBooleanCheckbox id="endLine1" value="#{bean.endLine1}" rendered="#{not bean.endLine2}"> 
                <p:ajax event="change" update=":rSelectionPanel"></p:ajax> 
            </h:selectBooleanCheckbox> 

            <h:outputLabel value="End Line2?" rendered="#{not bean.endLine1}"/> 
            <h:selectBooleanCheckbox id="endLine2" value="#{bean.endLine2}" rendered="#{not bean.endLine1}"> 
             <p:ajax event="change" update=":rSelectionPanel"></p:ajax> 
            </h:selectBooleanCheckbox> 

            <h:inputTextarea id="newLine2Name" styleClass="form-poshytip" title="Line2 Name" rows="1" maxlength="50"  
            value="#{bean.newLine2Name}" validatorMessage="Too many characters" rendered="#{bean.endLine2}"> 
             <f:passThroughAttribute name="placeholder" value="Line2 Name" /> 
             <f:validateLength maximum="50" /> 
            </h:inputTextarea> 

            <h:commandButton styleClass="submit" value="Select Line" action="#{bean.confirmLineBy}"> 

            </h:commandButton> 
       </h:form> 
       </h:panelGroup> 
       </h:panelGroup> 

에서 다음 JSF 코드

public void confirmLineBy(){ 
    getLog().debug("Entering confirmLineBy...."); 
    ConfirmLineByRequest request = new ConfirmLineByRequest(); 
    request.setPage(getPage()); 
    request.setEndLine1(endLine1); 
    if(isEndLine2())request.setNewLine2Name(newLine2Name); 
    request.setEndLine2(isEndLine2()); 
    ConfirmLineByResponse response = LineService.confirmLineBy(request, null); 
    nextUnconfirmedLines.removeAll(nextUnconfirmedLines); 
    setConfirmedLines(response.getConfirmedLines()); 
    setLine2s(); 
    setAddedLine(false); 
    getLog().debug("CONFIRMED LINES SIZE: "+confirmedLines.size()); 
    getLog().debug("Exiting confirmLineBy...."); 
} 

에있는 명령을 클릭하지도, 그것은 제출하지 않은 제출하지 벌금. 그러나 두 확인란 중 하나를 선택하면 bean.confirmLineBy()도 호출하지 않습니다.

아이디어가 있으십니까?

답변

0

~에서 변경되었습니다. 지금 정렬했습니다.

관련 문제