[jboss-user] [JBoss Seam] - Re: Can <s:validate> be used with facelets compositions?

petemuir do-not-reply at jboss.com
Fri Jul 21 04:54:15 EDT 2006


AFACIS no.  The ModelValidator in Seam uses ValueBinding.getExpressionString() to work out the seamComponent.property (i.e. getName() on the seam component user) and hence get the validator to use. When using a facelets source tag the ExpressionString is not a seamComponent.property but 'fieldValue' (which has no validator attached).  There is no way (AFAIK) of working up the chain of EL expressions to get the root one.

(Btw. My solution isn't really a patch, just a replacement component, so rather than doing s:validate you do model:validate. There is no patching of Seam source required, just adding another jar to the library directory.)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959830#3959830

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959830



More information about the jboss-user mailing list