RichFaces
  1. RichFaces
  2. RF-1145

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

    Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: 3.1.2, 3.2.0
    • Fix Version/s: 3.1.3, 3.2.0
    • Component/s: None
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      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.

        Activity

        Hide
        Anton Belevich
        added a comment -

        fixed in trunk

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

        to 3.1.x

        resolve to 3.1.3 and 3.2.0

        Show
        Ilya Shaikovsky
        added a comment - to 3.1.x resolve to 3.1.3 and 3.2.0
        Hide
        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
        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
        added a comment -

        not a bug. Check forum thread.

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

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

        Show
        Jay Balunas
        added a comment - Part of a bulk update, all resolutions changed to done, please review history to original resolution type
        Hide
        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
        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:
            Nick Belaevski
            Reporter:
            Ilya Shaikovsky
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: