1 Reply Latest reply on Oct 22, 2007 8:52 AM by Ilya Shaikovsky

    Maxlength and size on h:inputText field not being set proper

    Steve Whatmore Newbie

      Good afternoon,

      I am having problem with the maxlength on a h:inputText, in that the maxlength field is not being accessed properly and I believe that it is pickup up the value from the size field instead.

      When I use the following:

      <h:inputText size="50" maxlength="256" value="#{securityClassAction.newSecurityClassDescription}" id="objectDetailDescriptionAdd" />

      this is what I get in the resultant HTML

      <INPUT id=j_id146:editObjectForm:objectDetailNameEdit maxLength=50 size=50 value=ROLE_ADMINISTRATOR name=j_id146:editObjectForm:objectDetailNameEdit xmlns="http://www.w3.org/1999/xhtml">

      Anyone else having this problem.