JSF table component with paging

Are you aware of any existing JSF table component with both navigation and paging ?
I want to display the content of a database table with a large number of rows. The table component should be able to navigate through the entire table content, but building only a small ResultSet and dinamically populate it with data as we perform navigation.
Thanks,
Cosmin

Thanks for the answer.
But data scroller just takes a ResultSet and display it with navigation. It doesn't know about the total number of rows in the table. It only display the number of records in the ResultSet.
What I am looking for is a data scroller which based on some input parameters knows how to split the table in several ResultSets, dinamically change the ResultSet and display the total number of rows in the table and not in the current ResultSet.

Similar Messages

  • JSF-Custom Component with EventHandling

    Dear All,
    I wanted to write my own component with event handling.
    This is my requirement:
    In my JSP, I'll put my cusom component tag for displaying 10 records and with prev and next buttons. after clicking prev button, i should get previouse 10 records and if i click next button, i should get next 10 records.
    so, my component should render
    1. 10 records
    2. Prev button
    3. Next button.
    After clicking prev button it should render previouse 10 records and also prev and next button.
    I do not know whether it is possible with JSF or not and also i'm not finding any example which explaining above situation.
    My jsp should contain only my custom tag like
    <mine:listRecords/>
    Tag Handler of listRecords tag should render 10 records and prev and also next button. After clicking prev, i should get 10 previouse records and and both the buttons and so on.
    advanced thanks,
    ram

    It is certainly possible to write a component that embeds its own navigation and paging as you describe. On the other hand, you can also assemble this kind of functionality out of a combination of the existing simple components. The "repeater" example illustrates exactly the kind of application you are talking about (and the same techniques will work fine with the standard <h:dataTable> component as well).
    Craig

  • JSF Table component Hide/Show Details question

    When you include a detailsStamp facet in your table, the "Details" column always appears as the first column allowing to disclose the details. Is there anyway to prevent the "Details" column from appearing and triggering this disclosure via another link within the row in the table? I would like to have a row in the table where one of the columns is something like:
    Joe User [show details]
    Where [show details] is a link that would trigger the discloser of the details for that row. Is this currently possible? If not, are there any plans to add this as functionality of the table component? I think users of the component are going to require more flexibility when using the Show/Hide details feature of the table component.

    True and thanks for the response. My first "work around" attempt was to use a showDetail component to accomplish what I am looking for. That had two drawbacks. 1.)When I used that in the table, it didn't disclose when I clicked it. However, if I re-navigated to the page it was disclosed (probably a partial page rendering thing). 2.) When it WAS disclosed, the detail information was restricted to that single cell in the column.
    I could use a commandLink/renderend attribute approach as suggested but that has 2 drawbacks as well. It also would be restricted to showing the details in a single cell since I can't see anyway to do a colspan with a column component. I would also lose the ability to "show all/hide all" unless I implement this logic myself.
    I really need more flexibility in the table component.
    Any other suggestions?

  • Tooltip on the header of JSF table Component

    How to add an Tooltip to the header of the JSF table copmponent?
    Please reply....

    You normally use the HTML 'title' attribute for this. Almost every JSF HTML component also supports it.

  • How it use Filter Id and FilterPanelFocusid in JSF Table component

    How it use FilterId and FilterPanelFocusid in JSF Table component

    How it use FilterId and FilterPanelFocusid in JSF Table component

  • Does JSF support component with dynamic fields?

    Webapps forms usually map a input text field to a java bean property. This mapping is one to one. I would like to know if the JSF can handle the situation where a form is dynamically generated with variable number of fields (eg. check boxes) and having all the values post back to the server without having a java bean mapping (because the fields is not known) and still be able to collect the values on the server.
    Any help is appreciated.

    ckx,
    The components don't require a model reference (i.e. assocaition with a JavaBean). You can access all of the components on the posting page on the server, so you could definitely get all of the values that way. You can build up the tree dynamically as well.
    So the short answer is yes :-).
    <<KM>>

  • Sun java Creator, Table component vanishes when associating with the table

    I am trying to develop JSF page with a table component and associating a table (users) to the table component.
    I have created datasource and i can see the data in the SQL editor in Sun Java Creator.
    But when i try to associate the table component with the table(users).
    I table component vanishes.
    I dont understand what is the problem.
    Can anybody help me.

    The default theme is localized. If you look at <Creator-install>/rave2.0/modules/ext/locale
    you should see the localized default theme jars. Not sure which locale you are. You can put your localized jar here. Add the localized jar to your web application via library manager for it to be included in the deployed war file
    - Winston
    http://blogs.sun.com/winston

  • Pagination - hibernate with JSF table using ObjectListDataProvider

    Hello All,
    How we can use the JSF table component & pagination option avilable in JSC for records pagination using ObjectListDataProvider? Let say I have 100 recorsd and I want to do pagination of them of Page Size = 5 (total pages 20), then how to proceed?
    We have the hibernate working with JSC, and now I am looking for this advanced implementation using JSC & Hibernate.
    Surya
    --Thoughts can bring change                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I have a problem with pagination and hibernate and I want to take a ride on your question: when the page is loaded I load all data from database. Then I have a filter I made that retrieves some of the data and reloads the table, and that works fine. But when I hit the next page button, the table goes to second page, but without the filter, i.e, with all data again.
    I think it has someting to do with the place where I do the initial load, with full data. I've put this code in _init:
        private void _init() throws Exception {
            try {
                Integer empresaId = new Integer(this.getSessionBean1().getCodEmpresaLog());
                    getSessionBean1().getTituloReceberDataProvider().atualizaListaTitulos(empresaId);
            } catch(Exception ex) {  
                log("Erro para pegar empresas : ", ex);
                error("Erro para pegar empresas : " + ex.getMessage());
        }And to filter, I use this method, called by a button:
    getSessionBean1().getTituloReceberDataProvider().filtraListaTitulos(empresaId, sCodCliente, sSituacao, dataDe, dataA);This method repopulates the dataset and it works, but when I change pages it loads full data again. Someone has some light to shed on this?
    Thanks in advance!

  • Accessing list of DISPLAY objects in a table component.

    Hi there,
    I am using a class that extends ObjectListDataProvider to populate a JSF table component.
    I need to access the list of objects that are actually displayed currently in the table. The table uses pagination so there are other table elements not displayed and I do not want those.
    Can someone help me?
    thanks

    Hello,
    I've been working with this method and it works good with pagination as far as you do not start to sort the table... it starts to append new rows at the end.
    The only workaround I've found so far is to call clearSort() before getting the ids... but that is just partially nice...
    So, maybe I'm doing something wrong or maybe there is a bug that could be fixed in 1.2?
    Regards,
    Rob

  • Tree Component with incremental auto-refresh?

    Is there a free (preferably) or commercial JSF tree component with a general AJAX-based incremental auto-refresh?
    Essentially when dealing with a tree of data which can lose or add nodes at any time, it would be nice to have an optional polling mechanism built into the tree that would check the server for tree insertion and removal events and handle any such events whenever they're found via incremental AJAX-based modifications to the tree -- not a full refresh. The same is true for tree node change events.
    To be clear this is not a substitute for handling client events -- the tree data is indicative of shared state and changes independently from user actions.

    I was following instructions from [http://niallcblogs.blogspot.nl/2009/06/auto-refreshing-adf-chart-objects-in.html]
    But I got it to work the way you say.
    But setting refresh="always" generates exceptions in even simple cases. Is it because I am using MySQL which does not have event notification support?

  • Issues loading data in table component after dploying to tomcat5.5.28

    Hi
    I export a war file from sjsc2 u 1 into tomcat5.5.28 and also set up jndi to point to the datasource properly but displaying table component with the data loaded from creator.i'm getting the following error
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    root cause
    java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.locatorsUpdateCopy()Z
         com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:972)
         com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:1410)
         com.sun.data.provider.impl.CachedRowSetDataProvider.checkExecute(CachedRowSetDataProvider.java:1219)
         com.sun.data.provider.impl.CachedRowSetDataProvider.absolute(CachedRowSetDataProvider.java:283)
         com.sun.data.provider.impl.CachedRowSetDataProvider.getRowKeys(CachedRowSetDataProvider.java:232)
         com.sun.data.provider.impl.CachedRowSetDataProvider.cursorFirst(CachedRowSetDataProvider.java:351)
         com.sun.data.provider.impl.CachedRowSetDataProvider.setCachedRowSet(CachedRowSetDataProvider.java:182)
         com.sun.data.provider.impl.CachedRowSetDataProvider.close(CachedRowSetDataProvider.java:209)
         epnl_idbadge.managers_browse_screen.destroy(managers_browse_screen.java:380)
         com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java:580)
         com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:316)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
    Pls can anyone show me the way out.
    Thanks in advance

    Thanks for your response ,I have the following drivers in my Tomcat\common\ lib
    ojbc14.jar
    ojbc14_g.jar
    ojbc14dms.jar
    ojbc14dms_g.jar
    orai18n.jar
    Pls check if there is any thing i need to do to make it work right.
    Thanks

  • Error binding table components with database tables

    Hi, when i try to bind table components with database tables y receive this error
    java.lang.NullPointerException
         at com.sun.sql.rowset.CachedRowSetXImpl.initMetaData(CachedRowSetXImpl.java:861)
         at com.sun.sql.rowset.CachedRowSetXImpl.getMetaData(CachedRowSetXImpl.java:2336)
         at com.sun.data.provider.impl.CachedRowSetDataProvider.getMetaData(CachedRowSetDataProvider.java:1317)
         at com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKeys(CachedRowSetDataProvider.java:489)
         at com.sun.rave.web.ui.component.table.TableRowGroupDesignState.resetTableColumns(TableRowGroupDesignState.java:261)
         at com.sun.rave.web.ui.component.table.TableRowGroupDesignState.setDataProviderBean(TableRowGroupDesignState.java:163)
         at com.sun.rave.web.ui.component.table.TableDesignState.setDataProviderBean(TableDesignState.java:250)
         at com.sun.rave.web.ui.component.TableDesignInfo.linkBeans(TableDesignInfo.java:162)
         at com.sun.rave.insync.models.FacesModel.linkBeans(FacesModel.java:1042)
         at com.sun.rave.designer.DndHandler.processLinks(DndHandler.java:2126)
         at com.sun.rave.designer.DndHandler.importBean(DndHandler.java:880)
         at com.sun.rave.designer.DndHandler.importItem(DndHandler.java:702)
         at com.sun.rave.designer.DndHandler.importDataDelayed(DndHandler.java:376)
         at com.sun.rave.designer.DndHandler.access$000(DndHandler.java:114)
    [catch] at com.sun.rave.designer.DndHandler$1.run(DndHandler.java:298)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    There are a thing that I don't undertand. When I try to bind samples database table (Travel, for example) to table components, there are no errors. But when I try to bind table component with my remote postgresql database table, yes...the table component disappear and only a "Table" string is displayed....this error is because I use remote database?? Or because it's PostgreSQL??
    Thanks.

  • Simple custom JSF table

    Could somebody point me to a complete example of a custom simple JSF table component?
    I don’t want special effects; I look for pedagogical code that teaches appropriate way of construct a custom JSF table, from beginning to end.
    thanks!

    Pedagogical code? :)
    Explore the source code of any open source UIData components.

  • Sorting of a column (adf table component) doesn't work in frame

    Hi,
    I just developed a little application with just one query. The results are shown in an adf table component with the possibility of column sorting.
    The application works just fine if i open it with its actual URL, but when I put it in a classic html frameset I'm not able to sort columns anymore.
    The frameset is quite simple. Something like this
    <frameset rows="90%,10%">
    <frame src="header.htm"/>
    <frame src=application URL />
    </frameset>
    I tried to change the targetFrame attribute of the form component but nothing.
    Any idea?
    By the way, I Work with JDeveloper 10.1.3.2.0.4066 and its adf faces components

    Hi,
    I recall an issue in 10.1.3.2 with inner frames that had the wrong JavaScript reference to the DOM. So I assume this to be the same in your case. So you can give it a try with JDeveloper 10.1.3.3 and see if this fixes the problem
    Frank

  • Issue with appending data to JSF HTML - Data Table Component

    I am following the article from Oracle Magazine title Generating a JSF Data Table:
    http://www.oracle.com/technology/oramag/oracle/06-jan/o16jsf.html After tweaking the code I was able to get the example working in Part 2 of this article...I was able to run a query and the results were brought back to my table...my question is, after you perform the query once, the results of the new query are appended to each column...and if you submit another query the new results are appended to the results from the previous 2 queries...what call do I need to make in order to "refresh" the table or reset the column values. I am new to the JSF table data component. Here is the code being used...the commandButton1_action() method is called each time a new query is submitted:
    ppublic String commandButton1_action()
    // Add event code here...
    ResultSet rs;
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    String url="jdbc:oracle:thin:@localhost:1521:OracleDB";
    Connection connection = DriverManager.getConnection(url, "OE", "password");
    Statement stmt=connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    rs=stmt.executeQuery((String)inputText1.getValue());
    dataTable1.setBorder(5);
    dataTable1.setCellpadding("1");
    dataTable1.setVar("catalog");
    HtmlOutputText headerComponent = new HtmlOutputText();
    headerComponent.setValue("CatalogId");
    column1.setHeader(headerComponent);
    headerComponent = new HtmlOutputText();
    headerComponent.setValue("Journal");
    column2.setHeader(headerComponent);
    headerComponent = new HtmlOutputText();
    headerComponent.setValue("Publisher");
    column3.setHeader(headerComponent);
    headerComponent = new HtmlOutputText();
    headerComponent.setValue("Edition");
    column4.setHeader(headerComponent);
    headerComponent = new HtmlOutputText();
    headerComponent.setValue("Title");
    column5.setHeader(headerComponent);
    headerComponent = new HtmlOutputText();
    headerComponent.setValue("Author");
    column6.setHeader(headerComponent);
    HtmlOutputText column1Text=new HtmlOutputText();
    ValueBinding vb =
    FacesContext.getCurrentInstance().getApplication().createValueBinding("#{catalog.catalogid}");
    column1Text.setValueBinding("value", vb);
    column1.getChildren().add(column1Text);
    HtmlOutputText column2Text=new HtmlOutputText();
    vb =
    FacesContext.getCurrentInstance().getApplication().createValueBinding("#{catalog.journal}");
    column2Text.setValueBinding("value", vb);
    column2.getChildren().add(column2Text);
    HtmlOutputText column3Text=new HtmlOutputText();
    vb =
    FacesContext.getCurrentInstance().getApplication().createValueBinding("#{catalog.publisher}");
    column3Text.setValueBinding("value", vb);
    column3.getChildren().add(column3Text);
    HtmlOutputText column4Text=new HtmlOutputText();
    vb =
    FacesContext.getCurrentInstance().getApplication().createValueBinding("#{catalog.edition}");
    column4Text.setValueBinding("value", vb);
    column4.getChildren().add(column4Text);
    HtmlOutputText column5Text=new HtmlOutputText();
    vb =
    FacesContext.getCurrentInstance().getApplication().createValueBinding("#{catalog.title}");
    column5Text.setValueBinding("value", vb);
    column5.getChildren().add(column5Text);
    HtmlOutputText column6Text=new HtmlOutputText();
    vb =
    FacesContext.getCurrentInstance().getApplication().createValueBinding("#{catalog.author}");
    column6Text.setValueBinding("value", vb);
    column6.getChildren().add(column6Text);
    ResultSetDataModel dataModel=new ResultSetDataModel();
    dataModel.setWrappedData(rs);
    dataTable1.setValue(dataModel);
    catch(SQLException e){}
    catch(ClassNotFoundException e){}
    return null;
    Thanks for any help!

    anyone using the JSF HTML Data Table Component?

Maybe you are looking for

  • New install - starting xfce4 returns blank sreen.

    Hi All, I have just attempted my first Arch install, on a Toshiba Tecra A10 laptop. The install went through fine, after configuring the network I have updated the system successfully but I'm having a problem getting my DE running. I installed xfce v

  • How do I get my itunes account to let me download apps without making an error pop up saying to review my account information?

    My itunes account won't let me download any apps because it says my account hasn't been set up with itunes. When I sign in and go through the payment set up it still won't let me download any apps and puts me through the same process all over again.

  • Audigy 2 zs stops working sudde

    Hi all,?It's probably been posted before, but I couldn't seem to find it... My Audigy 2?ZS platinum has a tendency to stop working every once in a while. Every few days, weeks, or sometimes hours, when I turn on my pc I get no sound. The card is stil

  • ACS 4.2 license key location

                       I am installing ACS on another server but I do not have the original license key, is there a way to find the license from the old ACS. The old ACS is not functioning, none of the services will start, I cannot use the web front end,

  • IMovie sound problems once shared

    I make a movie with effects and a soundtrack etc and when previewed all is fine..... HOWEVER.... onced shared/saved to a final file ready for import into iDVD or any other program the sound is fine until playback reaches a point where an effect is ap