Community
Participate
Working Groups
Build Identifier: M20110909-1335 When using pagebook with Enum Control proeprty, sapphire throwing IndexOutOfBoundsException if we dont suffix the key with the Enum Property name Reproducible: Always Steps to Reproduce: 1.Create a Sapphire Model 2.Add an Enum property 3.Define a Pagebook with Enum property as control 4.When defining the Pagebook pages, dont qualify the Key of the page with Enum class name
I made it easier to specify enum-controlled page book panel keys in following ways: 1. The qualified form is no longer required (but it is still supported). Just the enum item name will do. 2. The enum item search ignores case. 3. Better exception messages for common page key problems. Three error cases are covered: Page book key "HtmlContentSourceType2.REMOTE" is invalid. Class "HtmlContentSourceType2" could not be resolved. Page book key "HorizontalAlignment.REMOTE" is invalid. Class "HorizontalAlignment" does not match property type. Page book key "EMBEDDED2" is invalid. Enum item "EMBEDDED2" could not be resolved in HtmlContentSourceType. Please verify.
Verified all 3 cases above. Closing.