the xhtml looks fine when using JSF2. You open a form, use input fields, message and an ajaxified commandButton. You can skip rerendering qw
, usernameMessage
and passwordMessage
- they are already part of @form.
h:messages
is outside the form, which shouldn't be from any harm. Possibly it's a special problem with the myFaces-implementation or you just lost a connection somehow - JSF-wise you should be safe.