-
1. Re: Raise exception after calling stored procedure
nickarls Apr 4, 2008 7:16 AM (in response to wvreeven)Well, they don't get redirected automagically?
Catch the exceptions or error conditions and navigate them back to the same page and only go to the summary page if all is ok
-
2. Re: Raise exception after calling stored procedure
wvreeven Apr 4, 2008 7:39 AM (in response to wvreeven)Well, the redirecting is what I don't know how to do. I guess I am too new to Seam. Should I register my own event and redirect our users by raising that event? Or should I use server side validation? Or is there another option?
Thanks, Wouter
-
3. Re: Raise exception after calling stored procedure
wvreeven Apr 14, 2008 3:39 PM (in response to wvreeven)OK since I am using JBoss Tools to generate all classes and pages I only needed to modify the navigation rules for the page. They are stored in an accompanying .xml file and I solved it like this
<navigation from-action="#{customerHome.update}"> <rule if-outcome="updated"> <end-conversation/> <redirect view-id="/Customer.xhtml"/> </rule> </navigation>
If I return
updated
when the stored procedure finishes correctly, I get redirected to the Customer.xhtml page. If I return anything else when the stored procedure doesn't finish correctly, I stay in the same page and see the faces message.Thanks, Wouter
-
4. Re: Raise exception after calling stored procedure
samuelesanvito Jul 3, 2009 2:24 PM (in response to wvreeven)Hi,
I can't find documentation on a standard way to call procedures from a EJB3 architecture.
Do I need an Entity Bean and a Session Bean?
I think I'll need something different than an Entity, but what?Thank you