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]

Reply via email to