It's much better to use a seperate button, like currently in CDAPP.
Java:
add(new OnClickLink("cancelButton")
{
public void linkClicked() {
getRequestCycle().setPage(getSearchPage());
}
});
Html:
<input type="button" id="wicket-cancelButton" value="cancel"/>
<input type="submit" value="save"/>
Eelco
Martijn Dashorst wrote:
Is there a more elegant way to determine which button was clicked when
the onSubmit occurs?
Currently the only way I know is to go into the request parameters:
getRequestCycle().getRequest().getParameter("save") != null
Perhaps instead of an onSubmit on the form, an onClick on each button
added?
Martijn
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user