How to reuse the EditPerson from
http://tapestry.apache.org/hibernate-user-guide.html as also create.  

public class EditPerson
{
  @Persist("entity")
  @Property
  private Person person;

  @InjectPage
  private PersonIndex personIndex;

  void onActivate(Person person)
  {
    this.person = person;
  }

  Object onPassivate() { return person; }

  @CommitAfter
  Object onSuccess()
  {
    return personIndex;
  }
}

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Reuse-Edit-Create-tp5643323p5643323.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