Re: [trails-dev] Property viewers

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: [trails-dev] Property viewers

by Alejandro Scandroli-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Erick

Have you tried with BeanEditContext, or PropertyEditContext:

        @Environmental
        @Property(write = false)
        private BeanEditContext beanEditContext;

        @Environmental
        @Property(write = false)
        private PropertyEditContext propertyEditContext;

I think you will find enough metadata there.
Then you can access the trails's descriptors using something like:

descriptorService.getClassDescriptor(beanEditContext.getBeanClass()).getPropertyDescriptor(propertyEditContext.getPropertyId());

Is this what you were looking for?

Saludos.

--
Alejandro Scandroli - http://weblog.amneris.es/
Amneris: We build process-driven web applications.
http://www.amneris.es

Saludos.


On Wed, Aug 26, 2009 at 8:02 PM, Erik Putrycz<erik@...> wrote:

> I've been trying to add viewers to the trails trunk version in a similar way
> Editors are handled. I would like to format the date being displayed.
> However, only the PropertyOutputContext seems to carry any metadata about
> the field to render, and this object doesn't have any clues about the type.
> Does anyone have an idea on how to handle it or would someone have ties with
> the tapestry development by any chances?
>
> Erik
> Apption Software
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email