Command_link page navigation and acoinListener

I have a command link inside a form that includes a table, my page navigatoin does not work though.
when i clik on the link i am still in the same page. the actionListener is not called either. It seems like a pretty basic thing. but I can not get it to work.
when I view the html code generated the <form> action attribute is still set to the same page. regardless of the value of the action attribute for <h:command_link>
here is portion of the jsp file
<h:form>
<h:data_table>
<h:column>
<f:facet name="header">
<h:output_text value="Name"/>
</f:facet>
<h:command_link id="PartnerName" action="#{Partners.success}" immediate="true" actionListener=" #{Partners.handlePartner}">
<h:output_text value="#{item.partnerName}"/>
</h:command_link>
<h:data_table>
</h:form>
here is a code snippet from the backing bean Partners
public String success()
return "success";
public void handlePartner(ActionEvent event)
System.out.println("in partner action listener!!");
Here is my navigation rule:
<navigation-rule>
     <from-view-id>partners.jsp</from-view-id>
     <navigation-case>
          <from-outcome>success</from-outcome>
          <to-view-id>newpartner.jsp</to-view-id>
     </navigation-case>
</navigation-rule>
Any help is really really appreciated.
thanks
--Omid

thanks for the replay...
you know what? i had my bean-scopse set to request. that was the source of the problem. I changed it to
session and now it is working. This sounds like a bug. doesn't it?
thanx
--Omid                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • ADF: Page navigation and buttons stop working after a while

    Hi all,
    We have a web app built with ADF Faces/JDev 10.1.3 that runs in OC4J 10.1.2.0.2. Sometimes we encounter this problem in our JSF pages: after a while (can't relate to some particular action), all navigation in a page (links, tabs, buttons, etc) just stops working, i.e. you can click them, the server receives some request (we see this in the logs), but the desired action never happens. It's just like the page keeps refreshing all the time. There is no navigation out of the page at this point, it's completely stuck.
    If, at the same time, we connect to the app from a different browser, it will work fine, but the first browser will remain in the faulty state.
    I turned the enableTokenValidation in the pages on and off, but it seems to make no difference. Can anyone provide an idea about what might be going on?
    Thanks,
    Serban

    Hello,
    Any answer on this issue? It seems that ADF is pretty unstable if user clicks repetedly on the same submit button (like a double-click) or on different tabs on the old page, until the next page loads. We are using .jspx pages and combined with SSL access this behaviour is behaving even worser.
    Basically we encounter the following problems:
    1) It seems that users with not so good network access (and accessing ADF app on a SSL OC4J) still have access to the origin page until the target page loads on a submit. If they click a different button or tab on the origin page in this interval (waiting for their previous action to complete), they usually get a JavaScript error that will block the interface until they do a manual refresh (F5)...
    This can be reproduced even on client machines with good network access if you click very fast on the same button twice or on two different submit buttons.
    2) It seems that sometimes the browser keeps showing the loading bar in the status bar even if the new .jspx page is already loaded. Any advice on how to solve this, as the users might be tempted to push application buttons or browser navigation thinking that the page is blocked?
    All the above happen on IE 6, which is the preffered browser.
    Thanks! I can give you more details if needed.

  • Page navigation and wildcards

    Since I use a couple of page fragments with menu's, I'm using wildcards for the navigation between pages. However, I'm trying to do things like
    <from-view-id>foo</from-view-id>
    Somehow JSC doesn't understand this. Is there any detailed information available somewhere about page navigation wildcards? I really don't feel like inserting 32 rules instead of 2 wildcards...

    The navigation file is a faces config file (as shown by the DTD at the top of the file), and the DTD (http://java.sun.com/dtd/web-facesconfig_1_0.dtd) has this to say about wildcards:
    <!--
    A "ViewIdPattern" is a pattern for matching view identifiers in
    order to determine whether a particular navigation rule should be
    fired. It must contain one of the following values:
    - The exact match for a view identifier that is recognized
    by the the ViewHandler implementation being used (such as
    "/index.jsp" if you are using the default ViewHandler).
    - A proper prefix of a view identifier, plus a trailing "*"
    character. This pattern indicates that all view identifiers that
    match the portion of the pattern up to the asterisk will match the
    surrounding rule. When more than one match exists, the match with
    the longest pattern is selected.
    - An "*" character, which means that this pattern applies to all
    view identifiers.
    -->
    <!--ENTITY % ViewIdPattern "CDATA"-->
    Thus, as you can see you're a bit limited in where you can put the *, and you can only use one.
    -- Tor
    http://blogs.sun.com/tor

  • Page navigation and send parameters between different projects (ADF Faces)

    Hi,
    I am using ADF Faces 11g and have an application which has multiple web projects, I want to navigate between different projects' pages and send form values as parameters. How can i do that?
    Thanks
    Edited by: user12227999 on 16.Şub.2010 01:43

    You'll need to use JavaScript to alter the action url on the form element to achieve that, but it's going to be complex and I'm not too positive on the resulting stability in a 11g environment that often need to send XHR to the server. What's your exact use case? It looks like a bad design to me. Normal external call would be using URL parameters, which is consistent to RESTful strategies. What you want to do is a POST to an external application from another which is quite horrible imho, how will you handle session management? Piping the response from the server could be another option.
    Regards,
    ~ Simon

  • Page navigation vs url

    What is different between page navigation and URL ?
    For example ,there are 2 pages , page1.jsp and page2.jsp .
    User can go from page1 to page2 ?
    I can use page naigation method to return to page2 or I put a image Hyperlink on page1 , the user click the hyperlink to go to page2.
    I would like to know what is the different between two method ?
    Thanks

    Several components are action components. You can associate these components with action methods. When a user clicks on the action component the page is submitted to the server and the associated action method (if any) is called and the result of that action method (the return value) determines where to go next.
    The hyperlink offers the option of a url or an action handler . If you specify an action handler then the hyperlink works like any action component, as described above.
    However, if you specify a url instead, then the page is not submitted. The server simply serves up the page specified by the url.
    Because the page is not submitted, no action methods or any other methods get invoked.
    Have I explained that clearly?
    If not, here is more information: http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/about_components.html#action
    Chris

  • Output_link and Page Navigation

    Is it possible to use output_link with JSP Page Navigation Model? At first sight, the answer is no. The value attribute is mandatory and rendered into href attribute. So, I have to point to the next page directly, bypassing the Page Navigation Definition in faces-config.xml . It is not good, because it broken the concept of JSP Navigation mechanism. In other works, the Page Flow created based on faces-config.xml navigation rules will be uncompleted potentially. In turn, it reduces the value of modeling (in GUI tools) drastically.
    If I am right, JSF misses the substitute for <h:command_link action="foo" immediate="false"> that works outside the form. I.e. something, that allows to involve Page Navigation, instead of avoiding it. (Something like <h:output_link action="foo">)

    I guess, redefining nested place for command_link may be a critical changes in the current JSF RI implementation. Probably, it might be easier to do the following:
    1. Add action attribute to the output_link
    2. Make both value and action attributes optional
    3. In case developer defines only value, the tag works as it works now (href=value)
    4. In case developer defines only action, href = current_page_url + '?actionId='+action
    in this way, the link works similar to command_link action="foo" immediate="true"
    5. If developer defines both attributes then href=value + '?actionId=' + action
    In this case, Navigation Model finds the defined page by URL and than makes a transfer according the defined action. BTW, such feature makes it possible to organize common starting points for Website menus which will be clearly presented in the application faces-config.

  • Print, Export and Page Navigation Buttons in the Report

    When I view a report through CR4E, the generated report has 3 buttons namely Print, Export and Page Navigation buttons. But when I click on either of the buttons I get a &#39;null pointer exception&#39;. This is a critical error as I am unable to navigate past the first page. Do I have to add code to these buttons? If not, why am I getting an error? Kindly solve my problem as soon as possible.

    <p>Looking at your code it appears that you are storing the ReportSource in session prior to passing in the ResultSet. This will create a problem when a postback is made on  the viewer page (which all of the viewer actions do). If you look at the sample code which is generated when you use the JSP Page Wizard you will notice that the ResultSet is passed to the ReportClientDocument object prior to it being stored in session. Then, when the page is called again this object is retrieved and the ReportSource is used by the viewer. You can quickly run the test using one of our sample reports to see what I am talking about. The code below was generated using the Consolidated Balance Sheet.rpt and did not experience any problems doing any of the viewer actions.</p><%@page import="com.businessobjects.samples.JRCHelperSample,<br />com.crystaldecisions.report.web.viewer.CrystalReportViewer,<br />com.crystaldecisions.reports.sdk.ReportClientDocument,<br />com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,<br />com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,<br />com.crystaldecisions.sdk.occa.report.reportsource.IReportSource,<br />java.sql.Connection,<br />java.sql.DriverManager,<br />java.sql.ResultSet,<br />java.sql.SQLException,<br />java.sql.Statement"%><%<br /><br /><br />    try {<br /><br />        String reportName = "Sample Reports/Consolidated Balance Sheet.rpt";<br />        ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);<br /><br />        if (clientDoc == null) {<br /><br />            clientDoc = new ReportClientDocument();<br />            <br />            // Open report<br />            clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);<br /><br />  <br />            {<br />                // **** POPULATE MAIN REPORT ****<br />                {<br />                     // Connection Info for fetching the resultSet<br />                    String connectStr = "jdbc:derby:classpath:/Xtreme";<br />                    String driverName = "org.apache.derby.jdbc.EmbeddedDriver";<br />                    String userName = "dbuser";        // TODO: Fill in database user<br />                    String password = "dbpassword";    // TODO: Fill in valid password<br /><br />                    String query = "SELECT CUSTOMER_NAME FROM APP.CUSTOMER WHERE COUNTRY = &#39;Australia&#39;";<br /><br />                    <br />                    String tableAlias = "FINANCIALS";        // TODO: Change to correct table alias<br /><br />                     <br />                    JRCHelperSample.passResultSet(clientDoc, fetchResultSet(driverName, connectStr, userName, password, query),<br />                        tableAlias, "");<br />                }<br /><br /><br />            }<br />        <br />            // Store the report document in session<br />            session.setAttribute(reportName, clientDoc);<br /><br />        }<br /><br /><br />            {<br />                // Create the CrystalReportViewer object<br />                CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();<br /><br />                //    set the reportsource property of the viewer<br />                IReportSource reportSource = clientDoc.getReportSource();                <br />                crystalReportPageViewer.setReportSource(reportSource);<br /><br />                // set viewer attributes<br />                crystalReportPageViewer.setOwnPage(true);<br />                crystalReportPageViewer.setOwnForm(true);<br /><br />                // Process the report<br />                crystalReportPageViewer.processHttpRequest(request, response, application, null); <br /><br />            }<br />            <br /><br />    } catch (ReportSDKExceptionBase e) {<br />        out.println(e);<br />    } <br />    <br />%><%!<br />// Simple utility function for obtaining result sets that will be pushed into the report.  <br />// This is just standard querying of a Java result set and does NOT involve any <br />// Crystal JRC SDK functions. <br /><br />    private static ResultSet fetchResultSet(String driverName,<br />            String connectStr, String userName, String password, String query) throws SQLException, ClassNotFoundException {<br /><br />        //Load JDBC driver for the database that will be queried    <br />        Class.forName(driverName);<br /><br />        Connection connection = DriverManager.getConnection(connectStr, userName, password);<br />        Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);<br /><br />        //Execute query and return result sets<br />        return statement.executeQuery(query);<br /><br />}%><p>Try using the code generated from the wizard to see if it works for you as well. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) </p>

  • JSF Page Navigation from Tab to another page and back to tab

    I have a Page with tabs and a button in each of those presenting a Table and "Create Button"
    I would like to go to a new page and come back to the same active tab.
    How do I set the page navigation properties?
    Right now I am in
    Page1(Tab3) Button click-> page2(Create)->Page1 is showing a wrong active tab.
    Can we tell page navigation to go activate a tab it came from?
    Message was edited by:
    spattabiraman

    Hello, maybe if u declare a sessionbean variable as string, in the page u want to open thew tab, in init() you must call the session bean withh the name of the tab u are calling, for example:
    getSessionBean1().setSeltab("tab1");
    i hope it can help
    Beltazor

  • In Initial View, can you set defaults for Navigation tab, Page layout, and Magnification?

    Adobe Acrobat 9 Pro V9.4.0
    Win7 Pro x64
    Problem: In Initial View, can you set defaults for Navigation tab, Page layout, and Magnification?
    Every time Acrobat scans a document, I have to go to Initial View to set Navigation tab, Page layout, and Magnification. It does not remember the settings I last used.
    Thanks in advance.

    See my response to this post

  • How make the Top-level Navigation and Content Area in one page as a whole?

    I want to make the Top-level Navigation and the Content Area in the one page as a whole displayed in user interface.In the default framework,the Top-level Navigation and the Content Area were contained  in 2 pages, So the vertical scroll bar could only control the Content Area. I want to control the full page with  one vertical bar like the page of "www.sdn.sap.com" Web.

    Hi Jianguo,
    One advantage of the external facing portal solution (SP14) is that the framework page is displayed in a single frame. Perhaps this could be of use to you.
    Hope this helps.
    Daniel

  • Top Level Navigation and Web Page Composer

    Dear all,
    I've a Site on Web Page Composer, and on this I've many Web Pages, so I've generated a Site Navigation. The Site Navigation generate a Top Level Navigation entry (Portal Role with External Connector), in this case all pages are displayed on a single menu entry. I would like to separate the pages on some Top Level Navigation Entries, what is the recommended way to do it? Create the pages on separated Sites and generate Site Navigation for each on?
    To clarify I would like a menu structure like this:
    Info  (Top Level)
    Page1                        
    Page2                        
    Page5
    Customers (Top Level)
    Page 3
    Page 4
    Page 6
    Employees (Top Level)
    Page 7
    Page 8
    And just an one site with all pages on Web Page Composer.
    Best regards

    Hi,
    every Site Navigation creates only 1 navigation file that you can integrate into the users navigation.
    In your case:
    Role (PCD)
    Folder -> Info
    Folder -> Customers
    Folder -> Employees
    Create for every folder (that are entry points) in the role a web site in WPC.
    Ex:
    Web Site: Info
    Web Pages:
    Page1
    Page2
    Page5
    Create a site navigation and add the site navigation to your folder Info.
    br,
    Tobais

  • Hiding Navigator and Builder Links on Account Info Page

    Can any one help me to Hide the navigator and builder links in the Account Info page ?
    I need a very basic account info page where the user can only change his password. I am hoping that oracle has an easy method for doing this. I would not like to build a customized page if possible.
    Thanks

    As for any portal page, you just have to set the right acces rules on the navigator and builder pages and the links won't appear.
    Also, if you just need a link to change password you can create it in an html portlet, just look at the adress the seeded link points to. You'll also so find some password change portlet in Knowledge Exchange.

  • Adding javascript to page open and page close in acrobat 8.1.2

    Reading the Acrobat Javascript Object Specification on page 22 it says that you can add javascript to the "page open" and "page close" events of a document.
    It then says that under the menu "Document -> Set page action" you can add scripts for those events
    I am using Acrobat 8.1.2 and under the document menu there is no "Set page action". And there is nowhere where I can find any "set page action" menu...
    whats the deal?
    How can i set the page open and page close events in acrobat professional 8.1.2?????????????
    Marc

    - open the Navigation Panel 'Pages'
    - select the page and open the page properties
    - in the actions tab you can set the page actions

  • Page navigation in Acrobat does not match page numbers in the document

    I have a document in both Framemaker format (server.book) and PDF (server.pdf).  When I view the pdf file in Adobe Acrobat, the page numbers appear correctly on the document itself, but up in the Page Navigation window within Acrobat the pages number doesn't match.
    In the beginning of the book I have Title page, a Table of Contents, and a Preface that all use lower-case roman numerals.  However, when viewing this document via Acrobat, the Title pages show up as i, and ii, but then the Table of Contents and Preface show up as pages 1 - 8 instead of iii - x in the page navigation window.
    I can't figure where this discrepancy is originating. 
    Please help.

    Acrobat has no way to know which bit of character string on each page is the page number.
    The visible page number has never formed any part of Reader nav. as you point out, it couldn't.
    Acrobat knows the Numbering Properties of the pages as created in Frame. It just doesn't display or honor them consistently, depending on Reader version.
    I also use i, ii, iii, iv for pre-narrative material. The romans are displayed in the page number box of Acroread (this is AR7 on Unix). I can enter "ii" in the box, and go to that page. But the Print dialog is Ordinal only. Printing page ranges in AR7 is always off by 2 or 4 relative to the actual page numbers.
    Acrobat Pro 9 (9.4.5, Win7-64) seems to be more consistent, and does show and accept real page numbers for Print.

  • Problem with navigation and masthead by changing languages with Anonymous

    Hi All,
    i have a problem with navigation and masthead by changin the language when accessing as anonymous user.
    Ive created two additional users anon_de  (with language german )and anon_en (for english).
    I've created also two links in the in masthead:
    /irj/portal/anonymous?guest_user=anon_en and /irj/portal/anonymous?guest_user=anon_de
    When i choose "de" for the first time it works fine, but when i choose "en" again the language in the content are is changing to english again, but not in navigation and masthead. When i click again on link for "en" the languge is set to english. Strange thing is that when i click on "de" instead the portal content change to german but masthead and navigation are in english now, as it should be before....
    It seems that masthead and navigation have always prevoius language selected.
    Do you know, what could be the reason of that strange behavior?
    Thanks for help
    Karol

    Hi Detlev,
    you are right. the user is not "updated" fast enough... the strange thing is, that it works by the first time i change the language...
    well.. i can implement that workaround as you suposed, but it would be a really workaround as the same page will be requestes second time, causing requests number to be double..
    Thanks for help
    ps. i forgot to mark this message as question to give points.. if you tell me how i can change that ill reward your answer..

Maybe you are looking for