users@woodstock.java.net

AW: autocomlete Textfield in a tablecell

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

I have fixed my Issue with a js function, that cut the prefix and return the
right id.
 
 
Greetings

  _____

Von: Steffen Kämpke [mailto:iolaus_at_gmx.ch]
Gesendet: Montag, 18. August 2008 13:17
An: users_at_woodstock.dev.java.net
Betreff: AW: autocomlete Textfield in a tablecell


Hello again,
 
sorry for my poor english. So, my only problem is to get the id from a text
field component. A simple example of my issue is the js code
onClick="alert('this.id')"; in a Woodstock textField component with id=tf.
 
The response after clicking the text field is "form1:tf_field". But if I set
a property with setProps(), I need the ID "form1:tf" without the "_field"
prefix. I dont found an example in the TLD docs.
 
Can you help me?
 
 
Greetings

  _____

Von: Steffen Kämpke [mailto:iolaus_at_gmx.ch]
Gesendet: Montag, 18. August 2008 10:28
An: users_at_woodstock.dev.java.net
Betreff: autocomlete Textfield in a tablecell


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.