aspose file tools*
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
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: 16012
    
  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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validation for rich:editor using JavaScript