Thanks for your reply and I will think about what you said.
Nevertheless I wish that the main Seam players recognised the importance of the
issue we are discussing, as I don't think that anyone using facelets would give
up its composition facilities in order to use s:validate.
View the
There was some discussion on the facelets list a couple of days ago about this.
A couple of possibilities were mentioned, and Jacob Hookom said that he hoped
that future versions of EL would allow this to work. When I have a moment I
will see if I can get either of the possibilities to work.
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
I've raised this before and there didn't seem to be much interest in fixing it.
I modified the ModelValidator class to take a property attribute. If the
property attribute is supplied it is used instead of the value attribute. I
also use the 'property' as the key for localised labels for
Getting a permanent long-term solution into the Seam codebase is a great
solution, but for me patches outside the Seam codebase are not a solution.
Are we sure that there is no way around the problem without changing Seam?
View the original post :