Excuse me, I see

http://code.google.com/intl/en/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideAutomaticResourceInclusion

Module mymodule.gwt.xml
[...]
<script src="sha256.js"/>
[...]

Packages
[...]
org.example.mymodule.public
    sha256.js
[...]


(Am I right ?? )

Oscar



On Feb 11, 4:22 pm, obesga <[email protected]> wrote:
> >> Any reason you don't use a <script/> element in your module's gwt.xml?
>
> How is this done ? I've no idea about this tag into the gwt.xml file
>
> On Feb 11, 3:31 pm, Thomas Broyer <[email protected]> wrote:
>
> > On Feb 11, 12:26 pm, obesga <[email protected]> wrote:
>
> > > I want to use a javascript library - just to encode into sha256, this
> > > is the urlhttp://anmar.eu.org/projects/jssha2/-intoGWT code.
>
> > > I have one way, using JSNI
>
> > > public final class SHA256 {
>
> > > public static native String doSHA256(String text) /*-{
> > >        $wnd.doSha256(text);
> > >     }-*/;
>
> > > }
>
> > > (I think that's ok )
> > > as far as the js libraries are included into the host page.
>
> > > ¿ Is there a way to use a ClientBundle with Javascript libraries /
> > > files to inject them into GWT code ?
>
> > Any reason you don't use a <script/> element in your module's gwt.xml?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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.

Reply via email to