-
1. Some more info
apg9595 Jul 30, 2009 1:40 PM (in response to apg9595)Same works, if used as rich:datatable
-
2. Re: Bug: rich:scrollabledatatable and rich:columns when used
ilya_shaikovsky Jul 30, 2009 2:37 PM (in response to apg9595)in general not enough info. Does request actually fired? Check in FireBug? Also check at livedemo that while using columns - you have to define filterValue because columns recreated at every request , so you should store current filter value in model.
-
3. Re: Bug: rich:scrollabledatatable and rich:columns when used
smrallen Jul 31, 2009 12:54 PM (in response to apg9595)I have a jsp with scrollableDataTable and filterMethod (filterGrid) in my controller (GridController). Now i am using filterMethod (filterGrid) from <rich:columns>. The filter method is not invoked when i used scrollableDataTable. But the same filter method get invoked if I change rich:scrollableDataTable to rich:datatable. Please find the below source code.
-------------------------------------
Jsp File : (scrollableDataTable.jsp)
<rich:scrollableDataTable width="700px" id="table"
value="#{gridController.formattedGrid.rows}" var="row"
rowKeyVar="rowKey">
<rich:columns value="#{gridController.formattedGrid.heading}"
var="column" index="ind" id="dynaColumn"
filterMethod="#{gridController.filterGrid}"
sortable="false">
<f:facet name="header">
<h:outputText value="#{column.label}"/>
</f:facet>
<h:outputText value="#{row.cells[ind].value}"/>
</rich:scrollableDataTable>
-------------------------------------
GridController.java
public class GridController extends Controller {
public boolean filterGrid(Object object) {
// Do some filter Logic
}
public void process(ActionEvent event) {
// Process Logic
}
}
-------------------------------------
faces-config.xml
<managed-bean>
<managed-bean-name>gridController</managed-bean-name>
<managed-bean-class>org.ets.ibis.richfaces.grid.controllers.GridController</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>itemService</property-name>
#{itemService}
</managed-property>
</managed-bean> -
4. Re: Bug: rich:scrollabledatatable and rich:columns when used
apg9595 Jul 31, 2009 1:48 PM (in response to apg9595)I have the similar issue, exactly same as what Allen is talking about.
- Arun -
5. Re: Bug: rich:scrollabledatatable and rich:columns when used
ilya_shaikovsky Aug 3, 2009 3:57 AM (in response to apg9595)filtering not supported in scrollable table.
-
6. Re: Bug: rich:scrollabledatatable and rich:columns when used
fabioos Nov 18, 2009 6:11 AM (in response to apg9595)Not yet support filter in scrollable table, even with filterBy property? I really neede this and dont work for me.