2 Replies Latest reply on Jan 8, 2007 2:21 AM by gartnerg

    s:decorate with h:inputText with f:convertNumber on Float

    gartnerg

      hi,
      I tried to decorate an inputText with convertNumber on a Float value within a form.

      ...
       <s:decorate>
       <h:inputText id="afloat" value="#{action.fl}">
       <f:convertNumber maxFractionDigits="2" minFractionDigits="2"/>
       </h:inputText>
      </s:decorate>
      ...


      It works with an Double but not with Float. Any Ideas?
      regards

        • 1. Re: s:decorate with h:inputText with f:convertNumber on Floa

          How does it fail?

          • 2. Re: s:decorate with h:inputText with f:convertNumber on Floa
            gartnerg

            First of all my environment.

            Windows XP
            JDK 6
            JBoss 4.0.5.GA
            Seam 1.1


            I'm able to give little more details. The error occurs with both types Float AND Double. But only if you submit an integer value or a decimal digit with 0 in the precision.

            example input:

            12.01 works
            12.6 works

            12 error
            12.0 error
            12.00 error


            without the s:decorate tag it is working correct!

            the error messages is shown in the faces message. no exception available.

            /action.xhtml @40,73 value="#{action.xyz}": Exception setting property xyz of base with class org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$856d4620, Bean: org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$856d4620, property: xyz, argument type mismatch


            best regards
            guenter