What you would need to do is something of the following:
Instead of:
<input class="button" type="button"
value=" > "
onclick="moveOptions(one, two);"/>
<br>
<input class="button" type="button"
value=" < "
onclick="moveOptions(two, one);"/>
do the following:
<input type="button" class="button" value=" > " wicket:id="add" >
<input type="button" class="button" value=" < " wicket:id="remove" >
In HomePage:
form.add( new Button( "add" ) {
public void onSubmit() {
// do your addition code (similar to your original JS)
}
} );
form.add( new Button( "remove" ) {
public void onSubmit() {
// do your removal code (similar to your original JS)
}
} );
--
View this message in context:
http://www.nabble.com/ListMultipleChoice-and-submitting-added-list-items-tp14170744p14237199.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]