How to include a page conditionally ?

Hi all !
I have a web page made of different sections. Every section is included in a separate page.
     <f:view>
          <h:form>
                            <%@ include file="filters.jsp" %> 
                <%@ include file="dataTableAdmin.jsp" %>       
                <%@ include file="modalPanel.jsp" %> 
                               </h:form>
     </f:view>Now I have the requirement that some sections should be visible only to the admin users.
The roles are referenced in a Bean registered in faces-config.xml.
How can I include a page depending on the value of the Bean ? I'd need something like the "rendered"
attribute on the "include" tag, but I'm afraid it doesn't exist......
Do you have any suggestion ?
Thanks alot
Francesco

Put the include into a panelgroup and use the rendered attribute...

Similar Messages

  • How to include html page or html code in adobeflex 4 web application please give me a solution.

                     How to include html page or html code in adobeflex 4 web application please give me a solution.
                       Thank you
                       Chandra Sekhar

    hi,
    go thru this link, may be of some help for you
    About IFrames
    http://www.deitte.com/archives/2006/08/finally_updated.htm
    IFrame Src
    http://code.google.com/p/flex-iframe/
    About the IFrame Approach
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm

  • How to include HTML page on a screen

    Hi,
      How to include HTML page on a module-pool screen. i want to handle hyperlinks on that page. how ca n i do that?....plz send me reply vvvery fast

    Hi Amarnath,
    1. RSDEMO_HTML_VIEWER
       Check the above program.
    Regards,
    Amit M.

  • How to include the page dynamically in JSF

    Hi all
    Below is static include
    <jsp:include page="../inc/sideMenu.inc"/>
    How to include the file dynamically
    Thanks

    Hi,
    Though I have not tried it I think making use of a variable to hold the page name to be included should work. Could you try this and see if it works?
    Cheers
    Giri :-)

  • How to include the pages dynamically in JSF

    Hi all
    Below is static include
    <jsp:include page="../inc/sideMenu.inc"/>How to include the file dynamically
    Thanks
    Sudhakar

    Hi,
    Though I have not tried it I think making use of a variable to hold the page name to be included should work. Could you try this and see if it works?
    Cheers
    Giri :-)

  • Q: how to include a page in a region

    Hi all,
    i need some help
    how to include the URL of a page in a region, my requirement is that i have some links in the page and i need when i press a link a region under it will be rendered below it not in another page
    the links is ready and the pages is ready
    just i want a the region to contain a url based on the selected link.
    i know how to make a region rendered or not.
    and i have tried to use URiInclude but i couldn't figure out exactly how to do it
    i have also searched the forum and i couldn't find something about it.
    so please if any one knows the solution or can provide me with a link, i will be very thankful
    thanks

    user604057,
    Technically you can't add a page to another page. A page can have only one pagelayout region. So you will have to make a copy of those pages as regions without a pagelayout region and use.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to include a time condition in a Vi?

    Hi,
    I need to run an event for one hour and after this time interval has elapsed, I need to stop this event (let�s call it event A) and go for event B. I have been trying to work with the Elapsed Time (LabView 7.0) sub-vi with no success. That sub-vi sounded perfect as I could even work with a boolean condition to trigger event B. Basically what I would like to know is how to generate a time condition in which I can input the time and after that time has elapsed I can generate an action to pass to another event? Would it be an simple way of doing so?
    Thanks for the help.
    Adriana

    I may be missing something here, but I think your problem is not the Elapsed Time VI, but the way your events are triggered/controled or chained. Or may be you just forgot to wrap the Elapsed time vi into a loop ?
    See the attached example...
    The "Run event A" sub.vi is intended to trigger event A. Something like commuting a switch or launching a dynamically loaded vi. It should not wait until event A finishes (of course...).
    There are many possibilities... and I'm sure that you will get other solutions.
    Keep wiring !
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Elapsed_time_and_events.tif ‏16 KB

  • How to include ZPR0 pricing condition in an exisiting open sales order

    Hi...
    i have an existing open sales order report. i wanted to include a column of ZPR0 condition in the existing ALV grid..i hav to add this ZPR0 pricing consition for intercompany STO...The delivery plant is LFA1-WERKS. how do i proceed.??? plz help me!!

    For sales order..
    vbap-werks WAS MY REFERNCE IN THIS...
    i fetched (VKORG,VTWEG) from t001w.. with that i gt KNUMH(FROM A004) table.. with the knumh(condition record number i gt KBETR AND KONWA from KONP.....
    Similarly i gta do it with an STO.
    LFA1-WERKS is the delivery plant.
    how shud i proceed in this

  • How to include the page header in smartforms

    Hi,the text element of the type include text is placed in the main page in header.
    this text element extending to several pages.
    The user wants to include page header only  on pages where this element displays.
    EX:in the page they are 5 elements include text will appear from 3rd page.
    then they want to display the page header only from 3rd page.
    IS it possible?
    Message was edited by:
            hymavathi bomma

    Hi!
    You have to define more header objects.
    You can use conditions, which object appears. You can use a flag variable for this: gv_header_flag.
    Based on this gv_header_flag, you can tell the Smartform, which header to print.
    And you have to fill gv_header_flag with correct values in some ABAP code, entered into your Smartform, before you print your header.
    Regards
    Tamá

  • Photoshop Web Gallery - how to include home page link

    I have included a web gallery (created in Photoshop) to my website. Everything works fine; however, after scrolling through the photos there isn't a link to help return to the site's home page. The only option is to click the back arrow many times until you get there. Any ideas how to do this?
    Thank you.

    Kat,
    Your IE7 settings may be the same as mine, for which I generally keep the Pop-Up Settings fitering level to "High", thus blocking all pop-ups. At this level, I find all of Geoff's links for his Aerial Photos (but curiously not those on other pages) and text links on the Links page are treated as pop-ups. At the Medium level that automatically blocks "most" pop-ups, all links open to a new window for me. IE7 treats all links creating new windows or tabs as pop-ups, and you can control how they behave by changing the Tabbed Browser Settings options for "When a pop-up is encountered". Here's how to get there:
    IE7 Tools Menu (or Control Panel) > Internet Options > General tab page > Click "Settings" in the Tabs category and then check the option desired in the resulting dialog.
    Regards,
    Daryl

  • How to include jsp page in jsf ???

    Hi,
    I use JDeveloper 11g and the framework ADF. I want to include a jsp page in another page ( jsf page).
    In fact, I do this :
    <f:view>
    *<jsp:include page="/Menu/MenuGlobalDynamique.jsp"/>*
    </f:view>
    when i run my jsf page nothing is displayed and i have this error :
    javax.servlet.ServletException: Erreur OracleJSP :
    oracle.jsp.parse.JavaCodeException: Ligne n° 19, oracle.jsp.parse.JspParseTagDeclaration@cf767d <br>Erreur : Java code in jsp source files is not allowed in ojsp.next mode.
         at oracle.jsp.runtimev2.JspReportUtil.reportException(JspReportUtil.java:180)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:692)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:722)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:646)
    Have you an idea to help me and resolve my problem.
    Thank you.

    Hi,
    Can you post the source of the MenuGlobalDynamique.jsp page?
    if MenuGlobalDynamique.jsp is a JSF page and you want to include it into other JSF page you must mark out (or delete) this parts from the MenuGlobalDynamique.jsp like here:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces"
              xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
      <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
                  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
                  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <!--
      <f:view>
        <afh:html>
          <afh:head title="impForm">
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
          </afh:head>
          <afh:body>
            <af:messages/>
            <af:form>
    -->
    <!--
            </af:form>
          </afh:body>
        </afh:html>
      </f:view>
    -->
    </jsp:root>regards,
    Branislav

  • How to "include" another page or servlet in a standard servlet

    How can I achieve a "include" in a servlet?
    From what I see... the include() method is on the PageContext class, which is in org.apache.somewhere... right??
    Or am I missing something?
    thanks

    How can I achieve a "include" in a servlet?
    From what I see... the include() method is on the
    PageContext class, which is in org.apache.somewhere...
    right??
    Or am I missing something?
    thankshttp://java.sun.com/webservices/docs/1.0/api/javax/servlet/RequestDispatcher.html#include(javax.servlet.ServletRequest,%20javax.servlet.ServletResponse)

  • Help!help!how do include other page in same page.

    I have 4 parts in a page,following:
    1�A     The 1 part is the top of the page . (Page Fragment1)
    2�A     The 2 part is the left of the page . (include tree in Page Fragment2)
    3�A The 3 part is the place where user wants to launch the page�B
         4�A The 4 part is the bottom of the page . (Page Fragment3)
    Now, I think I select tree node, then display navigation page in 3 part.

    try to use frame.
    <iframe frameborder="1" height="458" marginheight="2" marginwidth="2" name="t1" src=""
    style="left: 1px; top: 125px; position: absolute; z-index: 500" width="999">Test...test..</iframe>
    ===> <ui:imageHyperlink action="#{xxx_action}" binding="#{Page.imgxxx}" id="imgxx"
    imageURL="xxxx" style="xxxx" target="t1"/>

  • How to call  New Page conditionally in Adobe Form

    Hi,
       Actually I want to develope a adobe form in which the employee training details will be come Page wise.
    Suppose there is 2 employee one has 90 and another has 60 training details.Suppose on  each page only 50 line items can be displayed.now for first employee in 1-st page 50 line item will come ,there afte in secon page 40 line item will be come.Now when second Employee details is coming it should not come in secon page .it should be come on third page.
         Can anybody help me regarding this matter

    Hi,
      I think there is no way to do this,  atleast for Adobe Designer v.7.0. But if you know XML or java scripting you can try that. I dont have much knowledge on it.
       However there is one way. Add dummy records in the table so that there  are mulitple of 50 records for each employee. I have also heard that adobe designer 7.1 has some extra options. Please try that if possible.
      Please let me know too if you find anything out. It will help me too..
    Regards,
    Susanta

  • 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 .

Maybe you are looking for