User development,

A new message was posted in the thread "Properties value can't wire #{object}":

http://community.jboss.org/message/526790#526790

Author  : ciccio ciccio
Profile : http://community.jboss.org/people/ciccioVega

Message:
--------------------------------------------------------------
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

--------------------------------------------------------------

To reply to this message visit the message page: 
http://community.jboss.org/message/526790#526790


_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to