Try
<t:eventlink t:event="click" style="text-decoration: none">
<input type="button" value="Click"/>
</t:eventlink>
with
Object onClick() {
return _page2;
}
Geoff
On 04/07/2008, at 11:46 PM, Rene A wrote:
Hi Serge,
i tried what you suggested, it works fine with FireFox 2.0. But when
i try
it on IE 7.06, it doesn't work !
Have you any idea why ?
Best regards
Rene
SergeEby wrote:
Hi,
Try this:
in your template:
.....
<t:eventlink t:id="button1">
<input type="button"
value="Click" />
</t:eventlink>
...
and your Java class:
public class MyPage {
@Component(parameters = {"event=clickButton1"})
private EventLink button1;
// Your event handler
// You can also use annotations
void onClickButton1() {
....
}
}
/Serge
Rene A wrote:
Hi all,
I'm converting my application from T4 to T5. In T4, i was able to
write
:
<input id="button1" jwcid="@DirectLink"
listener="listener:clickButton1"
renderer
=
"ognl
:@org
.apache
[EMAIL PROTECTED]">Click</
input>
and it would render a nice button that would call my listener when
selected.
In T5, I'm trying to wrap a t:eventlink with a button. But with no
success.
Is it possible to render a button, similar to a PageLink but with
eventLink in T5?
--
View this message in context:
http://www.nabble.com/-T5--Rendering-a-button-for-a-t%3Aeventlink-tp18263658p18279855.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]