[jboss-user] [JBoss Seam] - Re: Documentation : Seam Issues example
I think it is this one : http://www.jboss.com/index.html?module=bbop=viewtopict=105946 It is mainly about returning to a calling page that is not part of any long running conversation. Anyway, Christian's code example mentions the nested conversation case, in which redirecting to the calling page seams trivial. Well... not for me. I'll dig this further and come back to you. Thanks, Jean View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044376#4044376 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044376 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Documentation : Seam Issues example
Hi, I'm still quite new to Seam and overwhelmed by how conversations work and the multiple ways to play with them. I'm trying to figure out how to implement a use-case (common to several use cases), using primarily Seam Gen. I've seen that the issue example makes an extended use of conversations, but the reference manual still lacks this example's explanations. (and I can't figure out what happens and why by myself) Since my posts on nested conversations remain unanswered, I wondered when this part of the documentation would be available. Thanks in advance, Jean PS: by the way, the issue example crashes when I select Browse Projects from the home page in the conversation selector... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4039272#4039272 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4039272 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Documentation : Seam Issues example
I meant jlemoine wrote : to implement a include use-case (common to several use cases) that lets you go back to the calling page of the parent use case automatically. Do you have an idea when the Seam Issue example will be documented? Thanks, Jean View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4039410#4039410 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4039410 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Handling nested conversations [newbie]
Hi, this is quite basic but I can't find resources on that : I'm running into trouble with conversation contexts. Imagine the following -classic- scenario involving State and Country entities: 1 - a user initiates the Create State process, and searches for the adequate Country in a drop down menu. 2 - since the Country does not exist yet, he clicks the New Country button to launch the Create Country child process. 3 - the country created, the app resumes the Create State process, and why not pre-selects the newly created country in the (updated) menu. This is so basic that I couldn't find anything on that. The Seam Issue example handles sub processes, but is not self explanatory and doesn't work (conversation ended...). I've seen that the login procedure does that, but I can't imagine putting interceptors everywhere. Last, I've browsed the javadoc and found stuff like Conversation.endAndRedirect() but I really don't know how to use that. I've poked around with @Begin(nested=true) annotations and the like, without success (conversation ended ... at best). Is there any simple tutorial for that use-case, guideline, best practice?... Thanks in advance, Jean View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031970#4031970 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031970 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam-gen generated entity and @Embeddable class problem
Hi, I'm a total newbie with Seam/Hibernate, and I encounter a problem as I play with my first Seam-gen generated Entity. (1.1.0CR1 + adequate jbossAS) I would like to create a Country entity, that has an ISO code, an Int'l spelling name and a local name. Just like JP, Japan, ??. Since I plan to have a lot of stuff with this kind of Int'l / local names, I've tuned the Country class like this : @Entity(country) | public class Country ... { |... |// private String name; |private Name name; |... | |public Name getName(){ | return this.name; |} |public void setName(Name name){ | this.name = name; |} | } This seems OK regarding Hibernate's ref. manual. Then, I wrote the following Name class : @Embeddable | public class Name{ | private String local; | private String intl; | | // getters and setters | ... | } I've also adapted the default countryList.xhtml and country.xhtml accordingly. So far so good. Now I seam-explode my project and start jbossAS. I access the default countryList page (empty), click Create, type in the data, and save. The page redraws and shows beside the 2 names (translated from the French error messages) : intl : error while updating the data local : error while updating the data So, I manually create a row in the DB (MySQL), and go back to the country list. It displays the new row. Good. So why can JSF/SEAM/Hibernate access the country.name.local data in countryList.xhtml, but fails to update countryHome.instance.name.local in country.xhtml ? BTW, there's just no error message in jboss's console. I have tried without the Name class, and works perfectly. But I'd prefer the @Embeddable class solution. Any idea ? Thanks for your help. It would be cool I get it to work before I go on exploring entity associations... Regards, Jean View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3990440#3990440 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3990440 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user