How to set Book Default page in runtime.
My requirement is based on loged in user group name we have to go to that page, in book there are four pages default is 3 page. based on user login we have to go the pirticular page.
write your logic in BackingFile to change the page that is shown (when the book's label is requested) or
wherever you generate a link to the book , change that to be the page you want to go to(you might have to customize BEA's menu)
Check if the books label is the requested one (i.e. user has just requested for the book , not a specific page in the book) if yes then
Get the BookBackingContext in the backing file, get the children pageBackingcontexts, for each one , check the definition label for each page, set the one you want as active (PageBackingContext.setActive), the other ones set as false. (I cant remember whether its active or visible or both).
I have a similar requirement but the problem i am facing is that the control of the program does not go into the handlePostbackData() method of the desktop backing file. the URL i call from the login JSP is something like: "/../../myDesktop.portal" where myDesktop.portal is the desktop portal file having books and pages. Page1 is the default but based on an input i need to redirect to Page2 instead of landing on the default Page1. I wanted to give the redirect logic in the handlePostbackData() method but the control does not go into the method. I also tried giving sth like : "/../../myDesktop.portal?_nfpb=true&_pageLabel=Page2" but it still renders the (default) Page1.
Do you have an idea what would I be possible missing out on or doing wrong here. Thanks.
I am using struts portals.
Edited by: 929390 on Apr 23, 2012 7:03 AM