This content has been marked as final.
Show 2 replies
-
1. Re: Doubts on the first example of Seam in Action
swd847 Mar 19, 2010 10:31 PM (in response to asriel)1)
If the action listener returns void then it the app will either follow the appropriate navigation rule defined in pages.xml or alternatively stay on the current page.2) If the persist fails then the em is invalid, and needs to be discarded.
-
2. Re: Doubts on the first example of Seam in Action
asriel Mar 20, 2010 12:49 AM (in response to asriel)Thank you for your reply.
Stuart Douglas wrote on Mar 19, 2010 22:31:
1)
If the action listener returns void then it the app will either follow the appropriate navigation rule defined in pages.xml or alternatively stay on the current page.That method is called from a view component (an UI Command) as an Action, not an ActionListener (as you wrote in your reply). Does this change something?
2) If the persist fails then the em is invalid, and needs to be discarded.Could you please elaborate on that?
(e.g., What happens in the event of a failure to the flow of execution? Is an exception raised? And last but not least: is there a way in that case to catch the error or made a check in order to show an error Faces Message to the user?)Thank you again.