views:

149

answers:

1

Hey there,

My JSF web application uses PrimeFaces Captcha. It works properly under Firefox and IE, but it does not show under Chrome. I don't get any errors at page generation, but if I try to post the data with the invisible Captcha, the following error message is shown:

j_idt25:j_idt32: Validation Error: Value is not valid.

There is no element with id 'j_idt32' in the XHTML source code. I checked this with both browsers.

Any help would be appreciated, thanks in advance! Daniel

+1  A: 

The following can be originally found in the PrimeFaces User Manual FAQ:

With facelets some components like charts do not work in Safari or Chrome but thereʼs no problem with Firefox.

The common reason is the response mimeType when using with PrimeFaces with facelets. You need to make sure responseType is text/html. With facelets you can use the <f:view contentType=”text/html”> to enforce this setting.

This solved my problem.

wheelie