Bugs item #1357755, was opened at 2005-11-16 02:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1357755&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Igor Vaynberg (ivaynberg)
Assigned to: Igor Vaynberg (ivaynberg)
Summary: button does not use model properly

Initial Comment:
On behalf of Andrew Berman in wicket-user:

I have a form which has two buttons, one submit and one
cancel button.  They are constructed like so:

form.add(new Button("submit", new
Model(getString("label.submit", null))));
form.add(new Button("cancel", new
Model(getString("label.cancel", null))));

The model of the button is used as the value attribute,
and everything looks right when the form first comes
up.  However, when I click submit and there is a
validation error, the value attribute of the cancel
button gets erased/nulled out.  Am I doing something
wrong or is this a bug?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1357755&group_id=119783


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to