Re: BeanEditForm Component in Tapestry 5

2008-12-13 Thread SergeEby
The issue here is described in this bug: https://issues.apache.org/jira/browse/TAP5-414 /Serge nille hammer wrote: > > Sorry I messed up the code example corrected version: > public class Persion { > ... > @Id > @GeneratedValue(strategy = GenerationType.AUTO) > @NonVisual //<-- that exc

Re: BeanEditForm Component in Tapestry 5

2008-12-13 Thread nillehammer
Sorry I messed up the code example corrected version: public class Persion { ... @Id @GeneratedValue(strategy = GenerationType.AUTO) @NonVisual //<-- that excludes this member from the generated // BeanModel. This could also be done manually whit "exclude". // (see BeanModel for furth

Re: BeanEditForm Component in Tapestry 5

2008-12-13 Thread nillehammer
With BeanEditForm Person need not be instanciated in onActivate. That is done "automagically" by the component itself. The Exception surely refers to the id. Id being the only number in your Person class. Although I do not know, why that would be a problem for Tapestry, you surely would not want t

Re: BeanEditForm Component in Tapestry 5

2008-12-12 Thread Otho
You obviously left out some things for brevity, but I can't see "Person" anywhere instantiated? public class PersonForm { @Persist @Property //no need for accessors private Person person; Object onActivate() { if(person==null) person = new Person(); return null; } Object onSuccessFr

Re: BeanEditForm Component

2008-06-16 Thread Marcelo Lotif
n" <[EMAIL PROTECTED]> > To: "Tapestry users" > Sent: Sunday, June 15, 2008 5:29 PM > Subject: Re: BeanEditForm Component > > > BeanEditForm is just a BeanEditor component with a submit button. > Please see BeanEditForm.tml in the Tapestry 5 source core. >

Re: BeanEditForm Component

2008-06-15 Thread tengxh
Do you mean that i need custome the BeanEdit Compoent? - Original Message - From: "Shing Hing Man" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Sunday, June 15, 2008 5:29 PM Subject: Re: BeanEditForm Component BeanEditForm is just a BeanEditor component wi

Re: BeanEditForm Component

2008-06-15 Thread Shing Hing Man
BeanEditForm is just a BeanEditor component with a submit button. Please see BeanEditForm.tml in the Tapestry 5 source core. If you need to add your own buttons, one way is to use BeanEdit component. Shing Home page : http://www.lombok.demon.co.uk/ --- On Sun, 15/6/08, tengxh <[EMAIL PROTEC