Skip to main content



      Home
Home » Archived » Sapphire » Issue with expression in 'visible when' of component
Issue with expression in 'visible when' of component [message #1161718] Tue, 29 October 2013 20:40 Go to next message
Eclipse UserFriend
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>
Re: Issue with expression in 'visible when' of component [message #1162737 is a reply to message #1161718] Wed, 30 October 2013 11:35 Go to previous messageGo to next message
Eclipse UserFriend
I reproduced the problem. Working on the fix.
Re: Issue with expression in 'visible when' of component [message #1162750 is a reply to message #1162737] Wed, 30 October 2013 11:44 Go to previous messageGo to next message
Eclipse UserFriend
I believe I have fixed this issue. Please confirm with build 390 or newer.
Re: Issue with expression in 'visible when' of component [message #1162834 is a reply to message #1162750] Wed, 30 October 2013 13:00 Go to previous message
Eclipse UserFriend
Verified fix. Thanks very much.
Previous Topic:Delegated Implementation
Next Topic:Using ImpliedElementProperties
Goto Forum:
  


Current Time: Sat Jul 05 14:06:17 EDT 2025

Powered by FUDForum. Page generated in 0.38351 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top