Yes, the example uses a valueChangeListener and no value attribute. There is the valueChangeListener only to check the items selected and update the info string. If you pass a value with an array of String (the selected values) as the value attribute of the picklist, those values will be preselected when the component is rendered. If you don't want any item preselected, just don't pass a value. Look at the sources of the example (jsp [1] and backing bean [2]), and if you need more detailed information, refer to the selectManyListbox documentation [3].
Regards, Bruno [1] http://www.irian.at/myfaces-sandbox/picklist.jsp.source [2] http://svn.apache.org/viewcvs.cgi/*checkout*/myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/picklist/PicklistBean.java?content-type=text%2Fplain [3] http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/tlddocs/h/selectManyListbox.html On 5/3/06, octoberdan <[EMAIL PROTECTED]> wrote:
but that's with a valueChangeListener... can't you just set the value to be an array? -- View this message in context: http://www.nabble.com/Picklist-problem-t1122642.html#a4212085 Sent from the MyFaces - Users forum at Nabble.com.

