Clearing cache of fileupload widget.

2011-12-21 Thread Rahul Sharma
Hi,
Can anyone help me out in clearing the contents of the fileupload
widget.
I mean for textbox we write textBox.setText("") to clear the content
of it, is there anyway to clear the FIleupload also.

Thanks in Advance
rahul

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



Re: Help! com.google.gwt.user.client.rpc.StatusCodeException: 500 The call failed on the server; see server log for details

2011-12-21 Thread HARISH SAHARAN
When we works on development mode this error comes generally because
of our outOfMemory issue if you see on jetty server it will show you
the "outOfMemory" issue.
We all know that our development mode depends on our system's memory .
So either increase the memory or check it on web mode






On Dec 19, 4:00 pm, Qian ZHAO  wrote:
> Hello, Everyone, I'm a new, just start learning GWT,
> and, here, I met one error when I want to integrate GWT and
> Hiobernate, and here it is the error messages,
>
> 11:40:32.429 [ERROR] [testgwt] Can't access database
>
> com.google.gwt.user.client.rpc.StatusCodeException: 500 The call
> failed on the server; see server log for details
>     at
> com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
> 209)
>     at
> com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
> 287)
>     at com.google.gwt.http.client.RequestBuilder
> $1.onReadyStateChange(RequestBuilder.java:395)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
>     at
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
> 172)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
> 337)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
> 218)
>     at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> 136)
>     at
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 561)
>     at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> 269)
>     at
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
> 91)
>     at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
>     at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
>     at
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
> 172)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
> 292)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 546)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 363)
>     at java.lang.Thread.run(Unknown Source)
>
> is there any one that has ever met this error? what should I do to
> solve it? thank in advance !

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



Re: GWT Developer Plugin for Firefox 8

2011-12-21 Thread tmy
Looking forward to the good news, but it is really annoying that the 
extension is incompatible after firefox upgrades every time, especially 
today firefox updates much more frequently.
Anyway, thanks so much, Alan! 

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



Re: multiple selection file-upload

2011-12-21 Thread Jim Douglas
myFileUpload.getElement().setPropertyBoolean("multiple", true);

On Dec 21, 5:39 am, Robert Fix  wrote:
> hi,
>
> i need a file-upload like it is used in Google+ and want to implement
> it in a gwt-project. In GWT i can only find a FileUpload with single
> selection. I hope you can help me because i don't want to use a
> javascript solution.
>
> Best regards,
> Robert Fix

-- 
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: RequestFactory Imposible To use

2011-12-21 Thread Aidan O'Kelly
Give this a try:

Start in debug mode,
1 - Get the app ready to fire() your request,
*then*
2 - In eclipse, add Java Exception Breakpoint on
java.lang.NullPointerException - make sure 'caught exceptions' is ticked.
3 - Make your app fire() the request.

You should drop into debug mode when the NPE is thrown and be able to work
back through the stacktrace.
If you do step 2 before step 1, you will catch some unrelated exceptions,
which are normally handled OK (since they are caught exceptions), so this
is a kinda awkard way to do it, but it should let you find the problem.


On Wed, Dec 21, 2011 at 11:37 PM, MagusDrk  wrote:

> Hi all again! I've just tried to use a CustomRequestFactoryServlet in
> order to catch and resolve the NPE in the server side. I could do it,
> but the catched error was "NullPointerException" with no other info
> (at all), no strackTrace, no specific cause (just "null") and no
> location specified! Help, please, I had to avoid using RequestFactory
> for my week release, but I Have to get it working soon. If you need
> some specific information, please, let me know.
>
> --
> 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: RequestFactory Imposible To use

2011-12-21 Thread MagusDrk
Hi all again! I've just tried to use a CustomRequestFactoryServlet in
order to catch and resolve the NPE in the server side. I could do it,
but the catched error was "NullPointerException" with no other info
(at all), no strackTrace, no specific cause (just "null") and no
location specified! Help, please, I had to avoid using RequestFactory
for my week release, but I Have to get it working soon. If you need
some specific information, please, let me know.

-- 
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: Can't deploy to appengine with Eclipse Google Plugin 2.5 (using maven)

2011-12-21 Thread David Chandler
Hi Mathieu, I'm cross-posting to the Google Plugin for Eclipse group to
make sure the right folks see this. Also, please file the issue here:
http://code.google.com/p/google-plugin-for-eclipse/issues/list

Thanks,
/dmc

On Tue, Dec 20, 2011 at 10:24 AM, Mathieu Clavel wrote:

> Hello,
>
> I'm developping a gwt/gae project on eclipse indigo.
> It's a maven project.
> I'm using the google plugin, and the m2e plugin to manage the project.
>
> The project has a maven webapp folder : src/main/webapp
> When using the develop server, all is put by the maven plugin in the
> folder target/m2e-wtp/web-resources
>
> Since I upgraded to the version 2.5 of the google plugin, deploying to
> appengine isn't working anymore.
> The GWT compilation is now built in the folder target/xx-1.0-SNAPSHOT
> (created from the project info of the pom.xml)
> But data from src/main/webapp are not copied to that folder, so deploying
> failed telling me it cannot find appengine-web.xml.
>
> I fixed it by puting a symbolic link from target/xx-1.0-SNAPSHOT to
> target/m2e-wtp/web-resources , but it would be nice to fix this.
>
> Regards,
>
> Mathieu
>
> --
> 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/-/PdBiRuGkJRMJ.
> 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.
>



-- 
David Chandler
Developer Programs Engineer
w: http://code.google.com/
b: http://turbomanage.wordpress.com/
t: @googledevtools

-- 
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: UiBinder use ImageResource height and width to specify a elements height and width

2011-12-21 Thread Patrick Tucker
It is not me that is entering the width="22", the value 22 is
programatically injected by {res.refreshButton.getWidth}.

The error message is complaining because the function getWidth does
not return a String.

I also try to use tables as little as possible, but in this case I
have to use one in order to constrain a TextBox to 100% of its
parent.  The requirement indicates that the TextBox grow with a
resizable parent element...  I haven't been able to find a better way
to get around this.

Thanks,
Pat

On Dec 20, 5:40 pm, Ed  wrote:
> Try "22px"
>
> BTW: I these day's I would build my widgets tabless as much as possible

-- 
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: App with hundreds of code splits won't finish compiling

2011-12-21 Thread Eric Andresen
Hi Aaron,

  Did you ever find a way to make this work?  I'm running in to the same 
problem.  I have an app that currently compiles to about 12mb of 
javascript, but that single large file is killing my load times on IE.  
  I tried splitting it at my most logical spots, which causes about 100 
split points.  When I have just a few splits, it works fine. But when I try 
to do the full splitting, the compile takes an order of magnitude longer 
and usually blows the heap space before it finishes.  

  This is on some relatively small hardware, but I'm giving the compiler 
3gb of memory to work with and limiting it to a single localWorker thread. 
 Without the split points, I can compile it with just over 1gb of memory.

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/-/eSlVbErXj14J.
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: RequestFactory Imposible To use

2011-12-21 Thread MagusDrk
Aidan, thanks by your answer.

When I said my server side is not reached, I reffer to some
breakpoints in the back-end wich are never reached on debug mode (in
the Service class in server side). just after calling the fire method,
the debug stake catches another breakpoint in the onFailure method of
the request (but never someone of the server side). That's why I said
my server code is not reached.

I'm trying to implement something in the server side to catch that
exception you said, but I'm not sure about how to do it (break points
are never catched).

Thanks again.

Magus.

-- 
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: RequestFactory Imposible To use

2011-12-21 Thread MagusDrk
Hi, Thomas, I've read the RequestFactorySource and Annotation
Processing. I have already the requestfactory-apt.jar referenced as it
is shown in the link bellow, but it doesn't seem to be the problem.
Right now I'm trying to implement something in order to catch the
server side exception as Aidan has suggested. Thanks a lot!

http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation



On 21 dic, 13:33, Thomas Broyer  wrote:
> When you say "never reaches the server side", you mean it never reaches
> your own code, right? Have you looked at the server logs?
>
> You might be interested 
> byhttp://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_4#R...too,
> which is unfortunately missing from the docs (it was originally scheduled
> for 2.5).

-- 
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: Remote Logging

2011-12-21 Thread Ed Bras
Make sure you correctly install the jul bridge: SLF4JBridgeHandler.install()
when your app starts.
See: http://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html

If that doesn't work, then debug it, and you will quickly find out what
goes wrong.



On Wed, Dec 21, 2011 at 8:54 PM, Keith Bennett
wrote:

> Ed, I have followed all of the guidelines as documented in the first
> link you sent.  Again, I am able to direct the log output to my
> logback-managed files, but only if I use the RemoteLoggingServiceImpl
> and RemoteLoggingServiceUtil custom classes I created that use the
> slf4j Logger and LogFactory classes.  I know that these classes use
> java.util.logging as Thomas first mentioned.  If I can get the slf4j
> bridge configured, I am assuming that I can use the GWT versions of
> these classes instead of mine.  All I'm trying to figure out now is
> how to properly configure the slf4j bridge as Thomas indicated I
> should do.  I have referenced instructions listed at
> http://www.slf4j.org/legacy.html.
> Is there anything more I need to do other than including the jul-to-
> slf4j jar as a dependency?
>
> On Dec 21, 1:41 pm, Ed  wrote:
> > Have a look at:
> > + gwt logging:
> http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html
> > + gwt-log:http://code.google.com/p/gwt-log/
> >
> > 
>
> --
> 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: Remote Logging

2011-12-21 Thread Keith Bennett
Ed, I have followed all of the guidelines as documented in the first
link you sent.  Again, I am able to direct the log output to my
logback-managed files, but only if I use the RemoteLoggingServiceImpl
and RemoteLoggingServiceUtil custom classes I created that use the
slf4j Logger and LogFactory classes.  I know that these classes use
java.util.logging as Thomas first mentioned.  If I can get the slf4j
bridge configured, I am assuming that I can use the GWT versions of
these classes instead of mine.  All I'm trying to figure out now is
how to properly configure the slf4j bridge as Thomas indicated I
should do.  I have referenced instructions listed at 
http://www.slf4j.org/legacy.html.
Is there anything more I need to do other than including the jul-to-
slf4j jar as a dependency?

On Dec 21, 1:41 pm, Ed  wrote:
> Have a look at:
> + gwt 
> logging:http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html
> + gwt-log:http://code.google.com/p/gwt-log/
>
> 

-- 
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: marquee in gwt

2011-12-21 Thread Ed
Why not create the marque as html text and wrap it a HTML widget. You can 
wrap this all in a Composite widget.

Or create a Marquee class that extends Widget and create your own marquee 
Element in the constructor (just like other widgets as Label and HTML).
Then add public methods to modify/set the element attributes.


-- 
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/-/whdEAclhm0EJ.
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 Developer Plugin for Firefox 8

2011-12-21 Thread Alan Leung
Not sure. The official xulrunner sdk was not release until today. I am
currently testing it.

I'll keep everyone updated.

-Alan

On Wed, Dec 21, 2011 at 10:20 AM, Samyem Tuladhar  wrote:

> Can the plugin be made to work on the current stable release of Firefox 9
> as well? 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/-/CCuocX-pp2gJ.
>
> 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: Remote Logging

2011-12-21 Thread Ed
Have a look at:
+ gwt logging: 
http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html
+ gwt-log: http://code.google.com/p/gwt-log/



-- 
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/-/8g7oo3DhesQJ.
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: I could use some Guru recommendations on MapV3 API Event bindings model?

2011-12-21 Thread Brandon Donnelson
Here is my snippets of the more formalized version I'm now using with most 
of the classes as snippets:

http://c.gwt-examples.com/home/wrapping/event-binding

-- 
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/-/SeNeDEoc3nMJ.
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: marquee in gwt

2011-12-21 Thread Harpal Grover
GWT has an animation api. You can use this to create a marquee.

On Wed, Dec 21, 2011 at 1:02 AM, Katta Vijay  wrote:

> how can i create a marquee in gwt  ? is there any library available
> for this in gwt .
> i tried in this group previous posts there is no proper information
> available .
>
> can any one help me !
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Harpal Grover
President
*Harpal Grover Consulting Inc*

-- 
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: RequestFactory Imposible To use

2011-12-21 Thread Aidan O'Kelly
On Wed, Dec 21, 2011 at 6:07 PM, MagusDrk  wrote:

> never reaches the server side. All error detail is a "Server Error:
> null" (absolutelly nothing else)
>
>
RequestFactoryServlet by default catches all exceptions and returns them to
the client, without stack-traces or much details, I usually get this error
if my service method throws a NPE.

If you have a look at RequestFactoryServlet , you can see the no-arg
constructor creates a 'DefaultExceptionHandler', which generates this
'Server Error:...'  message.  You can subclass RequestFactoryServlet and
use your own handler which logs the stack trace, etc.

In short, something on the server side is throwing an exception. Are you
positive your server side code is not being reached? It could be the
locator that is that is throwing the exception.

-- 
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 compiler hangs when "Compiling permutation 0"

2011-12-21 Thread tunichtviel
On Dec 15, 8:14 pm, Jens  wrote:
> I think you should file a bug for this and/or maybe post this issue in the
> Google Web Toolkit Contributors group.
>
> Would be great if you can narrow your issue down to a very simple GWT app.
>
> -- J.

Ok, I will try to create a mini-app which reproduces the problem and
then post a bug report.

Greetings,
Gert

-- 
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: Remote Logging

2011-12-21 Thread Keith Bennett
Thomas, thanks for the feedback.  I included the log4j-over-slf4j, jcl-
over-slf4j, and jul-to-slf4j jars in my project, but I still do not
see anything logged in my logback files.  When you stated that I
needed to configure the slf4j bridge, do you know if there is anything
else I need to do (other than include the jul-to-slf4j jar)?  By the
way, I was able to implement my own versions of the GWT
RemoteLoggingServiceImpl and RemoteLoggingServiceUtil classes that use
the slf4j Logger and LogFactory classes, and with this implementation
I am able to direct log output to the logback files.  I do not want to
have to maintain my own version of these classes, so I am really
wanting to get the slf4j bridge configured correctly.  Thanks for any
advice you have!

On Dec 20, 4:03 pm, Thomas Broyer  wrote:
> GWT only uses java.util.logging, so you have to configure the Slf4j bridge to 
> redirect the logs to logback.

-- 
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: RequestFactory Imposible To use

2011-12-21 Thread Thomas Broyer
When you say "never reaches the server side", you mean it never reaches 
your own code, right? Have you looked at the server logs?

You might be interested by 
http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_4#RequestFactorySource_and_Annotation_Processing
 too, 
which is unfortunately missing from the docs (it was originally scheduled 
for 2.5).

-- 
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/-/G82l59C3yEQJ.
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 Developer Plugin for Firefox 8

2011-12-21 Thread Samyem Tuladhar
Can the plugin be made to work on the current stable release of Firefox 9 
as well? 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/-/CCuocX-pp2gJ.
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 Imposible To use

2011-12-21 Thread MagusDrk
Hi everybody!

I have two weeks trying to implement RequestFactory, I've done my data
classes model, locators, proxies, etc, but I simply can't get it to
work. I've tried all configurations suggested on Starting With Requst
Factory Page, but I still get the same problem.

When the line request.fire(new Receiver() {... It simply
goes to public void onFailure(ServerFailure error) {... method. and
never reaches the server side. All error detail is a "Server Error:
null" (absolutelly nothing else)

It's really important to me make ir work as quickly as posible, so, a
quick answer will be too much appreciated.

Some details:

// MyEntityProxy entity =
context.create(EspacioCorporativoProxy.class);
// MyValue administrador = context.create(UsuarioProxy.class);
//
// some set calls
//
// Request request = context.createMyEntity(entity);
// request.fire(new Receiver() {
//
// @Override
// public void onFailure(ServerFailure error) {
// ... error handing
//
// try {
// super.onFailure(error);
// } catch (Throwable t) {
// GWT.getUncaughtExceptionHandler().onUncaughtException(t);
// }
// }
//
// @Override
// public void onSuccess(ResultadoRegistro response) {
// ... success handing
// ... never reached, so, doesn't mean.
// }
// });

public class MyService {

  @ServiceMethod
  public SharedTipe  createMyEntity(MyEntity entity) {
PersistenceAccess() g = new PersistenceAccess();
SharedTipe result = g.createMyEntity(entity); //g saves the entity
in the datastorage an return a flag
return result;
  }

}

@ProxyForName(value = "com.xxx.app.server.domain.MyEntity", locator =
"com.xxx.app.server.locator.MyEntityLocator")
public interface EspacioCorporativoProxy extends EntityProxy {

  ... normal getters and setters
}

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



RequestFactory Imposible To use

2011-12-21 Thread MagusDrk
Hi everybody!

I have two weeks trying to implement RequestFactory, I've done my data
classes model, locators, proxies, etc, but I simply can't get it to
work. I've tried all configurations suggested on Starting With Requst
Factory Page, but I still get the same problem.

When the line request.fire(new Receiver() {... It simply
goes to public void onFailure(ServerFailure error) {... method. and
never reaches the server side. All error detail is a "Server Error:
null" (absolutelly nothing else)

It's really important to me make ir work as quickly as posible, so, a
quick answer will be too much appreciated.

Some details:

// MyEntityProxy entity =
context.create(EspacioCorporativoProxy.class);
// MyValue administrador = context.create(UsuarioProxy.class);
//
// some set calls
//
// Request request = context.createMyEntity(entity);
// request.fire(new Receiver() {
//
// @Override
// public void onFailure(ServerFailure error) {
// ... error handing
//
// try {
// super.onFailure(error);
// } catch (Throwable t) {
// GWT.getUncaughtExceptionHandler().onUncaughtException(t);
// }
// }
//
// @Override
// public void onSuccess(ResultadoRegistro response) {
// ... success handing
// ... never reached, so, doesn't mean.
// }
// });

public class MyService {

  @ServiceMethod
  public SharedTipe  createMyEntity(MyEntity entity) {
PersistenceAccess() g = new PersistenceAccess();
SharedTipe result = g.createMyEntity(entity); //g saves the entity
in the datastorage an return a flag
return result;
  }

}

@ProxyForName(value = "com.xxx.app.server.domain.MyEntity", locator =
"com.xxx.app.server.locator.MyEntityLocator")
public interface EspacioCorporativoProxy extends EntityProxy {

  ... normal getters and setters
}

-- 
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: Compilation time doubles after upgrading to GWT 2.3

2011-12-21 Thread Ashton Thomas
Also, the reference was for 2.4 not sure of exact changes for 2.3 but you 
can easily run the command 

-- 
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/-/rFQcuFfrO8QJ.
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: Compilation time doubles after upgrading to GWT 2.3

2011-12-21 Thread Ashton Thomas
For reference:

try draftCompile and maybe only compile certain models with only certain 
permutation.

$ java -cp gwt-dev.jar com.google.gwt.dev.Compiler
Missing required argument 'module[s]'
Google Web Toolkit 2.4.0
Compiler [-logLevel level] [-workDir dir] [-gen dir] [-style style] [-ea] 
[-XdisableClassMetadata] [-XdisableCastChecking] [-validateOnly] 
[-draftCompile] [-optimize level] [-compileReport] [-strict] [-localWorkers 
count] [-war dir] [-deploy dir] [-extra dir] module[s] 

where 
  -logLevel   The level of logging detail: ERROR, WARN, INFO, 
TRACE, DEBUG, SPAM, or ALL
  -workDirThe compiler's working directory for internal use 
(must be writeable; defaults to a system temp dir)
  -genDebugging: causes normally-transient generated 
types to be saved in the specified directory
  -style  Script output style: OBF[USCATED], PRETTY, or 
DETAILED (defaults to OBF)
  -ea Debugging: causes the compiled output to check 
assert statements
  -XdisableClassMetadata  EXPERIMENTAL: Disables some java.lang.Class 
methods (e.g. getName())
  -XdisableCastChecking   EXPERIMENTAL: Disables run-time checking of cast 
operations
  -validateOnly   Validate all source code, but do not compile
  -draftCompile   Enable faster, but less-optimized, compilations
  -optimize   Sets the optimization level used by the compiler. 
 0=none 9=maximum.
  -compileReport  Create a compile report that tells the Story of 
Your Compile
  -strict Only succeed if no input files have errors
  -localWorkers   The number of local workers to use when compiling 
permutations
  -warThe directory into which deployable output files 
will be written (defaults to 'war')
  -deploy The directory into which deployable but not 
servable output files will be written (defaults to 'WEB-INF/deploy' under 
the -war directory/jar, and may be the same as the -extra directory/jar)
  -extra  The directory into which extra files, not 
intended for deployment, will be written
and 
  module[s]   Specifies the name(s) of the module(s) to compile

-- 
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/-/dJBLboYZqX8J.
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: Compilation time doubles after upgrading to GWT 2.3

2011-12-21 Thread Eric Clayberg (Google)
What is the size of the resulting application in both cases?

Quite a few new compiler optimizations went into GWT between 1.7 and 2.3, 
so I would expect compilation time to increase quite a bit if you have all 
of those new optimization turned on.

There are compiler flags you can turn on to disable most of these 
optimizations and return to more 1.7-like behavior.

-- 
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/-/3R_5KeYE2ssJ.
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 Hosted mode with SSL enabled

2011-12-21 Thread Thomas Broyer
Try :ssl or -Dgwt.server=:ssl
http://mojo.codehaus.org/gwt-maven-plugin/run-mojo.html#server

-- 
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/-/pL2lOcL4zqgJ.
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: RequestFactory ValidationTool

2011-12-21 Thread RickL
I've had a similar problem before.  I am using maven and doing a "Run
as Maven Clean" followed by a "Run as Maven Install" corrected the
problem for me.  By the way, my maven pom was modified from the
Expenses sample app's pom.


On Dec 20, 8:01 am, Mike Breytenbach 
wrote:
> Hi
>
> I'm trying to learn how to use RequestFactory. I created a new App
> Engine Connected Android project. In the shared MyRequestFactory class
> I then add  "Request getSomethingElse();" to the code below,
> just before the closing curly bracket.
>
> @ServiceName("com.mikebreytenbach.android.orbit.server.HelloWorldService")
>         public interface HelloWorldRequest extends RequestContext {
>                 /** Retrieve a "Hello, World" message from the server. */
>                 Request getMessage();
>         }
>
> I immediately get an Eclipse error under getSomethingElse() saying
> "Could not find domain method similar to java.lang.String
> getSomethingElse()". I've followed the instructions 
> onhttp://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterf...
> for Eclipse setup, but annotation processing was already configured
> correctly for the project (I think if it had not been, I would not get
> the Eclipse error).
>
> Now, when the client code calls the original getMessage(), there's a
> runtime server error saying that the ValidationTool must be run.
>
> I've tried deleting all the class files that come with the example as
> well as cleaning and rebuilding. Is this the right way to add a new
> server method? Can I fix this problem by installing Maven for GWT or
> by manually running the ValidationTool?

-- 
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: multiple selection file-upload

2011-12-21 Thread Nicolas Antoniazzi
did you try gwt-upload ?

2011/12/21 Robert Fix 

> hi,
>
> i need a file-upload like it is used in Google+ and want to implement
> it in a gwt-project. In GWT i can only find a FileUpload with single
> selection. I hope you can help me because i don't want to use a
> javascript solution.
>
> Best regards,
> Robert Fix
>
> --
> 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.



multiple selection file-upload

2011-12-21 Thread Robert Fix
hi,

i need a file-upload like it is used in Google+ and want to implement
it in a gwt-project. In GWT i can only find a FileUpload with single
selection. I hope you can help me because i don't want to use a
javascript solution.

Best regards,
Robert Fix

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



i18ncreator giving java.io.IOException: Cannot run program "chmod": CreateProcess error=2, The system cannot find the file specified

2011-12-21 Thread Shaik Muhammad
Hi,

I am using gwt i18ncreator script to generate the java interface. But
i am getting the error

"java.io.IOException: Cannot run program "chmod": CreateProcess
error=2, The system cannot find the file specified".

Read from the internet that the i18nCreator will not work. is it so?

Is there any fix available? Please let me know.

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



Can DateTimeConstants and NumberConstants be derived from a Dictionary in the same way that localized strings can

2011-12-21 Thread Rajesh Akkineni
Hi,

I have a situation where I am using Dictionary to load messages.
I want to load DateTimeConstants , NumberConstants  in the same way..

Is there any solution for this?

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



GWT Hosted mode with SSL enabled

2011-12-21 Thread Nemanja Vukosavljevic
Hi to all,

I'm fairly a beginner in GWT and Maven and I did try to find the answer to 
the this problem in the archive but didn't succeed.

So I have the following problem. I've developed a GWT (ver 2.4) application 
coupled with Spring Framework and Maven as a build tool and for the sake of 
user authentication with LinkedIn we need our server to be able to accept 
https requests. I was reading the documentation and found *README-SSL.txt*in 
com/google/gwt/dev/shell gwt-dev-2.4.0.jar where it reads:
"You can use a default localhost-only self-signed certificate by just 
using  -server :ssl " which is exactly what I need for testing purposes. 
Normally I run the application with mvn gwt:run but I don't know how to add 
-server :ssl for it to work.

Thanks in advance! Cheers

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



Compilation time doubles after upgrading to GWT 2.3

2011-12-21 Thread Deepali
We are seeing a huge increase in the compilation time after upgrading
from GWT version 1.7 to 2.3. Given below is a comparison of the
compile time that we are seeing for one language and one browser.
It does not seem to be related to code splitting or IE9 support.

Has anyone else noticed such an increase with the version change? And
do you have any suggestions for reducing it?

(We are doing this compilation for our integrated test, UAT and
Production environments. So draftcompile or optimize 0 cannot be
used.)

GWT Ver Code Splitting Local workersBrowser Time taken
2.3 Yes default IE  23 minutes 55  seconds
1.7 No  default IE  10 minutes 25  seconds
2.3 No  default IE  21 minutes 22 seconds
1.7 No  2   IE  10 minutes 14 seconds
2.3 No  2   IE  21 minutes 29 seconds
1.7 No  2   FF  9 minutes 38 seconds
2.3 No  2   FF  20 minutes 24 seconds
2.3 No  4   FF  20 minutes 18 seconds

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



marquee in gwt

2011-12-21 Thread Katta Vijay
how can i create a marquee in gwt  ? is there any library available
for this in gwt .
i tried in this group previous posts there is no proper information
available .

can any one help me !

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



Re: Request Factory Security

2011-12-21 Thread Alfredo Quiroga-Villamil
I find Spring Security to be a viable and simple solution to use while
giving you a range of possibilities for both Authentication and
Authorization. You get exactly that "method to add the check (probably
based on some annotation on the method)."  as one of the options.

See:

http://static.springsource.org/spring-security/site/docs/3.0.x/reference/ns-config.html

2.4 Method Security

Under the hood I believe it gets implemented using AOP as Thomas pointed
out. Just in this case you are not implementing it yourself and if tomorrow
you decide to support multiple authentication mechanisms, etc ... you just
add them. The framework is extremely flexible.

Regards,

Alfredo

On Wed, Dec 21, 2011 at 9:38 AM, Thomas Broyer  wrote:

>
>
> On Wednesday, December 21, 2011 3:18:25 PM UTC+1, EMan wrote:
>>
>> there have been several posts on RequestFactory security, but I am still
>> not clear.  the sample code here:
>> http://code.google.com/p/**google-web-toolkit/source/**
>> browse/trunk/samples/expenses/**src/main/java/com/google/gwt/**
>> sample/gaerequest/#gaerequest
>>
>> uses a filter to determine if a user can access the RequestFactory
>> service.  But what happens once a user authenticates?  does he have access
>> to all back end request?
>>
>
> Yes.
>
>
>> ie, if I have a findById method and a findAll (for my admin users) method
>> in my locator, could a user authenticate, then post to either and receive
>> all the data in my table?
>>
>
> Yes.
>
>
>> How do we authenticate individual types of request?
>>
>
> Either do it at the start of each method (use
> RequestFactoryServlet.getThreadLocalRequest().getUserPrincipal() to get the
> current user).
> Or create a ServiceLayerDecorator and override the
> invoke(Method,Object...) method to add the check (probably based on some
> annotation on the method).
> I believe you could also use "standard AOP" (Spring AOP or Guice AOP,
> probably also AspectJ or similar) on your services.
>
> We use the second approach, it works very well.
>
>  --
> 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/-/2lD-kfluWgcJ.
> 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.



Re: How to set a Presenter in a composite Widget?

2011-12-21 Thread David

Many  ways to do this.   ViewImpl.ui.java will have a binding  for the
composite widget
So you can simply pass the presenter or the instance of
ViewImpl.ui.java to the composite widget.

@UiField  MyCompositeWidget  theWidget;

.. theWidget.setParent(this)


Or you can use @UiField(provided=true),  @UiConstructor ,  or
@UiFactory.

see: http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html


On Dec 20, 1:37 pm, James Drinkard  wrote:
> Hello All,
>
> I have a GWT 2.4 app using MVP, clientFactory, activities, places, and
> uiBinder. I have a composite widget that I created as a standalone
> object with it's own ui.xml file. I reference that class and insert it
> into the main viewImpl.ui.xml file.
>
> The composite widget receives some data from the backend and I need to
> get it back to the activity so it can be displayed in a table. I'm
> using the presenter that is associated with the view to get to the
> activity. Here is the code: In the View interface:
>
> public interface NameView extends IsWidget
> {
>     void setPresenter(Presenter presenter);
> ...
>
> public interface Presenter{
>             void goTo(Place place);
>             void setRowDataList(List rowData);
>         }
>
> In my Activity I implement the View.Presenter as in:
>
>  Activity extends AbstractActivity implements NameView.Presenter
>
> and in the start method for the activity I use:
>
> NameView  nameView = clientFactory.getNameView();//NameView is just an
> example.
> nameView.setPresenter(this); ...
>
> to setup the presenter and instantiate it. My problem is, in the
> widget I need this:
>
> presenter.setRowDataList(rowData);
>
> but I'm not sure how to reference the instantiated Presenter from the
> widget?
>
> I know GIN would do it, but I'm not using that in the app as I've
> never setup GIN with GWT. Any ideas as to the correct way to do this?

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



Re: Request Factory Security

2011-12-21 Thread Thomas Broyer


On Wednesday, December 21, 2011 3:18:25 PM UTC+1, EMan wrote:
>
> there have been several posts on RequestFactory security, but I am still 
> not clear.  the sample code here:
>
> http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/#gaerequest
>  
> uses a filter to determine if a user can access the RequestFactory 
> service.  But what happens once a user authenticates?  does he have access 
> to all back end request?
>

Yes.
 

> ie, if I have a findById method and a findAll (for my admin users) method 
> in my locator, could a user authenticate, then post to either and receive 
> all the data in my table?
>

Yes.
 

> How do we authenticate individual types of request?
>

Either do it at the start of each method (use 
RequestFactoryServlet.getThreadLocalRequest().getUserPrincipal() to get the 
current user).
Or create a ServiceLayerDecorator and override the invoke(Method,Object...) 
method to add the check (probably based on some annotation on the method).
I believe you could also use "standard AOP" (Spring AOP or Guice AOP, 
probably also AspectJ or similar) on your services.

We use the second approach, it works very well.

-- 
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/-/2lD-kfluWgcJ.
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.



Request Factory Security

2011-12-21 Thread EMan
there have been several posts on RequestFactory security, but I am still 
not clear.  the sample code here:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/#gaerequest
 
uses a filter to determine if a user can access the RequestFactory service. 
 But what happens once a user authenticates?  does he have access to all 
back end request?
ie, if I have a findById method and a findAll (for my admin users) method 
in my locator, could a user authenticate, then post to either and receive 
all the data in my table?  How do we authenticate individual types of 
request?

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/-/vQM_t1c1IeUJ.
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 Developer Plugin for Firefox 9

2011-12-21 Thread tdk
it looks like we can't keep up with the development speed of Mozilla :
(
As they now released FF 9 the plugin is incompatible (yet again).

Alan, can you compile it again in your usual speed and timelieness :)
Your fans you would carry you on their shoulders, vistually ;)

-- 
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: Why com.google.gwt.dev.DevMode doesn't recognize the argument -style?

2011-12-21 Thread hallmit
Many thanks Thomas for your clear explanation...You're right, in
development mode the GWT-JVM is actually executing the application
code as compiled Java bytecode, as described at GWT Doc  [1] :), and
no JS is generated. So, pretty mode for JS generation doesn't make
sense here.

Hallmit

[1] 
http://code.google.com/intl/fr-FR/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideDevMode

-- 
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: Can't deploy to appengine with Eclipse Google Plugin 2.5 (using maven)

2011-12-21 Thread Mathieu Clavel
I opened the issue 6603 for that problem : 
https://code.google.com/p/googleappengine/issues/detail?id=6603

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



Re: Is GWT preferable for large scale projects similar to FB?

2011-12-21 Thread Ed Bras
> easily cross 1.5 MB
I don't agree with "easily".

A few things:
- Perform efficient coding.
- Use Soyc to optimize your code splitting.
- Transferring the files gzipped between browser and server will deliver a
file reduction of about 50%..
- Using multiple modules if size is getting too big.
- etc..

Result: It's hard too cross an 1.0 MB initial load.

On Wed, Dec 21, 2011 at 6:14 AM, -sowdri-  wrote:

> If speed is critical for your application then there are 2 things to
> consider:
>
>1. Speed after the application is loaded.
>2. Speed in which the application loads up.
>
> If you are concerned about latter, then you have to either use code
> splitting or consider moving to jsp. Because in a large application the
> code size could easily cross 1.5 MB which might take a long time to load.
>
> If the former is of importance(which actually makes the app interactive)
> then GWT is definitely the way to go.
>
> -sowdri-
>
> --
> 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/-/XrqHJ8falFQJ.
> 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.