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
Hello,

I want to apply a NumberConverter to a custom property with parameters (for formatting a custom metadata).
In the wiki it says (http://wiki.alfresco.com/wiki/Displaying_Custom_Metadata) 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
java.lang.NullPointerException


Any suggestion?
Thank you!

Outcomes