Jacques, I have one doubt here,
In ofbiz, for creation of new contact and update of old contact, it uses same editcontactmech<https://localhost:8443/partymgr/control/editcontactmech?partyId=DemoCustomer&contactMechId=9015>, which has Go Back link, which will redirect to viewprofile. This behaviour is fine in Update process, because viewprofile is the parent page, but when creation, it will ask to select contact type based on contact type, new form will be generated, which has a Go Back link, which will again redirect to viewprofile. But, consider this scenario: I selected Contact Type as Domain Name instead of Email Address. So, now I hit the "go back" button, to change the contactmech and when I do so, it redirects me to "viewprofile" page instead of "editconatctmech" page. Regards, Naveen. On Tue, Oct 12, 2010 at 2:09 PM, Jacques Le Roux < [email protected]> wrote: > Naveen, > > See how it's done at > > https://localhost:8443/partymgr/control/editcontactmech?partyId=DemoCustomer&contactMechId=9015 > > > Jacques > > From: "Naveen Kumar" <[email protected]> > >> Hi Jacques, >> >> Currently i have implemented using request-redirect only, But I want to >> give >> the user Go Back link which should take them back to parent page. >> >> Example:- Back button in the browser will always take back to the parent >> page. >> >> Regards, >> Naveen. >> >> On Tue, Oct 12, 2010 at 12:48 AM, Jacques Le Roux < >> [email protected]> wrote: >> >> Did you try request-redirect? There are plenty of examples >>> >>> Jacques >>> >>> From: "Naveen Kumar" <[email protected]> >>> >>> Hi Bilgin, >>> >>>> >>>> Thanks for the information, I know this trick, but I want to handle it >>>> differently like http-redirect. >>>> >>>> Regards, >>>> Naveen. >>>> >>>> On Mon, Oct 11, 2010 at 7:58 PM, Bilgin Ibryam <[email protected]> >>>> wrote: >>>> >>>> There is no automatic way to change this behavior in the whole project >>>> at >>>> >>>>> once. >>>>> You have to do it manually by changing the controller.xml of the >>>>> application >>>>> you want changed. In general you have to change the "success" respond >>>>> to >>>>> go >>>>> to the same "edit/create" screen. >>>>> >>>>> Bilgin >>>>> >>>>> On Mon, Oct 11, 2010 at 12:36 PM, Naveen Kumar < >>>>> [email protected] >>>>> >wrote: >>>>> >>>>> > Hi All, >>>>> > >>>>> > I have a problem with redierction. >>>>> > >>>>> > In ofbiz, after all the creation and update processes, the page is >>>>> not >>>>> > redirected to the original page where the request for creation or >>>>> update >>>>> is >>>>> > invoked. Instead it stays on the new updated or created page. >>>>> > >>>>> > Is there any way to redirect the page to the parent page which >>>>> actually >>>>> > invoked the CRUD operation? >>>>> > >>>>> > Regards, >>>>> > Naveen. >>>>> > >>>>> >>>>> >>>>> >>>> >>> >> >
