Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to get value of SPAN Tag in jSF

800481Jan 4 2010 — edited Jan 4 2010
Hi,

I have a JSF Code like this:
  <h:outputText id="dCode1" styleClass="font_size" value="Delivery Code"/>
The rendered HTML Code is :
<span id="content:frmManualDataEntry:dCode1" class="font_size">
I need to get the ID of the SPAN Tag and then HIDE the element. Currently when I do document.getElementByID('dCode1') I get an error saying document.getElementByID('dCode1') is NULL

Please HELP
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 1 2010
Added on Jan 4 2010
3 comments
716 views