Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

portal:urlGeneration tag not going to action

31 views
Skip to first unread message

Pim

unread,
Mar 20, 2006, 12:15:30 PM3/20/06
to
Hi All,

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

Pim

unread,
Mar 20, 2006, 12:57:26 PM3/20/06
to
*solved*

It's a confirmed bug and the good news is that a workaround is available:

http://www-1.ibm.com/support/docview.wss?rs=688&context=SSHRKX&q1=PK17999&uid=swg1PK17999&loc=en_US&cs=utf-8&lang=en

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

0 new messages