Getting a validation message raised in an Action to appear in the GUI next to the right field?
| if (usernameExists) { | //facesMessages.addFromResourceBundle(FacesMessage.SEVERITY_WARN, "username", "user_create_username_exists"); | facesMessages.addFromResourceBundle("submitAttempt", "user_create_username_exists"); | return null; | } else { | | <div align="right"> | <ice:outputLabel for="username" value="#{messages.label_username}"/> | </div> | <s:decorate> | <ice:inputText id="username" value="#{user.username}" | required="true" title="#{messages.hint_username}" /> <!-- partialSubmit="true" - Don't use yet as something eats the input focus [Bug with IceFaces team]--> | </s:decorate> | <ice:outputText value="#{messages.tag_mandatory}" styleClass="mandatory" /> | <ice:outputText value=""/> | <div align="left"> | <ice:message errorClass="error" for="username" /> | </div> | <ice:outputText value=""/> | | <ice:panelGrid columns="2" width="100%"> | <div align="right"> | <ice:commandButton action="#{userRegistrationManager.cancel}" value="#{messages.button_cancel}" immediate="true" type="submit" /> | <ice:commandButton id="submitAttempt" type="submit" value="#{messages.button_create}" action="#{userRegistrationManager.processUserDetails}" styleClass="button" /> <!-- disabled="#{!user.readyForSubmission}" --> | </div> | </ice:panelGrid> | | <ice:panelGrid columns="1"> | <ice:message infoClass="error" for="submitAttempt" /> | </ice:panelGrid> | In the above code segment I want to see the error message with the username (as per the commented out line) field as apposed to the button... however how do you make it appear? The severtity appears to have no effect. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995995#3995995 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995995 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user