在我的jsf表单页面中,我们也使用了验证码,但是我们无法获得对java类的验证码响应
在我的Jsf表单页面中,我们有两个字段,一个上传文件
请检查以下代码
<h:form>
<p:outputLabel value="Issue Title:*" />
<p:inputText value="#{user.title}" id="title" label="IssueTitle "
requiredMessage=" title can not be left blank" required="true" autocomplete="off"
/>
<p:outputLabel value="Your Name:*" />
<p:inputText id='yourname' value="#{user.yourname}" label="yourname" required="true"
requiredMessage=" name can not be left blank" autocomplete="off" >
<f:validateRegex pattern="[a-zA-Z\s]+" />
</p:inputText>
<h:outputText value="Attach a File: " />
<p:fileUpload value="#{user.uploadedFile}" dragDropSupport="false" mode="simple"
sizeLimit="100000" allowTypes="/(\.|\/)(gif|jpe?g|png)$/" />
<div class="g-recaptcha" data-sitekey="6LccWVwUAAAAACdLte-tyGBpx7664H6u_0my6COM" style="margin-left:103%;"></div>
<br/><br/><br/><br/><br/><br/><br/><br/>
<p:commandButton ajax="false" value="Create Ticket" actionListener="#{user.submit}" styleClass="ui-priority-primary" update="CMSForm">
<f:param name="i" value="0" />
</p:commandButton>
</div>