This content has been marked as final.
Show 6 replies
-
1. Re: using filterBy and filterMethod on the same table
konstantin.mishin Apr 28, 2008 6:35 AM (in response to lmk)Post your page source, please.
-
2. Re: using filterBy and filterMethod on the same table
ilya_shaikovsky Apr 28, 2008 8:05 AM (in response to lmk)what's your RF version.
-
3. Re: using filterBy and filterMethod on the same table
ilya_shaikovsky Apr 28, 2008 8:05 AM (in response to lmk)?
-
4. Re: using filterBy and filterMethod on the same table
lmk Apr 28, 2008 8:17 AM (in response to lmk)I get the problem even I use only filterMethod,
xhtml code:<rich:dataTable cellpadding="0" cellspacing="0" border="0" var="list" value="#{bean.results}" id="table" rows="50" rowClasses="even-row ,odd-row " style="width:99%;" rendered="true" binding="#{bean.myDataTable}"> .. <rich:column id="company" filterMethod="#{bean.filterCompany}" filterEvent="onblur"> <f:facet name="header"> <h:inputText value="#{bean.filteredCompany}" size="15" maxlength="15" id="input_company"> <a4j:support event="onblur" reRender="table,pager" ignoreDupResponses="true" requestDelay="700" focus="input_company" ajaxSingle="true"/> </h:inputText> </f:facet> <h:outputText value="#{list.company}" /> </rich:column> .. </<rich:dataTable>
RF 3.2.0.SR1
myfaces 2.2
facelets 1.1.14
thanks
java code:public boolean filterCompany(Object current) { ResultBean currentResult = (ResultBean) current; if (filteredCompany.length() == 0) { return true; } if (currentResult.getCompany().toLowerCase().startsWith(filteredCompany.toLowerCase())) { return true; } else { return false; } }
-
5. Re: using filterBy and filterMethod on the same table
ilya_shaikovsky Apr 28, 2008 8:36 AM (in response to lmk)Could you please check if this works fine with SUN RI? We've deployed our richfaces-demo with 3.2.1 SR1 and it's working fine.
Anyway currently can't advice you to update the libs to latest snapshots because of an issue http://jira.jboss.com/jira/browse/RF-3277 -
6. Re: using filterBy and filterMethod on the same table
lmk Apr 28, 2008 8:47 AM (in response to lmk)external filering Usage example dont work on rich demo under FF and IE 7..