Bugs item #1291738, was opened at 2005-09-15 10:23
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=1291738&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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jan Bares (jan_bar)
Assigned to: Nobody/Anonymous (nobody)
Summary: Behaviour of Button is not consistent

Initial Comment:
(tested with wicket 1.1.rc1)

I have a button on my form:
<input wicket:id="sendButton" type="submit" 
value="Send"/>

And in form code:
add(new Button("sendButton"));

There is no Model for the button.
If the form has a model, button label is the value 
of "value" attribute. If the form has no model, button 
value is empty string ("").

Bug explanation:
Button.onComponentTag() calls getValue() to get the 
button label. This drills to getModelObjectAsString(). If 
form has no model, empty string is returned. However if 
form has model, Wicket tries to read value of the button 
from form model and the code throws and value attribute 
is not modified.

Thanks for your time, Jan

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

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


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to