2 Replies Latest reply on May 13, 2009 9:07 AM by dragos cernahoschi

    rich:inplaceInput with f:convertNumber on a BigDecimal

    dragos cernahoschi Newbie

      Hello,

      I use an rich:inplaceInput with a converter from String to BigDecimal.

      <rich:inplaceInput id="inplace" required="true" value="#{invoiceItem.quantity}"
       converterMessage="Price value should be a real number. Price at row #{row+1} can't be changed."
       requiredMessage="Price at row #{row+1} wasn't filled. Value can't be changed."
       changedHoverClass="hover" viewHoverClass="hover" viewClass="inplace" changedClass="inplace"
       layout="block" selectOnEdit="true" editEvent="ondblclick" maxInputWidth="40px" minInputWidth="40px">
       <f:convertNumber pattern="#,###.##"/>
       <a:support event="onviewactivated" reRender="selectedItems,messages"/>
      </rich:inplaceInput>
      


      Everything works fine without the <f:convertNumber pattern="#,###.##"/>.

      If I add the <f:convertNumber pattern="#,###.##"/> the conversion throw the following exception:

      java.lang.IllegalArgumentException: argument type mismatch

      Is there a bug or I'm missing something?

      Thank you.