I will not recommend JSNI. JSNI is to use only for very special cases (performance reasons for example).
In your case, you can easily do it in Java as follows: HTML link = new HTML ( "<a href='#'> an example </ a>"); link.addClickHandler (handler) Hyperlink isn't requiered, juste used addClickHandler on simple html text is good. regards On 28 déc, 15:11, olivier nouguier <[email protected]> wrote: > Yes JSNI will let you expose a JAVA/GWT method to JS/HTML. > Then you'll just need to call this exposed method in your links. > This is not want you want to perform ? > > > > > > On Mon, Dec 28, 2009 at 2:55 PM, newUser <[email protected]> wrote: > > > Hi, > > > I am sorry but i did not get anything useful there (may be I am > > wrong :) ). > > > Are you suggesting to use JSNI? If yes, i have already tried a couple > > of things with that too but unsuccessful. > > > ~Diwakar > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-web-toolkit%2Bunsubs > > [email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > A coward is incapable of exhibiting love; it is the prerogative of the > brave. > -- > Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
