-
1. Re: Problem with rich: columns - Filter
ilya_shaikovsky Dec 18, 2009 7:47 AM (in response to tyemy)1)
And I can not pass the id by concatenating the index ..
why?
2) also you have to define sortOrder and filterValue and map to some session scoped or kept alive bean because columns recreated between requests.
-
2. Re: Problem with rich: columns - Filter
tyemy Dec 18, 2009 7:56 AM (in response to ilya_shaikovsky)1) So, the compiler gives an error like: "According to TLD or atribute diretive in tag file, attribute diretive id does not accept any expressions"..it really necessary?
2)huumm .. My scope is to request .. then I have to use a keep alive .. ?
I heard that version 3.3.1 has problems in the filter .. this true? -
3. Re: Problem with rich: columns - Filter
ilya_shaikovsky Dec 18, 2009 8:10 AM (in response to tyemy)1) https://jira.jboss.org/jira/browse/RF-6234
2) I'm not talking to move your data bean to session scope. Just store sortOrder and filterValue in some (maybe other) session scoped bean.
-
4. Re: Problem with rich: columns - Filter
tyemy Dec 18, 2009 8:23 AM (in response to ilya_shaikovsky)1) I read the thread you sent me .. but I can not understand why I can not pass anything like ID ..
2) Hum. ok .. I'm trying here in various ways to see if something works out ..
you had problems or used this component? -
5. Re: Problem with rich: columns - Filter
ilya_shaikovsky Dec 18, 2009 8:40 AM (in response to tyemy)1) EL in id not supported with JSP, facelets support it. But sorry forgot that we already solved it by generating postfix for id in component. so for JSP you could not define id - it should not be a problem.
2) We wrote the http://livedemo.exadel.com/richfaces-demo/richfaces/columns.jsf sample which has sorting capabilities.
-
6. Re: Problem with rich: columns - Filter
tyemy Dec 18, 2009 8:59 AM (in response to ilya_shaikovsky)1) If there is a problem alright
2) Well, was there even though I have relied to try to mount that way.
I had ridden my datatable in the managed bean but also had problems with filter and the lack of examples did not help much. -
7. Re: Problem with rich: columns - Filter
ilya_shaikovsky Dec 18, 2009 9:09 AM (in response to tyemy)you could download full rf-demo sources with from anonimous svn -
8. Re: Problem with rich: columns - Filter
tyemy Dec 21, 2009 5:30 AM (in response to ilya_shaikovsky)I'll download, maybe solve my problem!
Thanks -
9. Re: Problem with rich: columns - Filter
eugenbesel Feb 24, 2010 9:28 AM (in response to tyemy)Hello Tyemy Kuga,
try this code:
<rich:dataTable id="dtAtendimento" value="#{CadastroAtendimentoTecnico.listaAtendimento}" var="atendimento">
<rich:columns index="index" value="#{CadastroAtendimentoTecnico.listaCampos}" var="column" filterBy="#{atendimento[column.nomeAtributo]}" filterEvent="onKeyUp" filterValue="#{CadastroAtendimentoTecnico.columnFilterValues[column]}">>
<f:facet name="header">
<h:outputText value="#{column.label}"/>
</ f: facet>
<h:outputText value="#{atendimento[column.nomeAtributo]}"/>
</ rich: columns>
</ rich: dataTable>with Bean:
public Map<String, Object> getColumnFilterValues() {
return columnFilterValues;
}public void setColumnFilterValues(Map<String, Object> columnFilterValues) {
this.columnFilterValues = columnFilterValues;
} -
10. Re: Problem with rich: columns - Filter
tyemy Feb 25, 2010 5:49 AM (in response to eugenbesel)It didn't work!.. =( -
11. Re: Problem with rich: columns - Filter
eugenbesel Feb 25, 2010 7:01 AM (in response to tyemy)try to debug into the methods
public Map<String, Object> getColumnFilterValues() {
return columnFilterValues;
}public void setColumnFilterValues(Map<String, Object> columnFilterValues) {
this.columnFilterValues = columnFilterValues;
}and look, which values are provided from jsp.
-
12. Re: Problem with rich: columns - Filter
tyemy Feb 25, 2010 7:37 AM (in response to eugenbesel)Then, the method is only called when the datatable is constructed .. and the filter fields are empty .. and the object also is empty..
I think my problem with the filter is on Rerender component.
I made a sortBy and the filterBy the msm rich: columns
When I write something in the filter and I pra sort the records it reloads by ajax and brings me the result of the filter!
Now I know how to make it work ..