I am trying to get a simple Enum property editor to work for my custom component but I keep getting an error: "Failed to load/render Property Editor"
The component XML is:
<input-parameter hidden="false" name="level" required="true" title="Log Level" type="org.apache.log4j.Level">
<default-value>
</default-value>
<property-editor editor-id="com.adobe.idp.dsc.propertyeditor.system.Enum" />
</input-parameter>
<class-path>
libs/log4j.jar
</class-path>
Log4j.jar is in the component package and in the component class path
I have tried the com.adobe.idp.dsc.propertyeditor.system.Enum Class as described in the docs here: http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.htm?content=001419.html
I also tried using com.adobe.idp.dsc.propertyeditor.system.EnumPropertyEditorComponent as described here: http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.htm?content=001379.html
Both give the same error. I even tried using my own Enum class insteasd of org.apache.log4j.Level and referencing that, but still get the same error.
Any ideas would be helpful - thanks
(Adobe LiveCycle Workbench ES2
Version: 9.0.0.1.20100511.1.236086)
Views
Replies
Total Likes
Ok after some playing about and changing random things, I seem to have figured it out.
- org.apache.log4j.Level is not an Enum class, it is a collection of static vars.
- I refactored my own Enum class to remove everything but the Enumeration values (no constructor, methods or construction parameters)
- I used com.adobe.idp.dsc.propertyeditor.system.Enum and not com.adobe.idp.dsc.propertyeditor.system.EnumPropertyEditorComponent
- I added my Enum class to the <export-packages> XML parameter
Hope this helps someone else with the same issues
Views
Replies
Total Likes