Bruno,

Thank you for your answer.
The problem was that I used for value attribute a List instead of a String[]. After changing to String[], the component is working.

Alin.


What type are you passing to the value attribute of the
selectManyPicklist? It works the same ay as the other
selectManyComponents. You have to pass an array with the items you
want to be preselected to the value attribute...
Can you show some of your code?

Regards,

Bruno

2006/1/2, Alin Dosoniu <[EMAIL PROTECTED]>:

Hello,

I want to use selectManyPicklist component for editing a list of values that were selected on a previous access of the page. I don't know how I can have
some elements in selected option. I tried to use the "value" attribute of
selectManyPicklist but I get this error:

Caused by: org.apache.jasper.JasperException: Value is no
String and component body:fn:invTypeswith path: {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId:
/app/programmings_new.jsp][Class:
javax.faces.component.html.HtmlPanelGrid,Id:
_idJsp13][Class:
javax.faces.component.UINamingContainer,Id: body][Class:
javax.faces.component.html.HtmlPanelGroup,Id:
_idJsp19][Class: javax.faces.component.html.HtmlForm,Id:
fn][Class: javax.faces.component.html.HtmlPanelGrid,Id:
_idJsp20][Class:
javax.faces.component.html.HtmlPanelGroup,Id:
_idJsp33][Class:
org.apache.myfaces.custom.picklist.HtmlSelectManyPicklist,Id:
invTypes]} does not have a Converter
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

I used the selectManyPicklist component to successfully select some items
from available list when made the save of the object. But now I want to edit
the object.

Thank you,
Alin.


Reply via email to