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;

        @Inject
        private Session session;

        void onPrepare() throws Exception {
                municipio = new Municipio();
        }

        @CommitAfter
        Object onSuccess()
        {
                session.merge(municipio);
                return "";
        }

}

Now it works. Could you add this onPrepare() in the Tutorial please ? Maybe
more people can have the same question.

Best regards

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Beaneditor-sending-null-object-tp5115312p5117493.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to