title: javax.el.PropertyNotFoundException accesing subclass in JSF 2.2 and RichFaces
body: <p>I have the next component in JSF:</p>
  
  <pre><code>&lt;rich:extendedDataTable value="#{userList}" var="obj" id="table"&gt;
      &lt;c:forEach items="#{columns}" var="column"&gt;
          &lt;rich:column width="#{column.width}"&gt;
                  &lt;h:outputText value="#{obj[column.property]}"/&gt;
          &lt;/rich:column&gt;
      &lt;/c:forEach&gt;
  &lt;/rich:extendedDataTable&gt;
  </code></pre>
  
  <p>This table paints the columns of the object User.java, and receives which columns I want to paint in a List</p>
  
  <p><strong>User.java</strong></p>
  
  <pre><code>String name;
  UserType type;
  // More attributes
  
  // All these methods are properly implemented
  public void setName(String name);
  public void setType(UserType type);
  public String getName();
  public UserType getType();
  </code></pre>
  
  <p><strong>MyBean.java</strong></p>
  
  <p>In my bean I initialized the next ArrayList with the columns, and I get a list of users from the database.</p>
  
  <pre><code>// Columns
  List&lt;Column&gt; columns = new ArrayList&lt;Column&gt;();
  columns.add(new Column("100", "name")); // String width, String property
  columns.add(new Column("100", "type.name")); // String width, String property
  // More columns
  
  // Users
  List&lt;User&gt; userList = db.getUsers();
  </code></pre>
  
  <p>This code is working properly if I dont add the second column of the previous code. If I do then I get the next exception:</p>
  
  <pre><code>javax.el.PropertyNotFoundException: The class 'my.package.User' does not have the property 'type.name'.
  at javax.el.BeanELResolver.getBeanProperty(BeanELResolver.java:661)
  at javax.el.BeanELResolver.getValue(BeanELResolver.java:290)
  </code></pre>
  
  <p><strong>Question:</strong></p>
  
  <p>How can I access the property "name" of the subclass "UserType"?</p>
  
  <p>Thanks.</p>