Thursday, 15 July 2010

java - How to lazy load a uibinded GWT Editor -



java - How to lazy load a uibinded GWT Editor -

i guess long (and perhaps inaccurate attempt) explain gwt editors. also, because consider myself having rudimentary understanding of mechanisms of editors. please don't fault me brevity.

here code tying editor var uibinder template,

@path("canon.doer") @uifield shenandoereditor shanoneditor;

due @path specification, seems impossible lazy-load editor.

to demonstrate issue, without lazy-loading, decoupling construction this,

@uifactory shenandoereditor mkshanoneditor{ homecoming new shenandoereditor(); }

results in error during gwt.create

"could not find getter path ...

are there stragedies take allow lazy loading of gwt editor?

your problem editor generator looks @ method returns editor, it'll treat mkshanoneditor method getter subeditor. because has no @path, uses method name infer path within edited object, trying out mkshanoneditor , mkshanon, , doesn't find such getters in edited object.

you need annotate mkshanoneditor @editor.ignore.

now, lazy-loading part, you'd have create shenandoereditor no later valueawareeditor#setvalue, or editor won't populate it.

java gwt editor lazy-loading

No comments:

Post a Comment