On Feb 23, 8:09 pm, brianw <[email protected]> wrote:
> I gather that one can user either an anchor for doing some processing
> in its ClickHandler before activating the link or one can use a
> hyperlink which is tied to the history but no prior processing is
> possible since there are no listeners.
>
> is there any way of creating a link on which one can do some
> processing before re-directing the user's page and which has a tie in
> to the history.

Use any clickable widget and call History.newItem from your
ClickHandler. If you want the "link" to be "bookmarkable" (or, say,
right-click -> open in new window/tab), then use an Anchor widget and
preventDefault() the ClickEvent; otherwise, you can use any kind of
button, or a Label/InlineLabel or HTML/InlineHTML (in this case, for
best accessibility, don't forget to
"Accessibility.setRole(link.getElement(), Accessibility.ROLE_BUTTON);")

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