Ouch, the button displays correctly in IE7 but it just don't respond.
In that case I think we're left with the Button component at
t5components:
<button t:type="t5components/Button" type="button" t:event="click">Do
something</button>
with
Object onClick() {
return _page2;
}
See http://87.193.218.134:8080/t5c-demo/buttonpage .
Get t5c-commons and t5c-contrib from http://code.google.com/p/tapestry5-components/
.
To work they must be deployed in WEB-INF/lib .
Geoff
On 05/07/2008, at 3:44 AM, Martijn Brinkers (List) wrote:
I have tried this as well but it doesn't seemt to be working with IE7
(it does with FF2 though).
I have tried to replace <input> by <button> but that does not work
either. Is there another way to get a button that just links to
another
page?
Martijn
On Sat, 2008-07-05 at 00:03 +1000, Geoff Callender wrote:
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]