[jboss-user] [JBoss Portal] - Re: Jboss Portal - Partial Refresh
pavel.myshkin
do-not-reply at jboss.com
Tue May 27 03:53:55 EDT 2008
1. To enable partial refresh for a page you must add the following property to the page / portal properties (properties are inherited by children).
| <property>
| <name>theme.dyna.partial_refresh_enabled</name>
| <value>true</value>
| </property>
|
2. make a simple portlet with two or three modes. (VIEW, EDIT, HELP).
3. make your View mode display hyperlinks to Edit and Help modes, and Edit mode display links to Help and View (and so on...), by using the following examples :
| RenderResponse rres = (RenderResponse) response;
| PortletURL ru = rres.createRenderURL();
| ru.setPortletMode(PortletMode.EDIT);
| String url_edit = ru.toString();
|
| ru.setPortletMode(PortletMode.HELP);
| String url_help = ru.toString();
|
these Strings go into the HREF attribute of the A tag in your output like this link:
TO PARTIALLY REFRESHED EDIT MODE
of course you may want to adjust this knowledge to your environment, maybe a JSF portlet.
After clicking the link on the page you can see that the modes are interchangeable without page refresh.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4153489#4153489
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4153489
More information about the jboss-user
mailing list