What is the advantage of a 'real link'? Who will ever know?
If you need focus and no history, use a styled PushButton

Ian

http://examples.roughian.com


2009/5/5 George Georgovassilis <[email protected]>

>
> Hi Kevin,
>
> had the same problem. Similar to Isaac's solution I used labels to do
> the trick, but that left a shallow aftertaste since you have to put a
> lot of work into them (make them focuseable etc for keyboard
> navigation) and they still don't feel like real links. Left aside the
> cool stuff you can do by right clicking on links.
>
> In one case I manipulated the history mechanism to check for
> conditions in which a "rollback" should happen. The short storry is:
> 1. Yes, I _do_ assign a history token to that link
> 2. a history listener listens to that token and sets a boolean
> variable (i.e. dontChange)
> 3. the listener then invokes history.back()
> 4. the history handler is invoked for the pervious token, but because
> the variable dontChange is set, will not perform any processing for
> that token but just reset the variable
>
> Uggly, but at least you can use real links.
> Hth,
> G.
>
> On May 5, 6:15 pm, Kevin Qiu <[email protected]> wrote:
> > Hi all,
> >
> > I have a bunch of hyperlinks and I want them to act like buttons
> > (respond to ClickEvent) but I don't want them to change the history
> > token which will mess up my history mechanism. How would I do that? I
> > tried setting target history token to null but it doesn't work.
> >
> > Thanks,
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to