Thanks Thiago, I'll just put the fields in the bean model.

regs
scot

2009/10/23 Thiago H. de Paula Figueiredo <thiag...@gmail.com>:
> Em Thu, 22 Oct 2009 21:13:08 -0200, Scot Mcphee <scot.mcp...@gmail.com>
> escreveu:
>
>> When I include the containing object ("Car" in my example) in a
>> Tapestry grid the embedded object doesn't show up.
>
> This happens because BeanModelSource (the service that creates BeanModels)
> doesn't pick properties of properties. The @Embedded annotation is ignored.
>
>> Is there any easy
>> way to coerce it to display as if it's fields were part of the
>> original, apart from writing a bean model?
>
> You can add methods like getRegistrationDate() { return
> registration.getDate(); } to your Car class.
> Another option is to add the Registration properties to the Car BeanModel:
>
> @Inject
> private BeanModelSource beanModelSource;
>
> @Inject
> private PropertyConduitSource propertyConduitSource;
>
> BeanModel model = beanModelSource.create(car);
> model.add("registrationDate", propertyConduitSource.create(Car.class,
> "registration.date");
>
>> containing objects, and I was wondering if there's anyway to annotate
>> the "Registration" object to tell Tapestry "automatically inline this
>> object's fields into the owning object's generated bean model" or
>> something like that.
>
> You can file a JIRA for that.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
let x=x - http://crazymcphee.net/x/
xray dubs - http://autonomous.org/music/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to