[JBoss Seam] - @End conversation and @Begin new one on same Action
by ekusnitz
Is there a way to @End the previous conversation and @Begin a new one from the same action? We have an application with a list of nodes on the left side and the capability of editing them one at a time on the right. So when one is selected, we want to be in a conversation, but if the user selects a different node we want to end it and start a new one. Similarly, the user may begin a series of edits and then save or cancel; we would like to end that conversation and begin a new one within a single action. I don't see a way of doing it; you can't annotate the same action with both @Begin and @End (no conversation will be created).
If you use nested=true you wind up with the possibility of having multiple nested unended conversations. If you use just a straight Begin, you get an error about trying to start a conversation from within a conversation. It seems like there should be an endPrevious=true option.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991128#3991128
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991128
18 years, 1 month
[JBoss Seam] - is hibernate.cfg.xml mandatory in examples of Seam 1.1 CR2 ?
by cfranky
I have installed Seam 1.1 CR2 and I have tried to deploy the registration example in the JBoss 4.0.5 GA server but I got the following exception:
| ....
| 16:49:56,484 INFO [Lifecycle] starting up: org.jboss.seam.core.hibernate
| 16:49:56,484 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
| 16:49:56,484 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
| 16:49:56,500 ERROR [[/seam-registration]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
| org.hibernate.HibernateException: /hibernate.cfg.xml not found
| at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147)
| ....
|
If I add a convenient hibernate.cfg.xml file to the jboss-seam-registration.ear, the application is sucessfully deployed.
Can anyone help me to clarify if the hibernate.cfg.xml file is now mandatory in the new Seam version (Seam 1.1 CR2) ?
Thanks
Maria Consuelo Franky
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991125#3991125
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991125
18 years, 1 month