aspose file tools*
The moose likes Struts and the fly likes validation for fck:editor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validation for fck:editor" Watch "validation for fck:editor" New topic
Author

validation for fck:editor

paritosh ranjan
Ranch Hand

Joined: Aug 24, 2007
Posts: 62
I am using struts2.In a form I have used a fck editor and in its validation file I have used a I used a validator to check whether the length of the data entered is more than 6000 characters or not.But the validation is not working.If you enter more that 6000 characters no message is shown,and the form is also not submitted.What can be the problem?

The <fck:editor tag also does not have any name attribute,which is needed in validation file(xml file).
paritosh ranjan
Ranch Hand

Joined: Aug 24, 2007
Posts: 62
Is my question unclear,if it is so please ask whatever information you need
paritosh ranjan
Ranch Hand

Joined: Aug 24, 2007
Posts: 62
Here in the jsp file I m using fck editor,I want to validate cw.daCatalog.description


Now the code is from validation file(xml)


But its not working

cw.dsCatalog.description
cw-object of CatalogWrapper Class
dsCatalog-another object inside CatalogWrapper which has String description
paritosh ranjan
Ranch Hand

Joined: Aug 24, 2007
Posts: 62
and instead of that smiley I wanted to use a : and a p
i.e. a : and property
<s: property
paritosh ranjan
Ranch Hand

Joined: Aug 24, 2007
Posts: 62
Please help I am stuck in middle of something due to this issue
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
I guess not many people are familiar with fck:editor. Is this what you are using: http://www.fckeditor.net/? I also take it that you are using Struts 2.

Does this editor submit the contents of the text editor as part of the html post? I took a glance at the fckeditor site and came across this page: http://wiki.fckeditor.net/Developer%27s_Guide/Integration/Java

That page make it seem like the contents of the fckeditor were treated like a file upload. If that is the case I can understand why your validation would not work. Is everything except the validation working? Have you asked your question on the fckeditor forums?

- Brent
paritosh ranjan
Ranch Hand

Joined: Aug 24, 2007
Posts: 62
Yes,everything except the validation is working,even the validation is working if I am using a method for validation.But my application contains fckeditor in many pages so I can't go with writing validation methods for every page.
 
jQuery in Action, 2nd edition
 
subject: validation for fck:editor