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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...