How to load a page or page layout  when click on hyperlink using jsf

Hi,
I created a hyperlink using a4j:commandlink, when i click on this link, i have to load a page. How to include the page using, <ui:include>, when i click on the hyperlink.
Please help me in this issue

Enclose your <ui:include> component in a <h:panelGrid> or a <f:subView> as said above, and use rendered attribute that is set to false.
When you click on the link, set the rendered attribute of panelGrid or subView to true. Now use reRendered attribute of a4j:commandLink to rerender the panelGrid or subView.
Also check this regarding RoseIndia .

Similar Messages

  • How to get the page number when click the(Next page) Icon on Tableview

    Hi all,
           I had implemented a tableview in one of the Views that I had implemented for a BSP application. I am using MVC framework.
    Let us assume when we execute the BSP and a table view got 11 pages.
    How I can keep track of the page number when we click the  (Next page, Previous page, Bottom , Top) Icons on my tableview . Is there any attribute willstore that  corresponding page number of the tableview when we click the corresponding Icon's??
    I had checked both CL_HTMLB_TABLEVIEW and CL_HTMLB_EVENT_TABLEVIEW Classes and i don't find any attribute.
    Any help will be appreciated.
    Thanks in advance.
    Thanks,
    Greetson

    Hi Greetson,
      I was thinking to write a weblog about that.
      But now I would like to have your opinion:
      I coded a generic method in my main controller (but you could also insert it in the application class) that save the firstvisible row in the class  me->firstvisiblerowlist (that is a table)
      DATA: l_firstvisiblerowlist TYPE zmmsp_tableview_1st_visi_row.
      DATA: ff  TYPE ihttpnvp,
            ffs TYPE tihttpnvp.
      me->request->get_form_fields( CHANGING fields = ffs ).
      LOOP AT ffs INTO ff.
        IF ff-name CP 'f*visiblefirstrow'.
          READ TABLE me->firstvisiblerowlist INTO l_firstvisiblerowlist WITH KEY name = ff-name.
          CASE sy-subrc.
            WHEN 0.
              l_firstvisiblerowlist-name  = ff-name.
              l_firstvisiblerowlist-value = ff-value.
              MODIFY me->firstvisiblerowlist FROM l_firstvisiblerowlist INDEX sy-tabix.
            WHEN 4.
              IF sy-tabix = 0.
                l_firstvisiblerowlist-name  = ff-name.
                l_firstvisiblerowlist-value = ff-value.
                APPEND l_firstvisiblerowlist TO me->firstvisiblerowlist.
              ELSE.
                l_firstvisiblerowlist-name  = ff-name.
                l_firstvisiblerowlist-value = ff-value.
                INSERT l_firstvisiblerowlist INTO me->firstvisiblerowlist INDEX sy-tabix.
              ENDIF.
            WHEN 8.
              l_firstvisiblerowlist-name  = ff-name.
              l_firstvisiblerowlist-value = ff-value.
              APPEND l_firstvisiblerowlist TO me->firstvisiblerowlist.
          ENDCASE.
        ENDIF.
      ENDLOOP.
    Than you have to provide a generic method to read the firstvisiblerow for each tableview
    GET_FIRSTVISIBLEROW
    *IM_TABLENAME
    *RE_VALUE
      DATA: l_firstvisiblerow  TYPE zmmsp_tableview_1st_visi_row.
      READ TABLE me->firstvisiblerowlist INTO l_firstvisiblerow WITH KEY name = im_tablename.
      IF sy-subrc = 0.
        re_value =  l_firstvisiblerow-value.
      ELSE.
        re_value =  1.
      ENDIF.
    And in the DO_REQUSET of each controller you could write something like:
    * Paginator
      DATA: l_tab1_visiblefirstrow TYPE sytabix.
      l_tab1_visiblefirstrow = o_bsp_main->get_firstvisiblerow( 'f019id_tab1_visiblefirstrow'    ).
    As usual pass the value to the view via:
      o_page->set_attribute( name = 'tab1visiblefirstrow' value = l_tab1_visiblefirstrow ).
    Did you get it?

  • How to load html page or website in flash as3

    hi
    how to load html page or web link (www.google.com)  in flash as3.
    please help me...

    Use the navigateToURL function...
    var url:String = "http://www.wherever.com";:
    var req:URLRequest = new URLRequest(url);
    navigateToURL(req);
    OR in one line...
    navugateToURL(new URLRequest("http://www.wherever.com"));

  • Preserve Page Layout when printing to FlashPaper2 Printer

    Hello everyone,
    Does anyone have any ideas on how to preserve the page layout
    that comes with a document to print on a common printer the same
    way it prints with FlashPaper printer [from the File>Print
    common dialogue]? It is like the whole object positioning gets the
    confusion worse confused drill!
    Using WinXP SP2 IE, Macromedia FlashPaper 2, No antivirus,
    firewalls or any blockers, OS and FlashPaper fully updated, tasks
    running: only system tasks, MS Office and flashpaper. Fonts:
    default Windows fonts, no other fonts installed on the system.
    Thank you in advance!

    Hi Camogenny,
    I'm sorry to hear that you are having difficulties printing with your iPad to your Officejet Pro 8600.
    AirPrint doesn't have a way to change the settings. You can always check the AirPrint Basics document provided by Apple.  There are more setting choices if you use the HP ePrint app or the HP All-in-One Printer Remote app. I have included the FAQ documents for both apps for your reference. Both apps should work for you without setting up the ePrint feature of the printer as long as the printer and iPad are both connected to the same wireless network. 
    Happytohelp01
    I work on behalf of HP
    AirPrint Basics
    http://support.apple.com/kb/HT4356#How_to_Print
    HP ePrint Mobile App FAQs
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=c01923321
    HP All-in-One Printer Remote Mobile App FAQs
    https://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c03561640

  • Could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc

    could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc

    could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc

  • Blank page produced when clicking on title of Content Area Portlet in version 3.0.8

    We are getting a blank page when we click the title of the ContentArea/Folder portlet in a page. The problem is with the URL, which has _mode=6 as a parameter. When we reoved that parameter from the url content area is loaded accurately. Can you please tell us how to fix this bug. We are using 3.0.8.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi,
    go to http://metalink.oracle.com/
    click on PATCHES and search for product PORTAL release 3.0.8, platform Sun Solaris. The result is:
    "ID:694095 Patch::1574770
    BLANK PAGE DISPLAYED WHEN CLICKING SOME PORTLET LINKS IN MONITOR TAB PAGE".
    Download the patch and follow the instructions.
    Bye,
    Ettore.
    null

  • How to load data from PSA to CUBE & DSO at a time using DTP in BI 7 ?

    HI all,
    I am new to BI 7 . How to load the data at same time to DSO & INFO CUBE using DTP.
    Please provide me steps to load & plz specify which update mode I have to use ( FULL OR DELTA ) which one is best.
    Plz Suggest me.
    Thanks & Regards,
    Kiran m.
    Message was edited by:
            kiran manyam

    Below are the basic steps which we follow in any BI 2004S system:
    1)Create datasource. Here u can set/check the Soucre System fields.
    2)Create Transformation for that datasource. (no more update rules/transfer rules)
    2.1) While creating transformation for DS it will ask you for data target name, so just assign where u want to update ur data.
    DataSource -> Transformation -> Data Target
    Now if you want to load data into data target from Source System Datasource:
    1) Create infopackage for that data source. If you are creating infopackage for new datasources, it will only allow you update upto PSA, all other options u can see as disabled.
    2)Now Create DTP (Data Transfer Process) for that data source.
    3) NOw schdule the Infopackage, once the data is loaded to PSA, you can execute your DTP which will load data to data target.
    If you are loading data from one one data target to other, no need to use PSA, you can directly execute DTP in that case.
    Data Source -> Transformation (IP/DTP) -> Data Target1 -> DTP ->Data Target 2
    Use the below link for detailed example:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fc61e12d-0a01-0010-2883-e2fc63ef729b
    Infosources are no more mandatory with BI 7.0, below is the link to scenarios where we use infosources:
    http://help.sap.com/saphelp_nw04s/helpdata/en/44/0243dd8ae1603ae10000000a1553f6/content.htm
    Full or delta depends on your requirement...
    chk the below thread to know better
    difference between the various loads
    hope it helps
    Message was edited by:
            sriram viswanathan

  • How to deselect or turn off a tool when i am through using it?

    how do i deselect/turn off a tool when i am through using it?

    You don't, just select another tool. I usually leave mine on the move tool, since that is used the most.

  • HT4993 How do you turn the weird sound off when sending a text using the iPhone 4S

    How do you turn the weird sound off when sending a text using the iPhone 4S?

    Go to Settings-Sounds-Text Tone and change to None.  You're referring to the sound when posting a message to someone else, correct?  The only issue is if you set to none, you will not hear the incoming either.

  • How to display the details of particular order when click on button in sapui5

    Hi Experts,
        How to display the details of particular order when click on button in sapui5?
    I Have a requirement that is i want display all the list of orders coming from backend as shown in image below
    then in that i have a button when i press the button  it need to display the details of particular order as shown in image below
    Please help me .
    Thanks & Regards
    chitti

    Does anyone know how to display the index of current desktop?
    Brute force - - I have written the number of the Desktop directly onto the wallpaper picture I am using for each Desktop  (easy to do with Preview).
    All Desktops are using different wallpaper photos, so they are easily recognized by the color scheme, and in the upper left corner is the number.
    Regards
    Léonie

  • How to get facebook to say via ipad when I share something using my ipad

    how to get facebook to say via ipad when I share something using my ipad

    It appears that the app is indeed not available in Finland, as I can't find it by searching the iTunes Store there. You'll have to contact the developer of Onlive Desktop and ask if they have any plans to release their service in your country.
    Regards.

  • How to change the page layout to fit 2 portlets in a row?

    Hi,
    I am very new to Plumtree portal, please be gentle.
    We are in the trial and design phase for our company's portal and we are tring Plumtree now.
    We selected the page layout as one narrow panel and one wide panel. In the wide panel, I have a wide portlet to fit the whole row on the top, then we want to divide to 2 columns under the first portlet as the middle section of the page, so that we can place 1 chart on left side and 1 chart on right side of the wide panel.
    HOW TO DO IT?
    also, now I developed 2 testing portlets in vb.net. Top one is the wide one. The 2nd one is a chart, when I deployed it in the page, the chart overlaps the top portlet! HOW TO FIX IT?

    By default you can only lay out the portlets in the assigned columns and cannot span, but you could try cheating (I don't know what the impacts of this might be, though, so be careful)
    Change the layout to a 2-column that also has a content canvas (darker gray box). For your portlet you want to have span both columns, set it up as a content canvas (you may have to re-register it). I think that might work, but... honestly, I don't know enough about content canvas settings to konw what might happen down the road. I'm hoping "a portlet is a portlet is a portlet"
    Like this...
    [         content canvas         ] <-- put your portlet here
    [ narrow ] [         wide         ]
    It also sounds like you're using gridlayout on your .NET portlet - you'll want to change that to use flow. Grid will use absolute positioning (bad here). I'd suggest reading the .NET web consumer install / developer PDF for additional info on how to get ASP.NET portlets to work.

  • How to get the page layouts programmatically and create a page for that pagelayout

    how get the page layouts programmatically and create a page for that pagelayout and add webpart
    please help me with da code.Thanks
    adityadugyala

    Hi if your page layouts alreday created then create new page programaticaaly  and apply your page ayouts to that page by coding you can do something like following
    PublishingWeb publishingWeb =
    PublishingWeb.GetPublishingWeb(web);
    PageLayout[] layouts = publishingWeb.GetAvailablePageLayouts();
    PageLayout layout = layouts[0];
    string pageName =
    "MyPublishingPage5.aspx";
    PublishingPage newPage = publishingWeb.GetPublishingPages().Add(newFolder.Folder.ServerRelativeUrl +
    "/"+ pageName, layout); 
    newPageUrl = web.Url +"/" + newPage.Url;
    newPage.Description = "This my sample publishing page";
    newPage.Title = "My Publishing Page";
    newPage.Update();
    Please follow link
    http://blogs.msdn.com/b/sowmyancs/archive/2008/03/15/create-publishing-pages-in-portal-sites-programmatically.aspx
    Please mark answer , if you think answer is helpful or correct.

  • How to load Html page in Flex 4 application

    Hi All,
              I am able to load html page in flex 3 application but i am unable to load in flex 4 application.
    How can i do it.
    Can any help me regarding this.
    Thanks in Advance
    Raghu.

    This may help - http://www.deitte.com/archives/2006/08/finally_updated.htm
    Thanks and Best regards,
    Pallavi Joshi | [email protected] | www.infocepts.com

  • How to load another page in a frame?

    Hi!
    I have a frame with a page where is a button. I need to load another page in the frame when I click the button. How can I make it on the ADF? I work on JDeveloper 10.1.3.4.

    I found example. Thank you for help. Refresh works very well! This code:
        protected void refreshPage(String refreshpage) {
            FacesContext fc = FacesContext.getCurrentInstance();
            ViewHandler ViewH = fc.getApplication().getViewHandler();
            UIViewRoot UIV = ViewH.createView(fc, refreshpage);
            UIV.setViewId(refreshpage);
            fc.setViewRoot(UIV);
        refreshPage("/transfers/ClaimForm.jspx");

Maybe you are looking for

  • Image Type In Crystal Report

    I am trying to use a  .gif logo in my crystal report but it's give error that crystal report does not support .gif file. Please tell me what type of image file(extension) i can use in Crystal Report?

  • ITunes will not allow me to delete songs off my ipod, option is not available

    i am trying to delete songs from my ipod 160 GB, and i do not have the ability to. I've tried delete key, right clicking, and edit. when i go to edit, delete option is there but grey'd out...please help i'd like to switch up my music. i also tried re

  • Weblogic throwing "null SOAP element Exception" in multi-part SOAP response

    Hi All, I'm using weblogic 10. My application is a webservice client generated using '*clientgen*', which is running on weblogic, and is invoking a remotely hosted webservice ( Remotely hoseted webservice may not be running on weblogic). I've the wsd

  • Creating Popup Context Menu's

    I am trying to make a pop menu ("conext menu"?) when the user right clicks on a selected path object. I have looked through the docs and found that the basic suite claims to be able to do this. Using the create function, I see that it doesn't do anyt

  • Oracle Service Registry - UserName Token profile

    Hi, My web services use UserName Token profile for authentication. It also supports encryption. Is there a way to publish these information along with the wsdl? Steve