webtier@glassfish.java.net

Re: [webtier] Autocomplete in Datatable

From: Lincoln Baxter, III <lincolnbaxter_at_gmail.com>
Date: Tue, 22 Sep 2009 10:28:59 -0400

Check out this blog entry:

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



On Tue, 2009-09-22 at 01:08 -0700, webtier_at_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 :
> <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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>

--
Lincoln Baxter, III
Co-Founder of OcpSoft
Creator of:
PrettyFaces: URL rewriting for JSF
PrettyTime: Java elapsed timestamp formatting