Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sapphire-dev] Help with Bug 405329 - "visible-when" does not work with enabled

The context of the visible-when EL is not what you are expecting.

 

<node>

    <label>Test node 1</label>

    <property>Parameter</property>

    <visible-when>${ Enabled( 'Parameter' ) }</visible-when>

    <section>

        <content>

            <property-editor>Parameter1</property-editor>

        </content>

    </section>

</node>

 

It’s inside the child element of the Parameter property, so Enabled function fails to resolve the property and returns null, which causes the node to be invisible.

 

This works:

 

<node>

    <label>Test node 1</label>

    <visible-when>${ Enabled( 'Parameter' ) }</visible-when>

    <section>

        <content>

            <with>

                <path>Parameter</path>

                <default-panel>

                    <content>

                        <property-editor>Parameter1</property-editor>

                    </content>

                </default-panel>

            </with>

        </content>

    </section>

</node>

 

So does this:

 

<node>

    <label>Test node 1</label>

    <property>Parameter</property>

    <visible-when>${ Enabled( Root(), 'Parameter' ) }</visible-when>

    <section>

        <content>

            <property-editor>Parameter1</property-editor>

        </content>

    </section>

</node>

 

- Konstantin

 

 

-----Original Message-----
From: sapphire-dev-bounces@xxxxxxxxxxx [mailto:sapphire-dev-bounces@xxxxxxxxxxx] On Behalf Of Ling Hao
Sent: Tuesday, April 09, 2013 9:10 PM
To: Sapphire project
Subject: [sapphire-dev] Help with Bug 405329 - "visible-when" does not work with enabled

 

Hi Konstantin,

 

Any suggestions on how to fix this issue? I believe the problem is this line in the sdef:

 

<visible-when>${ Enabled( 'Parameter' ) }</visible-when>

 

Thanks for any pointers,

Ling

_______________________________________________

sapphire-dev mailing list

sapphire-dev@xxxxxxxxxxx

http://dev.eclipse.org/mailman/listinfo/sapphire-dev


Back to the top