Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Question about setActive() and pages

719282Mar 4 2011 — edited Mar 7 2011
Hi All,

I have a simple portal application (Weblogic portal 10.2) with two parts, one part is a list of items and one part is detail information. When a user clicks some row in the list, the information is loaded in the detail part of the screen. The detail part consists of a few tab-pages (pages in a book) to display the information. What I want to do is, whenever a row is clicked in the list I want to display the first tab-page. I have done this by adding a backingfile to the book and added code to the prerender method.

The code iterates over the pages (PageBackingContext), calls a setActive(false) and when this is done the first page is set active. This SEEMS to work, whenever I click a different row the first tab-page (page in book) is activated and visible there is a problem. which I will try to explain.

Code example (pre render method in backing file of the book):

List pages = bbc.getPageBackingContexts();
for (int i = 0; i < pages.size(); i++) {
PageBackingContext page = (PageBackingContext)pages.get(i);
page.setActive(false);
}

PageBackingContext test = bbc.getPageBackingContextByDefinitionLabel("page_1");
test.setActive(true);


Situation 1:
click row -> First tabpage is visible -> click tabpage 2 -> Tabpage 2 is visible -> click different row -> First tabpage visible -> click tabpage 2 -> NOTHING

If I click a different page (for example tabpage 3) there is no problem. I f after I clicked tabpage 3 I click tabpage 2 the page is also loaded. If I try above situation with an other tabpage I get the same result.

Situation 2:
click row -> First tabpage is visible -> click tabpage 3 -> Tabpage 3 is visible -> click different row -> First tabpage visible -> click tabpage 3 -> NOTHING

I think some part of portal still thinks the last tabpage in previous row is still active or something. Does anyone have any clue of suggestion?

Thanks!

Edited by: HeckerBob on 04-Mar-2011 05:08
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2011
Added on Mar 4 2011
2 comments
267 views