gwt platform - gwtp dispatchAsync not injected in onBind() method -


i tried inject dispatchasync in presenter class's onbind() method.

@inject dispatchasync dispatchasync; 

but, null while try invoke execute inside dispatchasync.onbind() method.

i need details server while loading.

what can or can use statement in onbind() method or other place in presenter.

thanks in advance, bennet.

you should inject this

private final dispatchasync dispatchasync;  @inject presenter(...., dispatchasync dispatchasync) {    super(...);     this.dispatchasync = dispatchasync; } 

this way dispatchasync injected in presenter.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -