This is a standard part of the portlet lifecycle (portlet 2-phase, action/render lifecycle).
Off the cuff, I can think of a few ways to help with your scenario:
don't load data from the database in your render (doView) calls
check out the out of the box ajax/partial-refresh features to see if they can work in your scenario: http://docs.jboss.org/jbportal/v2.7.0/referenceGuide/html_single/#d0e13283
Already I have used the following code in my jboss-portlet.xml. But The same problem is occured.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE portlet-app PUBLIC "-//JBoss Portal//DTD JBoss Portlet 2.6//EN" "http://www.jboss.org/portal/dtd/jboss-portlet_2_6.dtd"> <portlet-app> <portlet> <portlet-name>DashboardPortlet</portlet-name> <ajax><partial-refresh>true</partial-refresh></ajax> <header-content> <link rel="stylesheet" type="text/css" href="/css/Dashboard_SpryAccordion.css" title="" media="screen" /> <script src="/js/Dashboard_SpryEffects.js"/> <script src="/js/Dashboard_SpryAccordion.js"/> </header-content> </portlet> </portlet-app>
I have set page referesh in admin module for this portal. Now it is solved. I have one more issue in page referesh. I have created some chart portlet dynamically. These values are comes from left region and created charts are displyed in center region.
for example: I have created dynamic portlet a. Again I created portlet b. Actual result : Now the old portlet is deleted the new one is created.
Problem : Old one is displayed in center region. (but I have checked in admin part the new portlet is created and assigned in center region). If I referesh the whole page I get the new portlet. Is it possible to referesh ony center region instead of whole page.
I hope you will get my point. Thanks in advance.