On 05/19/2011 01:28 PM, Thiago H. de Paula Figueiredo wrote:

As ningdh suggested, use the SelectModelFactory service.


Hi Thiago,

It was just a few days ago that I discovered the SelectModelFactory service.

In the past I have used the selectObject component described here:
http://wiki.apache.org/tapestry/Tapestry5SelectObject

with just few modifications and it concatenates several properties at once, and puts them in the label for example ike this: <t:selectobject list="listPersons" value="person" labelfield="literal:name '\s' birthCountry.title />

so we can start from one object and "navigate" to all relevant related objects and their properties in the database, with lazy loading.

The only problem with this is that the Generic encoder puts the label as the id of the option, so retrieval is but value, not by id, which can be sometimes problematic.

But, this page references few other approaches as *better*, and you have made a comment that they are wrong approaches. I have noticed this comment just two days ago. Do you think this approach is also not good?

How could we achieve the same as I described but with the help of the SelectModelFactory


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to