No offence, I think Hibernate validator is one great product. But does it need to be tightly integrated with Seam 2.0? Since in org.jboss.seam.core.validators, it's @Install(precedence=BUILT_IN)
The issue is if user chooses not to use Hibernate as the persistence strategy or Hibernate validator also if that library is not bundled in the appserver such as glassfish.
I know it's just a matter of adding hibernate-validator.jar in the classpath. But again if user doesn't use it, won't it just be useless? Will it be better if the precedence is not BUILT_IN? Or are there other thoughts regarding this?
Just my two cents
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061807#4061807
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061807
Hi all,
We have some code that uses the following:
| @In(required = false, value = "#{uiComponent['XXX']}")
|
Some methods in our bean are called when component XXX does not exist in the ViewRoot, which is why we use required = false.
However, this fails now in Seam 2, because the Sun RI throws an IllegalArgumentException from UIComponentBase:588. I imagine it worked with MyFaces because it returned null for invalid components rather than throwing exceptions.
I think Seam should catch this exception if doing uiComponent injection and required is set to false.
thanks,
Daniel.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061802#4061802
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061802
Hi all,
I've just done "injboss" example of the tutorial. In this example, the weaving for the J2EE application happens at loadtime.
And in the "dynamic AOP" example of the tutorial, I learned that JBoss can do dynamic weaving on normal JAVA application.
So, my question is if JBoss AOP can do dynamic weaving on J2EE application?
If it is possible, what should I do to let my J2EE application be prepared to be weaved? (using "prepare" like in "dynamic AOP" example"?) And, is that anything I need to be aware to make the weaving go through?
If it is not possible, does JBoss AOP have any other feature that can let me effect my J2EE application at runtime? That is, change the AOP aspect at runtime.
Thank you very much!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061797#4061797
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061797