2 Replies Latest reply on Jun 6, 2010 3:32 PM by zogehu

    Nested rich:dataTable an subTable

    zogehu
      I have a nested table, but doesn't work.

      The exception is



      `javax.el.PropertyNotFoundException: /xxxxx.xhtml @40,70 value="#{_xxxxx.szov}": Property 'szov' not readable on type java.lang.String`


      I change the

      value="#{_xxxxx}"

      It writes the toString method value!


      But why doesn't work with instance property?
      What message does it mean?
      What can id do?


      The POJO has accessor!

          /**
           * @return the szov
           */
          public String getSzov() {
              return szov;
          }

          /**
           * @param szov the szov to set
           */
          public void setSzov(String szov) {
              this.szov = szov;
          }


      Please help!

       
        • 1. Re: Nested rich:dataTable an subTable
          zogehu
          It is not RichFaces propblem, next section is has same behavior:


          It works, it writes toString() of _yyyy
          |            <c:forEach items="#{xxxxAction.xxxxs}" var="_xxxx">
                          <h:outputText value="Key: #{_xxxx.total}" />
                          <c:forEach items="#{_xxxx.honaps}" var="_yyyy">
                            <h:outputText value="#{_yyyy}"/>
                          </c:forEach><br />
                      </c:forEach>|

          But

          |            <c:forEach items="#{xxxxAction.xxxxs}" var="_xxxx">
                          <h:outputText value="Key: #{_xxxx.total}" />
                          <c:forEach items="#{_xxxx.honaps}" var="_yyyy">
                            <h:outputText value="#{_yyyy.szov}"/>
                          </c:forEach><br />
                      </c:forEach>|

          says:

          javax.el.PropertyNotFoundException: /yyyyy.xhtml @53,65 value="#{_yyyy.szov}": Property 'szov' not readable on type java.lang.Integer
          • 2. Re: Nested rich:dataTable an subTable
            zogehu

            More info in richfases community discussion http://community.jboss.org/thread/152791