Skip to main content

Autocomplete in Datatable

2 replies [Last post]
gabox01
Offline
Joined: 2007-04-22
Points: 0

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 :

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.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Lincoln Baxter, III

Check out this blog entry:

http://ocpsoft.com/java/jsf-java/jsfs-hdatatable-vs-uirepeat-how-to-get-...

On Tue, 2009-09-22 at 01:08 -0700, webtier@javadesktop.org wrote:

> 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 :
>
>
> 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@gmail.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=365013
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>

--
Lincoln Baxter, III
Co-Founder of OcpSoft

Creator of:
PrettyFaces: URL rewriting for JSF
PrettyTime: Java elapsed timestamp formatting

[att1.html]

driscoll
Offline
Joined: 2003-06-06
Points: 0

Or, since you're using the ajax tag, you could also look at this one:

http://weblogs.java.net/blog/archive/2009/08/17/uirepeat-and-ajax