Hi All,
I am trying to user rich:oredering list to reorder some data from client side, But when form gets submitted, I dont see any reordering being done to bean List property. Please help.
My code goes like this:
<rich:orderingList
id="testList"
value="#{orderTestsActionBean.tests}"
var="lit" listHeight="300" listWidth="90%" >
<rich:column width="180">
<f:facet name="header">
<h:outputText value="#" />
</f:facet>
<h:outputText value="#{lit}"></h:outputText>
</rich:column>
</rich:orderingList>
public class OrderTestsActionBean {
public List<String> tests;
@PostConstruct
public void setup(){
System.out.println("Hi !! Coming here!!!!!!!!!!");
try{
tests = new ArrayList<String>();
tests.add("Ganesha");
tests.add("One");
tests.add("two");
tests.add("three");
tests.add("Four");
tests.add("Five");
tests.add("Six");
tests.add("Seven");
}catch(Exception e){
}
}
public void orderTests1(){
int orderIndx = 1;
for(String name:tests){
System.out.println(orderIndx+" -- "+name);
orderIndx++;
}
//doRefresh = true;
return;
}
public List<String> getTests() {
return tests;
}
public void setTests(List<String> tests) {
this.tests = tests;
}}
1) add rich:messages for checking conversion problems.
2) try under 3.3.3.Final if using older one.