You could declare the person property as a bean.  Then, Tapestry will create
it for you.

-----Original Message-----
From: Ed Ross [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 16, 2006 10:40 AM
To: Tapestry users
Subject: Re: A generic edit page?

I'm having a bit of a time understanding some of Tapestry.

I have a class  MyTest{

publiic abstract getPerson();  // tapestry should do the rest - but doesnt
}

I have a html file with the following
<input jwcid="[EMAIL PROTECTED]" value="ognl:person.lastName"
maxlength="40" size="40" name="lastname" />


I thought tapestry would create an instance of person, but what happens,
tapestry creates the variable for person but not the object (still is null).
I can make this work by overriding the initialize method in MyTest and
checking for a null person, but that implies I have to create a setPerson
method etc.

thanks



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to