users@woodstock.java.net

autocomlete Textfield in a tablecell

From: Steffen Kämpke <iolaus_at_gmx.ch>
Date: Mon, 18 Aug 2008 10:27:46 +0200

Hello List,
 
the ajax autocomplete with textfield example works fine, but how I can get
the element by id in a table?
 
With "this.id" I do get "form1:textField_field", but i need
"form1:textField" without the "_field" prefix. For more dynamic I do try to
get the id without prefix with DOM like nextSibling and previousSibling, but
I've some trouble with the JavaScript DOM and Woodstock Component.
 
What I need is a Java Script example how I get dynamicly the textField Id's
without the _field prefix like document.getElementById(id).id or so.
 
 
Thanks for Help
 

Kind regards

 

IO.