portal:urlGeneration tag not going to action
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > portal:urlGeneration tag not going to action




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    portal:urlGeneration tag not going to action  
Pim


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-06 08: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





[ Post a follow-up to this message ]



    Re: portal:urlGeneration tag not going to action  
Pim


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-06 08: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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:44 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register