This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 17166
    
  27

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.


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validation for rich:editor using JavaScript
 
It's not a secret anymore!