Thanks Eelco, that helped.
[And, BTW, Phil's Spring idea looks like the start of something really
good. Once it's worked out, it should probably go in
wicket-contrib-spring]
---
This SF.Net email is sponsored by: NEC IT Guy Games. How far can
If I have a form with multiple submit buttons, how do I find out which was
pressed?
Form.onSubmit doesn't take any parameters and there doesn't seem to be any
appropriate method I can call from inside it to get that param.
If, when building the form, I add something like:
add(new Button("foo")
Did you reference the button in your markup?
You can add a button like this:
add(new Button("test")
{
protected void onSubmit()
{
info("I was pressed!");
};
});
and reference that like:
Eelco