邮件列表#419信息webobjects-dev@wocommunity.org
从: Markus Ruggiero (rucotec) <markus.ruggiero@rucotec.ch>
主题: Java Enums in D2W
日期: Fri, 3 Feb 2023 15:11:21 -0500
到: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
签署数字签名 (Text SHA256)
Quick question:

I have some fields defined in the EOModel as Java Enum. This is kind of a toOne relationship. How do I use these in the rules? I’d like to display the available enum values as a popup.

Example:
pageConfiguration = ‘EditTextblock’ => displayPropertyKeys = (....’layoutHint’...)
with layoutHint being defined in the EOModel as my.project.E_LayoutHint (Java Enum) with possible values E_LayoutHint.NONE, E_LayoutHint.LEFT_COLUMN, E_LayoutHint.RIGHT_COLUMN  etc. in the Java file.

Out of the box D2W displays the layoutHint property with an ERD2WDisplayString, same for pageConfiguration = ‘CreateTextblock’

Can (ER)D2W handle this already or do I have to create my own property level component?

Thanks
---markus---

内容依旧作为验证方:
<markus.ruggiero@rucotec.ch>
签署(FEED) 签署(DIGEST) 签署(INDEX) 不签署 联系 Listmaster