0 Replies Latest reply on Feb 17, 2010 9:58 AM by ciccio ciccio

    Properties value can't wire #{object}

    ciccio ciccio Newbie

      Hi guys,

      is it possible to wire an object in property of properties?

      The code is:

      <custom name="outputManager" class="it.Example">
           <field name="properties">
                <object class="it.MyProperties">
                     <property name="parametersMap">
                          <map class="java.util.HashMap">
                               <entry>
                                    <key>
                                         <string value="outputPathName" />
                                    </key>
                                    <value>
                                         <object expr="C:#{output[0].value}" />
                                    </value>
                               </entry>
                          </map>
                     </property>
                              <property name="properties">
                          <properties>
                               <property name="outputPathName" value="C:#{output[0].value}" />
                          </properties>
                     </property>
                 </object>     
           </field>
      <transition name="to end" to="end" />
      </custom>
      
       
      

       

      In this code i use a Map and it functions because i can use <object> with attribute "expr", otherwise when i use <properties> (java.util.Properties), the value can't wire my object #{output} and it takes "outputPathName" like "C:#{output[0].value}"

      Any suggestions to cast my object in string?

      I'd like to use EL function to concat but i'm still waiting an answer in my other thread!!

      Thanks in advance

       

      Ciccio