Hi,
I am creating a form in the next format:
private abstract class EditForm extends Form{
public EditForm(String id, Poll poll) {
/*
* We wrap the poll bean with a CompoundPropertyModel, this
allows
* us to easily connect form components to the bean properties
* (component id is used as the property expression)
*/
super(id, new CompoundPropertyModel(poll));
....
}
}
My page has also some buttons in different forms that do all kind of things.
My problem begin when I create new Poll object (so the poll is empty) and
fill the fields of the poll, but before saving it I press on one of the
other buttons. It is rendering the page again so all the data that I enter
is lost.
Same problem occur when I edit poll and before saving it I press on one of
the other buttons. It is rendering the page again so all the data that I
change is lost.
Any idea will be appreciate.
Thanks,
Itay
--
View this message in context:
http://www.nabble.com/button-click-and-Form-with-CompoundPropertyModel-lose-its-data-tp20767616p20767616.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]