Got a problem with the <portal:urlGeneration tag. More info about the
tag overhere:
http://publib.boulder.ibm.com/infocenter/wpdoc/v510/index.jsp?topic=/com.ibm.wp.zos.doc/wps/dgn_ptltld.html
According to the documentation it is able to invoke an action. This is
done by the actionName attribute. I would expect that the
actionperformed is invoked after selecting the link.
<portal:urlGeneration actionName="myAction" contentNode="my.ContentNode"
layoutNode="my.LayoutNode"
portletParameterType="action">
<a href="<%wpsURL.write(out)%>">Link to portlet with myAction</a>
</portal:urlGeneration>
I guess you grasp my problem, the code doesn't invoke the
actionPerformed. I get to the correct page and the correct portlet,
except no action.
Any ideas?
Kind regards Pim
It's a confirmed bug and the good news is that a workaround is available:
If the link is broken in the future:
Error description
urlGeneration tag will not generate an a URL to a portlet in
action phase unless there is a urlParam inluded.
Example:
<wps:urlGeneration actionName="theActionName"
contentNode="targetPage" layoutNode="targetPortlet"
portletParameterType="action">
<wps:urlParam name="dummy" value="dummy" type="action"/>
<a href="<% wpsURL.write(out); %>">Test URL</a>
</wps:urlGeneration>
If a urlParam is not included then the URL generated will not
cause the action phase of the target portlet to be executed.
Local fix
Use a dummy parameter
<wps:urlParam name="dummy" value="dummy" type="action"/>
Sources reveal that this bug is solved in WPS5103. I realise that I
forgot to mention that I'm working on 5102
Regards, Pim