Just a note to anyone come to this
Finally i add a method in my event object like
Event getSelf(){
return this;
}
void setSelf(){
}
so my view object now have three editor with
@Path("self")
NameEditor
@Path("self")
LocationEditor
@Path("self")
TimeEditor
Please be warn that, I didn't try this with request factory, only on
plain POJO, this approach may blow up your request factory
On 11月4日, 下午7時02分, Tobias <
thaberm...@gmail.com> wrote:
> Hi,
>
> from my understanding so far, the CompositeEditor is only useful if
> you want to have a variable number of instances of the sameeditor,
> usually for a list of objects. Look at the example in the docs, there
> is a WorkgroupEditor implementing CompositeEditor, which has n
> PersonEditors.
> For splitting up theeditorfor a large object, theEditor
> documentation actually mentions how to do that in the very last
> section:
http://code.google.com/webtoolkit/doc/latest/DevGuideUiEditors.html#V...
> Hope it helps!
>
> Regards,
> Tobias
>
> On Nov 3, 6:31 pm, billy <
laibillyki...@gmail.com> wrote:
>
>
>
>
>
>
>
> > After watching gwt 2.1 release doc, I am exciting to try outeditor
> > framework and the request factory.
> > Currently I had already successfully retieve of a eventProxy from my
> > mongodb using requestFactory.I am trying to glue the eventProxy to the
> >editorframework.
> > I follow the MVP idea which the presenter would tranfer the eventProxy
> > to the view layer for editing so my view is now implementing
> >Editor<EventProxy>
> > Since my eventProxy contain lots of property, which a single class
> > would be too large, I wish to logically divide the eventProxy into
> > three part like (name1,name2,name3), (time1,time2,time3) ,
> > (location1,location2,location3).
> > I had follow design at hand
>
> > class eventPresenter // (injected 1 viewEditor)
>
> > class eventView extendsEditor<EventProxy> // (injected 1
> > namesEditor, 1 timesEditor,injected 1 locationsEditor)
>
> > class namesEditor extends Composite implementsEditor<EventProxy>
>
> > class timesEditor extends Composite implements Editor<EventProxy>
>
> > class locationsEditor extends Composite implementsEditor<EventProxy>