Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated renderURL attribute
Excerpt

Using and switching between JSR-168 portlet modes

Portlet Modes Available in uPortal

...

The most common method of switching portlet modes is through a URL. For example, you might create an "edit" URL that when clicked, sends the user to the portlet's edit mode. Portlet mode-switching links may be created through the use of the portlet JSP tag library:

Code Block
html
html

<portlet:renderURL modeportletMode="edit"/>

It is also possible to create a URL which will switch the mode of a portlet through direct use of the Java API:

Code Block
java
java

PortletURL myPortletURL = response.createRenderURL();
myPortletURL.setPortletMode(PortletModeEDIT);

...

Changing portlet mode programmatically

Code Block
java
java

actionResponse.setPortletMode(PortletMode.EDIT);