Announcement

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

    Portlet on maximize reloading the content

    Hi,

    I am using smartGWT Power Edition.

    I am using Portlet component as below:
    Portlet contentSection = new Portlet();
    htmlPane = new HTMLPane();
    htmlPane.setContentsType(ContentsType.PAGE);
    htmlPane.setContentsURL(pdfPath);
    contentSection.addMember(htmlPane);

    Whenever i maximize the portlet, the call to the pdf URL is fired again. How can i stop the behaviour.

    Regards,
    Swati

    #2
    Maximizing requires moving the portlet out of it's container, which requires the content to be removed from the DOM and re-added. This is done via re-creating the HTML, so a reload is unavailable. Two ways to approach this:

    1. don't use HTMLPane to draw the <iframe>, instead draw it yourself, and manage removing and re-inserting it via direct manipulation of the DOM over the clear() / draw() cycle that is required for maximizing

    or

    2. use Feature Sponsorship to have Isomorphic implement an approach like the above, as a new supported feature.

    For the latter option use the Contact Us page to get started.

    Comment

    Working...
    X