Dear list,
It would be great if BeanEditor support collection and map properties,
or at least List.
Functionally, for this kink of properties, one wants to be able to
add/remove elements from the collection and edit them.
Programatically, it seems to be an hard problem...
I would like to explore with you how to bring this support to bean
editor, because I think that the need is real.
For my personal example, I had to do that for a CRUD application on LDAP
entries. LDAP entries are lists of attributes, and attributes are lists
of values...
To achieve my goal, I had to develop a complete specific component (base
on the model of BeanEditor) which handle a specific "entryBean". But the
result seems to be quite specific and tricky (the code is available at
http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/interldap/interldap-wui-t5/trunk/src/main/java/org/interldap/wui/tapestry/components/ldapentry/EditForm.java?view=log&rev=120
for the edit component, and
http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/interldap/interldap-wui-t5/trunk/src/main/java/org/interldap/wui/model/EntryBean.java?view=log&rev=120
for the special bean, but this code is completely out of date in the
_viewSVN_, the forge (ObjectWeb) is in migration and it seems to no go
too smoothly... Thought, the svn is up to date.)
Ok, so if you are interested, we may see what we want to do, and how we
can help implement it.
---------------------
Functionnaly, I wish to have that :
I have a bean with a list of "SomeType" (say String) : List<String>
fruits; (for instance [apple, lemon])
I want that the beaneditor construct this interface ( where [...] is the
editor matching String type) :
8<-------------------
[ apple ] _remove_this_fruit_
[ lemon ] _remove_this_fruit_
_Add_a_fruit_
8<-------------------
so, the question are
What are the major difficulties, and how can we implement that ?
Perhaps it just a special editor, which handle list type, but I don't
see how to coerce objects in the list, and how to get/set/add/delete them...
any ideas would be appreciated :)
Francois
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]