0

I have ui:repeat when i get minSize and maxSize i got error

j_idt59:2:string: Validation Error: Length is greater than allowable maximum of '0'

i tried to print values on screen the output is true min is 0 and max is 20 but when i set in f:validateLength i got error message

this my code

<p:inputText required="#{fileds.required == true? true : false}"
        id="string" requiredMessage="#{language.messageErrorRequied.value}"
        value="#{layoutComponentView.typeFiledsMap[fileds.code.concat(language.lang)]}">
      <f:validateLength minimum="#{fileds.minSize}" maximum="#{fileds.maxSize}" />
</p:inputText>
Kukeltje
  • 12,223
  • 4
  • 24
  • 47
yali
  • 1,038
  • 4
  • 15
  • 31
  • This can be regarding configuration value. Did you refer [https://stackoverflow.com/questions/2804934/jsf-validatelength-question] ? – Vebbie Dec 03 '18 at 10:12
  • @vebbie: I don't think it is related to that. Most likely bean scope/creation issue in code not visible. OP: please create a [mcve] and please post version info – Kukeltje Dec 03 '18 at 10:46
  • See also https://stackoverflow.com/questions/15682196/using-validator-with-a-variable-attribute-in-uirepeat – Jasper de Vries Dec 03 '18 at 13:04

0 Answers0