File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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!
 
 
subject: Retrieve a dataTable ID for javascript