Primefaces Captcha disappears or doesn't update/refresh on invalid input?

后端 未结 4 1102
攒了一身酷
攒了一身酷 2021-01-13 10:33

I have the following piece of code inside an h:form


    

        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-13 10:52

    You are not going to like my answer, but this is not a bug.

    Primefaces Issue 1642 is marked as Won't Fix.

    The Primefaces Captcha utilizes Recaptcha, which does not and cannot support Ajax refresh. You must do a full page postback for this component to work properly. Keep in mind this also affects the ability to use the Captcha in components that require Ajax refresh of a panel, such as a Tab View or Wizard component.

    EDIT: On another note, it might be possible to use the captcha component within an