Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » Issue with expression in 'visible when' of component
Issue with expression in 'visible when' of component [message #1161718] Wed, 30 October 2013 00:40 Go to next message
Paul Kolonay is currently offline Paul KolonayFriend
Messages: 16
Registered: September 2013
Junior Member
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 15:35 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
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 15:44 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
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 17:00 Go to previous message
Paul Kolonay is currently offline Paul KolonayFriend
Messages: 16
Registered: September 2013
Junior Member
Verified fix. Thanks very much.
Previous Topic:Delegated Implementation
Next Topic:Using ImpliedElementProperties
Goto Forum:
  


Current Time: Tue Oct 15 00:14:54 GMT 2024

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

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

Back to the top