I have a class and subclasses who extends that. Like this:
@Table
@Entity
class Cat{
class DomesticCat extends Cat{
String litterBox;
//getter and setters
}
class TigerCat extends Cat{
String huntingStyle;
//getter and setters
}
}
i have a List<Cat> cats
in my controller bean.
i filled it like
cats.add(new DomesticCat());
cats.add(new TigerCat());
Here i want to write sth like this in my xhtml page
<ui:repeat var="cat" value="#{controller.cats}">
<outputText rendered="tried some control here, did not work" value="cat.litterBox"/>
</ui:repeat>
i am getting "Property not found exception".
is it possible?
EDIT
Wrong question sorry, what do you advise me to do to using extending subclasses and JSF together.