Creating Portal Books and Pages dynamically

How do i create Portal Books Dynamically from a backingfile (preRender Method). And still be able to dynamically embed a portlet instance on each page created.
very urgrent

Hello,
You would want t use the methods available on the BookDefinitionManager and PageDefinitionManager EJBs to add a new book or page definition. then use the methods from the IPageInstanceManager and IBookInstanceManager interfaces implemented by the PortalCustomizationManager EJB to add the book / page under an existing book / page / desktop.
For the javadoc for all of these EJBs, see:
http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/javadoc/com/bea/netuix/application/manager/persistence/package-summary.html
Then, to access the EJB in your code, you can do the following (this example is for PageDefinitionManager, but it would be similar to all the other EJBs):
import com.bea.netuix.application.manager.persistence.PageDefinitionManagerHome;
import com.bea.netuix.application.manager.IPageDefinitionManager;
import com.bea.p13n.management.ApplicationHelper;
import com.bea.netuix.application.manager.CustomizationContext;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
// Access the PageDefinitionManager EJB
InitialContext context = new InitialContext();
String lookupName = PageDefinitionManagerHome.LOOKUP_NAME;
String applicationName = ApplicationHelper.getVersionedAppName();
if((applicationName != null) && (applicationName.length() > 0))
lookupName = applicationName + "." + lookupName;
Object home = context.lookup(lookupName);
home = PortableRemoteObject.narrow(home, PageDefinitionManagerHome.class)
IPageDefinitionManager pageManager = ((PageDefinitionManagerHome)home).create();
Kevin

Similar Messages

  • Portal, Book and pages enumeration

    Hi, I´m having a bit of a problem using Bea Workshop 8.1.5.
    I´m building a Portal which has inside books and pages.
    The pages can hold inside books.
    The problem is that I ´ve using the methods
    DesktopBackingContext dbc=DesktopBackingContext.getDesktopBackingContext(this.getRequest());
    BookBackingContext books=dbc.getBookBackingContextRecursive(rama);
    List lista=books.getPages(); //Here is the list of the books and pages that it contains.
    where "rama" is a String containing the Definition label of the book where I want to start the enumeration.
    If the portlet that contains the .jpf ,where the previous code is, is placed outside the main book, it works perfectly but if that same portlets is placed inside the main book o the books that it contains it won´t work.
    I debugged it and it seems that this
    books.getPages(); is returning null (as it has no books or pages, but it does!).
    Does anybody knows what I am missing here?
    Best
    Alejo

    You need to set the portal property Tree Optimization to false, this way you force the portal to create instances of all the trees but you´ll loose performace.

  • How to implement multlingual on bea portal books and pages

    Hi
    We are are using BEA weblogic portal.
    Now we want to use multilingual on bea portal.
    Ho we can change the portal book's name and pages according to languages.
    Regards
    Paramdeep Singh

    In your browser, you maintain your list of desired languages. This is an ordered list with the first language/locale in the list being the primary. This list of languages is passed to the server in as header. The portal server uses this header as the default mechanism to determine the language to serve back to the browser, although this behavior can be changed for your implementation if you wish. The server will look for a matching resource bundle based on the order of preference in your list of accepted languages.
    So, if you want to receive fr_FR responses, ensure the fr_FR is listed first in your browsers list of languages and that you have created fr resources in your portal.
    Brad

  • Getting hierarchy of books and pages in portal - sitemap

    Hi,
    I am using BEA Portal 8.1 SP5. I want to get a list of all the books and pages (up to the lowest level as one book can contain multiple books) contained in the portal. I am using BookPresentationContext.getEntitledPagePresentationContexts function. I also tried getPagePresentationContexts function. These functions return data only for active books. If user is not within a book, I do not get information about all children of this book.
    Is there a way to get hierarchy of all available books/pages? I want to use this information to create sitemap. Is there another way to do it with in portal?
    I would appreciate any help in this regards.
    Thank you,
    mqassim

    mqassim wrote:
    Hi,
    I am using BEA Portal 8.1 SP5. I want to get a list of all the books and pages (up to the lowest level as one book can contain multiple books) contained in the portal. I am using BookPresentationContext.getEntitledPagePresentationContexts function. I also tried getPagePresentationContexts function. These functions return data only for active books. If user is not within a book, I do not get information about all children of this book.
    Is there a way to get hierarchy of all available books/pages? I want to use this information to create sitemap. Is there another way to do it with in portal?
    I would appreciate any help in this regards.You have tree optimization on hence you only get the active items. To disable
    this for a specific request, such as to your site map, include the parameter
    _nfto=false in the link. See the docs on tree optimization for more info here:
    http://e-docs.bea.com/wlp/docs81/taxonomy/taxonomy.html
    In particular, look at the section "Disabling Tree Optimization"
    Gerald

  • I am creating a book and had 27 pages done manually off of an album, am trying to add 7 more pages and cannot add more pages

    I am creating a book and had 27 pages done manually off of an album , I wanted to add more pages but when I try to add a page nothing happens.

    Select the book in the left hand sourcd pane and type Command +D (duplicate).  Then do as Keith suggested to turn it into two separate books, i.e one with  1-50 pages and one with 1-57 to get all of the pages included in two about equal books.
    The will have to be ordered separately with separate shipping charges.
    OT

  • Navigation structure with books and pages

    We are setting up a navigation system in Portal 8.1. When setting this up, we have
    run into some issues with the fact that books appear in the navigation structure,
    but contain no content. As a result, we have had to create a homepage for each
    book. This creates a repeat of the section name in the navigation structure, one
    for the book and one for the page. For example, we have our Home book. Then we
    have our Home page (since books cannot directly contain portlets). In our navigation
    "Home" is repeated twice, but the book link just goes to the default page (either
    the last visited page within that session or the top page in that book if the
    no page has been visited).
    The navigation we are trying to get is very similar to the one here on bea's website.
    For example, when you click on Partners, it takes you to the Partners home page.
    This section has many other pages located inside of it as well. Does anyone have
    any suggestions on how to set this up?
    Thanks!!!
    Erin

    I've opened a support case for this item. When I get this resolved I will post
    the solution. But, to clarify the issue, the standard way that portal navigation
    works is that when a user clicks on a book the user is directed to a default page.
    This default page is either the last page visited during the session or the first
    page in the book if no page has been visited. The problem is that the book itself
    does not contain content. So if you wanted the "Partners" book to have a homepage
    titled "Partners" (just like here on BEA's site) then the word "Partners" would
    appear twice in the left nav (once as a book and once as a page). But only the
    page would actually contain content. Plus when a user clicked on the "Partners"
    book it would not always take them to the "Partners" homepage.
    "Chris Jolley" <[email protected]> wrote:
    >
    Not sure i understand your problem:
    However:
    Books can contain 1 or more Books and Pages, and can have an optional
    menu.
    Pages can contain Portlets and Books.
    What is it that you want on the 'Partners' Book?
    "Erin Powell" <[email protected]> wrote:
    We are setting up a navigation system in Portal 8.1. When setting this
    up, we have
    run into some issues with the fact that books appear in the navigation
    structure,
    but contain no content. As a result, we have had to create a homepage
    for each
    book. This creates a repeat of the section name in the navigation structure,
    one
    for the book and one for the page. For example, we have our Home book.
    Then we
    have our Home page (since books cannot directly contain portlets). In
    our navigation
    "Home" is repeated twice, but the book link just goes to the default
    page (either
    the last visited page within that session or the top page in that book
    if the
    no page has been visited).
    The navigation we are trying to get is very similar to the one hereon
    bea's website.
    For example, when you click on Partners, it takes you to the Partners
    home page.
    This section has many other pages located inside of it as well. Does
    anyone have
    any suggestions on how to set this up?
    Thanks!!!
    Erin

  • What is the best way to create Aperture book from Pages '09 document?

    What is the best way to create Aperture book from Pages '09 document?

    There is no way to import pages documents to Aperture and convert them to an Aperture book. Aperture books can only be created by manually adding images and text to the pages of a book, and using the layout of the predefined templates.
    The best you could do, would be to print your pages document to pdf and import the resulting pdf file into Aperture as a new project. This will create one image for each page. Then select the page images all at once and  create a new book. Select a theme with fullsize page images, like "picture Book", and then add the images of the pages to the empty pages of the book.
    But probably would you get a much better quality and layout, when you recreate your pages document in Aperture, by starting with an empty book and copying and pasting the text from your Pages document. But don't paste the photos from the document - try to use the originals of those photos.

  • RH 10: TOC hierarchy limited to Books and Pages only?

    I am generating WebHelp on Windows 7 Professional and viewing the generated help in IE 9.
    In the TOC pod it looks like the TOC has only two levels of hierarchy for topics: Books and pages. There does not appear to be a way to add a topic below a page in the TOC hierarchy (a sub page of a page, in other words).
    In the attached sceen shot, a topic is highlighted, and the right pointing arrow is not available.
    Surely RH 10 does not restrict the TOC to just two levels.
    Please let me know how to move a topic to appear under a page in the TOC.
    Thanks.

    Sorry but that's the way it works. You get books and pages. The books contain the pages. If you want topics indented below other topics, you will need to make another book. RoboHelp can help you with this. Right click the page and choose "Create Book from Page" and poof!
    Cheers... Rick

  • Assign information types to books and pages

    Hi,
    I'm using Robohelp 7 HTML and am trying to Assign information types to books and pages. The information types are defined however I have no way of assigning them to the topics/books. All my categories are marked as "inclusive"
    The Adobe Hep file says that:
    Click View > Pods > Topic List. The Topics List appears.
    From the Topics list, select the topic.
    Click Properties .
    Click the Information Types Tab. .......
    There is no such Tab.
    What am I doing wrong? Can someone please help

    Hi there
    You aren't doing anything wrong. What you have done is stumble across a feature of HTML Help that was never properly and fully implemented. I had a play with Information Types back in 2000 and concluded that they weren't worth the effort.
    For one thing, they are far from intuitive for end users. An end user has to know they exist, then right-click the TOC and choose to sort the TOC by the Information Type (or types) that are available.
    If you choose to continue with Information Types, I believe the process you follow is to create the types. Sounds like you have gotten that far. Then in the TOC you right-click the Books and Pages and examine the properties. On the ensuing dialog you click the Advanced tab and enable the Use Information Types option. Then you assign the types by clicking the Add... button near the bottom.
    As Information types are only used with the TOC, it comes as no surprise there is nothing in Topic Properties to deal with them. Additionally, they only apply to CHM format and are totally moot if your output is WebHelp or FlashHelp.
    My best advice would be to suggest to Adobe that incorrect information exists in the help. I'll be doing that with the comment you posted in the help topic. I just opened RoboHelp X5 and even as far back as X5 there is no Information Types tab in the Topic Properties.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • To change the TOC icons for books and pages

    I want to change the TOC icons for books and pages.
    How I do this?
    Thank

    Hi Christine and welcome to our community
    Even in traditional WebHelp output, these are simple images.
    I just created a non-skinned output to check. I'm using X5 and in
    this version you should be able to find the following images:
    * Closed book should be: whd_toc1.gif
    * Open book should be: whd_toc2.gif
    * Page should be: whd_toc3.gif
    So if you want to influence changes to these, you would find
    them in your output folder and simply replace (using the same file
    name) with the image(s) of your choice.
    Cheers... Rick

  • I need help with color pallette in iPhoto 11. I have created a book and would like to use a different color background than those given in "background." I have found the color palettes but can't seem to incorporate them into my backgrounds palette.

    I need help with color pallette in iPhoto 11. I have created a book and would like to use a different color background than those given in "background." I have found the color palettes but can't seem to incorporate them into my backgrounds palette.

    That is not a feature of iPhoto - suggest to Apple - iPhoto Menu ==> provide iPhoto feedback.
    Additionally I have no idea what you are saying here
    I have found the color palettes but can't seem to incorporate them into my backgrounds palette.
    And it always helps for you to dientify the version of iPhoto that you are using
    LN

  • I created a book and tried to place order but failed.  I followed the procedures, when the book completed uploading, the message "An error occured uploading your order" pop up.  There was no error message all along when I created the book.

    I created a book and tried to place order but failed.  I followed the procedures, when the book completed uploading, the message "An error occured uploading  your order" appeard.  There was no error message all along when I created the book. I tried several time but failed.

    preview the order and try again - http://support.apple.com/kb/HT1040
    If it still does not work boot into Safe Mode, preview again and try
    With the number of reports in the last few days it may be server overload - if so trying during a time of lower activity might help
    LN

  • How to create portal user and integrate with external appl login

    How to create portal user and integrate the user with external application for single sign-on ?
    I want to access my external application thru portal user ..?
    Shyam

    Hi Jithin,
    The link that you've shared talks about a different scenario.
    In my case, I want to pass the portal user id when the user clicks on the Help Link present in the header area.
    I am trying to pass it along with the Help Link Url property of a masthead iview but it is not getting passed to the target Url.
    I would like to know if it is possible to pass the Portal User Id in this way or not.
    Though if we create a appintegrator iview and pass the user id <User.UserID> along with the target Url, it reaches there.
    Thanks & Regards,
    Anurag

  • Changing ALT and Title Tags for Book and Page  Icons

    Hi folks,
    Are you aware of any setting in Robo Help that would allow
    you to modify or even remove the ALT and titles introduced for the
    Book and and Page icons displayed on the navigation pane. I tried
    deleting it from the RoboHHRE.lng file, but still its not going
    away. Other than deleting it from the rendered files (whlstt0.htm)
    is there any other setting within RoboHelp that would do the trick.
    My idea is to remove all ALT and title attributes given to Book and
    Pages as its causing too much redundancy.
    Regards,
    Prabhat

    Hi Prabhat -
    Apologies for the delayed response: while there is no
    Robohelp checkbox for removing this, you can step into the
    generated files and remove it. This thread should provide what
    you're looking for:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=65&catid=451&threadid =1184760&highlight_key=y&keyword1=TOC

  • How to create checkbox group and table dynamically?

    HI All
    How to create checkbox group and table dynamically?
    Regards
    Ravi

    hi
    check this links for creating  tables dnamically
    How to Create a table dynamically?
    Re: how to create a table dynamically in webdynpro
    and for checkboxgroup
    IWDTransparentContainer rootContainer =
    (IWDTransparentContainer)view.getElement("RootUIElementContainer");
    IWDCheckBox check = (IWDCheckBox)view.createElement(IWDCheckBox.class,"Check"+k);
    //Here "check"+k k represents a unique value every time u create so that u wont get a duplicate instance
    check.setChecked(false);
    rootContainer.addChild(check);
    or Re: adding checkboxes dynamically

Maybe you are looking for