Handler for http call

2 views
Skip to first unread message

ale

unread,
Jun 14, 2010, 6:06:45 PM6/14/10
to Google Web Toolkit
Hi everybody,
I have this problem:
I had a simple link like this:
<g:Anchor href="/myservlet/example?param=One" >Link</g:Anchor>
that call one servlet.

Now I trasform the link in a more complex panel with image, label ecc
and I would like to use a clickHandler:

On the page:

<w:MyComplexPanel ui:field="newLink" />

On the java:

newLink.addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
// TODO Auto-generated method stub
// I don't know what can I write here ;-(

}
});

How can i make the same call of the link?

Thanks, sorry for my bad english

Regards
Alessandro

Thomas Broyer

unread,
Jun 14, 2010, 6:24:01 PM6/14/10
to Google Web Toolkit
Window.Location.assign("/myservlet/example?param=One");

ale

unread,
Jun 14, 2010, 8:14:25 PM6/14/10
to Google Web Toolkit

Thanks!!!!!!
Reply all
Reply to author
Forward
0 new messages