Re: GWT application that can run on the server and client?

2009-11-26 Thread Saeed Zarinfam
Hi
This is possible. You can do it with a SWT Browser widget and a
embedded web server (tomcat or jetty) and war folder of your GWT
application.

On Nov 18, 1:26 am, Ezra  wrote:
> Hi GWT community,
>
> Is it possible to have a gwt application run on the server and the
> client?  Basically, can a GWT app that was written for the client be
> ported to run on a server?
>
> The benefit of using GWT would be that it is written in Java (which
> can run on a server) and it can be compiled into JavaScript (which can
> run on the client). Having the ability to pick where the code runs
> would be a big benefit for the application I am developing. Has anyone
> tried this before? Can you give me some advice?
>
> Thanks,
> Ezra

--

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




Standard.css always override my MyProject.css

2009-11-26 Thread Šobis
Hello,

can you please help me with this issue, because I'm slowly losing my
mind.

I have GWT project, where in MyProject.gwt.xml I have

 and


In MyProject.html I have:


but for TabPanel I always get style from Standard.css. What am I doing
wrong?

In MyProject.css I have

.gwt-TabBarItem{
.
}
.gwt-TabBarItem-selected{
.}


but in FF I get style from standard.css where class is



I tried !imporatant thing but is not working.

I added style tabRazred in code (for TabPabel.tabBar) and in CSS I did
like this

.tabRazred-TabBarItem{
...
}

But I'ts not working.

So if anybody had similar problem or know how to solve this, please
respond, because I'm quite desperate.


Matej

--

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-tool...@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 deploy GWT application in tomcat

2009-11-26 Thread Tamás Gömbös
I have copied all the required jars to WEB-INF. And my servlets work
properly because they send back data when I call them explicitly. But it
seems that the client doesn't send any request to the server when I start
the application with .html. And again: in hosted mode
everything's fine.

2009/11/18 Rinuz 

> Do you copy jars to WEB-INF?
>
> If don't, you must copy db_driver_connector.jar and gwt-servlet.jar.
>
> On 17 Lis, 12:29, Tamás Gömbös  wrote:
> > Well, I was managed to deploy the application but there's another
> problem.
> > It seems as the client doesn't call the servlets. They communicate in
> JSON
> > format and when I call the servlet explicitly it sends the the data. But
> > when I start the application normally, no data is given to the client.
> >
> > What could be the problem?
> >
> > 2009/11/17 Tamás Gömbös 
> >
> > > Greetings!
> >
> > > I've finished my GWT application and I'd like to deploy it in tomcat.
> I've
> > > read a bunch of "tutorials" about this but I can't figure out how to do
> it.
> > > I've done the following things:
> >
> > > - I compiled my application.
> > > - In the tomcat/webapps I created a  directory.
> > > - Then I copied the content of the /war directory into
> the
> > > tomcat/webapps/ directory. The /war
> directory
> > > includes:
> > > ./images (this contains the resources for the style sheets)
> > > ./ (this contains several .cache.html files etc)
> > > ./Web-inf (this contains web.xml, classes and lib directories, the lib
> > > contains the gwt-servler.jar)
> > > .css and .html
> >
> > > After this I started tomcat and tried the following URL:
> > > ...//.html and it didn't work.
> >
> > > Please, somebody tell me which is the correct way to create the
> project's
> > > directory in tomcat/webapps and what is the correct URL to start the
> > > application.
> >
> > > Thank you!
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@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=.
>
>
>

--

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-tool...@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 deploy GWT application in tomcat

2009-11-26 Thread Tamás Gömbös
I forgot to mention that when I start the application in hosted mode and
start it in a browser with the "Compile/Browse" button it also works
properly.

2009/11/26 Tamás Gömbös 

> I have copied all the required jars to WEB-INF. And my servlets work
> properly because they send back data when I call them explicitly. But it
> seems that the client doesn't send any request to the server when I start
> the application with .html. And again: in hosted mode
> everything's fine.
>
> 2009/11/18 Rinuz 
>
> Do you copy jars to WEB-INF?
>>
>> If don't, you must copy db_driver_connector.jar and gwt-servlet.jar.
>>
>> On 17 Lis, 12:29, Tamás Gömbös  wrote:
>> > Well, I was managed to deploy the application but there's another
>> problem.
>> > It seems as the client doesn't call the servlets. They communicate in
>> JSON
>> > format and when I call the servlet explicitly it sends the the data. But
>> > when I start the application normally, no data is given to the client.
>> >
>> > What could be the problem?
>> >
>> > 2009/11/17 Tamás Gömbös 
>> >
>> > > Greetings!
>> >
>> > > I've finished my GWT application and I'd like to deploy it in tomcat.
>> I've
>> > > read a bunch of "tutorials" about this but I can't figure out how to
>> do it.
>> > > I've done the following things:
>> >
>> > > - I compiled my application.
>> > > - In the tomcat/webapps I created a  directory.
>> > > - Then I copied the content of the /war directory into
>> the
>> > > tomcat/webapps/ directory. The /war
>> directory
>> > > includes:
>> > > ./images (this contains the resources for the style sheets)
>> > > ./ (this contains several .cache.html files etc)
>> > > ./Web-inf (this contains web.xml, classes and lib directories, the lib
>> > > contains the gwt-servler.jar)
>> > > .css and .html
>> >
>> > > After this I started tomcat and tried the following URL:
>> > > ...//.html and it didn't work.
>> >
>> > > Please, somebody tell me which is the correct way to create the
>> project's
>> > > directory in tomcat/webapps and what is the correct URL to start the
>> > > application.
>> >
>> > > Thank you!
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@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=.
>>
>>
>>
>

--

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-tool...@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: CommandPattern vs Server side Event Bus?

2009-11-26 Thread Youngster
Wouldn't it become much slower if you handle all event via the server?

On Nov 25, 7:47 pm, hbraun  wrote:
> right, errai-bus might be what you are looking for. Is does server
> push and has an easy to use programming model.
>
> On Nov 17, 10:03 am, pedjak  wrote:
>
> > > Sure by nature http does not support events instantiated on by the server.
> > > But there are some workarounds. Try to google for http server push, or
> > > comet.
>
> >   Have you heard for Errai (http://jboss.org/errai) ? It seems that it
> > does exactly what you need.
>
> >   Best,
>
> > Predrag

--

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-tool...@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: Standard.css always override my MyProject.css

2009-11-26 Thread philippe
Hi Sobis,

Try this:

In your Application.gwt.xml, add this line after standard theme
definition:


I think you must use !important, check if it's well write.

Delete the style definition in your html. On my project, it's work.

regards,
Philippe


On 26 nov, 09:23, Šobis  wrote:
> Hello,
>
> can you please help me with this issue, because I'm slowly losing my
> mind.
>
> I have GWT project, where in MyProject.gwt.xml I have
>
>          and
>
>         
> In MyProject.html I have:
>         
>
> but for TabPanel I always get style from Standard.css. What am I doing
> wrong?
>
> In MyProject.css I have
>
> .gwt-TabBarItem{
> .}
>
> .gwt-TabBarItem-selected{
> .}
>
> but in FF I get style from standard.css where class is
>
> I tried !imporatant thing but is not working.
>
> I added style tabRazred in code (for TabPabel.tabBar) and in CSS I did
> like this
>
> .tabRazred-TabBarItem{
> ...
>
> }
>
> But I'ts not working.
>
> So if anybody had similar problem or know how to solve this, please
> respond, because I'm quite desperate.
>
> Matej

--

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-tool...@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: Too much is happening (the events are crowding the bus)?

2009-11-26 Thread mariyan nenchev
Hi,
I am interested in this gwt architecture too. I did have a look at the video
and a hello world application implemented with this architecture, and really
i think that this is too much code to write. I also looked at the apache
hupa project, that is using the same architecture. And they did a generic
events for add,edit, delete, fetch, so you only will need to add new events
for your custom cases, which is not so bad.
I as we speak for this, does any one else know other open source projects
written with this architecture. I want to have a look at them, since a mail
client (hupa) is not the best to learn from.

Regards.

--

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




Re: using linker while deploying application

2009-11-26 Thread m.mil...@newelements.de
problen nr1 solved, thanks to sanjiv jivan!

the path for the smart gwt images and stuff could be set in the host
page:

 var isomorphicDir = "MODULE_NAME/sc/"; 

--

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-tool...@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: Full GWT Website with MS SQL Server 2008

2009-11-26 Thread gwtfanb0y
Very nice work!

On 24 Nov., 14:19, Joe  wrote:
> Hello Everyone, Please check this website and any comments or reviews
> are welcomed!
>
> http://www.property.com.lb
>
> A Website fully developed in GWT and connected to MS SQL Server 2008

--

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-tool...@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: OOPHM problem in gwt 2.0.0-rc1

2009-11-26 Thread emir
It works now with RC2

On Nov 24, 2:23 pm, emir  wrote:
> Unfortunately it did not made any difference :-(
>
> On Nov 24, 1:32 pm, "bch...@gmail.com"  wrote:
>
>
>
> > I have the same problem.
>
> > For me, adding the following to the call to com.google.gwt.dev.DevMode
> > removes this error.
>
> >                         
> >                         
>
> > I don't know why.
>
> > Let me know if it works for you.
>
> > On Nov 24, 6:35 pm, emir  wrote:
>
> > > Hi, I have some trouble using OOPHM, gwt 2.0.0-rc1 on Windows
> > > It is a sample application that contains two GWT modules, namely
> > > com.foo.Login and com.foo.Main.
>
> > > When run in hosted mode we first open the login.html using the 
> > > urlhttp://localhost:/login.html?gwt.codesvr=127.0.0.1:9997
> > > after successfully entering username and password it redirects 
> > > tohttp://localhost:/main.html?gwt.codesvr=127.0.0.1:9997
>
> > > In the hosted mode log messages it says cannot load "main.gwt.xml",
> > > not found in classpath etc.
> > > This error occurs even we manually visit first the login page then the
> > > main page.
>
> > > If we run the hosted mode on a linux server it works without error.
> > > It seems that on windows in hosted mode we cannot test two different
> > > modules from single hosted mode run.
>
> > > Regards.

--

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




GWT 2.0.0rc2 ::: Unknown argument: -portHosted

2009-11-26 Thread Prashant
Hi,

I am using GWT 2.0.0rc2 with GAE SDK 1.2.6 on Vista, whenever I try to run
or debug the project I am getting following error. I tried creating a fresh
project but the problem persists.


Unknown argument: -portHosted
Google Web Toolkit 2.0.0-rc2
DevMode [-noserver] [-port port-number | "auto"] [-whitelist
whitelist-string] [-blacklist blacklist-string] [-logdir directory]
[-logLevel level] [-gen dir] [-codeServerPort port-number | "auto"] [-server
servletContainerLauncher] [-startupUrl url] [-war dir] [-extra dir]
[-workDir dir] module[s]

where
  -noserverPrevents the embedded web server from running
  -portSpecifies the TCP port for the embedded web server
(defaults to )
  -whitelist   Allows the user to browse URLs that match the specified
regexes (comma or space separated)
  -blacklist   Prevents the user browsing URLs that match the specified
regexes (comma or space separated)
  -logdir  Logs to a file in the given directory, as well as
graphically
  -logLevelThe level of logging detail: ERROR, WARN, INFO, TRACE,
DEBUG, SPAM, or ALL
  -gen Debugging: causes normally-transient generated types to
be saved in the specified directory
  -codeServerPort  Specifies the TCP port for the code server (defaults to
9997)
  -server  Specify a different embedded web server to run (must
implement ServletContainerLauncher)
  -startupUrl  Automatically launches the specified URL
  -war The directory into which deployable output files will be
written (defaults to 'war')
  -extra   The directory into which extra files, not intended for
deployment, will be written
  -workDir The compiler's working directory for internal use (must
be writeable; defaults to a system temp dir)
and
  module[s]Specifies the name(s) of the module(s) to host


Please help me out.
Thanks.

--

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




Re: GWT 2.0.0rc2 ::: Unknown argument: -portHosted

2009-11-26 Thread Prashant
I tried updating the plugin using IDE and it said "a newer version is
already installed".

--

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




Re: GWT 2.0.0rc2 ::: Unknown argument: -portHosted

2009-11-26 Thread Thomas Broyer


On Nov 26, 10:55 am, Prashant  wrote:
> Hi,
>
> I am using GWT 2.0.0rc2 with GAE SDK 1.2.6 on Vista, whenever I try to run
> or debug the project I am getting following error. I tried creating a fresh
> project but the problem persists.
>
> Unknown argument: -portHosted
> Google Web Toolkit 2.0.0-rc2
> DevMode [-noserver] [-port port-number | "auto"] [-whitelist
> whitelist-string] [-blacklist blacklist-string] [-logdir directory]
> [-logLevel level] [-gen dir] [-codeServerPort port-number | "auto"] [-server
> servletContainerLauncher] [-startupUrl url] [-war dir] [-extra dir]
> [-workDir dir] module[s]

As noted in the release notes, "The -portHosted Development Mode flag
has been renamed to -codeServerPort"; and as also noted (well, a bit
implicit I concede), you need to update your Eclipse plug-in by
unzipping the RC2 version (just as you did with the RC1) as there's no
update site for them. (unzip the RC2 *above* the RC1, as it seems the
RC2 distro isn't "complete")

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

--

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




Re: GWT 2.0.0rc2 ::: Unknown argument: -portHosted

2009-11-26 Thread Prashant
it worked ! thanks.

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@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.




Client-side object storage

2009-11-26 Thread Aekold
Hi All!

I want to save some object (panel for example) to use it later. On the
server side I can use request, session or even some singleton or
static map. But what can I do on the client? Strings or other
primitives I can save into Cookies, but what to do with panels?

--

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-tool...@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-SL] setServiceEntryPoint()

2009-11-26 Thread Jacek Zebrowski
Hi !

I did all according to docu 
(http://gwt-widget.sourceforge.net/?q=node/51#GWTHandler)- my service is 
present under myapp.url/handler/testrpc.
but GWT expects me to supply : setServiceEntryPoint()...

When i set it to GWT.getModuleBaseURL()
it submits the service to :

localhost:8080/myapp/myapp which is obviously wrong... how should i 
proceed ?

-- 
Jacek

--

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




[Eclipse Google Plugin] How to make compiler NOT to compile to subfolder ?

2009-11-26 Thread Jacek Zebrowski
Hi !

i created myApp project using Eclipse.

When i hit Compile it compiles to /war/myApp/myapp.nocache.js while host 
page is in war/

The problem with it is that it makes my GWT.getModuleBaseURL() look like 
www.mysite.com/myApp and i dont want the myApp part there... any ideas ?

-- 
Jacek

--

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-tool...@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: Full GWT Website with MS SQL Server 2008

2009-11-26 Thread Joe
Thank you Siegfried, I always appreciate good feedback!

On Nov 26, 11:25 am, gwtfanb0y  wrote:
> Very nice work!
>
> On 24 Nov., 14:19, Joe  wrote:
>
>
>
> > Hello Everyone, Please check this website and any comments or reviews
> > are welcomed!
>
> >http://www.property.com.lb
>
> > A Website fully developed in GWT and connected to MS SQL Server 2008

--

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-tool...@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: Google Web Toolkit 2.0 RC2 Now Available

2009-11-26 Thread pjulien
I'm still unable to do any RPC calls using glassfish.  I still get a
parse error here:

WebModule[/WebApplication2]GWTService: ERROR: Failed to parse the
policy file '/org.yournamehere.Main/
D9C04143458C6B143A3BEFA60D252A85.gwt.rpc'
java.text.ParseException: Expected: className, [true | false]
at
com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream
(SerializationPolicyLoader.java:116)

Switching the server to Tomcat with my sample application works
however

On Nov 25, 3:52 pm, John LaBanca  wrote:
> Hi everyone,
>
> We're getting close! GWT 2.0 SDK RC2 and Google Plugin for
> Eclipse 1.2 RC2 are now available for you to try.
>
> Download the GWT 2.0 SDK RC2 
> here:http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=gw...
>
> The full documentation is still a work in progress, but you can find
> instructions for using the updated SDK and Eclipse plugin 
> here:http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC
>
> We've resolved several issues since RC1 and we feel pretty darn good
> about it, but as always, we caution you against using RC2 in production.
>
> Windows users who have previously installed the Google Web Toolkit Developer
> Plugin for IE will have to uninstall the old version and
> install the new version. This action is required because the file locations
> have changed. The RC1 installer required administrative
> privileges, but the new installer does not. Use the following steps:
> 1. Open Control Panel
> 2. Select Add/Remove Programs
> 3. Select Google Web Toolkit Developer Plugin for IE and click uninstall
> 4. During your next attempt to use GWT 2.0 development mode in IE, you will
> be prompted to install the GWT Developer Plugin, which will
> download an updated installer that does not require administrative
> privileges
>
> We are eager to get your feedback, both good and bad, in the Google Web
> Toolkit Developer Forum:http://groups.google.com/group/google-web-toolkit
>
> If you find specific bugs to report, please do so at the GWT Issue 
> Tracker:http://code.google.com/p/google-web-toolkit/issues
>
> Cheers,
> John LaBanca, on behalf of the GWT team

--

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-tool...@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 make compiler NOT to compile to subfolder ?

2009-11-26 Thread Thomas Broyer


On Nov 26, 3:23 pm, Jacek Zebrowski  wrote:
> Hi !
>
> i created myApp project using Eclipse.
>
> When i hit Compile it compiles to /war/myApp/myapp.nocache.js while host
> page is in war/
>
> The problem with it is that it makes my GWT.getModuleBaseURL() look
> like www.mysite.com/myApp and i dont want the myApp part there... any ideas ?

Use GWT.getHostPageBaseURL() instead?

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@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: Full GWT Website with MS SQL Server 2008

2009-11-26 Thread Christian Goudreau
Nice work.

Two things I have to say from my fast visit, but that's two thing you
probaly already know.

1- History Management
2- Your animation. I have done something more smooth than that, so I assume
that it's an incomplete work ? We see the desapearance and it's not smooth
at all.

Really nice work again !

Christian

On Thu, Nov 26, 2009 at 10:13 AM, Joe  wrote:

> Thank you Siegfried, I always appreciate good feedback!
>
> On Nov 26, 11:25 am, gwtfanb0y  wrote:
> > Very nice work!
> >
> > On 24 Nov., 14:19, Joe  wrote:
> >
> >
> >
> > > Hello Everyone, Please check this website and any comments or reviews
> > > are welcomed!
> >
> > >http://www.property.com.lb
> >
> > > A Website fully developed in GWT and connected to MS SQL Server 2008
>
> --
>
> 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-tool...@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-tool...@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: Google Web Toolkit 2.0 RC2 Now Available

2009-11-26 Thread pjulien
OK, this issue was actually that I had other projects in the app
server running with GWT 1.7.  It seems we can't run both side by
side.  The problem arises if the jar is pre-deployed or directly in
another war

On Nov 26, 10:22 am, pjulien  wrote:
> I'm still unable to do any RPC calls using glassfish.  I still get a
> parse error here:
>
> WebModule[/WebApplication2]GWTService: ERROR: Failed to parse the
> policy file '/org.yournamehere.Main/
> D9C04143458C6B143A3BEFA60D252A85.gwt.rpc'
> java.text.ParseException: Expected: className, [true | false]
>         at
> com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream
> (SerializationPolicyLoader.java:116)
>
> Switching the server to Tomcat with my sample application works
> however
>
> On Nov 25, 3:52 pm, John LaBanca  wrote:
>
>
>
> > Hi everyone,
>
> > We're getting close! GWT 2.0 SDK RC2 and Google Plugin for
> > Eclipse 1.2 RC2 are now available for you to try.
>
> > Download the GWT 2.0 SDK RC2 
> > here:http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=gw...
>
> > The full documentation is still a work in progress, but you can find
> > instructions for using the updated SDK and Eclipse plugin 
> > here:http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC
>
> > We've resolved several issues since RC1 and we feel pretty darn good
> > about it, but as always, we caution you against using RC2 in production.
>
> > Windows users who have previously installed the Google Web Toolkit Developer
> > Plugin for IE will have to uninstall the old version and
> > install the new version. This action is required because the file locations
> > have changed. The RC1 installer required administrative
> > privileges, but the new installer does not. Use the following steps:
> > 1. Open Control Panel
> > 2. Select Add/Remove Programs
> > 3. Select Google Web Toolkit Developer Plugin for IE and click uninstall
> > 4. During your next attempt to use GWT 2.0 development mode in IE, you will
> > be prompted to install the GWT Developer Plugin, which will
> > download an updated installer that does not require administrative
> > privileges
>
> > We are eager to get your feedback, both good and bad, in the Google Web
> > Toolkit Developer Forum:http://groups.google.com/group/google-web-toolkit
>
> > If you find specific bugs to report, please do so at the GWT Issue 
> > Tracker:http://code.google.com/p/google-web-toolkit/issues
>
> > Cheers,
> > John LaBanca, on behalf of the GWT team

--

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




Weird Spacing in ScrollPanel

2009-11-26 Thread Tyler
Hello everybody.

I'm developing an application that needs to return Local Search
results in a small ScrollPane. I am choosing, however, to manually
parse the search results so that I can display some particular
information without the rest of it.

The way that I am accomplishing this is shown here:

DecoratorPanel
-ScrollPanel
  -VerticalPanel
 -VerticalPanel
 -HTML
 -HTML
 -HTML
 -VerticalPanel
 -HTML
 -HTML
 -HTML
 -VerticalPanel
 -HTML
 -HTML
 -HTML

When I do this, however, I get one strange error. There are HUGE
spaces between the VerticalPanels which hold the HTMLs. I am hosting a
screenshot of the issue at students.cec.wustl.edu/~tbt1/screenshots/
weird.jpg .

I have used "panel.setSpacing(0);" but to no avail.

If anybody has a suggestion as to what may be causing this, I'd really
appreciate it.

--

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




Confused by java.util.Collections$UnmodifiableMap problem when using Window.Location.getParameterMap() : Source Code Included.

2009-11-26 Thread redboffin
Hello All :-)

I am building a sandpit web application using GWT that is hosted on
App Engine and displayed within facebook as a canvas app.

I am trying to implement validation, using
http://wiki.developers.facebook.com/index.php/User:Google_Web_Toolkit#Security_and_Authentication
as a guide.

The problem I am encountering is that when I try to use the Map
returned by Window.Location.getParameterMap() a java.util.Collections
$UnmodifiableMap problem occurs, even though I'm not modifying the Map
(at least I don't think I am modifying the Map).

I would be really grateful if someone could take the time to help my
understand what I am doing wrong here or point out where I should post
this problem if this forum is not a suitable place to raise this
problem.

Thank you in advance :-)

Source Code Below.

The onModuleLoad() code within my EntryPoint class is below;

fbValidationService.test(Window.Location.getParameterMap(), new
AsyncCallback() {

public void onFailure(Throwable caught) {

// Show the RPC error message to the user

RootPanel.get("serverResponse").add(new 
HTML("Remote Procedure
Call : Test 261109 10:51 - Failure"));
RootPanel.get("serverResponse").add(new 
HTML(SERVER_ERROR));
RootPanel.get("serverResponse").add(new 
HTML(caught.getMessage
()));
RootPanel.get("serverResponse").add(new 
HTML("Stack Trace"));
StackTraceElement[] stackTrace = 
caught.getStackTrace();
for(int i = 0 ; i < stackTrace.length ; i++) {
StackTraceElement element = 
stackTrace[i];
RootPanel.get("serverResponse").add(new 
HTML(element.getFileName
()));
RootPanel.get("serverResponse").add(new 
HTML(element.getClassName
()));
RootPanel.get("serverResponse").add(new 
HTML(element.getMethodName
()));
RootPanel.get("serverResponse").add(new 
HTML(Integer.toString
(element.getLineNumber(;
}

}

public void onSuccess(String result) {

// Show the RPC result to the user

RootPanel.get("serverResponse").add(new 
HTML("Remote Procedure
Call : Test - Success"));
RootPanel.get("serverResponse").add(new 
HTML(result));

}

});

The test() method within the RemoteServiceServlet object is below;

/**
 * Validation Test
 * To generate the signature for these arguments:
 * 1. Remove the fb_sig key and value pair.
 * 2. Remove the "fb_sig_" prefix from all of the keys.
 * 3. Sort the array alphabetically by key.
 * 4. Concatenate all key/value pairs together in the format "k=v".
 * 5. Append your secret key.
 * 6. Take the md5 hash of the whole string.
 * @param fbQueryStringParams
 * @return String
 */
public String test(Map>
fbQueryStringParams) {

String appSecret = TinyFBClient.APP_SECRET;
String fbSig = fbQueryStringParams.get("fb_sig").get(0);
StringBuilder sb = new StringBuilder();
TreeMap sortedMap = new TreeMap();

// Get a Set view of the Map of query string parameters.
Set>> mapEntries =
fbQueryStringParams.entrySet();

// Iterate through the Set view, inserting into a SortedMap all
Map.Entry's
// that do not have a Key value of "fb_sig".
Iterator>> i =
mapEntries.iterator();
while(i.hasNext()) {

Map.Entry> mapEntry = 
i.next();

if(!mapEntry.getKey().equals("fb_sig")) { // 1. Remove 
the fb_sig
key and value pair.


sortedMap.put(mapEntry.getKey(),mapEntry.getValue().get(0)); // 3.
Sort the array alphabetically by key.

}

}

// Get a Set view of the Map of alphabetically sorted Map.Entry
objects.
Set> sortedMapEntries = 
sortedMap.entrySet
();

// Iterate through the Set view, appending the concatenated 
key's
and value's
// to a StringBuilder object.
Iterator> ii = 
sortedMapEntries.iterator();
while(ii.hasNext()) {

Map.Entry mapEntry = ii.next();

// 4. Concatenate all key/value pairs together in the 
format "k=v".
sb.append(mapEntry.getKey().replaceAll("fb_sig_","")); 
// 2. Remove
the "fb_sig_" prefix from all of the keys.
  

Verification Email Process

2009-11-26 Thread Henry
Hi guys,

I have my GWT application and I need to implement a process to verify
the email address when someone creates a new account.
I've the URL (www.XX.com) which give me the whole application
every time I hit it.
In my process I'll send an email after the successful creation of the
account, this email will have a link inside like that (www.XX.com?
method=verify&username=FFF), by hitting this URL the server will give
me the application again like the first time, then on the onModule()
of my entryPoint class, I'll take the parameters of this URL, and in
that case, I'll make and asyncronohus call to the server to verify the
email and wait for the callback to show a panel to the user saying
that the email has been verify. Before getting that callback I can
show something saying that the email has being verified while I'm
waiting for the callback.
Is it the right way to go?

Thanks 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-tool...@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: Client-side object storage

2009-11-26 Thread Erick Audet
Perhaps Google Gears can help?

On Thu, Nov 26, 2009 at 7:13 AM, Aekold  wrote:

> Hi All!
>
> I want to save some object (panel for example) to use it later. On the
> server side I can use request, session or even some singleton or
> static map. But what can I do on the client? Strings or other
> primitives I can save into Cookies, but what to do with panels?
>
> --
>
> 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-tool...@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.
>
>
>


-- 
Erick Audet B.Sc. M.Sc.
site: www.jarics.com
email: eau...@jarics.com
Skype:erick.audet
LinkedIn: http://www.linkedin.com/in/erickaudet
tel.: 418.682.9712

Erick Audet B.Sc. M.Sc.
Architecte organique PANORAMA

Institut national de santé publique du Québec
1000, route de l'Église, suite 600
Québec (Québec) G1V 3V9
Tél: 418 654-3010 # 5439
Courriel : erick.au...@inspq.qc.ca

--

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




Back button functionality problem

2009-11-26 Thread Durgesh
Hi
  I am developing a web application using GWT 1.5. I have few
problems:
1- I want to use back button on mouse right click. (Like any
web application)
 2- when i disable any button , it does not reflect in the
client side in Mozilla browser whereas it works at Internet explorer .
3- I want to implement all the mouse right click functionality in my
application like open in new window, open in new tab.
4- i want to resize my page according to window how does it use
window resizer?

If anybody has solution of above problems let me know

Thanks&Regards
Durgesh
Mail Id : durgesh1...@gmail.com

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@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: Google Web Toolkit 2.0 RC2 Now Available

2009-11-26 Thread - Ray
Hi,
I've got the same issue as you did. The same Date Object gives me the Time
with different TImezone, sometimes with CET, sometimes with UTC. It happens
randomly. Now i am using Calender instead of Date.



2009/11/25 armogur 

> is it possible, that java.util.Date behaves differently in devmode
> than production mode?
>
> i am using hungarian locale, and the getTimezoneOffset() function
> gives me different values on a Date object in devmode than production
> mode!
>
> On nov. 25, 21:52, John LaBanca  wrote:
> > Hi everyone,
> >
> > We're getting close! GWT 2.0 SDK RC2 and Google Plugin for
> > Eclipse 1.2 RC2 are now available for you to try.
> >
> > Download the GWT 2.0 SDK RC2 here:
> http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=gw...
> >
> > The full documentation is still a work in progress, but you can find
> > instructions for using the updated SDK and Eclipse plugin here:
> http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC
> >
> > We've resolved several issues since RC1 and we feel pretty darn good
> > about it, but as always, we caution you against using RC2 in production.
> >
> > Windows users who have previously installed the Google Web Toolkit
> Developer
> > Plugin for IE will have to uninstall the old version and
> > install the new version. This action is required because the file
> locations
> > have changed. The RC1 installer required administrative
> > privileges, but the new installer does not. Use the following steps:
> > 1. Open Control Panel
> > 2. Select Add/Remove Programs
> > 3. Select Google Web Toolkit Developer Plugin for IE and click uninstall
> > 4. During your next attempt to use GWT 2.0 development mode in IE, you
> will
> > be prompted to install the GWT Developer Plugin, which will
> > download an updated installer that does not require administrative
> > privileges
> >
> > We are eager to get your feedback, both good and bad, in the Google Web
> > Toolkit Developer Forum:
> http://groups.google.com/group/google-web-toolkit
> >
> > If you find specific bugs to report, please do so at the GWT Issue
> Tracker:http://code.google.com/p/google-web-toolkit/issues
> >
> > Cheers,
> > John LaBanca, on behalf of the GWT team
>
> --
>
> 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-tool...@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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




how to make communicate "two rootPanels"?

2009-11-26 Thread loveley
hi,

I think I found a method to have some GWT components on a HTML page, 
nothing miraculous : I create the components in eclipse, assign them to 
a RootPanel.get("truc"); and in the HTML page generated by eclipse I add 
a div with the id="truc".
If I want to modify the HTML page I only have to keep the script tag and 
the id I mentioned above.

but I have a question : is there a way to make two components (ie 
identified by its rootPanel) communicate, in the java code and in a way 
that e.g. in a first component I enter in a textBox a string "abc", I 
click on a button in this component, and immediately the second 
component's label has as text the content of the textBox?

thank you,

olivier.








___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@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: Full GWT Website with MS SQL Server 2008

2009-11-26 Thread Abdullah Shaikh
Hey Joe, nice work, as I am new to GWT I don't know, but I guess it's
possbile, can we have the drop down to get dropped when clicked anywhere on
the dropdown rather then only when clicked on the arrow on the rightmost
side, that will make the clicking easier.

Regards,
Abdullah

On Thu, Nov 26, 2009 at 9:15 PM, Christian Goudreau <
goudreau.christ...@gmail.com> wrote:

> Nice work.
>
> Two things I have to say from my fast visit, but that's two thing you
> probaly already know.
>
> 1- History Management
> 2- Your animation. I have done something more smooth than that, so I assume
> that it's an incomplete work ? We see the desapearance and it's not smooth
> at all.
>
> Really nice work again !
>
> Christian
>
> On Thu, Nov 26, 2009 at 10:13 AM, Joe  wrote:
>
>> Thank you Siegfried, I always appreciate good feedback!
>>
>> On Nov 26, 11:25 am, gwtfanb0y  wrote:
>> > Very nice work!
>> >
>> > On 24 Nov., 14:19, Joe  wrote:
>> >
>> >
>> >
>> > > Hello Everyone, Please check this website and any comments or reviews
>> > > are welcomed!
>> >
>> > >http://www.property.com.lb
>> >
>> > > A Website fully developed in GWT and connected to MS SQL Server 2008
>>
>> --
>>
>> 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-tool...@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-tool...@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-tool...@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: GPE debug error: ContentViewer must have a content provider when input is set

2009-11-26 Thread Jeff Chimene
On 11/25/2009 08:36 AM, Rajeev Dayal wrote:
> Hey Jeff,
>
> Sorry it took me a while to get back to you.
>
> On Wed, Nov 18, 2009 at 5:43 PM, Jeff Chimene  > wrote:
>
>
>
> On Wed, Nov 18, 2009 at 3:12 PM, Rajeev Dayal  > wrote:
>
> Hi Jeff,
>
> This is a known bug that we'll have fixed for the next RC.
>
> To avoid this error, do not close the Web App Launch View once
> it has been opened (minimization is okay, the problem occurs
> when you actually close the view).
>
>
> Hi Rajeev,
>
> That's probably the case. I do seem to recall closing the view,
> rather than minimizing same. The new view is extremely cool, btw.
>
>
> Glad that you're finding it helpful :).
>
>
> If you do get into this state, restarting Eclipse will fix the
> problem.
>
>
> I did cycle Eclipse, but it didn't resolve the issue. I normally
> exit Eclipse w/ one or more projects open.
>
>
> That is definitely odd. Tell me, after you cycled Eclipse, did you ever
> close the Web App Launch View, or once you restarted Eclipse, did you
> just open the view and experience this problem?

I cannot remember. To be sure, are we talking about the view that has an 
icon that is a blue globe containing a stylized "g"? I see in RC2 it's 
now called "Development Mode". If that's the view, I open it via the 
"Debug" perspective. Rarely, if ever, do I explicitly open the view. In 
RC1 & RC2, I try to minimize, rather than close it.

FWIW, this failure hasn't occurred again.

I sometimes use Eclipse in an X environment where the server and client 
are different machines. It may be that the subject of this thread was a 
result of such a switch. I have noticed that Eclipse sometimes fails to 
start correctly after switching X servers. In such cases, Eclipse fails 
when opening one or more Editor Views. The error message is displayed 
using the Eclipse "details" error widget. The message associated with 
this thread wasn't displayed using that error widget. I'll capture the 
associated message and post to this thread when next Eclipse fails to 
open an Editor View.

--

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




How to manage servlet configurations

2009-11-26 Thread Abdullah Shaikh
Hi,

I new to GWT and looking to Ajaxify an already existing system, as there
will be lot of servlet config to manage, I came across gwt-dispatch, can
anybody let me know is gwt-dispatch perfect for this or are there any other
frameworks which will let me minimise the no. of servlets ?


Thanks,
Abdullah

--

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-tool...@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: flextable getcellcount and clear issue...

2009-11-26 Thread Sudeep S
can u post the code snippet for clearing cells.

i guess you might be doing table.clear .. that only removes the widgets from
the cells but the not cell as a whole

 u can try doing table.removeRow(index);
On Thu, Nov 26, 2009 at 11:46 AM, golfdude  wrote:

>
> gwt 1.7...
>
> I have a flextable in which I add a row, clear the table, and then add
> another row. The getCellCount does not get reset during the second add
> to zero. So the cells get added after the first col count.
>
> Anybody else see this ? I see that this was reported as a bug in 2006
> but I still see the issue.
>
>
> gd
>
> --
>
> 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-tool...@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-tool...@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: Google Web Toolkit 2.0 RC2 Now Available

2009-11-26 Thread Feldman, Nir
Is there any rough estimation on the timeline for releasing GWT 2.0?

Thanks,
Nir

From: John LaBanca [mailto:jlaba...@google.com]
Sent: Wednesday, November 25, 2009 10:52 PM
To: Google-Web-Toolkit@googlegroups.com
Subject: Google Web Toolkit 2.0 RC2 Now Available

Hi everyone,

We're getting close! GWT 2.0 SDK RC2 and Google Plugin for Eclipse 1.2 RC2 are 
now available for you to try.

Download the GWT 2.0 SDK RC2 here:
http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=gwt-2.0.0-rc2

The full documentation is still a work in progress, but you can find 
instructions for using the updated SDK and Eclipse plugin here:
http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC

We've resolved several issues since RC1 and we feel pretty darn good about it, 
but as always, we caution you against using RC2 in production.

Windows users who have previously installed the Google Web Toolkit Developer 
Plugin for IE will have to uninstall the old version and install the new 
version. This action is required because the file locations have changed. The 
RC1 installer required administrative privileges, but the new installer does 
not. Use the following steps:
1. Open Control Panel
2. Select Add/Remove Programs
3. Select Google Web Toolkit Developer Plugin for IE and click uninstall
4. During your next attempt to use GWT 2.0 development mode in IE, you will be 
prompted to install the GWT Developer Plugin, which will download an updated 
installer that does not require administrative privileges

We are eager to get your feedback, both good and bad, in the Google Web Toolkit 
Developer Forum:
http://groups.google.com/group/google-web-toolkit

If you find specific bugs to report, please do so at the GWT Issue Tracker:
http://code.google.com/p/google-web-toolkit/issues

Cheers,
John LaBanca, on behalf of the GWT team

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




Chrome and firefox oophm plugin

2009-11-26 Thread Gal Dolber
Is there any reason why the google chrome plugin is so slow compared to the
firefox?
And what about firefox crashes?

I have two choices:
1- Firefox runs faaast but, it crashes
2- Chrome runs sloow but it is stable

--

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-tool...@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: Problem to structure GWT application (problème pour structurer l'application GWT)

2009-11-26 Thread TalkinJive
Thanx a lot Sri.

On 26 nov, 03:39, Sripathi Krishnan 
wrote:
> Approach 1 is the way to go with GWT.  See this discussion
> thread.
>
> GWT doesn't play all that well with Struts (or any other server side
> web-framework). Use the approach if you are stuck with a legacy application
> - but otherwise avoid it.
>
> --Sri
>
> 2009/11/26 TalkinJive
>
>
>
> > Hi,
>
> > I'm new with GWT. I've studied the StockWatcher tutorial. Now I want
> > to do my application.
> > But I can't understand how to organize it ???
>
> > Which is right (1° or 2°) ?
>
> > 1°) A GWT application is made of only one HTML page. I have to develop
> > different Panel inside (for exemple).
>
> > 2°) A GWT application can be made of a few HTML pages.
> > In this case (which is right ?) :
> > 1 HTML page = 1 EntryPoint = 1 module ===> I have to create a module
> > for each HTML page ?
> > or It's possible to have multiple EntryPoint en multiple HTML pages in
> > the same module ?
>
> > 3°) What about an application with GWT and Struts together ?
>
> > Perhaps I'm wrong and no proposal (1° and 2°) is right.
> > Thanx for your adivces.
> > TalkinJive.
>
> > --
>
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@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-tool...@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.




FormPanel SubmitCompleteEvent not getting full results that the server is sending back

2009-11-26 Thread Mohamed Mansour
Hello,

I am using FileUpload widget within a FormPanel. Basically, I am sending an
XML file to FileUpload to test.jsp, where that JSP file is sending that text
file back wrapped in a  tag.

The problem is that event.getResults() from the SubmitCompleteHandler trims
off the result from the beginning. The XML File I am sending is 110lines,
where the result should be:

> 

  Import XML

  true

  

   

  




But I am only getting the following back:

>   true

  

   

 




Any ideas why? The code snippet is as follows:

*GWT:*

> FormPanel form = new FormPanel();

form.setAction("../test.jsp");

form.setEncoding("multipart/form-data");

form.setMethod("post");

form.addSubmitCompleteHandler(new SubmitCompleteHandler(SubmitCompleteEvent
> event) {

   Log.debug(event.getResults());

   // Window.alert(event.getResults());

});


*JSP:*

> <%

   ... Read the buffer and place it into a String



  //  Prints on the console the correct full "XML" that I sent through
> FileUpload.

  System.out.println(content);

  out.println("" + content + "");

  out.close();

%>



 - Mohamed Mansour

--

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-tool...@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: FormPanel SubmitCompleteEvent not getting full results that the server is sending back

2009-11-26 Thread Mohamed Mansour
Hmm, my post formatted it all wrong. Here it is again:

---

I am using FileUpload widget within a FormPanel. Basically, I am
sending an XML file to FileUpload to test.jsp, where that JSP file is
sending that text file back wrapped in a  tag.

The problem is that event.getResults() from the SubmitCompleteHandler
trims off the result from the beginning. The XML File I am sending is
110lines, where the result should be:

  Import XML
  true
  
   
  


But I am only getting the following back:
  true
  
   
 


Any ideas why? The code snippet is as follows:

GWT:
FormPanel form = new FormPanel();
form.setAction("../test.jsp");
form.setEncoding("multipart/form-data");
form.setMethod("post");
form.addSubmitCompleteHandler(new SubmitCompleteHandler
(SubmitCompleteEvent event) {
   Log.debug(event.getResults());
   // Window.alert(event.getResults());
});

JSP:
<%
   ... Read the buffer and place it into a String

  //  Prints on the console the correct full "XML" that I sent through
FileUpload.
  System.out.println(content);
  out.println("" + content + "");
  out.close();
%>

--

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




Should we use maven or not for a project?

2009-11-26 Thread jbdhl
I'm about to start a new GWT project but can't decide weather to use
maven or not - partly because I'm completely new to maven. Are there
really large benefits from using maven? I've heard, that not even
google is using it, and this worries me a little.

Our project will be a bit of a mix of various stuff and I don't know
how well this fits into the maven structure:

  * besides the usual client/servlet code, we will build a few smaller
java tools to be run periodically by cron.

  * we will use a bunch of scripts written in various languages to
solve different tasks

  * the project will include a bunch of documentation and text
documents

All in all: what is your recomendation? Maven or not?

--

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-tool...@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: FormPanel SubmitCompleteEvent not getting full results that the server is sending back

2009-11-26 Thread Thomas Broyer


On 26 nov, 22:04, Mohamed Mansour  wrote:
> Hmm, my post formatted it all wrong. Here it is again:
>
> --- 
> 
>
> I am using FileUpload widget within a FormPanel. Basically, I am
> sending an XML file to FileUpload to test.jsp, where that JSP file is
> sending that text file back wrapped in a  tag.
>
> The problem is that event.getResults() from the SubmitCompleteHandler
> trims off the result from the beginning. The XML File I am sending is
> 110lines, where the result should be:
> 
>   Import XML
>   true
>   
>    
>   
> 
>
> But I am only getting the following back:
>   true
>   
>    
>  
> 
>
> Any ideas why?

To get the SubmitCompleteEvent, you have to send the result back as
text/html, which also means it'll be interpreted as HTML by the
browser (even if it gets loaded in a hidden iframe, it still is an
iframe).
Here, the  is ignored because it's not a known element, then
Import XML is parsed as the document's title (the one
that'd be displayed in the window title bar or tab if the document
were showed in a "full window" rather than an iframe), then again
 is ignored, and finally "true" implies the  start tag
(and is parsed as the very first document's body content).
Given that SubmitCompleteEvent::getResults() returns the
document.body.innerHTML of the iframe, it effectively starts with the
"true" and everything before it is somehow "ignored".

Conclusion: if you want to send anything containing "<" and "&" in
response to a FormPanel submission, escape it (< and &) on the
server-side and then unescape it on the client-side.

--

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-tool...@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: Should we use maven or not for a project?

2009-11-26 Thread CI-CUBE
I found maven pretty heavy and can live w/o it. If some day I feel the
need to have something like that I can use it anyway, no problem. Just
my personal opinion.

   Ekki

* GWT Rocks! * SmartGWT Rocks Even Harder! * SmartGWT EE 1.2.1/LGPL
1.3,
GWT 1.7.1, GAE 1.2.6, Jetty 7.0.0, Eclipse 3.5.1, JRE 1.6.0_16

CI-CUBE.BIZ feat. CubeBrowser.AppSpot.com www.EasternGraphics.com/X-4GPL


On Nov 26, 10:46 pm, jbdhl  wrote:
> I'm about to start a new GWT project but can't decide weather to use
> maven or not - partly because I'm completely new to maven. Are there
> really large benefits from using maven? I've heard, that not even
> google is using it, and this worries me a little.
>
> Our project will be a bit of a mix of various stuff and I don't know
> how well this fits into the maven structure:
>
>   * besides the usual client/servlet code, we will build a few smaller
> java tools to be run periodically by cron.
>
>   * we will use a bunch of scripts written in various languages to
> solve different tasks
>
>   * the project will include a bunch of documentation and text
> documents
>
> All in all: what is your recomendation? Maven or not?

--

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-tool...@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 Custom Widget => How to do event handling...

2009-11-26 Thread Chris
Hi Guys

I'm trying to build my own custom widget. How can i add event handling
to the widget?

Here's there idea...

I have a Composite (my View), on which I add a Timeline Widget
The Timeline widget has many bands TimeBand
and each TimeBand has many TimeEvents.

I've used the DOM.createDiv(), and then GwtExt to have full control
over setting styles on elements. I need to do this (I think, but I'd
love to proven wrong), cos each of my events (individual divs) needs
to be carefully positioned on a scrollable div, and so on...

Anyway, I've kind of got the layout working to a certain degree. What
I'm not sure if how to get the Mouse event handlers firing and
captured so that i can dynamically do stuff to my widget...

so for example:

class Timeline extends Widget {
Element t;

Timeline() {
   t = DOM.createDiv();
}


public void addTimeBand(TimeBand band) {
t.append(band.getDiv());
}
}

class TimeBand {
ELement band;
TimeBand() {
band = DOM.createDiv();
}

public Element getDiv() {
return band;
}
}



I've tried a number of different things to get the event handlers
working but I can't seem to add events to my TimeBand
All I want to do is track mouse clicks and mouse movements.

Cheers
Chris

--

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-tool...@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: PopupPanel.center() not working in Firefox 3.5.5

2009-11-26 Thread Dazza
Why aren't you using GWT provided Window.getClientWidth() and
Window.getClientHeight()?

--

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




A third axis?

2009-11-26 Thread fker...@gmail.com
A question about deferred binding... If I define a new property in the
gwt.xml module file; say,



and an appropriate generator



that will get the time of the day, and generate the property value
accordingly.

Of course, I would have some deferred binding rules that would replace
some classes with other classes, depending on the timeoftheday
property.

(Please, bear with me, and assume there is some valid reason for using
different classes at different parts of the day!)

Am I totally mistaken, or would then the compiler generate FOUR
(because of the four values of the property) times as many versions of
the JavaScript code?

That is, if you supported 5 languages for i18n purposes, GWT would
produce 5 times 6 versions of the code (5 languages times 6 supported
browser types) -- with my timeoftheday variable, would that become 5
times 6 times 4 versions?

--

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




GWT 2.0 R2, implementation of CssResource css();

2009-11-26 Thread Ewald Pankratz
I'm too stupid to understand how all the things are connected. I tried
to find out where the abstract methode css() is implemented. It's in
Mail sample of GWT 2.0 R2.

  interface GlobalResources extends ClientBundle {
@NotStrict
@Source("global.css")
CssResource css();
  }

thanks

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@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: GPE debug error: ContentViewer must have a content provider when input is set

2009-11-26 Thread Jeff Chimene
Hi Rajeev

Here's a log from an Eclipse crash this evening. This occurs during startup.
It's usually cured by closing and reopening the project.

org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException:
An error occurred while automatically activating bundle
com.google.gwt.eclipse.core (511).
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:125)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)
at
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:381)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:457)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at
org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:874)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at
org.eclipse.jdt.core.JavaCore.computeClasspathContainerInitializer(JavaCore.java:2699)
at
org.eclipse.jdt.core.JavaCore.getClasspathContainerInitializer(JavaCore.java:2675)
at
org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2589)
at
org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1778)
at
org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:2652)
at
org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2578)
at
org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2679)
at
org.eclipse.jdt.internal.core.ClasspathChange.generateDelta(ClasspathChange.java:218)
at
org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:1916)
at
org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:470)
at
org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at
org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:186)
at
org.eclipse.core.internal.resources.SavedState.processResourceChangeEvents(SavedState.java:77)
at
org.eclipse.jdt.internal.core.JavaModelManager$20.run(JavaModelManager.java:4623)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1782)
at
org.eclipse.jdt.internal.core.JavaModelManager$19.run(JavaModelManager.java:4615)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.osgi.framework.BundleException: The activator
com.google.gwt.eclipse.core.GWTPlugin for bundle com.google.gwt.eclipse.core
is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:157)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:751)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
... 35 more
Caused by: java.lang.NoClassDefFoundError:
com/google/gdt/eclipse/core/AbstractGooglePlugin
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:183)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:576)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(C

Re: GPE debug error: ContentViewer must have a content provider when input is set

2009-11-26 Thread Jeff Chimene
On Thu, Nov 26, 2009 at 8:29 PM, Jeff Chimene  wrote:

> Hi Rajeev
>
> Here's a log from an Eclipse crash this evening. This occurs during
> startup. It's usually cured by closing and reopening the project.


Nope. I had to exit Eclipse to fix this error.  The Project Explorer view
wouldn't open.

--

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-tool...@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: Back button functionality problem

2009-11-26 Thread Zak
1 - Use History Tokens to change the app's URL when you change state.
This will trick the browser into thinking the use has navigated to
different pages. More info:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/History.html

2 - Could you provide more information? Perhaps the code that's
broken?

3 - This functionality works on  tags, which is GWT's Hyperlink
widget: 
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/Hyperlink.html

4 - This code should do the trick:

Window.addResizeHandler(new ResizeHandler() {
  public void onResize(ResizeEvent event) {
 // do stuff
  }
});

On Nov 26, 4:12 am, Durgesh  wrote:
> Hi
>           I am developing a web application using GWT 1.5. I have few
> problems:
>         1- I want to use back button on mouse right click. (Like any
> web application)
>          2- when i disable any button , it does not reflect in the
> client side in Mozilla browser whereas it works at Internet explorer .
> 3- I want to implement all the mouse right click functionality in my
> application like open in new window, open in new tab.
> 4- i want to resize my page according to window how does it use
> window resizer?
>
> If anybody has solution of above problems let me know
>
> Thanks&Regards
> Durgesh
> Mail Id : durgesh1...@gmail.com

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@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.