How would you do it if there were no facelets tag involved?

In my own code, it's #{contact.address.street} --
Contact.getAddress().getStreet().

Without knowing your datastructure, we can't give you an answer.


On 3/20/07, r.stranders <[EMAIL PROTECTED]> wrote:

Hi,

I've got a generic facelet for outputting attributes of an entity called
outputField.xhtml. Its definition:
<ui:composition>
    ...
    <h:outputText value="#{entity[fieldName]}" />
</ui:composition>

Example usage: <outputField entity="contact" fieldName="firstName" />

However, the entity "contact" also has an composite attribute "address"
which has attributes itself. However when I try: <outputField
entity="contact" fieldName="address.street" />. I get an exception. Any idea
how I can access the nested bean in this generic way? (i.e.
entity[fieldName])?
--
View this message in context: 
http://www.nabble.com/Navigate-nested-beans-tf3436593.html#a9581797
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Reply via email to