Hi,
I have two classes, Edit1 and Edit2, name is the form field, when I submit
the form using Edit1, everything works, and when I tried Edit2, it generates
an exception:
java.lang.NullPointerException
Stack trace
• org.bfe.test.t5.pages.Edit.setName(Edit.java:52)
•
org.apache.tapestry.internal.bindings.PropBinding.set(PropBinding.java:67)
What's the difference here? if I @Persist usr, error goes away, then why I
don't have @Persist name in the Edit1's case? thanks.
A.C.
public class Edit1 {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name;
}
public class Edit2 {
private Usr usr;
public String getName() {
return usr.getName();
}
public void setName(String name) {
this.usr.setName(name);
}
--
View this message in context:
http://www.nabble.com/T5%3A-%40Persist-form-field-or-not--tf4669367.html#a13338569
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]