Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validation for rich:editor using JavaScript

 
Raja Pam
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using rich:editor for one of the fields.
when i try to perform JS Validation check, its value is always found as undefined.
Please help.
I tried to refer the field as foloows:
document.getElementById('fieldName').value

Can any one please help ? It is an issue which i need to close asap.
please please
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that there are some rich:editor attributes and/or support methods that will do what you want in a more control-friendly way. The Rich Editor is actually a complex control based on a non-JSF version of a rich text editor, so just treating it like a TextArea control won't work.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic