Page opens in a particular section of the document on CommandButton click

Hi all,
In my application the new url to go is decided at run time. This is done in the commandButton processAction(ActionEvent event) method. Now the problem is that the new page to be opened in a particular section of the current page .. say for example the new page should be rendered in the following div section-
<div id="div_result">
// area where the response to be rendered
</div>the above functionality is achieved using anchor tag and XMLHttpObject as below
<script language="JavaScript" type="text/javascript">
browserIsIE = (navigator.appName == 'Microsoft Internet Explorer') ? true: false;
var receiveReq = getXmlHttpRequestObject();
//Gets the browser specific XmlHttpRequest Object
function getXmlHttpRequestObject()
   if (browserIsIE)
     return new ActiveXObject("Microsoft.XMLHTTP"); //IE
     else
        return new XMLHttpRequest();
function openLink(page)
     if (receiveReq.readyState == 4 || receiveReq.readyState == 0) {
          receiveReq.open("GET", page, true);
          receiveReq.onreadystatechange = handleOpenLink;
          receiveReq.send(null);
function handleOpenLink()
   if (receiveReq.readyState == 4)
     document.getElementById('div_result').innerHTML=                    receiveReq.responseText;
          </script>In above document.getElementById('span_result').innerHTML=receiveReq.responseText; line renders the response in the div.
how can this be achieved using jsf tags/components?
any help will be highly appretiated...
thanks in advance ...

your problem is that you are trying to load on client side a part of the page while jsf was maded to work on server side with a back bean, use ajax instead, to work on client side.
Eg: You can use a rendered attibute, you can redisplay a panelgroup with a rendered attibute to a condition, can load a subview on the redisplay

Similar Messages

  • A document page opens that is too big for the display and runs off the end of the monitor

    How do you fix a problem where document pages open that are too big for the display and runs off the end of the monitor? The borders are off the monitor so there is no window edge to grab and adjust.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • By mistake i ereased my mackbook pro's disk. and when is restared it recovery page opened. and i did not purchase the osx mountain lion. do i have any other way to recory it without purchasing the copy of osx. can i do it using a usb having image file of

    by mistake i ereased my mackbook pro's disk. and when is restared it recovery page opened. and i did not purchase the osx mountain lion. do i have any other way to recory it without purchasing the copy of osx. ?can i do it using a usb having image file of mountain lion?

    Did you buy your machine second-hand? That's really the only way you would have to purchase OS X 10.8.x from the App Store... but, yes, if you have a USB thumb drive with a bootable installer (such as made with Lion DiskMaker) you can boot from that and reinstall OS X.
    Clinton

  • TS3147 how do i change the orientation for documents in pages when printing double sided so that the document opens like a menu?

    how do i change the orientation for documents in pages when printing double sided so that the document opens like a menu?
    write now the document is printing so that when folded the interior of the menu is upside down.

    See also this article about the New Tab page (about:newtab):
    *https://support.mozilla.org/kb/new-tab-page-show-hide-and-customize-top-sites

  • How can I change one section of the document to a landscape orientation and not the whole document?

    How can I change one section of the document to a landscape orientation and not the whole document?

    Page Setup, including page orientation, is done in the File menu. The setting applies to the whole document. As Peter says, you can rotate the contents of a page (not including the text layer of a word processing document).
    As an alternative, you could use Numbers, where Sheets are empty canvases onto which you may place images, charts, tables and text boxes, and where page orientation may be set for individual Sheets. The main tradeoff is that you lose many of the built-in word processing and page layout features of Pages.
    Regards,
    Barry

  • MS word It prints one file for each section of the document

    With MS word (2004 and 2008)It prints one file for each section of the document.
    somebody can help me with that????

    Please post Office related questions on Microsoft's own forums for their Mac products:
    http://www.officeformac.com/productforums

  • I am trying to change the page number format in a section of my document.  I want 2 sections to have 2 different page number formats.  How can I do this?

    I have 2 sections in my Pages document.  I am using Insert Auto Pages in footers to number my pages, but when I try to change the number format for one section it changes the format to the same as my change for the other section.  I want auto page number in each section but want each section's page numbers to have different formats. I have managed to get the auto page numbering to begin separately in each section, but just can't get the formats to be different.  There must be a way to do this.  Anyone know how?

    You look on the right edge of this page in the box entitled [More Like This].
    The dumb machine was able to find threads containing available answers .
    Using the Search feature with a simple request like
    page number AND format AND section
    would have give these links without opening a new thread.
    Yvan KOENIG (VALLAURIS, France) samedi 28 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    Please :
    Search for questions similar to your own
    before submitting them to the community

  • When I open .docx in pages, why do I lose parts of the document?

    I have been happily converting from word to pages for the last year.  But recently I noticed that I have been losing pages of word documents when I open them in pages.  I suspect that the losses relate primarily to the type of content since in the first case the document contained a table and in another it contained embedded graphs.  The odd thing is that some of the info is being converted, just not all.  When i opened the document containing the table it appeared to have a single page but I later discovered that it was actually a 2 page table, but only the first half came through into pages.  The other documents contained several pages of embedded graphs and charts.  One of them was visible, the others seemed to not exist.  In that case it was a single bar chart in the middle of the original document while the others were missing.
    Is there anything I can do about this short of using a different program?  I can't continue opening emailed word docs in Pages if I risk losing vital information in the process.

    That helps with the table problem. Thanks! 
    And I figured out the source of the problem with the charts.  The original document seems to be referencing an external file, or at least that's what the pages warning says.  I can open it just fine in word without having the files that created the original chart though.  Is there any kind of workaround for this or are embedded charts just not going work in pages?  I think the original charts were created in excel and then pasted into word. 

  • Why I cannot open in my Mac the documents of Pages open before in iPad after download the new version of this aPPLICATION?

    I bought the Page application. I download the new version in my Ipad. When i wish open a document in my Mac, if I have openned before in my Ipad, I can´t. I have download in my Mac the new version of the Lion´s mountain and the pages. In my Itunes appear the application of the pages " with pen".In my Mac some documents appear with the ink´s bottle and these I can´t open it. When I try, an annoucement appear saying me "You need the new version" of Pages, And like I say before in my I tunes of the  Mac appear the new version of Pages( the pen) and an information saying me what I don´t have any new application to download.
    ¿ What I must do , please?

    If you want to use documents created by the iOS 7 version of Pages, with Pages on your Mac, then you must upgrade your Mac to OS X Mavericks and update Pages to the newest version that only runs on Mavericks.
    The only alternative would be if Pages for iOS 7 allows you to export the document for Pages for Lion.

  • A bookmarked page opens in a narrow screen on the left not the main page

    When I click on the bookmark, a new pane opens on the left of the screen with the bookmarked page. This pane is too narrow to read or use.

    Right-click that bookmark and select Properties, then un-check the preference for Load this bookmark in the sidebar, and then click Save.
    Using JavaScript buttons on web pages for "Bookmark this Page" causes that preference to be selected when saving the bookmark in that manner. So, don't use those buttons, use the "Bookmark this Page" feature that is built into Firefox instead.

  • Not able to edit the words "chapter" and "section" in the document workflow

    Hi all,
    I would like to point out something that could be a bug. The 2 words "chapter" and "section" are not editable in the document workflow: I can just change the title for each chapter and the title for each section, but I am not able to change the words "chapter" and "section".
    The problem is, iBooks Author is using the words "chapter" and "section" (heading 1) to build the TOC: if I am using iBooks Author in English, but I am writing a text in French, I am not able to change "Chapter" into "Chapitre". The only way to go, what I found out, is to close the app, change the OSX Lion system language, log out, re-open iBooks Author and start a new book: opening an English book  in the French version of iBooks Author will not change automatically the language in the workflow.
    Does anybody has a trick to edit the words "chapter" and "section"?
    Best regards,
    Mauro

    Hi KT,
    Thank you, but it's still in english.
    I changed to "only number", then wrote the word "chapter" in french or italian or german before the number, then deleted the preview on the iPad and made a new preview, I still have the same result: the word "chapter" is still in the language of the app. 
    To be clear: I am writing a text using iBooks Author in italian. I have to translate the same text in french, the fastest way would be to rework the italian version (I already have all the multimedia stuff inside). I changed the italian word "Capitolo" (chapter) to the french one "Chapitre" (using the advices of AodhFFXI and K T). And for the first slide of the chapter that's fine.
    But if I "close down" the first chapter slide or if I click on the top left botton to go to the chapter TOC, there I still have the word in italian, even if the word has been deleted in the layout:

  • Pages forcing quit, but will not reopen the document.

    i have a pages document on the v 5.2 which i have been editing. It froze on me while i was saving it, and now every time i try to open it, pages says i need the newest version (5.2, which I have) OR it force/automatically quits the pages application and closes any documents i have open. It gives me the option to "reopen" but then nothing happens.. I NEED HELP PLEASE! Even just opening an earlier verison of the document would be helpful.

    You have 2 versions of Pages on your Mac.
    Pages 5.2 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Older versions of Pages 5 can not open files from later versions of Pages 5.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud and opened in a newer version of Pages is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed almost 100 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    To avoid automatically opening your damaged file when you restart Pages, hold down the shift key as you open it.
    Peter

  • How to open a Numbers doc after message "The document (name) could not be opened." is received?

    I opened an Excel file with multiple worksheets by doubleclicking on it, saved it as a Numbers file and made lots of changes to it. Now I can't open it at all. All I get is the message "The document (name) could not be opened."
    Any ideas?

    It seems that your doc is corrupted.
    Try to rename it from ********.numbers to ********.numbers.zip
    then double click it
    You will get a new ********.numbers file with the structure 'package'.
    Try to open it by double-click.
    Sometimes it works.
    Yvan KOENIG (VALLAURIS, France) jeudi 22 décembre 2011 13:16:28
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • HT2506 In pages how can I link text within the document? I can find a bookmark option and links only allows me to link to a web page

    Hi all,
    This is my first time using this discussion site! Any help would be great, as I am getting very frustrated with pages!
    What I am trying to do is link text at the bottom of a document to a page at the beginning of the document. I can't find a bookmark option adn when I clink insert link it only provides an options to link to a web page. Help! thanks

    Bookmarks are missing (sadly) and with them, the ability to create an in document link.
    I was looking for this feature in a Table of Contents. When you assign a 'style' to text in a document, you can Insert > Table of Contents. Then Pages will keep the TOC updated and you'll be able to 'link' from the page number in the TOC. (Not much help though, for the OP)

  • Load the document in Firefox (click gmail "Documents") error: The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    load document in Firefox (clicking gmail "Documents", error: "The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    * http://kb.mozillazine.org/The_page_is_not_redirecting_properly

Maybe you are looking for

  • Installation error on rhel 5

    hi firends i got problme  when i am installing  sap on  rhel 5.0 with oralce 10g ,ecc 6.0 in 19 phase create secure store  i have issue see below ERROR 2009-04-21 12:21:45 CJS-30050  Cannot create the secure store; see output of log file SecureStoreC

  • Image not sharp in bridge

    I am really frustrated that my images look slightly blurred in bridge. Looks sharp when I open in photoshop, but whenever I see 100% preview in bridge, image is just not sharp!!! * I have purged all cache and did a full extraction * I have checked fu

  • ICal is doubling all entries past and future.

    Each entry is on the date in duplicate. It started suddenly. I was traveling - that may be a factor, but it has not happened in the past. How do I revert to only one entry per event on my calendar? Thanks!

  • I want to run an NI GPIB card and a Keithly GPIB in the same machine.

    I want to run a NI GPIB and a Keithly in the same machine for software development. Our labs use both types of card. Another employee tried to make it happen, but failed. I would like to use 1 machine due to software licensing issues.

  • How do I restore my speed dial page?

    I lost my homepage & my speed dial ..How do I restore them both?