How to include page fragment dynamically in BSP

Hi all,
I want to include a page fragment dynamically in my BSP default.htm.
Is it possible to give a variable (path to page fragment) in the include? Instead of using:
<%@include file="../bsp_app/test.htm" %>
I want to give:
variable = "../bsp_app/test.htm"
<%@include file= variable %>
Thank you for your help.
Oliver

Welcome to SDN.
check out this weblog.
<a href="/people/sap.user72/blog/2005/06/02/dynamic-includes-for-bsp">Dynamic Includes for BSP</a>
Regards
Raja

Similar Messages

  • How to include page fragment for JSF application deployed on WebSphere?

    Hi all,
    I have the following urgent JSF problem, I hope that you can support me in solving it;
    - I have JSF application need to be deployed on IBM WebSphere 6.0.1 Application Server.
    - I have the tag:
    <jsp:directive.include file="Actions.jspf"/>
    which includes a page fragment.
    - This is working file with Tomcat 5.5 & Sun Application Server 9, but it didn't work on WebSphere and each time the page fragment contents rendered as text, I mean that the JSF components in the fragment doesn't converted to html controls.
    Please help...
    Message was edited by:
    AHmadQ

    We use:
    <%@ include file="../WEB-INF/jspf/head.jspf" %>where the head.jspf is a jsp fragment like:
    <% response.addHeader("Cache-Control", "no-cache"); %>
    <% response.addHeader("Pragma", "no-cache"); %>
    <% response.addIntHeader("Expires", -1); %>
    <html>
    <head>
         <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
         <meta http-equiv="Pragma" content="no-cache" />
         <meta http-equiv="Expires" content="-1" />
         <title><%= pageTitle %></title>
         <link href="../style/style.css" rel="stylesheet" type="text/css" />
    </head>Cheers,
    Illu

  • Unable to acess page fragraments bindings of included page fragment

    Hi All,
    We are using Jdeveloper 11.1.1.5.0
    I have included a page fragment(say JSFF2) inside a page fragement one(JsFF1).
    Issue is, bindings defined in the page defination of JSFF2 is not getting picked up
    when jsff1 is rendered on UI.
    Can any one please help how we can include the page defination of J2FF2 inside the
    pagedefination of JsFF1, without using the regions?
    used declarative component to add the page
    <af:declarativeComponent viewId="/com/panduit/spa/pageFragments/spaMaintaince/PartsPricing.jsff"
    id="dc1"/>
    Thanks,
    Chandana

    Thanxz for the response.
    I have two jsff page parentjsff and childjsff. Using declarative component i have include child jsff in parent jsff.
    On my my child jsff , I have table which based on transient VO.No data is being displayed in the table, when I run my JSPX that contains parent JSFF.
    But when Ii include transient VO iterator in my parents jsff page def, then only data is being displayed.
    Thanxz
    Chandana

  • How to include Forward button dynamically using code?

    hello,
    i am creating my notification message dynamically using clob type document type attribute , and its working fine. But how i include the Forword Button in my message body.
    please advice

    i am allready doing that only, in that what will be the name of the button.
    can i put like this.
    htp.p( '<input type="button" name="forward">');
    then what about the event, shall i have to write the code for forward also.
    please advice.

  • Attention Shay/Frank: Adding af:goLink tags on a page fragment dynamically

    Hello ADF guru's!
    I have a need to add <af:goLink> tags dynamically on a jsff page fragment. This page fragment will be a view activity on a taskflow which needs to be packaged as a ADFLibrary. I am wondering if this can be done.
    Any help will be appreciated.
    Thx.
    Lalit
    Edited by: Lalit Arora on Sep 23, 2009 2:47 PM

    In a backing bean you can use something like:
    containercomponent.getChildren().add(newComponent)

  • How to include partner number dynamically in the archive filename ?

    Hi,
    I am working on IDOC archiving. Since we have a lots of IDOCs with the same Master IDOC name but coming from different partners, it would make sense to generate as much archive files as there are different partners.
    I have seen that the archive filename is dynamically built with concatenation of parameters.
    I guess we could use the filename_exit function module to set a parameter to the value of the partner number, but how to get the partner number ?

    Welcome to SDN.
    check out this weblog.
    <a href="/people/sap.user72/blog/2005/06/02/dynamic-includes-for-bsp">Dynamic Includes for BSP</a>
    Regards
    Raja

  • How to include image in dynamic .pdf CF8

    What is the proper way to include an image in a dynamic .pdf?
    In CF7, I did this.
    <img src="file://///xxxDocServer/HiRes
    Photos#Biography.File_Path#" width="119" height="153" />

    Hello,
    Someone maybe able to help you here https://discussions.apple.com/community/books
    Good luck

  • How to do page break in the BSP page?

    Hi,
    I want to display the records in the BSP page, but the records are too many, I want to display them in several pages and I don't want to use tableview, I only want to write code to realize it.
    Can anyone give me some suggestions about it?
    Thanks very much. Awards will be provided.
    Best Regards,
    Chris Gu

    Hi,
    You can look at <xhtmlb:pager> tag:
    <xhtmlb:pager id     = "pager"
                  design = "<%=cl_xhtmlb_pager=>co_design_horizontal_simple %>+<%=cl_xhtmlb_pager=>co_design_indicator %>"
                  hMin   = "1"
                  hMax   = "<%= LINES( record_table ) %>"
                  hIndex = "<%= l_index %>" />
    You can check which action was done with the following code:
    CASE l_event->event_class.
      WHEN application->mk_evtcl_pager.
        l_event_pager ?= l_event.
        CASE l_event_pager->if_htmlb_data~event_type.
    **    Go to previous page/selected record
          WHEN cl_xhtmlb_pager=>co_event_left OR cl_xhtmlb_pager=>co_event_1left.
            SUBTRACT 1 FROM l_index.
    **    Go to next page/selected record
          WHEN cl_xhtmlb_pager=>co_event_right OR cl_xhtmlb_pager=>co_event_1right.
            ADD 1 TO l_index.
    **    Go to page/selected record with index given by the user
          WHEN cl_xhtmlb_pager=>co_event_enter.
            l_index = l_event_pager->hindex.
        ENDCASE.
    ENDCASE.
    Regards,
    Tanguy

  • How to include "pages" and "documents" as different tabs in most popular item webpart from site collection ?

    Hello,
    I require to customize the most popular item web part that should show the "pages" and "documents" from entire site collection in different tabs in the same web part.
    can anyone suggest me the approach on the same ?
    Thanks and Regards,
    Dipti Chhatrapati

    Hi,
    It would not be an easy job to customize an existing web part which with its own design.
    As a suggestion, it would be more appropriate to create a custom new web part with the help of Search API in your scenario, there, we can create custom style more
    freely than customizing on an existing web part.
    About Search API in SharePoint 2013:
    https://msdn.microsoft.com/en-us/library/office/dn423226.aspx
    Some jQuery Tabs plugins would be helpful to you:
    http://www.sitepoint.com/10-beneficial-jquery-tab-plugins/
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to modify page item dynamically

    Hi experts,
    I have a DB table called attribute in that i am having set of attributes namely att1,att2,att3....... And in application builder i had created a page called service request. When i run the page it have att1,att2,att3 and their corresponding page items. For example ATT1 has text field,ATT2 has a text field,ATT3 has select list. Now the user want to edit the page items(while the page running) ATT1 to select list and ATT2 to Select list and ATT3 to Text field after the changes it should reflect in the application page.
    Edited by: karthi on May 3, 2011 2:45 AM
    Edited by: karthi on May 3, 2011 3:22 AM

    hi,
    can you please tell me the steps. I had write the following code in pl sql->region->source.
    begin
    SELECT
    empno,
    APEX_ITEM.HIDDEN(1,empno)||
    APEX_ITEM.TEXT(2,ename) ename,
    APEX_ITEM.TEXT(3,job) job,
    mgr,
    APEX_ITEM.DATE_POPUP(4,rownum,hiredate,'dd-mon-yyyy') hiredate,
    APEX_ITEM.TEXT(5,sal) sal,
    APEX_ITEM.TEXT(6,comm) comm,
    deptno
    FROM emp
    ORDER BY 1;
    end;
    BUT IT SHOWS THE FOLLOWING ERROR
    *1 error has occurred*
    ORA-06550: line 3, column 1: PLS-00428: an INTO clause is expected in this SELECT statement
    Regards,
    Karthi
    Edited by: karthi on May 3, 2011 9:50 PM

  • How can I do a dynamic include of a page fragment?

    I have a technical support website with a lot of simple html pages. What I want to do is hyperlink from the index page to another page, which would display these html pages as a page fragment, dynamically based on a session bean set by the hyperlink.
    I basically want to do this, if it was possible:
    <jsp:directive.include file="#{SessionBean1.pageToDisplay}"/>
    Now the FAQ's has a topic "How can I do a dynamic include of a page fragment?", which would seem to answer my question.
    But this is all it says, and it makes no sense to me. Could someone please translate? :)
    "Using a page fragment file (but using instead of the usual Creator approach) will accomplish a dynamic include."

    Here is 1 solution:
    First add this to the jsp:root tag:
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    Then surround the page fragment directive with something like this:
                            <div style="position: absolute; left: 24px; top: 408px">
                                <c:if test="${SessionBean1.count > 0}">
                                    <jsp:directive.include file="testPF.jspf"/>
                                </c:if>
                            </div>

  • 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 :-)

  • InputFile persistent problem in Page Fragments

    I'm using jdeveloper 11g
    I have a table which contains inputfile controls which is placed inside page fragment.Then I included page fragment using Taskflow into a page. but it doesn't keep the persistance of inputfile.
    if anybody come across any solution please let me know.
    thank you.

    Hi Anton,
    You can treat the fragment as any page, its going to have its own pageDef that will be included automatically by the page containing its task flow within a fragment (assuming you're using the data control/component drag-drop feature in JDeveloper). This is actually one of the best working feature of 11g imho.
    Regards,
    ~ Simon

  • How can I include a dynamic content in the page fragment?

    My header.jspf contains codes similar to the following in the init() method:
    Object o =getValue("#{sessionScope.username}");
    if(o!=null){
    greetingStaticText.setRendered(true);
    }else{
    greetingStaticText.setRendered(false);
    But this code is not working as expected.
    I tried the following in the jsp page, but still no use:
    <jsp:include page="../Header.jspf"/>
    Thanks.

    Before the initial render, your logic sets rendered false. Then on the postback when the user logs in, init executes (setting it false again); the static text is overwritten with the corresponding static text object from the component tree; and subsequently the action method executes (setting username in session); the page redisplays, with rendered still false. You can overcome this by setting the rendered property from your action method. Here are steps that simulate the solution:
    1. Create a property in SessionBean1 called username of type String.
    2. Drag a Page Fragment Box onto Page1. Create a fragment called Fragment1.
    3. Drag a Hyperlink onto Page1. Set its text to "Go to Login Page" and its url property to /faces/Login.jsp.
    4. Double-click to edit Fragment1.
    5. Drag a Static Text. Set its id to greetingText and its text to "Welcome, #{SessionBean1.username}!"
    6. Drag a Hyperlink. Set its id to logoutHyperlink and its text to "Logout"
    7. Double click the logoutHyperlink and use the following code:
    public String logoutHyperlink_action() {
    getSessionBean1().setUsername(null);
    greetingText.setRendered(false);
    logoutHyperlink.setRendered(false);
    return "Page1";
    8. Append the following to Fragment1.init():
    String username = getSessionBean1().getUsername();
    greetingText.setRendered(username != null);
    logoutHyperlink.setRendered(username != null);
    9. Implement these two methods as follows:
    public void setGreetingText(StaticText st) {
    boolean rendered = this.greetingText.isRendered();
    st.setRendered(rendered);
    this.greetingText = st;
    public void setLogoutHyperlink(Hyperlink h) {
    boolean rendered = this.logoutHyperlink.isRendered();
    h.setRendered(rendered);
    this.logoutHyperlink = h;
    10. Create a new page called Login.
    11. Drag a Page Fragment Box onto Login.jsp (choose Fragment1.jspf).
    12. Drag a Text Field and bind its text property to #{SessionBean1.username}
    13. Drag a button. Set its id to loginButton and its text to "Login"
    14. Double-click loginButton and use the following code:
    public String loginButton_action() {
    ((UIComponent)getValue("#{Fragment1.greetingText}")).setRendered(true);
    ((UIComponent)getValue("#{Fragment1.logoutHyperlink}")).setRendered(true);
    return "Page1";
    15. Open Page Navigation and create an outcome called "Page1" that goes from Login.jsp to Page1.jsp.
    16. Run the app.
    17. Page1 displays with no greeting text. Click the "Go to Login Page" link.
    18. Type "misty" in the text field and click the Login button.
    19. Page1 displays, this time with the greeting text "Welcome, misty!" and a Logout hyperlink.
    20. Click the Logout hyperlink to logout. Page1 displays, this time with no greeting text or Logout hyperlink.

Maybe you are looking for

  • Extension Manager for CS3

    I have to use both Flash CS3 & Flash CS5 but I can't install extensions on CS3. I can only install extensions on CS5 only. What's going on? This is why I have to use both versions. I recently upgraded from CS3 to CS5 BUT after a few months working in

  • MSI P35 Neo-F (MS-7360): Computer randomly freezes while playing games

    Hi there, I have reached the end of my technical knowledge right now and I'm not even sure if this area of the forum is appropriate. The problem: While playing higher-end games like Crysis 2, Anno 1404, Mass Effect 2 etc. my computer randomly freezes

  • Itunes wont insall properly, please help!!

    Can anyone help. i need this to use my ipod but it wont insall properly.  Please help.

  • Relationship between CRMPAROLTP table(R/3) and R3AC6 transaction(CRM)...

    Hello Experts, In transaction R3AC6 where you maintain the middleware parameters, I maintained the 'PRICINGTYPE' value to 'G' and in table CRMPAROLTP in R/3, I added a new entry for 'PRICINGTYPE' also with a value of 'G'. Now, I am expecting that whe

  • Chooser problem in 9.1 ?

    Can't print to my Laserwriter select 360, or make PDFs, or send faxes. When I go to do any of this it tells me to select a printer in the chooser. When I go to do this it shows up but does not stick, however it is still creating a desktop printer ico