[forge-dev] Scaffolding @Embeddable
Richard Kennard
richard at kennardconsulting.com
Fri Feb 22 18:53:47 EST 2013
Thomas,
Sorry for not being clear!
So it sounds like most of these issues are not Metawidget-related per se (i.e. generation of the JSF pages and managed beans)? Let me know if you need any
specific help with anything Metawidget related.
Regards,
Richard.
On 23/02/2013 10:42 AM, Thomas Frühbeck wrote:
> Richard,
> not sure, who the questioned was addressed to, but anyway: there are
> unpleasant problems with EmbeddedId:
> - Errai marshaller has to accept marshalling of the embedded
> objects, but they are not unconditionally available, maybe has to be
> handled by ErraiApp.properties (e.g. Entities in external jars)
> - they cannot be used as @PageState objects, the IDs are the
> "identifiers" in my Edit pages and transitions
> - they do not by default implement Comparable, so selecting/sorting
> in the CellTable etc. cannot be easily done
>
> This all refers to EmbeddedId of course, not Embedded in general, but a
> clean and simple solution would be interesting. (Currently I thought of
> transporting them as serialized object, as primary key they are
> immutable anyway.) My implementation of Errai scaffold is still too
> simple to make handling of embedded objects manageable.
>
> Thomas
>
> Am 22.02.2013 22:26, schrieb Richard Kennard:
>> Can you elaborate on what you need the scaffold to do?
>>
>> As a happy accident, Metawidget implicitly 'supports' embeddable simply by way of rendering a nested object in the UI. But I assume the generated JPA/Java
>> code will need to treat them a little differently?
>>
>> On 23/02/2013 3:44 AM, Lincoln Baxter, III wrote:
>>> The scaffold supports these now? I was unaware of that. When did that happen?
>>>
>>>
>>> On Fri, Feb 22, 2013 at 8:04 AM, Thomas Frühbeck <fruehbeck at aon.at <mailto:fruehbeck at aon.at>> wrote:
>>>
>>> Hi Michael,
>>>
>>> great to have you on board :-)
>>>
>>> The faces scaffold is found at:
>>> https://github.com/forge/core/tree/master/scaffold-faces
>>>
>>> Everything starts there:
>>> https://github.com/forge/core/blob/master/scaffold-faces/src/main/java/org/jboss/forge/scaffold/faces/FacesScaffold.java
>>>
>>> If you wander, how it gets started:
>>> https://github.com/forge/core/blob/master/scaffold-plugins/src/main/java/org/jboss/forge/scaffold/plugins/ScaffoldPlugin.java
>>>
>>> The evaluation step is here:
>>> https://github.com/forge/core/tree/master/scaffold-faces/src/main/java/org/jboss/forge/scaffold/faces/metawidget/inspector
>>>
>>> The building is done here:
>>> https://github.com/forge/core/tree/master/scaffold-faces/src/main/java/org/jboss/forge/scaffold/faces/metawidget/widgetbuilder
>>>
>>> Hope it helps, wish you the best :-)
>>> I'm struggling on a similar problem with errai scaffold, and decided to dump it for now. I am really looking forward to find a good solution in your's!
>>>
>>> Regards,
>>> Thomas
>>>
>>>
>>>
>>> Am 22.02.2013 11:42, schrieb Michael Koitz:
>>>> hi,
>>>>
>>>> i just made an feature request https://issues.jboss.org/browse/FORGE-797 for my issue. As i am a Java Developer myself and i like idea behind the
>>>> forge project, i would like to contribute.
>>>>
>>>> Can someone give me a starting point where i find the scaffolding for faces in the code?
>>>>
>>>> best, mike.
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> forge-dev mailing list
>>>> forge-dev at lists.jboss.org <mailto:forge-dev at lists.jboss.org>
>>>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>> _______________________________________________
>>> forge-dev mailing list
>>> forge-dev at lists.jboss.org <mailto:forge-dev at lists.jboss.org>
>>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>>
>>>
>>>
>>>
>>> --
>>> Lincoln Baxter, III
>>> http://ocpsoft.org
>>> "Simpler is better."
>>>
>>>
>>> _______________________________________________
>>> forge-dev mailing list
>>> forge-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/forge-dev
>> _______________________________________________
>> forge-dev mailing list
>> forge-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev
More information about the forge-dev
mailing list