rich:listShuttle -- getting some error
ashutoshdeora May 11, 2009 8:09 AMi am using rich:listShuttle
i am getting this particular error
sourceId=j_id1:j_id4[severity=(ERROR 2), summary=(javax.el.PropertyNotFoundException: /ListShuttle.xhtml @34,14 sourceValue="#{toolBar.freeItems}": Property 'freeItems' not writable on type java.util.List), detail=(javax.el.PropertyNotFoundException: /ListShuttle.xhtml @34,14 sourceValue="#{toolBar.freeItems}": Property 'freeItems' not writable on type java.util.List)] sourceId=j_id1:j_id4[severity=(ERROR 2), summary=(javax.el.PropertyNotFoundException: /ListShuttle.xhtml @34,14 targetValue="#{toolBar.items}": Property 'items' not writable on type java.util.List), detail=(javax.el.PropertyNotFoundException: /ListShuttle.xhtml @34,14 targetValue="#{toolBar.items}": Property 'items' not writable on type java.util.List)]
please tell me why this error is coming
and how it can be solved
or what error i am making while using list shuttle
here is my xhtml part
<h:form> <rich:listShuttle sourceValue="#{toolBar.freeItems}" targetValue="#{toolBar.items}" var="i" listHeight="300" listWidth="300" sourceCaptionLabel="Available Items" targetCaptionLabel="Currently Active Items" > <rich:column> <h:outputText value="#{i}"></h:outputText> </rich:column> <a4j:support event="onlistchanged" reRender="toolBar" /> <a4j:support event="onorderchanged" reRender="toolBar" /> </rich:listShuttle> </h:form>
here is my bean class
import java.util.ArrayList; import java.util.List; import javax.ejb.Stateless; import mls.ssb.local.ListSuttleSSbLocal; import org.jboss.seam.ScopeType; import org.jboss.seam.annotations.Factory; import org.jboss.seam.annotations.Name; import org.jboss.seam.annotations.datamodel.DataModel; @Stateless @Name("toolBar") public class ListSuttleSSb implements ListSuttleSSbLocal{ @Factory(scope=ScopeType.PAGE) public List<String> getfreeItems() { //List<String> aList = new ArrayList<String>(); OrderBySource = new ArrayList<String>(); OrderBySource.add("Open"); OrderBySource.add("Save"); OrderBySource.add("Save All"); OrderBySource.add("Delete"); OrderBySource.add("Delete All"); System.out.println("Target List::"+OrderBySource); return OrderBySource; } @Factory(scope=ScopeType.PAGE) public List<String> getItems() { OrderByTarget = new ArrayList<String>(); OrderByTarget.add("Clear"); System.out.println("Target List::"+OrderByTarget); return OrderByTarget; } @DataModel private List<String> OrderBySource ; @DataModel private List<String> OrderByTarget; }
import java.util.List; public interface ListSuttleSSbLocal { public List<String> getfreeItems(); public List<String> getItems(); }