If you are using facelets, you can easily create additional EL function
that you can call to add to your collections and end with something like
#{add(collection,value)}

En l'instant précis du 01/19/07 17:34, lightbulb432 s'exprimait en ces
termes:
> If it's not something that's possible (though I hope it is) could some of you
> please describe how you deal with such common cases of Collection
> manipulation from JSF form field values?
>
>
>
> lightbulb432 wrote:
>   
>> Can I add/remove an input field value to a collection using EL? e.g.
>> "#{myBean.myCollection.add/remove}" or something like that? I'd hate to
>> have to create a special backing bean method for this when it's such a
>> simple and common thing that I'd have to do for so many collections.
>>
>> I could create a special tag or component, but I wouldn't even know where
>> to begin...that's why it'd be really great if somebody has created this
>> functionality already (preferrably part of JSF).
>>
>>     
>
>   

Reply via email to