Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-548

Ability to reset datascroller(UIData) to page one from a UICommand

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      There should be a way to reset the datascroller back to page one when clicking a UICommand without writing java code and binding the UIData to the backing bean.

      Currently this has to be done as follows:

      <h:commandButton
      value="Submit Query"
      action="#

      {searchPageBean.search}

      "
      actionListener="#

      {searchPageBean.resetDataScroller}

      ">
      </h:commandButton>

      <t:dataTable id="searchResultsDataTable"
      binding="#

      {searchPageBean.searchUIData}

      "

      public void resetDataScroller(ActionEvent e)

      { searchUIData.setFirst(0); }

      Attachments

        Activity

          People

            Unassigned Unassigned
            mkienenb Mike Kienenberger
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: