How to programmatically make pages of a book visible or invisible

My portal page has three placeholders: Left, center and Right.
In the right there are simple static pages giving some information and news that
are irrelevant
to the whole quesry so dont bother about them.
In the center placeholder, I have put a book which has four pages. The labels
of these pages are
: pageA,pageB,pageC and pageD respectivbely.
In each of these pages there are simple portlets which just display a different
static msg so
that i know that the different pages are displayed
In the left placeholder, I have put a portlet which consists of a simple pageFlow.
The page flow
consists of a sinlge jsp called index.jsp. Index.jsp has four anchor tags, which
display which
pagelabel and also pass the page label as a paramter within those tags. For e.g
this is one of
the anchor tags:
<netui:anchor action="showPage">PAge A
<netui:parameter name="pageName" value="pageA"></netui:parameter>
</netui:anchor>
Similarly, there are three other anchor tags. Now, clicking on this anchor tag,
the function
showPage of the controller is called. In showPage, I have written code to specifically
show the
particular page in the book present in the center placeholder.
The code i have written is as follows:
protected Forward showFunction()
request = this.getRequest();
String functionName = request.getParameter("pageName");
//following line gets the context for the entire main page
pageContext = PageBackingContext.getPageBackingContext(request);
/following line gets the list of children contexts in the main page
list = pageContext.getWindowBackingContexts();
/following snippet get the book context of the book in the centerplaceholder.
int size = list.size();
for(int i=0; i<size; i++)
if (list.get(i) instanceof BookBackingContext)
bookContext = (BookBackingContext) list.get(i);
//following line I get the context if the page i want to display
pageContext = bookContext.getPageBackingContextByDefinitionLabel(functionName);
//I set that page as the Active page
pageContext.setActive(true);
     return new Forward ("success");
But the code does not work!! The default page of the book which is display when
the portal file
is opened for the first time which ever link is clicked. I have been at this program
for 5 hours straight but the thing just wont work. PLEASE HELP !!!

To do it properly you need something like this:
http://news.cnet.com/8301-11386_3-10232931-76.html
Got $6000 to spare? Go for it!  
http://search.sys-con.com/node/1162841

Similar Messages

  • How do I make Pages the default program for .doc files?

    How do I make Pages the default program for .doc files without having the need to change the default program for each individual.doc file?

    Navigate to a .doc file.
    Ctrl click the file
    Choose Open with and then go down the list, past pages, to other
    Navigate to pages
    Before you click Open make sure you click the 'Always open with' check box.
    You should be okay.
    You can do a similar think by selecting the file, Choosing File-Get Info
    Then open the Open With Disclosure triangle.
    select pages and then click CHANGE ALL
    Hope this hleps.
    M.

  • How do I make Pages the default word processing program?

    How do I make Pages the default word processing program, including Appleworks files?
    I want any Appleworks file I open to open in Pages - is there a setting to make that happen?

    Hello ADW,
    To change the default programme used to open a filetype, Get Info on one of the files you are looking to set, the change the Open With selection to Pages.
    Then click on Use this application to open all documents like this one.
    You will have to repeat this for each file type you want to use that way.
    Have a wonderful day!
    -=C=-

  • How do I make pages inactive without erasing them?

    How do I make pages inactive without erasing them?

    You could not include the page in the navigation menu. In the Page Inspector, unselect "Include page in navigation menu". That way it won't be found anywhere on your site.

  • How can I make the status bar always visible in safari?

    How can I make the status bar always visible in safari? Even when I go to "View" and then select "show status bar," the status bar still disappears unless my cursor is hovering over it. I want to be able to see the time, battery life etc. while surfing the web in safari!

    When Safari is in FullScreen mode, menu bar will be hidden.
    Safari window to fit the screen?
    Move the mouse pointer to the bottom right corner of the Safari window.
    Double arrows will appear. Drag it to resize the window to fit the screen.

  • How do I make page borders on Pages?

    Can anyone explain to me how to make page borders on the Pages program? I typed it into help, but it only told me how to make borders for paragraphs. In Word it was under "Format" Borders adn there were lots of choices of great borders there - both lines and graphics.
    I have a mutli-page document and want a nice looking border that will automatically put itself onto all the pages in the document.
    THANK YOU FOR YOUR HELP!!!

    There is no command to place a border on a page. However, it is quite easy to draw a border. Set your margins and then resize the Pages document window so you can see the entire page. Under the view menu, select 'Show Layout' and 'Show Rulers'. Now insert a rectangle or rounded rectangle shape, resize and move it as you like. Open the inspector and select the Graphics tab. Select the background and line colors, etc. Under the Arrange menu, select 'Send Objects to Background' and you'll probably also want to select 'Lock'. You might also want to capture the page (Format > Advanced > Capture) if you intend to make a multi-page document.
    Yes, this is a bit more involved than Word but it isn't that big a deal. I've created a template with about 10 different border styles and I pull it out whenever I need it.

  • How do you make pages default document reader

    Hi
    I have just started using pages and i cant seem to work out how to make it the default application to open up the many documents i have.
    Every time i open a document it opens in textedit, i know that you can choose in properties with which program to open it with, but i am getting really fed up of doing this.
    is there any way to make pages the default instead of textedit program.
    Ta
    Karl
    p.s I used to use MS office but i cant be bothered to reinstall it and most of my docs are .doc (office format)

    kb,
    You can set .doc files to open in Pages, and it’s surprisingly easy: just go to the Finder, single-click on any .doc file, then type command-I (Get Info). Click on the Open With... menu and select Pages (or navigate to Pages if it’'s not in the menu). To make all .doc files open in Pages, click on the Change All button.
    You can do the same thing with other types of files, like RTF or plain text.
    -Dennis

  • How do I make Pages the default program?

    Hi,
    This may be quite basic, but I can't seem figure it out.
    I've just migrated from a PC to a Mac and I have a lot of .doc's. I want to make Pages the default program to open all of my MS Word documents; however, when I select >open with>other>iWork08>Pages, and check the "Always open with" option, it only opens that particular document with Pages, not every .doc file on my computer.
    Windows has an "always use for this type of file" option, but I can't find any such thing on my Mac. I have WriteRoom installed and this is somehow the (default) for .doc's, though, I didn't make it that way... just happens to show up first on the list for some reason.
    Thanks!

    Point to a .doc file in a window using the Finder. Command-i (or right click, then choose "get info") on any .doc file. Under "Open with" specify Pages then click "change all". This will make all .doc files open with Pages by default.
    If you don't like this setting, you can change it back. And bear in mind that opening a .doc file with Pages does not allow you to simply save the file using Pages. You have to save a second file in Pages format (and perhaps may wish to then delete the first .doc file). The fact that Pages doesn't save Word documents "natively" like this can be a pain, but there's no way around it because that's how Pages is designed.

  • How can I make Pages my default

    How do I make this the default WP with Yosemite 10.10.2?

    As you can see, Microsoft Word is my default.
    Your next step is to click on other...
    Click on Always Open With check box and scroll down until you find pages in the Applications tab
    Click Open and there you have it!
    Hopefully it's an identified source or it will always revert back for some reason...

  • How do I make  a 2nd Address book?

    I want to create a group and change the cards in that group without the original card changing? I can do that with NOW Contact and could do that years ago with Dynodex. Addess Book works like iTunes, with a Library and Playlist format. How do I create a duplicate addess book that I can change?
    Example: Xmas Card group. I want to add a spouse's name to the card for envelope purposes but don't want that in the permanent record.

    Try a slick little shareware app called rooSwitch,
    http://roobasoft.com/rooSwitch/
    There's a 30-day trial. I haven't used it for exactly what you're after but I'm pretty sure it would work for that. Open Address Book in rooSwitch, duplicate the default profile and then make your changes in the copy. Your original should be preserved. Hope that helps.
    PowerBook G4 15 1.5GHz   Mac OS X (10.4.8)  

  • How do I make pages open a template on launch?

    I just switched from Office Mac to pages because I got a retina macbook, and Office looked all blurry.
    Anyway, I made a perfect template for myself and set it to the default, but still when I open pages, it opens the finder window that lets you choose a document. How to I make it open a new document using my template when I launch it?
    Thanks!

    Pages ’09 v4.3 on OS X 10.8.5.
    Pages > Preferences > General : Use template : Choose...
    Pick the Template you want, close Preferences. The next time you launch Pages, it will default to the specified Template.

  • How do I make a digital sticker book?

    I have a client that wants to make a "digital sticker book" for a tradeshow. I need to be able to show an image in full screen mode and have "stickers-images" that can be moved around. This will be on a touch screen all in one. I am not sure what program to use at this point
    PLEASE HELP!!
    Thanks

    Hi there
    I'd start by asking this question over in the Flash forum. Flash would seem to be the application to use, but perhaps they have other ideas.
    Flash forum is found at the link below:
    Click here to view
    Best of luck to you! Rick

  • How do we make sure our Mac book pro is covered under apple care?

    How do we make sure our MacBook Pro is covered under apple care?

    Or check here:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do
    Ciao.

  • How do you make pages shorter ?

    Hi- I gave myself plenty of leeway to arrange graphics etc by making the pages very long. Now everything's in place, I'd like to reduce the page lengths but although I've been trying manually and in the inspector, I haven't managed.
    It's probably something simple but it's escaping me. I'm ready to,upload to server but want to correct this first. Hs anyone already played with this and knows the answer ?
    Thsnk. SeaDReam

    You ought to be able to do it by adjusting the Content Height in the Page>Layout inspector.
    If that's not working, check and see if you have any text, graphics, or widget boxes at the bottom of the page (especially something that might be "invisible") and move it up higher on the page. The pages won't shorten if there's an object below the designated content height.
    kabing

  • How can i make a plot in a 3d graph invisible

    hello all,
    attached is a half-way completed vi which shows how i would make the plot/plots in the 3d graph invisible. unfortunatly i do not know how "item" can refer to the plot i want to make invisible.
    any ideas?
    Solved!
    Go to Solution.
    Attachments:
    remove plot in 3d graph.vi ‏27 KB

    You are almost correct.
    The Item input is a string whose value is the name of the target plot. You can view all the plots names from shortcut menu->"CWGraph3D" group->"Properties" item->"Plots" tab ->"Plots" list.
    Attachments:
    remove plot in 3d graph.vi ‏20 KB

Maybe you are looking for

  • My account data has been removed since installing Mountain Lion

    After I installed Mountain Lion, I noticed that my wallpaper had changed. Then I noticed that my dock had changed. Then I found out that all the data I had on my account before I installed Mountain Lion had been locked away under a folder called "Use

  • Passing argument to function

    hi to all i have one querry i want to pass an argument to function through jsf tags can you help me out how i will do it <h:selectOneMenu id="listSP" value="#{ProfileInit.selectedItem}" immediate="true"> <f:selectItems value="#{ProfileInit.populateSu

  • Colour management or adjustment layer for broadcast output

    Hi all, I'm a bit confused about outputting broadcast safe colours and black and white levels. I am used to passing on my final render to a facilities house or an editor so am a bit green at this kind of thing. In the help files it says its better to

  • Camera Raw Support

    I recently got the Canon xsi dSLR. I was pleased to see that Apple has an update to open the raw files in iphoto. I was unhappy to then find out it's only for iphoto 8, not iphoto 6. Does Apple usually stop supporting the previous generation of iphot

  • Maintain text for Infotype 0015

    Hi, I want to upload the text to infotype 0015 via Maintain Text. Can any one help me how to upload the text using export or macros. Thanks & Regards, Mohan