Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    HTMLPane.setIFrameURL

    fyi, method setIFrameURL() gives an error because it re-sets the contentsType of the HTMLPane, which is not allowed after the component is created.

    Workaround: setContentsType at definition time, don't use setIFrameURL but setContentsURL when the content of the IFrame needs to change.

    #2
    A fix has been made to allow changing of iframeURL after the HTMLPane has been rendered.

    Sanjiv

    Comment


      #3
      I am having the exact same problem as described above, using SGWT 2.5 (also tried it in 2.4). GWT version is 2.2 in FF.

      Thanks

      Comment


        #4
        Can you verify that the version is actually what you think (look for stale files), then if so, provide a test case where we can see the issue?

        Comment


          #5
          Here is the test case. Pretty simple, as you can see:

          Code:
          	public void onModuleLoad() {
          
                  Canvas canvas = new Canvas();
                  canvas.setWidth100();
                  canvas.setHeight100();
          
                  HTMLPane pane = new HTMLPane();
                  pane.setWidth100();
                  pane.setHeight100();
                  pane.setIFrameURL("http://www.cnn.com");
                  canvas.addChild(pane);
              	
                  canvas.draw();
          	}
          Thanks

          Comment


            #6
            Works fine. Check for staleness in your project.

            Comment

            Working...
            X