Issue with expression in 'visible when' of component [message #1161718] |
Tue, 29 October 2013 20:40  |
Eclipse User |
|
|
|
After updating to the latest 0.7 build the behavior of the expression language appears to have changed with respect to an included component.
We have a list property editor in a composite (component?) with an expression ${File != null} set for the 'Visible when' property. The composite is included in a Content Outline Node. The behavior before upgrading was that the list property editor would become visible when the File property was populated.
File is a ValueProperty (String) that is defined in the top level model and used in the same content outline node as the included composite.
I am not sure exactly when this changed but it is working as described above in build #353. With build #387 the list property editor is never visible no matter what the value in the File value property. Is there something different when using the EL in an included component? Or perhaps the EL changed with respect to how you check for null?
Here is an excerpt from the sdef showing the component and how it is used:
<composite>
<id>a.component</id>
<content>
<property-editor>
<property>property</property>
<child-property>
<property>Confirm</property>
<span>false</span>
<margin-left>0</margin-left>
<label>Confirm</label>
</child-property>
<child-property>
<label>Identifier Type</label>
<property>ElementIdType</property>
</child-property>
<show-label>false</show-label>
<visible-when>${File!=null}</visible-when>
</property-editor>
</content>
</composite>
<node>
<section>
<content>
<property-editor>
<property>File</property>
<action>
<id>open.savedfile</id>
<label>Open File</label>
</action>
<action-handler>
<action>open.savedfile</action>
<id>open.savedfile.handler</id>
<impl>OpenSavedFileHandler</impl>
</action-handler>
<hint>
<name>read.only</name>
<value>true</value>
</hint>
</property-editor>
<include>a.component</include>
</content>
</section>
</node>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.38351 seconds