extendedDataTable column header drop down not working
robertgary1 Aug 26, 2011 8:46 PMWhen I use extendedDataTable and hover my mouse over the column header right side I see the drop down but clickong on it does not drop it down. Also, when I click on a column to sort it, it reloads but is not sorted. I'm using a sample similar to your demo. This is Richfaces 3.3.3.Final, MyFaces 2 and JBoss 6...
<h:form id="form">
<h:panelGrid columns="2" columnClasses="top , top">
<rich:extendedDataTable
value="#{faces$DiscoveryStatusDemo.deviceListing}" var="cap" id="table"
width="580px" height="400px"
sortMode="multi"
selectionMode="multi"
>
<rich:column sortable="true" sortBy="#{cap.name}" id="col_2"
filterBy="#{cap.name}" filterEvent="onkeyup" width="170px"
label="State Name">
<f:facet name="header">
<h:outputText value="State Name" id="state_name"/>
</f:facet>
<h:outputText value="#{cap.name}" id="cap_state"/>
</rich:column>
<rich:column sortable="true" sortBy="#{cap.name}" id="col_3"
filterBy="#{cap.name}" filterEvent="onkeyup" width="170px"
label="State Capital">
<f:facet name="header">
<h:outputText value="State Capital" id="state_capital"/>
</f:facet>
<h:outputText value="#{cap.name}" id="cap_name"/>
</rich:column>
</rich:extendedDataTable>
<h:panelGroup layout="block" style="width:250px">
</h:panelGroup>
</h:panelGrid>
</h:form>
Backing bean...
...
public class SillyData { | |
SillyData(String name, String value) { | |
this.name = name; | |
this.value = value; | |
} |
public String name; | |
public String value; |
public String getName() { | |
return name; | |
} |
public String getValue() { | |
return value; | |
} | |
} | |
Collection< SillyData > goodData = new ArrayList<SillyData>(); |
public Collection getDeviceListing() | |
{ | |
if ( goodData.size() == 0 ) | |
{ | |
goodData.add( new SillyData("a","1")); | |
goodData.add( new SillyData("b","2")); | |
goodData.add( new SillyData("c","3")); | |
goodData.add( new SillyData("d","4")); | |
goodData.add( new SillyData("e","5")); | |
goodData.add( new SillyData("f","6")); | |
goodData.add( new SillyData("g","7")); | |
goodData.add( new SillyData("h","8")); | |
goodData.add( new SillyData("i","9")); | |
goodData.add( new SillyData("j","10")); | |
goodData.add( new SillyData("k","11")); | |
goodData.add( new SillyData("l","12")); | |
} | |
return goodData; | |
} |