• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

validation for fck:editor

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is my question unclear,if it is so please ask whatever information you need
 
paritosh ranjan
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
and instead of that smiley I wanted to use a : and a p
i.e. a : and property
<s: property
 
paritosh ranjan
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please help I am stuck in middle of something due to this issue
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic