0 Replies Latest reply on Jan 14, 2011 1:17 AM by technokraft

    f:validateLength problem

    technokraft

      HI

        I have the following code:

       

      <rich:message for="overviewTextEdit" styleClass="error-message" />

                                                        <rich:editor id="overviewTextEdit" value="#{someBean.overview}" theme="advanced" required="true" width="610" height="300">

                                                        <f:validateLength minimum="1" maximum="1500" />

                                         <f:param name="theme_advanced_disable" value="cut,copy,paste,pasteword,strikethrough,undo,redo,link,unlink,image,cleanup,help,code,styleselect,formatselect,anchor,removeformat,hr,visualaid,separator"/>

                                         <f:param name="theme_advanced_buttons1" value="bold,italic,underline,indent,outdent,bullist,numlist"/>

                                         <f:param name="theme_advanced_buttons2" value="justifyleft,justifycenter,justifyright,sub,sup,charmap"/>

                                         <f:param name="theme_advanced_buttons3" value=""/>

       

      </rich:editor>

       

      The problem which i am facing is in case the length exceeds 1500, i am getting the following error:

      Validation Error: Value is greater than allowable maximum of {0}.

       

      Previously i was using textarea and the message was proper as "Validation Error: Value is greater than allowable maximum of '1500'.

       

      Could you pls help me out as to why the number (1500) does not come now after using rich:editor?