WebSphere Portal Server - portal:urlGeneration tag not going to action

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > March 2006 > portal:urlGeneration tag not going to action





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author portal:urlGeneration tag not going to action
Pim

2006-03-21, 3:22 am

Hi All,

Got a problem with the <portal:urlGeneration tag. More info about the
tag overhere:
http://publib.boulder.ibm.com/infoc...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

2006-03-21, 3:22 am

*solved*

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

http://www-1.ibm.com/support/docvie...s=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

Pim wrote:
> Hi All,
>
> Got a problem with the <portal:urlGeneration tag. More info about the
> tag overhere:
> http://publib.boulder.ibm.com/infoc...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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com