How to access Navigation result from a bean

Hi
I am working on a website being developed in JSF. Right now we have a header, footer and body (kind of like tiles). The header and footer is same and only body changes. We do <jsp:include to include the header and footer.
Test1.jsp {
     <jsp:include page=Header.jsp />
    <jsp:include page=body.jsp />
    <jsp:include page=footer.jsp />
}Since the header and footer are to be shown in each and every page, I have to include them in each page. So what we decided to do was to use a bean which would find out what is the next page to be displayed and show it like this...
  <jsp:include page=Header.jsp />
<jsp:include page=<%=mybean.nextPage%> />
  <jsp:include page=footer.jsp />But because of this our users will not be able to configure the navigation rules in faces-config.xml.
Is there any way we can centralize the header and footer and other common elements and just change the body of the page using navigation rules defined in faces-config.xml.
Any other suggestions or ideas are also greatly appreciated.
Thanks

Hi Starter,
a quick rundown of the way we solved this:
faces-config.xml does specify our navigation
the url's that are mentioned in these navigation rules point to JSP with content like this
<jsp:forward page="/parts/page_layout.jsp">
<jsp:param name="page_id" value="v_zoeken"/>
<jsp:param name="main_pane" value="/page/v_zoeken_pane.jsp"/>
</jsp:forward>
page_layout.jsp includes a header, footer etc. and functions as a template.
v_zoeken_pane.jsp is the 'embedded' JSF page that changes. It is included in the page_layout.jsp like this
<jsp:include page='<%=request.getParameter("main_pane")%>'/>
Unfortunately the 'template' can only contain one JSF page because of a bug in <f:subview/> in JSF RI 1.0
Hope this helps,
Joost de Vries
the Netherlands

Similar Messages

  • Can anybody tell how to access web service from Message Driven bean

    Can anybody tell how to access web service from Message Driven bean

    Can anybody tell how to access web service from Message Driven bean

  • How to Access Maintenance View from a program

    Hi Experts,
    I have created a maintenance view for a table. i want to insert data's into the table through the maintenance view. I don't know how to access the view, how to insert data into the Maintenance view. Please suggest me how to access the view from the program.
    with regards,
    James...
    Valuable answers will be rewarded...

    Hi,
    What is the need to search for a program.
    Use transaction SM30 or SE16 to create or maintain entries in the table.
    e.g. if the Maintenance view is created on table A, then Goto transaction SM30 or SE16 and give the table name as A and proceed. This will automatically take u to the maintenance view on tha table A.
    Regards,
    Himanshu

  • How to import payroll result from 3rd party system to SAP

    Hi Experts,
    May i know how to import payroll result from legacy system / 3rd party payroll system into SAP.
    i need to import the payroll result from Jan - April (from 3rd party payroll system) and system go live on May. I using payroll malaysia.
    Thanks.

    check this link
    http://help.sap.com/saphelp_40b/helpdata/en/91/80e9087834d111a4620060b03c3b0e/content.htm

  • How to access Oracle 8g from SQL Server 2005 SP3 EE 64 Bits ?

    Dear All,
    How to access Oralce 8g from SQL Server 2005 SP3 EE 64 Bits (liked server).
    Best regards,
    Miguel Gavinhos

    Hi!
    For the Oracle version is 8.1.6. what should I install, to access Oracle trought a linked server.
    Best regards
    Miguel Gavinhos

  • How to access the cloud from my pc?

    how to access the cloud from my pc?

    Go to Verizonwireless.com, log in to your account (or register your phone number if you haven't done so).  Once logged in, Go to My Verizon, My Device, Backup my contacts.  That should bring you to your Cloud "dashboard" - where you can view Contacts, Photos, Videos, Music,Documents, and anything else  you've sent to Verizon Cloud.
    If this doesn't work for you, then where does it break down?  Do you get any error messages?

  • How to access the Oracle from Unix when SID is not provided?

    How to access the Oracle from Unix when SID is not provided.
    User Name : xxx
    Password : yyy
    SID : SID
    I use to access it using below command from Unix prompt:
    sqlplus xxx/yyy@SIDNow since I dont have SID, how to access the Oracle DB from Unix Box?
    User Name : xxx
    Password : yyy
    Service Name : zzz
    Regards,
    Sunny.

    Hi Ajay
    Thanks for the suggesstion :)..It worked as well.
    The Actual problem was in the "tnsnames.ora" file where in I need to make entry for the new SERVICE name.
    Now I am able to connect it properly.
    Regards,
    Sunny.

  • How to access Cyrillic glyphs from Trajan Pro 3 Regular?

    I can download Trajan Pro3 regular in greek and latin glyphs but not in Cyrillic. Using Mac OS 10.7.5, Font Agent Pro 6.010.
    No EULA Licence Agreement in russian, but Adobe told me I bought the right font (with cyrillic glyphs).

    Thank you a lot.
    The first downloading was not correct. I loaded again, and now it is ok.
    Best regards
    Catherine Anderegg
    Anderegg Graphic
    Le 23 févr. 2015 à 21:10, MiguelSousa a écrit :
    How to access Cyrillic glyphs from Trajan Pro 3 Regular?
    created by MiguelSousa in Adobe Type - View the full discussion
    Yes, the Trajan Pro 3 fonts have Cyrillic glyphs in them. You need to use Unicode-encoded text to get to them.
    Википедия
    Cyrillic script in Unicode
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7222734#7222734 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7222734#7222734
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Adobe Type by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • Web services and ADF 11g- get Result from backing bean

    I'm executing an action from backing bean (call Web service that returns complex data types)
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("unesiPonudu");
    Object result = operationBinding.execute();
    result is instance of oracle.adf.model.adapter.dataformat.XMLHandler$DataCollection but DataCollection is not accessible.
    How to get results from method?
    Tnx,
    Andreja

    Hi,
    there should be a result iterator in the Executables section which cotnains the result. If not, create it from the WS result entry in the DC palette. Once this iterator gets updated, you get the data from this iterator as it would be the case of a table accesses the WS
    Frank

  • How to access a value from "List of Values" by giving a name?

    I have a "List Of Values" defined in my BI Report. It comprises list of label-value pairs.
    I have defined a parameter :p_Value for the above "List Of Values" defnition. this parameter is used in datasource sql defnition to filter the query results. I configured a template which has a table that shows all the parameters used for filtering query results. If I give <?$p_Value?> in the template then the parameter value is rendered on it. But I want the "name" of the parameter and not the value. Can anybody tell me how to access name of the parameter which refers to one of value in "List of Value" defnition?

    option 1:
    Can you get the value from the DB in the report sql ?
    You have the code, inside the report query, if you can get the decoded value form that
    option2:
    create another paramater, LOV and query, and make it as hidden, and use the first :param_1_value in the lov query in the second param and decode the value.
    Now , you can refer the :PARAM_2_value in template which will have decoded value.

  • Class not Found when accessing Proxy class from backing bean in VC.

    Hi All,
    I'm attempting to access a class of a webservice(generated as a proxy) within my ADF application and invoke the method within a backing bean of the View Controller(bean scope : backing bean). The proxy has generated an ObjectFactory class among other classes. When I access this Object factory class from within the backing bean, the application throws a Class not found error.
    I don't know where the error lies since I've declared the View Controller of the ADF application dependent on the Proxy and I've imported the class and accessing it within a backing bean. How would you suggest I approach resolveing this.
    JDev : 1.1.1.4
    Thank you.
    Regards
    PP.

    Hello Arun,
    Thank you for suggesting a Data control, but my requirement isn't to drag and drop the method as a button. It's more of a behind the scnes updating data via a database adapter requirement.
    I've resolved the issue. turns out, my deployment archive didn't include the proxy.jpr. Once included it works likea charm.
    Thanks
    PP.

  • How to access the result list in teststand after execution using labwindows​/cvi

    I am developing a user interface in labwindows/cvi that runs multiple teststand sequence files and would like to combine their reports (generated in teststand) into a single file at the end of a UUT. What is the best way to do this? At the moment, I'm trying to access the result list local variable after the execution has ended using API calls from labwindows/cvi and an end-of-execution callback event but those run-time variables do not exist anymore. How do I get a hold of the result list array at the end of an execution? I would like to grab this variable and pass it along from sequence to sequence using labwindows/cvi and not teststand itself. Is this possible? Any help would be great.
    Thanks in advance,
    Luis

    Hey Luis,
    Check out the response to this thread at the NI TestStand board here!

  • How to Prevent Navigating Away From a Page?

    Hi all,
    I�m developing a JSF application using IBM Rational Application Developer v6.0 and have this scenario:
    Background:
    I have a page that acts as a 3 step wizard. It also contains links to other pages. The page has a corresponding �pagecode� bean with a request scope and another managed bean with a session scope and basically everything happens here, all the action and action listeners. Also this managed bean handles three important events the �page load�, �page load ends�, and �page post�.
    Desired Behavior:
    I want to enforce the user to complete all three steps of the wizard without navigating away from this wizard like page by displaying a message �hey you must complete all three steps� or something like that :).
    Problem:
    The user can click on other links on the page and navigate away from the wizard without completing all three steps.
    Any suggestions to this issue would be of great help.
    Thanks in advance.

    First: how do I change my stupid screen name? :)
    Thanks for your solution. Would this also work for normal html navigation? My understanding that this may only work for the JSF framework navigation rules. On the other hand I also have plain html links on the page and not really sure if the JSF framework also handles these types of navigation.
    This maybe a partial solution though and I really appreciate this.
    Thanks.

  • Re:How to get the vo from managed bean

    Hi all,
    I am using Jdev11.1.2.3.0
    My requirement is : I have one jspx page.In that page i have created one form,so i need to get the values from managed bean.here i wont create by using data control view instance.so finally i have to get the table values from managed bean.so how can i get it.can anyone help me please.
    Thanks,
    G.Shilpa

    So you're not using ADF BC at all, right ?
    From JSF point of view, it does not matter how you provide UI control values.
    What you can do, for example, is to use pure JDBC in order to get and display the database values.
    What you need in your backing bean, is appropriate properties (setter/getter method pairs).
    In the getter, you can obtain DB values by using JDBC
    Take a look at:
    JSF 2.0 + JDBC integration example
    JSF JDBC Integration
    JDBC in JSF - YouTube

  • How to get save result from EXECUTE from a dynamic SQL query in another table?

    Hi everyone, 
    I have this query:
    declare @query varchar(max) = ''
    declare @par varchar(10)
    SELECT @par = col1 FROM Set
    declare @region varchar(50)
    SELECT @region = Region FROM Customer
    declare @key int
    SELECT @key = CustomerKey FROM Customer
    SET @query = 'SELECT CustomerKey FROM Customer where ' + @par + ' = '+ @key+ ' '
    EXECUTE (@query)
    With this query I want get col1 from SET and compare it to the column Region from Customer. I would like to get the matching CustomerKey for it.
    After execution it says commands are executed successfully. But I want to save the result from @query in another table. I looked it up and most people say to use sp_executesql. I tried a few constructions as sampled and I would always get this error: 
    Msg 214, Level 16, State 2, Procedure sp_executesql, Line 12
    Procedure expects parameter '@statement' of type 'ntext/nchar/nvarchar'.
    So the output should be a list of CustomerKeys in another table.
    How can I save the results from EXECUTE into a variable? Then I assume I can INSERT INTO - SELECT in another table. 
    Thanks

    CREATE TABLE Customer
    (CustomerKey INT , Name NVARCHAR(100));
    GO
    INSERT dbo.Customer
    VALUES ( 1, N'Sam' )
    GO
    DECLARE @query nvarchar(max) = ''
    declare @par varchar(10) = 'Name',
    @key varchar(10) = 'Sam'
    CREATE TABLE #temp ( CustomerKey INT );
    SET @query =
    insert #temp
    SELECT CustomerKey
    FROM Customer
    where ' + @par + ' = '''+ @key+ ''' '
    PRINT @query
    EXEC sp_executesql @query
    SELECT *
    FROM #temp
    DROP TABLE #temp;
    DROP TABLE dbo.Customer
    Cheers,
    Saeid Hasani
    Database Consultant
    Please feel free to contact me at [email protected] as well as on Twitter and Facebook.
    [My Writings on TechNet Wiki] [T-SQL Blog] [Curah!]
    [Twitter] [Facebook] [Email]

Maybe you are looking for

  • How to backup data when hard drive is failing.

    I think my hard drive is failing.. I booted using Install DVD, and got message in Disc Utility that "this drive has a hardware problem that can't be repaired." It mentioned I should backup data and consult apple representative.. I clicked on Macintos

  • Retina MBP 2.6 only 3 hours of battery life?

    My 1 week old Retina MBP 2.6 is only getting 3 hours max on battery with light surfing. When watching videos i also only get 3 hours tops. Bluetooth is off, keyboard light off, screen backlighting 50%, gfxCardstatus set to integrated only (also confi

  • Adding Titles & Lines in Numbers

    How can I add a title to my spreadsheet? How can I add lines in the spreadsheet to distinguish some of the cells and rows? A partial line would be sufficient, either a ..... or a - - - - .

  • HT201328 how can i tell if my iphone 4 is unlocked?

    How can i tell if my iphone 4 unlock worked?

  • Error when trying to sync new update

    How annoying once again I didn't even know there was an update. Itunes downloaded the update but when it tries to sync it I get this error cannot sync ^0 to the iphone unknown error (-19) and I restarted my phone and restarted itunes. Now at the sync