Hi Thorsten,
Yes, you just need to make sure your search field is not wrapped in s:validate or
s:validateAll tags. There was somebody else with this problem a few days ago, and they
had s:decorate with the edit.xhtml template which includes the validate tags.
Hibernate validation will only occur at the UI level if your fields are wrapped in these
tags. It will also occur if you try to persist the entity, but I imagine you aren't
doing this when using it as a search object.
hope this helps,
Daniel.
"SunFire" wrote : I have a User class which has an email string field annotated
with @NotNull @Email.
| I used seam-gen to generate everything for it. UserList, UserHome, etc. Now when I try
to search for a username in the generated UserList.xhtml I get an error "must be a
well-formed email address". So I guess that even for the object used to hold the
search parameters validation is enabled. Is it possible to turn this off? Don't think
it makes any sense at all to validate search strings. Now I could write an extra class to
only hold the search parameters but switching validation off for the search parameter
object would seem nicer to me.
|
| Thanks, Thorsten
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115444#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...