On 12 août, 14:49, Santosh kumar <kopp....@gmail.com> wrote:
> Hi,
>
> I am using GWT HyperLinks in my Project, i want some clarification about
> these links.
> when i click on the link for the first time it works fine. Immediately when
> i click the same link its not working.
> Like control is not coming to that link.. is their any logic to get the
> control to the link when its get clicked continuously.
> please can any one answer to my doubt ???

Hyperlink calls History.newItem on clicks, and History.newItem won't
fire a ValueChangeEvent if the target token is the same as the current
one (as, obviously, there would be no "change in value").
You might want to use a Label (or maybe Anchor if you want it to
really work like a link, with the ability to open in a new window/tab,
copy link URL, etc.) with a ClickHandler in which you'd call
History.newItem *and* do what you want to do (or: call newItem(token,
false) and then fireCurrentHistoryState if you really want to keep
your logic ValueChangeHandlers)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to