Re: java.lang.NoClassDefFoundError: com/google/gwt/core/client/JavaScriptObject in hosted mode (only)

2012-11-20 Thread Craig Mitchell
I had a similar problem.  I then realised I had made a mistake in the 
gwt.xml file with the , where the "xxx" was not valid.

On Sunday, 23 September 2012 00:19:10 UTC+10, Arturs Elksnis wrote:
>
> Hi Mark,
>   Did you get to the bottom of this at all? I just got stuck with 
> a pretty much identical problem and there's nothing on the web except this 
> thread where noone has answered your question.
>
> This would be really good to crack or else I have to use something else 
> for charting.
>
> On Monday, February 13, 2012 2:58:16 AM UTC, Mark wrote:
>>
>> I have been developing an app of several thousand lines that has 
>> worked great for weeks.All of a sudden yesterday it stopped loading in 
>> hosted mode (eclipse Indigo, chrome 16.0.912.77, GWT 2.4.0, Google 
>> plugin 3.7) .  As described below, the problem is > name="com.google.gwt.visualization.Visualization"/> in 
>> myProject.gwt.xml that is included for charts (and this used to 
>> work...) 
>>
>>  On loading (hosted mode on jetty), it raises this error: 
>>
>> [ERROR] [reagentcalculator] - Failed to load module 
>> 'reagentcalculator' from user agent 'Mozilla/5.0 (Windows NT 6.1; 
>> WOW64)   AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 
>> Safari/535.7' at quickstart.local:8243 
>>
>>
>> 21:48:57.007 [ERROR] [reagentcalculator] Unable to initialize static 
>> dispatcher 
>>
>> java.lang.NoClassDefFoundError: com/google/gwt/core/client/ 
>> JavaScriptObject 
>> at java.lang.ClassLoader.findBootstrapClass(Native Method) 
>> at java.lang.ClassLoader.findBootstrapClassOrNull(Unknown Source) 
>> at java.lang.ClassLoader.loadClass(Unknown Source) 
>> at java.lang.ClassLoader.loadClass(Unknown Source) 
>> at java.lang.ClassLoader.defineClass1(Native Method) 
>> at java.lang.ClassLoader.defineClassCond(Unknown Source) 
>> at java.lang.ClassLoader.defineClass(Unknown Source) 
>> at java.lang.ClassLoader.defineClass(Unknown Source) 
>> at 
>> com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:
>>  
>>
>> 1085) 
>> at java.lang.ClassLoader.loadClass(Unknown Source) 
>> at java.lang.ClassLoader.loadClass(Unknown Source) 
>> at java.lang.Class.forName0(Native Method) 
>> at java.lang.Class.forName(Unknown Source) 
>> at com.google.gwt.dev.shell.JsValueGlue.set(JsValueGlue.java:220) 
>> at 
>> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 
>> 129) 
>> at 
>> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 
>> 561) 
>> at 
>> com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java: 
>> 289) 
>> at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 
>> 332) 
>> at 
>> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
>>  
>>
>> 200) 
>> at 
>> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
>>  
>>
>> 525) 
>> at 
>> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 
>>
>> 363) 
>> at java.lang.Thread.run(Unknown Source) 
>>
>>
>> Next step was to try a new project from the GWT template... it 
>> worked!  Okay, so I assumed I introduced a bug.  Over several hours, I 
>> reduced my application down to the following (which you may recognize 
>> as the preamble to the template). 
>>
>>
>> public void onModuleLoad() { 
>> final Button sendButton = new Button("Send"); 
>> final TextBox nameField = new TextBox(); 
>> nameField.setText("GWT User"); 
>> final Label errorLabel = new Label(); 
>>
>> // We can add style names to widgets 
>> sendButton.addStyleName("sendButton"); 
>>
>> // Add the nameField and sendButton to the RootPanel 
>> // Use RootPanel.get() to get the entire body element 
>> RootPanel.get("nameFieldContainer").add(nameField); 
>> RootPanel.get("sendButtonContainer").add(sendButton); 
>> RootPanel.get("errorLabelContainer").add(errorLabel); 
>> } 
>>
>> Alas, it STILL throws the error!  Tracked down the problem to the line 
>> in myProject.gwt.xml 
>>  
>> because I am using google charts in the full app (but not in the small 
>> version above).   gwt-visualization.jar (latest 1.1.2) is copied into 
>> WEB-INF/lib and in project build path.  If I comment out the inherits 
>> line, The code above works fine. 
>>
>> Any ideas? 
>>
>> Thanks, 
>> Mark 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/xctA6HR75DYJ.
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 mo

File uploading problem with multiple hosts as servers

2012-11-20 Thread sreenivas
Hi,

I have a problem of uploading file to a host, where i have multiple hosts 
as servers. My uploadform.submit() submits file to any one of the hosts. 
Now i want to read the contents back from the file. For that i am making an 
asynchronous call to the server from OnsubmitComplete(). But this time the 
client may hit another host, and return File not found exception. How Can i 
resolve this?

Thanks,
Sreenivas

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/x0vB6c4kcGIJ.
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: Get the response back from server as an object from file upload

2012-11-20 Thread sreenivas putta
So, You say it is not possible to return object to the same client in the
same call where we are calling for file upload? you are saying after file
successful submission, again i need to make another RPC call to get the
object back constructed from file contents, is it? But the problem is i
have several hosts as server. I submit form to one host and when i want to
retrieve the file contents to create my object through an RPC call, I may
hit other host, which returns file not found exception, as it is trying to
do RPC call on other host. How to resolve this then?

-sreenivas

On Wed, Nov 21, 2012 at 1:28 AM, Thad  wrote:

> File upload is a servlet, not an RPC call. As such all it can return is
> html/text.
>
> In my applications, I store the File object or whatever object I parsed
> the file into in a session attribute. The servlet returns "OK" from a
> successful file upload or a text error message--maybe an Exception
> message--to my client. The SubmitComplete method reads the string. If it's
> "OK" I call an RPC method to retrieve the object.
>
>
> On Tuesday, November 20, 2012 8:40:50 AM UTC-5, sreenivas wrote:
>>
>> Hi Geeks,
>>
>> I am able upload the file to the server and construct the object that is
>> required from file contents , but I am not getting how to send this object
>> back to the client which invoked upload function. My service method is
>> public void service(httpRequest, httpResponse). How can i send this object
>> back to the client. Can somebody please help?
>>
>> Thanks,
>> Sreenivas
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/3lE-2NrxEKMJ.
>
> 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.
>

-- 
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: HasHorizontalAlignment.ALIGN_RIGHT has strange result in datagrid column

2012-11-20 Thread tong123123
any one how to solve?
I try to use css

> .class1{
> text-align:right;
> }
>

and then in code, write

> resultGrid.getColumn(5).setCellStyleNames("class1");
>

but the result is the same, the data can show in FF but not in IE8!!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/2qv9V5uHwVEJ.
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: Creating a gwt.xml module for a 3rd Party Library

2012-11-20 Thread Jeffrey Elrod
Thanks.  I thought it would be hard.   Best wishes.
On Nov 20, 2012 7:12 PM, "Joseph Lust"  wrote:

> Jeff,
>
> You wrote me that you're interested in wrapping
> http://commons.apache.org/math/ . This will likely be troublesome since
> only classes in the JRE Emulation 
> libraryof
>  GWT can be used. The reason is simply that Javascript is not Java and
> there are a ton of things you just can't do in JS. These sorts of things
> can be emulated if one wishes, and the GWT team has done so with the
> aforementioned classes. You can Super Source some libraries to make them
> available to the GWT compiler, but if a library uses functions and types
> that are unavailable in JS (i.e. PhantomReference) then it cannot be done
> in GWT.
>
> You might be best off pulling out the math functions of interest and
> trying to get them compiling.
>
> Sincerely,
> Joseph
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/lotFcz8U5iIJ.
> 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.
>

-- 
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: Creating a gwt.xml module for a 3rd Party Library

2012-11-20 Thread Joseph Lust
Jeff,

You wrote me that you're interested in wrapping 
http://commons.apache.org/math/ . This will likely be troublesome since 
only classes in the JRE Emulation 
libraryof 
GWT can be used. The reason is simply that Javascript is not Java and 
there are a ton of things you just can't do in JS. These sorts of things 
can be emulated if one wishes, and the GWT team has done so with the 
aforementioned classes. You can Super Source some libraries to make them 
available to the GWT compiler, but if a library uses functions and types 
that are unavailable in JS (i.e. PhantomReference) then it cannot be done 
in GWT.

You might be best off pulling out the math functions of interest and trying 
to get them compiling.

Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/lotFcz8U5iIJ.
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.



Navigate CellTable with arrow keys

2012-11-20 Thread Kevin Buikema
I'm trying to come up with a way to navigate the elements of a CellTable 
with arrow keys, and while I can get the key events pretty easily, I'm not 
sure of a good way to move the focus from one Cell to another within the 
table.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/QLnu7MgilP8J.
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: Get the response back from server as an object from file upload

2012-11-20 Thread Thad
File upload is a servlet, not an RPC call. As such all it can return is 
html/text.

In my applications, I store the File object or whatever object I parsed the 
file into in a session attribute. The servlet returns "OK" from a 
successful file upload or a text error message--maybe an Exception 
message--to my client. The SubmitComplete method reads the string. If it's 
"OK" I call an RPC method to retrieve the object.

On Tuesday, November 20, 2012 8:40:50 AM UTC-5, sreenivas wrote:
>
> Hi Geeks,
>
> I am able upload the file to the server and construct the object that is 
> required from file contents , but I am not getting how to send this object 
> back to the client which invoked upload function. My service method is 
> public void service(httpRequest, httpResponse). How can i send this object 
> back to the client. Can somebody please help?
>
> Thanks,
> Sreenivas
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/3lE-2NrxEKMJ.
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: javax.servlet.ServletException: Content-Type was '(null)'. Expected 'text/x-gwt-rpc'.

2012-11-20 Thread eliranmal

same here.

using GWT 2.4 and spring security (3.0.7), this appears during a 
login-logout-login scenarios.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/pBay1Hm74O4J.
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 JPA problem

2012-11-20 Thread arun kumar
And thanks for the quick reply. I really appreciate you.

On Tuesday, November 20, 2012 7:12:20 PM UTC+1, arun kumar wrote:
>
>
> Hi,
>
> Project -> Properties - Google -> APP engine already deactivated. 
>
> The strange thing is everything looks same for 2 projects. One compiles 
> fine. Another not. 
>
> But they are imported from difference locations. 
>
> both of them compiled ok in the original machines.  But they are different 
> eclipse versions. 
>
>
> On Tuesday, November 20, 2012 6:57:16 PM UTC+1, Juan Pablo Gardella wrote:
>>
>> Check if you have in eclipse appengine activated. If so, desactive it.
>>
>>
>> 2012/11/20 arun kumar 
>>
>>> Hi,
>>>  
>>>  
>>> i am trying to develop a project that uses JPA. And when i compile it 
>>> "GWT compile" option  i get "javax.persistence cannot be resolved" error. 
>>>  
>>> I have included both eclipselink and toplink libraries in the build path.
>>>  
>>> I am really surprised as another project that uses JPA is compiled 
>>> without any problem. ( with the same build path settings ). 
>>>  
>>> Can someone can please tell me what other things i have to check?. 
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google Web Toolkit" group.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msg/google-web-toolkit/-/XB3EbY3ZV64J.
>>> To post to this group, send email to google-we...@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.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/BjXfVDSZI80J.
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 JPA problem

2012-11-20 Thread arun kumar

Hi,

Project -> Properties - Google -> APP engine already deactivated. 

The strange thing is everything looks same for 2 projects. One compiles 
fine. Another not. 

But they are imported from difference locations. 

both of them compiled ok in the original machines.  But they are different 
eclipse versions. 


On Tuesday, November 20, 2012 6:57:16 PM UTC+1, Juan Pablo Gardella wrote:
>
> Check if you have in eclipse appengine activated. If so, desactive it.
>
>
> 2012/11/20 arun kumar >
>
>> Hi,
>>  
>>  
>> i am trying to develop a project that uses JPA. And when i compile it 
>> "GWT compile" option  i get "javax.persistence cannot be resolved" error. 
>>  
>> I have included both eclipselink and toplink libraries in the build path.
>>  
>> I am really surprised as another project that uses JPA is compiled 
>> without any problem. ( with the same build path settings ). 
>>  
>> Can someone can please tell me what other things i have to check?. 
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/google-web-toolkit/-/XB3EbY3ZV64J.
>> To post to this group, send email to 
>> google-we...@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.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/yEJ87TGM1EcJ.
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 JPA problem

2012-11-20 Thread Juan Pablo Gardella
Check if you have in eclipse appengine activated. If so, desactive it.


2012/11/20 arun kumar 

> Hi,
>
>
> i am trying to develop a project that uses JPA. And when i compile it "GWT
> compile" option  i get "javax.persistence cannot be resolved" error.
>
> I have included both eclipselink and toplink libraries in the build path.
>
> I am really surprised as another project that uses JPA is compiled without
> any problem. ( with the same build path settings ).
>
> Can someone can please tell me what other things i have to check?.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/XB3EbY3ZV64J.
> 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.
>

-- 
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: Question about shared code

2012-11-20 Thread Oliver Krylow
Maybe you could put more abtract classes in the shared folder, that work
both for client and server. And in the server package you extend those
classes with your varargs methods.


On Tue, Nov 20, 2012 at 5:27 PM, Paul Stockley  wrote:

> I have some classes that I want to share between server and client code.
> The problem is they contain methods with vargs that are not supported on
> the client. I only want to use these on the server. Is there some way to
> tell the compiler to ignore these methods for client code.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/E1AkHDG9WmgJ.
> 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.
>

-- 
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: width 0 when you click several times on the go back button of the browser

2012-11-20 Thread grisastur


Hi,

I have a problem when I use go back browser button. I have a window with 
the following information: http://i47.tinypic.com/29aws21.jpg 

Then, I click on one of the grid links, go to another page and then I click 
on go back button of the browser so the browser displays correctly the 
first page. The problem is when I repeat this action several times, click 
on one link and go back using button browser, at four or five times (not 
always the same), the information is not displayed: 
http://i48.tinypic.com/auch1z.jpg

I checked the html code and I realised that a new style "width:0px" is 
added to all the components. If I removed it manually the information is 
displayed correctly. Any idea?

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/0DGgDRH1fo8J.
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 JPA problem

2012-11-20 Thread arun kumar
Hi,
 
 
i am trying to develop a project that uses JPA. And when i compile it "GWT 
compile" option  i get "javax.persistence cannot be resolved" error. 
 
I have included both eclipselink and toplink libraries in the build path.
 
I am really surprised as another project that uses JPA is compiled without 
any problem. ( with the same build path settings ). 
 
Can someone can please tell me what other things i have to check?. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/XB3EbY3ZV64J.
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.



Question about shared code

2012-11-20 Thread Paul Stockley
I have some classes that I want to share between server and client code. 
The problem is they contain methods with vargs that are not supported on 
the client. I only want to use these on the server. Is there some way to 
tell the compiler to ignore these methods for client code.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/E1AkHDG9WmgJ.
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 RequestFactory only returning the last entry of the data

2012-11-20 Thread kjordan
I believe the issue you're experiencing is related 
to http://code.google.com/p/google-web-toolkit/issues/detail?id=6710

You can put the files referenced 
at https://gwt-code-reviews.appspot.com/1646803/ in your project to 
override the ones in the jar files.  Or it looks like it's in the 2.5 
releases, so you might try upgrading to that.

On Tuesday, November 20, 2012 2:20:56 AM UTC-6, reichmc wrote:
>
> I set up an application which uses the GWT RequestFactory. Unfortunately a 
> strange problem occurs. The RequestFactory returns only the last item of 
> the list for as many times as there are items in the list.
>
> Does anyone have an idea, why this happens? Is there kind of a cursor in 
> the list, which has do be reset? Or is it a defect?
>
> Thanks for any help.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/3TX0QZJlVssJ.
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: IE8 Elemental support...

2012-11-20 Thread emurmur
See the thread at the end of this blog post.  Quick answer: Elemental
support modern browsers, not IE8 or below, but GWT core libs can be
used to program the browser at a low-level and still get IE8 support.

http://lumpofcode.blogspot.com/2012/11/configuring-gwt-codeserver-and.html

Ed


On Nov 19, 2:48 pm, Felipe Gasparino  wrote:
> Hi All,
>
> I'm experimenting Elemental, and the library sounds pretty cool. I got a
> huge increase in performance.
>
> However, the IE8 is no longer working.
>
> Does anybody know if Elemental supports ie8 ? Or if not, any workaround to
> suggest?
>
> 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.



dates in DatePicker sometimes fail to be selected on the iPad

2012-11-20 Thread Phineas Gage
Using Safari on an iPad, or the iOS Simulator in XCode, simply go to the 
GWT showcase for the DatePicker:

http://gwt.google.com/samples/Showcase/Showcase.html#!CwDatePicker

Most of the time, when you tap a date, it's selected. However, sometimes 
the DatePicker is left in an in-between state where the date is highlighted 
yellow (as if the user had hovered over the date with a mouse) but it is 
not selected. Tap again, and if you're lucky, it's finally selected.

The current release is GWT 2.5, and I'm not sure when this problem 
appeared...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Kikx89X2PtYJ.
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.



Get the response back from server as an object from file upload

2012-11-20 Thread sreenivas
Hi Geeks,

I am able upload the file to the server and construct the object that is 
required from file contents , but I am not getting how to send this object 
back to the client which invoked upload function. My service method is 
public void service(httpRequest, httpResponse). How can i send this object 
back to the client. Can somebody please help?

Thanks,
Sreenivas

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/iV2woGrhyf0J.
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: send other UI widget values along with file while file submit

2012-11-20 Thread sreenivas
Thank you very much. I got the point. You are very helpful.

-sreenivas

On Tuesday, 20 November 2012 16:58:22 UTC+5:30, Jens wrote:
>
> The JavaDoc of GWT's FormPanel contains a small example how to use forms 
> in GWT.
>
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/FormPanel.html
>
> For files you use FileUpload in your FormPanel and for data that the use 
> should not see in your UI but that you want to send along with your file 
> you use the Hidden widget in your FormPanel. Hidden widgets obviously have 
> to be filled by you programmatically as they are hidden in the UI. 
>
> Apache FileUpload (to parse the request on server) also contains a small 
> example on its site:
>
> http://commons.apache.org/fileupload/using.html
> http://commons.apache.org/fileupload/streaming.html
>
> -- J.
>
> Am Dienstag, 20. November 2012 11:25:08 UTC+1 schrieb sreenivas:
>>
>> Thanks for your reply. But I am not getting exactly what to do as I am 
>> new to GWT. Can you please provide some sample code?
>>
>> Thanks,
>> Sreenivas
>>
>> On Tuesday, 20 November 2012 15:45:15 UTC+5:30, Jens wrote:
>>>
>>> Copy them to hidden form fields (GWT has a class called "Hidden" for 
>>> hidden form fields). On server side you could use Apache FileUpload to 
>>> extract all the data from the request.
>>>
>>> -- J.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/NEJHu6lyWUkJ.
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 RequestFactory only returning the last entry of the data

2012-11-20 Thread reichmc
I set up an application which uses the GWT RequestFactory. Unfortunately a 
strange problem occurs. The RequestFactory returns only the last item of 
the list for as many times as there are items in the list.

Does anyone have an idea, why this happens? Is there kind of a cursor in 
the list, which has do be reset? Or is it a defect?

Thanks for any help.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/eVEmH7GygvwJ.
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.



Unable to add a new service in web.xml file

2012-11-20 Thread Anurag
I am adding a new service in web.xml file. Whenever i am running the 
project, my web.xml is getting overriten.
Because of this, at the time of loading of the service, it is giving me 
unable to find service exception. Could any body tell me , what could be 
the reason for this.


http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
 version="2.5"
 xmlns="http://java.sun.com/xml/ns/javaee";>

  
  
loginServiceServlet
com.example.server.LoginServiceImpl
  
  
  
loginServiceServlet
/gwtcrud/loginService
  
  
  
  
  
gwtcrud.html
  



-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/fDJo5zxR-fsJ.
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.



web.xml
Description: XML document


Re: send other UI widget values along with file while file submit

2012-11-20 Thread Jens
The JavaDoc of GWT's FormPanel contains a small example how to use forms in 
GWT.

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/FormPanel.html

For files you use FileUpload in your FormPanel and for data that the use 
should not see in your UI but that you want to send along with your file 
you use the Hidden widget in your FormPanel. Hidden widgets obviously have 
to be filled by you programmatically as they are hidden in the UI. 

Apache FileUpload (to parse the request on server) also contains a small 
example on its site:

http://commons.apache.org/fileupload/using.html
http://commons.apache.org/fileupload/streaming.html

-- J.

Am Dienstag, 20. November 2012 11:25:08 UTC+1 schrieb sreenivas:
>
> Thanks for your reply. But I am not getting exactly what to do as I am new 
> to GWT. Can you please provide some sample code?
>
> Thanks,
> Sreenivas
>
> On Tuesday, 20 November 2012 15:45:15 UTC+5:30, Jens wrote:
>>
>> Copy them to hidden form fields (GWT has a class called "Hidden" for 
>> hidden form fields). On server side you could use Apache FileUpload to 
>> extract all the data from the request.
>>
>> -- J.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/3i18JLJd6GsJ.
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: send other UI widget values along with file while file submit

2012-11-20 Thread sreenivas
Thanks for your reply. But I am not getting exactly what to do as I am new 
to GWT. Can you please provide some sample code?

Thanks,
Sreenivas

On Tuesday, 20 November 2012 15:45:15 UTC+5:30, Jens wrote:
>
> Copy them to hidden form fields (GWT has a class called "Hidden" for 
> hidden form fields). On server side you could use Apache FileUpload to 
> extract all the data from the request.
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/IXMV2psMWooJ.
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: send other UI widget values along with file while file submit

2012-11-20 Thread Jens
Copy them to hidden form fields (GWT has a class called "Hidden" for hidden 
form fields). On server side you could use Apache FileUpload to extract all 
the data from the request.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/DpnmzNpQfdEJ.
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.



send other UI widget values along with file while file submit

2012-11-20 Thread sreenivas
Hi,

I have to send file to the server. Along with file i want to send UI 
control values such as value typed in text box in the same page etc., How 
can i send these parameters? Can anyone please help?

Thanks,
Sreenivas

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/xEj_vYdXAmoJ.
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: Cancelling an event handler within another event handler

2012-11-20 Thread Thomas Lefort
Your solution works indeed but in the end I decided to override the 
onBrowser event with a first filter to check for click on images.

Thanks again for helping out.


El 19/11/2012 23:43, Thomas Broyer escribió:



On Monday, November 19, 2012 10:34:37 PM UTC+1, Thomas Lefort wrote:

Thanks Thomas. Unfortunately i cannot prevent the use of
addDomHandler on the widget.


Well, because the image is a child widget, you can stopPropagation() 
from your handler to prevent the click to bubble up to your widget; 
and delegate the event to the handlers otherwise, or something like that.


The thing is: you cannot prevent "other handlers" on the same widget 
to be triggered from within a handler, so you have to split those 
handlers in two buckets.


Or possibly wrap the "external" handlers into ones that check a flag 
in the widget to conditionally delegate to the "real" handler, and 
have the first ("internal") handler set that flag; but IMO using two 
buckets is the cleanest solution.

--
You received this message because you are subscribed to the Google 
Groups "Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/KrJxSNQRbiEJ.

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.


--
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.