AnsweredAssumed Answered

Converter could not be applied

Question asked by johan1974 on Feb 5, 2008
Latest reply on Feb 5, 2008 by johan1974
Hello,

I am trying an custom Content type example from an alfresco book and i got it working, only one thing is not working and that is a converter. Can someone tell me if this converter is allright or maybe it has a different name now?

Here is my web-client-config-custom.xml

<alfresco-config>

   <!– Example of overriding the from email address –>
   <!–
   <config>
      <client>
         <from-email-address>someone@your-domain.com</from-email-address>
         <search-max-results>100</search-max-results>
      </client>
   </config>
   –>

   <!– Example of adding languages to the list in the login page –>
   <config evaluator="string-compare" condition="Languages">
      <languages>
         <language locale="ca_ES">Catalan</language>
         <language locale="hr_HR">Croatian</language>
         <language locale="cs_CZ">Czech</language>
         <language locale="da_DK">Danish</language>
         <language locale="de_DE">German</language>
         <language locale="es_ES">Spanish</language>
         <language locale="el_GR">Greek</language>
         <language locale="fi_FI">Finnish</language>
         <language locale="fr_FR">French</language>
         <language locale="it_IT">Italian</language>
         <language locale="ja_JP">Japanese</language>
         <language locale="du_NL">Dutch</language>
         <language locale="pl_PL">Polish</language>
         <language locale="pt_PT">Portuguese</language>
         <language locale="pt_BR">Portuguese (Brazilian)</language>
         <language locale="ru_RU">Russian</language>
         <language locale="sv_SV">Swedish</language>
         <language locale="tr_TR">Turkish</language>
         <language locale="zh_CN">Simplified Chinese</language>
      </languages>
   </config>

   <!– Example of configuring advanced search –>
   <!–
   <config evaluator="string-compare" condition="Advanced Search">
      <advanced-search>
         <content-types>
         </content-types>
         <custom-properties>
            <meta-data aspect="app:simpleworkflow" property="app:approveStep" />
         </custom-properties>
      </advanced-search>
   </config>
   –>

   <!– Example of changing the sort direction for a view in the client –>
   <!–
   <config evaluator="string-compare" condition="Views">
      <views>
         <view-defaults>
            <topic>
               <sort-direction>ascending</sort-direction>
            </topic>
         </view-defaults>
      </views>
   </config>
   –>

   <!– Example of adding a custom icon to the Create Space dialog –>
   <!–
   <config evaluator="string-compare" condition="cm:folder icons">
      <icons>
         <icon name="space-icon-custom" path="/images/icons/space-icon-custom.gif" />
      </icons>
   </config>
   –>

   <!– The config below shows how to incorporate the example model–>
   <!– into the web client, for this to work you will need to –>
   <!– rename example-model-context.xml.sample to example-model-context.xml –>
   <!–
   <config evaluator="string-compare" condition="Content Wizards">
      <content-types>
         <type name="my:sop" />
      </content-types>
   </config>

   <config evaluator="node-type" condition="my:sop">
      <property-sheet>
         <show-property name="mimetype" display-label-id="content_type"
                        component-generator="MimeTypeSelectorGenerator" />
         <show-property name="size" display-label-id="size"
                        converter="org.alfresco.faces.ByteSizeConverter"
                        show-in-edit-mode="false" />              
         <show-property name="my:publishedDate" />
         <show-association name="my:signOff" />
         <show-property name="my:authorisedBy" />
         <show-child-association name="my:processSteps" />
      </property-sheet>
   </config>

   <config evaluator="aspect-name" condition="my:imageClassification">
      <property-sheet>
         <show-property name="my:width"/>
         <show-property name="my:height"/>
         <show-property name="my:resolution"/>
      </property-sheet>
   </config>

   <config evaluator="string-compare" condition="Action Wizards">
      <aspects>
         <aspect name="my:imageClassification"/>
      </aspects>
   </config>

   <config evaluator="string-compare" condition="Advanced Search">
      <advanced-search>
         <content-types>
            <type name="my:sop" />
         </content-types>
         <custom-properties>
            <meta-data type="my:sop" property="my:authorisedBy" />
            <meta-data aspect="my:imageClassification" property="my:resolution" />
         </custom-properties>
      </advanced-search>
   </config>
   –>

   <config evaluator="node-type" condition="custom:pressrelease">
   <property-sheet>
      <show-property name="mimetype" display-label-id="content_type" component-generator="MimeTypeSelectorGenerator" />
      <show-property name="size"     display-label-id="size"         converter="org.alfresco.faces.ByteSyzeConverter" show-in-edit-mode="false" />
      <show-property name="custom:PRName" />
      <show-property name="custom:PREmail" />
      <show-property name="custom:PRPhone" />
      <show-property name="custom:PRDate" />
   </property-sheet>
   </config>
  
   <config evaluator="string-compare" condition="Content Wizards">
   <content-types>
      <type name="custom:pressrelease" />
   </content-types>
   </config>
  
   <!– Lists the custom aspect in business rules action wizard –>
   <config evaluator="string-compare" condition="Action Wizards">
   <aspects>
      <aspect name="custom:CustomerDetails"/>
   </aspects>
   <subtypes>
      <type name="custom:pressrelease"/>
   </subtypes>
   </config>
  
   <!– Displays the properties in view details page –>
   <config evaluator="aspect-name" condition="custom:CustomerDetails">
   <property-sheet>
      <separator name="sepCust1" display-label="Customer Details" component-generator="HeaderSeparatorGenerator"/>
      <show-property name="custom:CustomerName"/>
      <show-property name="custom:CustomerContactName"/>
      <show-property name="custom:CustomerContactPhone"/>
      <show-property name="custom:CustomerProjectID"/>
      <show-property name="custom:CustomerNewCustomer"/>
      
   </property-sheet>
   </config>
  
  
</alfresco-config>


And this is the error i get:

[org.alfresco.web.bean.generator.BaseComponentGenerator] Converter org.alfresco.faces.ByteSyzeConverter could not be applied

Thnx!

Johan

Outcomes