-
1. Re: ifNotBegunOutcome and non-action page loading
gavin.king Feb 12, 2006 9:37 PM (in response to andrew.rw.robinson)Property access cannot trigger the ifNotBegunOutcome, because a property access does not have an outcome :)
Only action methods have outcomes. -
2. Re: ifNotBegunOutcome and non-action page loading
andrew.rw.robinson Feb 12, 2006 9:53 PM (in response to andrew.rw.robinson)Is there a workaround? Could I cause a redirection on a property access using an interceptor? Could I tell from an interceptor if the accessed session bean has an active conversation or not?
-
3. Re: ifNotBegunOutcome and non-action page loading
gavin.king Feb 12, 2006 10:09 PM (in response to andrew.rw.robinson)i think the best approach is to use @Out(required=false)
-
4. Re: ifNotBegunOutcome and non-action page loading
andrew.rw.robinson Feb 12, 2006 10:16 PM (in response to andrew.rw.robinson)Tried that but I get errors later when using EL expressions to refer to child properties of my object which is of course null since the conversation method has not been invoked that creates my user object
-
5. Re: ifNotBegunOutcome and non-action page loading
andrew.rw.robinson Feb 12, 2006 11:46 PM (in response to andrew.rw.robinson)Okay, got a solution. I went back to using my "on-load" library from jsf-comp. For those interested, it is the "jsfExt" library at http://www.sf.net/projects/jsf-comp (http://sourceforge.net/project/showfiles.php?group_id=137466&package_id=168611)
I added a method "validateInConversation" that checks for my variables being instantiated and then changed the @Out(required=true) to required=false. Seems to work well with Seam as long as my phase listener is registered after the seam phase listener.