Problem:
I use p:captcha as indicated in showcase, and it fails validation EVERY time and says:
Captcha: Validation Error: Value is not valid.Captcha: 'sensing edivis' does not match the displayed text.
where 'sensing edivis' was my attempt of course. I attempted probably 50 words. Its clearly broken.
Version:
2.2.RC2 and tried 2.2.1 also
I know my public and private keys are good, because I made a quick sample PHP page using them and it works JUST fine.
My xhtml:
Code: Select all
<ui:define name="body">
<h:form>
<p:messages id="msgs" showDetail="true" showSummary="true" />
<p:captcha label="Captcha" theme="blackglass" publicKey="6Ld7pMESAAAAAHd1VihJkqPUXAJVwU3Cghc8fzrq"/>
<p:commandButton value="Test" ajax="false" />
</h:form>
</ui:define>
My web.xml:
Code: Select all
<!-- keys gotten from recaptcha -->
<context-param>
<param-name>primefaces.PUBLIC_CAPTCHA_KEY</param-name>
<param-value>6Ld7pMESAAAAAHd1VihJkqPUXAJVwU3Cghc8fzrq</param-value>
</context-param>
<context-param>
<param-name>primefaces.PRIVATE_CAPTCHA_KEY</param-name>
<param-value>6Ld7pMESAAAAAMhr5WSk5bcRrff8Y08NtDi8Buoq</param-value>
</context-param>