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 JSF and the fly likes Validation for rich:editor using 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 » Java » JSF
Bookmark "Validation for rich:editor using JavaScript" Watch "Validation for rich:editor using JavaScript" New topic
Author

Validation for rich:editor using JavaScript

Raja Pam
Greenhorn

Joined: Jan 04, 2011
Posts: 19
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

Joined: Jun 25, 2001
Posts: 15952
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Validation for rich:editor using JavaScript
 
Similar Threads
Strust2 validation problem
regarding ajax
Error object is not caught by the Controller
Working WYISWYG Editor for RichFaces 4
errorstyleclass attribute in html:text