> > Is it possible to forward to a portlet and automatically perform a  
> > specified action?
> > When I forward to a portlet the 'buildNormalContext'-Method of the  
> > appropiate action-class is always called.
> > But I need to invoke another action-method, e.g. 
> 'doSomething(Rundata  
> > rundata, Context context)'.
> >
> >
> > My forward looks like this:
> > 
> --------------------------------------------------------------
> --------- 
> > --------
> >
> > ForwardService forward =  
> > 
> (ForwardService)ServiceUtil.getServiceByName(ForwardService.SE
> RVICE_NAM 
> > E);
> > forward.forward(rundata, "PersonPane");
> > 
> --------------------------------------------------------------
> --------- 
> > --------
> >
> Yes, try something like this:
> 
> <forward name='PersonPaneAction'>
>       <portlet id='PersonForm'  action='portlets.PersonFormAction'/>
> </forward>

Thanks for your reply.
For some reasons this does not work as intended.
I have to portlets on a pane. portlet1 displays a Velocity-Template with a link to 
portlet2. This link should also call a specified action-method.

The link
"<a href="$jsforward.forward('ForwardPortlet')">Portlet Forward</a>"
results in
"...default.psml/js_peid/P-fa76ed989d-10000?action=portlets.ForwardTargetAction"
but nothing happens.

I've changed my forward to:
------------------------------------------------------------------------------
   <forward name='ForwardPortlet'>
        <portlet id='P-fa76ed989d-10000' action='portlets.ForwardTargetAction'/>
   </forward>
------------------------------------------------------------------------------
I've got the portlet id from the users default.psml file.

The ForwardTargetAction should simply change the displayed Template of portlet2:
--------------------------------------------------------------------------------
        protected void buildNormalContext(VelocityPortlet portlet, 
                                                                          Context 
context, 
                                                                          RunData 
rundata) {
                setTemplate(rundata, "ForwardTarget2.vm");
        }
--------------------------------------------------------------------------------

But nothing happens. What's going wrong?

Martin Swientek


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to