Friday, September 30, 2011

Re: how to give a external link inot a samrtgwt portlet

For external link please use following code

com.google.gwt.user.client.ui.Anchor lAncInvoiceNo = new
com.google.gwt.user.client.ui.Anchor("Google", false);
lAncInvoiceNo.addClickListener(new ClickListener() {
public void onClick(Widget w) {

//TODO--Your code -- Like
Window.open("href://www.google.com");
}
});

On Sep 30, 9:35 am, yashujn <yashssharma@gmail.com> wrote:
> hi ,
>         please tell me how to give a external link into a smartgwt
> portlet....
>
> i mean to say like in gwt we use this:
>
> String link = "http://code.google.com/webtoolkit";
> HTML html = new HTML("<a href=\"" + link + "\">GWT Website</a>");
> RootPanel.get().add(html);
>
> if I use this in smartgwt then link is appear in the protlet but when
> i move the portelt from one column to other column then portlet is
> disappeared ..............
>
> somebody plz help me.........

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment