[jboss-user] [JBoss Seam] - Re: Is @BypassInterceptors going to be removed for Validator

pete.muir@jboss.org do-not-reply at jboss.com
Sun Feb 17 13:57:12 EST 2008


As we discussed no - as JSF controls the lifecycle, not us.

Actually, Max Ross and I talked about this after you asked about it - of course, you can unit test this stuff, you just have to be careful about not calling Component.getInstance in your unit test   - move out your validation logic like

public boolean safeValidate(SeamComponent1 cmp1, SeamComponent2 cmp2) {

Test this method rather than the validate method, and pass in null or the correct object or...
   

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

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



More information about the jboss-user mailing list