This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes Probem in javascript in a JSF when implementing tiles in it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Probem in javascript in a JSF when implementing tiles in it" Watch "Probem in javascript in a JSF when implementing tiles in it" New topic
Author

Probem in javascript in a JSF when implementing tiles in it

Radhe Krishna
Greenhorn

Joined: May 22, 2008
Posts: 2
Hi,

I am working on RSA 6.0
I am writnig a jsp using jsf components. Also i am handling some hide and show functionality of drop down components through javascript.
The jsp is running fine with all the javascript but when i imlpemented the tiles concept in th jsf, the same files started throwing javascript error. It says that 'option' is null or not an object.

"listCoverType" is returning null

PLease refer the Snippet :


[ Edited to use code tags - Paul Sturrock ]
[ May 23, 2008: Message edited by: Paul Sturrock ]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15959
    
  19

Chances are good that the tiling is altering the ID of the generated control. This is where browser tools like the Firefox DOM explorer can be useful.

Or, if you prefer, "show page source".


Customer surveys are for companies who didn't pay proper attention to begin with.
Radhe Krishna
Greenhorn

Joined: May 22, 2008
Posts: 2
Thanks a lot.. I view the source of the page and yes the id was a different one. So i wrote in the newly generated id and it worked. Thanks again
 
wood burning stoves
 
subject: Probem in javascript in a JSF when implementing tiles in it
 
Similar Threads
Problem using valueChangeListener and onchange
JSF
Issue with my webApp
How to set Default selection in h:selectOneMenu
can anybody help ??