This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Retrieve a dataTable ID for javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Retrieve a dataTable ID for javascript" Watch "Retrieve a dataTable ID for javascript" New topic
Author

Retrieve a dataTable ID for javascript

Kelly Adams
Greenhorn

Joined: Feb 15, 2003
Posts: 13
Hi,

I tried to retrieve a dataTable ID in JSF using the following two ways:

1. document.forms["form1"].elements["form1 ataTableID"]
2. Use a proxyID: http://www.jsftutorials.com/proxyTag.html#feedback

Both ways gave me Javascript error - null object exception

How can I get the dataTable ID then?

Thanks!
 
Don't get me started about those stupid light bulbs.
 
subject: Retrieve a dataTable ID for javascript
 
Similar Threads
[JSF 2.0] re-render a dataTable with Ajax ?
inputText, javascript
Google Map Mashup in JSF
commandLink not working in datatable+jsf2.0
How to stop JSF to append extra text in ID attribute of th components