DataScroller, table page navigation problem

In my case I have created page with table and datascroller. I navigate from this page to another page and then back. But here is a problem. If I begin, for example, from 3rd page of data scroller and return back, the datascroller alwas positions on first page! I wold like to return on the same page (as indicated on data scroller). What is the solution?
Regards Simy

I am experimenting with method setFirst(int) on HtmlDataTable component. Somewhere I have noticed that page on HtmlDataScroller is defined by setFirst(int). So in the moment when I navigate to page where HtmlDataTable is, I set method parameter to appropriate value. This is done in afterPhase method of phase listener, but it obviosly does not work, because only RENDER_RESPONSE is triggered when I return to page. Questions:
1.) Is using setFirst(int) right way?
2.) In which phase of lifecycle should be used?
3.) How to trigger other lifecycle phases, not only RENDER_RESPONSE?
Regards Simy

Similar Messages

  • Page navigation problems

    Hi all,
    I am new to JSF, and I am trying to implement a simple page navigation which displays some values that the user entered. The values are stored in a managed bean. It's a simple login form. I am using NetBeans as my IDE. My page navigation is set up as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
    <navigation-rule>
    <from-view-id>/index.jsp</from-view-id>
    <navigation-case>
    <from-outcome>login</from-outcome>
    <to-view-id>/login.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    And my JSF page is setup as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <webuijsf:page binding="#{index.page1}" id="page1">
    <webuijsf:html binding="#{index.html1}" id="html1">
    <webuijsf:head binding="#{index.head1}" id="head1">
    <webuijsf:link binding="#{index.link1}" id="link1" url="/resources/stylesheet.css"/>
    </webuijsf:head>
    <webuijsf:body binding="#{index.body1}" id="body1" style="-rave-layout: grid">
    <webuijsf:form binding="#{index.form1}" id="form1">
    <webuijsf:staticText binding="#{index.staticText1}" id="staticText1" style="position: absolute; left: 144px; top: 72px" text="Enter user name:"/>
    <webuijsf:staticText binding="#{index.staticText2}" id="staticText2" text="Enter password:" />
    <h:inputText binding="#{user.name}" id="txtUsername" />
    <h:inputText binding="#{user.password}" id="txtPass" />
    <h:commandButton action="login" binding="#{index.btnLogin}" id="btnLogin" value="Log in"/>
    <h:inputText binding="#{index.txtUsername}" id="txtUsername"/>
    <h:inputText binding="#{index.txtPass}" id="txtPass"/>
    </webuijsf:form>
    </webuijsf:body>
    </webuijsf:html>
    </webuijsf:page>
    </f:view>
    </jsp:root>
    The web application compiles and deploys with no problem. However, when I click the btnSubmit button, it does not redirect me to the page specified in the faces-config.xml file. Can anyone tell me what I'm doing wrong? Thanks for any help you can provide.

    I'm not sure what you are trying to do here.
    Are you trying to map the commandButton's action="login" to your rule <from-outcome>login</from-outcome>?
    I think you want the commandButton to map to a method in your backing bean. E.g. action="#{bean.goToLogin}" .
    The method goToLogin() should then return the string, "login" . This will be caught by your navigation rule <from-outcome>.
    <from-outcome> maps to a specific string returned from a method called in that page.
    But in this case if you just want redirection, it should be easier just an outputLink pointing to login.jsp.
    Hope this helps!

  • IDE bug? Page navigation problem.

    Is there any way to see all of the buttons on a page in the Page Navigation screen?
    When you left click on the page in the Page Navigation screen, it expands, but not enough to see all of the buttons.
    I have a page with a lot of buttons on it, and I can only see the first 10 of them and cannot find a way to scroll down.
    Thanks.

    A bug report has laready been filed for this issue.

  • Page navigation problem in adf application.

    Hi All,
    I developed one application in ADF that is working fine in integrated WLS. But While deployed in standalone WLS the page is not navigating.
    in my application i created two pages like in First page search with table.second page details of particular row from table for that oi used
    Execute with perms with key value method from Data-control in table for row i changed to command link when i click on link the page should be navigated to details page
    in integrated WLS but its not working in standalone WLS. please give some solution.
    Regards,
    Shankar

    Shankar,
    Did you try searching for the problem first?
    Check the URL that you are using to run your application in the standalone WLS (and compare it with the URL that you use with the integrated WLS).
    I'd guess your standalone URL has ".jspx" or ".jsf" at the end of it, which means you're running a page directly and not a taskflow view activity. Try removing the ".jspx" or ".jsf" from your URL and see what happens.
    For more explanation, you can search the forum or read the Fusion Developers Guide for ADF - this question is asked about once or twice a week.
    John

  • Tab Page Navigation Problem???

    Hi All:
    I am facing problem with tab page. when I save some record at the last tab then it moves towards its previous tab page. May be navigation becomes wrong.Record is saved. What would be the solution? Can anyody tell me. Thanks
    Ali

    Just two wonders...:
    1) Are the blocks ordered in the Object Navigator ... as they appear in the tabs of your tab canvas...????
    2) Is there in the 'save trigger' or in other place (which take place in the save process) a "go_item(<itemname_of_the_previous_tab>)" or "go_block(<block_resides_in_the_previous_tab>)"...????
    Greetings....
    Sim

  • Page navigation problem

    Guys,
    I have two pages, each one with table with a hyperlink column. I use the same code in the hyperlink_action method for both (... return "nav-string"...).
    For one table this works, for the other not...
    I can't see a difference - navigation rules are:
    <navigation-rule>
    <from-view-id>/mplist.jsp</from-view-id>
    <navigation-case>
    <from-outcome>toMPDetails</from-outcome>
    <to-view-id>mpdetails</to-view-id>
    </navigation-case>
    <navigation-rule>
    <navigation-rule>
    <from-view-id>/pdsamlist.jsp</from-view-id>
    <navigation-case>
    <from-outcome>toPdsamDetails</from-outcome>
    <to-view-id>pdsamdetails</to-view-id>
    </navigation-case>
    <navigation-rule>Ideas? I'm stuck and/or blind...
    regards
    jbh

    a) Add h:messages on all your pages. Are there any validation or conversion errors?
    b) Are you using an action method on your submit buttons? If so, are the action methods being executed?
    CowKing

  • ESS page Navigation problem EP7.0 for ERP2004

    Hi
    How are you?
    We made ESS configuration in our new NW04s SP10 portal.
    We use ECC 5.0 as back end. As we can’t install the XSS component for ERP2004 in NW04s, we add java stack in ECC 5.0 machine and installed the XSS and JCO and all there. And imported the BP for ESS 60.2 in portal EP7.0.
    Now everything is working fine that one problem.
    The problem is related to link in portal. When I click the ESS overview menu, I get the the overview with ESS menu inside the page.
    But if I click again in ESS overview menu, it changes to the overview with ESS menu inside the page. If I click again it change to first style. What I mean is, it change the every alternative time. I made all the PCD setting in IMG. And when I get the second view, and if I click in any link, the top level navigation will not work after that.
    Do you have any idea why it is so and how to fix it?
    I appreciate your support.
    Thanks
    Raibin

    It might seem like not a big problem at first, but this can be a major problem. If you are implementing filters and routing their in web.xml, you will not get the intended effect. For example, I use a filter to make sure that the user has logged in before accessing a page in the /app directory. The filter is not applied AT ALL the first time the user tries to go into the /app directory. Any way to make JSF shows the correct URL?

  • Tab pages - Navigation Problem

    Hi,
    What key I should use, if I want to navigate to other blocks in the same tab page.
    Thanks
    KC
    null

    I had this same problem. I created a TAR on Metalink about it and Oracle's response to me was to see Note#1016812.4 "KEY-NXTBLK AND KEY-PRVBLK DO NOT FIRE ON TAB PAGE".
    Basically, those triggers perform differently for tab pages.
    Solution Description:
    =====================
    The KEY-NXTBLK and KEY-PRVBLK triggers are re-defined to mean "Next Tab Page" and "Previous Tab Page" when on a tab page.
    However, you can put calls GO_ITEM or GO_BLOCK into a WHEN-TAB-PAGE-CHANGED
    trigger instead of the KEY-NXTBLK and KEY-PRVBLK triggers. This way, when
    Forms thinks you want to change tab pages, you can change blocks.
    Solution Explanation:
    =====================
    The KEY-NXTBLK and KEY-PRVBLK triggers were redefined to be consistent
    with the Microsoft standard for tab sheets.
    null

  • Trinidad Table range navigation problem

    Hi,
    I'm using Trinidad components, I try to display a table with range navigation but the range navigation don't work, the first range is always displayed. Must I implement some business myself?
    Here is my jspx code:
    <tr:table value="#{jobScheduler.userJobsTable}"
    var="row"
    emptyText="No rows"
    rowBandingInterval="1"
    rows="3">
    <tr:column headerText="N°">
    <tr:outputText value="#{row.job}"/>
    </tr:column>
    </tr:table>
    The userJobsTable property is a java.Util.List.
    I know that there is a param first in the table tags, but I don't know, which value I must set to it, ...
    Thanks in advance.
    Mike

    Hi,
    Trinidad question should be posted to the Trinidad mailing lists on MyFaces at Apache.org
    Frank

  • Page navigation problem using template method pattern

    Hi all,
    I've built a rather simple app implementing the template method design pattern. I've built a shared session bean which holds a hashmap of beans associated with pages I've visited. All of my JSPBeans extend from a common abstract class which calls three simple methods to process output for the page the first time displayed, everytime after the first time the page is displayed and yada yada.....so, let's say I'm three pages in, I've submitted a form and am looking at a page which displays data verifying my submit. Now, I click a link which should take me back two pages, say, to a home page. When I click the link, the home page is displayed momentarily...but then the app processes thu everything I just did up to the point where I started. It just flashes thru a few pages, resubmits the data and I end up right where I started. Automated data processing in a web app...and I wasn't even trying :-) Seriously tho, what in the world is this thing doing and how do I get it to stop! Has anyone ever seen this before?
    regards,
    Mat

    Hi John,
    I'm a little new so excuse my ignorance :-) Yep, I have session bean class which is nothing more than a hashmap of keyed beans ( I have one bean associated with each jsp). All beans are session persistent. What I don't understand is why when I attempt to navigate 'back' into the application ( a page where I have already been) the darn thing repeats. All my beans extend from a common class which includes three abstract methods...firstpassprocess(), process(), and footerprocess.() The idea is that I set a boolean var to "FIRSTPASS" the parent sees that and directs the application to the firstpassprocess() method in the concrete class. Why doesn't it do that again? U say it's because of the session bean? I tried to include some true/false values in the process() method of the concrete class which fixes the application flow. But, and there is always a but, now the submit includes all of the data from the prior submit. How do I do the auto update of the bean properties? Jeez...I hope I don't sound to silly! Thanks for the help....
    Mat

  • CrystalReportViewer page navigation re-hash

    Hi Everyone,
    I've been searching for a solution to the widely discussed page navigation problem when you place all your report binding code in Page_Load().  Lots of references are to older versions of VS and CR so they don't quite fit.  I am running VS2008 and CR2008.  Here's what I've done so far.
    Added an OnInit parameter to point to my initialization routine:
    <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" DisplayGroupTree="False" EnableDatabaseLogonPrompt="False" EnableParameterPrompt="False"
    OnInit="InitMyReport"/>
    Moved my report binding code from Page_Load to InitMyReport().  The issue I am having is that the paramaters that are being passed via the URL (and fetched via request.querystring("id1")) are not available during the initialization phase so I can't set them.
    Where did I run astray?
    Dave

    OK - I figured this out. 
    First I took all of the report setup code (parameter and selection formula assignment) and put it into its own subroutine called ReportSetup().  This is called only once from page_load as I am checking for postback.
    Next I added a new subroutine called ReportNavigate() to fire when the viewer navigate event is triggered.  This simply calles ReportSetup() which rebinds the report correctly.
    Simple solution.
    Dave

  • How to achieve Page Navigation in af:table component

    I am using JDeveloper 11.1.1.3.
    I have a requirement for which i dont know how to proceed. Please guide me on the below requirement.
    I have an af:table component which displays a list of all the employees from the database. The total number of records in my database is 300(employee table).
    So my af:table component while displaying the Employee view object displays all the 300 employees when i scroll down the list.
    But i dont want the user to scroll down to see all the employees. In the af:table footer i want the page navigation option to be shown which will allow the user to see 10 records per page. When the user clicks on the next button , the af:table should display the next 10 records of the view object.
    Kindly help me or guide me to some reference material on how can i achieve this.
    Zeeshan

    There is no out-of-the-box table pagination in ADF 11g, the scroll-table is the way to go. New content is fetched only as needed when the user scrolls down the list. You can use the table's column filters or a separate search query component to make it easier to find employees on the list.
    See previous discussions, e.g. Urgent!! Pagination in ADF 11g.. and ADF Faces - Table Navigation in 11g

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

  • IF Form region AND report + search tool in same page THEN = problem

    Helllo everybody
    I posted an initial and now the advanced as I received helpful comments but still is unsolved:
    Problem:
    If I have a Form, and a Report With a Search feature on the same page the problem is that when I click on the button of Search to find records in the Report, the page reloads as it goes and returs to the server. Alright, however, that reloading causes the Form to submit data while there is no data because I was not working with the Form. When the report gets the "submission of the Form" it receives all empty data and it complains as it cannot have Null values in its rows.
    Solution:
    The thing would be to tell the form not to submit anything unless expressley pressed the button Create or Save. It seems that these buttons activate when the page is reloaded I mean reloaded by haiving pressed the button Search of the Reports region.
    The helpful comments were in the direction of going to Processes, Automatic Row Processing and then choosing a conditional for processing of the Form, that it, it would only activate (submit itself if that condition is met)
    So I go to PL/SQL Function body Returning a boolean and I paste this: RETURN :REQUEST IN('SAVE','CREATE');
    but the problem continues unsolved, that doesnt help. It must be very close but there is something I am missing
    thank you very much
    Alvaro
    Edited by: user12155340 on 18-Nov-2009 15:04

    Hi,
    I think this is double post.
    BUTTON CLICK ON SEARCH ITEM CAUSES OTHER REGIONS (FORM) IN TABLE TO ERRORS
    Please read my last comment from that link.
    Application express forum might give you better and precise answer.
    You need just figure out how set conditions
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm#sthref149
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm#sthref237
    Br, Jari
    Edited by: jarola on Nov 19, 2009 12:51 PM
    BTW, I remember that there was just few days ago same kind question answered in Application Express forum.
    I post link if I find it. You may try find it also

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

Maybe you are looking for

  • Table Drag and Drop/Copy-paste

    Hi all I use dreamweaver CS 5.5 on a macmini. I'm pretty new to the whole dreamweaver-stuff and use it mainly for converting websites into html. I normally do that via copy-paste: Copy text from website - paste in dreamweaver preview - edit in dreamw

  • Trial Balance : monthwise

    Hi expers, My users wants to get F.01 monthwise.In F.01,if run period 2,i will get gl balances from Apr10 to May10.User wants only trial balance for Apr10,May10 like.Is there any standard functionality report. Please advise. Regards, Samaar

  • Sort method and adjustment account for Regrouping Receivable and Payables

    Hi Gurus, Kindly send to me sort method and adjustment accounts for regrouping receivables/payables paths and T-code Warm Regards Abdul

  • Convert txt to Ms-Word Document

    Hi guys i want convert txt file into word documnet.What type of jar i can use and how can i convert. send proper code with explanations.

  • Static protected fields

    Hi. In inheritance, when a field is protected, I can access it in the subclass, but I can't access it from an instance of the parent class (the packages are different). Example: package parent; public class Parent {     protected int j = 17; package