Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-1145

DataScroller. Parameters(both a4j and f) always null.

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.1.2, 3.2.0
    • Fix Version/s: 3.1.3, 3.2.0
    • Component/s: None
    • Labels:
      None

      Description

      <rich:datascroller id="scroller" pageIndexVar="pi" action="#

      {bean.action}">
      <f:param name="index" assignTo="#{bean.property1}" value="#{pi}"/>
      </rich:datascroller>

      <rich:datascroller ajaxSingle="false" id="scroller" pageIndexVar="pi" action="#{bean.action}

      ">
      <a4j:actionparam name="index" assignTo="#

      {bean.property1}

      " value="#

      {pi}

      "></a4j:actionparam>
      </rich:datascroller>

      in seter:

      System.out.println("Setting property1 to _> "+ property1);

      in action

      System.out.println(FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("index"));

      Both sysouts prints null in log.

        Gliffy Diagrams

          Activity

          Hide
          abelevich Anton Belevich added a comment -

          fixed in trunk

          Show
          abelevich Anton Belevich added a comment - fixed in trunk
          Hide
          ilya_shaikovsky Ilya Shaikovsky added a comment -

          to 3.1.x

          resolve to 3.1.3 and 3.2.0

          Show
          ilya_shaikovsky Ilya Shaikovsky added a comment - to 3.1.x resolve to 3.1.3 and 3.2.0
          Hide
          dkane Daniel Kane added a comment -

          Just tested 3.1.3.CR4 , see code in the first message in related topic http://jboss.com/index.html?module=bb&op=viewtopic&t=121482
          Now result is not null . But setter's logging always shows me the previous value of datascroller.
          I.e. when I click [2] on datascroller, message from logger is "Page index set to 1". After that I click [1] and message is "Page index set to 2", and so on.

          Show
          dkane Daniel Kane added a comment - Just tested 3.1.3.CR4 , see code in the first message in related topic http://jboss.com/index.html?module=bb&op=viewtopic&t=121482 Now result is not null . But setter's logging always shows me the previous value of datascroller. I.e. when I click [2] on datascroller, message from logger is "Page index set to 1". After that I click [1] and message is "Page index set to 2", and so on.
          Hide
          ilya_shaikovsky Ilya Shaikovsky added a comment -

          not a bug. Check forum thread.

          Show
          ilya_shaikovsky Ilya Shaikovsky added a comment - not a bug. Check forum thread.
          Hide
          jbalunas Jay Balunas added a comment -

          Part of a bulk update, all resolutions changed to done, please review history to original resolution type

          Show
          jbalunas Jay Balunas added a comment - Part of a bulk update, all resolutions changed to done, please review history to original resolution type
          Hide
          sburgula1 sai burgula added a comment -

          Could someone paste some code regarding how to get the current pageIndex. Since I followed the example given, and I am not getting any value.
          I have defined my scroller in the following way:

          <rich:datascroller for="selCrsFceGrid" maxPages="10" page="#

          {courseSearch.scrollerPage}" immediate="true" >

          </rich:datascroller>

          and in the bean


          private String scrollerPage = "";


          public String getScrollerPage() { return scrollerPage; }

          public void setScrollerPage(String scrollerPage) { this.scrollerPage = scrollerPage; }

          when I try to print the value of scrollerPAge

          I get the following error:

          page="#{courseSearch.scrollerPage}

          ": java.lang.IllegalArgumentException: argument type mismatch

          Show
          sburgula1 sai burgula added a comment - Could someone paste some code regarding how to get the current pageIndex. Since I followed the example given, and I am not getting any value. I have defined my scroller in the following way: <rich:datascroller for="selCrsFceGrid" maxPages="10" page="# {courseSearch.scrollerPage}" immediate="true" > </rich:datascroller> and in the bean private String scrollerPage = ""; public String getScrollerPage() { return scrollerPage; } public void setScrollerPage(String scrollerPage) { this.scrollerPage = scrollerPage; } when I try to print the value of scrollerPAge I get the following error: page="#{courseSearch.scrollerPage} ": java.lang.IllegalArgumentException: argument type mismatch

            People

            • Assignee:
              nbelaevski Nick Belaevski
              Reporter:
              ilya_shaikovsky Ilya Shaikovsky
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development