[
https://jira.jboss.org/jira/browse/RF-1145?page=com.atlassian.jira.plugin...
]
sai burgula commented on RF-1145:
---------------------------------
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
DataScroller. Parameters(both a4j and f) always null.
-----------------------------------------------------
Key: RF-1145
URL:
https://jira.jboss.org/jira/browse/RF-1145
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.1.2, 3.2.0
Reporter: Ilya Shaikovsky
Assignee: Nick Belaevski
Fix For: 3.1.3, 3.2.0
<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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira