Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Portlet reloads its Src URL each time it is re-positioned.

$
0
0
Pre-requisites
1. SmartClient Version: v9.1p_2014-06-12/Pro Deployment (built 2014-06-12)
2. Firefox (24), Chrome (35.0.1916.153 m), Internet Explorer (8, 9)
3. Standalone test case: Fortunately, the test case exists in the SmartGWT showcase itself, (http://www.smartclient.com/smartgwt/showcase/#window_contents_portal_layout)

Problem Summary:
Portlet reloads its Src URL each time it is repositioned in the Portal Layout.

Description:
The URL set to a portlet using its setSrc(String url) API, with content type = PAGE, is fetched each time the portlet is repositioned.
I have two web applications deployed in the same environment, the primary webapp is built using SmartGWT for the presentation layer with a Java backend. The secondary webapp is built with Eclipse-RAP for the presentation layer. The secondary webapp has limited functionality, which I would like to leverage from within my primary SmartGWT webapp. In order to achieve integration between these two webapps, the approach we wish to use involves PortalLayout's and Portlets. As the primary webapp is composed of multiple screens, each reside in its own Portlet, and so does the secondary webapp. Using the Portlet.setSrc() API, we are able to embed the url of the secondary webapp into a portlet of the primary webapp.
However, in doing so we observe the following:
- The Portlet containing the secondary webapp, when drag repositioned, triggers a fetch to the URL set to it. This refresh causes any user action performed on the embedded URL to be lost.
- We have also tried using the HTMLFlow and Pane, but encountered the same issue.
- The redrawOnResize attribute for these widgets successfully prevents reloading the URL when drag-resizing the widget, however does not affect the behaviour while drag-repositioning it.

As the secondary webapp is not a SmartGWT app, we are unable to leverage the ViewLoader method of integration.

Is there a method by which we can prevent the Portlet/HTMLFlow/HTMLPane or any other usable widget from reloading the embedded URL?
Are there any alternate widgets that we can use to avoid the reported issue?

We are open to any recommended changes to our approach to integrating the primary (SmartGWT) and secondary(non-SmartGWT) webapps. We wish to leverage the flexible and user friendly behaviour provided by Portlets to allow users to customize their UI experience while using our application.

Thank you in advance for all solutions/comments/strategies, please do let me know if additional information is required.

Viewing all articles
Browse latest Browse all 4756

Trending Articles