[ 
http://issues.apache.org/jira/browse/MYFACES-148?page=comments#action_12314374 
] 

Mike Youngstrom commented on MYFACES-148:
-----------------------------------------

I am experiencing the same problem.  Form components are not working as they 
should in dataList.  UIData components are supposed to rewrite the id for all 
components inside of it for each iteration.  DataList is not doing this.  If I 
repeat an inputText component in a data list all <input tags are given the same 
id.  Each iteration should have a different id derived from the iteration 
number so that decode, validation, and update can all decode, validation and 
update the correct values.

Mike

> datalist: problems with modelupdate and verbatim tag
> ----------------------------------------------------
>
>          Key: MYFACES-148
>          URL: http://issues.apache.org/jira/browse/MYFACES-148
>      Project: MyFaces
>         Type: Wish
>     Versions: 1.0.9 beta
>     Reporter: Mario Ivankovits

>
> I try to use the "datalist" with embedded inputText to change fields in my 
> datamodel.
> After some debugging it turns out it is needet to put the inputText tag 
> within an column tag
> e.g.
> <x:dataList>
> <h:colum>
> <h:inputText ...>
> </h:colum>
> <h:colum>
> <h:inputText ...>
> </h:colum>
> </x:dataList>
> I dont understand why this is needet as there is no need to render "columns" 
> within an dataList.
> Which brings me to the next problem. If I try to embed verbatim tag ...
> <x:dataList>
> <f:verbatim><tr><td></f:verbatim>
> <h:colum>
> <h:inputText ...>
> <f:verbatim></td><td></f:verbatim>
> </h:colum>
> <h:colum>
> <h:inputText ...>
> <f:verbatim></td></tr></f:verbatim>
> </h:colum>
> </x:dataList>
> (It makes no difference how the tags are ordered only the classname in 
> ClassCastException changes)
> ... I get the following exception:
> java.lang.ClassCastException: javax.faces.component.UIColumn
>         at 
> org.apache.myfaces.taglib.core.VerbatimTag.doAfterBody(VerbatimTag.java:76)
>         at 
> org.apache.jsp.suntools_at.onlineshop.warenkorb_jsp._jspx_meth_f_verbatim_0(warenkorb_jsp.java:387)
>         at 
> org.apache.jsp.suntools_at.onlineshop.warenkorb_jsp._jspx_meth_x_dataList_0(warenkorb_jsp.java:325)
>         at 
> org.apache.jsp.suntools_at.onlineshop.warenkorb_jsp._jspx_meth_h_form_0(warenkorb_jsp.java:244)
>         at 
> org.apache.jsp.suntools_at.onlineshop.warenkorb_jsp._jspx_meth_f_view_0(warenkorb_jsp.java:183)
>         at 
> org.apache.jsp.suntools_at.onlineshop.warenkorb_jsp._jspService(warenkorb_jsp.java:86)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
>         at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
>         at 
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
>         at 
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
>         at 
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
>         at 
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:405)
>         at 
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:280)
>         at 
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
>  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to