>
> I do not see the difference (can you indicate me a piece of code) between
> *ClientBundle with CssResource *and *ClientBundle + CssResource *?
>
There is no difference, I just was a bit lazy to write "with" again ;-)
*#2*
> *
> *
>
>> > You have to create a separate ClientBundle/CssResource that you only
>> use inside your admin area.
>>
>
> I have :
> * public interface AR extends ClientBundle {*
> * public static final AR ADMIN_RES_INSTANCE =
> GWT.create(AR.class);*
> *
> *
> * public interface Acss extends CssResource {}*
> *
> *
> *
> @Source("A.css")
> Acss adminCss();
> *
> *}*
>
> (NB: "AR" = AdminResource, "Acss" = AdminCss):
>
> My question is : "Should I call *adminCss().ensureInjected()* AFTER the
> split point ? Actually, I call ensuredInjected() in the MananaSeguro#*
> EntryPoint*() of my application.
>
You have to call it inside the split point, e.g.
GWT.runAsync(new AsyncCallback<AdminArea>() {
onSuccess(AdminArea adminArea) {
AR ar = GWT.create(AR.class); //could also be called inside AdminArea
ar.adminCss().ensureInjected(); //could also be called inside AdminArea
app.show(adminArea);
}
});
If you want a clean split point you have to reference the code you want to
split out the first time inside the onSuccess() method and nowhere else.
Your static INSTANCE variable would prevent your ClientBundle to be
downloaded in the split point because this will create an instance during
app startup and to create it GWT has to know the code.
> *#3*
> My last question (I hope...), is that I have not succeed to use GWT 2.5
> SUPER DEV MODE. The doc talks about a -- * "Dev Mode On" bookmarklet* -- (
> https://developers.google.com/web-toolkit/articles/superdevmode) but this
> bookmarklet never appear in my case. What should I missed ?
>
You have to visit the Super Dev Mode code server on http://localhost:9876
and drag and drop the bookmarklet into your browser's bookmark bar.
-- J.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/Koc7G6rX6BQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.