I got a simple login form. I am using <p:ajax>
to invoke a <p:blockUI>
(see this question).
<h:commandButton id="anmeldung_button"
action="#{benutzerAnmeldung.anmelden}" value="Anmelden"
styleClass="btn btn-info btn-sm">
<p:ajax process="@form" update="@form"/>
</h:commandButton>
<p:blockUI id="block" block=":anmeldung" trigger="anmeldung_button" />
I am using <o:highlight />
to highlight invalid inputs. This works fine.
It is working with a <f:ajax>
perfectly, too.
Apperently, it is not working with <p:ajax>
.
How can I achieve this?
onfocus="this.value=this.value"
in additon, to the cursor to the right position. – Shoup