-
1. Re: How to add total row count and change count on dropdown change ??
liuliu Sep 17, 2014 3:32 AM (in response to asimshaikh1)hi,
You need put something more. The short answer is retrun the rowcount in your backingbean.
-
2. Re: How to add total row count and change count on dropdown change ??
asimshaikh1 Sep 17, 2014 5:09 AM (in response to liuliu)I have DropDown year displays record of that year event="change" Now I want to add one more dropdown or Text box which display total no of reocrds(i.e total no of rows) when Year change the another dropdown will display no of records for that year
-
3. Re: How to add total row count and change count on dropdown change ??
liuliu Sep 17, 2014 5:47 AM (in response to asimshaikh1)You can just creat a getter :
public string getRecordCount(){
return this.outputList.size();
}
and put it somewhere in your page.
<h:outputText value="#{orderMaster.recordCount}" />
I dont understand why you need a dropdown.
-
4. Re: How to add total row count and change count on dropdown change ??
asimshaikh1 Sep 18, 2014 2:18 AM (in response to liuliu)Hi liumin hu
Thanx for the answer bro...
I have following changes in the programme and it works absolutely fine
private Integer recordCount;
public Integer getRecordCount() {
return this.outputList.size();
}
public void setRecordCount(Integer recordCount) {
this.recordCount = recordCount;
}
<h:selectOneMenu id="yearFilterSelectOneMenuOrder" value="#{orderMaster.homePageYearFilter}">
<f:selectItems value="#{orderMaster.yearSelectItemsList}" />
<f:ajax event="change" render="orderhometable searchDateCalendarorders ordersrecordcount monthFilterSelectOneMenuOrder yearFilterSelectOneMenuOrder dataScrollerPanelorder" listener="#{orderMaster.homePageSearchByMonthAndYear()}" />
</h:selectOneMenu>
<h:outputText value=" #{orderMaster.recordCount}" id="ordersrecordcount" />
Thank you once again@liumin hu