Another elegant way is maybe to decorate the BeanModelSource to detect
entities and set a special datatype in case of 'id' property. Anyway i
dind't make the test.

2010/6/16 Thiago H. de Paula Figueiredo <thiag...@gmail.com>

> On Wed, 16 Jun 2010 13:19:44 -0300, Christophe Cordenier <
> christophe.corden...@gmail.com> wrote:
>
>  ...some more hints
>>
>> Block resolution is made in this order :
>>
>> 1. Using the property id
>> 2. Using its data Type
>>
>> DataType is defined by the natural type of the property or with @DataType
>> annotation
>>
>
> The data type is defined by the DataTypeAnalyzer service. It uses an
> ordered configuration of DataTypeAnalyzers. You should implement one or
> contribute to the DefaultDataTypeAnalyzer service (useful when the object ->
> data type mapping is made by object type only).
>
> Then you'll need to contribute your blocks to the BeanBlockSource service.
>
> The Tapestry sources are a good source (ha!) of examples of the above.
> Start taking a look at TapestryModule.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Regards,
Christophe Cordenier.

Developer of wooki @wookicentral.com

Reply via email to