How do I add a page in the book, programmatically.

I use Weblogic 10.2. We need to make when you press the button on the page, to add another page. How can I do? Help please. If possible, I would like to see an example of working code.

So now programmatically add pages:
          BookBackingContext bookBackingContext = BookBackingContext.getBookBackingContext(this
                    .getRequest());
          PortalPath portalPath1 = this.communityDefinition.getPortalPath();
          DesktopPath desktopPath1 = this.communityDefinition.getDesktopPath();
          WebAppSearchCriteria webAppSearchCriteria = new WebAppSearchCriteria(
                    this.webApp);
          try {
               PagedResult pagedResult = this.layoutDefinitionControl.getLayoutDefinitions(15,
                         webAppSearchCriteria, this.context);
               Iterator<LayoutDefinition> iter = pagedResult.nextPage();
               LayoutDefinition layout = iter.next();
               PageDefinition newPage;
               newPage = this.pageDefinitionControl.createPageDefinition("Test",
                         "Test add page", layout.getLayoutDefinitionId(), false, true,
                         this.webApp, this.context);
               BookInstanceId parentBookInstanceId = BookInstanceId
                         .createBookInstanceId(new Integer(bookBackingContext
                                   .getInstanceId()));
               this.bookInstanceControl.addNavigable(
                         newPage.getPageDefinitionId(), position,
                         parentBookInstanceId, this.webApp, portalPath1,
                         desktopPath1, this.context);
          } catch (Exception e1) {
               e1.printStackTrace();
          }

Similar Messages

  • How do I add additional pages to a book?

    How do I add additional pages to a book?

    Just below the thumbnails of the existing book pages is a + button. Press this and the pop-up menu "speaks for itself".

  • How do you add a page on Numbers?

    Help!!!
    How do you add a page on the Mac application Numbers?
    Every time I search it on google it comes up with how to insert page numbers, and that's not what I want!!
    So, what I really, really need to know is how do you insert a page on the mac application Numbers??

    Do you mean this?
    Click the "plus" icon to add a sheet.
    SG

  • How do I add multiple pages from my scanner to the adobe app?

    How do I add multiple pages from my scanner to the adobe app?

    You can't do this in Reader. It must be done in Acrobat on Windows or Macintosh.

  • How to add a page in the SAP Scripts

    Hi All,
    I want to know how to add a page in the sap scripts. there is already sap script developed by some other person.
    Now I have to add a page in front of that and have to add some more data.I added a page in page windows but thats not at all working.
    Please help me out in this.
    Thanks,
    Praveen

    new page will create in sap scripts using new page command.
    you have to set condition like after some number of records displayed in page new page has to be trigger.
    ex:YOU HAVE SO MANY RECORDS FOR PRINTING BUT YOU WANT TO DISPLAY 100 RECORDS IN FIRST PAGE REMAINING IN SECOND PAGE LIKE THAT.
    Here you can use NEW PAGE COMMAND .
    IT IS OPPOSITE PURPOSE OF PROTECT AND ENDPOTECT.
    Reward if useful.

  • How do I add "Save As" to the Pages drop down menu?

    How do I add "Save As" to the Pages drop down menu?

    It took me awhile but I found what I was looking for. This is posted at http://www.tuaw.com/2012/07/29/get-save-as-back-on-mountain-lions-file-menu-easi ly-and-without/
    Option 1. Terminal.app If you are comfortable using Terminal.app, you can add a different keyboard shortcut this with one simple line. First, quit all your apps except Finder and Terminal. Then paste this command (as one line) into Terminal.app (and press Return):
    1
    defaults write -globalDomain NSUserKeyEquivalents -dict-add 'Save As...' '@$S' 
    view rawdwrite-global-saveas.sh hosted with ❤ by GitHub
    That's it!
    Launch TextEdit and open the 'File' menu and you should see "Save As..." back in its rightful spot with its original Command + Shift + S shortcut, as shown in the image above.
    Aside: After you enter the 'defaults write' command, you will not see any confirmation that it was entered correctly. Terminal.app is a little terse sometimes. If you want to verify it from the command-line, enter this:
    defaults read -globalDomain NSUserKeyEquivalents
    and look for "Save As..." = "@$s"; in the output.
    Option 2. System Preferences.app If you would rather not use Terminal, it's still very easy to add the keyboard shortcut.
    Launch the System Preferences.app, then open the "Keyboard" preference pane.
    At the top you will see "Keyboard" and "Keyboard Shortcuts" – click "Keyboard Shortcuts" (labeled '1' below). Then in the list on the left side, click "Application Shortcuts" (labeled '2' below). Then click the "+" button (labeled '3' below):
    Once you press that "+" button, a small window will appear asking you to enter the title of the menu item and the keyboard shortcut that you want to use.
    Enter "Save As..." in the "Menu Title:" field, and then press the keyboard shortcut that you want to use. In the example below I pressed Command + Shift + S:
    Note: It used to be true that you had to enter an actual ellipsis (which you can get by pressing Option+ ; on a US-English keyboard). However, when I tested this in Mac OS X 10.8.2, it worked with three consecutive periods.
    Bonus Tip: Hide the "Duplicate" menu item.
    In my original article I suggested that you also enter a keyboard shortcut for "Duplicate" and while youcan do that if you wish, you do not need to do that.
    However, if you would like to hide the Duplicate menu item, you can do that. There are two steps: first, remap "Save As..." to Command + Shift + S (as shown above). Then the 'trick' is to remap "Duplicate" to Command + Shift + Option + S.
    What you will have done is swap the keyboard shortcuts for "Duplicate" and "Save As..." which means that OS X will make "Duplicate" the optional command. If you open the "File" menu and hold down "Option" the "Save As..." command will change to "Duplicate"
    (Thanks to TUAW reader 'rbascuas' for pointing this out in response to the original article!)
    Important Addendum: "Keep changes in original document"
    As we reported in August 2012, the "Save As..." command in early versions of 10.8 had an unexpected and likely unwanted side effect in Mountain Lion: it would save the changes in the new document (created by "Save As...") but would also save the changes to the original document.
    However, Apple realized that users might not want that behavior, so in Mac OS X 10.8.2 they added an option "Keep changes in original document" which you can see here:
    Option A: If you want to save the changes you've made in the document and then save the document with a different name, then make sure that the box is checked.
    Option B: If you want your original document to stay as it was when you last saved it and create a new document based on the modified content of that document, then make sure that box is not checked.
    If you do not see the 'Keep changes in original document' box, then the application is probablygoing to give you the "Option B" behavior, but if you are not sure, I would suggest choosing Cancel in the "Save" dialog, then copy and paste the contents of the document into a new file, and save the new file. I know that's several extra-and-less-convenient steps, but if you are worried about preserving the original document, better safe than sorry.
    You could also save the file, duplicate it in Finder, and rename the new instance. Open old file and revert to previous save using 'Versions'.
    Frankly,I wish that Apple had just left the "Save As..." command alone, but for some reason they didn't ask my opinion. That said, I'm glad that they brought it back in Mountain Lion. I would have paid $20 for that feature alone.
    Note: This article was re-written and republished on 2013–02–21. The original process still works, but I wanted to update it to reflect some additional information.

  • HT3387 When I use pages the languages that I mainly use are English and Hebrew. The spellchecker works for English but not with Hebrew. How can I add another language to the spellcheck?

    When I use pages the languages that I mainly use are English and Hebrew. The spellchecker works for English but not with Hebrew. How can I add another language to the spellcheck?

    http://m10lmac.blogspot.com/2011/06/extra-spell-checking-dictionaries-for.html

  • How do you add a page without messing up all the images below.?

    How do you add a page without messing up all the images below? 
    I try the pages ->add a page beak but it messing up with all the images below. Examples : I want to insert a page between page 1 and 2. My images doesn't follow my text. All the images stay in place and all the text bump 1 page.  Pretty frustrating!

    What version of Pages?
    Peter

  • How do I add web part in the event receiver after the site is provisioned in SP 2010?

    How do I add web part in the event receiver after the site is provisioned in SP 2010?

    You try the below steps:
    1. Use long operation to provision the site, so that it does not time out in process.
    2. After provisioning, you can add a page or add the web part directly to landing page of site.
    For each of the above steps you can find the sample code pieces.
    if you couldn't get that, let me know. I will share with you.
    Thanks, Ashish If my response has helped you, please mark as answer.

  • How do I add a link to the list of links under the "My Account Link"

    Q) How do I add a link to the list of links under the "My Account Link"?
    A) Edit any of your portlet web services and go to the "Advanced URL Settings" and then "User Configuration URL". If you type a path in this box, a link displays on the My Account page.
    You need to restart your portal web server to see results immediately because the display page is cached.

    What To Do If Your iDevice or Computer Is Lost Or Stolen
    If your Mac, iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should do in advance - before you lose it or it's stolen - and some things to do after the fact. Here are some suggestions:
    Reporting a lost or stolen Apple product
    AT&T, Sprint, and Verizon can block stolen phones/tablets
    What-To-Do-When-Iphone-Is-Stolen
    Lost or Stolen iPhone? Here’s What to do.
    6 Ways to Track and Recover Your Lost/Stolen iPhone
    Find My iPhone
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
    Find My iPhone
    Setup your iDevice on MobileMe
    OS X Lion- About Find My Mac
    How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Third-party solutions for computers:
    VUWER 1.5.4
    Sneaky ******* 0.2.0
    Undercover 4.7
    LoJack for Laptops Premium Mac
    STEM 2.1
    MacPhoneHome 3.5

  • How do I add a page in pages (iCloud pages).

    How do I add a page in pages, right off the bat making a document was easy but I can't figure out how to add a page. Im sure there is some super easy thing that I am missing. I would have assumed to add a page once you were in your document you could just scroll down too far or go to file new page, but in file all that shows up is the normal file commands of safari. (New file, New tab,Open file.. and so on)

    Hello jooe15,
    Thank you for the question.  It sounds like you would like to insert a new page in the document you are working on in Pages for iCloud beta.  You can add a new page by creating a page break using these steps:
    Add a line or page break
    If you want to move text to the next line or page, you can insert a line or a page break. A line break, or a soft return, starts a new line without starting a new paragraph. A page break moves the line of text to the top of the next page.
    Add a line or page break
    Click where you want the text break to occur.
    Do one of the following:
    Add a line break: Press Shift-Return.
    Add a page break: Click Insert Page Break in the Text pane.
    Pages for iCloud beta Help - Add a line or page break
    http://help.apple.com/pages/icloud/1/#/gil2bc7f5230
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How can I add an iView to the Detailed Navigation itself

    How can I add an iView to the Detailed Navigation itself and hides the other hyperlinks?

    To add an iview on the Detailed navigation side of a page:
    1.Double click the page which brings up the page editor.
    2.Click the Display dropdown box and choose Dynamic Navigation.
    3.Add an ivew to it.Save and add the page to a role to see the results.
    if this is not u wanted, post back here.
    Regards.

  • Can we add different pages in the jasper report

    Dear friends,
    Can anyone help out ,how to add different pages in the jasper report and also can i increase or decrease the textfield size dynamically,
    Thanks in advance
    Urgent

    http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=showcat&catid=8

  • How to add a title to the book cover/spine?

    Hi,
    appears to be a stupid question, but I couldn't find any answer in the Videos by JK o any other help page:
    How can I add a title to he book cover and the spine of a blurb-book made in LR5?
    I could not find any cover template having a title (only a lot of text).
    Thanks a lot in advance,
        schleifi

    I have worked with Booksmart and made one book successfully. I have also made a book in Lr 5.2 and had it printed by Blurb to my satisfaction.
    Compared to creating a book in Lr the workflow in Booksmart is cumbersome and slow.
    (1) During the creation of a book in Lr I test the book often by exporting it as a PDF. This option is only available when you select PDF instead of Blurb - but it is possible to switch between PDF and Blurb without harm. The only change is that the Blurb logo page disappears when PDF is selected. Viewing the PDF in Acrobat tells me what the book will look like in print since my monitor is calibrated and set to the correct intensity (brightness).  It also tells me if my sharpening is good. For the export to PDF I select 100 for quality; color profile sRGB; file resolution 300; sharpening High; media type glossy.
    A Blurb representative told me that these settings come close to the settings that Lr uses when the book is uploaded to Blurb.
    In Booksmart I can't export to PDF.
    BTW you should sharpen the image so much that it looks a bit too sharp in your PDF. When the boook is printed the ink droplets spread out a tiny bit before they dry. This tends to make the print softer than it looks on screen.
    (2) Booksmart is not color managed. Therefore in Booksmart you have no feedback how your book will look in print. If you want to test your images you have to softproof them in Photoshop.
    (3) When I make a book I find often that my develop adjustments are not optimal. In Lr it is very easy to switch the the Develop Module, make the necessary adjustments and switch back to the Book Module. With Booksmart you have to export the adjusted image again - or it has to be re-published if you use the Blurb plug-in.
    (4) In the past I have made complaints that Lr does not give enough flexibility for the layout. Since then I have worked more in Lr and I find the Book Module actually quite good.
    I find that the full page bleed allows the most flexibility for creating my own layout. Starting with a full page bleed I use the padding feature to place the image anywhere on the page and in any size I want. The boxes for "Page Text" and "Photo Text" allow for more than one column. The text can be edited by adjusting Tracking (all letters are spaced wider/closer), Kerning (individual pairs of letters can be spaced), Baseline (letters can be pushed up or down), or Leading (the distance between different lines of text can be adjusted). There are no such features in Booksmart.
    (5) Selecting a color for page background or for text is cumbersome in Booksmart. In Lr it's easy.
    The cover of my first book in Lr looks like this:

  • How can I add donate page with different levels of giving such as $250, $150, $50, Other

    How can I add donate page with different levels of giving such as $250, $150, $50, Other.  I am using Foxy Cart…is this possible?

    From Muse end , you can add texts as donation value with paypal button which would take the users to paypal site for payment, with Foxy Cart you can try the suggestion mentioned here :
    https://forum.foxycart.com/discussion/4417/donation-page-radio-button/p1
    Thanks,
    Sanjit

Maybe you are looking for

  • 1DVD CS3 MC vs 4 DVD CS3 MC?

    What is the difference between the 1DVD Version of CS3 Master Collection and the 4DVD Version CS3 Master Collection... aside from the obvious... 1 is 1DVD and one is 4, one takes 8GB to install the other takes 15GB... As far as I can find out both co

  • Header co

    Dear friends, Our client has following requirement. ---In Purchase order ,Header conditions related to delivery costs are using.This delivery cost amount is paid to the same vendor. --Currently when we add the header condition,that amount is not addi

  • Flash Lite 2 For Palm OS 5

    Is there any chance or news that the Flash Lite 2 Player will get released for the Palm OS 5? Thanks

  • Switching from CS4 & LR5 on Windowns desktops to CS+LR monthly subcription for Mac: be aware of, or beware of, before/during?

    Just switching from CS4 & LR5 on Windowns desktops to CS+LR monthly subcription for Mac, with catalogues, files etc residing on external HDD (multi-location living; lots of travel). Anything I need to be particularly aware of, or beware of, before/du

  • Buy or not buy ??? ... this is the problem

    Case: MidiTower ATX COOLER MASTER CM690 II ADVANCED black Ventole: 1x ARCTIC COOLING F12PWR Alimentatore: LC-POWER LEGION X2 LC-1000 1000W MODULARE CPU: INTEL CORE i7 950 3,06Ghz 8Mb cache sk 1366 BOX Scheda Madre: ASUS P6X58D-E Ram: CORSAIR DOMINATO