This content has been marked as final.
Show 2 replies
-
1. Re: validation
iabughosh Aug 1, 2011 2:56 AM (in response to apostle)you can use validationGroups to solve this :
@NotEmpty(message="{MSG}", groups={gourps.EditGroup.class})
yourBeanProperty
xhtml :
<f:validateBean validationGroups="gourps.EditGroup">
<h:inputText id="" value="#{bean.yourBeanProperty}"/>
</f:validateBean>
where EditGroup is an Empty Inteface
regards.
-
2. Re: validation
apostle Aug 1, 2011 12:07 PM (in response to iabughosh)Hi Ibrahim,
thank you for your response, but I'm not sure I got the idea. Could you please explain it in more details. Lets assume a page has few inputs and two buttons. When a user pushes the first button, data is going to be stored without validation and if user pushes the second button, data is validated and stored. How the page would look like in this case? Thanks