<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to use Converter's with parameters? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-converter-s-with-parameters/m-p/92347#M63099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to apply a NumberConverter to a custom property with parameters (for formatting a custom metadata).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the wiki it says (&lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Displaying_Custom_Metadata" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Displaying_Custom_Metadata&lt;/A&gt;&lt;SPAN&gt;) how to assign a simple converter (one not requiring any parameters), but is it possible assign one converter with parameters??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I try with this (without parameters) in web-client-config-custom.xml config file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;show-property name="qt:custom_property" show-in-edit-mode="false" converter="javax.faces.convert.NumberConverter"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it fires NullPointerException:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;08:27:23,302 ERROR [org.apache.myfaces.application.ApplicationImpl] Could not instantiate converter null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.NullPointerException&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestion?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2007 06:51:18 GMT</pubDate>
    <dc:creator>ajv</dc:creator>
    <dc:date>2007-08-16T06:51:18Z</dc:date>
    <item>
      <title>How to use Converter's with parameters?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-converter-s-with-parameters/m-p/92347#M63099</link>
      <description>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</description>
      <pubDate>Thu, 16 Aug 2007 06:51:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-converter-s-with-parameters/m-p/92347#M63099</guid>
      <dc:creator>ajv</dc:creator>
      <dc:date>2007-08-16T06:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Converter's with parameters?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-converter-s-with-parameters/m-p/92348#M63100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This isn't possible at the moment - please raise JIRA item for it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 10:56:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-converter-s-with-parameters/m-p/92348#M63100</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-08-20T10:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Converter's with parameters?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-converter-s-with-parameters/m-p/92349#M63101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;no, unfortunately, you can't use converters with parameters in the way you have tried (as you found out).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, you could create a custom component generator for your property that as part of it's implementation created and attached a NumberConverter. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look at the component generator wiki page: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Component_Generator_Framework" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Component_Generator_Framework&lt;/A&gt;&lt;SPAN&gt; and also the existing generators which can be found in org.alfresco.web.bean.generator&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 11:02:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-converter-s-with-parameters/m-p/92349#M63101</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2007-08-20T11:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Converter's with parameters?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-converter-s-with-parameters/m-p/92350#M63102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, thanks for your reply. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I add an item (&lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com/browse/AWC-1538" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AWC-1538&lt;/A&gt;&lt;SPAN&gt;) in JIRA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Al the moment, I try to create a custom component generator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adrian.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 05:48:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-converter-s-with-parameters/m-p/92350#M63102</guid>
      <dc:creator>ajv</dc:creator>
      <dc:date>2007-08-23T05:48:39Z</dc:date>
    </item>
  </channel>
</rss>

