The link http://jumpstart.doublenegative.com.au/jumpstart/examples/easycrud
has been replaced by:

        
http://jumpstart.doublenegative.com.au/jumpstart/previews/easycrud/persons

On 10/05/2011, at 3:11 AM, Josh Canfield wrote:

> You are persisting using flash.
> 
> I think you're workflow goes like this: Your page renders you store
> new Person() in the session. When you post the form it reads and
> removes it from the session. When you render after the post it's no
> longer in the session and you get another new Person() in
> onPrepareForRender.
> 
> You might start with jumpstarts crud examples.
> 
> http://jumpstart.doublenegative.com.au/jumpstart/examples/easycrud
> 
> Josh
> 
> On Mon, May 9, 2011 at 11:00 PM, Angelo C. <angelochen...@gmail.com> wrote:
>> Hi,
>> 
>> I got a bean Person with a field name, when submit, the name is always null,
>> why?
>> 
>> java class:
>> public class EditPerson {
>> 
>>    @Persist("flash")
>>    @Property
>>    private Person person;
>> 
>>    Object onActivate() {
>>        if (person != null)
>>            System.out.println(person.getName());
>>        return null;
>>    }
>> 
>>    void onPrepareForRender() {
>>        if (person == null)
>>            person = new Person();
>>    }
>> }
>> 
>> tml:
>> <form t:type="form" >
>>        <label for="name">Name</label>
>>    <input t:type="textfield"  value="person.name"  />
>>     <input type="submit" t:type="submit" name="submit" />
>> </form>
>> 
>> 
>> --
>> View this message in context: 
>> http://tapestry.1045711.n5.nabble.com/t5-edit-a-bean-without-beaneditform-tp4382074p4382074.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
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


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

Reply via email to