4 Replies Latest reply on Feb 8, 2012 6:39 AM by vi_mahe_ka1

    How to restrict the rich:editor content to 4000 characters

    vi_mahe_ka1

      Hi

      I have an problem in using rich:editor,

      In my application we are storing the values of the component in oracle database. as oracle DB column accepts only 4000 characters i want to restrict the rich:editor to accept only 4000 characters just like maxlength attribute of the inputText.is any option available?

      ValueChangeListener is not suitable as it fires after the change, and it will not restrict in first.

      i can go with the CLOB/BLOB, but i want to know any better option available

      I am using jsf 2,richfaces 3.3.3, and oracle 9.