1 Reply Latest reply on Aug 16, 2007 12:25 PM by Samuel Mendenhall

    Accessing objects into objects

    Vincent Wiencek Newbie

      Hi,

      I'm quite new to Seam, and I want to realize a simple thing.

      I have a web form referencing a User. My User object has many properties, but also a reference to an Address Object.

      My Object User has a @Name annotation. How can I access the Address field into my User object ?

      I've tried #{user.address.street} but it doesn't work ; I get the following error
      Caused by javax.el.PropertyNotFoundException with message: "/register.xhtml @69,61 value="#{user.address.street}": Target Unreachable, 'address' returned null on 'com.social.

      Thanks
      Vincent