AnsweredAssumed Answered

How to use Converter's with parameters?

Question asked by ajv on Aug 16, 2007
Latest reply on Aug 23, 2007 by ajv

I want to apply a NumberConverter to a custom property with parameters (for formatting a custom metadata).
In the wiki it says ( how to assign a simple converter (one not requiring any parameters), but is it possible assign one converter with parameters??

I try with this (without parameters) in web-client-config-custom.xml config file:
<show-property name="qt:custom_property" show-in-edit-mode="false" converter="javax.faces.convert.NumberConverter"/>

But it fires NullPointerException:
08:27:23,302 ERROR [org.apache.myfaces.application.ApplicationImpl] Could not instantiate converter null

Any suggestion?
Thank you!