webforj / webforj-docs

https://documentation.webforj.com/
0 stars 1 forks source link

ElementComposite PropertiesDescriptor needs some hinting ad GSon Type Adapter need #160

Open StephanWald opened 3 months ago

StephanWald commented 3 months ago

As soon as a Property is based on a complex structure involving Abstract base classes or Interfaces, the developer will need to write a Gson TypeAdapter /JsonSerializer / Json Deserializer.

We need to inform about this need, perhaps give a sample.

See https://github.com/webforj/webforj-addons/blob/main/webforj-addons-components/webforj-properties-panel/src/main/java/com/webforj/addons/components/propertiespanel/schema/BaseSchemaAdapter.java

ElyasSalar commented 3 months ago

This is a minimal reproduction of the issue with a solution commented so that you can reproduce and uncomment to see the solution.

@MatthewHawkins We can discuss how we can put it in simple words because even with the simplest reproduction, it still has some complications.