Re: gwt-unitCache

2013-09-24 Thread Michael Prentice
Those files are caches for making the compilation faster. You can remove 
them any time you would like. Disabling the generation of these files will 
slow down your compilation (especially in DevMode afaik).

On Tuesday, September 24, 2013 9:35:11 AM UTC-4, al1975e wrote:
>
> In the folder \ build \ gwt-unitCache after compiling accumulate files 
> like gwt-unitCache . Because of this compilation is a long one. How to 
> make, what would these files are not created?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How exact does an _escaped_fragment_ URL's content have to match the viewable #! content for AJAX crawling?

2013-09-24 Thread Jens
As long as the content and links are available everything is fine (and 
don't forget the canonical link in the html head). You don't need to style 
your page for the crawler.

Compare the following google groups links:

https://groups.google.com/forum/#!topic/google-web-toolkit/ED3ZCjg4-OI
https://groups.google.com/forum/?_escaped_fragment_=topic/google-web-toolkit/ED3ZCjg4-OI

https://groups.google.com/d/msg/google-web-toolkit/ED3ZCjg4-OI/Qxcyxsyf2u8J
https://groups.google.com/forum/?_escaped_fragment_=msg/google-web-toolkit/ED3ZCjg4-OI/Qxcyxsyf2u8J


-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


How exact does an _escaped_fragment_ URL's content have to match the viewable #! content for AJAX crawling?

2013-09-24 Thread Clive Holloway
I'm wrestling with a complicated AJAX based site, trying to make 
_escaped_fragment_ URLs look exactly like their #!/path equivalents in a 
custom framework.

I've managed to get it to pretty much work using PhantomJS, however the 
Phantom generated page does not display in the browser exactly the same as 
the shebang URL.

I've diffed the content, and can only see minor differences in the actual 
page content - a couple of missing classes, some missing font loading, an 
embedded google maps object not loaded etc, but no differences at all 
between the actual content in the page source.

What I'm most concerned about though is that an overlay in the page is not 
displaying in the Phantom generated content, even though I can see the 
content in the page source.

Is this something I should worry about? Or is it sufficient that the 
content accurately represents the displayed page?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Problemas com Hibernate + GWT RPC

2013-09-24 Thread Murilo Misurini
Pessoal bom dia,

Estou com problemas na execução do hibernate, o que acontece é o seguinte:

Possuo um projeto que realiza a leitura de dados em um banco utilizando 
hibernate e gera um arquivo xml com estes dados. Possuo outro projeto que 
realiza a leitura desse arquivo xml e insere os dados em outro banco 
utilizando também o hibernate. Um terceiro projeto utiliza o GWT RPC para 
comunicação cliente/servidor e preciso que no lado servidor busque dados 
atraves do numero de ticket informado pelo cliente.
No momento que implemento o hibernate no servidor para realizar essa busca 
no banco ele gera o seguinte erro:

Set 24, 2013 11:39:43 AM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: Error for /sistemabase/rpcsistemabase
java.lang.NoClassDefFoundError: 
br/com/linkc/hibernate/services/HibernateServices
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at 
org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:428)
at 
org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at 
com.google.appengine.api.socket.dev.DevSocketFilter.doFilter(DevSocketFilter.java:74)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.appengine.tools.development.ResponseRewriterFilter.doFilter(ResponseRewriterFilter.java:123)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:34)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:63)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:125)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectRequest(DevAppServerModulesFilter.java:368)
at 
com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectModuleRequest(DevAppServerModulesFilter.java:351)
at 
com.google.appengine.tools.development.DevAppServerModulesFilter.doFilter(DevAppServerModulesFilter.java:116)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at 
com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:97)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at 
com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:485)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.ClassNotFoundException: 
br.com.linkc.hibernate.services.HibernateServices
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at 
com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:215)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 42 more

*Hibernate Lado Servidor:*

@SuppressWarnings("deprecation")
@Override
p

Re: Window.addWindowClosingHandler

2013-09-24 Thread David
The question that needs to be asked: what are you trying to do in this
WindowClosingHandler ?

I'm pretty sure it always gets invoked. But if you try to do async
operations like an RPC call then you have no guarantee
that it will work because the browser might quit before the RPC is ever
sent and it will certainly not wait for the response.

David


On Tue, Sep 24, 2013 at 4:37 PM, Bhumika Thaker wrote:

>  It works perfect for mine, But also you can try use CloseHandler like.
>
> Window.addCloseHandler(new CloseHandler() {
> }
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Weird Chrome-ness

2013-09-24 Thread Evan Ruff
Hey guys,

Wondering if anyone else has encountered some weirdness with the new Chrome 
update. Since the update, my GWT app fails to start in the usual way. If I 
access the application in Incognito Mode, it works as expected; otherwise, 
I'm only given a blank page. There have been no changes to the application 
at all. I thought I had messed something up, but now if I access Google+, 
it ALSO will not run unless I'm in incognito mode.

Has anyone else experienced this?

Thanks,

E

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Window.addWindowClosingHandler

2013-09-24 Thread Bhumika Thaker
 It works perfect for mine, But also you can try use CloseHandler like.

Window.addCloseHandler(new CloseHandler() {
}


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Window.addWindowClosingHandler

2013-09-24 Thread al1975e
gwt 2.5.1.Works only in googlechrome.In other browsers, nothing happens - 
the method does not work.

среда, 31 июля 2013 г., 18:17:14 UTC+3 пользователь salk31 написал:
>
> Works nicely for us. What version of GWT? What browers? Does nothing 
> happen at all?
>
> On Wednesday, July 31, 2013 12:09:45 PM UTC+1, al1975e wrote:
>>
>> Window.addWindowClosingHandler only works well in googlechrome.In other 
>> browsers may not work at all.Help to resolve this issue, please.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


gwt-unitCache

2013-09-24 Thread al1975e
In the folder \ build \ gwt-unitCache after compiling accumulate files like 
gwt-unitCache . Because of this compilation is a long one. How to make, 
what would these files are not created?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: HeaderPanel not setting height of the Content widget

2013-09-24 Thread Patrick Tucker
Ahh sorry must have misread.

On Friday, September 6, 2013 8:26:10 AM UTC-4, stuckagain wrote:

> Patrick,
>
> No, I don't know the height of the header, and I certainly don't want to 
> set it in pixel sizes in the code either. (I even have the header change 
> height depending on what the user is doing in there).
> The question was about the content widget not being resized in a 
> HeaderPanel, not the header that one works really well.
>
> But the tip from Jens fixed it for me. I now enforce relative to the 
> content container and force top,bottom,left,right at 0px. This removes the 
> need for code to do size calculations and the content is resized and 
> onResize is properly called automatically when the browser window resizes.
>
> The only problem I have is that it is a bit a hack on the HeaderPanel, 
> possible breaking in the future. It is not easy to implement a custom 
> LayoutPanel since if you look at the implementation of HeaderPanel it is 
> depending on quite a lot of internals of the Layout classes.
>
>
> On Friday, September 6, 2013 2:17:24 PM UTC+2, Patrick Tucker wrote:
>>
>> If you have a set size for your header, you most likely should be using a 
>> DockLayoutPanel.  The HeaderPanel should be used when you do not want to 
>> restrict your header or footer to a particular size and allow it to be 
>> whatever size it ends up being.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: getting access to min-width of an element

2013-09-24 Thread Patrick Tucker
You should submit a feature request on the issue tracker.

On Monday, September 23, 2013 2:08:23 PM UTC-4, stuckagain wrote:

> Thanks,
>
> I found it as well. But it would be nice if GWT would hide these browser 
> specific things.
>
> David
>
>
> On Mon, Sep 23, 2013 at 5:17 PM, Paul  >wrote:
>
>> A quick google of "gwt getcomputedstyle" gives quite a few solutions, 
>> this one looks fine to me:
>>
>>
>> https://code.google.com/p/gwt-examples/source/browse/trunk/GoneVertical-Core/src/org/gonevertical/core/client/style/ComputedStyle.java?spec=svn3084&r=3084
>>
>> cheers
>>
>> On Monday, 23 September 2013 14:04:26 UTC+1, stuckagain wrote:
>>>
>>> Hi,
>>>
>>> I am trying to get access to the min-width style property on some widget 
>>> to be able to properly implement a layout.
>>>
>>> When I use:
>>> widget.getElement().getStyle()**.getProperty("minWidth") I always get 
>>> "" as a result.
>>>
>>> The min-width style is set like this:
>>> .myclass {
>>>   min-width: 200px;
>>> }
>>>
>>> ...
>>>
>>> I noticed that when I define the min-width as a style attribute then it 
>>> works.
>>> ...
>>>
>>> What I really need is a way to know what the computed value should be... 
>>> and this should work on IE8+ and other browsers as well.
>>>
>>> Anybody has a solution for this ?
>>>
>>> David
>>>
>>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to 
>> google-we...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Style problems with Firefox+LayoutPanel

2013-09-24 Thread vincent vigon

Thank you very much Steve for your reply.  
And sorry every body for my first empty reply

Your explanations and your 2 examples Steve are clear for me :
To fix my problem :
either I add some size precisions
or I add an intermediate FlowPanel Between LayoutPanels and Widgets

Anyway, I am disappointing by the fact that the 'new' GWT-containers 
(LayoutPanels and co)
behaves so differently on FF and on Chrome+Safari... 

Thank you again Steve. 

Vincent.  






Le mardi 24 septembre 2013 00:08:20 UTC+2, Steve C a écrit :
>
> Actually, I saw essentially the same view in Chrome, at least regarding 
> the height of the select. The width is a different story.
>
> In general, I wouldn't add individual widgets to the root layout panel, 
> I'd add panels, and put the widgets inside them.  That helps get around 
> some of the browser idiosyncrasies, particularly with select tags. It looks 
> like the RootLayoutPanel adds a div wrapper around any widget you add to 
> it, and actually applies the sizing to that. The widget you added is then 
> set to have top, bottom, left, and right all at 0 within that div. FF seems 
> to ignore absolute positioning using right: XX; with select tags, but if I 
> explicitly set the style to change the right: 0; to width: 100%;, I get the 
> expected width.
>
> You're getting a weird behavior with the height of the select because you 
> didn't set any vertical sizing parameters for it when you added it, so it's 
> defaulting to top and bottom of 0.  Thus the selector part of it is huge. 
> (And FF does honor the bottom: 0; setting.)
>
> Here's a revision of your code with a comparison of adding a container:
>
> public void onModuleLoad() {
> ListBox list = new ListBox(false);
> RootLayoutPanel.get().add(list);
>
> RootLayoutPanel.get().setWidgetTopHeight(list, 0, Unit.PCT, 50, 
> Unit.PCT);
>
> RootLayoutPanel.get().setWidgetLeftWidth(list, 0, Unit.PCT, 50, 
> Unit.PCT);
> list.getElement().getStyle().setWidth(100, Unit.PCT);  // closer to 
> what you want
>
> for (int i = 0; i < 100; i++) {
> list.addItem("item " + i);
> }
> 
> ListBox list2 = new ListBox(false);
> FlowPanel pnl = new FlowPanel();
> pnl.add(list2);
> RootLayoutPanel.get().add(pnl);
> pnl.getElement().getStyle().setBorderStyle(BorderStyle.SOLID);
> pnl.getElement().getStyle().setBorderColor("black");
> pnl.getElement().getStyle().setBorderWidth(1, Unit.PX);
> list2.getElement().getStyle().setWidth(100, Unit.PCT);
> RootLayoutPanel.get().setWidgetRightWidth(pnl, 0, Unit.PCT, 50,
> Unit.PCT);
> for (int i = 0; i < 100; i++) {
> list2.addItem("item " + i);
>
> }
> }
>
> I don't think that there's any relation between this and issues you might 
> be having with Canvas.
>
>
> On Monday, September 16, 2013 8:29:10 AM UTC-4, vincent vigon wrote:
>>
>> ListBox has a weird behavior with fireFox (23.0.1), not with Chrome and 
>> Safari. 
>>
>> Here is my code :
>>
>> public void onModuleLoad(){  
>>
>> ListBox list= new ListBox(false);
>>
>> RootLayoutPanel.get().add(list); 
>>
>> RootLayoutPanel.get().setWidgetLeftWidth(list,0,Unit.PCT,50,Unit.PCT);
>>
>> for (int i=0;i<100;i++){
>>
>> list.addItem("item "+i);
>>
>> }
>>
>> }
>>
>>
>> The result is weird with FireFox : the list does not occupy 50% of the 
>> width, but it occupies 100% of the height.
>>
>> It seems that the Layout Mechanism does not work on Firefox.
>>
>> It is probably a problem with Css because I have a second problem 
>> (probably linked) : on firefox, all my drawing on canvas are black (no 
>> colors). 
>>
>>
>> Thank you for helping me
>>
>> Vincent
>>
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Drag & drop multiple files and upload it ?

2013-09-24 Thread Eric Reboisson
Hello,
 
We already have a widget to upload file (one by one you browse the local 
filesystem) to a server.
 
We are investigate a solution to drag & drop multiple file to a server and 
if possible reusing our servlet upload component.
 
We found quickly several solutions :
- http://www.moxiegroup.com/moxieapps/gwt-uploader/
- HTML5 solutions
 
But, some solution use Flash, or HTML 5 and maybe not fully compatible with 
the browsers.
 
Could you bring me your advices to implement this solution ?
 
Eric

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Style problems with Firefox+LayoutPanel

2013-09-24 Thread Steve C

On Tuesday, September 24, 2013 7:08:42 AM UTC-4, Thomas Broyer wrote:
>
>
>
> On Tuesday, September 24, 2013 12:08:20 AM UTC+2, Steve C wrote:
>>
>> Actually, I saw essentially the same view in Chrome, at least regarding 
>> the height of the select. The width is a different story.
>>
>> In general, I wouldn't add individual widgets to the root layout panel, 
>> I'd add panels, and put the widgets inside them.  That helps get around 
>> some of the browser idiosyncrasies, particularly with select tags. It looks 
>> like the RootLayoutPanel adds a div wrapper around any widget you add to 
>> it, and actually applies the sizing to that. The widget you added is then 
>> set to have top, bottom, left, and right all at 0 within that div.
>>
>
> Note that it can be changed using setWidget{Horizontal|Vertical}Position. 
>

Interesting - so setting the vertical position to BEGIN actually removes 
the bottom: 0; on the select within its layer.  It's also nice that the 
Javadocs for the method point out the "within its layer" part.  (It would 
be even nicer if methods like setWidgetLeftWidth noted that you're actually 
setting the parameters for the layer, not for the widget itself.)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Style problems with Firefox+LayoutPanel

2013-09-24 Thread Thomas Broyer


On Tuesday, September 24, 2013 12:08:20 AM UTC+2, Steve C wrote:
>
> Actually, I saw essentially the same view in Chrome, at least regarding 
> the height of the select. The width is a different story.
>
> In general, I wouldn't add individual widgets to the root layout panel, 
> I'd add panels, and put the widgets inside them.  That helps get around 
> some of the browser idiosyncrasies, particularly with select tags. It looks 
> like the RootLayoutPanel adds a div wrapper around any widget you add to 
> it, and actually applies the sizing to that. The widget you added is then 
> set to have top, bottom, left, and right all at 0 within that div.
>

Note that it can be changed using setWidget{Horizontal|Vertical}Position. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Style problems with Firefox+LayoutPanel

2013-09-24 Thread vincent vigon


Le lundi 23 septembre 2013 09:18:54 UTC+2, vincent vigon a écrit :
>
>
>
> Le lundi 16 septembre 2013 14:29:10 UTC+2, vincent vigon a écrit :
>
> ListBox (add on a LayoutPanel) has a weird behavior with fireFox (23.0.1), 
>> not with Chrome and Safari.
>>
>> Here is my simple code :
>>
>> public void onModuleLoad(){  
>>
>> ListBox list= new ListBox(false);
>>
>> RootLayoutPanel.get().add(list); 
>>
>> RootLayoutPanel.get().setWidgetLeftWidth(list,0,Unit.PCT,50,Unit.PCT);
>>
>> for (int i=0;i<100;i++){
>>
>> list.addItem("item "+i);
>>
>> }
>>
>> }
>>
>>
>> The result is weird with FireFox (see joint screen-shot) : the list does 
>> not occupy 50% of the width, but it occupies 100% of the height.
>>
>> It seems that the Layout Mechanism does not work on Firefox.
>>
>> It is probably a problem with Css because I have a second problem 
>> (probably linked) : on firefox, all my drawing on canvas are black (no 
>> colors). 
>>
>>
>> Thank you for helping me
>>
>> Vincent
>>
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Storing uploaded file in gwt (server side)

2013-09-24 Thread Maithilish

Refer *Advanced GWT Tutorial *- 
Chapter 
*Manage Data
*  which shows how to upload file to App Engine and persist the data to 
datastore.

Maithilish

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Advanced GWT Tutorial

2013-09-24 Thread Maithilish

 *Advanced GWT Tutorial*   now 
has additional chapters on developing and deploying  GWT apps on *Google 
App Engine* and *RedHat OpenShift *cloud platforms. 


Maithilish


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Detect swipe events in gwt

2013-09-24 Thread Dominic Warzok
Hi, 

i got a little web app and it should support mobile devices. 

Like in the G+ app I want to display the Navigationbar when a User swipe 
from the left screen to the right. 

Is something like this possible in GWT ? 

I try all the time to get a touchEvent. But if I add a Handler to my Button 
nothing happen :-(.


Thanks in advance 
Dominic 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: THE APPLICATION IS OUT OF DATE

2013-09-24 Thread Bhumika Thaker
you clear cache in browser and try to run again.

On Thursday, 19 September 2013 18:35:25 UTC+5:30, Fabio Simon wrote:
>
> Hi
>
> Hi just add a method to myService, myServiceAsyn, myServiceImpl but I get 
> the following error
>
> THE APPLICATION IS OUT OF DATE please refresh your browser etc etc, the 
> method newMethod can be located etc etc..
>
> what is the problem, I can not update my gwt sdk
>
> Thanks in advance
>
> BYE
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: THE APPLICATION IS OUT OF DATE

2013-09-24 Thread Bhumika Thaker
you clear cache in browser and try to run again.

On Thursday, 19 September 2013 18:35:25 UTC+5:30, Fabio Simon wrote:
>
> Hi
>
> Hi just add a method to myService, myServiceAsyn, myServiceImpl but I get 
> the following error
>
> THE APPLICATION IS OUT OF DATE please refresh your browser etc etc, the 
> method newMethod can be located etc etc..
>
> what is the problem, I can not update my gwt sdk
>
> Thanks in advance
>
> BYE
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Code Splitting with Factory usage?

2013-09-24 Thread Ed Bras
@Jens: thanks, this was exactly the info I was looking for. Always wondered
how this code splitting works on method level in a share class.
Maybe you could copy/paste your info in the Code splitting doc snippet on
the gwt site ;)...
I will keep on digging...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Storing uploaded file in gwt (server side)

2013-09-24 Thread Radhouene Gniwa
You can do it through a servlet. Below is an example of the servlet code. Do 
not forget to declare the servlet in web.xml.


*import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.FileItemFactory;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;


public class UploadServlet extends HttpServlet {
/**
 * 
 */
private static final long serialVersionUID = 1L;

/**
 * Accepts a Http request parameters and post a file to UforgeBuilder 
end
 * point. Used to upload profile picture.
 */
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse 
resp) throws ServletException, IOException {
try {

// Check that we have a file upload request
boolean isMultipart = 
ServletFileUpload.isMultipartContent(request);
if (isMultipart) {

// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();

// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);

// Parse the request
List /* FileItem */items = upload.parseRequest(request);

// Process the uploaded items
Iterator iter = items.iterator();

File uploadedFile = null;

while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
/* text field */
// here you can retrieve text fields
if (item.isFormField()) {
if (item.getFieldName().equals("")) String 
field1 = item.getString();
else if (item.getFieldName().equals("")) String 
field2 = item.getString();

}
/* upload file field */
else {
if (!item.getName().isEmpty()) {
String fileName = item.getName();
String 
folder=this.getServletContext().getRealPath(Config.UPLOAD_DIRECTORY);
File uploadDirectory = new File(folder);
if (!uploadDirectory.exists()) 
uploadDirectory.mkdirs();
uploadedFile = new File(uploadDirectory, 
fileName);
item.write(uploadedFile);
}
}

// now you can handle the file "uploadedFile"
}
}

}
catch (Exception e) {
e.printStackTrace();
}

}
}
*
---
Le lundi 16 septembre 2013 20:07:07 UTC+1, Pradeep Kumar a écrit :
>
>
>
>
>
>
>
>
>
>  
>   
> Hi All,   
>
> I am new to GWT, I am facing some issue with file creation.
>
> I am uploading a file from client side and want to store that file in 
> server side and parse it and create tables in database for the data present 
> in the file.
>
> When I try to create a file at server side there is some file.iopermission 
> issue App engine is not allowing me to create the file.
>
> Please let me know how can I solve this issue.
>
> I did browse net, didn't find any solutions.
>
> In the mean time I did read about sandboxing and some data store concept
>
> Please let me know how can I use for my problem.
>
> Thanks in Advance, Pradeep
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: THE APPLICATION IS OUT OF DATE

2013-09-24 Thread Radhouene Gniwa
remove the "nocache.js" file, clean and restart the application

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Spring with Hive Integration

2013-09-24 Thread Thomas Broyer
And the relationship to GWT is?

On Tuesday, September 24, 2013 7:51:53 AM UTC+2, Amrendra Singh wrote:
>
> I am trying to   to integrate spring with hive, i am wring a hive query in 
> beans.xml file but i get "Exception in thread "main" 
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
> Configuration problem: Unable to locate Spring NamespaceHandler for XML 
> schema namespace [http://www.springframework.org/schema/hadoop]"; error if 
> any one solution of that problem please reply as soon as possible
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Spring with Hive Integration

2013-09-24 Thread Amrendra Singh
I am trying to   to integrate spring with hive, i am wring a hive query in 
beans.xml file but i get "Exception in thread "main" 
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
Configuration problem: Unable to locate Spring NamespaceHandler for XML 
schema namespace [http://www.springframework.org/schema/hadoop]"; error if 
any one solution of that problem please reply as soon as possible

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.