ICEfaces-EE
  1. ICEfaces-EE
  2. IPCK-97

EditableTable does not support nested object within row level data model

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.8.2.GA_P01
    • Fix Version/s: 1.8.2.GA_P02
    • Component/s: Facelet Components
    • Labels:
      None
    • Environment:
      -
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Create a getter in the bean that will return the desired property:

      If the Person class contains an Employee reference with a departmentName property, in the Person class create this getter for department name:

      public String getDepartmentName(){

          return employee.getDepartmentName();

      }
      Show
      Create a getter in the bean that will return the desired property: If the Person class contains an Employee reference with a departmentName property, in the Person class create this getter for department name: public String getDepartmentName(){     return employee.getDepartmentName(); }

      Description

      The editableTable does not support the row level object containing another object. For example, a Person object has an Address object within it like so:

      public class Person {

      int id;
      String firstName;
      String lastName;
      Address address;
      .......

      public class Address {
      private String street;
      ....

      The editableTable does not allow for the following address.street EL expression:

      <ice-cc:editableTable bean="#{editableTableExampleBean.editTableBean}" id="editableTable" idProperty="id">
      <ice-cc:textColumn title="Street" property="address.street" width="80px" />

        Activity

        Tyler Johnson created issue -
        Tyler Johnson made changes -
        Field Original Value New Value
        Salesforce Case [5007000000C1x0s]
        Description The editableTable does not support the row level object containing another object. For example, a Person object has an Address object within it like so:

        public class Person {

        int id;
        String firstName;
        String lastName;
        Address address;
        .......

        public class Address {
        private String street;
        ....

        When used within an editableTable:

        <ice-cc:editableTable bean="#{editableTableExampleBean.editTableBean}" id="editableTable" idProperty="id">
        <ice-cc:textColumn title="Street" property="address.street" width="80px" />

        it throws the following exception and the page does not render:

        javax.el.ELException: Error Parsing: #{id}_#{fn:replace(property,'.','_'}
        org.apache.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:125)
        org.apache.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:150)
        org.apache.el.lang.ExpressionBuilder.createValueExpression(ExpressionBui


        The editableTable does not support the row level object containing another object. For example, a Person object has an Address object within it like so:

        public class Person {

        int id;
        String firstName;
        String lastName;
        Address address;
        .......

        public class Address {
        private String street;
        ....

        The editableTable does not allow for the following address.street EL expression:

        <ice-cc:editableTable bean="#{editableTableExampleBean.editTableBean}" id="editableTable" idProperty="id">
        <ice-cc:textColumn title="Street" property="address.street" width="80px" />
        Tyler Johnson made changes -
        Attachment cc_editableTable.war [ 12368 ]
        Brad Kroeger made changes -
        Workaround Description Create a getter in the bean that will return the desired property:

        If the Person class contains an Employee reference with a departmentName property, in the Person class create this getter for department name:

        public String getDepartmentName(){

            return employee.getDepartmentName();

        }
        Workaround Exists [Yes]
        Brad Kroeger made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.8.2.GA_P02 [ 10225 ]
        Resolution Invalid [ 6 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Brad Kroeger
            Reporter:
            Tyler Johnson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: