Re: Beaneditor bug null property error

2012-01-03 Thread felipexz
Yes of course I agree. But when you have Annotated fields, it can be instatiated in other classes, can't be ? How I would know that it's not already been instatiated ? That's an annotated field. I'm justing asking.. as I said I'm a newbie. Best regards -- View this message in context: http://ta

Re: Beaneditor bug null property error

2012-01-03 Thread felipexz
Hi Sven.. I read it but the method on"Something" is a convention ? Sorry but I'm new on Tapestry so I don't know. I only found about the "onPrepare" in the wiki http://wiki.apache.org/tapestry/Tapestry5HowToUseForms So I think if its a convention ok, right. But if not I think it should be in the

Re: Beaneditor bug null property error

2012-01-03 Thread felipexz
Hi, now its working but I think you should add this "hint" in the documentantion and at the Tutorial. I know we need to initialize the class but where was my problem. The working code is: public class CreateMunicipio { @Property @Persist private Municipio municipio;

Re: Beaneditor bug null property error

2012-01-03 Thread felipexz
I'm using Tomcat 7 and java 1.7.. its a problem ? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditor-sending-null-object-tp5115312p5117434.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Beaneditor bug null property error

2012-01-03 Thread felipexz
Hi, I think the problem is not about Persistence... the problem is municipio is coming null. Anyway I tryed with session.merge.. anyway it says idMunicipio cannot be null. Best regards -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditor-sending-null-object-tp511531

Re: Beaneditor bug null property error

2012-01-03 Thread felipexz
I tryed.. after the beaneditor submit it should persist my object.. but it comes null. And I get this error: Caused by: org.hibernate.PersistentObjectException: detached entity passed to persist: com.icms.feam.entities.Municipio Best regards -- View this message in context: http://tapestry.104

Re: Beaneditor bug null property error

2012-01-03 Thread felipexz
Hi, thank you Thiago.. the code is this: public class CreateMunicipio { @Property private Municipio municipio; @Inject private Session session; @CommitAfter Object onSuccess() { session.persist(municipio);

Re: Beaneditor bug null property error

2012-01-03 Thread felipexz
I'm sorry but my questions are not cleary ? Best regards -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditor-sending-null-object-tp5115312p5117279.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Beaneditor bug null property error

2012-01-03 Thread felipexz
Hi people, good evening. I'm trying to develop an application using Beaneditor like the Tapestry tutorial but when I try to persist is in my create java page my entity that I @Inject is comming null. I tryed at first with eclipselink and now with hibernate using Session I got same problem. Would i