Re: How can you wait until GWT is ready externally? (after onEnterModule)

2009-08-06 Thread olivier nouguier
hi,
 On "simple"  solution:

* In your html/js code define a:

function toBeCalledByGWT{
 NetLoaderAPI.startUnitTests();
}

* Call this function by JNSI at the end of onModuleLoad().


public void onModuleLoad(){
/*
... Standard GWT code.
*/

callJSInPage();

}

public void native callJSInPage() /*-{
  $wnd.toBeCalledByGWT()();
}-*/;


HIH

On Thu, Aug 6, 2009 at 8:09 AM, dougx  wrote:

>
> How can you wait until after onModuleLoad() has been invoked for an
> application in external javascript?
>
> Should be quite a simple matter:
> - I have a GWT aplication that publishes a static JS API via JSNI.
> - I have a page that uses that API.
>
> I should be able to do this:
> 
> 
> 
> function apiTest() {
>  NetLoaderAPI.startUnitTests();
> }
> 
> 
>
> However, I can't use it, beacause I get an error like this:
> "TypeError: window.NetWorkerAPI is undefined"
>
> What? How is there some kind of delay between scripts loaded and run,
> and the document ready event?
>
> I have, for reference, compiled in xs mode, so the gwt code is not
> being loaded in an external iframe.
>
> ie. The API js is being included directly into the page header,
> firebug shows it as:
> http://localhost:8080/js/NetLoaderAPI/
> 9B08C2C4C155D60688C70B5ED70CC3CA.cache.js">...
>
> ~
> Doug.
> >
>


-- 
A coward is incapable of exhibiting love; it is the prerogative of the
brave.
--
Mohandas Gandhi

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: JNSI Problem Challenge

2009-08-06 Thread Luciano Broussal

Thank you Jeff and Bigous for your great help!

It is solved.

Regards.

Luciano


Luciano

On 5 août, 16:43, Bigous  wrote:
> Hi Luciano,
>
> Jeff is correct. The script that runs inside the HTML runs before the
> script inside your EntryPoint class.
> You can check this setting up a timeOut to call a function inside the
> html... I changed your code to see how it works...
>
> ... After the including GWT script...
>     
>             var count = 0;
>             function doStuff() {
>                     count++;
>                     try {
>                                         alert('Entered ' + count);
>                         alert(myJavaStaticMethod(1,2));
>                     } catch(err) {}
>                   }
>     
>   
>
>   
>   
>   
>   
>   
>   
>
>     
>      style="position:absolute;width:0;height:0;border:0">
>
>     
>       setTimeout("doStuff()", 1000);
>       doStuff();
>     
>   
> 
>
> We can see 'Entered 1' without the result. This occurs while the
> browser is loading the HTML.
> We can see 'Entered 2' without the result. This occurs in the bodys
> event onload.
> We can see 'Entered 3' with the result 3. This occurs in the timeout
> event.
>
> So, you're calling the function before it has been defined.
>
> Best regards,
> Richard Natal
>
> On Aug 4, 6:06 pm, Jeff Chimene  wrote:
>
> > On 08/04/2009 01:24 PM, Luciano Broussal wrote:
>
> > > Line 49: Object expected
> > > Char : 9
> > > Code: 0
> > > URL : url of myjsni.html  test file
>
> > My guess is that the entire environment has not been created, hence the
> > "object expected" error. What I'm saying is that the GWT-generated code
> > that loads the $wnd.myJavaStaticMethod runs after the scripts in the
> > body tag.
> > You can try something like "if (window.sum) sum(3,3);" to prove this.
>
> > You won't usually use GWT in the style of putting scripts in the body
> > tag. You'll usually load the scripts via the head tag. Even when
> > retrofitting existing systems, this is the common technique.
>
> > > HTH Help
>
> > > On Aug 4, 9:33 pm, Jeff Chimene  wrote:
> > >> On 08/04/2009 12:23 PM, Luciano Broussal wrote:
>
> > >>> Hi Jeff,
>
> > >>> I got a blank page and the myJavaStaticMethod is never called  or on
> > >>> IE i got the javascript error icon on left bottom corner.
>
> > >> What's the text associated with this error?
>
> > >>> I don't really now what is going wrong. Can you make it work on your
> > >>> side ? ...
>
> > >>> Thanks
>
> > >>> Luciano
>
> > >>> On Aug 4, 8:31 pm, Jeff Chimene  wrote:
> >  On 08/04/2009 10:41 AM, Luciano Broussal wrote:
>
> > > Hi all,
>
> > > I'm fighting withJSNIfor a time without success trying to call a
> > > java method from my javascript stuff.
>
> > > I did as explained online but without success :(
>
> > >http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(goog...)
>
> > > He is my class and html.
>
> > > This makes me crazy. If someone could help me to display 1+ 2  = 3
> > > please.
>
> >  What symptoms does this derangement exhibit?
>
> > > Thanks
>
> > > Luciano
>
> > > CLASS
> > > **
>
> > > package com.st.jsni.client;
>
> > > import com.google.gwt.core.client.EntryPoint;
>
> > > /**
> > >  * Entry point classes define onModuleLoad().
> > >  */
> > > public classJsniimplements EntryPoint {
> > >   �...@override
> > >    public void onModuleLoad() {
> > >            exportStaticMethod();
> > >    }
>
> > >    public static native void exportStaticMethod() /*-{
> > >            $wnd.myJavaStaticMethod =
> > >               @com.st.jsni.client.Jsni::sum(II);
> > >    }-*/;
>
> > >    public static int sum(int a, int b) {
> > >            return a + b;
> > >    }
> > > }
>
> > > HTML
> > > *
>
> > > 
> > >   
> > >     
> > >     
> > >     Web Application Starter Project
> > >     
> > >   
>
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
>
> > >     
> > >      > > style="position:absolute;width:0;height:0;border:0">
>
> > >     
> > >            alert(myJavaStaticMethod(1,2));
> > >     
> > >   
> > > 
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How can you wait until GWT is ready externally? (after onEnterModule)

2009-08-06 Thread dougx

Yes, that does work. However, it's awkward.

For example, if someone using jquery were to use my API, it would be
nice for them to be able to do this:
$(function() {
MyAPI.XXX(...);
});

Not this:
myApiReady() {
   MyAPI.XXX(...);
}

Big deal right? ...but imagine how it scales. Say you depend on three
GWT API's. Now you're looking at something like this:

var readyStates = {'one' : false, 'two' : false, 'three' : false };
myReallyActuallyReallyReadyFunction() {
 ...
}
function myApiOneReady() {
readyStates.one = true;
if (readyStates.one && readyStates.two && readyStates.three)
myReallyActuallyReallyReadyFunction();
};
function myApiTwoReady() {
readyStates.two = true;
if (readyStates.one && readyStates.two && readyStates.three)
myReallyActuallyReallyReadyFunction();
};
function myApiThreeReady() {
readyStates.three = true;
if (readyStates.one && readyStates.two && readyStates.three)
myReallyActuallyReallyReadyFunction();
};

Ouch.

I still don't understand why the onModuleLoad kicks off after the
onLoad event; unless GWT is specifically waiting for the onLoad event
before it kicks off its own internal processes.

I suppose that vaguely makes sense, but it means that as an API
platform it's vastly unuseful, unless there's a way to turn it off.


~
Doug.


On Aug 6, 3:06 pm, olivier nouguier 
wrote:
> hi,
>  On "simple"  solution:
>
> * In your html/js code define a:
>
> function toBeCalledByGWT{
>  NetLoaderAPI.startUnitTests();
>
> }
>
> * Call this function by JNSI at the end of onModuleLoad().
>
> public void onModuleLoad(){
> /*
> ... Standard GWT code.
> */
>
> callJSInPage();
>
> }
>
> public void native callJSInPage() /*-{
>   $wnd.toBeCalledByGWT()();
>
> }-*/;
>
> HIH
>
>
>
> On Thu, Aug 6, 2009 at 8:09 AM, dougx  wrote:
>
> > How can you wait until after onModuleLoad() has been invoked for an
> > application in external javascript?
>
> > Should be quite a simple matter:
> > - I have a GWT aplication that publishes a static JS API via JSNI.
> > - I have a page that uses that API.
>
> > I should be able to do this:
> > 
> > 
> > 
> > function apiTest() {
> >      NetLoaderAPI.startUnitTests();
> > }
> > 
> > 
>
> > However, I can't use it, beacause I get an error like this:
> > "TypeError: window.NetWorkerAPI is undefined"
>
> > What? How is there some kind of delay between scripts loaded and run,
> > and the document ready event?
>
> > I have, for reference, compiled in xs mode, so the gwt code is not
> > being loaded in an external iframe.
>
> > ie. The API js is being included directly into the page header,
> > firebug shows it as:
> > http://localhost:8080/js/NetLoaderAPI/
> > 9B08C2C4C155D60688C70B5ED70CC3CA.cache.js">...
>
> > ~
> > Doug.
>
> --
> A coward is incapable of exhibiting love; it is the prerogative of the
> brave.
> --
> Mohandas Gandhi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Is it possible for a button to generate a file and then load it into a new window?

2009-08-06 Thread toont...@googlemail.com

When I tried to do this I run into popup blockers because the code
that opens the new window is in a callback that is run after a call to
the server finishes. The user initiated the call to the server with a
button click but because of the asynchronous callback browsers don't
see this as user initiated and block the new window.

Is the only solution to have the user click twice? Once to generate
the file and then when it is ready to click again to open it?

-ken
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT and struts integration

2009-08-06 Thread rpelluru

Hi all,
   We have existing web application implemented using Struts
1.1.
We want to integrate GWT in our existing struts application.
I didn't find any articles or sample code on GWT + struts integration.

Could any one please provide the articles or sample code about the GWT
+ struts integration.

Regards,
Rajesh

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Home Page is Loading very slow in GWT

2009-08-06 Thread mars1412

http://code.google.com/intl/de-DE/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#Can_I_speed_up_the_GWT_compiler?

On Aug 6, 6:46 am, JavaTech  wrote:
> Hello All-
>
>  I am using GWT 1.5.3
>
> More over home page loading is very slow.
>
> I checked with all things fine .
>
> When ever home page load the Genreated cache.html size is around 4MB
> is loaded.
>
> is this reason home page is loading is very low?
>
> if possible let us know  reducing  cache.html when GWT complies.
>
> any GWT complier options are there to reducing the cache.html?
>
> Thanks for your help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Home Page is Loading very slow in GWT

2009-08-06 Thread mars1412

upps:
I wanted to post this:
http://code.google.com/intl/de-DE/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#Why_is_my_GWT-generated_JavaScript_gibberish?
try the OBF mode

On Aug 6, 11:30 am, mars1412  wrote:
> http://code.google.com/intl/de-DE/webtoolkit/doc/1.6/FAQ_DebuggingAnd...
>
> On Aug 6, 6:46 am, JavaTech  wrote:
>
> > Hello All-
>
> >  I am using GWT 1.5.3
>
> > More over home page loading is very slow.
>
> > I checked with all things fine .
>
> > When ever home page load the Genreated cache.html size is around 4MB
> > is loaded.
>
> > is this reason home page is loading is very low?
>
> > if possible let us know  reducing  cache.html when GWT complies.
>
> > any GWT complier options are there to reducing the cache.html?
>
> > Thanks for your help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and struts integration

2009-08-06 Thread Kamal Chandana Mettananda
Hi Rajesh,

There's an article about using GWT with Servlets; not quite sure whether
that will help you a lot. May be you can have a look.

http://lkamal.blogspot.com/2008/09/java-gwt-servlets-web-app-tutorial.html

Cheers.
Kamal

---

http://lkamal.blogspot.com







On Thu, Aug 6, 2009 at 2:16 PM, rpelluru  wrote:

>
> Hi all,
>   We have existing web application implemented using Struts
> 1.1.
> We want to integrate GWT in our existing struts application.
> I didn't find any articles or sample code on GWT + struts integration.
>
> Could any one please provide the articles or sample code about the GWT
> + struts integration.
>
> Regards,
> Rajesh
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and struts integration

2009-08-06 Thread mariyan nenchev
Just create struts action that directs you to the gwt host page (jsp for
example).
You may have multiple entry points, use one action and pass the desired
module id to the action and with switch decide where to go. Not so hard?

On Thu, Aug 6, 2009 at 11:46 AM, rpelluru  wrote:

>
> Hi all,
>   We have existing web application implemented using Struts
> 1.1.
> We want to integrate GWT in our existing struts application.
> I didn't find any articles or sample code on GWT + struts integration.
>
> Could any one please provide the articles or sample code about the GWT
> + struts integration.
>
> Regards,
> Rajesh
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



maps with TileLayer

2009-08-06 Thread lumo

how can i add a custom maptype to my map?

a friend of mine is writing his map by hand (all js)

i'm coding it in gwt and therefore i do not want to inject custom js
code.
i can look up his code and came to a point where my ide tells me that
a type cant be instantiated.

so what i am doing is...
create a Copyright, then a CopyrightCollection.
all fine till i reach TileLayer which cant be instantiated.

the following code is java (outcommented code is javascript)
I#m trying to reproduce this from javascript as i did not find a
sample for java. (yes, i used the search function)
[java]
String license = "CC-BY-SA";
Copyright copyright = new Copyright(1, LatLngBounds.newInstance
(LatLng
.newInstance(-90.0, -180.0), 
LatLng.newInstance(90.0, 180.0)),
0, license);
CopyrightCollection copyrightCollection = new 
CopyrightCollection(
"Kartendaten © 2009  OpenStreetMap");
copyrightCollection.addCopyright(copyright);
// var tilelayers_OSM = new Array();
// tilelayers_OSM[0] = new GTileLayer(copyrightCollection, 0, 
18);
// tilelayers_OSM[0].getTileUrl = GetTileUrl_OSM;
// tilelayers_OSM[0].isPng = function () { return true };
// tilelayers_OSM[0].getOpacity = function () { return 1.0 };
// OSM_map = new
// 
GMapType(tilelayers_OSM,G_SATELLITE_MAP.getProjection(),"OSM",{
// urlArg:'OSM', linkColor:'#00' });
// map.addMapType(OSM_map);
// function GetTileUrl_OSM(a,z) {return "http://
tile.openstreetmap.org/"
// + z + "/" + a.x + "/" + a.y + ".png";}
[/java]

do you have a sample how this works in java?

thanks in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and struts integration

2009-08-06 Thread Rajesh Pelluru
Hi mariyan,
Thanks for your reply. Can you please explain me more detail.
Could you please share the sample code do u have .

Regards,
Rajesh

On Thu, Aug 6, 2009 at 3:21 PM, mariyan nenchev
wrote:

> Just create struts action that directs you to the gwt host page (jsp for
> example).
> You may have multiple entry points, use one action and pass the desired
> module id to the action and with switch decide where to go. Not so hard?
>
>
> On Thu, Aug 6, 2009 at 11:46 AM, rpelluru  wrote:
>
>>
>> Hi all,
>>   We have existing web application implemented using Struts
>> 1.1.
>> We want to integrate GWT in our existing struts application.
>> I didn't find any articles or sample code on GWT + struts integration.
>>
>> Could any one please provide the articles or sample code about the GWT
>> + struts integration.
>>
>> Regards,
>> Rajesh
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



.gwt-TreeItem-selected does not work?

2009-08-06 Thread Vegard

I have a GWT tree on my page. When a treeitem is clicked  (selected),
its background-color gets "light blue" (I think the color code is
#C3D9FF). This color is the default color on a selected item.

I would like to change the background-color on a selected treeitem.

In my css I have the following:

.gwt-Tree .gwt-TreeItem-selected {
background-color: #BB !important;
text-decoration: underline;
}

But it does not seem to work. The selected treeitem gets underlined,
but the background-color does not change. It is still the default
color. Is this some kind of bug?

-Vegard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and struts integration

2009-08-06 Thread mariyan nenchev
public class GwtEntryPointAction extends Action {

@Override
protected ActionForward lexecute(ActionMapping mapping, ActionForm
theForm, HttpServletRequest request, HttpServletResponse response)
throws Exception {
 Integer entrypointId =
Integer.parseInt(request.getAttribute("epid"));
 swtich(entrypointId) {
 
return mapping.findForward("hostpage1");
.
return mapping.findForward("hostpage2");

  }

}

}


hostpage1.jsp :



hostpage2.jsp




Or even you may use one jsp, but the switch logic must be in it, which is
better :)

There is nothing special about struts.
It's more complicated if you want mixed struts + gwt ui that are connected
and weather the gwt components are client side only or not. You should think
how to integrate that. My be with some custom js, but i can't give you an
example for that, i have never done this. My gwt part was independent from
the struts part.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



StaticStringInternationalization

2009-08-06 Thread lumo

hello NG,

i'm following the documentation from
http://code.google.com/intl/de-DE/webtoolkit/doc/1.6/DevGuideI18nAndA11y.html#DevGuideStaticStringInternationalization
by now i externalized ALL my strings to .properties files and created
multiple of em.

Constants.properties
Constants_en.properties
Constants_de.properties

when i now compile my map and upload it to my webserver (simple html
webspace)
i always get the content of Constants.properties listed as text...

i tried setting favourite languages to de or en, still the same...
any ideas why or how i can change this behaviour?

note: if i use äüö in german ö wrong chars are shown (utf-8)
i tried to add

and

to my module.html which ended both times with the same result...

thanks in advance
lumo

PS: i am using eclipse 3.4 and gwt 1.7
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT-RPC will pick-up a wrong implementation?

2009-08-06 Thread hezjing
Hi

If I follow Ray Ryan presentation (page 18, 19), he mentioned that it's good
to be specific of the implementation:

ArrayList is favor than List

that is to ensure that the GWT-RPC will pick up the right implementation.


I'm just curios of how the GWT-RPC will pick up the wrong implementation?


-- 

Hez

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT-RPC will pick-up a wrong implementation?

2009-08-06 Thread Paul Robinson

Whatever class you specify, GWT needs to look for all serializable
subclasses so that it can generate the javascript necessary to serialize
them.

Specifying ArrayList in the API means GWT has to do less work when it
comes to creating the serialization code compared to specifying List (or
even worse, Collection).

hezjing wrote:
> Hi
>
> If I follow Ray Ryan presentation (page 18, 19), he mentioned that
> it's good to be specific of the implementation:
>
> ArrayList is favor than List
>
> that is to ensure that the GWT-RPC will pick up the right implementation.
>
>
> I'm just curios of how the GWT-RPC will pick up the wrong implementation?
>
>
> -- 
>
> Hez
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: XMLParser return carriage

2009-08-06 Thread Nickelnext

first, thank you for your help.

Second: I read your answers and I understand that I need to put my
text in CDATA sections.
What I don't understand is why I need to to this

Element product = xml.createElement(*PRODUCTTAG*);
Element productUID = xml.createElement(*PRODUCTUIDTAG*);
Text productUIDText = xml.createTextNode(*this*.productUID);
productUID.appendChild(productUIDText);
product.appendChild(productUID);
products.appendChild(product);

first: - can you explain what are your constants (PRODUCTTAG,
PRODUCTUIDTG) about? It will help me understand better your example.
Thanks
second: - should i create a TextNode or a CDATA node like you wrote
before, to read text between cdata tags?
third : - what you do is to create a TextNode with "content" tag,
right? Then you append this node somewhere in the Document, then you
get it back with contents = element.getElementsByTagName("content"); ,
right?

Answering your question: contents is a collection, cause the
getElementsByTagName("content") returns all the nodes that have
"content" tag, so I use item(x) to retrieve the item x in that
collection.

Besides, my xml is like that,

 
first text here
 
 
second text here
 



So i need to create a text element for EACH item in that collection,
right?

Sorry for my dumb questions but i can't really figure out what is the
right solution for my problem, thank you again for your time.

Bye
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: JNSI Problem Challenge

2009-08-06 Thread myapplicationquestions

How did you solve it?

On Aug 6, 3:51 am, Luciano Broussal 
wrote:
> Thank you Jeff and Bigous for your great help!
>
> It is solved.
>
> Regards.
>
> Luciano
>
> Luciano
>
> On 5 août, 16:43, Bigous  wrote:
>
>
>
> > Hi Luciano,
>
> > Jeff is correct. The script that runs inside the HTML runs before the
> > script inside your EntryPoint class.
> > You can check this setting up a timeOut to call a function inside the
> > html... I changed your code to see how it works...
>
> > ... After the including GWT script...
> >     
> >             var count = 0;
> >             function doStuff() {
> >                     count++;
> >                     try {
> >                                         alert('Entered ' + count);
> >                         alert(myJavaStaticMethod(1,2));
> >                     } catch(err) {}
> >                   }
> >     
> >   
>
> >   
> >   
> >   
> >   
> >   
> >   
>
> >     
> >      > style="position:absolute;width:0;height:0;border:0">
>
> >     
> >       setTimeout("doStuff()", 1000);
> >       doStuff();
> >     
> >   
> > 
>
> > We can see 'Entered 1' without the result. This occurs while the
> > browser is loading the HTML.
> > We can see 'Entered 2' without the result. This occurs in the bodys
> > event onload.
> > We can see 'Entered 3' with the result 3. This occurs in the timeout
> > event.
>
> > So, you're calling the function before it has been defined.
>
> > Best regards,
> > Richard Natal
>
> > On Aug 4, 6:06 pm, Jeff Chimene  wrote:
>
> > > On 08/04/2009 01:24 PM, Luciano Broussal wrote:
>
> > > > Line 49: Object expected
> > > > Char : 9
> > > > Code: 0
> > > > URL : url of myjsni.html  test file
>
> > > My guess is that the entire environment has not been created, hence the
> > > "object expected" error. What I'm saying is that the GWT-generated code
> > > that loads the $wnd.myJavaStaticMethod runs after the scripts in the
> > > body tag.
> > > You can try something like "if (window.sum) sum(3,3);" to prove this.
>
> > > You won't usually use GWT in the style of putting scripts in the body
> > > tag. You'll usually load the scripts via the head tag. Even when
> > > retrofitting existing systems, this is the common technique.
>
> > > > HTH Help
>
> > > > On Aug 4, 9:33 pm, Jeff Chimene  wrote:
> > > >> On 08/04/2009 12:23 PM, Luciano Broussal wrote:
>
> > > >>> Hi Jeff,
>
> > > >>> I got a blank page and the myJavaStaticMethod is never called  or on
> > > >>> IE i got the javascript error icon on left bottom corner.
>
> > > >> What's the text associated with this error?
>
> > > >>> I don't really now what is going wrong. Can you make it work on your
> > > >>> side ? ...
>
> > > >>> Thanks
>
> > > >>> Luciano
>
> > > >>> On Aug 4, 8:31 pm, Jeff Chimene  wrote:
> > >  On 08/04/2009 10:41 AM, Luciano Broussal wrote:
>
> > > > Hi all,
>
> > > > I'm fighting withJSNIfor a time without success trying to call a
> > > > java method from my javascript stuff.
>
> > > > I did as explained online but without success :(
>
> > > >http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(goog...)
>
> > > > He is my class and html.
>
> > > > This makes me crazy. If someone could help me to display 1+ 2  = 3
> > > > please.
>
> > >  What symptoms does this derangement exhibit?
>
> > > > Thanks
>
> > > > Luciano
>
> > > > CLASS
> > > > **
>
> > > > package com.st.jsni.client;
>
> > > > import com.google.gwt.core.client.EntryPoint;
>
> > > > /**
> > > >  * Entry point classes define onModuleLoad().
> > > >  */
> > > > public classJsniimplements EntryPoint {
> > > >   �...@override
> > > >    public void onModuleLoad() {
> > > >            exportStaticMethod();
> > > >    }
>
> > > >    public static native void exportStaticMethod() /*-{
> > > >            $wnd.myJavaStaticMethod =
> > > >               @com.st.jsni.client.Jsni::sum(II);
> > > >    }-*/;
>
> > > >    public static int sum(int a, int b) {
> > > >            return a + b;
> > > >    }
> > > > }
>
> > > > HTML
> > > > *
>
> > > > 
> > > >   
> > > >     
> > > >     
> > > >     Web Application Starter Project
> > > >     
> > > >   
>
> > > >   
> > > >   
> > > >   
> > > >   
> > > >   
> > > >   
>
> > > >     
> > > >      > > > tabIndex='-1'
> > > > style="position:absolute;width:0;height:0;border:0">
>
> > > >     
> > > >            alert(myJavaStaticMethod(1,2));
> > > >     
> > > >   
> > > > - Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegr

Re: Save as dialog box

2009-08-06 Thread Charlie

Anyone?
Is there any way to avoid the refresh of my application?

On Aug 6, 4:16 am, Charlie  wrote:
> Hello
> Right now I'm using "Window.open" function in order for the user to
> download files from my web-app but this leads to the internet exploer
> do the block bar and when you enable it , it refreshes the page is
> there any way to avoid this? I searched around but couldn't find
> anything that works.
>
> Charlie
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Extending FlexTable to add OnMouseMove events

2009-08-06 Thread max3000

Trying to extend a FlexTable to add OnMouseMove events.

Works fine except that I need to create getCellForEvent(MouseMoveEvent
e). Inside this method, I would need to create a HTMLTable.Cell. But
the constructor is protected!

(In general, I find the heavy usage of "final" and "private/protected"
in the GWT library to be quite a hassle.)

What is the best way to tackle this problem cleanly?

***

public class EventableFlexTable extends FlexTable {

  public HandlerRegistration addMouseMoveHandler(MouseMoveHandler
handler) {
sinkEvents(Event.ONMOUSEMOVE);
return addHandler(handler, MouseMoveEvent.getType());
  }

  public Cell getCellForEvent(MouseMoveEvent event) {
Element td = getEventTargetCell(Event.as(event.getNativeEvent()));
if (td == null) {
  return null;
}

Element tr = DOM.getParent(td);
Element body = DOM.getParent(tr);
int row = DOM.getChildIndex(body, tr);
int column = DOM.getChildIndex(tr, td);

return new Cell(row, column);// *** doesn't compile 
  }
}

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: JNSI Problem Challenge

2009-08-06 Thread mariyan nenchev
Hi, Luciano. I did read only this ( Hi all,
>
> > > > I'm fighting withJSNIfor a time without success trying to call a
> > > > java method from my javascript stuff.
>) from your post and i think i can help you if this is what you want to
achieve.

Let me paste some working example how to call java method from javascript
with gwt:

In my gwt code i have native method, that is called onModuleLoad() and sends
the method reference (public void onMessage(String message) ) to external
js.

public native void initCallBacks() /*-{
var self = this;

$wnd.setupOnMessageCallback(function(a){se...@claire.admin.client.datasources.manualbetdatasource
::onMessage(Ljava/lang/String;)(a);});
}-*/;

In my external js file i have this:

externalJS.js :

function MessageHandler() {
this.onMessage = null;
}

var _mh = new MessageHandler();
..

function setupOnMessageCallback(myJavaMethoRef) {
if (_mh.onMessage == null) {
_mh.onMessage = myJavaMethoRef;
}
}

function anotherTestFunction() {
 _mh.onMessage("test");
}

//END
So when your module is loading int will call the native initCallBacks method
which will call setupOnMessageCallback fron the external js file and will
pass the java method ref to the MessageHandler.
And you are ready to call the java method from js by calling
anotherTestFunction any where you want in your external js :). It works for
me.
Hope this was the problem.

Regards.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Save as dialog box

2009-08-06 Thread jhulford

Just use a standard link.  If the content type header on the response
from the download page is set to something other than html/xml you'll
get the browser's file save/execute dialog and it won't navigate away
from the current page.

On Aug 5, 8:16 pm, Charlie  wrote:
> Hello
> Right now I'm using "Window.open" function in order for the user to
> download files from my web-app but this leads to the internet exploer
> do the block bar and when you enable it , it refreshes the page is
> there any way to avoid this? I searched around but couldn't find
> anything that works.
>
> Charlie
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Home Page is Loading very slow in GWT

2009-08-06 Thread jhulford

Make sure you're compiling in OBF mode and are gzip'ing the cache
files too before sending to the browser.  You'll also want to make
sure you're sending the correct cache response headers for those files
in order to instruct the browser that it doesn't need to redownload
the cache files every time it visits your site.  There's several
postings in this group that should explain how to do both.

On Aug 5, 11:46 pm, JavaTech  wrote:
> Hello All-
>
>  I am using GWT 1.5.3
>
> More over home page loading is very slow.
>
> I checked with all things fine .
>
> When ever home page load the Genreated cache.html size is around 4MB
> is loaded.
>
> is this reason home page is loading is very low?
>
> if possible let us know  reducing  cache.html when GWT complies.
>
> any GWT complier options are there to reducing the cache.html?
>
> Thanks for your help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Handler when a widget is added to panel?

2009-08-06 Thread hezjing
Hi
I have Composite widgets, and these widgets will be added and removed from a
DockPanel depending on user selection.

I want to perform initialization whenever the widget is being added to
DockPanel.

May I know which handler I can register for this purpose?


-- 

Hez

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Type chars in image to authorize?

2009-08-06 Thread Krysgian

Could someone point me in the right direction to an implementation in
Java (or gwt, ext, etc.) where a box is displayed showing an image of
characters which must be typed correctly in order for the requested
function to be successful?

Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



FormSubmitCompleteEvent:getResults() returns null despite valid return from server

2009-08-06 Thread Jayant

Hello,

I have gwt module which is served by one server. One of the forms in
the UI is posted to a different server. The two servers are two
different subdomains. What I am observing is that the
FormSubmitCompleteEvent:getResults() always returns null. The form is
uploading a file to the other server. The file does get uploaded fine.
All the server side work is done and the server returns a simple json
buffer as success. Debugging proxies like httpfox also show the valid
return from the post as expected. However that buffer is not made
available to the form post callback. This essentially means that in my
gwt code, I have no way of determing success or failure of the file
upload. I need to be able to receive that server return in the gwt
code.

Has anyone seen this problem? Is there a workaround for this ?

Thanks,
-Jayant.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to create an UI from Metadata XML file

2009-08-06 Thread Rahul

Thanks Michael,
I got some part of it working


On Aug 4, 1:48 pm, Michael W  wrote:
> Use rpc call.
> You have two choices:
> 1) client makes rpc call and get xml file back, then parse xml in
> client side (GWT).
> 2) client makes rpc call and server parses the xml files, then return
> object back to client.
>
> The option 2) gives your chance to cache the xml parsing result it in
> server side.
>
> On Aug 3, 10:00 am, Rahul  wrote:
>
> > Hi,
> > I am new to gwt and I have a question.
>
> > I am working with HL7 files, Health Level 7. Each HL7 files has a
> > metadata information in an XML file. I want that each of the HL7
> > fields are converted into an textbox and label in form of a UI in
> > gwt.
>
> > Is this possible to do ? How should I start with it ?
>
> > Sincerely,
> > Rahul
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: XMLParser return carriage

2009-08-06 Thread Christian Goudreau
Hi, first the code I gave you is for creating new xml content, if you're
reading from a file, you don't need it. If you were already able to retreive
your text but it was only the formating part that was missing, you only need
to put the CDATA section in your XML. CDATA are read the same way as text
node.

I'll explain anyway what my code do and why like you asked.

These are constant, it's only best pratice to replace all plain text in your
code by constant:
PRODUCTTAG = "product"
PRODUCTUIDTAG = "productUID"

I used this example to show the difference between creating a normal text
node by doing so :
Text productUIDText = xml.createTextNode(*this*.productUID);

and creating a CDATA text node by doing this:
Text productDescriptionText =
xml.createCDATASection(this.productDescription);

You can read both of these node by doing so :
this.productUID =
objectElement.getElementsByTagName("productUID").item(0).getFirstChild().getNodeValue();
this.productDescription =
objectElement.getElementsByTagName("productDescription").item(0).getFirstChild().getNodeValue();

objectElement would be one product.
For you, object element would be your page element. But it should'nt be a
problem if you already retrived all content element to do
contents.item(0).getFirstChild().getNodeValue();

HAHA oh I forgot to put my constant in this one ! LOL
I hope it's fnally clearer :)

Christian
On Thu, Aug 6, 2009 at 8:11 AM, Nickelnext  wrote:

>
> first, thank you for your help.
>
> Second: I read your answers and I understand that I need to put my
> text in CDATA sections.
> What I don't understand is why I need to to this
>
> Element product = xml.createElement(*PRODUCTTAG*);
> Element productUID = xml.createElement(*PRODUCTUIDTAG*);
> Text productUIDText = xml.createTextNode(*this*.productUID);
> productUID.appendChild(productUIDText);
> product.appendChild(productUID);
> products.appendChild(product);
>
> first: - can you explain what are your constants (PRODUCTTAG,
> PRODUCTUIDTG) about? It will help me understand better your example.
> Thanks
> second: - should i create a TextNode or a CDATA node like you wrote
> before, to read text between cdata tags?
> third : - what you do is to create a TextNode with "content" tag,
> right? Then you append this node somewhere in the Document, then you
> get it back with contents = element.getElementsByTagName("content"); ,
> right?
>
> Answering your question: contents is a collection, cause the
> getElementsByTagName("content") returns all the nodes that have
> "content" tag, so I use item(x) to retrieve the item x in that
> collection.
>
> Besides, my xml is like that,
> 
>  
>first text here
>  
>  
>second text here
>  
> 
>
>
> So i need to create a text element for EACH item in that collection,
> right?
>
> Sorry for my dumb questions but i can't really figure out what is the
> right solution for my problem, thank you again for your time.
>
> Bye
>  >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



optimistic ui

2009-08-06 Thread asianCoolz

i watched through google wave talk. is there any sample demo on this?
is optimistic ui about having better communication layer with server
(rpc,json)or using workerpool in gear on client side?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Comment on LayoutDesign in google-web-toolkit

2009-08-06 Thread georgopoulos.georg...@gmail.com

Hi,

all this code from:

http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/35768f006bae753

seems to me similar to the code provided by gwt-mosaic project:

LayoutPanel:

- http://gwt-code-reviews.appspot.com/51830/diff/1/11
- 
http://code.google.com/p/gwt-mosaic/source/browse/branches/GWT-2.0/src/org/gwt/mosaic/ui/client/layout/LayoutPanel.java

LayoutComposite:

- http://gwt-code-reviews.appspot.com/51830/patch/2003/2012
- 
http://code.google.com/p/gwt-mosaic/source/browse/branches/GWT-2.0/src/org/gwt/mosaic/ui/client/LayoutComposite.java

and some other classes/interfaces from:

http://code.google.com/p/gwt-mosaic/source/browse/branches/GWT-2.0/src/org/gwt/mosaic/ui/client
http://code.google.com/p/gwt-mosaic/source/browse/branches/GWT-2.0/src/org/gwt/mosaic/ui/client/layout/

What I am interested about is to make GWT better, let me know if there
is a way to contribute to the new GWT 2.0 layout system.

GWT Mosaic is a GWT widgets extension (not replacement) and I am
interested to adapt our classes (if its possible) to the classes
provided by GWT new layout system.

Kind Regards,
George.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Google plugin demands an -AsyncAsync version of a service interface [Solved]

2009-08-06 Thread Miguel Méndez
We talked about providing a way to suppress the missing async interface
error while exploring the RPC validation feature.  However, for the majority
of scenarios you should have a sync/async pair so we left that capability
out.
The one case that I've seen where suppressing the validation makes sense is
in the internal GWT code, where we are testing the RPC generator's failure
modes and so we purposely leave the async interface undefined.

That said, you can submit a feature request to the GWT issue
trackerif you
think that we should allow the suppression of this error.

On Thu, Aug 6, 2009 at 12:26 AM, Robnauticus-  wrote:

>
> My abstract class provides nothing currently for its descendants.  I
> was going to leave it there for expansion later on.
>
> I will try switching it back should I need that...Maybe a few versions
> from now.
>
>
> Thanks Tim!
>
>
> On Aug 5, 4:56 pm, Tim McCormack  wrote:
> > On Aug 5, 7:47 pm,Robnauticus-  wrote:
> >
> > > Hello I am having a similar issue.  The new version of the Eclipse
> > > plugin throws an error because I have a base interface that all of my
> > > remote service interfaces are based from.  It wants me to create an
> > > async version of my base interface.
> >
> > What does the base interface provide to its descendents?
> >
> > > Is there a way to prevent this from throwing an error or should I
> > > attempt to make a dummy or lose the base interface???
> >
> > I'd suggest making a dummy async for now. It may be that Google
> > decides to change the plugin's behavior, but if you can fix it that
> > easily, go for it.
> >
> >  - Tim McCormack
> >
>


-- 
Miguel

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Building an XML document with namespaces

2009-08-06 Thread Rahul

hi
I am still not able to figure how to have xml documents with
namespaces
anyone has any idea?


On Aug 3, 2:56 pm, Rahul  wrote:
> Hi,
> I can create XML documents without namespace, but any idea how to
> create XML documents with namespaces??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Save as dialog box

2009-08-06 Thread Charlie

Well maybe someone can answer this one for me:
I have this button when it's clicked I want a "Save as" dialog box to
show,
I used Window.open in the ClickHandler and it worked great, a window
opened and then a the "save as" dialog box showed, BUT when I added an
http request to that ClickHandler IE acted with a popup blocker.

Any idea why?


On Aug 6, 4:41 pm, jhulford  wrote:
> Just use a standard link.  If the content type header on the response
> from the download page is set to something other than html/xml you'll
> get the browser's file save/execute dialog and it won't navigate away
> from the current page.
>
> On Aug 5, 8:16 pm, Charlie  wrote:
>
>
>
> > Hello
> > Right now I'm using "Window.open" function in order for the user to
> > download files from my web-app but this leads to the internet exploer
> > do the block bar and when you enable it , it refreshes the page is
> > there any way to avoid this? I searched around but couldn't find
> > anything that works.
>
> > Charlie- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Type chars in image to authorize?

2009-08-06 Thread mars1412

this is called CAPTCHA
there are several libs: e.g. JCAPTCHA

On Aug 6, 4:04 pm, Krysgian  wrote:
> Could someone point me in the right direction to an implementation in
> Java (or gwt, ext, etc.) where a box is displayed showing an image of
> characters which must be typed correctly in order for the requested
> function to be successful?
>
> Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Timer.schedule()

2009-08-06 Thread Radu Grigore

Is { timer.schedule(x); } equivalent to { timer.cancel();
timer.schedule(x); } ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Google plgin 64 bit support

2009-08-06 Thread Rajeev Dayal
As an FYI, the next release of GWT will no longer require that you use a
32-bit JVM. It will support a mode of execution known as
"Out-of-process-hosted-mode". Instead of debugging your application using
the hosted browser, you'll be able to debug it while it runs in a real
browser. Since the hosted browser will no longer be required, neither will
the 32-bit SWT libraries that we bundle. If you're adventurous, you can try
out this functionality right now - check out the GWT source, and do a trunk
build. It should work with the plugin.

On Tue, Aug 4, 2009 at 1:32 PM, Yuri C  wrote:

>
> I can't wait for GWT to get 64-bit support.
> All of our servers are 64 bit linux machines which allows us to take
> advantage of having 4Gb+ of RAM available.
>
> Even my mom says that 32bit is already retro ;)
>
> Installing 32bit JRE worked for me but I only consider it as a
> temporary work around.
> Otherwise I love GWT!
>
> On Aug 3, 1:37 pm, Max  wrote:
> > Thanks Jason,
> >
> > I will try to install 32bit java
> > sudo apt-get install ia32-sun-java6-bin
> >
> > On Aug 3, 8:02 pm, Jason Parekh  wrote:
> >
> > > The Google Plugin does support64-bit, but right now GWT still requires
> a
> > > 32-bitJRE.
> >
> > > What you can do is go to your launch configuration (Run -> Run
> > > configurations, and find the Web Application launch config) and update
> its
> > > JRE to a 32-bitversion.
> >
> > > jason
> >
> > > On Mon, Aug 3, 2009 at 12:53 PM, Max  wrote:
> >
> > > > Does google plugin support 64bit? What could course that problem?
> >
> > > > I created project and Run as -> Web Application
> >
> > > > Exception in thread "main" java.lang.UnsatisfiedLinkError:
> /home/user/
> > > > my/tools/eclipse/plugins/
> > > > com.google.gwt.eclipse.sdkbundle.linux_1.7.0.v200907131030/gwt-
> > > > linux-1.7.0/libswt-pi-gtk-3235.so:
> /home/user/my/tools/eclipse/plugins/
> > > > com.google.gwt.eclipse.sdkbundle.linux_1.7.0.v200907131030/gwt-
> > > > linux-1.7.0/libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32
> > > > (Possible cause: architecture word width mismatch)
> > > >at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> > > >at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
> > > >at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1674)
> > > >at java.lang.Runtime.load0(Runtime.java:770)
> > > >at java.lang.System.load(System.java:1003)
> > > >at
> org.eclipse.swt.internal.Library.loadLibrary(Library.java:132)
> > > >at org.eclipse.swt.internal.gtk.OS.(OS.java:22)
> > > >at
> org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
> > > >at
> org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
> > > >at org.eclipse.swt.widgets.Display.(Display.java:126)
> > > >at com.google.gwt.dev.SwtHostedModeBase.
> > > > (SwtHostedModeBase.java:82)
> > > > Could not find the main class: com.google.gwt.dev.HostedMode.
>  Program
> > > > will exit.
> >
> > > > Cheers, Max
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Servlet in Jar

2009-08-06 Thread Patrik

Hi,
I have a usermodule that I would like to have in a jar-file and
include in other projects, when I try to test I get
java.lang.ClassNotFoundException:
se.riket.gwt.user.server.rpc.impl.LoginServiceImpl. That's the login
servlet class,
in my web.xml I have

 
loginService
se.riket.gwt.user.server.rpc.impl.LoginServiceImpl
  

  
loginService
/yeti/login
  

I have added my jar in the classpath and in the *.gwt.xml file.

Anyone with an idea?

BR
Patrik

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT compilation failed

2009-08-06 Thread svadimr

Hello All,

I'm a newbie in GWT, but it seems really cool.
I'm using eclipse with mysql and tomcat 6 to run my webapplication.
Now I want to add some features using GWT.
I added eclipse pluging and created a test project, compile it and
everything worked perfectly.
Then I implemented my needed features tested them in GWT project and
they worked as expected.
Now I want to combine those two into one project and I really prefer
to merge the GWT project into my dynamic web application.
In the project settings I checked "use Google Web Toolkit" option,
created a module and an empty entry point class (just for checking)
then I tried to compile project using "GWT compile" and I got "GWT
compilation failed".
I tried to create a war directory and I checked the xml files,
everything looks fine.
How can I continue from here?

Thank you,
Vadim.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: StaticStringInternationalization

2009-08-06 Thread mars1412


* use this content type in the HTML page:
  
* make sure, your .properties files are saved using UTF-8 encoding
(file-properties in eclipse)
* set the language using: 


On Aug 6, 1:48�pm, lumo  wrote:
> hello NG,
>
> i'm following the documentation 
> fromhttp://code.google.com/intl/de-DE/webtoolkit/doc/1.6/DevGuideI18nAndA...
> by now i externalized ALL my strings to .properties files and created
> multiple of em.
>
> Constants.properties
> Constants_en.properties
> Constants_de.properties
>
> when i now compile my map and upload it to my webserver (simple html
> webspace)
> i always get the content of Constants.properties listed as text...
>
> i tried setting favourite languages to de or en, still the same...
> any ideas why or how i can change this behaviour?
>
> note: if i use ��� in german ö wrong chars are shown (utf-8)
> i tried to add
> 
> and
> 
> to my module.html which ended both times with the same result...
>
> thanks in advance
> lumo
>
> PS: i am using eclipse 3.4 and gwt 1.7
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: XMLParser return carriage

2009-08-06 Thread Nickelnext

I'll try soon...thank for you help!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: maps with TileLayer

2009-08-06 Thread Eric Ayers

Hi lumo,

There is an example of creating a custom tile layer in the HelloMaps
demo distributed with the gwt-maps download.

On Thu, Aug 6, 2009 at 6:35 AM, lumo wrote:
>
> how can i add a custom maptype to my map?
>
> a friend of mine is writing his map by hand (all js)
>
> i'm coding it in gwt and therefore i do not want to inject custom js
> code.
> i can look up his code and came to a point where my ide tells me that
> a type cant be instantiated.
>
> so what i am doing is...
> create a Copyright, then a CopyrightCollection.
> all fine till i reach TileLayer which cant be instantiated.
>
> the following code is java (outcommented code is javascript)
> I#m trying to reproduce this from javascript as i did not find a
> sample for java. (yes, i used the search function)
> [java]
>                String license = " href='http://creativecommons.org/licenses/by-sa/
> 2.0/' target='_blank' onfocus='this.blur()'>CC-BY-SA";
>                Copyright copyright = new Copyright(1, LatLngBounds.newInstance
> (LatLng
>                                .newInstance(-90.0, -180.0), 
> LatLng.newInstance(90.0, 180.0)),
>                                0, license);
>                CopyrightCollection copyrightCollection = new 
> CopyrightCollection(
>                                "Kartendaten © 2009  href='http://wiki.openstreetmap.org/
> wiki/Hauptseite' target='_blank' onfocus='this.blur()'> OpenStreetMap a>");
>                copyrightCollection.addCopyright(copyright);
> // var tilelayers_OSM = new Array();
>                // tilelayers_OSM[0] = new GTileLayer(copyrightCollection, 0, 
> 18);
>                // tilelayers_OSM[0].getTileUrl = GetTileUrl_OSM;
>                // tilelayers_OSM[0].isPng = function () { return true };
>                // tilelayers_OSM[0].getOpacity = function () { return 1.0 };
>                // OSM_map = new
>                // 
> GMapType(tilelayers_OSM,G_SATELLITE_MAP.getProjection(),"OSM",{
>                // urlArg:'OSM', linkColor:'#00' });
>                // map.addMapType(OSM_map);
>                // function GetTileUrl_OSM(a,z) {return "http://
> tile.openstreetmap.org/"
>                // + z + "/" + a.x + "/" + a.y + ".png";}
> [/java]
>
> do you have a sample how this works in java?
>
> thanks in advance
> >
>



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Eclipse plugin: Run As -> Web Application

2009-08-06 Thread Keith Platfoot
Hi Philip,
Hm, ok.  I'm not sure, but it's possible that your project may have some
classpath configuration issues that are causing this.  Would you be able to
send me your .classpath file (located in the project's root directory)?  I
can take a look and see if anything appears problematic.  Alternatively, if
you like you could actually send the entire project and I can try to see if
I can reproduce the error here.

Keith

On Wed, Aug 5, 2009 at 3:34 PM, Philip Graham <
philip.robert.gra...@gmail.com> wrote:

>
> Hi Keith,
>
> I've copied one of my projects and stripped it down to the bare
> minimum, removed it's pom file, imported it as a normal Java project
> and set it up to use GWT.  When I try and run I get a similar error:
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load
> library: $PROJECT_HOME/war/WEB-INF/lib/libswt-pi-gtk-3235.so
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1650)
>at java.lang.Runtime.load0(Runtime.java:769)
>at java.lang.System.load(System.java:968)
>at org.eclipse.swt.internal.Library.loadLibrary(Library.java:132)
> at org.eclipse.swt.internal.gtk.OS.(OS.java:22)
>at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
>at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
>at org.eclipse.swt.widgets.Display.(Display.java:126)
>at
> com.google.gwt.dev.SwtHostedModeBase.(SwtHostedModeBase.java:82)
> (*$PROJECT_HOME displays as the actual path to where the project is on
> my filesystem)
>
> If I copy the files I described in my original message into
> $PROJECT_HOME/war/WEB-INF/lib/ then it runs ok.
>
> This is not a huge deal since I can get things running but I
> appreciate any help you can give as it is a little bit annoying.
>
> Thanks,
> Philip
>
>
>
> On Wed, Aug 5, 2009 at 1:26 PM, Keith Platfoot
> wrote:
> > Hi Philip,
> > The Google Eclipse Plugin is not entirely compatible with Maven, so I
> > suspect the interaction between the two plugins may be the source of your
> > troubles.  Is it possible to create another GWT project which does not
> use
> > the Maven plugin, and see if you run into similar problems?  Let me know
> > what you find.
> > Keith
> >
> > On Wed, Aug 5, 2009 at 10:54 AM, pgraham  >
> > wrote:
> >>
> >> Hi all,
> >>
> >> I'm having some problems running my gwt projects in hosted mode using
> >> the Run As -> Web Application option from within eclipse.
> >>
> >> For starters, I'm running eclipse 3.5 with the maven plugin as well as
> >> the google plugin.
> >>
> >> The first problem I have is the following exception:
> >>
> >> Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load
> >> library: $M2_REPO/com/google/gwt/gwt-dev-linux/1.7.0/libswt-pi-
> >> gtk-3235.so
> >>at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1650)
> >>at java.lang.Runtime.load0(Runtime.java:769)
> >>at java.lang.System.load(System.java:968)
> >>at org.eclipse.swt.internal.Library.loadLibrary(Library.java:132)
> >>at org.eclipse.swt.internal.Callback.(Callback.java:36)
> >>at
> org.eclipse.swt.widgets.Display.createDisplay(Display.java:807)
> >>at org.eclipse.swt.widgets.Display.create(Display.java:781)
> >>at org.eclipse.swt.graphics.Device.(Device.java:145)
> >>at org.eclipse.swt.widgets.Display.(Display.java:452)
> >>at org.eclipse.swt.widgets.Display.(Display.java:443)
> >>at org.eclipse.swt.widgets.Display.getDefault(Display.java:1522)
> >>at
> >> com.google.gwt.dev.SwtHostedModeBase.(SwtHostedModeBase.java:
> >> 93)
> >>at com.google.gwt.dev.HostedMode.(HostedMode.java:271)
> >>at com.google.gwt.dev.HostedMode.main(HostedMode.java:230)
> >>
> >> * The actual error message has the full path to the file instead of
> >> $M2_REPO but changing the path to the repository in my maven
> >> settings.xml file changes the path of the error message.
> >>
> >> I can fix this problem by putting the file it can't find from a gwt
> >> download to the path it's looking for, but I don't understand why it's
> >> even looking for the file there in the first place since it's part of
> >> the gwt sdk that I have configured for my project.
> >>
> >> NOTE: Once I put the libswt-pi-gtk-3235.so file where it's being
> >> looked for, I also have to do the same thing with mozilla-hosted-
> >> browswer.conf, mozilla-1.7.12 (directory), libswt-gtk-3235.so, libswt-
> >> mozilla-gtk-3235.so and libgwt-ll.so
> >>
> >> Any help on this would be appreciated,
> >> Thanks
> >>
> >> Philip
> >>
> >>
> >
> >
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more

Re: Widget not rendered completely when its appended to DOM dynamically.

2009-08-06 Thread andrej


Syam, can you post more detail on your original problem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Comment on LayoutDesign in google-web-toolkit

2009-08-06 Thread Duong BaTien

Hi George and the community:

Look forward to see the GWT 2.0 and Mosaic working together.

BaTien
DBGROUPS and BudhNet


On Thu, 2009-08-06 at 08:17 -0700, georgopoulos.georg...@gmail.com
wrote:
> Hi,
> 
> all this code from:
> 
> http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/35768f006bae753
> 
> seems to me similar to the code provided by gwt-mosaic project:
> 
> LayoutPanel:
> 
> - http://gwt-code-reviews.appspot.com/51830/diff/1/11
> - 
> http://code.google.com/p/gwt-mosaic/source/browse/branches/GWT-2.0/src/org/gwt/mosaic/ui/client/layout/LayoutPanel.java
> 
> LayoutComposite:
> 
> - http://gwt-code-reviews.appspot.com/51830/patch/2003/2012
> - 
> http://code.google.com/p/gwt-mosaic/source/browse/branches/GWT-2.0/src/org/gwt/mosaic/ui/client/LayoutComposite.java
> 
> and some other classes/interfaces from:
> 
> http://code.google.com/p/gwt-mosaic/source/browse/branches/GWT-2.0/src/org/gwt/mosaic/ui/client
> http://code.google.com/p/gwt-mosaic/source/browse/branches/GWT-2.0/src/org/gwt/mosaic/ui/client/layout/
> 
> What I am interested about is to make GWT better, let me know if there
> is a way to contribute to the new GWT 2.0 layout system.
> 
> GWT Mosaic is a GWT widgets extension (not replacement) and I am
> interested to adapt our classes (if its possible) to the classes
> provided by GWT new layout system.
> 
> Kind Regards,
> George.
> > 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Issues getting inherited module to work...

2009-08-06 Thread craigklem

I am attempting to use a module I created which holds my domain pojo
classes so I can share them. Following articles from the web I
constructed my module jar like this:
package com.company
pojo.gwt.xml

contents of pojo.gwt.xml include:







package com.company.pojo.domain
domainobject.java

I include this module in my main GWT project like this.
main.gwt.xml


When I compile I get output like this:
Searching for resources within file:/C:/Main/lib/pojo.jar
Indexing zip file: C:\Main\lib\pojo.jar
   com/company/pojo/domain/domainobject.java
   com/company/pojo.gwt.xml
...
Searching for included resources in C:\Main\lib\pojo.jar
   Excluding com/company/pojo/domain/domainobject.java
   Excluding com/company/pojo.gwt.xml
...
Compiling module com.company.main.Main
   Refreshing module from source
  Validating newly compiled units
 Removing units with errors
 Removing units with errors
[ERROR] Errors in 'file:/C:/Main/src/com/company/main/
client/Main.java'
   [ERROR] Line 58: No source code is available for type
com.company.pojo.domain.domainobject; did you forget to inherit a
required module?

It seems to find the module but I cannot reference the domainobject
for some reason. Any ideas what I'm doing wrong?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



MenuBar auto-close

2009-08-06 Thread b.thakker

Hello

I have a two-layer menu being created with the MenuBar. I need the
menu to close itself upon a mouseout from the child menu.

I see the ONMOUSEOUT events being received for each of the menu items
in my overridden onBrowserEvent( Event event ) method, although how do
I determine that the user has moved the mouse out of the entire child
menu.

I tried several silly ideas with timers and jsni, although am still
stumped.

I'd highly appreciate if anyone can provide any pointers.

Regards.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



size of TextBox in GWT

2009-08-06 Thread Tobe

Hi,
how do I set the size parameter of a HTML input element with
type="text" for a TextBox in GWT?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Tab Panel Dynamic Content .

2009-08-06 Thread Guess What

Alex , Thanks for you reply . I am a new bie . I am not quite sure to
translate this into an actual working  code .
Could you direct me to a complete working example or share a complete
working code .



On Aug 5, 11:55 pm, "alex.d"  wrote:
> tabPanel.addTabListener(new TabListener() {
> public boolean onBeforeTabSelected(final SourcesTabEvents sender,
> final int tabIndex)
> {
>      // do stuff
>      return true;}
>
> public void onTabSelected(final SourcesTabEvents sender, final int
> tabIndex)
> {
>     // do even more stuff
>   }
>
> });
>
> hth
>
> On 6 Aug., 05:49, Guess What  wrote:
>
>
>
> > I am using EXT GWT . I have two isues.
>
> > 1. I want to load the contents inside a Tab Panel Dynamically , when
> > the tab is being clicked i wanted to go to the server and getch data .
> > Can anyone show me some sample .I have attached my piece of code .
> > (ripped from examples)
>
> > 2. The code below compiles  but when i run i on the hosted mode , i
> > get an exception .
> > java.lang.IllegalStateException: Should only call onDetach when the
> > widget is attached to the browser's document.
>
> > Any help would be appreciated .
>
> > TabPanel folder = new TabPanel();
> > //Create Pie Chart
> >   final Chart chart = new Chart("resources/gxt/chart/open-flash-
> > chart.swf");
> > chart.setBorders(true);
> >  chart.setChartModel(getPieChartData());
>
> > TabItem shortText = new TabItem("Short Text");
> > shortText.add(chart)//
> >  folder.add(shortText);- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Using the finance charts

2009-08-06 Thread murbancic

I am looking for a way to use the google finance charts for charting
data with GWT.  Is there a class somewhere I can use to get this??

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: oophm with the lastest eclipse plugin on Mac

2009-08-06 Thread Masto

Thanks you all. I was able to make the thing works. Now, I have
another problem: the browser keeps saying that i need to click on the
compile button. So it kinda work because i don't have the beach ball
anymore. But it doesn't because the app doesn't show. I use Safari and
set up the plugin.

On Aug 5, 7:17 am, Miguel Méndez  wrote:
> Yes, web app launch configurations using OOPHM on OSX are broken right now.
>  We are still adding the -XstartOnFirstThread flag which is not compatible
> with OOPHM.  I created the following issue
> 3923to
> track it.
>
> On Wed, Aug 5, 2009 at 1:18 AM, brett.wooldridge 
>
>
> > wrote:
>
> > Yes, I was having this problem and posted the answer to my own
> > question in the above mentioned link:
>
> > "To answer my own question, and for other users having the same issue,
> > this worked: I created a standard Java Application launch
> > configuration, using com.google.gwt.dev.HostedMode as the Main class,
> > and the above recommended classpath. You'll have to get the command
> > arguments right, but you're bright enough to figure that out. Having
> > done that, it would appear to work.
>
> > It was never clear to me when reading the instructions before (maybe I
> > should have read more carefully) that a Web Application launch
> > configuration could no longer be used. A Java Application launch
> > configuration is required. That's the magic sauce."
> > Note, OOPHM will not automatically launch your browser on the Mac.
> > You will instead see an error in the OOPHM console about firefox.
> > Ignore it.  Copy the URL it tried to launch firefox with and past it
> > into Safari (assuming you have installed the OOPHM .dmg file to get
> > the browser plugin).
>
> > See my other comments on the above referenced page about other issues
> > you may experience.  But basically it works.
>
> > -Brett
>
> > On Aug 5, 8:05 am, miller  wrote:
> > > You can also try this page:
> >http://code.google.com/p/google-web-toolkit/wiki/OophmForMacBasedGwtC...
>
> > > On Aug 4, 1:39 pm, Masto  wrote:
>
> > > > Hi there,
>
> > > > i'm currently trying to make the oophm works on my Mac using eclipse
> > > > 3.5 and the latest plugin. I use the revision 5873 of the trunk (ant
> > > > clean then ant > my project refers to build/staging/gwt-mac-0.0.0/).
>
> > > > Because i use gwt 2.0, a checkbox appears under Run Configuration >
> > > > GWT Tab > just under the URL. So i checked it.
>
> > > > The logs show that :
>
> > > > 2009-08-04 11:33:30.967 java[40650:80f] [Java CocoaComponent
> > > > compatibility mode]: Enabled
> > > > 2009-08-04 11:33:30.969 java[40650:80f] [Java CocoaComponent
> > > > compatibility mode]: Setting timeout for SWT to 0.10
> > > > 2009-08-04 11:33:34.458 java[40650:1c303] *** -[NSConditionLock
> > > > unlock]: lock ( '(null)') unlocked when not
> > > > locked
> > > > 2009-08-04 11:33:34.459 java[40650:1c303] *** Break on _NSLockError()
> > > > to debug.
> > > > 2009-08-04 11:33:34.673 java[40650:1c303] *** -[NSConditionLock
> > > > unlock]: lock ( '(null)') unlocked when not
> > > > locked
> > > > 2009-08-04 11:33:34.674 java[40650:1c303] *** Break on _NSLockError()
> > > > to debug.
> > > > 2009-08-04 11:33:34.775 java[40650:1c303] *** -[NSConditionLock
> > > > unlock]: lock ( '(null)') unlocked when not
> > > > locked
> > > > 2009-08-04 11:33:34.775 java[40650:1c303] *** Break on _NSLockError()
> > > > to debug.
> > > > 2009-08-04 11:33:34.901 java[40650:1c303] *** -[NSConditionLock
> > > > unlock]: lock ( '(null)') unlocked when not
> > > > locked
> > > > 2009-08-04 11:33:34.903 java[40650:1c303] *** Break on _NSLockError()
> > > > to debug.
> > > > 2009-08-04 11:33:38.207 java[40650:1c303] *** -[NSConditionLock
> > > > unlock]: lock ( '(null)') unlocked when not
> > > > locked
> > > > 2009-08-04 11:33:38.208 java[40650:1c303] *** Break on _NSLockError()
> > > > to debug.
> > > > 2009-08-04 11:33:38.308 java[40650:1c303] *** -[NSConditionLock
> > > > unlock]: lock ( '(null)') unlocked when not
> > > > locked
> > > > 2009-08-04 11:33:38.309 java[40650:1c303] *** Break on _NSLockError()
> > > > to debug.
> > > > 2009-08-04 11:33:38.445 java[40650:1c303] *** -[NSConditionLock
> > > > unlock]: lock ( '(null)') unlocked when not
> > > > locked
> > > > 2009-08-04 11:33:38.445 java[40650:1c303] *** Break on _NSLockError()
> > > > to debug.
> > > > 2009-08-04 11:33:39.316 java[40650:1c303] *** -[NSConditionLock
> > > > unlock]: lock ( '(null)') unlocked when not
> > > > locked
> > > > 2009-08-04 11:33:39.317 java[40650:1c303] *** Break on _NSLockError()
> > > > to debug.
> > > > 2009-08-04 11:33:39.418 java[40650:1c303] *** -[NSConditionLock
> > > > unlock]: lock ( '(null)') unlocked when not
> > > > locked
> > > > 2009-08-04 11:33:39.419 java[40650:1c303] *** Break on _NSLockError()
> > > > to debug.
> > > > 2009-08-04 11:33:39.540 java[40650:1c303] *** -[NSConditionLock
> > > > unlock]: lock ( '(null)') unlocked

Re: optimistic ui

2009-08-06 Thread twdarkflame

I believe google wave is under closed development/beta with a limited
number of developers working on plugins and such for launch.
You can ask for sandbox access, but you need to have the intention to
build a plug.

On Aug 6, 5:04 pm, asianCoolz  wrote:
> i watched through google wave talk. is there any sample demo on this?
> is optimistic ui about having better communication layer with server
> (rpc,json)or using workerpool in gear on client side?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and struts integration

2009-08-06 Thread mikedshaffer

Similar to what Mariyan says, it really depends on how integrated you
want GWT to be inside your Struts app.  Dave Geary devotes a whole
chapter to this topic in his book "Google Web Toolkit Solutions".  It
was written for GWT 1.4, but it remains very relevent.  Pick it up at
Amazon or your favorite book source.  For additional information, just
remember that GWT is really an AJAX toolkit, so Google for "how to
integrate AJAX into Struts".  Again, and lastly, it really depends how
much integration between the two worlds you are trying to do.  Struts
is a stateful server form post solution and GWT is a thick and
stateful Javascript client with AJAX server communication solution...



On Aug 6, 5:43 am, mariyan nenchev  wrote:
> public class GwtEntryPointAction extends Action {
>
>     @Override
>     protected ActionForward lexecute(ActionMapping mapping, ActionForm
> theForm, HttpServletRequest request, HttpServletResponse response)
>             throws Exception {
>          Integer entrypointId =
> Integer.parseInt(request.getAttribute("epid"));
>          swtich(entrypointId) {
>          
>         return mapping.findForward("hostpage1");
>         .
>         return mapping.findForward("hostpage2");
> 
>           }
>
>     }
>
> }
>
> hostpage1.jsp :
>  src="/hostpage1.nocache.js">
> 
>
> hostpage2.jsp
>  src="/hostpage2.nocache.js">
> 
>
> Or even you may use one jsp, but the switch logic must be in it, which is
> better :)
>
> There is nothing special about struts.
> It's more complicated if you want mixed struts + gwt ui that are connected
> and weather the gwt components are client side only or not. You should think
> how to integrate that. My be with some custom js, but i can't give you an
> example for that, i have never done this. My gwt part was independent from
> the struts part.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How can one module initialize servlets that exist in a dependent module?

2009-08-06 Thread jreue

I have one Eclipse project (a gwt module) that's sole purpose is to
provide user authentication. It has client widgets for creating/
editing users as well as logging in/out. It also has a servlet that
communicates with a MySQL database. All this functionality is in that
project, lets call 'MyLoginModule'.

This project is generic enough to be consumed by my other project in
which i need the user management/authentication features.

Lets say my other project is called 'MyApp'

In Eclipse I edit the build path of 'MyApp' and add the
'MyLoginModule' project.
I modified the MyApp.gwt.xml file and added 

Now in my entryPoint class of MyApp, I am able to access classes from
the project MyLoginModule. So I add something like
getRoot().get().add(new LoginWidget());

I run the 'MyApp' project.
I see the login widget.
Everything looks good, I have one project depending on another module
i created.

I enter my credentials and click login.
Here at takes the entered credentials and is suppose to communicate
with the servlet thats in the 'MyLoginModule' project.

I get an error concerning the request URI for the servlet is not
found. This makes sense because the the servlet mapping is in my
'MyLoginModel' package, not 'MyApp' project.

I tried taking the servlet mapping from MyLoginModule and putting it
in the web.xml of MyApp, but I get an error on startup complaining it
cannot find the class to my servlet implementation.

 I tried taking that out and putting the mapping in the MyApp.gwt.xml
file. I did not get an error here, but it then complained that it was
not in the web.xml file. I put it in both places.

It still does now work properly.

I seem to be missing something depending on another module. I suppose
the main question is, 'How can the MyApp project properly initialize
the servlet mappings defined in the dependent MyLoginModule project'?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RichTextToolbar Question

2009-08-06 Thread Sumit Chandel
Hi Mike,
That sounds like a reasonable request, although I'm not sure where it would
fall among other priorities in and around getting the RichTextToolbar
standard in GWT core. At this point, it would be best to post up your
request on Issue #3042 for consideration as the issue gets treated.

Issue #3042
http://code.google.com/p/google-web-toolkit/issues/detail?id=3042

Hope that helps,
-Sumit Chandel

On Wed, Aug 5, 2009 at 12:17 PM, mdwarne  wrote:

>
> Hi,
> Making the toolbar standard would be great.  I am using the demo
> version in one of my projects.
> I have a small enhancement request however.
> Would it be possible for the link button/ dialog box to allow
> specifing a target for the URL.
>
> My application will allow admin  users to post an HTML message for
> other users to view after logging in.  If the admin users add a
> link,and a user clicks on the link,  it unloads the application with
> it's current state, and jumps to the URL.  The GWT app state is now
> lost, and must be reloaded by navigating back to the entry point url,
> in my case it forces them to login again.
>
> I would like to be able to specify that the URL open in a new window
> to keep the App in the browser.
>
> Thanks,
> Mike.
>
> On Aug 4, 12:24 am, Sean Loughran  wrote:
> > Glad to see I wasn't the only one. I added a Star as well as add my
> comment
> > that the toolbar really should be in the default package. Thank you!
> >
> > -Sean
> >
> > On Mon, Aug 3, 2009 at 11:37 PM, Sumit Chandel  >wrote:
> >
> >
> >
> > > Hi Sean,
> > > You may want to keep an eye on Issue #3042 (link below). You're not the
> > > first to be stumble upon the lack of a toolbar within GWT itself after
> > > dropping the RichTextArea in your project. I've bumped up the priority
> on
> > > Issue #3042 to make sure it's on the radar for a future release.
> >
> > > Issue #3042:
> > >http://code.google.com/p/google-web-toolkit/issues/detail?id=3042
> >
> > > Cheers,
> > > -Sumit Chandel
> >
> > > On Fri, Jul 31, 2009 at 11:42 AM, Sean  wrote:
> >
> > >> Ah, thank you. I forgot all the examples are in the GWT source code.
> > >> This thing is pretty sweet, I'm surprised it's not part of the normal
> > >> API.
> >
> > >> Thank you,
> >
> > >> Sean
> >
> > >> On Jul 31, 9:23 am, Imran  wrote:
> > >> > This class is not part of the API. Instead, it was created in the
> demo
> > >> to
> > >> > show you what can be done. Download the code for the demo and copy
> the
> > >> file
> > >> > from there.
> >
> > >> > Petarian.
> >
> > >> > On Fri, Jul 31, 2009 at 9:11 AM, Sean  wrote:
> >
> > >> > > So, I am looking at the GWT Showcase and at:
> > >> > >http://gwt.google.com/samples/Showcase/Showcase.html#CwRichText
> >
> > >> > > They have this amazing Toolbar. I look at the source code and they
> > >> > > have:
> >
> > >> > >  RichTextArea area = new RichTextArea();
> > >> > >  area.ensureDebugId("cwRichText-area");
> > >> > >  area.setSize("100%", "14em");
> > >> > >  RichTextToolbar toolbar = new RichTextToolbar(area);
> >
> > >> > > Problem is, I can't find RichTextToolbar in GWT. Eclipse can't
> include
> > >> > > it and I can't find it in the javadocs. Are they using something
> that
> > >> > > isn't in language yet?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Deferred binding for mobile browser support

2009-08-06 Thread Arthur Kalmenson

For the CSS bit, I think you could achieve your goal using CssResource
that's in the trunk to create conditional CSS based on the user agent.
One thing I'm unsure about is if you'll be able to decipher different
mobile platforms based on the user.agent string along. I think if
you're following a tableless layout, you shouldn't have too much
trouble going to a mobile platform since most of your changes will
happen in CSS.

With regards to mobile permutations, there was some chatter on GWTC
that mobile permutations might be coming to GWT, but I guess we'll see
where that goes.

--
Arthur Kalmenson



On Tue, Aug 4, 2009 at 6:38 AM, grue wrote:
>
> Hi,
>
> I have to add a mobile-optimized version to an existing gwt
> application. After digging through the docs I found out that deferred
> binding is the technology of chioce. I believe I understand how it
> basically works but how do I use it in that specific use case?
> The mobile UI of our application differs a lot from the standard
> version so I need seperate stylesheets, and seperate GWT controls (we
> use composites a lot). Since the basic layout of our application is
> done in the .html file I would also need a separate html file.
> Now the question is: how do I do that? Are there any best practices?
>
> I'd really appreciate any hint.
>
> Best regards,
> Michael
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: CSRF protection for RPC calls - Generate cookie on the client - is it safe?

2009-08-06 Thread Arthur Kalmenson

Normally you get a session ID from the server and store that in a
cookie and use the session id to make sure the user is actually logged
in.

--
Arthur Kalmenson



On Tue, Aug 4, 2009 at 9:16 AM, jahboite wrote:
>
> Hello GWTers!
>
> Having read the XSRF and GWT section of the page at
> http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gwt-applications
> I'm trying to implement the suggested protection which involves
> sending an extra 'cookie value' param in GWT calls and then comparing
> that value with the value of the cookie header.
>
> My question involves the generation of the cookie value and whether it
> is safe to do this on the client.  As long as it doesn't impact client
> performance, it seems to me that generating a random token, setting
> the cookie with that token and sending the same token as a param in
> RPC calls would be a neat way to offload CPU cycles to the client.
> The server would then only need to compare the cookie header with the
> token received in each RPC call and drop the call if the values don't
> match (on the assumption that the call hasn't been made by the logged-
> in client).
>
> Is that safe?  Is there a way for a forged request to include a
> cookie?  If the server merely compares two arbitrary strings, wouldn't
> it be easy for a forger to bypass the restrictions relied upon for
> this type of protection?
>
> Any insights gratefully received.
>
> Cheers.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Profiling memory usage for large gwt application

2009-08-06 Thread Sumit Chandel
Hi Ankur,
Please see replies inlined below.

We have found some leaks in our application.One of the greatest leak
> that we found in the glasspanel.So for now we are using just a static
> glasspanel(From gwt incubator ) and only adding and removing from the
> rootpanel.so for now the problem has been partially fixed at its
> leaking only on window close.Still we need to figure out why
> glasspanel is leaking.may be we could found a leak pattern.


If you can produce a repro code snippet that shows the memory leak with the
GlassPanel widget, please report it on the GWT Incubator Issue Tracker.

GWT Incubator Issue Tracker:
http://code.google.com/p/google-web-toolkit-incubator/issues/list


> Another possible leak are may be that gwt always creates  a new
> XMLHTTPRequest object,I tried with a sample appliction both on firefox
> and iei was just sending a byte array of size 1 from client to
> server and vice versa.In IE memory kept on increasing while in firefox
> it was constant.In that sample i tried to reuse the  XHR object,the
> memory seems to be stable in IE after that.But reusing of XHR seems to
> breaking somewhere as that logic cripped when tried with our main
> application(may be because in sample there was onl one RPC so it would
> hav worked).


It seems like you're using GWT RPC, and if so, it also seems like you made
some changes to make each RPC call reuse a single XMLHttpRequest object. I'm
not sure if GWT RPC does this already by default, but if not, it would
definitely be useful to have a repro code snippet here as well to help
reproduce the problem here. Also, can I have more information about the
types that you're transferring over GWT RPC? Specifically, what do the DTOs
that you're sending across the wire contain? I've seen some cases where IE
would blow up when sending overly complex DTOs through the wire (deep maps
or map values referring the DTO object itself).


> Actully there is some problem with the logic how the gwt guys are
> clearing the objects in the threadlocal of the JavaDispatchImpl and in
> the objects collection of the ObjectTable.java class. I saw the code
> they have the logic to clear the objects when they get a free message
> from the browser they free up the object from the collection of the
> Object table class.We saw the free request is comming for many objects
> but it never comback for the callback objects so they are always in
> the browser memory.This can be easily seen using jprofiler to profile
> the starter application while debugging. May be this problem is only
> at debug timeI am thinking to raise it.But OOPHM is not yet
> released, so i am not sure if i can raise that issue.


I've forwarded this over to John on the GWT team to take an early look in
case this is a real issue.

Cheers,
-Sumit Chandel


>
>
>
> regards
> ankur
>
>
>
>
> On Jul 30, 10:10 pm, Sumit Chandel  wrote:
> > Hi Ankur,
> > An application size of 3MB sounds extremely large. Is that gzipped or
> > uncompressed? Also, how large is your codebase?
> >
> > I would imagine that the runAsync feature would have given you a huge
> boost
> > in reducing the initial download size of your application. You mentioned
> > that you broke down the compiled code into multiple script tags - this
> > doesn't sound like the result of using the runAsync feature, but rather a
> > manual attempt at breaking your code into smaller chunks. Did you use the
> > runAsync feature to break down the compiled code into smaller chunks, or
> use
> > a different approach?
> >
> > For what it's worth, 700 MB of memory entirely used up by your GWT
> > application is an immensely high number. Are you sure that this is only
> when
> > your application is running in the browser? If so, there are major hot
> spots
> > where you are either instantiating way too many objects at a time or
> leaking
> > major amounts of memory as you navigate from one part of the application
> to
> > the next.
> >
> > The problem with profiling memory for an Ajax application is that there
> > aren't very many robust tools that can be used reliably to find and fix
> hot
> > spots. For the time being, a rudimentary way of analyzing where memory
> usage
> > blows up and where memory leaks are occurring would be to monitor your
> > system task manager as you navigate through your application. When you
> see
> > memory usage boost up, you know that you've at least found the
> neighbourhood
> > of code where the culprit(s) is hiding.
> >
> > Sorry I can't be of more help, but hopefully this gives you a start to
> track
> > down where your code is blowing up in memory usage and cut down the
> initial
> > download size.
> >
> > Hope that helps,
> > -Sumit Chandel
> >
> >
> >
> > On Sat, Jul 25, 2009 at 12:22 PM, ankur jain  wrote:
> > > hi
> >
> > > thanks for the reply.But we checked its not due to image bundle.We are
> > > using a proper workaround that is mensioned in the issue.
> >
> > > Actully main problem what we are facind i

Re: Creating and Importing GWT Independent Modules

2009-08-06 Thread Sumit Chandel
Hi Bruno,
Only code that can be cross-compiled into JavaScript should be used when
performing a GWT compilation. If you've added the projectA JAR to the GWT
compile launch configuration, have you made sure that the class imported
from com.google.ProjectA is translatable and has been included in the set of
translatable code (via a  tag in the moduleA xml file)?

If moduleA.gwt.xml contained in the projectA.jar is resolved, it seems to me
like the error message you're getting could be due to the fact that the
class being imported isn't included in the set of translatable code.

Hope that helps,
-Sumit Chandel

On Tue, Aug 4, 2009 at 3:12 PM, Nuno  wrote:

> How to set that the compiler use the jar from the project A??
> i've done everything, but now when i compile the code i get "import
> com.google.projectA cannot be resolved"
> if i remove or change the gwt.xml with a different name it complains that
> it does not find the xml, so i'm sure it is finding the moduleA gwt.xml
>
> but i cant compile because of this error
>
>
>
> Att
>
> Bruno Bilescky
>
> Wants to learn GWT? Read my blog / Quer aprender a programar? leia meu blog
>
> http://tcninja.blogspot.com
>
>
>
>
>
> On Mon, Aug 3, 2009 at 8:28 PM, Sumit Chandel wrote:
>
>> Hi Lucas,
>> You can follow the steps below to package an existing module, say module A
>> defined in project A, that you want to reuse in another project, say project
>> B that defines module B which itself defines an entrypoint class.
>>
>> 1) Create / move all the GWT code that you want to reuse in project A.
>>
>> 2) Create / update the module XML file for module A in the normal way,
>> except you no longer need to define an entry point class.
>>
>> 3) Create a JAR for project A (project-a.jar), which should include 1) GWT
>> source code that you want to reuse from the project, 2) The module XML file,
>> 3) Any other public resources referenced by the module XML file,  4) The
>> binary .class files for any server-side code that you want to reuse
>>
>> 4) Add the project-a.jar file to the project B classpath, as well as any
>> other launch configurations related to project B (typically hosted mode and
>> compile configurations).
>>
>> 5) Reference the module A xml file from the module B xml file (e.g.
>> ). Note that since the module
>> A xml file should already include the > name="com.google.gwt.user.User" /> inherits tag, you shouldn't need to add
>> that reference again to the module B xml file.
>>
>> You should be ready to go. Give those instructions a try and let us know
>> if you managed to package and reuse your module.
>>
>> Hope that helps,
>> -Sumit Chandel
>>
>>
>> On Fri, Jul 31, 2009 at 10:37 AM, Lucas Neves Martins > > wrote:
>>
>>>
>>> Nope,
>>>
>>> Can anybody give a step-by-step ?
>>>
>>> On 29 jul, 10:49, Nuno  wrote:
>>> > you dont need to do much thing for this...
>>> > just create your gwt library project, you dont need to define any
>>> > entrypoints.
>>> >
>>> > after, just click with your right button on your project, then export,
>>> then
>>> > select java package
>>> >
>>> > after you only need to import
>>> > this jar on the other project you want to use it, and on the module
>>> > xml make reference to the xml of the library.
>>> >
>>> > you can find an example on my blog.http://tcninja.blogspot.com
>>> >
>>> > On Wed, Jul 29, 2009 at 10:10 AM, Lucas Neves Martins <
>>> snown...@gmail.com>wrote:
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > > I looked it up all over the internet, but I only found this link :
>>> >
>>> > >http://developerlife.com/tutorials/?p=229
>>> >
>>> > > I need to create a .jar with gwt views (those .java in the client
>>> > > package) and then import it to other gwt project, much like they do
>>> > > with the SmartGwt api.
>>> >
>>> > > How they did the SmartGwt api? Where is the Docs/Tutorial/Whitepapers
>>> > > on how to create and export GWT modules?
>>> >
>>> > > I follow the instructions on this link above, but it just doesn't
>>> > > work, when I try to compile it, I get an error telling me that the
>>> > > compiler couldn't find the class I am using, even the class is on the
>>> /
>>> > > lib dir, and in my buildpath, and in the .xml with a declared
>>> inherit.
>>> >
>>> > > Does anybody know how do I do that?
>>> >
>>> > --
>>> > Quer aprender a programar? acompanhe:
>>> > Wants to learn GWT? Follow this blog ->
>>> >
>>> > http://tcninja.blogspot.com
>>>
>>>
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Calling listbox.clear() is very slow in IE for large list boxes

2009-08-06 Thread Dazza

That is what I ended up doing.  I remove and recreate the list box
rather than calling clear() and the performance is fine.  The "remove"
performance seems to remain constant regardless of the number of
entries in the list.  I am not sure there is anything gwt can do about
this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: com.google.gwt.user.client.ui.Frame and broken history

2009-08-06 Thread Sumit Chandel
Hi Bryan,
A potential workaround would be to create the Frame with a known token to
indicate that the next history token pushed / popped from the browser
history stack comes from the frame page? For example, you could place an #ad
token to the URL to which you're sourcing the Frame, and inspect the token
for the #ad identifier in your history listener and programmatiicaly go
History.back() / History.forward() until you pop the token you were
expecting in your application context. This might have the effect of
additional click sounds when your user navigates back to the application and
presses back / forward (specifically on IE), but I'm not sure if this is
unavoidable since history events in a frame from a page will add tokens to
the browser history stack.

Hope that helps,
-Sumit Chandel

On Mon, Aug 3, 2009 at 7:48 PM, Bryan  wrote:

>
> The javadoc for frame says "Note that if you are using History, any
> browser history items generated by the Frame will interleave with your
> application's history."
>
> Really?  It just breaks it and that's it?  Are there any suggested
> workarounds?  This is a huge problem for sites that serve up ads in
> iframes and it seems like there's got to be some way to not end up
> with 4 history tokens per 'page' when you have one 'page' and 3 ads on
> it.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Modifying RequestBuilder

2009-08-06 Thread Tony

I'm new to Java, so this is probably a really newbie question, but
anyway:

I'm trying to use the flXHR library in one of my GWT projects (it's a
Flash/Javascript solution for cross-domain XMLHttpRequests).  The
library basically provides a version of XMLHttpRequest that is able to
make cross-domain requests.  So all I need to do is get GWT to use the
flXHR() object instead of XMLHttpRequest().  The problem is that
RequestBuilder uses a private, final variable to store the instance of
HttpRequestImpl (which is a JavaScriptObject for an XMLHttpRequest),
and I can't figure out how to make a RequestBuilder class that uses my
custom implementation of HttpRequest instead.  Any thoughts, or am I
going to have to patch/compile the GWT JARs myself?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Is gwt1.6/1.7 supports/compatible with gears

2009-08-06 Thread Sumit Chandel
Hi evergreen_suni,
Could you elaborate a little more on what problems you're experiencing using
Gears with GWT? Also, are you using Gears via your own JSNI bindings or JSO
overlays, or using the Gears bindings available in the Google API Libraries
for GWT project?

"Google API Libraries for GWT":
http://code.google.com/p/gwt-google-apis/

Regards,
-Sumit Chandel

On Mon, Aug 3, 2009 at 11:35 PM, evergreen_suni wrote:

>
> Hi all,
>
> I am getting some problem while adding gears to gwt1.6/1.7.
>
> Please reply me
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: CSRF protection for RPC calls - Generate cookie on the client - is it safe?

2009-08-06 Thread Tony

This would provide protection against a typical CSRF attack - since
the attacker cannot read/write to the user's cookies for your domain,
he would be unable to supply two arbitrary matching strings nor match
the string in an existing cookie.

However, if combined with an XSS attack (where malicious code is
running in the user's browser on your domain), it would be trivial to
defeat your protective measures by simply writing an arbitrary string
to the cookie, and then supplying the same string with the query.

On Aug 6, 5:25 pm, Arthur Kalmenson  wrote:
> Normally you get a session ID from the server and store that in a
> cookie and use the session id to make sure the user is actually logged
> in.
>
> --
> Arthur Kalmenson
>
>
>
> On Tue, Aug 4, 2009 at 9:16 AM, jahboite wrote:
>
> > Hello GWTers!
>
> > Having read the XSRF and GWT section of the page at
> >http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gw...
> > I'm trying to implement the suggested protection which involves
> > sending an extra 'cookie value' param in GWT calls and then comparing
> > that value with the value of the cookie header.
>
> > My question involves the generation of the cookie value and whether it
> > is safe to do this on the client.  As long as it doesn't impact client
> > performance, it seems to me that generating a random token, setting
> > the cookie with that token and sending the same token as a param in
> > RPC calls would be a neat way to offload CPU cycles to the client.
> > The server would then only need to compare the cookie header with the
> > token received in each RPC call and drop the call if the values don't
> > match (on the assumption that the call hasn't been made by the logged-
> > in client).
>
> > Is that safe?  Is there a way for a forged request to include a
> > cookie?  If the server merely compares two arbitrary strings, wouldn't
> > it be easy for a forger to bypass the restrictions relied upon for
> > this type of protection?
>
> > Any insights gratefully received.
>
> > Cheers.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Automated JUnit Tests for GWT

2009-08-06 Thread Carl Pritchett

You could also run you ant task from inside eclipse - use the Run ->
External tools menu

Carl.

On Aug 3, 11:31 pm, Jason Parekh  wrote:
> Hey Ben,
>
> You can create a new Run configuration to run your tests.  Open Run > Run
> configurations menu item, and double-click on the GWT JUnit Test.  Finally,
> configure the created configuration to point to your test cases.
>
> jason
>
> On Sun, Aug 2, 2009 at 6:56 AM, Ben2008  wrote:
>
> > Is there anyway to do this with eclipse only?
> > I do not want to have too much other stuff that will only complicate
> > my project ...
> > Best way is possibly to define a compile or build configuration in
> > eclipse that will serve my needs.
> > IF i click on that GWT compiler, just compile and run my test suite
> > thats all i want to have.
> > Maybe there is a chance to invoke the testsuite as soon as my server
> > starts up ...
> > for example if i run in hosted mode, my method xyz will be invoked and
> > that method will start up that Junit Tests ...
> > But i dont know how to start them manually.
>
> > Thanks for any help mates
>
> > On Aug 1, 7:24 pm, Daniel Wellman  wrote:
> > > Are you using Ant or Maven?
>
> > > The Maven plugin (from Codehaus) has documentation on running tests
> > > here:http://mojo.codehaus.org/gwt-maven-plugin/user-guide/testing.html
>
> > > For Ant, you'll run your tests using the standard JUnit task, but make
> > > sure to include your test and project source in the classpath,
> > > otherwise you'll get errors that code couldn't be found at test
> > > runtime.  And as you mentioned, you'll need to compile your test code
> > > first before running the JUnit task.
>
> > > Dan
>
> > > On Jul 30, 3:23 pm, Ben2008  wrote:
>
> > > > Hi folks,
> > > > onhttp://code.google.com/webtoolkit/doc/1.6/DevGuideTesting.html
>
> > > > "When developing a large project, a good practice is to integrate the
> > > > running of your test cases with your regular build process. When you
> > > > build manually, such as using ant from the command line or using your
> > > > desktop IDE, this is as simple as just adding the invocation of JUnit
> > > > into your regular build process. When building in a server
> > > > environment, there are a few extra considerations."
>
> > > > But i did not find any advice on the net how to implement automated
> > > > tests.
> > > > I use Eclipse 3.4 and Gwt 1.7 and my GreetTestCase works finde for
> > > > Client und Remote Testing.
> > > > How can i add this test to my build process? Like Compiling Project?-
> > Hide quoted text -
>
> > > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: size of TextBox in GWT

2009-08-06 Thread Michael W

user TextBox method setMaxLength(...)

On Aug 6, 2:59 pm, Tobe  wrote:
> Hi,
> how do I set the size parameter of a HTML input element with
> type="text" for a TextBox in GWT?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: History library for GWT

2009-08-06 Thread jwheat3300

Hi Salvador,

For a tutorial on how to use GWT history go here:
http://gwttutorials.com/2009/08/06/gwt-history/

This tutorial has everything you need to get started with GWT history.

James

On Aug 4, 9:46 am, Salvador Maravilla Gil
 wrote:
> Hi,
>
> Can anybody recommend ahistorylibrary forGWT?
>
> Rya Ryan named ahistorylibrary in his presentation but i wasn't able
> to find it. Can anyone help ?
>
> Thank in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Cannot compile gadget: GadgetGenerator threw org.w3c.dom.DOMException: NAMESPACE_ERR

2009-08-06 Thread Art

Hello,

I'm blocked from trying to have fun with Google gadget and GWT. ;-)
I got the exception like below in trying to compile a simple Google
gadget on Eclipse (Galileo).
I highly appreciate if someone can give me the crew of this cause.
Regards.

Compiling module com.inetools.igadgetexperiment2.IGadgetExperiment2
   Computing all possible rebind results for
'com.inetools.igadgetexperiment2.client.IGadgetExperiment2'
  Rebinding
com.inetools.igadgetexperiment2.client.IGadgetExperiment2
 Invoking 
[ERROR] Generator
'com.google.gwt.gadgets.rebind.GadgetGenerator' threw threw an
exception while rebinding
'com.inetools.igadgetexperiment2.client.IGadgetExperiment2'
org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create
or change an object in a way which is incorrect with regard to
namespaces.
at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.setName
(ElementNSImpl.java:105)
at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.
(ElementNSImpl.java:80)
at
com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createElementNS
(CoreDocumentImpl.java:2084)
at
com.sun.org.apache.xerces.internal.dom.CoreDOMImplementationImpl.createDocument
(CoreDOMImplementationImpl.java:268)

Here's the Google gadget class (IGadgetExperiment2.java) I try to
compile:
package com.inetools.igadgetexperiment2.client;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.gadgets.client.Gadget;
import com.google.gwt.gadgets.client.UserPreferences;
import com.google.gwt.gadgets.client.Gadget.ModulePrefs;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;

@ModulePrefs( title = "iGoogle Gadget Experiement2", author = "Art",
author_email = "atozof...@gmail.com")
public class IGadgetExperiment2 extends Gadget {

@Override
protected void init(UserPreferences preferences) {
Button simpleButton = new Button("SimpleGadget");
simpleButton.addClickHandler(
new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
Window.alert("Hello World!");
}
}
);
RootPanel.get().add(simpleButton);
}
}

And here's the IGadgetExperiment2.gwt.xml file:

http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-
source/core/src/gwt-module.dtd">

  
  

  
  
  
  
  
  

  


  
  


gwt-gadgets-noredist.jar from 
http://gwt-google-apis.googlecode.com/files/gwt-gadgets-1.0.3.tar.gz
has been added as the library as well as GWT 1.7 SDK (and AppEngine
1.2.2 SDK).

Here's the web.xml:

http://java.sun.com/dtd/web-app_2_3.dtd";>



  

  
  
IGadgetExperiment2.html
  




Environment:
XP SP3
Google Plugin for Eclipse 3.5 1.1.0.v200907291526
eclipse.buildId=I20090611-1540
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product
org.eclipse.epp.package.jee.product


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Cannot compile gadget: GadgetGenerator threw org.w3c.dom.DOMException: NAMESPACE_ERR

2009-08-06 Thread Eric Ayers

This error I've seen caused by a conflict in Xerces distributed with
gwt-gadget.jar.  Try using the gwt-gadget-noredist.jar file.  It
doesn't bundle the Xerces library.

On Thu, Aug 6, 2009 at 10:36 PM, Art wrote:
>
> Hello,
>
> I'm blocked from trying to have fun with Google gadget and GWT. ;-)
> I got the exception like below in trying to compile a simple Google
> gadget on Eclipse (Galileo).
> I highly appreciate if someone can give me the crew of this cause.
> Regards.
>
> Compiling module com.inetools.igadgetexperiment2.IGadgetExperiment2
>   Computing all possible rebind results for
> 'com.inetools.igadgetexperiment2.client.IGadgetExperiment2'
>      Rebinding
> com.inetools.igadgetexperiment2.client.IGadgetExperiment2
>         Invoking  class='com.google.gwt.gadgets.rebind.GadgetGenerator'/>
>            [ERROR] Generator
> 'com.google.gwt.gadgets.rebind.GadgetGenerator' threw threw an
> exception while rebinding
> 'com.inetools.igadgetexperiment2.client.IGadgetExperiment2'
> org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create
> or change an object in a way which is incorrect with regard to
> namespaces.
>        at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.setName
> (ElementNSImpl.java:105)
>        at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.
> (ElementNSImpl.java:80)
>        at
> com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createElementNS
> (CoreDocumentImpl.java:2084)
>        at
> com.sun.org.apache.xerces.internal.dom.CoreDOMImplementationImpl.createDocument
> (CoreDOMImplementationImpl.java:268)
>
> Here's the Google gadget class (IGadgetExperiment2.java) I try to
> compile:
> package com.inetools.igadgetexperiment2.client;
>
> import com.google.gwt.event.dom.client.ClickEvent;
> import com.google.gwt.event.dom.client.ClickHandler;
> import com.google.gwt.gadgets.client.Gadget;
> import com.google.gwt.gadgets.client.UserPreferences;
> import com.google.gwt.gadgets.client.Gadget.ModulePrefs;
> import com.google.gwt.user.client.Window;
> import com.google.gwt.user.client.ui.Button;
> import com.google.gwt.user.client.ui.RootPanel;
>
> @ModulePrefs( title = "iGoogle Gadget Experiement2", author = "Art",
> author_email = "atozof...@gmail.com")
> public class IGadgetExperiment2 extends Gadget {
>
>       �...@override
>        protected void init(UserPreferences preferences) {
>            Button simpleButton = new Button("SimpleGadget");
>            simpleButton.addClickHandler(
>                        new ClickHandler() {
>                                       �...@override
>                                        public void onClick(ClickEvent event) {
>                                        Window.alert("Hello World!");
>                                        }
>                                }
>                        );
>            RootPanel.get().add(simpleButton);
>        }
> }
>
> And here's the IGadgetExperiment2.gwt.xml file:
> 
>  EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-
> source/core/src/gwt-module.dtd">
> 
>  
>  
>
>  
>  
>  
>  
>  
>  
>
>  
>        
>
>  
>   class='com.inetools.igadgetexperiment2.client.IGadgetExperiment2'/>
> 
>
> gwt-gadgets-noredist.jar from 
> http://gwt-google-apis.googlecode.com/files/gwt-gadgets-1.0.3.tar.gz
> has been added as the library as well as GWT 1.7 SDK (and AppEngine
> 1.2.2 SDK).
>
> Here's the web.xml:
> 
>     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>    "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> 
>
>  
>
>  
>  
>    IGadgetExperiment2.html
>  
>
> 
>
>
> Environment:
> XP SP3
> Google Plugin for Eclipse 3.5 1.1.0.v200907291526
> eclipse.buildId=I20090611-1540
> java.version=1.6.0_13
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Framework arguments:  -product org.eclipse.epp.package.jee.product
> Command-line arguments:  -os win32 -ws win32 -arch x86 -product
> org.eclipse.epp.package.jee.product
>
>
> >
>



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Servlet in Jar

2009-08-06 Thread Kamal Chandana Mettananda
This is a tutorial with an example of using Servlets with GWT. Hope you'll
get the issue resolved.

http://lkamal.blogspot.com/2008/09/java-gwt-servlets-web-app-tutorial.html



On Thu, Aug 6, 2009 at 7:58 PM, Patrik  wrote:

>
> Hi,
> I have a usermodule that I would like to have in a jar-file and
> include in other projects, when I try to test I get
> java.lang.ClassNotFoundException:
> se.riket.gwt.user.server.rpc.impl.LoginServiceImpl. That's the login
> servlet class,
> in my web.xml I have
>
>  
>loginService
>se.riket.gwt.user.server.rpc.impl.LoginServiceImpl servlet-class>
>  
>
>  
>loginService
>/yeti/login
>  
>
> I have added my jar in the classpath and in the *.gwt.xml file.
>
> Anyone with an idea?
>
> BR
> Patrik
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Query: Multi-user environment and GWT RPC

2009-08-06 Thread Parmeet Kohli

I seem to be facing a similar problem. The class i have created at the
server end ( extends RemoteServiceServlet and implements the interface
at the client end ) does have state and methods which depend on each
other. IS A NEW OBJECT NOT INSTANTIATED FROM THIS CLASS EVERY TIME A
NEW USER CALLS IT ? This does not seem to be happening because when i
test the application in parallel from two different browsers, its
mixing up the results. Please help me with a solution or let me know
if anyone needs more details.

Thanks,
Parmeet


On Jul 31, 1:42 am, Isaac Truett  wrote:
> > Say if users using different services concurrently and yet I have
> > grouped the services together, will my web application crash (it can't
> > tell which service for whom) ?
>
> Are you saying that your servlets are stateful? That would indeed be a
> problem. You shouldn't have any member variables in your servlet
> classes that hold data specific to a single user or request. Your
> servlets should be stateless to allow forconcurrentaccess.
>
> On Thu, Jul 30, 2009 at 1:45 AM, style.x7 wrote:
>
> > Hi fellow members,
>
> > I have been following examples found on the web to build my web
> > application with RPC mechanism.
>
> > My web application has quite a few services. By right, each service
> > should have its own class files on both client and server side. But
> > this way will result in a lot of class files, quite troublesome.
>
> > So I'm grouping all the services into one "union" set of class files.
> > It works for single-user usage, soon I have to test on multi-user
> > environment and wonder if problem can arise.
>
> > Say if users using different services concurrently and yet I have
> > grouped the services together, will my web application crash (it can't
> > tell which service for whom) ? Or I'm worrying too much as there will
> > be individual instance of the class files for each user?
>
> > Just want to get this right before I continue developing~ Thanks in
> > advance :)
>
> > Regards,
> > style.x7
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: problem with history in hosted mode

2009-08-06 Thread Jeremiah Moses
any updates on this would be much appreciated

On Wed, Aug 5, 2009 at 2:32 PM, Jeremiah Moses wrote:

> Hey,
>
> I am having a strange problem with history i use the value change handler
> and had the problme wiht both 1.64 and now with 1.7.  the problem is this
> error that comes in hosted mode and on internet explorer
>
> [INFO] Unable to initialize the history subsystem; did you include the
> history frame in your host page? Try  id='__gwt_historyFrame'
> style='position:absolute;width:0;height:0;border:0'>
>
> now the odd thing is i hvae that iframe in my main page and when compile i
> am able to go through the pages in firefox the problem seems to only in
> internet explorer and in hosted mode.
>
> any suggestions to fix this ?
>
>
> thanks
>
> jeremiah
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: StaticStringInternationalization

2009-08-06 Thread lumo
>
>
>
> * use this content type in the HTML page:
>   
> * make sure, your .properties files are saved using UTF-8 encoding
> (file-properties in eclipse)
> * set the language using:  content='locale=de'>


okay, i changed the content type to utf-8 and also the encoding of the
.properties files.
i added the language meta tag into my html file





etc.
still... its only the default .properties showing up.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: problem with history in hosted mode

2009-08-06 Thread Salman Hemani

I have the following line in my html file and I don't see the problem
in hosted mode.



Copy the above into your body tag. Let us know if that worked

On Aug 7, 12:30 am, Jeremiah Moses  wrote:
> any updates on this would be much appreciated
>
> On Wed, Aug 5, 2009 at 2:32 PM, Jeremiah Moses 
> wrote:
>
> > Hey,
>
> > I am having a strange problem with history i use the value change handler
> > and had the problme wiht both 1.64 and now with 1.7.  the problem is this
> > error that comes in hosted mode and on internet explorer
>
> > [INFO] Unable to initialize the history subsystem; did you include the
> > history frame in your host page? Try  > id='__gwt_historyFrame'
> > style='position:absolute;width:0;height:0;border:0'>
>
> > now the odd thing is i hvae that iframe in my main page and when compile i
> > am able to go through the pages in firefox the problem seems to only in
> > internet explorer and in hosted mode.
>
> > any suggestions to fix this ?
>
> > thanks
>
> > jeremiah
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: problem with history in hosted mode

2009-08-06 Thread Salman Hemani

I thought I'd post another problem in the same thread which works fine
for Firefox but not in IE. Seems like a bug in GWT

I start off with my initial token. Let's say "start". When page1 is
loaded I add another token "page1". When I click on another page it
initializes that page and adds another token "page2". So the stack for
the back button should look like:

page2
page1
start

Now when I hit back it should go to page1. And the stack for back
button looks like:

page1
start

where as forward button stack looks like

page2

So if I hit forward it should take me to page2. But this only works in
Firefox. (Have not tried other non IE browsers).
In IE, forward stack is empty (cannot tell in the GWT Browser because
the button is always enabled. But if you load IE, forward button is
never enabled). Furthermore, the back button stack looks like this:

page1
page2
start

What's going on?

Jeremiah,

When you get passed the problem you reported initially, let me know if
you see the above issue.

Anyone else, please shed some light.

Thanks.


On Aug 7, 1:53 am, Salman Hemani  wrote:
> I have the following line in my html file and I don't see the problem
> in hosted mode.
>
> 
>
> Copy the above into your body tag. Let us know if that worked
>
> On Aug 7, 12:30 am, Jeremiah Moses  wrote:
>
> > any updates on this would be much appreciated
>
> > On Wed, Aug 5, 2009 at 2:32 PM, Jeremiah Moses 
> > wrote:
>
> > > Hey,
>
> > > I am having a strange problem withhistoryi use the value change handler
> > > and had the problme wiht both 1.64 and now with 1.7.  the problem is this
> > > error that comes in hosted mode and on internet explorer
>
> > > [INFO] Unable to initialize thehistorysubsystem; did you include the
> > >historyframe in your host page? Try  > > id='__gwt_historyFrame'
> > > style='position:absolute;width:0;height:0;border:0'>
>
> > > now the odd thing is i hvae that iframe in my main page and when compile i
> > > am able to go through the pages in firefox the problem seems to only in
> > > internet explorer and in hosted mode.
>
> > > any suggestions to fix this ?
>
> > > thanks
>
> > > jeremiah
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



how to fetch multiple field from appengine datastore

2009-08-06 Thread buzz_buzz

i am new with GWT. i successfully try compile and upload stockwatcher
application to the google app engine. i alsoa can save and query all
data save in the data store. recently i add 1 more field at stock app
engine data store. i add symbol2. user can save 2 symbol. the problem
is. i dont know how can i extract symbol2 field. Tutorial provided by
google only show extract 1 field only. how can i extract/query more
than 1 field. please help.

Attached code from stockwatcher at server side (StockServiceImpl): -

  public String[] getStocks() throws NotLoggedInException {
checkLoggedIn();
PersistenceManager pm = getPersistenceManager();
List symbols = new ArrayList();
try {
  Query q = pm.newQuery(Stock.class, "user == u");
  q.declareParameters("com.google.appengine.api.users.User u");
  q.setOrdering("createDate");
  List stocks = (List) q.execute(getUser());
  for (Stock stock : stocks) {
symbols.add(stock.getSymbol());
  }
} finally {
  pm.close();
}
return (String[]) symbols.toArray(new String[0]);
  }


its clearly the code only extract 1 field. how to extract another
field.. Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



HTML widget and URL event

2009-08-06 Thread Aladdin

Hi everyone, I have two panels, one has HTML and I want to capture the
URL clicks  so I can load them to the other panel.

What I'm trying to do is to have a menu in the side and load the
content to the other one. I can handle loading the HTML but my only
problem if panel A has a link to yahoo for example and someone clicks
on it the default behavior of the browser is to open a new window, I
want to capture that click so I can load it to the panel B.

***Panel A*** ***Panel
B***
* blah HTML   **
YAHOO.COM*
* yahoo.com   * ==When Click==>*
*
***



Because I want to handle loading URLs I want to disable the browser
from opening the link.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: maps with TileLayer

2009-08-06 Thread lumo
thats exactly what i was searching for!

one more question to this...
how can i add maptype
G_PHYSICAL_MAP
G_SATELLITE_3D_MAP
as shown in many javascripts i saw

map.addMapType(G_PHYSICAL_MAP);
map.addMapType(G_SATELLITE_3D_MAP);

is it also possible to do this in gwt / java?

because by default i only get
G_NORMAL_MAP
G_SATELLITE_MAP
G_HYBRID_MAP

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Pre-Compress GWT compiler output for web server

2009-08-06 Thread JavaTech



On Jul 23, 9:14 am, hazy1  wrote:
> It is dead simple to create a simple in-memory cache in your web
> application for gzipped data.  Gzip the web page in memory the first
> time it is created and then use this for subsequent requests to that
> resource.
>
> On Jul 22, 7:06 am, martinhansen 
> wrote:
>
>
>
> > Hello,
>
> > I am evaluating some approaches to reduce the amount of data being
> > transmitted to the client browser. I am using the Apache Tomcat web
> > server. I successfully managed to enable GZIP output for the Tomcat
> > server by editing the server config file. It works fine. However, this
> > way the data is compressed on-the-fly by the web server for every
> > request which considerably increases server CPU load. Is this
> > assumption correct?
>
> > Is there a way to pre-compress the contents of my GWT app and have
> > this pre-compressed content delivered by the web server?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Pre-Compress GWT compiler output for web server

2009-08-06 Thread JavaTech

Hi all
I am using the Tomcat 6.0

As i believe we need to setting the web.xml in the following path C:
\Program Files\Apache Software Foundation\Tomcat 6.0\conf as below

am i right
  
-  Encoding
x-gzip
 it is not working

kindly let us how to resolve this issue.

Regards,
Thilak

On Jul 23, 9:14 am, hazy1  wrote:
> It is dead simple to create a simple in-memory cache in your web
> application for gzipped data.  Gzip the web page in memory the first
> time it is created and then use this for subsequent requests to that
> resource.
>
> On Jul 22, 7:06 am, martinhansen 
> wrote:
>
>
>
> > Hello,
>
> > I am evaluating some approaches to reduce the amount of data being
> > transmitted to the client browser. I am using the Apache Tomcat web
> > server. I successfully managed to enable GZIP output for the Tomcat
> > server by editing the server config file. It works fine. However, this
> > way the data is compressed on-the-fly by the web server for every
> > request which considerably increases server CPU load. Is this
> > assumption correct?
>
> > Is there a way to pre-compress the contents of my GWT app and have
> > this pre-compressed content delivered by the web server?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Enhancing Data Classes jpa only?

2009-08-06 Thread asianCoolz

Only JPA required to do Enhancing Data Classes , JDO , not required ?
why?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: maps with TileLayer

2009-08-06 Thread lumo
i found how to add the G_PHYSICAL_MAP
mapWidget.addMapType(MapType.getPhysicalMap());
still open:

> G_SATELLITE_3D_MAP
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---