Redirect between components

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Redirect between components

biletnikov
Hello all,
I have a custom component and I would like to make a redirection request from the controller to another component (in more details, I would like to open party profile : /partymgr/control/viewprofile?partyId=id).

I use :
<response name="success" type="request-redirect" value="viewprofile"/>
in the controller.

viewprofile is the controller uri which is in the partymgr component, and I have included the partymgr controller.
However, I had to add:
 <screen name="CommonPartyDecorator">
.....

well, is there a more elegant way to achieve my simple goal?

Thanks.
Kind regards,
Sergei
Reply | Threaded
Open this post in threaded view
|

Re: Redirect between components

g.guhao

use url instand of request-redirect

and edit source ,let url can use params

在 2012-8-31 上午3:06,"biletnikov [via OFBiz]" <[hidden email]>写道:
Hello all,
I have a custom component and I would like to make a redirection request from the controller to another component (in more details, I would like to open party profile : /partymgr/control/viewprofile?partyId=id).

I use :
<response name="success" type="request-redirect" value="viewprofile"/>
in the controller.

viewprofile is the controller uri which is in the partymgr component, and I have included the partymgr controller.
However, I had to add:
 <screen name="CommonPartyDecorator">
.....

well, is there a more elegant way to achieve my simple goal?

Thanks.
Kind regards,
Sergei



If you reply to this email, your message will be added to the discussion below:
http://ofbiz.135035.n4.nabble.com/Redirect-between-components-tp4636045.html
To start a new topic under OFBiz - Dev, email [hidden email]
To unsubscribe from OFBiz - Dev, click here.
NAML