[jboss-user] [JBoss Seam] - Re: s:validateAll cumulates validation error messages when u
mustaghattack
do-not-reply at jboss.com
Wed Jun 6 05:40:39 EDT 2007
I have the same problem ... I'm using Sun JSF Impl
After a look in the code I found the problem : UIValidateAll add the validator in the getChildren() method. During the restore phase the StateManager restore the component tree structure before restoring the state. So the getChildren() method of UIValidateAll is called BEFORE restoring the state, when the components validator list is EMPTY.
During the restore state step all the previous ModelValidators are added. So each refresh will add a ModelValidator to the component resulting in duplicated validation during validation phase ...
I don't know if this is a known problem ? A workaround is to not use messages tag or as you said validate instead of validateAll.
Bruno
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051645#4051645
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051645
More information about the jboss-user
mailing list