2012-06-19 3 views
1

내 페이지에서 galleria가 코드에 captcha를 추가하기 전에 정상적으로 작동하고있었습니다.Primefaces galleria가 xhtml에 captcha를 추가 한 후에 표시되지 않습니다.

코드에 captcha를 추가 한 후 galleria가 페이지에 표시되지 않습니다.

나는 captcha를 다른 형식으로 유지하려했지만 여전히 작동하지 않습니다.

보안 문자가 올바르게 작동합니다.

나는이 문제가 무엇인지 전혀 몰랐습니다.

<h:form id="frmTest"> 
    <center > 
    <br/><br/> 
    <table width="70%" border="0">  
     <tr> 
      <td width="70%" align="center"> 
       <p:panel > 
         <p:galleria value="#{LoginBean.imgList}" 
            var="image" effect="slide" 
            effectSpeed="1000" 
            panelWidth="500" panelHeight="300" 
            frameWidth="100" frameHeight="70" 
            rendered="true"> 
           <p:graphicImage value="../resources/images/{image}"/> 
         </p:galleria> 
       </p:panel> 
      </td> 
      <td width="30%"> 
        <p:panel> 
          <p:commandButton id="btnShowCaptcha" 
              process="@form" 
              onclick="captchaDlgWar.show()" 
              value="Show Captcha"/> 
        </p:panel> 
      </td> 
     </tr> 
    </table> 

    </center> 

    <p:dialog widgetVar="captchaDlgWar" id="capchaDlgId" 
      hideEffect="explode" showEffect="clip" 
      modal="true" closable="true" resizable="false" 
      header="Prove you are human..." width="360" height="190"> 

     <h:panelGrid columns="1"> 

       <p:captcha label="Captcha" 
           id="captchaId" 
           language="tr" 
           required="true"/> 
       <p:commandButton id="btnContinue" 
           ajax="false" 
           value="Continue" 
           action="#{MyBean.onContinueAction}"/> 

     </h:panelGrid> 
    </p:dialog> 
</h:form> 

에서 myBean

public String onContinueAction() { 

    RequestContext.getCurrentInstance().execute("captchaDlgWar.hide()"); 
    return "somePage.xhtml"; 

} 

Thnx.

답변

0

당신의 form의 당신의 dialog 외부를 복용 시도하고 내부에 또 다른 form를 추가하려면 대화

그래서 당신은 하나의 내부 갤러리아와 대화하고 dialog 안에 다른 대화 당신이 중첩되지 할 수 있도록이있을 것이다 forms

또한
<h:form.... <p:galleria...</h:form> 

<p:dialog><h:form.... <p:captcha ...</h:form></p:dialog> 

나는 p:panelGridPrimefaces PanelGrid 대신

+0

당신이 화재 버그 콘솔에서 오류를 볼 수 있습니까 테이블의 사용하려고거야? – Daniel

+0

감사합니다. Daniel 저는 솔루션을 사용해 보았지만 여전히 효과가 없습니다. 또한 버튼 클릭시 갤러리아를 업데이트하려고합니다. 버튼 클릭 갤러리아에서 업데이트 후 나타납니다. 대화 상자에서 '계속'버튼을 클릭하면 사라집니다. –

+0

을 삭제하려고 시도하거나 을 사용해보세요.이 기능을 사용해보세요 @AkshayRaut –

관련 문제