Eugeny N Dzhurinsky wrote:
On Thu, Jun 23, 2005 at 09:33:28AM -0400, Elliot Metsger wrote:

processAction() is called from an actionURL, not a renderURL. So make sure you're using the right url -


Which URL is right url for this?

ActionURL's call processAction() followed by doDispatch(). So you need to click on actionurls if you want processAction() to fire.

RenderURL's call only doDispatch(). doDispatch() will forward to doView(), doEdit(), or doHelp() depending on the portlet mode.

So in your JSP for example you would:
<portlet:defineObjects/>
<a href='<portlet:actionURL><portlet:param name="paramname" value="paramvalue"></portlet:actionURL>'>Some Link</a>

alternatly you could do:
PortletURL myurl = renderResponse.createActionURL();
myurl.setParameter( "paramname", "paramvalue" );

Anyway, from the javadoc:
public interface PortletURL

The PortletURL interface represents a URL that reference the portlet itself.

A PortletURL is created through the RenderResponse. Parameters, a portlet mode, a window state and a security level can be added to PortletURL objects. The PortletURL must be converted to a String in order to embed it into the markup generated by the portlet.

There are two types of PortletURLs:

* Action URLs, they are created with RenderResponse.createActionURL, and trigger an action request followed by a render request. * Render URLs, they are created with RenderResponse.createRenderURL, and trigger a render request.

Reply via email to