1

我尝试在 Roo 生成的 xhtml 中添加 recaptcha:

<p:dialog id="createDialog" header="#{messages.label_create} Person" modal="true" widgetVar="createDialogWidget" dynamic="true" visible="#{personBean.createDialogVisible}" resizable="true" maximizable="true" showEffect="fade" hideEffect="explode">
  <p:ajax event="close" update=":dataForm:data" listener="#{personBean.handleDialogClose}" />
  <p:outputPanel id="createPanel">
    <h:form id="createForm" enctype="multipart/form-data">
      <h:panelGrid id="createPanelGrid" columns="3" binding="#{personBean.createPanelGrid}" styleClass="dialog" columnClasses="col1,col2,col3" />

      <p:captcha id="createReCaptcha" theme="white"/>

      <p:commandButton id="createSaveButton" value="#{messages.label_save}" action="#{personBean.persist}" update="createPanelGrid :growlForm:growl" />
      <p:commandButton id="createCloseButton" value="#{messages.label_close}" onclick="createDialogWidget.hide()" type="button" />
    </h:form>
  </p:outputPanel>
</p:dialog>

并且没有显示recaptha....我错在哪里?

4

1 回答 1

1

从您的 p:dialog 中删除 dynamic="true"

于 2013-02-15T09:01:42.237 回答