i need to display the validation and conversion error on modal panel, i am
using seam decorate for display this error message, i need to prevent the modal panel disappear when validation error on the modal panel. i am not display the global error message , the validation error are displayed to that particular component, and also validation also occurs when we move field to field.
i give my sample code here
please any one help me
<rich:modalPanel moveable="false" resizeable="false" id="login" height="270" width="500" zindex="2000"> <f:facet name="header"> <h:outputText value="Login Form" /> </f:facet> <f:facet name="controls"> <a href="javascript:Richfaces.hideModalPanel('login')">X</a> </f:facet> <p>Please login using any username and password</p> <a:form id="mpform"> <s:decorate id="siIdDecorate" template="edit.xhtml"> <ui:define name="label">Username:</ui:define> <h:inputText id="siId" value="#{identity.username}" required="true"> <a:support event="onblur" reRender="siIdDecorate"/> </h:inputText> </s:decorate> <s:decorate id="passwordDecorate" template="edit.xhtml"> <ui:define name="label">Password:</ui:define> <h:inputSecret id="password" value="#{identity.password}" redisplay="true" required="true"> <a:support event="onblur" reRender="passwordDecorate"/> </h:inputSecret> </s:decorate> <a:commandButton value="Login" type="submit" action="#{identity.login}" /> <a:commandButton value="Cancel" immediate="true" onclick="javascript:Richfaces.hideModalPanel('login')"/> </a:form> </rich:modalPanel>