| Summary: | Sapphire properties page should support "visible when" condition | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Shenxue Zhou <shenxue.zhou> |
| Component: | Sapphire | Assignee: | Konstantin Komissarchik <konstantin> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Shenxue Zhou
Enhancement implemented in 0.3.1 and 0.4 streams. See content in the enhancements doc and the architecture sample (the provider properties view page under component). Please verify. I just tried this new feature. It works on simple cases. But I encountered a problem with my diagram properties page. It has the following pages: 1. general 2. description 3. managed beans 4. parameters 5. return values 6. behavior 7. metadata resources Page 4, 5, 6 and 7 all have <visible-when> expressions. Page 4, 5 and 6's expression happen to be the toggle of page 7's expression. When page 4, 5 and 6 don't display, page 7 will display. But what's displayed for page 7 is page 4's content. I was very puzzled by this behavior and it took me more than an hour trying to understand what's going on. Finally I realized there must be a logic error in determining what's displayed for a page when there are a few visible-when expressions. Could you provide a repro as the scenario that I setup doesn't exhibit this problem? (In reply to comment #3) > Could you provide a repro as the scenario that I setup doesn't exhibit this > problem? If you change the architecture sample diagram's properties pages to the following: <properties-view> <page> <label>general</label> <content> <property-editor>DetailLevel</property-editor> <property-editor> <property>Description</property> <hint> <name>expand.vertically</name> <value>true</value> </hint> </property-editor> </content> </page> <page> <label>Detail</label> <visible-when>${false}</visible-when> <content> <property-editor>DetailLevel</property-editor> </content> </page> <page> <label>Description</label> <visible-when>${true}</visible-when> <content> <property-editor>Description</property-editor> </content> </page> </properties-view> You'll see what's displayed for Detail page is actually Description In my previous comment, I meant what's displayed for Description page is Detail Thanks for an easy repro. Fixed in 0.3.1 and 0.4 streams. Verified the fix |