Hi Serge,

Have you looked into DataSqueezers to solve this?  On the Wiki there are
examples at least for Cayenne (also on Cayenne wiki) and Hibernate.

hope this helps...


On 03/03/06, Sergei Dubov <[EMAIL PROTECTED]> wrote:
>
> I have an interesting problem...
>
> Let's say I have to pass a primary key of a DB record to a component's
> parameter. Say, I write in my page template for TextField
> "ognl:customer.locationId". Customer is a domain object, locationId is a
> primary key of one of the locations that the customer has.
>
> What I want is that the locationId be encoded in the forms (on POST) and
> in the link (on GET). I can take care of the encoding mechanism. And I
> am looking for a way to tell Tapestry to do it transparently for me.
>
> I understand that the key may be the concept of IBinding. If IBinding
> knows how to encode and decode values, then this should be a piece of
> cake.
>
> Please let me know, first of all, if this is the correct train of
> thought. And second, please, help me figure out how to extend
> ExpressionBinding (I assume this is the one I need), to plugin in my
> encoding logic.
>
> I greatly appreciate your help!
>
> Serge
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to