This content has been marked as final.
Show 3 replies
-
1. Re: Validation provided by Seam
pmuir Jan 18, 2008 5:03 PM (in response to sebastiendeg.sebastien.degardin.gmail.com)You can use:
InvalidValue[] invalidValues = Validators.instance().getValidator(entity).getPotentialInvalidValues(property, value);
-
2. Re: Validation provided by Seam
sebastiendeg.sebastien.degardin.gmail.com Jan 18, 2008 5:30 PM (in response to sebastiendeg.sebastien.degardin.gmail.com)Thanks Pete,
-
3. Re: Validation provided by Seam
navintamil Aug 8, 2009 7:14 AM (in response to sebastiendeg.sebastien.degardin.gmail.com)hi ,
in seam , using validator property for done validation process.
for example , let us consider form have one text box that only allowed alphanumeric values . just u can write code at ur home or list java file . and error message always come from common resource bundle file .llike
xhtml file
-----------<h:inputText value="#{empmasterHome.instance.designationName.designatinName}" validator={empmasterHome.validate}/>
java file
-------------
public void validate(FacesContext context,UIComponent component,Object value)throws Exception
{
write ur own code
}