Hi,

I'm using GWT 1.4. I wanted to call a JSP within a Dialog Box. For
this, I was setting the URL to a Frame and usign the setWidget method
to call this frame within a Dialog Box. My dialog box contains a frame
and a button. The button gets displayed properly, however the frame
doesn't. The code doesn't give any kind of exception.  Can anybody
please guide me what's the correct way of using a frame within a
Dialog Box?

Following is the code that I'm trying to execute:

----------------------Dialog Box--------------------------
public class TestPopup extends DialogBox {
    private Frame frame = new Frame();

    public TestPopup(String url) {
        setText("Group Details");
        Button close = new Button("Close");

        close.addClickListener(new ClickListener() {
            public void onClick(Widget sender) {
                hide();
            }
        });

        Window.alert("URL = " + url);
        try {
            frame.setUrl(url);
            setWidget(frame);
            setWidget(close);
        } catch (Throwable error) {
            Window.alert("...Got an Exception..." +
error.getMessage());
        }
    }

---------------------Calling DialogBox---------------------------
            TestPopup popUp = new TestPopup("/com/test/test.jsp");
            popUp.show();

Thanks,
Vikas

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