[jboss-user] [JBoss Seam] - Re: JSF/Seam Binding and Nested Classes
You are ABSOLUTELY RIGHT. I am never creating daughter, I have just a reference. My code should be: | @Entity | @Name("mother") | public class Mother { | |private Daughter daughter = new Daughter(); | |... setters and getters | } | When poor old Seam tried to set the values for daugher it found no target object. Thank you very very much. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121541#4121541 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121541 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSF/Seam Binding and Nested Classes
Do you ever create a Daughter object? I think you may need to post more code, and details on what fails. It looks like what you are trying to do should work, but it's not completely clear from what you've posted so far. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121529#4121529 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121529 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSF/Seam Binding and Nested Classes
In the first code snippet please ignore the annotation @Stateful. It is just a typo (it s not in my code). My code is just: | @Entity | @Name("mother") | public class Mother { | |private Daughter daughter; | |... setters and getters | } | I found a workaround defining Daughter as a Seam component: | @Name("daughter") | public class Daughter { | | private String someprop; | | ... setters and getters | | } | and then using it as a separate component and asociating it with mother in Java: I mean instad of using: | | I use: | | and then in the action bean: | | @Stateful | public class ActionBean { | | |@In |private Mother mother; | |@In |private Daughter daughter; | |public void persistMother () { | | mother.setDaughter(daughter); | | em.persist (daughter); | |} | | | } | It is not elegant but at least it works. Nevertheless I would like to know if there is any bug in the Expression Language interpreter or if I am doing something wrong. Accortding to JSF specification the first sintax I mention should work. any comments? Thanks in advnace. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121528#4121528 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121528 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSF/Seam Binding and Nested Classes
Could you find the answer? I am stuck with the same problem. Just in case the problem is not clear: | @Stateful | @Entity | @Name("mother") | public class Mother { | |private Daughter daughter; | |... setters and getters | } | | and the nested class is: | public class Daughter { | | private String someprop; | | ... setters and getters | | } | | When I try to put something in daughters property someprop | | the contents of the html field are not transfered to someprop and any action invoked from the page is not even executed. It seems that the lifecycle ends when the framework tries to transfer values from the request to the properties inside the object inside the EJB. I am using seam 1.2.1 and quite desperated. Thaks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121467#4121467 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121467 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSF/Seam Binding and Nested Classes
Are the "instance variables" you speak of annotated @In? Also, maybe you could clarify what "parent" is. Is it one of the instance variables you're talking about? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119365#4119365 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119365 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user