Indeed relying on indices is always risky without appropriate tests but in
my case, it would be helpful. I am adding controls at runtime
(programmatically) based on list elements (where I know the list size) and
would like to implement data binding.
it works for my standard bean properties of course but for my list it does
not. So I had to implement a custom binding system for this case.

On Mon, Aug 30, 2010 at 11:53 PM, Greg Brown <[email protected]> wrote:

> It isn't currently supported, though it would be trivial to add. I'm
> curious about the use case, though. It seems a bit fragile to rely on a
> numeric index, but maybe there is a valid use for it.
> G
>
> On Aug 30, 2010, at 3:33 PM, A. J. wrote:
>
> > Hi,
> >
> > Is it possible to have binding expressions that refer to list items using
> index accessor such as the following one (myList being of type
> java.util.List) ?
> >
> > ...
> > <TextInput textKey="myObj.myList[2]"  />
> > ...
> >
> > thanks in advance
> > AJ.
>
>

Reply via email to