Hi Dan and Martin, 
Thanks for following up. 
I'm currently wrapping up a POJO only implementation and will be looking at a 
UI soon. 
Will look at your hints then. 
Thanks, 
Kevin


On 24 September 2014 13:24:28 CEST, Dan Haywood <[email protected]> 
wrote:
>Kevin,
>I've raised a ticket for this [1] for if you fancy working on it.  Else
>I
>guess we'll get there in due course anyway.
>
>Cheers
>Dan
>
>
>[1] https://issues.apache.org/jira/browse/ISIS-898
>
>On 24 September 2014 10:12, Martin Grigorov <[email protected]>
>wrote:
>
>> Hi,
>>
>>
>> On Wed, Sep 24, 2014 at 10:59 AM, Dan Haywood <
>> [email protected]>
>> wrote:
>>
>> > Hi Kevin,
>> > sorry, never answered this question of yours.  Apols.  Within...
>> >
>> >
>> > On 3 September 2014 08:55, Kevin Meyer <[email protected]> wrote:
>> >
>> > >
>> > > Two questions come to mind:
>> > >
>> > > 1. What do the POJOs look like that can encode such a structure
>of
>> > > configuration records
>> > >
>> > >
>> > I would imagine it's a composite pattern, probably collapsed to
>single
>> > node:
>> >
>> > public class ConfigRecord {
>> >     @Optional
>> >     public ConfigRecord getParent() { ... }
>> >
>> >     public List<ConfigRecord> getChildren() { ... }
>> >
>> > }
>> >
>> > forming a 1:n bidirectional with itself.
>> >
>> > Most likely use view models for this.
>> >
>> >
>> >
>> >
>> > > 2. Can the Wicket viewer be updated to support a drag-and-drop
>tree
>> > > structure(drag and drop to re-arrange the structure from the
>> "as-parsed")
>> > > to reannrage and merge branches.
>> > >
>> > >
>> > It could, by writing a ComponentFactory that "appliesTo" only
>collections
>> > of ConfigRecords.
>> >
>> > Take a look at CollectionContentsAsAjaxTablePanelFactory [1], or
>perhaps
>> > even better CollectionOfEntitiesAsLocatablesFactory [2] in the
>gmap3
>> Wicket
>> > extension, for inspiration on that
>> >
>> >
>> > Obviously you'd need to find a Wicket component to actually
>implement the
>> > body of the panel that will render.  A quick google suggests that
>there
>> is
>> > a component in Wicket 6, in fact.
>> >
>>
>> Will something like
>>
>>
>http://www.wicket-library.com/wicket-examples-6.0.x/tree/wicket/bookmarkable/org.apache.wicket.examples.tree.TableTreePage
>> do the job ?
>>
>>
>> >
>> > Let me know if you decide to go this way but need some help.
>> >
>> > Cheers
>> > Dan
>> >
>> > [1]
>> >
>> >
>>
>https://github.com/apache/isis/blob/0af3219129076161143bd388e3fc3ec039cbed79/component/viewer/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/collectioncontents/ajaxtable/CollectionContentsAsAjaxTablePanelFactory.java#L45
>> >
>> > [2]
>> >
>> >
>>
>https://github.com/isisaddons/isis-wicket-gmap3/blob/master/extension/ui/src/main/java/com/danhaywood/isis/wicket/gmap3/ui/collectioncontents/CollectionOfEntitiesAsLocatablesFactory.java#L53
>> >
>> >
>> > >
>> > >
>> >
>>

-- 
Sent from my phone with K-9 Mail.
Please excuse my brevity.

Reply via email to