5 Replies Latest reply on May 26, 2008 5:15 AM by Ilya Shaikovsky

    orderingList bug? PropertyNotFoundException on form submissi

    Maik Hassel Newbie

      I have an ordering list within my a form as shown below - straight forward enough!

      The backing bean has of course a getter for the audit categories.

      All works nicely except when I submit the form I get the following error:

      Is this a bug in my code or in richfaces...


      
      javax.faces.el.PropertyNotFoundException: /admin.xhtml @110,54 value="#{cat.name}": Error getting property 'name' from bean of type java.lang.String
       at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:58)
       at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
       at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:82)
       at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:191)
       at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:169)
       at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
       at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:286)
       at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
       at org.richfaces.renderkit.OrderingListRendererBase.encodeOneRow(OrderingListRendererBase.java:188)
       at org.richfaces.renderkit.AbstractRowsRenderer.process(AbstractRowsRenderer.java:87)
       at org.richfaces.model.OrderingListDataModel.walk(OrderingListDataModel.java:48)
       at org.ajax4jsf.component.UIDataAdaptor.walk(UIDataAdaptor.java:994)
       at org.richfaces.renderkit.AbstractRowsRenderer.encodeRows(AbstractRowsRenderer.java:107)
       at org.richfaces.renderkit.OrderingListRendererBase.encodeRows(OrderingListRendererBase.java:111)
       at org.richfaces.renderkit.AbstractRowsRenderer.encodeChildren(AbstractRowsRenderer.java:139)
       at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
       at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
       at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
       at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
       at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
       at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
       at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
       at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
       at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
       at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
       at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
       at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
       at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:284)
      


      <rich:orderingList
       value="#{adminDataBean.auditCategories}"
       var="cat" listHeight="300" listWidth="400">
      
       <rich:column width="200">
       <f:facet name="header">
       <h:outputText value="Category"/>
       </f:facet>
       <h:outputText value="#{cat.name}" />
       </rich:column>
      
       <rich:column width="100">
       <f:facet name="header">
       <h:outputText value="Min Value"/>
       </f:facet>
       <h:outputText value="#{cat.minValue}" />
       </rich:column>
       </rich:orderingList>