webtier@glassfish.java.net

Autocomplete in Datatable

From: <webtier_at_javadesktop.org>
Date: Tue, 22 Sep 2009 01:08:38 PDT

Hi!

Here is the situation:

I have a datatable, and at every row, there is a selectone component. The model under the selectone is huge, so i would like to filter it by some kind of autocomplete functionality.

A placed an inputText component next to the selectone with :
<f:ajax event="keyup" execute=".." render="..."/>

The problematic part is "..."

If i go into the source the selectone id looks like this:

form:datatable:1:mySelectOne
form:datatable:2:mySelectOne
form:datatable:3:mySelectOne

How can i find out the row number? As far as i now, render attribute does not support expressions.
[Message sent by forum member 'gabox01' (beres.gabor_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=365013