<form jwcid="@Form" listener="ognl:listeners.submit">
<input jwcid="@Submit" tag="ognl:listeners.buttonListener"
selected="ognl:whichListner" />
</form>
public void submit(IRequestCycle cycle) {
IActionListener l = getWhichListener();
if (l != null) {
l.actionTriggered(<I don't remember what to pass here>, cycle);
}
}
I think this technique is documented on the list, you might try searching
for actionTriggered on gname.org
Richard
-----Original Message-----
From: Hensley, Richard [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 06, 2005 10:06 AM
To: Tapestry users
Subject: RE: Making listener invocation at form end
In general, you need to use the tag/selected parameters, and then use the
value of your selected to determine which listener to call from within your
form submit listener.
A reasonable way to do this is to make your selected an IActionListener,
make your take a listener, and then trigger the action from your form
submit.
-----Original Message-----
From: Pedro Abelleira Seco [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 06, 2005 9:56 AM
To: Tapestry users
Subject: Making listener invocation at form end
I need to defer the invocation of a listener method until the end of
form procesing.
What is the correct way to do this in Tapestry 3? I know that this is
supported in t4, but I need to do it in t3.
Thanks a lot
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]