Hi List,

Does anyone know whether it is possible to directly access the elements of an instantiated ArrayList by their index?

So if I would have in my backing bean:

ArrayList<String> list = new ArrayList<String>() // with e.g. elements from index [0] to [4] having precise semantics & being instantiated in the bean constructor

--> is there a way to do, on a page, stuff like:

<h:inputText value="#{backingBean.list[2]}" />

It would avoid having to create one dedicated proxy variable per index and handling the synchronization between these two.

Thanks for tips,
Phil

Reply via email to