Hello Experts,
I've a requirement in which I need to populate result of particular action on webtop in component.
The requirement is to have two pages ( i.e. success and failure ). The component is to promote multiple documents to next lifecycle level.
Success page will display all the message of successful promotion of the selected objects and similarly Failure page will display message of failure.
My implementation goes like below:
- Created Component ( Promote ) and Container ( PromoteContainer )
- Business logic is implemented in Promote component.
- I plan to keep two pages ( Promotecase to display success messages and promotefailurecaseto display error messages )
<pages>
<start>/custom/library/caseprocessing/promotecase.jsp</start>
<failure>/custom/library/caseprocessing/promotefailurecase.jsp</failure>
</pages>
4. My problem is I'm not sure how to set the failure page.
What I'm doing is on click on one of the button I've written the code
public void onOk(Control button, ArgumentList args)
{
System.out.println("OK clicked");
PromoteCase comp = (PromoteCase) this.getContainedComponent();
comp.setComponentPage("failure");
}
But the failure page is not opened.
can any one let me know how can I get this, and also provide user an option to see start and failure pages on button clicks.
Regards
Prashant