Hi,

I think you should use ComponentResources to create an event link to your new component. The link will include the current page.

Another solution is the getPageName method of ComponentResources.


--
---------------------- Mats Andersson | Ronsoft AB | +46(0)73 368 79 82


On 2018-10-26 13:07, abangkis wrote:
Hi guys. I'm moving parts of of my page to a custom component. In the page
there's a method that will go to another page and go back to the original
page when finished. Here's the code:

@OnEvent("AddDoc")
Object addDoc() {
Link thisPage = pageRenderLinkSource.createPageRenderLink(this.getClass());
addLoanDocPage.setLoanApplicationId(loanApplication.getId());
addLoanDocPage.setLinkBack(thisPage);
return addLoanDocPage;
}

I'm moving that method to the custom component. How can  the component
generate the Link to the page that contains it?

Thanks

Reply via email to