Community
Participate
Working Groups
There are two constants related to custom widget ids in WidgetUtil, both are marked as provisional. WidgetUtil.ENABLE_UI_TESTS holds the name of a system property that needs to be set to activate custom widget ids. I think this constant doesn't need to be available as a public constant at all as it is not meant to be used in application code. It should be moved to SystemProps, where all other system props reside. Either we make all of them available as API, or none. WidgetUtil.CUSTOM_WIDGET_ID is used as key in Widget#setData(). we could consider moving them to the class RWT, as we did with CUSTOM_VARIANT. However, I hesitate making the exchangeability of widget ids more prominent. Overriding widget ids involves the risk of assigning a widget id twice, which produces untraceable errors. I think we should first clarify if custom widget ids are still needed for UI tests (which common UI test tools rely on ids?).
With commit 3a6194788b109e9498363d306b0de690b109dff7 WidgetUtil.ENABLE_UI_TESTS has been moved to internal RWTProperties. Custom widget ids are not supported anymore (RAP 3.0+) and constant is removed.