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

Reply via email to