Re: Login form auto-complete and GWT-RPC (or RequestBuilder), a solution!

2012-07-03 Thread Craig Mitchell
The submitting to a javascript URL was working great.  However, Chrome has 
decided to stop working (currently on version 20.0.1132.47 m).

And the only thing that seems to make it work, is doing a submit straight 
to the servlet from the login form, which is a real pain (and a major 
change).

Anyone else notice that Chrome has stopped working for auto complete?


On Friday, 7 May 2010 03:24:31 UTC+10, Sri wrote:
>
> Why don't you just use JAAS? You could then protect your GWT page in 
> web.xml, and then instruct your app server to "redirect" to login page if 
> the user is not logged in. You can also setup custom roles and permissions 
> - the code is largely copy/paste and rest of the stuff is declarative in 
> your web.xml.
>
> Just do a google search on JAAS + your application server, you'll get 
> detailed notes on how to setup.
>
> --Sri
>
>
>
> On 6 May 2010 22:33, markww  wrote:
>
>> Thanks for the heads up, was just going down that route.
>>
>> I'm fine with using a regular html form, just not sure where to put
>> it. Twitter has a login form on their main splash page, which is
>> ideal. I am thinking I could do the same. My main page is already a
>> jsp page. I can do something like:
>>
>>   // myproject.jsp
>>   
>>  ... login text fields ...
>>   
>>
>><%
>>   String login = request.getParameter("login");
>>   String password = request.getParameter("password");
>>   if (login and password exist and are correct) {
>>   startSession();
>>   showProtectedUserInfoEtc();
>>   }
>>   else {
>>   showGeneralInfo();
>>   }
>>   %>
>>
>> this could work, the form just re-posts itself back to my main project
>> page. The downside is that I have to add the login logic on the main
>> page which is kind of ugly, but I think this will work correctly?
>>
>> Thank you
>>
>>
>> On May 6, 9:30 am, Sripathi Krishnan 
>> wrote:
>> > +1 on that - if you can, don't make the same mistake!
>> >
>> > We also put in some hacks to get the login page "GWT controlled". In
>> > retrospect, it was a poor decision. Its much cleaner to assume that the 
>> GWT
>> > page is only reachable once authenticated.
>> >
>> > --Sri
>> > P.S. And as luck would have it, as I typed this email, my gmail session
>> > timed out. I got a popup - "Your session has timedout". So, I was able 
>> to
>> > copy the draft, login again and then continue on this email. Not too 
>> bad for
>> > usability, I didn't loose my work.
>> >
>> > On 6 May 2010 21:19, Thomas Broyer  wrote:
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > > On May 6, 4:45 pm, markww  wrote:
>> > > > Actually, just confirming this, all the solutions presented here *do
>> > > > not* work in webkit browsers (chrome, safari), right? Looks like it
>> > > > works in firefox ok. I haven't found any alternative solutions in my
>> > > > searches, so seems like our options are still:
>> >
>> > > >   1) Use methods presented here, but won't work in chrome or safari
>> > > >   2) Use standard login submit form (outside of gwt, but will work 
>> on
>> > > > all browsers)
>> >
>> > > I'm using GWT-controlled auth (i.e. without "exiting" the app when
>> > > logging out) for more than 2 years now (initially sending the form to
>> > > the server, then using the above solution) and I must say that...
>> >
>> > >if you can, don't make the same mistake!
>> >
>> > > For all my new projects, I'm using a separate page for the login
>> > > screen adn the GWT app (which can safely assume it is authenticated),
>> > > just like Google does. Yes it means you could loose your work when
>> > > your session expires but it makes the development sooo much easier!
>> > > In our app where we still do this, the session automatically ends
>> > > after 30' of inactivity (calculated only based on requests to the
>> > > server, or rather, responses from the server). You're then showed the
>> > > login screen but you cannot change the username, your only option is
>> > > to give your password (much like a "session locked" screen, as in MS
>> > > Windows), or refresh the page. All your work is kept behind though, so
>> > > when you "unlock" the app, you didn't loose anything. Only when the
>> > > user explicitly logs out the login screen is shown with the ability to
>> > > log back in as any user (and switch locale, which reloads the page
>> > > with the appropriate GWT locale selected), and only in this case the
>> > > whole app (except the login screen) is blown out, and cached data is
>> > > cleared. This is really a PITA to maintain as there's always a risk
>> > > you forget clearing something out.
>> > > So let me reiterate:
>> >
>> > >if you can, don't make the same mistake!
>> >
>> > > --
>> > > 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+un

Re: Login form auto-complete and GWT-RPC (or RequestBuilder), a solution!

2012-07-03 Thread Craig Mitchell
I should point out that it still works great in IE and Firefox.  Just not 
Chrome.

On Tuesday, 3 July 2012 17:07:44 UTC+10, Craig Mitchell wrote:
>
> The submitting to a javascript URL was working great.  However, Chrome has 
> decided to stop working (currently on version 20.0.1132.47 m).
>
> And the only thing that seems to make it work, is doing a submit straight 
> to the servlet from the login form, which is a real pain (and a major 
> change).
>
> Anyone else notice that Chrome has stopped working for auto complete?
>
>
> On Friday, 7 May 2010 03:24:31 UTC+10, Sri wrote:
>>
>> Why don't you just use JAAS? You could then protect your GWT page in 
>> web.xml, and then instruct your app server to "redirect" to login page if 
>> the user is not logged in. You can also setup custom roles and permissions 
>> - the code is largely copy/paste and rest of the stuff is declarative in 
>> your web.xml.
>>
>> Just do a google search on JAAS + your application server, you'll get 
>> detailed notes on how to setup.
>>
>> --Sri
>>
>>
>>
>> On 6 May 2010 22:33, markww  wrote:
>>
>>> Thanks for the heads up, was just going down that route.
>>>
>>> I'm fine with using a regular html form, just not sure where to put
>>> it. Twitter has a login form on their main splash page, which is
>>> ideal. I am thinking I could do the same. My main page is already a
>>> jsp page. I can do something like:
>>>
>>>   // myproject.jsp
>>>   
>>>  ... login text fields ...
>>>   
>>>
>>><%
>>>   String login = request.getParameter("login");
>>>   String password = request.getParameter("password");
>>>   if (login and password exist and are correct) {
>>>   startSession();
>>>   showProtectedUserInfoEtc();
>>>   }
>>>   else {
>>>   showGeneralInfo();
>>>   }
>>>   %>
>>>
>>> this could work, the form just re-posts itself back to my main project
>>> page. The downside is that I have to add the login logic on the main
>>> page which is kind of ugly, but I think this will work correctly?
>>>
>>> Thank you
>>>
>>>
>>> On May 6, 9:30 am, Sripathi Krishnan 
>>> wrote:
>>> > +1 on that - if you can, don't make the same mistake!
>>> >
>>> > We also put in some hacks to get the login page "GWT controlled". In
>>> > retrospect, it was a poor decision. Its much cleaner to assume that 
>>> the GWT
>>> > page is only reachable once authenticated.
>>> >
>>> > --Sri
>>> > P.S. And as luck would have it, as I typed this email, my gmail session
>>> > timed out. I got a popup - "Your session has timedout". So, I was able 
>>> to
>>> > copy the draft, login again and then continue on this email. Not too 
>>> bad for
>>> > usability, I didn't loose my work.
>>> >
>>> > On 6 May 2010 21:19, Thomas Broyer  wrote:
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > > On May 6, 4:45 pm, markww  wrote:
>>> > > > Actually, just confirming this, all the solutions presented here 
>>> *do
>>> > > > not* work in webkit browsers (chrome, safari), right? Looks like it
>>> > > > works in firefox ok. I haven't found any alternative solutions in 
>>> my
>>> > > > searches, so seems like our options are still:
>>> >
>>> > > >   1) Use methods presented here, but won't work in chrome or safari
>>> > > >   2) Use standard login submit form (outside of gwt, but will work 
>>> on
>>> > > > all browsers)
>>> >
>>> > > I'm using GWT-controlled auth (i.e. without "exiting" the app when
>>> > > logging out) for more than 2 years now (initially sending the form to
>>> > > the server, then using the above solution) and I must say that...
>>> >
>>> > >if you can, don't make the same mistake!
>>> >
>>> > > For all my new projects, I'm using a separate page for the login
>>> > > screen adn the GWT app (which can safely assume it is authenticated),
>>> > > just like Google does. Yes it means you could loose your work when
>>> > > your session expires but it makes the development sooo much easier!
>>> > > In our app where we still do this, the session automatically ends
>>> > > after 30' of inactivity (calculated only based on requests to the
>>> > > server, or rather, responses from the server). You're then showed the
>>> > > login screen but you cannot change the username, your only option is
>>> > > to give your password (much like a "session locked" screen, as in MS
>>> > > Windows), or refresh the page. All your work is kept behind though, 
>>> so
>>> > > when you "unlock" the app, you didn't loose anything. Only when the
>>> > > user explicitly logs out the login screen is shown with the ability 
>>> to
>>> > > log back in as any user (and switch locale, which reloads the page
>>> > > with the appropriate GWT locale selected), and only in this case the
>>> > > whole app (except the login screen) is blown out, and cached data is
>>> > > cleared. This is really a PITA to maintain as there's always a risk
>>> > > you forget clearing something out.
>>> > > So let me reiterate:
>>> >
>>> > >if you can, don't make the same mistake!
>>> >

Re: Strategy for saving data project

2012-07-03 Thread Thomas Lefort
Hi Thomas, thanks for the detailed explanation. I added a window closing 
handler but I then have the issue of handling mayStop clean up, ie mayStop 
seems to be called first and does the cleanup, in which case if the user 
decides to cancel the leave of the activity, the activity is in a cleaned 
up state and not usable any more, eg no more event handlers.

I will try to add a PlaceChangeRequest.Handler to raise a flag, in the hope 
that it gets triggered before the mayStop. If it does then I don't need the 
window closing handler anymore.

I still think this will not cover all cases and the only viable solution is 
to make (optimised) periodic saves.


On Monday, 2 July 2012 10:44:39 UTC+2, Thomas Broyer wrote:
>
>
> On Monday, July 2, 2012 9:31:56 AM UTC+2, Thomas Lefort wrote:
>>
>> Hi,
>>
>> I was relying on mayStop to save my user's project when they leave the 
>> activity but it seems to work in some cases only, ie when navigating from 
>> one activity to another but not when leaving the application or closing the 
>> browser... I don't know if it is normal? may be there is "not enough time" 
>> to send the last message with all the project's data?
>>
>
> That's basically what happens yes.
> See http://code.google.com/p/google-web-toolkit/issues/detail?id=4898 and 
> http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#navigating-across-documents
>  among 
> others.
>  
>
>> If it is then I need a whole new strategy to make sure data is saved when 
>> the user leaves. I would be interested in knowing of any suggestion to 
>> solve the issue.
>> I have planned to save on every change made, but it is quite heavy as 
>> there are many frequent updates possible (just moving the map would trigger 
>> a save). An optimisation to this would be a combination of a flag for 
>> tracking changes and a timer to make periodic saves, eg every minute or so, 
>> when the project has changed.
>> Anyway if anyone has recommendations on how to do this I would be very 
>> happy hearing them.
>>
>
> See http://code.google.com/p/google-web-toolkit/issues/detail?id=6726#c5 
> Basically: onbeforeunload (which calls mayStop of the activities) exists 
> so that you can tell the user there are unsaved changes and he can cancel 
> the navigation to save them before navigating away again.
> With a PlaceChangeRequestEvent you could easily tell an onbeforeunload 
> from an internal navigation (the target place is 'null'), but that isn't 
> exposed to activities (mayStop). I suppose you could workaround this using 
> a PlaceChangeRequestEvent.Handler (or Window.ClosingHandler) and shared 
> state (considering mayStop methods are called first, they would store a 
> flag in the shared state, and the PlaceChangeRequestEvent.Handler would 
> setWarning if the target –place is 'null' –resp. the Window.ClosingHandler 
> would setMessage– when the shared state indicates unsaved changes; but of 
> course, you should also handle the case where the mayStop methods are 
> called *last*); and you'd save data in your activities' onStop(), which are 
> not called onbeforeunload.
>

-- 
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/-/0o83GO3ADtgJ.
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: ScriptEngineManager throws an Error but works... why?

2012-07-03 Thread Jepse
Hi there...

Sorry for the double post! My first post didnt show up. So i thought it was 
recognised as spam. I'll be deleting it.

Actually i'm using JSNI for eval a simple fomular. I haven't familiar with 
this feature. But now it works. What is the pure Java solution this 
problem? In my search i dind't find a native soloution for evaluating 
Stings-Formulars. 

The thing what i have been curious about was, that the development mode 
throwed an error but still works on client side. 

Am Dienstag, 12. Juni 2012 12:26:52 UTC+2 schrieb Jepse:
>
> Hi there and hello to this group! (First Post)
>
> First i have to say gwt changed my programmer-life ;) Thanks for that!
>
> My Question:
>
> I'm using SctriptEngineManager in gwt shared package on client side to 
> evaluate String based Conditions (4>2?) or formulas. Every time GWT 
> executes the code, i receive an error in the development console... It says:
> *12:13:13.012 [ERROR] [contacts] Line 253: No source code is available 
> for type javax.script.ScriptEngineManager; did you forget to inherit a 
> required module?*
>
> For some other modules it simply doesn't work because the code is not 
> applicable for converting into javascript. So far all i need to know - fine.
>
> But ScriptEngineManager throws the same error but works... Not that i 
> don't appreciate this behaviour. But i still want to know why it throws 
> this error?
>
> Can anybody point me the reason? Or a better way to evaluate String based 
> conditions or formulars?
>
> My Code:
> ScriptEngineManager manager = new ScriptEngineManager();
> ScriptEngine engine = manager.getEngineByName("js");
> Object result = engine.eval("4>3");
> Boolean boolResult = (Boolean)result;
>

Am Dienstag, 12. Juni 2012 12:26:52 UTC+2 schrieb Jepse:
>
> Hi there and hello to this group! (First Post)
>
> First i have to say gwt changed my programmer-life ;) Thanks for that!
>
> My Question:
>
> I'm using SctriptEngineManager in gwt shared package on client side to 
> evaluate String based Conditions (4>2?) or formulas. Every time GWT 
> executes the code, i receive an error in the development console... It says:
> *12:13:13.012 [ERROR] [contacts] Line 253: No source code is available 
> for type javax.script.ScriptEngineManager; did you forget to inherit a 
> required module?*
>
> For some other modules it simply doesn't work because the code is not 
> applicable for converting into javascript. So far all i need to know - fine.
>
> But ScriptEngineManager throws the same error but works... Not that i 
> don't appreciate this behaviour. But i still want to know why it throws 
> this error?
>
> Can anybody point me the reason? Or a better way to evaluate String based 
> conditions or formulars?
>
> My Code:
> ScriptEngineManager manager = new ScriptEngineManager();
> ScriptEngine engine = manager.getEngineByName("js");
> Object result = engine.eval("4>3");
> Boolean boolResult = (Boolean)result;
>

Am Dienstag, 12. Juni 2012 12:26:52 UTC+2 schrieb Jepse:
>
> Hi there and hello to this group! (First Post)
>
> First i have to say gwt changed my programmer-life ;) Thanks for that!
>
> My Question:
>
> I'm using SctriptEngineManager in gwt shared package on client side to 
> evaluate String based Conditions (4>2?) or formulas. Every time GWT 
> executes the code, i receive an error in the development console... It says:
> *12:13:13.012 [ERROR] [contacts] Line 253: No source code is available 
> for type javax.script.ScriptEngineManager; did you forget to inherit a 
> required module?*
>
> For some other modules it simply doesn't work because the code is not 
> applicable for converting into javascript. So far all i need to know - fine.
>
> But ScriptEngineManager throws the same error but works... Not that i 
> don't appreciate this behaviour. But i still want to know why it throws 
> this error?
>
> Can anybody point me the reason? Or a better way to evaluate String based 
> conditions or formulars?
>
> My Code:
> ScriptEngineManager manager = new ScriptEngineManager();
> ScriptEngine engine = manager.getEngineByName("js");
> Object result = engine.eval("4>3");
> Boolean boolResult = (Boolean)result;
>

Am Dienstag, 12. Juni 2012 12:26:52 UTC+2 schrieb Jepse:
>
> Hi there and hello to this group! (First Post)
>
> First i have to say gwt changed my programmer-life ;) Thanks for that!
>
> My Question:
>
> I'm using SctriptEngineManager in gwt shared package on client side to 
> evaluate String based Conditions (4>2?) or formulas. Every time GWT 
> executes the code, i receive an error in the development console... It says:
> *12:13:13.012 [ERROR] [contacts] Line 253: No source code is available 
> for type javax.script.ScriptEngineManager; did you forget to inherit a 
> required module?*
>
> For some other modules it simply doesn't work because the code is not 
> applicable for converting into javascript. So far 

Re: Strategy for saving data project

2012-07-03 Thread Thomas Lefort
OK, it looks like I might have managed two birds with one stone.

Basically I have a leave flag that I set to true at the creation of the 
activity. This flag is set to false if there is a PlaceRequestEvent and the 
new place is not null. In mayStop I first save my workspace and then I 
check the flag. If the flag is set to false I return a message. If it is 
set to true then I clean up my activity. The point is I do not need to 
clean up my activity if I am moving away from the application.
Now I am no MVP guru like you, so if you see a possible flaw in this 
approach, please let me know.

Thanks again.


On Tuesday, 3 July 2012 10:01:59 UTC+2, Thomas Lefort wrote:
>
> Hi Thomas, thanks for the detailed explanation. I added a window closing 
> handler but I then have the issue of handling mayStop clean up, ie mayStop 
> seems to be called first and does the cleanup, in which case if the user 
> decides to cancel the leave of the activity, the activity is in a cleaned 
> up state and not usable any more, eg no more event handlers.
>
> I will try to add a PlaceChangeRequest.Handler to raise a flag, in the 
> hope that it gets triggered before the mayStop. If it does then I don't 
> need the window closing handler anymore.
>
> I still think this will not cover all cases and the only viable solution 
> is to make (optimised) periodic saves.
>
>
> On Monday, 2 July 2012 10:44:39 UTC+2, Thomas Broyer wrote:
>>
>>
>> On Monday, July 2, 2012 9:31:56 AM UTC+2, Thomas Lefort wrote:
>>>
>>> Hi,
>>>
>>> I was relying on mayStop to save my user's project when they leave the 
>>> activity but it seems to work in some cases only, ie when navigating from 
>>> one activity to another but not when leaving the application or closing the 
>>> browser... I don't know if it is normal? may be there is "not enough time" 
>>> to send the last message with all the project's data?
>>>
>>
>> That's basically what happens yes.
>> See http://code.google.com/p/google-web-toolkit/issues/detail?id=4898and 
>> http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#navigating-across-documents
>>  among 
>> others.
>>  
>>
>>> If it is then I need a whole new strategy to make sure data is saved 
>>> when the user leaves. I would be interested in knowing of any suggestion to 
>>> solve the issue.
>>> I have planned to save on every change made, but it is quite heavy as 
>>> there are many frequent updates possible (just moving the map would trigger 
>>> a save). An optimisation to this would be a combination of a flag for 
>>> tracking changes and a timer to make periodic saves, eg every minute or so, 
>>> when the project has changed.
>>> Anyway if anyone has recommendations on how to do this I would be very 
>>> happy hearing them.
>>>
>>
>> See http://code.google.com/p/google-web-toolkit/issues/detail?id=6726#c5 
>> Basically: onbeforeunload (which calls mayStop of the activities) exists 
>> so that you can tell the user there are unsaved changes and he can cancel 
>> the navigation to save them before navigating away again.
>> With a PlaceChangeRequestEvent you could easily tell an onbeforeunload 
>> from an internal navigation (the target place is 'null'), but that isn't 
>> exposed to activities (mayStop). I suppose you could workaround this using 
>> a PlaceChangeRequestEvent.Handler (or Window.ClosingHandler) and shared 
>> state (considering mayStop methods are called first, they would store a 
>> flag in the shared state, and the PlaceChangeRequestEvent.Handler would 
>> setWarning if the target –place is 'null' –resp. the Window.ClosingHandler 
>> would setMessage– when the shared state indicates unsaved changes; but of 
>> course, you should also handle the case where the mayStop methods are 
>> called *last*); and you'd save data in your activities' onStop(), which are 
>> not called onbeforeunload.
>>
>

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



productive mode results "undefinded" "NaN"

2012-07-03 Thread Jepse
Hi there,

i'm using a simple JSNI Function:

public static native boolean evalBoolean(String arg) /*-{
return eval(arg);
}-*/;

public static native double evalCalculation(String arg) /*-{
return eval(arg);
}-*/;

in development mode everything works fine. when i compile the project it 
results"undefined" and "NaN" values... 

Any ideas?

-- 
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/-/a6ViM-XC50oJ.
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: Need a tool to find out client side coverage .

2012-07-03 Thread Thomas Broyer

On Tuesday, July 3, 2012 6:05:41 AM UTC+2, Joseph Lust wrote:
>
> Have you had luck using the patched Emma version with the more recent 
> releases of Emma? They no longer work for me in Indigo. Perhaps I've done 
> it wrong?
>>
>>
> I opened it as a 
> ticketto
>  have the GWT patch merged with the Emma trunk, but they responded with 
> *won't fix*. I looked at the Google patch, but it does not seem relevant 
> to the current codebase. I was hoping the Google folks could update this. 
>

Apparently, the patch was about merging coverage data for a class across 
different classloaders. JaCoCo seems to have no problem with it: 
http://www.eclemma.org/jacoco/trunk/doc/implementation.html ("java class 
identity" section).
Now, GWT has some specific knowledge of EMMA (in CompilingClassLoader) so 
it'd have to be updated for JaCoCo.

BTW, the GWT build scripts run tests with EMMA, so it indeed is still 
possible to use the provided patched JAR. You just can't use it in Eclipse, 
so you won't benefit of the integration with the editor.

(disclaimer: I must say I have nearly 0 GWTTestCases, so I don't try to get 
coverage data on them; for now we've simply excluded our view classes and 
specific widgets from coverage reports)

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



RF and REST

2012-07-03 Thread chaluwa
Please have anyone of you been successful with REST on a GWT project? What 
api's did you use. We are in the design stage of an app, we love GWT but want 
to liberate the architecture such that we can use the same server code for the 
clients (GWT and JQuery mobile). I don't know if RequestFactory (for the GWT 
client) can play nicely with a REST back end and we are not even sure how to go 
about it. Some googling revealed Restlet (which I think couples our server code 
to GWT) and Apache CXF. Any hint on which to use, and how to go about it? Big 
thanks.

Sent from my BlackBerry® wireless handheld from Glo Mobile.

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



MenuItemSeparator in uibinder produces xml error

2012-07-03 Thread tanteanni
i just tried to create a MenuBar with some item and a separator with 
uibinder, but Eclipse' xml validation or the underlying xml model doesn't 
like the separator:

cvc-complex-type.2.4.a: Invalid content was found starting with element 
'g:MenuItemSeparator'. One of 
'{"urn:import:com.google.gwt.user.client.ui":MenuItem}' is expected.

how to fix this?
(disabling validation in eclipse doesn't work)

-- 
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/-/dEGpWK-Eu2wJ.
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.



Multiple GWT Apps inside one HTML Pages

2012-07-03 Thread david.herv...@gmail.com
Hello All,

I know this question as a lot of thread in this group but I've really found 
what I want.
I want to compile several gwt apps independly the one from each other and 
load these apps into one HTML pages by inserting the 

Re: RF and REST

2012-07-03 Thread Chris Price
RestyGWT is worth considering - http://restygwt.fusesource.org/

On Tue, Jul 3, 2012 at 10:24 AM,   wrote:
> Please have anyone of you been successful with REST on a GWT project? What 
> api's did you use. We are in the design stage of an app, we love GWT but want 
> to liberate the architecture such that we can use the same server code for 
> the clients (GWT and JQuery mobile). I don't know if RequestFactory (for the 
> GWT client) can play nicely with a REST back end and we are not even sure how 
> to go about it. Some googling revealed Restlet (which I think couples our 
> server code to GWT) and Apache CXF. Any hint on which to use, and how to go 
> about it? Big thanks.
>
> Sent from my BlackBerry® wireless handheld from Glo Mobile.
>
> --
> 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.
>

-- 
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: MenuItemSeparator in uibinder produces xml error

2012-07-03 Thread Thomas Broyer

On Tuesday, July 3, 2012 11:28:13 AM UTC+2, tanteanni wrote:
>
> i just tried to create a MenuBar with some item and a separator with 
> uibinder, but Eclipse' xml validation or the underlying xml model doesn't 
> like the separator:
>
> cvc-complex-type.2.4.a: Invalid content was found starting with element 
> 'g:MenuItemSeparator'. One of 
> '{"urn:import:com.google.gwt.user.client.ui":MenuItem}' is expected.
>
> how to fix this?
> (disabling validation in eclipse doesn't work)
>

GWT should have no problem with it: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=4550 

-- 
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/-/pgqANjUXYbYJ.
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: Multiple GWT Apps inside one HTML Pages

2012-07-03 Thread Thomas Broyer
I believe all the issues have been fixed (long ago actually).
As the docs say, there were issues with event handling, but I believe 
everything's fixed by now (and the doc is therefore outdated).

On Tuesday, July 3, 2012 11:50:51 AM UTC+2, david@gmail.com wrote:
>
> Hello All,
>
> I know this question as a lot of thread in this group but I've really 
> found what I want.
> I want to compile several gwt apps independly the one from each other and 
> load these apps into one HTML pages by inserting the 

Re: Validation in 2.5 RC1

2012-07-03 Thread Cengiz
Hi Thomas,

Thanks for the response.  I was talking about the Validation class that 
used to be in the com.google.gwt.validation package; it seems to have moved 
to the com.google.gwt.validation.*impl* package.  After updating the import 
statements, I was able to compile and run my app.

Cheers,
Cengiz


On Monday, July 2, 2012 6:02:19 PM UTC+3, Thomas Broyer wrote:
>
>
> On Monday, July 2, 2012 8:47:50 AM UTC+2, Cengiz wrote:
>>
>> Does anyone know what happened to 
>> com.google.gwt.validation.client.Validation in 2.5?  What are we 
>> supposed to use in its place?
>
>
> Nothing special, its still there. The module is called 
> com.google.gwt.validation.Validation though (without the "client" part) 
>

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



Vaadin 7 to include GWT

2012-07-03 Thread Joonas Lehtinen


As announced at Google IO, the upcoming Vaadin Framework 7 will include GWT 
as its core component and will be fully compatible with GWT. 
This way Vaadin will allow user interface development both on the 
server-side and on the client-side. Server-side development is optimized 
for productivity with fully automated communications and browser-side. 
Client-side development gives a full control of rendering and 
communications to the developer who can still use Java as the programming 
language. 

Vaadin 7 release is expected in the beginning of October. The first 
developer preview version (alpha 3) with GWT built-in was released today.

More info about this can be found at https://vaadin.com/gwt

-- 
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/-/kP_LaryJWmIJ.
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: Any summary on The History and Future of Google Web Toolkit available?

2012-07-03 Thread Ben
here is the presentation: 
https://docs.google.com/presentation/d/1pC9WK80-fzIs2iMQOO3Jsvfmqv2erI9xucuF3lHOE7Q/edit#slide=id.p18
 

Am Montag, 2. Juli 2012 22:44:08 UTC+2 schrieb Celinio Fernandes:
>
> https://developers.google.com/events/io/sessions/gooio2012/218/   is this 
> talk finally available somewhere ? i'm looking for the video !
>
> On Sat, Jun 30, 2012 at 7:23 AM, Ali Jalal  wrote:
>
>> Another news:
>>
>>
>> http://podcasts.infoworld.com/d/application-development/google-hands-over-control-of-google-web-toolkit-steering-committee-196753?_kip_ipx=393161888-1341015596&source=rss_infoworld_top_stories_&utm_source=twitterfeed&utm_medium=twitter
>>
>>
>> On Sat, Jun 30, 2012 at 3:11 AM, Thomas Broyer wrote:
>>
>>>
>>>
>>> On Friday, June 29, 2012 10:14:14 PM UTC+2, Clint wrote:
>>>
 I was hoping to see the Google IO session streamed: The History and 
 Future of Google Web Toolkit, but apparently it wasn't available.

 Any summaries folks care to post from that session? Feel free to post a 
 link to the video once its available if you see it. 

>>>
>>> Ray just posted his slides: 
>>> https://docs.google.com/presentation/d/1pC9WK80-fzIs2iMQOO3Jsvfmqv2erI9xucuF3lHOE7Q/edit
>>>  
>>>  
>>> -- 
>>> 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/-/bnDZTkr9YxgJ.
>>>
>>> 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.
>>
>
>

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



Widget with Elemental support

2012-07-03 Thread Cristian Rinaldi
I understand that Elemental is esperimental, but is robust and really is an 
excellent frame.
My question is: In the future, Widgets are written using Elemental? Is it 
planned?

Thakns

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



What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-03 Thread regnoult axel
Hello,

I am living in Bolivia and here, I have a connection equals to 200 Kbps (it 
is very poor). :(

So I was asking if google engineers are considerating a minimum bandwith 
when testing their app ?

This is important, because when starting my aplication 
(www.mananaseguro.com) , even if I am trying to optimize it, I have for the 
moment 17 seconds to wait to see the first page (and my app is minimalist) 
for* the first time*. Then I think it is due to the cache, it loads a lot 
faster (4 seconds, such as when I open GMAIL here).

In other terms, does '*Google*' recommend a minimum Internet connexion to 
use a GWT application in production ?

Could you give me indications or details explaining why the first time 
loading is a lot slower and then why it loads quickly (I think it is 
because informations are stocked in the browser cache, but what kind of 
information exactly ?)

Thank you for your 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/-/cKPRjyYLdoEJ.
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: Using gwt to change java files

2012-07-03 Thread Philippe Lhoste

On 01/07/2012 21:01, mehdi benchoufi wrote:

I am working on a project that had already been developed. This
project uses get and the javascript comes from java files. I wanted to
make some changes on one of these java files. SO I was told I needed
to download get. This is what I did.


I don't know what is 'get'. Is that a library? A framework?


But my php and html files are processed with MAMP.

So now, how do I change the java files ?


Usually, with a text editor...
Or, better, with an IDE like Eclipse, IntelliJ or NetBeans.
The GWT plugin can help too.


Where do I put my php and
html files to run it on my local server MAMP ?


AFAIK, there is no relation between a PHP/HTML application and a GWT one.
Not a direct one, at least.


Am I supposed to take
the only java files, opening a "WebApp" (as indicated in the get doc),
runn it (with an ant build command ?), retrieving some files and put
those in my MAMP workspace ?

(I have read the gwt, but I didn't really understand it. I apologize
by advance if my question seems too simple)


To summarize: with GWT, you write code in Java. Usually, it is split between server side 
code (the equivalent of PHP) and client side code. The latter is actually JavaScript code 
generated from the Java code. So you need a special compiler (provided by the GWT 
framework) to do this translation from Java to JavaScript.


IIRC, the server side is a servlet, so it needs a special JEE server, able to run these 
servlets. Common cases of these servers are Tomcat and Jetty. I don't think MAMP can run 
servlets.


In theory, you can do only the client side of GWT, and make it to communicate with an 
arbitrary server (can be a Web service written in PHP, among others) via GET, POST and 
other REST requests, or other protocols.

I have no experience with this case.

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --

--
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: Storing/retrieving shared objects in a database

2012-07-03 Thread Philippe Lhoste

On 01/07/2012 20:26, Peter wrote:

Hi guys,

Basically, as the title says, I would like to store a shared object in a MySQL 
database
and retrieve it at a later time. So I wrote a simple shared class Test:

public class Test implements Serializable {
 private int statusId;
 public Test() {
 }
 public Test(int statusId) {
 this.statusId = statusId;
 }
}

Now I have an rpc that stores an instance of the Test class into a 
single-column table
(the MySQL type is BLOB). This is the rpc implementation:

 public void storeTest(Test test) {
 try {
 Class.forName("com.mysql.jdbc.Driver");
 Connection conn = 
DriverManager.getConnection(MySQLConnection.DB_URL,
MySQLConnection.DB_USER, MySQLConnection.DB_PWD);
 PreparedStatement statement = conn.prepareStatement("insert into 
test_table
(test_object) values (?)");
 statement.setObject(1, test);
 statement.executeUpdate();
 } catch (SQLException e) {
 } catch (ClassNotFoundException e) {
 }
 }

For retrieval, I have another rpc as follows (server side code again):

 public Test getTest() {
 Test t = new Test();
 try {
 Class.forName("com.mysql.jdbc.Driver");
 Connection conn = 
DriverManager.getConnection(MySQLConnection.DB_URL,
MySQLConnection.DB_USER, MySQLConnection.DB_PWD);
 PreparedStatement statement = conn.prepareStatement("select 
test_object from
test_table");
 ResultSet resultSet = statement.executeQuery();
 resultSet.next();
 t = (Test) resultSet.getObject(1);
 } catch (SQLException e) {
 } catch (ClassNotFoundException e) {
 }
 return t;
 }

The storeTest(Test test) method runs fine (at least I think it does) - no 
errors are
returned and the record is inserted into the MySQL table. However, the method 
getTest()
fails during the conversion *t = (Test) resultSet.getObject(1)*. Now I've done 
some
digging and apparently the object returned by resultSet.getObject(1) is an 
instance of a
class called *[B*, which seems to be a JNI byte array which can't be converted 
into Test.

It is unclear to me why this happens. I would expect that the BLOB column 
contains all the
necessary info to rebuild the Test object. I'm pretty sure I'm missing something
fundamental here, but can't quite figure it out.


I have no experience with storing object data in a blob of a SQL base. Maybe it acts like 
serialization (I see you made your class serializable).


The first Google hit I got uses a slightly different, more indirect method:
http://www.easywayserver.com/blog/how-to-serializable-object-in-java-2/

The second hit explains why your method doesn't work, and why ObjectInputStream is 
necessary: http://hans.liss.pp.se/node/700


--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --



--
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: Date Serialization

2012-07-03 Thread Philippe Lhoste

On 30/06/2012 16:37, Daniel F. wrote:

I need to parse serialized *java.util.Date* values in Python. Where can I find 
information
on the timestamp that represents date and time in the serialized format?


JavaDoc... http://docs.oracle.com/javase/6/docs/api/java/util/Date.html
See getTime()

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --



--
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: MenuItemSeparator in uibinder produces xml error

2012-07-03 Thread tanteanni
thx thomas,

but how to tell it eclipse? where is the underlying model for uibinder xml 
that eclipse uses for verification? is this model up to date?
is there a way to get rid of the error in eclipse?

On Tuesday, 3 July 2012 12:45:43 UTC+2, Thomas Broyer wrote:
>
>
> On Tuesday, July 3, 2012 11:28:13 AM UTC+2, tanteanni wrote:
>>
>> i just tried to create a MenuBar with some item and a separator with 
>> uibinder, but Eclipse' xml validation or the underlying xml model doesn't 
>> like the separator:
>>
>> cvc-complex-type.2.4.a: Invalid content was found starting with element 
>> 'g:MenuItemSeparator'. One of 
>> '{"urn:import:com.google.gwt.user.client.ui":MenuItem}' is expected.
>>
>> how to fix this?
>> (disabling validation in eclipse doesn't work)
>>
>
> GWT should have no problem with it: 
> http://code.google.com/p/google-web-toolkit/issues/detail?id=4550 
>

-- 
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/-/jYu9aehlcIwJ.
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: RF and REST

2012-07-03 Thread Thomas Broyer

On Tuesday, July 3, 2012 11:24:17 AM UTC+2, chalu wrote:
>
> Please have anyone of you been successful with REST on a GWT project? What 
> api's did you use. We are in the design stage of an app, we love GWT but 
> want to liberate the architecture such that we can use the same server code 
> for the clients (GWT and JQuery mobile). I don't know if RequestFactory 
> (for the GWT client) can play nicely with a REST back end and we are not 
> even sure how to go about it.


RequestFactory is inherently RPC-oriented, so no it won't "play nicely with 
a REST backend".

On the client side, it comes with 2 "dialects": RequestFactory's own 
protocol (to talk to the RequestFactoryServlet), and JSON-RPC (to talk to 
any JSON-RPC endpoint). You could use that second one to ease reuse of the 
same endpoints by other clients (there probably is a jQuery plugin for 
that).
However, the JSON-RPC dialect is not really finished yet (some limitations 
for now) but should nevertheless be usable (I believe Google is using it). 
You'll lose some features too, compared to the RF dialect (everything 
related to EntityProxy vs. ValueProxy; basically, only use ValueProxies).

Some googling revealed Restlet (which I think couples our server code to 
> GWT)


Not at all.
Restlet was created long before GWT, and they then added GWT support on the 
client-side, but the goal is to be a truly RESTful framework, where it 
doesn't matter what your clients and servers are, only what resources they 
expose, with which representations, and responding to which verbs.
Put differently, anything that would bind your client and server cannot be 
said to be RESTful. If you want to make true "REST resources", then look 
for something else (Restlet for example, or JAX-RS)

and Apache CXF.


I don't know Apache CXF so I can't comment.

There's also JAX-RS to easily build REST endpoints.
And for client-side code, as far as GWT is concerned, there's RestyGWT, 
Restlet, or Errai (JAX-RS; see 
http://errai-blog.blogspot.fr/2011/10/jax-rs-in-gwt-with-errai.html ), 
among many others.
 

> Any hint on which to use, and how to go about it? Big thanks.



May I question whether you want to make a "true" REST backend, or simply 
don't want to be tied to any "proprietary protocol"? that would open a 
bunch of possibilities, such as JSON-RPC.

-- 
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/-/g8pNDWiRMb0J.
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: Vaadin 7 to include GWT

2012-07-03 Thread Alain Ekambi
Pretty cool news.
Does this mean that Vaadin Widget will now work client side too ?

2012/7/3 Joonas Lehtinen 

>  As announced at Google IO, the upcoming Vaadin Framework 7 will include
> GWT as its core component and will be fully compatible with GWT.
> This way Vaadin will allow user interface development both on the
> server-side and on the client-side. Server-side development is optimized
> for productivity with fully automated communications and browser-side.
> Client-side development gives a full control of rendering and
> communications to the developer who can still use Java as the programming
> language.
>
> Vaadin 7 release is expected in the beginning of October. The first
> developer preview version (alpha 3) with GWT built-in was released today.
>
> More info about this can be found at https://vaadin.com/gwt
>
> --
> 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/-/kP_LaryJWmIJ.
> 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: RF and REST

2012-07-03 Thread Raphael André Bauer
+1 for restygwt. Has never let us down - even in very large projects.

Cheers,

Raphael

On Tue, Jul 3, 2012 at 3:06 PM, Thomas Broyer  wrote:
>
> On Tuesday, July 3, 2012 11:24:17 AM UTC+2, chalu wrote:
>>
>> Please have anyone of you been successful with REST on a GWT project? What
>> api's did you use. We are in the design stage of an app, we love GWT but
>> want to liberate the architecture such that we can use the same server code
>> for the clients (GWT and JQuery mobile). I don't know if RequestFactory (for
>> the GWT client) can play nicely with a REST back end and we are not even
>> sure how to go about it.
>
>
> RequestFactory is inherently RPC-oriented, so no it won't "play nicely with
> a REST backend".
>
> On the client side, it comes with 2 "dialects": RequestFactory's own
> protocol (to talk to the RequestFactoryServlet), and JSON-RPC (to talk to
> any JSON-RPC endpoint). You could use that second one to ease reuse of the
> same endpoints by other clients (there probably is a jQuery plugin for
> that).
> However, the JSON-RPC dialect is not really finished yet (some limitations
> for now) but should nevertheless be usable (I believe Google is using it).
> You'll lose some features too, compared to the RF dialect (everything
> related to EntityProxy vs. ValueProxy; basically, only use ValueProxies).
>
>> Some googling revealed Restlet (which I think couples our server code to
>> GWT)
>
>
> Not at all.
> Restlet was created long before GWT, and they then added GWT support on the
> client-side, but the goal is to be a truly RESTful framework, where it
> doesn't matter what your clients and servers are, only what resources they
> expose, with which representations, and responding to which verbs.
> Put differently, anything that would bind your client and server cannot be
> said to be RESTful. If you want to make true "REST resources", then look for
> something else (Restlet for example, or JAX-RS)
>
>> and Apache CXF.
>
>
> I don't know Apache CXF so I can't comment.
>
> There's also JAX-RS to easily build REST endpoints.
> And for client-side code, as far as GWT is concerned, there's RestyGWT,
> Restlet, or Errai (JAX-RS; see
> http://errai-blog.blogspot.fr/2011/10/jax-rs-in-gwt-with-errai.html ), among
> many others.
>
>>
>> Any hint on which to use, and how to go about it? Big thanks.
>
>
>
> May I question whether you want to make a "true" REST backend, or simply
> don't want to be tied to any "proprietary protocol"? that would open a bunch
> of possibilities, such as JSON-RPC.
>
> --
> 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/-/g8pNDWiRMb0J.
>
> 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.



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.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: GWT Designer -- GC overhead limit exceeded

2012-07-03 Thread Philippe Lhoste

On 28/06/2012 22:33, Thad wrote:

I part of my job I dislike the most is laying out HTML. As such I have a 
love-hate
relationship with GWT Designer. While it makes some things easier, in many more 
ways it's
just plain maddening.

Currently my chief gripe is how GWT Designer keeps crashing Eclipse. Even when 
I'm
/not/ getting errors back on switching from XML Source view to Design view, the 
progress
bar will stop and, after some wait, I receive an error dialog:

Designer [1.3.0.r37x201202021417.201206281156]: GC overhead limit exceeded
GC overhead limit exceeded


When I close this, I get a crash dialog and must close Eclipse.

I am running Eclipse IDE for Java Developers, Version: Indigo Service Release 
2, Build id:
20120216-1857 on openSUSE 12.1 with the latest Java 1.6 from Sun (although this 
has been a
problem with earlier versions of openSUSE, Java, Eclipse, and GWT Designer).

Is anyone else experiencing this problem?


I don't use GWT Designer (I am OK with HTML layout...) but when you have "GC overhead 
limit exceeded", most advices I saw was to increase the max memory (the Xmx parameter). 
For Eclipse, you do this in the eclipse.ini file at the root of the Eclipse configuration 
(sorry if I state evidences).

If your computer allows it, it is worth trying.

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --



--
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: RF and REST

2012-07-03 Thread chaluwa
Thanks for the quick and helpful replies. Our goal is to build a true RESTful 
back-end (to serve as an API)  and then allow clients (GWT app, JQuery mobile 
app, CLI / API calls e.t.c) interact with the exposed methods/resources from 
the server in a simple (RESTful) way. Have not really looked at restygwt, but 
am wondering if it will allow us develop the rest back end without tying us to 
gwt, I will google more but am yet to find a comprehensive restlet 
(server-side) example. So we don't know how to start. Thanks again!

Sent from my BlackBerry® wireless handheld from Glo Mobile.

-Original Message-
From: Raphael André Bauer 
Date: Tue, 3 Jul 2012 15:25:30 
To: 
Cc: 
Subject: Re: RF and REST

+1 for restygwt. Has never let us down - even in very large projects.

Cheers,

Raphael

On Tue, Jul 3, 2012 at 3:06 PM, Thomas Broyer  wrote:
>
> On Tuesday, July 3, 2012 11:24:17 AM UTC+2, chalu wrote:
>>
>> Please have anyone of you been successful with REST on a GWT project? What
>> api's did you use. We are in the design stage of an app, we love GWT but
>> want to liberate the architecture such that we can use the same server code
>> for the clients (GWT and JQuery mobile). I don't know if RequestFactory (for
>> the GWT client) can play nicely with a REST back end and we are not even
>> sure how to go about it.
>
>
> RequestFactory is inherently RPC-oriented, so no it won't "play nicely with
> a REST backend".
>
> On the client side, it comes with 2 "dialects": RequestFactory's own
> protocol (to talk to the RequestFactoryServlet), and JSON-RPC (to talk to
> any JSON-RPC endpoint). You could use that second one to ease reuse of the
> same endpoints by other clients (there probably is a jQuery plugin for
> that).
> However, the JSON-RPC dialect is not really finished yet (some limitations
> for now) but should nevertheless be usable (I believe Google is using it).
> You'll lose some features too, compared to the RF dialect (everything
> related to EntityProxy vs. ValueProxy; basically, only use ValueProxies).
>
>> Some googling revealed Restlet (which I think couples our server code to
>> GWT)
>
>
> Not at all.
> Restlet was created long before GWT, and they then added GWT support on the
> client-side, but the goal is to be a truly RESTful framework, where it
> doesn't matter what your clients and servers are, only what resources they
> expose, with which representations, and responding to which verbs.
> Put differently, anything that would bind your client and server cannot be
> said to be RESTful. If you want to make true "REST resources", then look for
> something else (Restlet for example, or JAX-RS)
>
>> and Apache CXF.
>
>
> I don't know Apache CXF so I can't comment.
>
> There's also JAX-RS to easily build REST endpoints.
> And for client-side code, as far as GWT is concerned, there's RestyGWT,
> Restlet, or Errai (JAX-RS; see
> http://errai-blog.blogspot.fr/2011/10/jax-rs-in-gwt-with-errai.html ), among
> many others.
>
>>
>> Any hint on which to use, and how to go about it? Big thanks.
>
>
>
> May I question whether you want to make a "true" REST backend, or simply
> don't want to be tied to any "proprietary protocol"? that would open a bunch
> of possibilities, such as JSON-RPC.
>
> --
> 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/-/g8pNDWiRMb0J.
>
> 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.



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.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: MenuItemSeparator in uibinder produces xml error

2012-07-03 Thread Thomas Broyer

On Tuesday, July 3, 2012 2:48:28 PM UTC+2, tanteanni wrote:
>
> thx thomas,
>
> but how to tell it eclipse? where is the underlying model for uibinder xml 
> that eclipse uses for verification? is this model up to date?
> is there a way to get rid of the error in eclipse?
>

The schema indeed is out of date (
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/uibinder/resources/com.google.gwt.user.client.ui.xsd)
 
but it's not meant for validation (
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/uibinder/resources/UiBinder.xsd
)

You might want to both:
 1. report a bug against GWT so that the schema is updated
 2. and ask on https://groups.google.com/d/forum/google-plugin-eclipse why 
it's used for validation and how to disable it, and then possibly report a 
bug against the GPE and/or GWT Designer (depending on what you're using) if 
asked to do so.

Have you tried simply deleting the marker?

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



Smartgwt Load Test with BrowserMob

2012-07-03 Thread Ahmet Dakoglu
As told in Smartgwt - AutomatedTesting documentation, we have been trying
to use BrowserMob for load testing but the script that selenium ide created
can not pass the validaton of the BrowserMob. I think it is related with
scLocators because the error shows the line below scLocator. How can
BrowserMob be use with Smartgwt - Selenium Scripts? Can load testing be
done in any other way / tool ? Thank you.


--Ubuntu 10.10
--Smartgwt 3.1d
--Gwt 2.4

-- 
*Ahmet DAKOĞLU*

-- 
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: MenuItemSeparator in uibinder produces xml error

2012-07-03 Thread tanteanni
the for your investigation thomas!

On Tuesday, 3 July 2012 15:55:06 UTC+2, Thomas Broyer wrote:
>
>
> On Tuesday, July 3, 2012 2:48:28 PM UTC+2, tanteanni wrote:
>>
>> thx thomas,
>>
>> but how to tell it eclipse? where is the underlying model for uibinder 
>> xml that eclipse uses for verification? is this model up to date?
>> is there a way to get rid of the error in eclipse?
>>
>
> The schema indeed is out of date (
> http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/uibinder/resources/com.google.gwt.user.client.ui.xsd)
>  
> but it's not meant for validation (
> http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/uibinder/resources/UiBinder.xsd
> )
>
> You might want to both:
>  1. report a bug against GWT so that the schema is updated
>  2. and ask on https://groups.google.com/d/forum/google-plugin-eclipsewhy 
> it's used for validation and how to disable it, and then possibly 
> report a bug against the GPE and/or GWT Designer (depending on what you're 
> using) if asked to do so.
>
> Have you tried simply deleting the marker?
>

-- 
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/-/lB_6_YGXPHoJ.
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: MenuItemSeparator in uibinder produces xml error

2012-07-03 Thread tanteanni
and yes i tried deleting the marker after disabling xml validation vor the 
project - but the marker always comes back

On Tuesday, 3 July 2012 15:55:06 UTC+2, Thomas Broyer wrote:
>
>
> On Tuesday, July 3, 2012 2:48:28 PM UTC+2, tanteanni wrote:
>>
>> thx thomas,
>>
>> but how to tell it eclipse? where is the underlying model for uibinder 
>> xml that eclipse uses for verification? is this model up to date?
>> is there a way to get rid of the error in eclipse?
>>
>
> The schema indeed is out of date (
> http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/uibinder/resources/com.google.gwt.user.client.ui.xsd)
>  
> but it's not meant for validation (
> http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/uibinder/resources/UiBinder.xsd
> )
>
> You might want to both:
>  1. report a bug against GWT so that the schema is updated
>  2. and ask on https://groups.google.com/d/forum/google-plugin-eclipsewhy 
> it's used for validation and how to disable it, and then possibly 
> report a bug against the GPE and/or GWT Designer (depending on what you're 
> using) if asked to do so.
>
> Have you tried simply deleting the marker?
>

-- 
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/-/mVxtpTuYgwEJ.
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: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-03 Thread jhulford
I'd suggest reading the stuff in "What's with all the cache/nocache stuff 
and weird filenames?" about the bootstrap process.

https://developers.google.com/web-toolkit/doc/2.4/FAQ_DebuggingAndCompiling

On Tuesday, July 3, 2012 8:03:17 AM UTC-4, regnoult axel wrote:
>
> Hello,
>
> I am living in Bolivia and here, I have a connection equals to 200 Kbps 
> (it is very poor). :(
>
> So I was asking if google engineers are considerating a minimum bandwith 
> when testing their app ?
>
> This is important, because when starting my aplication (
> www.mananaseguro.com) , even if I am trying to optimize it, I have for 
> the moment 17 seconds to wait to see the first page (and my app is 
> minimalist) for* the first time*. Then I think it is due to the cache, it 
> loads a lot faster (4 seconds, such as when I open GMAIL here).
>
> In other terms, does '*Google*' recommend a minimum Internet connexion to 
> use a GWT application in production ?
>
> Could you give me indications or details explaining why the first time 
> loading is a lot slower and then why it loads quickly (I think it is 
> because informations are stocked in the browser cache, but what kind of 
> information exactly ?)
>
> Thank you for your 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/-/BrYMNQwEcg8J.
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: Any summary on The History and Future of Google Web Toolkit available?

2012-07-03 Thread chillyspoon
Also looking for the video recording of this one.. it's the session out of 
the whole event this year that I was most interested in catching!



On Friday, 29 June 2012 21:14:14 UTC+1, Clint wrote:
>
> I was hoping to see the Google IO session streamed: The History and Future 
> of Google Web Toolkit, but apparently it wasn't available.
>
> Any summaries folks care to post from that session? Feel free to post a 
> link to the video once its available if you see it. 
>
> Thanks,
>
> -Clint
>

-- 
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/-/tjZdBWLyRY4J.
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: Vaadin 7 to include GWT

2012-07-03 Thread Harpal Grover
This is great news.

Finally, aesthetically appealing widgets for GWT. Been wanting something
like this for a very long time, like a lot of other GWT dev's.

-- 
Harpal Grover
President
*Harpal Grover Consulting LLC*

On Tue, Jul 3, 2012 at 9:25 AM, Alain Ekambi  wrote:

> Pretty cool news.
> Does this mean that Vaadin Widget will now work client side too ?
>
>
> 2012/7/3 Joonas Lehtinen 
>
>>  As announced at Google IO, the upcoming Vaadin Framework 7 will include
>> GWT as its core component and will be fully compatible with GWT.
>> This way Vaadin will allow user interface development both on the
>> server-side and on the client-side. Server-side development is optimized
>> for productivity with fully automated communications and browser-side.
>> Client-side development gives a full control of rendering and
>> communications to the developer who can still use Java as the programming
>> language.
>>
>> Vaadin 7 release is expected in the beginning of October. The first
>> developer preview version (alpha 3) with GWT built-in was released today.
>>
>> More info about this can be found at https://vaadin.com/gwt
>>
>> --
>> 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/-/kP_LaryJWmIJ.
>> 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.
>

-- 
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: RF and REST

2012-07-03 Thread Raphael André Bauer
Have a look at that the following demo:
http://code.google.com/p/play-gae-gwt-dreamteam-showcase/

Frontend and backend only talk via a restful Api. RestyGwt handles the
stuff on the client side of things. Note also that you can share Java
pojos easily between client and servers side...

Cheers,

Raphael

On Tue, Jul 3, 2012 at 3:51 PM,   wrote:
> Thanks for the quick and helpful replies. Our goal is to build a true RESTful 
> back-end (to serve as an API)  and then allow clients (GWT app, JQuery mobile 
> app, CLI / API calls e.t.c) interact with the exposed methods/resources from 
> the server in a simple (RESTful) way. Have not really looked at restygwt, but 
> am wondering if it will allow us develop the rest back end without tying us 
> to gwt, I will google more but am yet to find a comprehensive restlet 
> (server-side) example. So we don't know how to start. Thanks again!
>
> Sent from my BlackBerry® wireless handheld from Glo Mobile.
>
> -Original Message-
> From: Raphael André Bauer 
> Date: Tue, 3 Jul 2012 15:25:30
> To: 
> Cc: 
> Subject: Re: RF and REST
>
> +1 for restygwt. Has never let us down - even in very large projects.
>
> Cheers,
>
> Raphael
>
> On Tue, Jul 3, 2012 at 3:06 PM, Thomas Broyer  wrote:
>>
>> On Tuesday, July 3, 2012 11:24:17 AM UTC+2, chalu wrote:
>>>
>>> Please have anyone of you been successful with REST on a GWT project? What
>>> api's did you use. We are in the design stage of an app, we love GWT but
>>> want to liberate the architecture such that we can use the same server code
>>> for the clients (GWT and JQuery mobile). I don't know if RequestFactory (for
>>> the GWT client) can play nicely with a REST back end and we are not even
>>> sure how to go about it.
>>
>>
>> RequestFactory is inherently RPC-oriented, so no it won't "play nicely with
>> a REST backend".
>>
>> On the client side, it comes with 2 "dialects": RequestFactory's own
>> protocol (to talk to the RequestFactoryServlet), and JSON-RPC (to talk to
>> any JSON-RPC endpoint). You could use that second one to ease reuse of the
>> same endpoints by other clients (there probably is a jQuery plugin for
>> that).
>> However, the JSON-RPC dialect is not really finished yet (some limitations
>> for now) but should nevertheless be usable (I believe Google is using it).
>> You'll lose some features too, compared to the RF dialect (everything
>> related to EntityProxy vs. ValueProxy; basically, only use ValueProxies).
>>
>>> Some googling revealed Restlet (which I think couples our server code to
>>> GWT)
>>
>>
>> Not at all.
>> Restlet was created long before GWT, and they then added GWT support on the
>> client-side, but the goal is to be a truly RESTful framework, where it
>> doesn't matter what your clients and servers are, only what resources they
>> expose, with which representations, and responding to which verbs.
>> Put differently, anything that would bind your client and server cannot be
>> said to be RESTful. If you want to make true "REST resources", then look for
>> something else (Restlet for example, or JAX-RS)
>>
>>> and Apache CXF.
>>
>>
>> I don't know Apache CXF so I can't comment.
>>
>> There's also JAX-RS to easily build REST endpoints.
>> And for client-side code, as far as GWT is concerned, there's RestyGWT,
>> Restlet, or Errai (JAX-RS; see
>> http://errai-blog.blogspot.fr/2011/10/jax-rs-in-gwt-with-errai.html ), among
>> many others.
>>
>>>
>>> Any hint on which to use, and how to go about it? Big thanks.
>>
>>
>>
>> May I question whether you want to make a "true" REST backend, or simply
>> don't want to be tied to any "proprietary protocol"? that would open a bunch
>> of possibilities, such as JSON-RPC.
>>
>> --
>> 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/-/g8pNDWiRMb0J.
>>
>> 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.
>
>
>
> --
> inc: http://ars-machina.raphaelbauer.com
> tech: http://ars-codia.raphaelbauer.com
> web: http://raphaelbauer.com



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.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.



ClientBundle with lots if Images

2012-07-03 Thread Carlos Silva
Hi,

since we can't use reflection on client side, what's an easy way to access
each ImageResource from a ClientBundle that has ~250 images? Doing it in a
if..then..else..if statement looks overkill, but I really can't remember of
anything else. Maybe I'm missing something. Any suggestions?

Thanks,
Carlos Silva

-- 
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: Strategy for saving data project

2012-07-03 Thread Thomas Lefort
mm  I must come back on what I said... It turns out the PlaceRequestHandler 
is called after the mayStop (actually during which is plain weird), or at 
least after the check is done in mayStop, so too late anyway... Is that 
normal? I have only tested in dev mode and with gwt 2.4.

So I tried something else and implemented it all in PlaceChangeEventRequest 
and used the setWarning method to popup a message, but the message is never 
displayed... is that normal too?


On Tuesday, 3 July 2012 10:39:57 UTC+2, Thomas Lefort wrote:
>
> OK, it looks like I might have managed two birds with one stone.
>
> Basically I have a leave flag that I set to true at the creation of the 
> activity. This flag is set to false if there is a PlaceRequestEvent and the 
> new place is not null. In mayStop I first save my workspace and then I 
> check the flag. If the flag is set to false I return a message. If it is 
> set to true then I clean up my activity. The point is I do not need to 
> clean up my activity if I am moving away from the application.
> Now I am no MVP guru like you, so if you see a possible flaw in this 
> approach, please let me know.
>
> Thanks again.
>
>
> On Tuesday, 3 July 2012 10:01:59 UTC+2, Thomas Lefort wrote:
>>
>> Hi Thomas, thanks for the detailed explanation. I added a window closing 
>> handler but I then have the issue of handling mayStop clean up, ie mayStop 
>> seems to be called first and does the cleanup, in which case if the user 
>> decides to cancel the leave of the activity, the activity is in a cleaned 
>> up state and not usable any more, eg no more event handlers.
>>
>> I will try to add a PlaceChangeRequest.Handler to raise a flag, in the 
>> hope that it gets triggered before the mayStop. If it does then I don't 
>> need the window closing handler anymore.
>>
>> I still think this will not cover all cases and the only viable solution 
>> is to make (optimised) periodic saves.
>>
>>
>> On Monday, 2 July 2012 10:44:39 UTC+2, Thomas Broyer wrote:
>>>
>>>
>>> On Monday, July 2, 2012 9:31:56 AM UTC+2, Thomas Lefort wrote:

 Hi,

 I was relying on mayStop to save my user's project when they leave the 
 activity but it seems to work in some cases only, ie when navigating from 
 one activity to another but not when leaving the application or closing 
 the 
 browser... I don't know if it is normal? may be there is "not enough time" 
 to send the last message with all the project's data?

>>>
>>> That's basically what happens yes.
>>> See http://code.google.com/p/google-web-toolkit/issues/detail?id=4898and 
>>> http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#navigating-across-documents
>>>  among 
>>> others.
>>>  
>>>
 If it is then I need a whole new strategy to make sure data is saved 
 when the user leaves. I would be interested in knowing of any suggestion 
 to 
 solve the issue.
 I have planned to save on every change made, but it is quite heavy as 
 there are many frequent updates possible (just moving the map would 
 trigger 
 a save). An optimisation to this would be a combination of a flag for 
 tracking changes and a timer to make periodic saves, eg every minute or 
 so, 
 when the project has changed.
 Anyway if anyone has recommendations on how to do this I would be very 
 happy hearing them.

>>>
>>> See http://code.google.com/p/google-web-toolkit/issues/detail?id=6726#c5
>>>  
>>> Basically: onbeforeunload (which calls mayStop of the activities) exists 
>>> so that you can tell the user there are unsaved changes and he can cancel 
>>> the navigation to save them before navigating away again.
>>> With a PlaceChangeRequestEvent you could easily tell an onbeforeunload 
>>> from an internal navigation (the target place is 'null'), but that isn't 
>>> exposed to activities (mayStop). I suppose you could workaround this using 
>>> a PlaceChangeRequestEvent.Handler (or Window.ClosingHandler) and shared 
>>> state (considering mayStop methods are called first, they would store a 
>>> flag in the shared state, and the PlaceChangeRequestEvent.Handler would 
>>> setWarning if the target –place is 'null' –resp. the Window.ClosingHandler 
>>> would setMessage– when the shared state indicates unsaved changes; but of 
>>> course, you should also handle the case where the mayStop methods are 
>>> called *last*); and you'd save data in your activities' onStop(), which are 
>>> not called onbeforeunload.
>>>
>>

-- 
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/-/Qpq3a6aXRHIJ.
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-toolk

DurationFormatUtils

2012-07-03 Thread Gilad Egozi
Anyone can recommend a good alternative to DurationFormatUtils for GWT?

(*org.apache.commons.lang.time.DurationFormatUtils)*
*
*
*thanks,*
*Gilad.*

-- 
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/-/Ts_VyuCr-MkJ.
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: MenuItemSeparator in uibinder produces xml error

2012-07-03 Thread Thomas Broyer


On Tuesday, July 3, 2012 4:27:31 PM UTC+2, tanteanni wrote:
>
> and yes i tried deleting the marker after disabling xml validation vor the 
> project - but the marker always comes back
>

But it's just a marker, it doesn't affect building or running the project, 
right?

-- 
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/-/EbRZm_Wxx5sJ.
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: ClientBundle with lots if Images

2012-07-03 Thread Thomas Broyer

On Tuesday, July 3, 2012 5:07:32 PM UTC+2, Carlos Silva wrote:
>
> Hi, 
>
> since we can't use reflection on client side, what's an easy way to access 
> each ImageResource from a ClientBundle that has ~250 images? Doing it in a 
> if..then..else..if statement looks overkill, but I really can't remember of 
> anything else. Maybe I'm missing something. Any suggestions?
>

ClientBundleWithLookup
? 

-- 
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/-/XIV0vA5axZ8J.
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: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-03 Thread Jim Douglas
I'm not sure it's possible to make a general statement; it depends on
your application.

If you haven't already done this, take a look at -compileReport; it
can show you what contributes to the size of your application.

https://developers.google.com/web-toolkit/doc/latest/DevGuideCompileReport

Also try adding these options to reduce the size of your generated
application:

-XdisableClassMetadata (breaks getClass().getName()).
-XdisableCastChecking (eliminates ClassCastException).

https://developers.google.com/web-toolkit/doc/latest/DevGuideCompilingAndDebugging#DevGuideCompilerOptions

On Jul 3, 5:03 am, regnoult axel  wrote:
> Hello,
>
> I am living in Bolivia and here, I have a connection equals to 200 Kbps (it
> is very poor). :(
>
> So I was asking if google engineers are considerating a minimum bandwith
> when testing their app ?
>
> This is important, because when starting my aplication
> (www.mananaseguro.com) , even if I am trying to optimize it, I have for the
> moment 17 seconds to wait to see the first page (and my app is minimalist)
> for* the first time*. Then I think it is due to the cache, it loads a lot
> faster (4 seconds, such as when I open GMAIL here).
>
> In other terms, does '*Google*' recommend a minimum Internet connexion to
> use a GWT application in production ?
>
> Could you give me indications or details explaining why the first time
> loading is a lot slower and then why it loads quickly (I think it is
> because informations are stocked in the browser cache, but what kind of
> information exactly ?)
>
> Thank you 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: Strategy for saving data project

2012-07-03 Thread Thomas Lefort
me again... last one I promise.
I ended up using PlaceChangeEventRequest only. The place returned by 
getNextPlace is not null actually. What I ended up doing is have all my 
places implement my ow place interface and check if the getNextPlace is of 
that type. If not, it means we are leaving the page, in which case I use 
the setWarning (which now works).


On Tuesday, 3 July 2012 17:19:59 UTC+2, Thomas Lefort wrote:
>
> mm  I must come back on what I said... It turns out the 
> PlaceRequestHandler is called after the mayStop (actually during which is 
> plain weird), or at least after the check is done in mayStop, so too late 
> anyway... Is that normal? I have only tested in dev mode and with gwt 2.4.
>
> So I tried something else and implemented it all in 
> PlaceChangeEventRequest and used the setWarning method to popup a message, 
> but the message is never displayed... is that normal too?
>
>
> On Tuesday, 3 July 2012 10:39:57 UTC+2, Thomas Lefort wrote:
>>
>> OK, it looks like I might have managed two birds with one stone.
>>
>> Basically I have a leave flag that I set to true at the creation of the 
>> activity. This flag is set to false if there is a PlaceRequestEvent and the 
>> new place is not null. In mayStop I first save my workspace and then I 
>> check the flag. If the flag is set to false I return a message. If it is 
>> set to true then I clean up my activity. The point is I do not need to 
>> clean up my activity if I am moving away from the application.
>> Now I am no MVP guru like you, so if you see a possible flaw in this 
>> approach, please let me know.
>>
>> Thanks again.
>>
>>
>> On Tuesday, 3 July 2012 10:01:59 UTC+2, Thomas Lefort wrote:
>>>
>>> Hi Thomas, thanks for the detailed explanation. I added a window closing 
>>> handler but I then have the issue of handling mayStop clean up, ie mayStop 
>>> seems to be called first and does the cleanup, in which case if the user 
>>> decides to cancel the leave of the activity, the activity is in a cleaned 
>>> up state and not usable any more, eg no more event handlers.
>>>
>>> I will try to add a PlaceChangeRequest.Handler to raise a flag, in the 
>>> hope that it gets triggered before the mayStop. If it does then I don't 
>>> need the window closing handler anymore.
>>>
>>> I still think this will not cover all cases and the only viable solution 
>>> is to make (optimised) periodic saves.
>>>
>>>
>>> On Monday, 2 July 2012 10:44:39 UTC+2, Thomas Broyer wrote:


 On Monday, July 2, 2012 9:31:56 AM UTC+2, Thomas Lefort wrote:
>
> Hi,
>
> I was relying on mayStop to save my user's project when they leave the 
> activity but it seems to work in some cases only, ie when navigating from 
> one activity to another but not when leaving the application or closing 
> the 
> browser... I don't know if it is normal? may be there is "not enough 
> time" 
> to send the last message with all the project's data?
>

 That's basically what happens yes.
 See http://code.google.com/p/google-web-toolkit/issues/detail?id=4898and 
 http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#navigating-across-documents
  among 
 others.
  

> If it is then I need a whole new strategy to make sure data is saved 
> when the user leaves. I would be interested in knowing of any suggestion 
> to 
> solve the issue.
> I have planned to save on every change made, but it is quite heavy as 
> there are many frequent updates possible (just moving the map would 
> trigger 
> a save). An optimisation to this would be a combination of a flag for 
> tracking changes and a timer to make periodic saves, eg every minute or 
> so, 
> when the project has changed.
> Anyway if anyone has recommendations on how to do this I would be very 
> happy hearing them.
>

 See 
 http://code.google.com/p/google-web-toolkit/issues/detail?id=6726#c5 
 Basically: onbeforeunload (which calls mayStop of the activities) 
 exists so that you can tell the user there are unsaved changes and he can 
 cancel the navigation to save them before navigating away again.
 With a PlaceChangeRequestEvent you could easily tell an onbeforeunload 
 from an internal navigation (the target place is 'null'), but that isn't 
 exposed to activities (mayStop). I suppose you could workaround this using 
 a PlaceChangeRequestEvent.Handler (or Window.ClosingHandler) and shared 
 state (considering mayStop methods are called first, they would store a 
 flag in the shared state, and the PlaceChangeRequestEvent.Handler would 
 setWarning if the target –place is 'null' –resp. the Window.ClosingHandler 
 would setMessage– when the shared state indicates unsaved changes; but of 
 course, you should also handle the case where the mayStop methods are 
 called *last*); and you'd save data in your activities'

Re: ClientBundle with lots if Images

2012-07-03 Thread Carlos Silva
On Tue, Jul 3, 2012 at 3:59 PM, Thomas Broyer  wrote:

>
> On Tuesday, July 3, 2012 5:07:32 PM UTC+2, Carlos Silva wrote:
>>
>> Hi,
>>
>> since we can't use reflection on client side, what's an easy way to
>> access each ImageResource from a ClientBundle that has ~250 images? Doing
>> it in a if..then..else..if statement looks overkill, but I really can't
>> remember of anything else. Maybe I'm missing something. Any suggestions?
>>
>
> ClientBundleWithLookup
> ?
>

That's what happens when one doesn't know the API :) 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.



Re: GWT and RequestFactory

2012-07-03 Thread Boris Brudnoy
This was recently discussed in this GWT Group 
post.

On Tuesday, July 3, 2012 6:18:09 AM UTC-4, nessrinovitta wrote:
>
> Hello everyone !
> Does the RequestFactory API allow us to build Web Services with the REST 
> style of architecture ?
> help plzz !
>

-- 
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/-/b0npudR38c4J.
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: Strategy for saving data project

2012-07-03 Thread Thomas Broyer


On Tuesday, July 3, 2012 6:20:09 PM UTC+2, Thomas Lefort wrote:
>
> me again... last one I promise.
> I ended up using PlaceChangeEventRequest only. The place returned by 
> getNextPlace is not null actually.
>

Ah yes sorry; I haven't check but from memory it should/could/might be a 
Place.NOWHERE. 

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



Development Mode Exception: com.google.gwt.core.client.JavaScriptException: (NOT_FOUND_ERR): NOT_FOUND_ERR: DOM Exception 8

2012-07-03 Thread otth2oskier
I am getting this exception on an intermittent basis. It 
is really frustrating as it happens about 75% of the time, but, restarting 
development mode SOMETIMES makes it go away. What is this exception telling 
me?

com.google.gwt.core.client.JavaScriptException: (NOT_FOUND_ERR): 
NOT_FOUND_ERR: DOM Exception 8
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
at java.lang.Thread.run(Unknown Source)

-- 
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/-/t_bvRn2TJ-wJ.
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: Date Serialization

2012-07-03 Thread Daniel F.

Am Dienstag, 3. Juli 2012 14:42:11 UTC+2 schrieb PhiLho:
>
> On 30/06/2012 16:37, Daniel F. wrote: 
> > I need to parse serialized *java.util.Date* values in Python. Where can 
> I find information 
> > on the timestamp that represents date and time in the serialized format? 
>
> JavaDoc... http://docs.oracle.com/javase/6/docs/api/java/util/Date.html 
> See getTime() 
>

This does not seem to be the value which I find in the serialized date. I 
still have to subtract some "magic value" from it. 

-- 
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/-/Hod-NOoxRIIJ.
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: Date Serialization

2012-07-03 Thread Paul Robinson
On 03/07/12 21:41, Daniel F. wrote:
>
> Am Dienstag, 3. Juli 2012 14:42:11 UTC+2 schrieb PhiLho:
>
> On 30/06/2012 16:37, Daniel F. wrote:
> > I need to parse serialized *java.util.Date* values in Python. Where can 
> I find information
> > on the timestamp that represents date and time in the serialized format?
>
> JavaDoc... http://docs.oracle.com/javase/6/docs/api/java/util/Date.html 
> 
> See getTime()
>
>
> This does not seem to be the value which I find in the serialized date. I 
> still have to subtract some "magic value" from it. 
>
The timezone offset, by any chance?

Paul

-- 
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: Development Mode Exception: com.google.gwt.core.client.JavaScriptException: (NOT_FOUND_ERR): NOT_FOUND_ERR: DOM Exception 8

2012-07-03 Thread Thomas Broyer


On Tuesday, July 3, 2012 7:06:35 PM UTC+2, otth2oskier wrote:
>
> I am getting this exception on an intermittent basis. It 
> is really frustrating as it happens about 75% of the time, but, restarting 
> development mode SOMETIMES makes it go away. What is this exception telling 
> me?
>
> com.google.gwt.core.client.JavaScriptException: (NOT_FOUND_ERR): 
> NOT_FOUND_ERR: DOM Exception 8
>

See http://www.w3.org/TR/dom/#dom-domexception-not_found_err (and then 
search for "NotFoundError" in that spec to see when it's raised).

The easiest way to debug JavaScriptException's is to open the browsers' 
developer tools and set them up to break on all exceptions (in Chrome: 
Ctrl+Shift+I to open the tools, then go to the "sources" tab, and click the 
fourth icon on the bottom toolbar once). It'll break in the JSNI method 
that's causing the error, where you could deduce its name. Then try to set 
a breakpoint on that method back in the Java code.

Alternately, try SuperDevMode in Chrome: you'll see your Java code right in 
the dev tools when the exception happens.

-- 
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/-/LlPJSaX7b4IJ.
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: Date Serialization

2012-07-03 Thread Jim Douglas
Yup, probably the timezone offset.  We tripped over that too (wrong
dates when the server and client were in different time zones); we
stopped serializing Date objects and switched to sending a customized
y/m/d value instead.

On Jul 3, 2:41 pm, Paul Robinson  wrote:
> On 03/07/12 21:41, Daniel F. wrote:
>
> > Am Dienstag, 3. Juli 2012 14:42:11 UTC+2 schrieb PhiLho:
>
> >     On 30/06/2012 16:37, Daniel F. wrote:
> >     > I need to parse serialized *java.util.Date* values in Python. Where 
> > can I find information
> >     > on the timestamp that represents date and time in the serialized 
> > format?
>
> >     
> > JavaDoc...http://docs.oracle.com/javase/6/docs/api/java/util/Date.html
> >     See getTime()
>
> > This does not seem to be the value which I find in the serialized date. I 
> > still have to subtract some "magic value" from it.
>
> The timezone offset, by any chance?
>
> Paul

-- 
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: Date Serialization

2012-07-03 Thread Thomas Broyer


On Wednesday, July 4, 2012 12:43:30 AM UTC+2, Jim Douglas wrote:
>
> Yup, probably the timezone offset.  We tripped over that too (wrong 
> dates when the server and client were in different time zones); we 
> stopped serializing Date objects and switched to sending a customized 
> y/m/d value instead.
>

Aka “using the right tool for the job”.
java.util.Date represents a “specific moment in time” (as an offset from 
Epoch, and the Y/M/D/H/M/S are computed from there depending on the TZ); if 
you want a DMY independent from the TZ, then java.util.Date is not “the 
right tool for the job”. You could use JodaTime's or ThreeTen's LocalDate 
for instance (they unfortunately don't play well with GWT: existing ports 
have not been maintained for *years*).

-- 
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/-/9yZ2hN9L8QoJ.
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: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-03 Thread regnoult axel
Ok thank you for the tips, indeed, the compile report will be very usefull. 
It s a nice feature.

Could you help me a little more to understand different things related to 
the report I have ?

*#1 - *I just see this at the begenning of the report : 

Permutation 0 ()
   
   - Split Point 
Report
   - Compiler 
Metrics

- Why I have just one permutation (I use GWT 2.5 and just the 
-compileReport argument ) ?
- The link "Compiler Metric" give me a "page not found", do you know why ?

*#2* -  When I click on permutation 0, I have this : 

*Split Points*#LocationSize (Bytes)% of total
1...@com.mananaseguro.client.gin.ClientGinjectorImpl$1::get
6,7440@com.mananaseguro.client.gin.ClientGinjectorImpl$3::get
4,5580@com.mananaseguro.client.gin.ClientGinjectorImpl$5::get
291,45218@com.mananaseguro.client.gin.ClientGinjectorImpl$6::get
48,6543@com.mananaseguro.client.gin.ClientGinjectorImpl$7::get
5,7970@com.mananaseguro.client.gin.ClientGinjectorImpl$10::get
34,0622@com.mananaseguro.client.gin.ClientGinjectorImpl$11::get
4,5100@com.mananaseguro.client.gin.ClientGinjectorImpl$12::get
152,0189@com.mananaseguro.client.gin.ClientGinjectorImpl$13::get

- I do not understand why there is just ClientGinjectorImpl as Location ? 
(I am using the GWT-Plateform that make heavy use of dependency injection )
- I do not understand what $1:get $2:get $3:get ... $13:get are refering 
for ?

Thank you for your 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/-/zlh9XNsHIsAJ.
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: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-03 Thread Joseph Lust
Also make sure the server is compressing content, both for static resources 
and for your RPC calls. That will help with the initial download a lot too.

Also consider using the ClientBundle resources like CssResource and 
ImageResource. If your internet connection is so poor, I think you're 
better off inlining some of those small images and CSS rules, rather than 
making additional requests.

Best luck.

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



AdSense without iframe

2012-07-03 Thread Kulnor
I've been looking for an easy way to include an AdSense DIV in my GWT app 
without using an iframe and my current approach is as follows:

(1) In the application host page (i.e. application.html), I include the 
standard adsense boiler code and put a @id on the wrapping div like:




http://pagead2.googlesyndication.com/pagead/show_ads.js";>



(2) To integrate this as a Widget in the GWT application (for example in 
the header), I rewrap it in an HTML widget that I can then position/control 
at will:

Element adsense = RootPanel.get("adsense").getElement();
HTML adsenseWrapper = HTML.wrap(adsense);


Can someone feedback on


   - whether this complies with Google policies (as it is not wrapped in an 
   iframe and essentially loads when the application page loads)?
   - would there be any way to rotate the app by calling the embedded 
   javascript (likewise in compliance with policies)? 

thanks

*K





-- 
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/-/OxnNegvVBFkJ.
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: Date Serialization

2012-07-03 Thread Joseph Lust
This question comes up so often that it ought to be a priority for GWT 2.6. 
Perhaps a module setting to for TZ safe date serialization?

See the solution of a custom date serializer in this earlier 
post
. 



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/-/NZvRHeqfAPIJ.
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: productive mode results "undefinded" "NaN"

2012-07-03 Thread Joseph Lust
Please consider not using eval(). It is the source of a great many bugs and 
opens up many security holes.

For example, now you must be sure that your string being evaluated does not 
have any variable name conflicts with GWT. Since the GWT compiler minimizes 
variable names and methods to single letters, using "N" or "n" in your 
evaluated string will lead to seemingly random behaviors. This is possibly 
exactly the source of your errors.


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/-/6V8TFhEVLyYJ.
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: Elemental and WebRTC test apps

2012-07-03 Thread Joseph Lust
For those that would rather not click unknown, obfuscated URLs:
>
>
Video chat: https://github.com/p4elkin/VideoChat
Demo: 
http://ec2-50-19-13-217.compute-1.amazonaws.com:8080/vaadin-video-chat/ (broken 
link)

Face recognition login: https://github.com/henrikerola/FaceLogin 
Demo: http://hene.virtuallypreinstalled.com/facelogin/


-- 
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/-/kylcoz4GcXEJ.
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: Date Serialization

2012-07-03 Thread Thomas Broyer


On Wednesday, July 4, 2012 3:17:42 AM UTC+2, Joseph Lust wrote:
>
> This question comes up so often that it ought to be a priority for GWT 
> 2.6. Perhaps a module setting to for TZ safe date serialization?


If the timezone matters to you, you can simply send it along with the date 
(timestamp). The fact is a java.util.Date is not enough, as the timezone is 
the one of the JVM; I bet you'd have the same behavior with Java 
serialization and/or RMI.

The issue is Java's standard lib, not GWT. JSR 310 aims at fixing it 
(highly inspired from JodaTime), but is not ready yet 
(http://threeten.sf.net)
See http://code.google.com/p/google-web-toolkit/issues/detail?id=603

-- 
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/-/Uk0BOMsGV9UJ.
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: DurationFormatUtils

2012-07-03 Thread Joseph Lust
You can try super 
sourcingsomething
 like this, but after checking the 
sourceit
 appears to use Calendar and GregorianCalendar.

There is the 
PeriodFormatterin
 JodaTime, but I hear JodaTime does not fly with GWT. However there is a 
port, gwt-joda-time . This might 
work for you.


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/-/8tgAfDbaEi8J.
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: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-03 Thread Jim Douglas
The missing CompilerMetrics-*-index.html files is this bug:

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

So ignore the missing CompilerMetrics* files and just focus on the
Split Point Reports; they'll tell you how much space was taken up by
various components generated into your JavaScript files.

Also, I'm assuming you're generating "Obfuscated" code for production;
the other formats are readable for debugging, but they're about 10x
bigger.

If you drill down into the lower levels of those reports, they provide
more detail about individual components.  You can find some articles
about optimizing GWT here:

https://developers.google.com/web-toolkit/doc/latest/DevGuideOptimizing

One more suggestion:  Add this to your *.gwt.xml file:



It's explained here:

http://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions#Controls

And one more...see if this can suggest any tweaks to your page:

https://developers.google.com/speed/pagespeed/insights

On Jul 3, 5:18 pm, regnoult axel  wrote:
> Ok thank you for the tips, indeed, the compile report will be very usefull.
> It s a nice feature.
>
> Could you help me a little more to understand different things related to
> the report I have ?
>
> *#1 - *I just see this at the begenning of the report :
>
> Permutation 0 ()
>
>    - Split Point 
> Report rd-0-index.html>
>    - Compiler 
> Metrics trics-0-index.html>
>
> - Why I have just one permutation (I use GWT 2.5 and just the
> -compileReport argument ) ?
> - The link "Compiler Metric" give me a "page not found", do you know why ?
>
> *#2* -  When I click on permutation 0, I have this :
>
> *Split Points*#LocationSize (Bytes)% of total
> 1...@com.mananaseguro.client.gin.ClientGinjectorImpl$1::get  ananaseguro/soycReport/compile-report/sp1-0-overallBreakdown.html>
> 6,7440@com.mananaseguro.client.gin.ClientGinjectorImpl$3::get  ananaseguro/soycReport/compile-report/sp2-0-overallBreakdown.html>
> 4,5580@com.mananaseguro.client.gin.ClientGinjectorImpl$5::get  ananaseguro/soycReport/compile-report/sp3-0-overallBreakdown.html>
> 291,45218@com.mananaseguro.client.gin.ClientGinjectorImpl$6::get  ananaseguro/soycReport/compile-report/sp4-0-overallBreakdown.html>
> 48,6543@com.mananaseguro.client.gin.ClientGinjectorImpl$7::get  ananaseguro/soycReport/compile-report/sp5-0-overallBreakdown.html>
> 5,7970@com.mananaseguro.client.gin.ClientGinjectorImpl$10::get  mananaseguro/soycReport/compile-report/sp6-0-overallBreakdown.html>
> 34,0622@com.mananaseguro.client.gin.ClientGinjectorImpl$11::get  mananaseguro/soycReport/compile-report/sp7-0-overallBreakdown.html>
> 4,5100@com.mananaseguro.client.gin.ClientGinjectorImpl$12::get  mananaseguro/soycReport/compile-report/sp8-0-overallBreakdown.html>
> 152,0189@com.mananaseguro.client.gin.ClientGinjectorImpl$13::get  mananaseguro/soycReport/compile-report/sp9-0-overallBreakdown.html>
>
> - I do not understand why there is just ClientGinjectorImpl as Location ?
> (I am using the GWT-Plateform that make heavy use of dependency injection )
> - I do not understand what $1:get $2:get $3:get ... $13:get are refering
> for ?
>
> Thank you 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: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-03 Thread Jim Douglas
FWIW, I'm using these optimization options in my *.gwt.xml file:

  
  

  
  

  
  

Each of those options reduces the size of the generated JavaScript;
the extent of the improvement will depend on your particular mix of
code.

On Jul 3, 7:18 pm, Jim Douglas  wrote:
> The missing CompilerMetrics-*-index.html files is this bug:
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=6691
>
> So ignore the missing CompilerMetrics* files and just focus on the
> Split Point Reports; they'll tell you how much space was taken up by
> various components generated into your JavaScript files.
>
> Also, I'm assuming you're generating "Obfuscated" code for production;
> the other formats are readable for debugging, but they're about 10x
> bigger.
>
> If you drill down into the lower levels of those reports, they provide
> more detail about individual components.  You can find some articles
> about optimizing GWT here:
>
> https://developers.google.com/web-toolkit/doc/latest/DevGuideOptimizing
>
> One more suggestion:  Add this to your *.gwt.xml file:
>
> 
>
> It's explained here:
>
> http://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions#Co...
>
> And one more...see if this can suggest any tweaks to your page:
>
> https://developers.google.com/speed/pagespeed/insights
>
> On Jul 3, 5:18 pm, regnoult axel  wrote:
>
>
>
>
>
>
>
> > Ok thank you for the tips, indeed, the compile report will be very usefull.
> > It s a nice feature.
>
> > Could you help me a little more to understand different things related to
> > the report I have ?
>
> > *#1 - *I just see this at the begenning of the report :
>
> > Permutation 0 ()
>
> >    - Split Point 
> > Report > rd-0-index.html>
> >    - Compiler 
> > Metrics > trics-0-index.html>
>
> > - Why I have just one permutation (I use GWT 2.5 and just the
> > -compileReport argument ) ?
> > - The link "Compiler Metric" give me a "page not found", do you know why ?
>
> > *#2* -  When I click on permutation 0, I have this :
>
> > *Split Points*#LocationSize (Bytes)% of total
> > 1...@com.mananaseguro.client.gin.ClientGinjectorImpl$1::get >  ananaseguro/soycReport/compile-report/sp1-0-overallBreakdown.html>
> > 6,7440@com.mananaseguro.client.gin.ClientGinjectorImpl$3::get >  ananaseguro/soycReport/compile-report/sp2-0-overallBreakdown.html>
> > 4,5580@com.mananaseguro.client.gin.ClientGinjectorImpl$5::get >  ananaseguro/soycReport/compile-report/sp3-0-overallBreakdown.html>
> > 291,45218@com.mananaseguro.client.gin.ClientGinjectorImpl$6::get >  ananaseguro/soycReport/compile-report/sp4-0-overallBreakdown.html>
> > 48,6543@com.mananaseguro.client.gin.ClientGinjectorImpl$7::get >  ananaseguro/soycReport/compile-report/sp5-0-overallBreakdown.html>
> > 5,7970@com.mananaseguro.client.gin.ClientGinjectorImpl$10::get >  mananaseguro/soycReport/compile-report/sp6-0-overallBreakdown.html>
> > 34,0622@com.mananaseguro.client.gin.ClientGinjectorImpl$11::get >  mananaseguro/soycReport/compile-report/sp7-0-overallBreakdown.html>
> > 4,5100@com.mananaseguro.client.gin.ClientGinjectorImpl$12::get >  mananaseguro/soycReport/compile-report/sp8-0-overallBreakdown.html>
> > 152,0189@com.mananaseguro.client.gin.ClientGinjectorImpl$13::get >  mananaseguro/soycReport/compile-report/sp9-0-overallBreakdown.html>
>
> > - I do not understand why there is just ClientGinjectorImpl as Location ?
> > (I am using the GWT-Plateform that make heavy use of dependency injection )
> > - I do not understand what $1:get $2:get $3:get ... $13:get are refering
> > for ?
>
> > Thank you 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: What is the minimum Internet speed connexion that the GWT team is considering when testing their GWT application ?

2012-07-03 Thread Dennis Haupt
well, it *has* to be downloaded before it can be executed, there is no
way around it. you can try to split your code into smaller parts
(google: code splitting gwt) so you don't get over much more than your
17 seconds.

Am 03.07.2012 14:03, schrieb regnoult axel:
> Hello,
> 
> I am living in Bolivia and here, I have a connection equals to 200 Kbps
> (it is very poor). :(
> 
> So I was asking if google engineers are considerating a minimum bandwith
> when testing their app ?
> 
> This is important, because when starting my aplication
> (www.mananaseguro.com) , even if I am trying to optimize it, I have for
> the moment 17 seconds to wait to see the first page (and my app is
> minimalist) for*the first time*. Then I think it is due to the cache, it
> loads a lot faster (4 seconds, such as when I open GMAIL here).
> 
> In other terms, does '/Google/' recommend a minimum Internet connexion
> to use a GWT application in production ?
> 
> Could you give me indications or details explaining why the first time
> loading is a lot slower and then why it loads quickly (I think it is
> because informations are stocked in the browser cache, but what kind of
> information exactly ?)
> 
> Thank you for your 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/-/cKPRjyYLdoEJ.
> 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 2.5.0-rc1 and eclipse (3.7 and 4.2) problems

2012-07-03 Thread Juan Pablo Gardella
Hi folks,

I tried with eclipse 3.7 and eclipse 4.2 run inside eclipse with GWT
2.5.0-rc1 and had the same error in both. If I compile with maven the
application run well, but in dev mode fails. I'm using FF13 with the last
plugin.

Could any tell me some tips to use GWT 2.5.0-rc1 inside eclipse?

Thanks in advance.

I paste the stacktrace here:

02:32:43.765 [ERROR] [myapp] Unable to load module entry point class
com.google.gwt.useragent.client.UserAgentAsserter (see associated exception
for details)

java.lang.RuntimeException: Deferred binding failed for
'com.google.gwt.useragent.client.UserAgentAsserter$UserAgentProperty' (did
you forget to inherit a required module?)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
at com.google.gwt.core.shared.GWT.create(GWT.java:57)
at com.google.gwt.core.client.GWT.create(GWT.java:85)
at
com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:405)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous
log entries)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:604)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:464)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.shared.GWT.create(GWT.java:57)
at com.google.gwt.core.client.GWT.create(GWT.java:85)
at
com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:405)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:619)

-- 
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 2.5.0-rc1 and eclipse (3.7 and 4.2) problems

2012-07-03 Thread Juan Pablo Gardella
Well, if I add user.agent property in the module file, in dev mode runs :)





2012/7/4 Juan Pablo Gardella 

> Hi folks,
>
> I tried with eclipse 3.7 and eclipse 4.2 run inside eclipse with GWT
> 2.5.0-rc1 and had the same error in both. If I compile with maven the
> application run well, but in dev mode fails. I'm using FF13 with the last
> plugin.
>
> Could any tell me some tips to use GWT 2.5.0-rc1 inside eclipse?
>
> Thanks in advance.
>
> I paste the stacktrace here:
>
> 02:32:43.765 [ERROR] [myapp] Unable to load module entry point class
> com.google.gwt.useragent.client.UserAgentAsserter (see associated exception
> for details)
>
> java.lang.RuntimeException: Deferred binding failed for
> 'com.google.gwt.useragent.client.UserAgentAsserter$UserAgentProperty' (did
> you forget to inherit a required module?)
> at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
> at com.google.gwt.core.shared.GWT.create(GWT.java:57)
> at com.google.gwt.core.client.GWT.create(GWT.java:85)
> at
> com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:66)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:405)
> at
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
> at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
> at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
> previous log entries)
> at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:604)
> at
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:464)
> at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
> at com.google.gwt.core.shared.GWT.create(GWT.java:57)
> at com.google.gwt.core.client.GWT.create(GWT.java:85)
> at
> com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAsserter.java:66)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:405)
> at
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
> at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
> at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
> at java.lang.Thread.run(Thread.java:619)
>
>
>

-- 
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: MenuItemSeparator in uibinder produces xml error

2012-07-03 Thread tanteanni
right, but on all "run as" and some other things eclipse asks "proceed with 
launch?" - this is a good thing. but now i am forced to switch this off 
because all other bugs are hidden behind this little one :-|

On Tuesday, 3 July 2012 17:57:25 UTC+2, Thomas Broyer wrote:
>
>
>
> On Tuesday, July 3, 2012 4:27:31 PM UTC+2, tanteanni wrote:
>>
>> and yes i tried deleting the marker after disabling xml validation vor 
>> the project - but the marker always comes back
>>
>
> But it's just a marker, it doesn't affect building or running the project, 
> right?
>

-- 
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/-/VXnzfKs1-HAJ.
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.