Re: Modifying default GWT CSS styles with UiBinder and ClientBundle

2012-02-06 Thread Jens
In your css file you have to mark external css classes with @external.

See: 
http://code.google.com/intl/en/webtoolkit/doc/latest/DevGuideClientBundle.html#External_and_legacy_scopes

-- J.

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

2012-02-06 Thread l.denardo
You can start from this article in documentation:
http://code.google.com/webtoolkit/articles/dynamic_host_page.html

It's quite simple to convert it from the basic servlet/jsp example to
anything you're using on the server side.

Regards
Lorenzo

On Feb 4, 12:19 pm, nofear adnba...@gmail.com wrote:
 Hello ,
 i'm currently developing an exam project but i'm kind of started to
 GWT. So here's my question :

 I have a log in page which asks username and password to log in for
 students or teachers. After confirmation the informations of students
 or teachers, i would like to redirect user to his proper page (i mean
 change the log-in page to his proper page) , basicly i didn't
 understand how can i do that after clicking the CONFIRM button.

 Thanks for all 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: changing pages in GWT

2012-02-06 Thread Philippe Lhoste

On 04/02/2012 12:19, nofear wrote:

I have a log in page which asks username and password to log in for
students or teachers. After confirmation the informations of students
or teachers, i would like to redirect user to his proper page (i mean
change the log-in page to his proper page) , basicly i didn't
understand how can i do that after clicking the CONFIRM button.


I am myself a beginner, although I play with GWT for some months already (doing proof of 
concept, prototypes, etc., exploring the capabilities). So I hope I won't be misleading.


My understanding is that in GWT, you don't really have the concept of pages like you do 
in classical Web sites / applications.
Everything happens at the same URL, in the same page, mostly empty: it is filled by 
JavaScript, using Ajax to fetch the data and which components to display.


So, once the login is validated, you have to fill this page with the main UI: 
something like
 RootPanel.get().clear();
 RootPanel.get().add(new MainUI());
(or with RootLayoutPanel, of course).

An alternative is to use the MVP pattern (with a library like GWT-Platform, MVP4G, the 
official Google support, or similar) which manages the concept of pages for you.


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



Are handlers kept registered on PopupPanel when we call hide() on it ?

2012-02-06 Thread Boris Lenzinger
Hi,

I was wondering how this is working. I made some code where I registered
some event handlers on a PopupPanel so I can keep the data up to date.
But when I call hide on this popup panel and recreate a new one, then
handlers are registered 2 times and so events are handler 2 times.

I was expecting another behavior : when the popup panel is hidden, I
thought it was some kind of destroy. So I think that my strategy to rebuild
a new PopupPanel is not good. Can you explain me how this should be
designed please ?

Many thanks in advance.

Boris

-- 
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: Are handlers kept registered on PopupPanel when we call hide() on it ?

2012-02-06 Thread Thomas Broyer
It looks like the issue is not really the PopupPanel but rather the 
widget(s) you add inside: if you reuse the same widget (either in a single 
PopupPanel that you hide/show, or within several PopupPanel-s during the 
lifetime of the application), then handlers won't be unregistered for you, 
just like for any other widget (the same goes for the CloseHandler attached 
to a PopupPanel: PopupPanel is a widget like any other –except you don't 
add it to a parent widget–, so handlers aren't unregistered automatically). 
If on the other hand you re-create everything from scratch every time, then 
you'll obviously have to register your handlers on the new instances.

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



Submitting struts 2 form from GWT

2012-02-06 Thread Arun M
Hi All

I need to submit a struts 2 form from a GWT action. The requirement is
special because i want the page to be submitted as a synchronous
operation and do not want the flow back to GWT calling class.


JSP1

GWT -  form.submit - JSP 2

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



ff10 gwt dev plugin x86

2012-02-06 Thread rfa
thank you, but it is possible to have an x86 version

-- 
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: To any Editors Gurus: I could use some ListEditor use help for the GWT demo I've made...

2012-02-06 Thread Brandon Donnelson
I finished a working ListEditor using an Owned Collection on AppEngine. I 
also switched to JPA backing. 

Something to note. Removing an item form an owned collection has to be done 
independently of a persist. I tried to do it on there server side but I get 
a transient error. And you can't use the object itself because its already 
been touched by a context and in edit mode.  

http://code.google.com/p/gwt-examples/source/browse/trunk_2012/DemoGwtEditor/src/com/gonevertical/client/views/peopleedit/editor/todos/TodoListEditor.java#36
 - *ListEditor*

http://code.google.com/p/gwt-examples/source/browse/trunk_2012/DemoGwtEditor/src/com/gonevertical/client/views/peopleedit/editor/todos/TodoListEditor.java#98
 - *ListEditor AddItem*

http://code.google.com/p/gwt-examples/source/browse/trunk_2012/DemoGwtEditor/src/com/gonevertical/client/views/peopleedit/editor/todos/TodoListEditor.java#116
 -*ListEditor RemoveItem*

http://code.google.com/p/gwt-examples/source/browse/trunk_2012/DemoGwtEditor/src/com/gonevertical/server/data/PeopleData.java#83
 - *Server Side List*
*
*

-- 
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/-/2vTapbb8ZIAJ.
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 Caching of files

2012-02-06 Thread EMan
I am having issues relating to GWT caching of files. if I roll out a new 
version of my application (via a war file deployed to my jetty server).  I 
am able to bring up chrome and everything looks ok.  But if I need to 
rollback the version (redeploy an older war file), then I get all sorts of 
serialization errors.

I am assuming this is because the new files in my browser cache take 
precedence over my reverted war files files.  Is there a way to avoid this? 
 Has anyone encountered this problem?

Thanks.

-- 
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/-/xOOrsbkHDxkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT RPC Problem

2012-02-06 Thread paramesh reddy
Hi,

  please can any one slove my problem.how I can make more than 6 RPC call
at a time.some peoples told me it is depending on browser,but I tried in IE
,Chorme and firefox every where same result.

On Sat, Jan 28, 2012 at 12:59 PM, paramesh reddy permi.re...@gmail.comwrote:

 Hi,

   I tried in IE and Chrome Browser ,both have same.can you tell me how to
 avoid this problem?


 On Thu, Jan 26, 2012 at 8:28 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

 This is a limitation superimposed by browsers and it varies depending on
 which browser you are dealing with. My suggestion if you have a number of
 requests, each taking an X amount of time is to look into a Server Push
 approach.

 Regards,

 Alfredo

 On Wed, Jan 25, 2012 at 1:54 PM, permi permi.re...@gmail.com wrote:

 Hi,

  I am able to call max 6 RPC calls at a time .how I can increase the
 calls.

 Ex: I have a 10 methods ,each method is take 5 min time to complete
 the task.so when I start to call all methods at a time I can able to
 call max 6 methods, reaming 4 calls in queue i think,after completion
 of earlier call reaming 4 calls going to call.

 help me ,how I can call 10 methods at a time and get the response.

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




 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton


  --
 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: GWT RPC Problem

2012-02-06 Thread Alan Chaney

On 2/6/2012 8:45 AM, paramesh reddy wrote:

Hi,

  please can any one slove my problem.how I can make more than 6 RPC 
call at a time.some peoples told me it is depending on browser,but I 
tried in IE ,Chorme and firefox every where same result.


Well, they were right - the browser controls the number of connections. 
In firefox, for example:


about:config
network.http.max-persistent-connections-per-server;6

The *user* can change this. You, the programmer, can't. Unless you are 
working on something used purely internally within an organization and 
your IT dept. has complete control

over the browser installations (very unlikely) then you must:

A. Change your app so it doesn't need to make so many requests

or

B. Ask your users to change their configuration.

The only sensible answer is A.

Regards

Alan





On Sat, Jan 28, 2012 at 12:59 PM, paramesh reddy 
permi.re...@gmail.com mailto:permi.re...@gmail.com wrote:


Hi,
  I tried in IE and Chrome Browser ,both have same.can you tell me
how to avoid this problem?


On Thu, Jan 26, 2012 at 8:28 PM, Alfredo Quiroga-Villamil
laww...@gmail.com mailto:laww...@gmail.com wrote:

This is a limitation superimposed by browsers and it varies
depending on which browser you are dealing with. My suggestion
if you have a number of requests, each taking an X amount of
time is to look into a Server Push approach.

Regards,

Alfredo

On Wed, Jan 25, 2012 at 1:54 PM, permi permi.re...@gmail.com
mailto:permi.re...@gmail.com wrote:

Hi,

 I am able to call max 6 RPC calls at a time .how I can
increase the
calls.

Ex: I have a 10 methods ,each method is take 5 min time to
complete
the task.so when I start to call all methods at a time I
can able to
call max 6 methods, reaming 4 calls in queue i think,after
completion
of earlier call reaming 4 calls going to call.

help me ,how I can call 10 methods at a time and get the
response.

--
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
mailto:google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com
mailto:google-web-toolkit%2bunsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Alfredo Quiroga-Villamil


AOL/Yahoo/Gmail/MSN IM:  lawwton


-- 
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
mailto:google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com
mailto:google-web-toolkit%2bunsubscr...@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: GWT RPC Problem

2012-02-06 Thread Jens
Well I think Google search is your friend. A quick search gave 
me http://support.microsoft.com/kb/282402 which shows you how to increase 
the limit in IE. Don't know if its possible in other browsers.

In general I would say you should write your app in a way that it does not 
depend on a lot of parallel ajax connections. If you have a lot of very 
long running tasks on the server you should think about executing these 
tasks in threads and let the browser asks for their status periodically 
(maybe every 10 to 20 seconds). That way the RPC request will return 
immediately and the browser does not run out of parallel connections. 
You can also batch requests, which means instead of calling 10 methods 
directly just call one method which tells the server to do 10 things at 
once.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/x30Hc-uM49cJ.
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: FF10, here we go again

2012-02-06 Thread Filipe Sousa
...and for fedora 16 i686 (no tested)
http://dl.dropbox.com/u/5176435/gwt-dev-plugin-i686.xpi

-- 
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/-/WLLZpxpCEXsJ.
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: ff10 gwt dev plugin x86

2012-02-06 Thread Filipe Sousa
and for fedora 16 i686 (no tested)
http://dl.dropbox.com/u/5176435/gwt-dev-plugin-i686.xpi

-- 
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/-/5cejdHWtq3cJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT RPC Problem

2012-02-06 Thread JoseM
You can use RequestFactory append to do a batch request  
http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_4#Improved_request_batching

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



RequestFactory complexity (Frozen Beans et. all)

2012-02-06 Thread dparish
I really want to like RequestFactory, really I do, but I'm astounded
by the complexity. I finally got my head around the Locator, the
proxies, etc and now I'm getting Frozen beans and edited by another
RequestContext errors.

I took a look at: http://fascynacja.wordpress.com/tag/autobean-has-been-frozen/
and this helped alot, but I'm astounded that my code has to trap for
all this stuff.

1. Does anyone know if the GWT is going to change so that this state
doesn't have to be managed?
2. Anyone have any helper classes that can trap for this stuff?
3. Any best practices?

All I want to do is:
1. Edit a previously loaded entity
2. Create a new entity and save it

I must be making this harder than it actually is or else very few
folks use this successfully.

-- 
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 Caching of files

2012-02-06 Thread Thomas Broyer
Your browser asks for the no cache.is with an If-Modified-Since header, so once 
you get a fresher file you cannot get back an older one. You should touch 
your no cache.js file so it has a later modification date.

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



Trouble running the GWT Maven compile goal

2012-02-06 Thread laredotornado
Hi,

I'm using GWT 2.4 and the Maven-GWT plugin.  Below is my
configuration ...

!-- GWT Maven Plugin --
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdgwt-maven-plugin/artifactId
version${gwtVersion}/version
executions
execution
idclean-compile/id
phasecompile/phase
goals
goalclean/goal
goalcompile/goal
/goals
/execution
/executions
!-- Plugin configuration. There are many 
available options, see
gwt-maven-plugin
documentation at codehaus.org --
configuration
runTargetindex.html/runTarget

hostedWebapp${webappDirectory}/hostedWebapp

i18nMessagesBundlecom.myco.clearing.product.client.Messages/
i18nMessagesBundle
/configuration
/plugin

When I include this dependency

dependency
groupIdorg.openqa.selenium.server/groupId
artifactIdselenium-server/artifactId
version2.0b3/version
scopesystem/scope
systemPath${project.basedir}/lib/selenium-server-
standalone-2.0b3.jar/systemPath
/dependency

I'm unable to run the GWT compile command (output is below).  Is there
a way I can configure the plugin above to ignore the selenium-server
plugin I've included?

Thanks, - Dave



PS - The horrendous output when the GWT Maven compile command is
run ...

[INFO] --- gwt-maven-plugin:2.4.0:compile (clean-compile) @ myco-
productplus-web ---
[INFO] auto discovered modules [com.myco.clearing.common.CommonModule,
com.myco.clearing.product.ProductPlus]
[INFO] com.myco.clearing.common.CommonModule has no EntryPoint -
compilation skipped
[INFO] Compiling module com.myco.clearing.product.ProductPlus
[INFO] [ERROR] Unexpected internal compiler error
[INFO] java.lang.NoSuchFieldError:
reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
[INFO]  at
com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:
411)
[INFO]  at com.google.gwt.dev.javac.JdtCompiler
$CompilerImpl.init(JdtCompiler.java:228)
[INFO]  at
com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:700)
[INFO]  at com.google.gwt.dev.javac.CompilationStateBuilder
$CompileMoreLater.compile(CompilationStateBuilder.java:235)
[INFO]  at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:
447)
[INFO]  at
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:
370)
[INFO]  at
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
360)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:
252)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:
233)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:
145)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:232)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:198)
[INFO]  at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
[INFO]  at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
[INFO]  at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
82)

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



Hibernate prematurely flushing within RequestFactoryServlet while building object

2012-02-06 Thread Eric Andresen
I have a domain object that has references to several other domain objects, 
and also uses Hibernate and hibernate validation annotations.

I'm running into an issue where the order of the RF Servlet's 
loadDomainObject and setProperty calls is causing Hibernate to flush the 
entity before it is fully constructed, causing validation errors.

The scenario I am seeing is where you set a couple properties and also 
change a couple of relationships on an object and submit it.

On the server side I see:
  loadDomainObject calls for all of the original object and related objects.
  setProperty calls for some of the changed fields
  setProperty calls for one of the changed relationships
  loadDomainObject call for the changed relationship's new selected object.

That last loadDomainObject call is triggering Hibernate to flush the 
primary object, because it is doing a hibernate query and our environment 
doesn't support nested transactions.  

Does anyone know if there is a way to force the servlet to load all of the 
objects it needs, prior to dirtying any of them?   
Based on 
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryMovingParts#Flow 
it 
looks like that is what is supposed to happen, but I am seeing the newly 
selected objects being queried after some of the setProperty calls are 
already made.

Alternately, is there a way to get a list of the .with(...) properties at 
the time of the find() call?  If I had that, I could initialize the object 
and detach it from the session and avoid this problem.

Thanks,
Eric


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



RequestFactory complexity (Frozen Beans et. all)

2012-02-06 Thread Thomas Broyer
 I took a look at: 
 http://fascynacja.wordpress.com/tag/autobean-has-been-frozen/and this helped 
 alot, but I'm astounded that my code has to trap for all this stuff.

This is a great post!

You don't have many things to do if you just follow the flow of operations.

 1. Does anyone know if the GWT is going to change so that this state doesn't 
 have to be managed?

Not going to change, no, that's by design, with pretty good reasons backing 
those choices (and they quickly become obvious if you think more about it)

 2. Anyone have any helper classes that can trap for this stuff?

No need for anything actually. 

 3. Any best practices?

Never pass a proxy as argument to a service method if its Id is enough.
Use relationships between proxies sparingly.

 All I want to do is: 1. Edit a previously loaded entity 2. Create a new 
 entity and save it
 
 I must be making this harder than it actually is or else very few folks use 
 this successfully.

You must be complicating things, as even with rather complex workflows, we're 
been successful with RF (though we had to fix a bunch of bugs; have a look at 
the ReviewPending issues in the tracker)

-- 
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/-/mgrhd9npwZsJ.
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 with maps tutorial

2012-02-06 Thread Manolis Stylian
Hello everybody, i am looking for a step by step tutorial for gwt with
maps. I searched in the net but i found nothing
for me. Thank you!

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



Question GWT-APACHE-SOAP SERVER debug

2012-02-06 Thread Javier Fileiv
Hi folks! The fact is this... I have my own page made it in GWT , in
another machine is running an APACHE. When the client (GWT) want to
exchange some static data (images, etc) apache server is the
responsible for do that. If some (SOAP) CGI request is made, The
module FCGI-BIN in apache will catch that and re direct this message
to a SOAP SERVER.

If I want to debug my GWT page, I would need to do the same but
instead of APACHE using the GWT dev. server. Is there any way to do
this? Redirect to a local FCGI-BIN? How can I do this?

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: FF10, here we go again

2012-02-06 Thread weihnachtsmann
Could you provide a shell script for plugin building? Your plugin
don't work 4me (Linux Mint 12).

Thx

On Feb 5, 1:24 pm, Filipe Sousa nat...@gmail.com wrote:
 I build it for Fedora 16 x86_64 
 (only).http://dl.dropbox.com/u/5176435/gwt-dev-plugin.xpi

-- 
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: To any Editors Gurus: I could use some ListEditor use help for the GWT demo I've made...

2012-02-06 Thread Alex opn
Thanks for sharing all this : )

Examples for Editors are hard to find and yours is great!

-- 
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/-/e9ojFTQBbFUJ.
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: parallel RequestFactory calls within an Editor

2012-02-06 Thread bloo
Thanks, Thomas.  I came back here just to report that.  I had designed
my services to take Entities (and EntityProxies on the GWT side) as
arguments to filter what the Selector will return as its list of
choices out of habit of design.  I should have considered passing the
ID from the start given that these arguments are serialized and passed
over the wire.  What threw me off was that the argument used for the
Selector was a property of my root Editor's main EntityProxy, not the
root EntityProxy itself, so I was initially at a loss when the error
said I was trying to edit an EntityProxy already being edited.  Also,
I wasn't editing the arguments, just using them as parameters - but
GWT RF of course doesn't know that.

Passing the ID as you suggested cleared this up.  Thanks for your feed
back.  Your posterous posts have been a lifesaver, btw.

-B

On Feb 5, 11:24 am, Thomas Broyer t.bro...@gmail.com wrote:
 Er, well, don't pass the EntityProxy as an argument to your method in the
 oracle; pass its ID instead.

-- 
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: FF10, here we go again

2012-02-06 Thread Filipe Sousa
After applying the patch under code review I did
$ yum install xulrunner-devel.x86_64
$ make BROWSER=ff100 ARCH=x86_64 
DEFAULT_FIREFOX_LIB=/usr/lib64/xulrunner-devel-2 
GECKO_LIBS=/usr/lib64/xulrunner-devel-2/lib

-- 
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/-/s5oRp082jRYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



get IP address

2012-02-06 Thread IHateSoda
Hello,

I'm trying to get my IP address (192.168..) but I always get the
localhost IP (127.0.0.1).

I use a Servlet.

String result  = request.getRemoteAddr();

I need help plz
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: To any Editors Gurus: I could use some ListEditor use help for the GWT demo I've made...

2012-02-06 Thread Brandon Donnelson
Thanks :)

-- 
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/-/9jcmiQempkkJ.
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 with maps tutorial

2012-02-06 Thread Brandon Donnelson
Google Maps v3?

if so: (work in progress, but is working)
http://gonevertical-apis.appspot.com/ 
http://c.gwt-examples.com/api/google-maps-v3 

Brandon

-- 
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/-/OXtQo-bWUgIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: get IP address

2012-02-06 Thread Javo Rosales
You could change the hosts archive,

It is in C:\Windows\System32\drivers\etc and change localhost 127.0.01

localhost 192.168..

2012/2/6 IHateSoda mguillaum...@gmail.com

 Hello,

 I'm trying to get my IP address (192.168..) but I always get the
 localhost IP (127.0.0.1).

 I use a Servlet.

 String result  = request.getRemoteAddr();

 I need help plz
 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.



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



Hibernate prematurely flushing within RequestFactoryServlet while building object

2012-02-06 Thread Thomas Broyer
Can you trace which methods from the SimpleRequestProcessor or Resolver are 
calling the loads? that'd greatly help on understanding the problem.

-- 
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/-/MrkUK1q2QfgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: get IP address

2012-02-06 Thread Hilco Wijbenga
On 6 February 2012 14:25, IHateSoda mguillaum...@gmail.com wrote:
 I'm trying to get my IP address (192.168..) but I always get the
 localhost IP (127.0.0.1).

You are presumably running your appserver (Tomcat, Jetty, ...)  as
localhost. If you want the servlet to return something else then do
not run as localhost.

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



Port number parameter disappears from eclipse run configuration when using the -noserver option

2012-02-06 Thread Alan Chaney

Hi

I needed to use Tomcat instead of Jetty, so I did the following:

1. Converted the project to 'faceted' and added the Dynamic Web App 
facet to the project.

2. Added my library projects to the Deployment Assembly list
3. Started tomcat using the J2EE Server tab just like any other web project
4. Started GWT with the following eclipse run configuration

-remoteUI ${gwt_remote_ui_server_port}:${unique_id} -noserver -port 
8080 -startupUrl context/project.html -war path-to\context\war 
-logLevel INFO -port 8080 -codeServerPort 9997 module-file


where context is the web app context (in other words, the name of the 
war), project is the name of the project and module-file is the gwt 
module.


And it all worked! In fact, my to my surprise the debug and hosted mode 
worked great and its possible to start tomcat in either debug or 
non-debug mode to debug the server-side code if required. Joy! But 
sadly, there is one problem - each time I restart gwt I have to put 
-port 8080 back into the run configuration, because with annoying 
regularity, as soon as there is -noserver in the run configuration GPE 
removes the port number when I restart.


I think this is a bug. If anyone has any comments, please let me know, 
otherwise I'll file a bug report.


Eclipse Helios/  Google Plugin for Eclipse 3.6
2.5.1.v201201120043-rel-r36 /Win 7 x64


Regards

Akab













http://127.0.0.1:8080/context/project.html?gwt.codesvr=127.0.0.1:


--
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: Modifying default GWT CSS styles with UiBinder and ClientBundle

2012-02-06 Thread GCSimon
Thanks Jens.  I didn't pick up on the subtle reference to @external.

-- 
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/-/aEUILpB-Du4J.
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: Port number parameter disappears from eclipse run configuration when using the -noserver option

2012-02-06 Thread Alan Chaney
OK, fixed...

What you need to do is set the -startupUrl 
http://127.0.0.1:8080/context/project.html

In other words, the fully qualified hostname and port, and then it
works just fine.

Sorry about that.

Alan


On Feb 6, 4:24 pm, Alan Chaney a...@mechnicality.com wrote:
 Hi

 I needed to use Tomcat instead of Jetty, so I did the following:

 1. Converted the project to 'faceted' and added the Dynamic Web App
 facet to the project.
 2. Added my library projects to the Deployment Assembly list
 3. Started tomcat using the J2EE Server tab just like any other web project
 4. Started GWT with the following eclipse run configuration

 -remoteUI ${gwt_remote_ui_server_port}:${unique_id} -noserver -port
 8080 -startupUrl context/project.html -war path-to\context\war
 -logLevel INFO -port 8080 -codeServerPort 9997 module-file

 where context is the web app context (in other words, the name of the
 war), project is the name of the project and module-file is the gwt
 module.

 And it all worked! In fact, my to my surprise the debug and hosted mode
 worked great and its possible to start tomcat in either debug or
 non-debug mode to debug the server-side code if required. Joy! But
 sadly, there is one problem - each time I restart gwt I have to put
 -port 8080 back into the run configuration, because with annoying
 regularity, as soon as there is -noserver in the run configuration GPE
 removes the port number when I restart.

 I think this is a bug. If anyone has any comments, please let me know,
 otherwise I'll file a bug report.

 Eclipse Helios/  Google Plugin for Eclipse 3.6
 2.5.1.v201201120043-rel-r36 /Win 7 x64

 Regards

 Akab

 http://127.0.0.1:8080/context/project.html?gwt.codesvr=127.0.0.1:

-- 
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: MVP framework

2012-02-06 Thread dparish
I recently finished an example app with MVP, Activities and Places, Gin and 
Guice, Request Factory and a few other GWT components.  Feel free to grab 
the source and see if it gets you started.

http://code.google.com/p/gwt-best-practices-soup/ 

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



unexpected padding under canvas element

2012-02-06 Thread Rob
Hi,

The following code creates a Canvas, and places it in a SimplePanel,
with some borders to highlight spacing issues.  For some reason there
are a few pixels of margin/padding under the canvas.  If I go into
firebug or Chrome's inspector, the paddings and margins are all zero,
and if I copy the HTML from there to a static file, the extra space
doesn't appear in the static file.  This seems like a bug, but I'm
dizzy from looking at it too long... anyone else seen this?

I see it in Firefox 9 (compiled), Safari (compiled) and Chrome 16
(compiled and hosted mode), all of these on Mac OS X 10.7.  No other
systems or browsers tested.


package comclient;

import com.google.gwt.canvas.client.Canvas;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.Style;
import com.google.gwt.dom.client.Style.BorderStyle;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.SimplePanel;

public class MyModule implements EntryPoint {

public void onModuleLoad() {
// Create a simple panel with red border.
SimplePanel p = new SimplePanel();
Style s = p.getElement().getStyle();
s.setBorderColor(red);
s.setBorderWidth(1.0, Style.Unit.PX);
s.setBorderStyle(BorderStyle.SOLID);

// Create canvas and set it's size.  Why does margin show
up under it?
Canvas c = Canvas.createIfSupported();
c.getElement().getStyle().setBackgroundColor(blue);
s = c.getElement().getStyle();
s.setBorderColor(orange);
s.setBorderWidth(1.0, Style.Unit.PX);
s.setBorderStyle(BorderStyle.SOLID);
int h = 18;
int w = 15;
c.setPixelSize(w, h);
c.setCoordinateSpaceHeight(h);
c.setCoordinateSpaceWidth(w);
p.add(c);

RootPanel.get().add(p);
}
}

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



How to check ip address in GWT?

2012-02-06 Thread Edwardxiong
My website is a pure GWT site. It need members to login with their
account and password. To prevent multiple users login with one same
account, I need to do some kind of ip address check. But I am not sure
how to do that in GWT. Can someone help me with that? 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 - Exception while dispatching incoming RPC call

2012-02-06 Thread ankit
Hi, you  are getting number format exception that means somewhere your
array of string is feeding up with primitive type instead of string.
if you give me the piece of code, then it will help us better to
understand. you can instead mail me to ankitsaxena0...@gmail.com

On Jan 24, 9:14 pm, avi avinash.madire...@gmail.com wrote:
 Can any one suggest me to reasone/sollution for the error that got
 while running my GWT project

 Starting Jetty on port 
    [WARN] Exception while dispatching incoming RPC call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract com.noaa.wind.client.WindSpeed[]
 com.noaa.wind.client.WindSpeedService.getSpeeds(java.lang.String[])'
 threw an unexpected exception: java.lang.NumberFormatException: For
 input string: Speed
         at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
 385)
         at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 588)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
 208)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
 248)
         at
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
 62)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 487)
         at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
 362)
         at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
 216)
         at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
 181)
         at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
 729)
         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
 405)
         at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
         at
 org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
 49)
         at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
         at org.mortbay.jetty.Server.handle(Server.java:324)
         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 505)
         at org.mortbay.jetty.HttpConnection
 $RequestHandler.content(HttpConnection.java:843)
         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
         at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
 395)
         at org.mortbay.thread.QueuedThreadPool
 $PoolThread.run(QueuedThreadPool.java:488)
 Caused by: java.lang.NumberFormatException: For input string: Speed
         at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:
 1242)
         at java.lang.Double.valueOf(Double.java:492)
         at
 com.noaa.wind.server.WindSpeedServiceImpl.ReadFile(WindSpeedServiceImpl.java:
 88)
         at
 com.noaa.wind.server.WindSpeedServiceImpl.getSpeeds(WindSpeedServiceImpl.java:
 42)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 57)
         at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
 43)
         at java.lang.reflect.Method.invoke(Method.java:616)
         at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 569)
         ... 22 more
 [ERROR] 500 - POST /windreport/windSpeed (127.0.0.1) 57 bytes
    Request headers
       Host: 127.0.0.1:
       Connection: keep-alive
       Accept: */*
       User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2
 (KHTML, like Gecko) Ubuntu/11.10 Chromium/15.0.874.106 Chrome/
 15.0.874.106 Safari/535.2
       Accept-Encoding: gzip,deflate,sdch
       Accept-Language: en-US,en;q=0.8
       Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
       Content-Length: 168
       Origin:http://127.0.0.1:
       X-GWT-Module-Base:http://127.0.0.1:/windreport/
       X-GWT-Permutation: HostedMode
       Content-Type: text/x-gwt-rpc; charset=UTF-8
       Referer:http://127.0.0.1:/WindReport.html?gwt.codesvr=127.0.0.1:9997
    Response headers
       Content-Type: text/plain

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



CalendarUtil has no hour, minute, seconds options

2012-02-06 Thread tong123123
as gwt has no Calendar class, how to do something like current time
minus 5 minutes, current time minus 5 hours?
I see the CalendarUtil class but it has just
addDaysToDate(java.util.Date date, int days)  and
addMonthsToDate(java.util.Date date, int months) method?

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



Modify DateBox behaviour

2012-02-06 Thread Appien
Hi folks,

Currently I'm struggling the DateBox widget of GWT. It's a nice widget
however I can't find a way to modify its default behaviour. When I
know enter e.g. '12/2/12' it automaticly get parsed and changed the
input to '12/2/0012'. However I want to stop the DateBox from
automatically changing the input and just mark it with the red css
styling if it doesn't match the regular expression dd/mm/.

Is there a way to stop DateBox from automaticallychanging the input?
I've already found the DateBox.DefaultFormat object and found
reference to handler, but could not find the proper way to implement
it.

Thanks and regards!

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



Re: How to check ip address in GWT?

2012-02-06 Thread 3xM
You might want to use .jsp page as your host page. Something like this:
.
.
head
..
  script type=text/javascript language=javascript
%
String ip_address = request.getRemoteAddr();
%
var _ipAddress = %= \ + ip_address + \ %;
/script
..
/head
..

then when you need someones ip, you can call this:

public native String getIP() /*-{
return $wnd._ipAddress;
}-*/;

-- 
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/-/mI_03rwnKicJ.
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: CalendarUtil has no hour, minute, seconds options

2012-02-06 Thread Alexandre Ardhuin
Hi,

You can do :

Date now = new Date();
Date date5minutesAgo = new Date(now.getTime() -
TimeUnit.MINUTES.toMillis(5));
Date date5hoursAgo = new Date(now.getTime() - TimeUnit.HOURS.toMillis(5));

Alexandre

2012/2/7 tong123123 tong123...@gmail.com

 as gwt has no Calendar class, how to do something like current time
 minus 5 minutes, current time minus 5 hours?
 I see the CalendarUtil class but it has just
 addDaysToDate(java.util.Date date, int days)  and
 addMonthsToDate(java.util.Date date, int months) method?

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



[gwt-contrib] Re: Custom Field Serializer for EnumMap (issue1634804)

2012-02-06 Thread jat

There appears to be some problem in how this was created -- the
side-by-side diffs don't work, and Publish+Mail Comments doesn't work.

Basically:
- you need tests
- copyright and code style should match GWT standards
- the limitation on non-empty maps seems too limiting.  The GWT
emulation can reach a full set of enum values via keySet, so that could
be used on the client side to avoid this limitation
- the server doesn't appear to read the exemplar value from the stream

http://gwt-code-reviews.appspot.com/1634804/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Clean rebuild of the plugin. (issue1638803)

2012-02-06 Thread acleung

Reviewers: conroy,

Description:
Clean rebuild of the plugin.
(I noticed some of the binary has DebugLevel was still set to spam)


Please review this at http://gwt-code-reviews.appspot.com/1638803/

Affected files:
  M plugins/xpcom/Makefile


Index: plugins/xpcom/Makefile
===
--- plugins/xpcom/Makefile  (revision 10859)
+++ plugins/xpcom/Makefile  (working copy)
@@ -200,7 +200,7 @@
 XPIDL_TYPELIBS= $(GECKO_SDK)/bin/typelib.py
 else
 XPIDL = $(GECKO_SDK)/$(GECKO_PLATFORM)/bin/xpidl
-XPIDL_HEADER  = $(GECKO_SDK)/$(GECKO_PLATFORM)/bin/xpidl -m header
+XPIDL_HEADER  = $(GECKO_SDK)/$(GECKO_PLATFORM)/bin/xpidl -m header
 XPIDL_TYPELIBS= $(GECKO_SDK)/$(GECKO_PLATFORM)/bin/xpidl -m typelib
 endif



--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Clean rebuild of the plugin. (issue1638803)

2012-02-06 Thread conroy

LGTM

http://gwt-code-reviews.appspot.com/1638803/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors