cancel
Showing results for 
Search instead for 
Did you mean: 

Converter parameters

iblanco
Confirmed Champ
Confirmed Champ
Is there a way to pass parameters to the custom converters using the Alfresco web-client configuration:

It seems the convertere configuration allows it:


       <converter>
      <converter-id>PriceConverter</converter-id>
      <converter-class>es.binovo.alfresco.web.ui.repo.converter.Long2DecimalConverter</converter-class>
      <property>
         <property-name>fractionDigits</property-name>
         <property-class>java.lang.Short</property-class>
      </property>
   </converter>

But this doesn't work in the web-cliente configuration:

   <config evaluator="node-type" condition="eun:ofertaProyecto">
      <property-sheet>
         <show-property name="eun:descuentoOferta" display-label="Descuento" converter="PriceConverter" fractionDigits="3"/>
         <show-property name="eun:portesOferta" display-label="Portes" converter="PriceConverter" fractionDigits="3"/>
         <show-property name="eun:tipoIvaOferta" display-label="Tipo IVA" converter="PriceConverter" fractionDigits="3"/>
         <show-property name="eun:formaPagoOferta" display-label="Forma de pago" />
         <show-property name="eun:plazoEntregaOferta" display-label="Plazo de entrega" />
         <show-property name="eun:validezOferta" display-label="Valido hasta" />
      </property-sheet>
   </config>

It doesn't complain at all, but it does not pass the parameter.
This is related to this other post.
1 REPLY 1

iblanco
Confirmed Champ
Confirmed Champ
There is related old ticket, but no solution or answer to the ticket: