Re: What validation framework best fits with Google-gin

2009-07-31 Thread Norman Maurer

I'm using gwt-vl but I'm not sure how well it work with Gin ( not
tried to inject it yet).

Bye,
Norman

2009/7/31 Kwhit kwhitting...@gmail.com:

 The only one I've found is gwt-validation. It works pretty well but it
 has a few quirks particularly in letting exceptions disappear. The
 project isn't very active.

 Always make sure you have a public getter for the field you're
 validating.
 


--~--~-~--~~~---~--~~
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 and IE 8

2009-07-31 Thread Roland

Hello,

I've built a gwt application which currently is based on gwt version
1.3.3

I haven't had any problems loading it with IE 6,7 ,FF3-3.5 and Chrome
but with IE 8 all I get is:

While attempting to load module ... , property user.agent was set
to unexpected value unknown ... 

I understand it is a user agent issue and I've tried to add this
property to module's gwt.xml like this:

set-property name=user.agent value=ie8 /
set-property name=user.agent
value=ie6,gecko,gecko1_8,safari,opera,ie8 /

sadfully neither gives expected result.

As gwt version upgrade comes as last option, I'd like to ask you,
whether there are some ways to get my app shown with IE8 without
upgrading gwt libraries.

Thanks in advance,
Roland
--~--~-~--~~~---~--~~
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: Basic Response redirect Question GWT

2009-07-31 Thread olivier nouguier
Hi
 It's must be easier to perform this redirection before the GWT phase aka
JSP / controller.

 Nevertheless you can access the underlying JS object location and URL to
perform your job via the Window.location (
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Window.Location.html)
object.

HIH



On Fri, Jul 31, 2009 at 1:59 AM, Guess What gang...@gmail.com wrote:


 I am a newbie to GWT . This is  an issue which i am running into since
 all along I have been working on HTML and JSP .

 Lets say I have a scenario , where I have a url /myapp/test.jsp?
 oderId= 123
 Now my Entry Point class for this test.jsp is say Test.java

 onModuleLoad of Test.java
 {
 is this Possible .
  if(orderId == null)
response.rediret(error.jsp)

 }

 PS: I did figire put how to get orderID from request into on Entry
 Point class. Thanks to this group .

 



-- 
  We can live without religion and meditation, but we cannot survive without
human affection.
--
Dalai Lama

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



Re: GWT and IE 8

2009-07-31 Thread Paul Robinson

Try adding this to the head section of your html page:
meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 /


Roland wrote:
 Hello,

 I've built a gwt application which currently is based on gwt version
 1.3.3

 I haven't had any problems loading it with IE 6,7 ,FF3-3.5 and Chrome
 but with IE 8 all I get is:

 While attempting to load module ... , property user.agent was set
 to unexpected value unknown ... 

 I understand it is a user agent issue and I've tried to add this
 property to module's gwt.xml like this:

 set-property name=user.agent value=ie8 /
 set-property name=user.agent
 value=ie6,gecko,gecko1_8,safari,opera,ie8 /

 sadfully neither gives expected result.

 As gwt version upgrade comes as last option, I'd like to ask you,
 whether there are some ways to get my app shown with IE8 without
 upgrading gwt libraries.

 Thanks in advance,
 Roland

   

--~--~-~--~~~---~--~~
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 implement GWT project on apache tomcat

2009-07-31 Thread Dan

I'm probably copying more files than needed, but there is a very
simple way that works for me (Windows server and development
workstation in this example):

1.  Under webapps folder on server, create a folder for your app (like
myapp).

2.  Copy from the Eclipse workspace the contents of your war folder to
the myapp folder on the server.

3.  Restart the server.

Like I said, maybe some things get copied that are not strictly
needed, but it works.



On Jul 30, 8:08 am, Saurabh Naik saurabhsn...@gmail.com wrote:
 Hello

           I have done one small application in GWT but facing some problems
 while deploying it to Tomcat. I am using Eclipse for createing gwt project.
 there in war folder the structure is ready I made the war file which
 includes all folders  files withing the war folder and deployed it to
 tomcat. after runnig on tomcat only it displays the page but nothing is
 happening after clicking on button.

 The same application I run through Eclipse Google host browser  it is
 running their successfully. 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
-~--~~~~--~~--~--~---



Database Access Denied: Trying to fetch data from Sybase using GWT plugin in Eclipse

2009-07-31 Thread Rohit B Jain

Hi,

I am new to web application development in Java and using Eclipse as
IDE to develop the same.
I have made use of GWT plugin and trying to fetch data with RPC
mechanism

I am able to pass string from server to client and the other way
round, but when I try to fetch data from Sybase using Sun.ODBC.JDBC
driver I am getting access denied error

I have also disable Google App Engine and try to fetch data but fail :
(

Looking toward some linghts on resolving this issue
This will be a good learning phase for me in my career with GWT

Thanks in advance

Regards
Rohit B. Jain

--~--~-~--~~~---~--~~
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: Eclipse plugin for Eclipse 3.5 (Galileo)

2009-07-31 Thread Marton Szucs
Hurray! :D

Thousands of thanks to the GWT-plugin team (as we say it here in Sweden ;)


On Thu, Jul 30, 2009 at 4:54 PM, Gugas carlos.mfa.mart...@gmail.com wrote:


 Well done everybody!!!
 We can crack open the champaigne!
 3.5 plugin is out!!!

 On 29 Jul, 17:05, petB peter.bo...@gmail.com wrote:
  On Jul 28, 10:14 pm, Juraj Vitko juraj.vi...@gmail.com wrote:
 
   If you know anything about software development, then you know that
   any and all development time estimation is just a wild guess.
 
  It is still a good practice to provide release estimates, whatever
  imprecise.
 
  I just finished one (not web oriented) project and would like to start
  a new one with GWT. I need to decide if to instal Eclipse 3.5 and wait
  for GWT plugin or go with Eclipse 3.4. As I want to read some
  literature before, waiting  a week or more is not a problem. Not
  having this information, downgrading Eclipse to 3.4 and then upgrading
  it again within few days would be annoying.
 


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



Displaying a loading image while waiting on RPC

2009-07-31 Thread Nick_Zaillian

Hey all.  This is my first post to the group.  I've got a little GWT/
App Engine web app (at nicksmap.org) I've whipped up that maps New
York area craigslist rental listings (yeah, I know, others have done
it already, but all of the other implementations miss A LOT of
listings and have no flagging features...so I thought there was room
for me to go ahead and try to do it right).  I've got an RPC that gets
called every time a user drags a map.  This function (ermethod)
provides data that is then used to populate the map with markers and
correspnding infowindow content.  Because of the sheer number of
listings I am dealing with, the RPC can often take a few seconds to
deliver all of its data, during which time it looks to the user like
nothing is happening.  I would like to be able to display a loading
icon during this time.  I'm sure that this is a pretty trivial thing
to do -- I'm just not sure how to do it, so thought I should ask the
group.
Thanks,
Nick Zaillian

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



Last post solution worked

2009-07-31 Thread appcominup

In netbeans, by clicking the run and debug button instead of the run
only button, netbeans will launch the gwt hosted mode window.  So I
guess it is setting it up somehow without using the ant build script
hosted mode.  But it does launch hosted mode, so thats good.

--~--~-~--~~~---~--~~
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 JAR Issue

2009-07-31 Thread CI-CUBE

Well, the basic issue (JAR creation) is fixed, I simply re-installed
Eclipse (planned to switch to 3.5 anyway).

Just for clarification (and to avoid additional effort): if I want to
include a separate Java library, this must be introduced to GWT as
another GWT project? So there's no way - e.g. by source paths or
whatever - to import the corresponding classes directly? Introducing
another GWT Module sounds like overhead to me... Can someone please
verify this?

TIA!

   Ekki

On Jul 31, 1:06 am, frederick8206 frederick8...@gmail.com wrote:
 You should import everything that will be referenced by gwt 'client' code.
 In your example, you should first make the project 1 as a gwt module, named 
 it net.myapp.module1.Module1. And then in you project 2, you should declare 
 import m1 in the .GWT.xml file for project 2.

 The import statement is like this inherits name='net.myapp.module1.Module1'/

--~--~-~--~~~---~--~~
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: Admin Area protected by simple scripted password in GWT

2009-07-31 Thread Nickelnext

But, like i said, protecting admin.html with a tomcat rule like this:
 security-constraint
   web-resource-collection
web-resource-nameReports Browser/web-resource-name
url-patternadmin.html/url-pattern
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
/security-constraint

login-config
auth-methodBASIC/auth-method
realm-nameProtected Area/realm-name
/login-config

wouldn't be enough? Once i have protected my admin.html page with
this, the user can't download that page without permission.
Or am I missing/misunderstanding something?

Nickelnext
--~--~-~--~~~---~--~~
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: Eclipse plugin for Eclipse 3.5 (Galileo)

2009-07-31 Thread andreas

Hey guys,

IT'S OUT!

http://dl.google.com/eclipse/plugin/3.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: Bundling Background Images defined in CSS

2009-07-31 Thread Paul MERLIN

Have a look at SmartSprites http://smartsprites.osinski.name/

Regards

/Paul

*

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



different gwt.xml files in hosted mode with noserver?

2009-07-31 Thread Ed

Hellu,

Kelly Norton mentioned on Google I/O during his Measure in
Milliseconds presentation that it's good to have different gwt.xml
files for different app config's: debug, test, release.

I agree with this, but how can I realize this in hosted mode with the
option -noserver?

I run hosted mode with the option -noserver like explained in:
http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html

If I understand it correctly:
The difference with the -noserver option is that you load your module
through a js script that is included in the html page and contains the
module hardcoded.
So I think I have to include another js script that will include
another module if I want to include different modules for debug, test,
release, or not? (a different module for different modes like:
ModuleNameDebug.gwt.xml, ModuleNameRelease.gwt.xml)

BTW: The presentation of Kelly Norton:
http://code.google.com/events/io/sessions/MeasureMillisecondsPerformanceTipsWebToolkit.html
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Totorial: How to produce JavaScript libraries using GWT

2009-07-31 Thread Manuel Carrasco Moñino
Hello guys.

Based on my experience exporting
Gwtchismeshttp://code.google.com/p/gwtchismes/and
Gwtupload http://code.google.com/p/gwtupload/ libraries into javascript
using gwt-exporter http://code.google.com/p/gwt-exporter/r, I've written a
brief tutorial explaining the procedure and the usage of gwt-exporter.

I hope you could be find it useful.

Thanks
Manolo Carrasco

--~--~-~--~~~---~--~~
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: PHP in hosted mode

2009-07-31 Thread Tobe



On Jul 30, 7:25 pm, Sumit Chandel sumitchan...@google.com wrote:
 Hi Tobe,
 The project-name-shell and project-name-compile scripts are no longer
 generated in GWT 1.6 or later. Would you mind letting me know where you read
 about these scripts while trying to get started with GWT as it might
 indicate stale docs somewhere that need to be updated.

Hi, I used google to search for it and found the doc for 1.5
http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/GettingStartedHostedMode

 Instead of using these startup scripts, you can now use the Ant build system
 to compile and run your GWT application. The new webAppCreator utility,
 available in GWT 1.6, generates a build.xml that you can use to invoke 'ant'
 and 'ant hosted' from command line to compile and run your application in
 hosted mode, respectively.

 If you're just getting started with GWT, you can follow along the Getting
 Started - QuickStart guide linked below. Although the guide references GWT
 1.7.0, you should still be able to follow along with GWT 1.6.4.

 Getting Started - Quick 
 Start:http://code.google.com/webtoolkit/gettingstarted.html

 http://code.google.com/webtoolkit/gettingstarted.htmlHope that helps,
 -Sumit Chandel

 On Tue, Jul 28, 2009 at 3:50 AM, Tobe tobias.jungnic...@googlemail.comwrote:





  can nobody tell me where this file is?

  On Jul 24, 6:28 pm, Tobe tobias.jungnic...@googlemail.com wrote:
   Hi,
   I want to use GWT in a PHP project but can't find files like project-
   name-shell or com.google.com.gwt.dev.GWTShell. I'm using GWT 1.6.4
   with Eclipse on Mac OS X.
--~--~-~--~~~---~--~~
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: Totorial: How to produce JavaScript libraries using GWT

2009-07-31 Thread Manuel Carrasco Moñino
Sorry, I misspelled the tutorial word in the subject and I forgot to send
you the tutorial's link:

In English:
http://code.google.com/p/gwtchismes/wiki/Tutorial_ExportingGwtLibrariesToJavascript_en
In Spanish:
http://code.google.com/p/gwtchismes/wiki/Tutorial_ExportingGwtLibrariesToJavascript_es

Manolo Carrasco

On Fri, Jul 31, 2009 at 11:33 AM, Manuel Carrasco Moñino 
manuel.carrasc...@gmail.com wrote:

 Hello guys.

 Based on my experience exporting 
 Gwtchismeshttp://code.google.com/p/gwtchismes/and
 Gwtupload http://code.google.com/p/gwtupload/ libraries into javascript
 using gwt-exporter http://code.google.com/p/gwt-exporter/r, I've written
 a brief tutorial explaining the procedure and the usage of gwt-exporter.

 I hope you could be find it useful.

 Thanks
 Manolo Carrasco


--~--~-~--~~~---~--~~
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: Totorial: How to produce JavaScript libraries using GWT

2009-07-31 Thread Paul MERLIN

http://code.google.com/p/gwtchismes/wiki/Tutorial_ExportingGwtLibrariesToJavascript_en

Thanks Manuel for this tutorial !

/Paul


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



Re: PHP in hosted mode

2009-07-31 Thread Tobe

On Jul 30, 7:25 pm, Sumit Chandel sumitchan...@google.com wrote:

 If you're just getting started with GWT, you can follow along the Getting
 Started - QuickStart guide linked below. Although the guide references GWT
 1.7.0, you should still be able to follow along with GWT 1.6.4.

 Getting Started - Quick 
 Start:http://code.google.com/webtoolkit/gettingstarted.html

 http://code.google.com/webtoolkit/gettingstarted.htmlHope that helps,
 -Sumit Chandel

I built the project with Eclipse but can't find a build.xml neither in
Eclipse nor by using the terminal
--~--~-~--~~~---~--~~
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 tabs

2009-07-31 Thread Paddy

Hi Folks,

I'm looking to try and edit the spacing between the top tabs on my tab
bar.

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



Re: Announcing the Google Plugin for Eclipse 1.1.0

2009-07-31 Thread twdarkflame

Fantastic!

On Jul 30, 10:27 pm, tfreitas tfrei...@gmail.com wrote:
 Tranks :D

 On Jul 31, 12:00 pm, Miguel Méndez mmen...@google.com wrote:



  Hi everyone,

  We wanted to let all of you know that the Google Plugin for Eclipse 1.1.0 is
  now available.  Some of the notable improvements are:

     - Support for Eclipse 3.5 (Galileo)
     - GWT RPC interface validation with quick fixes
     - App Engine DataNucleus enhancer console no longer steals focus on save

  If you'd like more details on the contents of the release, please see
  the Release
  Notes http://code.google.com/eclipse/docs/release_notes.html.

  To get started right way, take a look at the installation
  instructionshttp://code.google.com/eclipse/docs/download.html or
  just use the update site below that corresponds to your version of Eclipse.

     - Eclipse 3.5 (Galileo) -http://dl.google.com/eclipse/plugin/3.5
     - Eclipse 3.4 (Ganymede) -http://dl.google.com/eclipse/plugin/3.4
     - Eclipse 3.3 (Europa) -http://dl.google.com/eclipse/plugin/3.3

  Cheers,

  Miguel, on behalf of the Google Plugin for Eclipse 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-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 can I get composite from another composite?

2009-07-31 Thread Carl

If I understand you correctly, you want to know how to provide a
reference to your menu object for the use of the composite widget of a
given page.

If that is correct, then there is more than one way to do this.

The simplest approach would be to retain a reference to your Menu
object on a variable when your create it and then pass that reference
to your Composite-derived class in its constructor or other set...()
method.

Another approach would be to derive a class MyMenu from Menu and then
implement the singleton pattern for that derived class.  You could
then attach an instance of MyMenu to RootPanel instead of Menu.  By
using the singleton pattern, there will never be more than one MyMenu
object, and so you should be able to obtain a reference to that unique
object from a static method such as MyMenu.getInstance().  That static
method can then be invoked from your composite to obtain your
reference.

You could also incorporate your menu as an element of your Composite-
derived class.

You could, I suppose, use RootPanel.get().getWidget(index) to obtain
the menu, but that would be a rather brittle approach.
Only slightly better would be to create an HTML element with an ID
like MenuLocation and then use RootPanel.get(MenuLocation).add(new
Menu) to add your Menu and then use RootPanel.get
(MenuLocation).getWidget(index) to retrieve a reference to it.

The bottom line is that a reference to a widget can be stored and
retrieved in the same manner as any other variable.  You do not have
to go through the RootPanel in order to find it.

Hopefully, I have not misunderstood the question, thereby providing
information of which you were already aware.

Carl


On Jul 30, 1:56 am, Sherkan sher...@o2.pl wrote:
 Hi,
 I'm nebie in GWT.

 I've created simple project:
 -one standalone entry point with main menu which is on each page
 rendered, and couple standalone composites each one for sub page.

 So far so good:)
 In main menu, I've got ToolBarMenu button, which I want to change from
 loaded composite.
 How can I do it, or how can I get my main menu from composite and
 change some object?

 My composite don't create menu object. My page view is created
 directly in RootPanel:
 RootPanel.get().add(new Menu());
 RootPanel.get().add(new AddNewServer());
--~--~-~--~~~---~--~~
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 using comet in tomcat

2009-07-31 Thread Nathan Wells

I don't fully know the answer to your question, but this might help:

http://tomcat.apache.org/tomcat-6.0-doc/aio.html

You probably already knew this, but catalina is an internal name for
Apache's Tomcat server. It is likely that you may need to do some
additional configuration before you can do Comet-like stuff in hosted
mode.

HTH
Nathan

On Jul 30, 9:45 am, BarefootSanders mgold...@gmail.com wrote:
 Hi all.  I'm trying to reproduce the application here:

 http://gwtapps.com/?page_id=31

 Its a simple instant messenger which uses comet for events.  It
 imports these two classes:

 import org.apache.catalina.CometEvent;
 import org.apache.catalina.CometProcessor;

 But I guess I dont have them on my comp because it cant find them.
 I'm new to using comet so as a more general question, does anyone know
 where I can get these two classes?  If not, is there an implementation
 of Comet on GWT that I can use instead of this?

 Any other feedback would be much appreciated.

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



how to solve this basic problem in GWT..Pls help

2009-07-31 Thread Chaaru

Hi friends,
 I am a newbie to GWT.I am in a condition to develop a GWT
application. So i started my GWT journey by reading a book material
from PACKT publishers named Google Web Toolkit Java Ajax
programming. I set my GWT environment and tested.It works pretty
well.Then i tried my first example application named as HelloGWT . I
created an application named as HelloGWT by using the below command
[color=red]applicationCreator.cmd -out directory location\GWTBook
\HelloGWT com.packtpub.gwtbook.HelloGWT.client.HelloGWT[/color]
Its created successfully.
Then i tried example application given in chapter 2 - creating a
random quote ajax application.I downloaded codes from PACKT publishers
home site.and placed that codes in corresponding folders as they said
in book.But its not working well when i run HelloGWT -shell. It shows
error as
[color=red]failed to load module
com.packtpub.gwtbook.hellogwt.HelloGWT
Unable to load module entry point class
com.packtpub.gwtbook1.hellogwt.client.HelloGWT (see associated
exception for details)
Failure to load module 'com.packtpub.gwtbook1.hellogwt.HelloGWT'[/
color]
I given below the codes that i tried with exact folder
structure.Please tell me where am i doing wrong thing in this one..
[color=green]HelloGWT\src\com\packtpub\gwtbook1\hellogwt\client
\HelloGWT.java[/color]

package com.packtpub.gwtbook1.hellogwt.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * Entry point classes define codeonModuleLoad()/code.
 */
public class HelloGWT implements EntryPoint {

  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
final Label quoteText = new Label();
quoteText.setStyleName(quoteLabel);

// create the service
final RandomQuoteServiceAsync quoteService =
(RandomQuoteServiceAsync) GWT.create(RandomQuoteService.class);

// Specify the URL at which our service implementation is running.
ServiceDefTarget endpoint = (ServiceDefTarget) quoteService;
endpoint.setServiceEntryPoint(GWT.getModuleBaseURL()  + quotes);


Timer timer = new Timer() {
  public void run() {

// create an async callback to handle the result.
AsyncCallback callback = new AsyncCallback() {
  public void onSuccess(Object result) {
// display the retrieved quote in the label
quoteText.setText((String) result);
  }

  public void onFailure(Throwable caught) {
// display the error text if we cant get quote
quoteText.setText(Failed to get a quote.);
  }
};

// Make the call.
quoteService.getQuote(callback);
  }
};

// Schedule the timer to run once every second
timer.scheduleRepeating(1000);

RootPanel.get(slot1).add(quoteText);
  }
}

[color=green]HelloGWT\src\com\packtpub\gwtbook1\hellogwt\client
\RandomQuoteService.java[/color]

package com.packtpub.gwtbook1.hellogwt.client;

import com.google.gwt.user.client.rpc.RemoteService;

public interface RandomQuoteService extends RemoteService {
public String getQuote();

}



[color=green]HelloGWT\src\com\packtpub\gwtbook1\hellogwt\client
\RandomQuoteServiceAsync.java[/color]

package com.packtpub.gwtbook1.hellogwt.client;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface RandomQuoteServiceAsync {
public void getQuote(AsyncCallback callback);
}


[color=green]HelloGWT\src\com\packtpub\gwtbook1\hellogwt\server
\RandomQuoteServiceImpl.java[/color]

package com.packtpub.gwtbook1.hellogwt.server;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.packtpub.gwtbook1.hellogwt.client.RandomQuoteService;

public class RandomQuoteServiceImpl extends RemoteServiceServlet
implements
RandomQuoteService {
private Random randomizer = new Random();

private static final long serialVersionUID = -1502084255979334403L;

private static List quotes = new ArrayList();

static {
quotes.add(No great thing is created suddenly — Epictetus);
quotes.add(Well done is better than well said — Benjamin
Franklin);
quotes.add(No wind favors he who has no destined port —
Montaigne);
quotes.add(Sometimes even to live is an act of courage — 
Seneca);
quotes.add(Know thyself — Socrates);
}

public String getQuote() {
return (String) quotes.get(randomizer.nextInt(4));
}
}


[color=green]HelloGWT\src\com\packtpub\gwtbook1\hellogwt\public
\HelloGWT.html[/color]

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
!-- The HTML 

Re: Newbie question(File Permissions issue in GWT)

2009-07-31 Thread Carl

Web apps in general cannot access random files on the client machine,
which may (I'm not sure) have something to do with your problem.

To test this, try putting your file in a folder called public under
the same parent folder as your client and server folders.  This should
get copied to a folder having the same name as your application under
the war folder when you build your application (this is the folder
where the GWT-generated Javascript resides, wrapped in uniquely-named
HTML files).  You should then be able to load the file from your
application using an HTTP GET (e.g., using the GWT RequestBuilder
class).



On Jul 28, 8:26 am, Rumpole6 barry.benow...@gmail.com wrote:
 This may not be the right place for this, but:

 I am using the gwt plugin  in eclipse under Windows XP to write an
 small application and I am facing File Permission Errors trying to
 access files in the server code when I run my app in hosted mode. I
 suspect that there is an option to set somewhere which will allow me
 to access the files. The Files are located in C:\Documents and Settings
 \Barry\Application Data\Subversion.

 Thanks in advance.

 Barry
--~--~-~--~~~---~--~~
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: Announcing the Google Plugin for Eclipse 1.1.0

2009-07-31 Thread BarefootSanders

Awesome!  Thanks for the heads up.

On Jul 30, 1:00 pm, Miguel Méndez mmen...@google.com wrote:
 Hi everyone,

 We wanted to let all of you know that the Google Plugin for Eclipse 1.1.0 is
 now available.  Some of the notable improvements are:

    - Support for Eclipse 3.5 (Galileo)
    - GWT RPC interface validation with quick fixes
    - App Engine DataNucleus enhancer console no longer steals focus on save

 If you'd like more details on the contents of the release, please see
 the Release
 Notes http://code.google.com/eclipse/docs/release_notes.html.

 To get started right way, take a look at the installation
 instructionshttp://code.google.com/eclipse/docs/download.html or
 just use the update site below that corresponds to your version of Eclipse.

    - Eclipse 3.5 (Galileo) -http://dl.google.com/eclipse/plugin/3.5
    - Eclipse 3.4 (Ganymede) -http://dl.google.com/eclipse/plugin/3.4
    - Eclipse 3.3 (Europa) -http://dl.google.com/eclipse/plugin/3.3

 Cheers,

 Miguel, on behalf of the Google Plugin for Eclipse 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-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 solve this basic problem in GWT..Pls help

2009-07-31 Thread BarefootSanders

Hi.  I'm no expert but I have a few questions/suggestions:

1. What version of GWT are you running.  This line -

script type=text/javascript language=javascript
src=com.packtpub.gwtbook1.hellogwt.HelloGWT.nocache.js/script

Has been depreciated with 1.6 (i believe) so I dont know if that would
cause a problem.  It also looks like you combine some deprecieated
code with new 1.6/7 code.  If its an older tutorial it might have a
lot of older code so I'd go through and see if you can update that
first.

2.  Double and tripple check your xml config files.  Something might
be wrong in there preventing your module from being loaded.

Could you put the entire error message here? Its kinda hard to
determine whats wrong from your post as well.


On Jul 31, 7:05 am, Chaaru sarath...@gmail.com wrote:
 Hi friends,
  I am a newbie to GWT.I am in a condition to develop a GWT
 application. So i started my GWT journey by reading a book material
 from PACKT publishers named Google Web Toolkit Java Ajax
 programming. I set my GWT environment and tested.It works pretty
 well.Then i tried my first example application named as HelloGWT . I
 created an application named as HelloGWT by using the below command
 [color=red]applicationCreator.cmd -out directory location\GWTBook
 \HelloGWT com.packtpub.gwtbook.HelloGWT.client.HelloGWT[/color]
 Its created successfully.
 Then i tried example application given in chapter 2 - creating a
 random quote ajax application.I downloaded codes from PACKT publishers
 home site.and placed that codes in corresponding folders as they said
 in book.But its not working well when i run HelloGWT -shell. It shows
 error as
 [color=red]failed to load module
 com.packtpub.gwtbook.hellogwt.HelloGWT
 Unable to load module entry point class
 com.packtpub.gwtbook1.hellogwt.client.HelloGWT (see associated
 exception for details)
 Failure to load module 'com.packtpub.gwtbook1.hellogwt.HelloGWT'[/
 color]
 I given below the codes that i tried with exact folder
 structure.Please tell me where am i doing wrong thing in this one..
 [color=green]HelloGWT\src\com\packtpub\gwtbook1\hellogwt\client
 \HelloGWT.java[/color]

 package com.packtpub.gwtbook1.hellogwt.client;

 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.user.client.Timer;
 import com.google.gwt.user.client.rpc.AsyncCallback;
 import com.google.gwt.user.client.rpc.ServiceDefTarget;
 import com.google.gwt.user.client.ui.Label;
 import com.google.gwt.user.client.ui.RootPanel;

 /**
  * Entry point classes define codeonModuleLoad()/code.
  */
 public class HelloGWT implements EntryPoint {

   /**
    * This is the entry point method.
    */
   public void onModuleLoad() {
     final Label quoteText = new Label();
     quoteText.setStyleName(quoteLabel);

     // create the service
     final RandomQuoteServiceAsync quoteService =
 (RandomQuoteServiceAsync) GWT.create(RandomQuoteService.class);

     // Specify the URL at which our service implementation is running.
     ServiceDefTarget endpoint = (ServiceDefTarget) quoteService;
     endpoint.setServiceEntryPoint(GWT.getModuleBaseURL()  + quotes);

     Timer timer = new Timer() {
       public void run() {

         // create an async callback to handle the result.
         AsyncCallback callback = new AsyncCallback() {
           public void onSuccess(Object result) {
             // display the retrieved quote in the label
             quoteText.setText((String) result);
           }

           public void onFailure(Throwable caught) {
             // display the error text if we cant get quote
             quoteText.setText(Failed to get a quote.);
           }
         };

         // Make the call.
         quoteService.getQuote(callback);
       }
     };

     // Schedule the timer to run once every second
     timer.scheduleRepeating(1000);

     RootPanel.get(slot1).add(quoteText);
   }

 }

 [color=green]HelloGWT\src\com\packtpub\gwtbook1\hellogwt\client
 \RandomQuoteService.java[/color]

 package com.packtpub.gwtbook1.hellogwt.client;

 import com.google.gwt.user.client.rpc.RemoteService;

 public interface RandomQuoteService extends RemoteService {
     public String getQuote();

 }

 [color=green]HelloGWT\src\com\packtpub\gwtbook1\hellogwt\client
 \RandomQuoteServiceAsync.java[/color]

 package com.packtpub.gwtbook1.hellogwt.client;

 import com.google.gwt.user.client.rpc.AsyncCallback;

 public interface RandomQuoteServiceAsync {
     public void getQuote(AsyncCallback callback);

 }

 [color=green]HelloGWT\src\com\packtpub\gwtbook1\hellogwt\server
 \RandomQuoteServiceImpl.java[/color]

 package com.packtpub.gwtbook1.hellogwt.server;

 import java.util.ArrayList;
 import java.util.List;
 import java.util.Random;

 import com.google.gwt.user.server.rpc.RemoteServiceServlet;
 import com.packtpub.gwtbook1.hellogwt.client.RandomQuoteService;

 public class RandomQuoteServiceImpl extends RemoteServiceServlet
 implements
             

Re: Admin Area protected by simple scripted password in GWT

2009-07-31 Thread Isaac Truett

If all you're interested in protecting is that one file, then you're
set. My point is that all you're protecting is one file. You aren't
protecting your compiled GWT code at all.


On Fri, Jul 31, 2009 at 4:46 AM, Nickelnextnickeln...@gmail.com wrote:

 But, like i said, protecting admin.html with a tomcat rule like this:
  security-constraint
               web-resource-collection
                web-resource-nameReports Browser/web-resource-name
                url-patternadmin.html/url-pattern
                /web-resource-collection
                auth-constraint
                        role-nameadmin/role-name
                /auth-constraint
 /security-constraint

 login-config
 auth-methodBASIC/auth-method
 realm-nameProtected Area/realm-name
 /login-config

 wouldn't be enough? Once i have protected my admin.html page with
 this, the user can't download that page without permission.
 Or am I missing/misunderstanding something?

 Nickelnext
 


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



Re: What validation framework best fits with Google-gin

2009-07-31 Thread Eduardo Nunes

Can you both provide some example of using it? Do you use it with
i18n? How do you connect these frameworks with GWT i18n?

On Fri, Jul 31, 2009 at 3:22 AM, Norman Maurernor...@apache.org wrote:

 I'm using gwt-vl but I'm not sure how well it work with Gin ( not
 tried to inject it yet).

 Bye,
 Norman

 2009/7/31 Kwhit kwhitting...@gmail.com:

 The only one I've found is gwt-validation. It works pretty well but it
 has a few quirks particularly in letting exceptions disappear. The
 project isn't very active.

 Always make sure you have a public getter for the field you're
 validating.
 


 




-- 
Eduardo S. Nunes
http://e-nunes.com.br

--~--~-~--~~~---~--~~
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: Google Calendar API: NoClassDefFoundError AuthenticationException

2009-07-31 Thread JesperA

The solution was to put all the gdata**.jar files into the war/WEB-INF/
lib directory in my Eclipse GWT project.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



RichTextToolbar Question

2009-07-31 Thread Sean

So, I am looking at the GWT Showcase and at:
http://gwt.google.com/samples/Showcase/Showcase.html#CwRichText

They have this amazing Toolbar. I look at the source code and they
have:

 RichTextArea area = new RichTextArea();
 area.ensureDebugId(cwRichText-area);
 area.setSize(100%, 14em);
 RichTextToolbar toolbar = new RichTextToolbar(area);

Problem is, I can't find RichTextToolbar in GWT. Eclipse can't include
it and I can't find it in the javadocs. Are they using something that
isn't in language yet?

--~--~-~--~~~---~--~~
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 Eclipse plugin Ant integration

2009-07-31 Thread Rajeev Dayal
Hi,
Unfortunately, the plugin does not have a way to generate ant scripts to
mimic its actions, though this is on our feature list.

What I would recommend is to use GWTs webAppCreator to generate a sample
project. A build.xml file will be generated as well, and it will have
targets for GWT compilation and hosted mode execution. You can adapt this
script for your specific project.

Give that a try, and post back here if you run into any problems.


Rajeev

On Thu, Jul 30, 2009 at 1:31 PM, johnyzee webworks...@gmail.com wrote:


 I am starting off a new project on GWT 1.7 and trying to utilize the
 GWT Eclipse plugin. So far it seems to work well, but one thing I
 really need is being able to script some of the plugin's features so I
 can integrate it with my build scripts.

 I have not been able to find f.ex. Ant tasks that can run these.

 At the very least I need to be able to run the GWT compile action from
 my scripts, so I can have a one click 'compile - package - deploy'
 process.

 In addition to that I would like to be able to start up the
 application in hosted mode from my (Ant) build scripts.

 I would appreciate any pointers

 


--~--~-~--~~~---~--~~
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: RichTextToolbar Question

2009-07-31 Thread Imran
This class is not part of the API. Instead, it was created in the demo to
show you what can be done. Download the code for the demo and copy the file
from there.

Petarian.





On Fri, Jul 31, 2009 at 9:11 AM, Sean slough...@gmail.com wrote:


 So, I am looking at the GWT Showcase and at:
 http://gwt.google.com/samples/Showcase/Showcase.html#CwRichText

 They have this amazing Toolbar. I look at the source code and they
 have:

  RichTextArea area = new RichTextArea();
  area.ensureDebugId(cwRichText-area);
  area.setSize(100%, 14em);
  RichTextToolbar toolbar = new RichTextToolbar(area);

 Problem is, I can't find RichTextToolbar in GWT. Eclipse can't include
 it and I can't find it in the javadocs. Are they using something that
 isn't in language yet?

 


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



Javafx compiled to javascript

2009-07-31 Thread Erik Martino

Has anybody investigated the possibility to compile javafx to
javascript similar to what gwt does today. The graphics engine could
be DOM manipulation of SVG instead of the java2d engine or perhaps
just the canvas.
--~--~-~--~~~---~--~~
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 I call a method is client from the server?

2009-07-31 Thread Imran
Thanks for the links.

Petarian.






On Fri, Jul 31, 2009 at 9:27 AM, mars1412 martin.trum...@24act.at wrote:


 I think what you are looking for is some server push functionality:
  *
 http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ
  *
 http://www.google.at/search?hl=derlz=1G1GGLQ_DEAT249q=gwt+server+pushbtnG=Suchemeta=

 On Jul 30, 11:16 pm, Petarian imran...@gmail.com wrote:
  Hi,
 
  Every document that I have seen so far about GWT-RPC talks about
  initiating a function call from client to server. Is it possible to
  call a method in a client from the server?
 
  Thanks.
  Petarian.
 


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



Re: GWT and IE 8

2009-07-31 Thread jhulford

We have the exact same situation.  All you really need to do is create
a property provider override for the user.agent property in your GWT
module xml file.  All I did was grab the user agent detection script
from the UserAgent.xml module in the latest 1.6 release and paste it
into my module file.  This will result in you getting the IE6 user
agent detection for IE6/7/8...since IE8 can use an IE7 render mode,
for the most part your app should work/render fine.

On Jul 31, 2:00 am, Roland rolan...@gmail.com wrote:
 Hello,

 I've built a gwt application which currently is based on gwt version
 1.3.3

 I haven't had any problems loading it with IE 6,7 ,FF3-3.5 and Chrome
 but with IE 8 all I get is:

 While attempting to load module ... , property user.agent was set
 to unexpected value unknown ... 

 I understand it is a user agent issue and I've tried to add this
 property to module's gwt.xml like this:

 set-property name=user.agent value=ie8 /
 set-property name=user.agent
 value=ie6,gecko,gecko1_8,safari,opera,ie8 /

 sadfully neither gives expected result.

 As gwt version upgrade comes as last option, I'd like to ask you,
 whether there are some ways to get my app shown with IE8 without
 upgrading gwt libraries.

 Thanks in advance,
 Roland
--~--~-~--~~~---~--~~
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: Admin Area protected by simple scripted password in GWT

2009-07-31 Thread Nickelnext

Oh. Now I got it. Thank you.

I thought that making two files would also mean that there were two
compiled javascripts, and the admin one could be protected with tomcat
policy.

So, now I'm on this.

I have a RPC LoginService that send me back a SessionID and a true
boolean if it goes well, or it invalidates my Session using
getThreadLocalRequest().getSession().invalidate();

If the boolean is true, the adminPanel is attached to the RootPanel.
In the AdminPanel there's a fileUpload widget and more.

When i try to upload a file, i send to the Java Plain Servlet that
handles upload also my SessionID got from the RPC. Now, the
UploadServlet checks if the two Sessions are the same, and works only
if the result of the comparison is true.

Is this a possible way to secure data like you said in your post
before?
Or is mine a stupid rambling speech?

Thank you for your time and advice
Nickelnext

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



Handing Events

2009-07-31 Thread Donald W. Long

Hi all,

This is a question about how GWT deals with events.  If you create a
button (for example) and assign event to it and then later you wish to
delete the button, what happens to the event.

What the real question is, what is the procedure to remove a widget in
GWT that has an event assigned to it.

I would assume you would have to do something to delete the assigned
event to stop memory leaks.

Thanks

Donald W. Long
--~--~-~--~~~---~--~~
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: Handing Events

2009-07-31 Thread olivier nouguier
hi,
AFAIK nothing to do in that case :)
http://code.google.com/p/google-web-toolkit/wiki/DomEventsAndMemoryLeaks


On Fri, Jul 31, 2009 at 4:21 PM, Donald W. Long donald.w.l...@gmail.comwrote:


 Hi all,

 This is a question about how GWT deals with events.  If you create a
 button (for example) and assign event to it and then later you wish to
 delete the button, what happens to the event.

 What the real question is, what is the procedure to remove a widget in
 GWT that has an event assigned to it.

 I would assume you would have to do something to delete the assigned
 event to stop memory leaks.

 Thanks

 Donald W. Long
 



-- 
  We can live without religion and meditation, but we cannot survive without
human affection.
--
Dalai Lama

--~--~-~--~~~---~--~~
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: Displaying a loading image while waiting on RPC

2009-07-31 Thread Chad

Nick,

Create your message however you want (DecoratedPopupPanel, GlassPanel,
Highlighted text, whatever). Just before you call your RPC, display
your message. Then, in both the onFailure and onSuccess methods of
your AsyncCallback, hide your message.

HTH,
Chad

On Jul 30, 8:21 pm, Nick_Zaillian nzaill...@gmail.com wrote:
 Hey all.  This is my first post to the group.  I've got a little GWT/
 App Engine web app (at nicksmap.org) I've whipped up that maps New
 York area craigslist rental listings (yeah, I know, others have done
 it already, but all of the other implementations miss A LOT of
 listings and have no flagging features...so I thought there was room
 for me to go ahead and try to do it right).  I've got an RPC that gets
 called every time a user drags a map.  This function (ermethod)
 provides data that is then used to populate the map with markers and
 correspnding infowindow content.  Because of the sheer number of
 listings I am dealing with, the RPC can often take a few seconds to
 deliver all of its data, during which time it looks to the user like
 nothing is happening.  I would like to be able to display a loading
 icon during this time.  I'm sure that this is a pretty trivial thing
 to do -- I'm just not sure how to do it, so thought I should ask the
 group.
 Thanks,
 Nick Zaillian
--~--~-~--~~~---~--~~
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 solve this basic problem in GWT..Pls help

2009-07-31 Thread Chaaru

Hi,
 Thanks for your reply first of all.
 I am using gwt-windows-1.5.3.
Also the code that i posted here is looking too difficult to read.If
you dont mind please visit this link,
http://www.coderanch.com/t/456448/Application-Frameworks/overcome-this-basic-GWT

where the codes and my problem will be explained clear.

On Jul 31, 4:58 pm, BarefootSanders mgold...@gmail.com wrote:
 Hi.  I'm no expert but I have a few questions/suggestions:

 1. What version of GWT are you running.  This line -

 script type=text/javascript language=javascript
 src=com.packtpub.gwtbook1.hellogwt.HelloGWT.nocache.js/script

 Has been depreciated with 1.6 (i believe) so I dont know if that would
 cause a problem.  It also looks like you combine some deprecieated
 code with new 1.6/7 code.  If its an older tutorial it might have a
 lot of older code so I'd go through and see if you can update that
 first.

 2.  Double and tripple check your xml config files.  Something might
 be wrong in there preventing your module from being loaded.

 Could you put the entire error message here? Its kinda hard to
 determine whats wrong from your post as well.

 On Jul 31, 7:05 am, Chaaru sarath...@gmail.com wrote:

  Hi friends,
   I am a newbie to GWT.I am in a condition to develop a GWT
  application. So i started my GWT journey by reading a book material
  from PACKT publishers named Google Web Toolkit Java Ajax
  programming. I set my GWT environment and tested.It works pretty
  well.Then i tried my first example application named as HelloGWT . I
  created an application named as HelloGWT by using the below command
  [color=red]applicationCreator.cmd -out directory location\GWTBook
  \HelloGWT com.packtpub.gwtbook.HelloGWT.client.HelloGWT[/color]
  Its created successfully.
  Then i tried example application given in chapter 2 - creating a
  random quote ajax application.I downloaded codes from PACKT publishers
  home site.and placed that codes in corresponding folders as they said
  in book.But its not working well when i run HelloGWT -shell. It shows
  error as
  [color=red]failed to load module
  com.packtpub.gwtbook.hellogwt.HelloGWT
  Unable to load module entry point class
  com.packtpub.gwtbook1.hellogwt.client.HelloGWT (see associated
  exception for details)
  Failure to load module 'com.packtpub.gwtbook1.hellogwt.HelloGWT'[/
  color]
  I given below the codes that i tried with exact folder
  structure.Please tell me where am i doing wrong thing in this one..
  [color=green]HelloGWT\src\com\packtpub\gwtbook1\hellogwt\client
  \HelloGWT.java[/color]

  package com.packtpub.gwtbook1.hellogwt.client;

  import com.google.gwt.core.client.EntryPoint;
  import com.google.gwt.core.client.GWT;
  import com.google.gwt.user.client.Timer;
  import com.google.gwt.user.client.rpc.AsyncCallback;
  import com.google.gwt.user.client.rpc.ServiceDefTarget;
  import com.google.gwt.user.client.ui.Label;
  import com.google.gwt.user.client.ui.RootPanel;

  /**
   * Entry point classes define codeonModuleLoad()/code.
   */
  public class HelloGWT implements EntryPoint {

    /**
     * This is the entry point method.
     */
    public void onModuleLoad() {
      final Label quoteText = new Label();
      quoteText.setStyleName(quoteLabel);

      // create the service
      final RandomQuoteServiceAsync quoteService =
  (RandomQuoteServiceAsync) GWT.create(RandomQuoteService.class);

      // Specify the URL at which our service implementation is running.
      ServiceDefTarget endpoint = (ServiceDefTarget) quoteService;
      endpoint.setServiceEntryPoint(GWT.getModuleBaseURL()  + quotes);

      Timer timer = new Timer() {
        public void run() {

          // create an async callback to handle the result.
          AsyncCallback callback = new AsyncCallback() {
            public void onSuccess(Object result) {
              // display the retrieved quote in the label
              quoteText.setText((String) result);
            }

            public void onFailure(Throwable caught) {
              // display the error text if we cant get quote
              quoteText.setText(Failed to get a quote.);
            }
          };

          // Make the call.
          quoteService.getQuote(callback);
        }
      };

      // Schedule the timer to run once every second
      timer.scheduleRepeating(1000);

      RootPanel.get(slot1).add(quoteText);
    }

  }

  [color=green]HelloGWT\src\com\packtpub\gwtbook1\hellogwt\client
  \RandomQuoteService.java[/color]

  package com.packtpub.gwtbook1.hellogwt.client;

  import com.google.gwt.user.client.rpc.RemoteService;

  public interface RandomQuoteService extends RemoteService {
      public String getQuote();

  }

  [color=green]HelloGWT\src\com\packtpub\gwtbook1\hellogwt\client
  \RandomQuoteServiceAsync.java[/color]

  package com.packtpub.gwtbook1.hellogwt.client;

  import com.google.gwt.user.client.rpc.AsyncCallback;

  public interface RandomQuoteServiceAsync {
      public void 

Re: Widget.clear() method not clearing properly

2009-07-31 Thread Jason Essington

wouldn't it be easier (and perhaps faster) to do something like:

   RootPanel rp = RootPanel.get(sample);
   rp.clear(); // remove any widgets to be safe
   rp.getElement().setInnerHTML(); // and clear any remaining contents

-jason
On Jul 30, 2009, at 1:55 AM, Thamizharasu S wrote:


 Hi Phil,

 This is working fine. Thanks for your answer.

 On Jul 27, 3:18 pm, Phil couch...@googlemail.com wrote:
 Hi Thamizharasu.

 Panel.clear() does only remove child-widgets. As the innerHTML  
 'sample
 content' is not considered a widget, it won't be affected.
 You may do the following to completelyclearthe contents of your div
 element:
 ---*snip*---
 RootPanel samplePanel = RootPanel.get(sample);
 //Clear
 Element element = samplePanel.getElement();
 NodeListNode childNodes = element.getChildNodes();
 for (int i = 0; i  childNodes.getLength(); i++) {
 element.removeChild(childNodes.getItem(i));}

 ---*snip*---

 Regards,
 Phil

 On Jul 27, 6:37 am, Thamizharasu S zaru...@gmail.com wrote:

 Hi All,

 I have defined one div id=samplesample content/div control in
 static html file. In my Entry point class i have a button, if i  
 click
 the button i have toclearall the contents from the div and put my
 own widget inside.

 So what i did was RootPanel.get(sample).clear(); Then i add my
 widget inside RootPanel.get(sample).add(widget);

 This is adding my new widget. But not clearing my old content  
 (sample
 content) from the div.

 Could any one help me on this?

 Thanks,
 Thamizharasu S
 


--~--~-~--~~~---~--~~
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: Event and Interrupt Questions

2009-07-31 Thread Jason Essington

Javascript is single threaded, so the event code has to wait its turn.  
If a tight loop or something is running, the event's code won't  
execute until the loop is finished.

If you need events to fire in the middle of long running processes (or  
simply don't want the browser to act frozen) place those processes  
into an IncrementalCommand.

-jason


On Jul 29, 2009, at 4:37 PM, spike2...@googlemail.com wrote:


 Hey i was coding a GWT App and a question came up:

 Does an event like MouseOver interrupt already running code or does it
 even fire? Or is it put on the top of a stack like Deferred Command?

 Is there a website where all this is explained?

 Thx in advanced
 


--~--~-~--~~~---~--~~
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 JAR Issue

2009-07-31 Thread Rajeev Dayal
Hi,
Any java code that is used by GWT must be in some module's source path. The
Interface that you're referencing in (2) from (1) is not part of any
module's source path.

One way to get around this without introducing a new module is to change the
package of the interface so that from the classloader's point of view, the
interface WOULD be on the module's source path.

For example, suppose that you had a module A.gwt.xml under the package
com.myproj, and you have some java classes in the com.myproj.client package
which are referencing an interface com.anotherproj.interfaces.I, which is
located in a Java project. To make this work, you could move the interface
to the com.myproj.client package in (1), and then at runtime, the interface
would appear to be under the module's source path.


Rajeev

On Fri, Jul 31, 2009 at 4:29 AM, CI-CUBE e...@ci-cube.info wrote:


 Well, the basic issue (JAR creation) is fixed, I simply re-installed
 Eclipse (planned to switch to 3.5 anyway).

 Just for clarification (and to avoid additional effort): if I want to
 include a separate Java library, this must be introduced to GWT as
 another GWT project? So there's no way - e.g. by source paths or
 whatever - to import the corresponding classes directly? Introducing
 another GWT Module sounds like overhead to me... Can someone please
 verify this?

 TIA!

   Ekki

 On Jul 31, 1:06 am, frederick8206 frederick8...@gmail.com wrote:
  You should import everything that will be referenced by gwt 'client'
 code.
  In your example, you should first make the project 1 as a gwt module,
 named it net.myapp.module1.Module1. And then in you project 2, you should
 declare import m1 in the .GWT.xml file for project 2.
 
  The import statement is like this inherits
 name='net.myapp.module1.Module1'/

 


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



Getting Started on Tomcat server....kinda

2009-07-31 Thread Chris Bailey

OK, my natual language would probably have to be PHP for web
development, but I really want to work in java and GWT. So I installed
Eclipse and installed the gwt plugin but I'm still new with java and
it's envirement. I've been playing around with it but I was hoping I
could get some answers around here.

1. I compiled the test code to see if it would work on my server. When
I go to the page it asks for login info. after playing around
apparently it was my root admin/pass (I kinda figured). After that it
loads everythign but if you type into the box to send a name to the
server it returns an error. I figure it's because of somekind of
permission thing going on (because of the fact I had to login to get
started). I'm using a VPS and they set tomcat up using Plesk, I'm used
to cPanel so this is also new to me. Anyone have any ideas on what I
should do??

2. For the life of me I can't include any kind of JAR files in my
projects. Eclipse says something about the cross path. Can someone
help me plz

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



Re: Changing TabPanel's table label?

2009-07-31 Thread Michael

TabPanel tp = new TabPanel();
// add tabs here

tp.getTabBar().setTabText(index, text);
or
tp.getTabBar().setTabHTML(index, html);

should do it.

On 26 Jul., 17:51, ToddP todd.prick...@gmail.com wrote:
 P.S.  I should have mentioned I'm using GWT 1.5.

 On Jul 24, 5:34 pm, ToddP todd.prick...@gmail.com wrote:

  Hi,
  I want to change my TabPanel's tab labels dynamically (e.g. add info
  about what the user has done within the tab such as how many items he
  has selected).  Can the title be changed?

  TIA

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



problems with GWT plugin for eclipse.

2009-07-31 Thread msan

Hallo.
Sorry for my bad english.
I'm using eclipse Galileo on a debian linux system AMD64.
I've followed the example StoWatcher application to start with GWT but
when I run it I receive this error message:

Exception in thread main java.lang.UnsatisfiedLinkError: /home/mauro/
eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.linux_1.7.0.v200907291526/gwt-
linux-1.7.0/libswt-pi-gtk-3235.so: /home/mauro/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.linux_1.7.0.v200907291526/gwt-
linux-1.7.0/libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32
(Possible cause: architecture word width mismatch).

Why this problem?
Thank you.

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



Re: Regarding applying Border to Flextable Cells

2009-07-31 Thread Michael

I'm not a CSS expert, but is it correct to decorate the css selector
with a '*'? Normally you use

.print-redcolorcheckbox {
background-color: #FE6767;
padding: 0.6px 0.6px 0.6px 0.6px;
border: 1px;
border-color: #FF;
}



On 28 Jul., 14:28, Swathi Kondepati swathi8...@gmail.com wrote:
 Hi All..

     I Had problem with applying border to cells of an flextable.Please help
 me.Actually the Problem is :

        I applied border to FlexTable cells using CSS styles but i am not
 able to view the border for FlexTable cells in *Mozilla FireFox* but able to
 view in IE.The cells contain empty strings like

 *flextable.setHTML(1, 1,    );
 flextable.getCellFormatter().setStyleName(1,1, print-redcolorcheckbox);*

 The code in CSS file is as follows:

 *.print-redcolorcheckbox {

     background-color: #FE6767;
     padding: 0.6px 0.6px 0.6px 0.6px;
     border: 1px;
     border-color: #FF;

 }*

 Please Help me its urgent...

 Thanks in Advance...

 Swathi.K

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



oophm on a mac

2009-07-31 Thread Tom

Built GWT from trunk and when I ran on my mac I get these error
messages:

oophm:
 [java] 2009-07-31 12:09:56.402 java[50133:80f] [Java
CocoaComponent compatibility mode]: Enabled
 [java] 2009-07-31 12:09:56.404 java[50133:80f] [Java
CocoaComponent compatibility mode]: Setting timeout for SWT to
0.10
 [java] 2009-07-31 12:09:58.325 java[50133:17303] *** -
[NSConditionLock unlock]: lock (NSConditionLock: 0x1b7a60 '(null)')
unlocked when not locked
 [java] 2009-07-31 12:09:58.326 java[50133:17303] *** Break on
_NSLockError() to debug.
 [java] 2009-07-31 12:09:58.456 java[50133:17303] *** -
[NSConditionLock unlock]: lock (NSConditionLock: 0x10c0f0 '(null)')
unlocked when not locked


what have I done wrong.

Thanks in advance

Tom

--~--~-~--~~~---~--~~
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: Refresh TabPanel in GWT

2009-07-31 Thread Michael

This could work:

tp = new TabPanel();
tp.addSelectionHandler(new SelectionHandlerInteger() {

public void onSelection(SelectionEventInteger event) {
int tabId = event.getSelectedItem();
Widget tabWidget = getWidget(tabId);
if (tabWidget !=  null) {
  // do something
}
}
});


On 27 Jul., 06:29, Joey joeytan...@gmail.com wrote:
 How can I refresh TabPanel when particular tab is selected?

 Because there is no setWidget() method in TabPanel

--~--~-~--~~~---~--~~
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: FlexTable and RowSpan

2009-07-31 Thread Michael

A cell formatter is probably what you are looking for.

FlexCellFormatter fcf = flexTable.getFlexCellFormatter();
fcf.setColSpan(0, 1, 3);

This would set the row span for the cell in row 0 and column 1 to be 3
so your example should look like this:

  Col1   Col2
  aa   bbvalue1 checkBox
  aa   bbvalue3 checkBox
  aa   bbvalue5 checkBox

fcf.setRowSpan(0, 1, 4);

would result in:

  Col1   Col2 Col3 Col4
  aa   value1 checkBox
  aa   value3 checkBox
  aa   value5 checkBox

(Col2 probably is centered vertically afterwards. Difficult to 'draw'
here without lines ;-) )

On 24 Jul., 18:16, JAppetta jennifer.appe...@sas.com wrote:
 Using the FlexTable and CSS, is there a way to achieve the effect of
 rowspan?

 I have a 4 column table, where (for 99% of the time), the first two
 columns have the same data, only the data in the last two columns will
 differ

               Col1   Col2     Col3         Col4
               aa       bb        value1     checkBox
               aa       bb        value3     checkBox
               aa       bb        value5     checkBox

 Rows can be added or deleted to the table by other processes.

 Possible to use a cell formattter or rowFormatter to accomplish? If
 so, looking to see what paramters I would need to use. I know that
 this question may seem really basic to group members but I am new to
 web programming .

 Thanks,
 Jennifer

--~--~-~--~~~---~--~~
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 1.7 Crash while Compiling HistoryImplTimer.java

2009-07-31 Thread Hiroshi YAMAMOTO

 I had the same error as well.

 Removing old user.jar(1.6.4) from the classpath worked for 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
-~--~~~~--~~--~--~---



EXTERNAL JAR FILES ON SERVER SIDE

2009-07-31 Thread Parmeet Kohli

 I'm hoping you someone can help me with this. I'm basically
trying to make a web application using GWT. The code on the server end
though uses classes from external JAR files. I've added these JAR
files to the project (I'm using Eclipse). Still gives me a
NoClassDefFound exception. What else do i need to do ?

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



Upgrade to GWT 1.7.0

2009-07-31 Thread ninads

Hi,

I am presently using GWT 1.6.4 for my projects in Eclipse (Ganymede),
platform being Linux. I have tried to upgrade to GWT 1.7.0. Trying to
run the code in hosted mode gives me the following error:

** Unable to find a usable Mozilla install **
You may specify one in mozilla-hosted-browser.conf, see comments in
the file for details.


I have tried everything but was unable to solve this problem. Can you
please help me as soon as possible.
Thanks in advance.

Best Regards,
Ninad.

--~--~-~--~~~---~--~~
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: Bundling Background Images defined in CSS

2009-07-31 Thread Salman Hemani

The CssResource looks promising. I will give that a shot first. Thank
you very much!

Paul, SmartSprites would work also! CssResource just would be neater
once GWT integrates that.

Thank you both for some real answers!! 5 stars for you both!


On Jul 31, 5:00 am, Paul MERLIN eskato...@gmail.com wrote:
 Have a look at SmartSpriteshttp://smartsprites.osinski.name/

 Regards

 /Paul

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



Re: problems with GWT plugin for eclipse.

2009-07-31 Thread Rajeev Dayal
You need to use a 32-bit JVM when running GWT. Install a 32-bit JVM, and
change your project's JDK to use the 32-bit JVM.
In future versions of GWT, it will no longer be necessary to use a 32-bit
JVM.

On Fri, Jul 31, 2009 at 8:04 AM, msan mrsan...@gmail.com wrote:


 Hallo.
 Sorry for my bad english.
 I'm using eclipse Galileo on a debian linux system AMD64.
 I've followed the example StoWatcher application to start with GWT but
 when I run it I receive this error message:

 Exception in thread main java.lang.UnsatisfiedLinkError: /home/mauro/
 eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.linux_1.7.0.v200907291526/gwt-
 linux-1.7.0/libswt-pi-gtk-3235.so: /home/mauro/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.linux_1.7.0.v200907291526/gwt-
 linux-1.7.0/libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32
 (Possible cause: architecture word width mismatch).

 Why this problem?
 Thank you.

 


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



Re: EXTERNAL JAR FILES ON SERVER SIDE

2009-07-31 Thread Rajeev Dayal
Did you copy the jar files to your war/WEB-INF/lib directory?

On Fri, Jul 31, 2009 at 4:41 AM, Parmeet Kohli parmeet.ko...@gmail.comwrote:


  I'm hoping you someone can help me with this. I'm basically
 trying to make a web application using GWT. The code on the server end
 though uses classes from external JAR files. I've added these JAR
 files to the project (I'm using Eclipse). Still gives me a
 NoClassDefFound exception. What else do i need to do ?

 


--~--~-~--~~~---~--~~
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: Getting Started on Tomcat server....kinda

2009-07-31 Thread Rajeev Dayal
On Fri, Jul 31, 2009 at 8:21 AM, Chris Bailey xcom...@gmail.com wrote:


 OK, my natual language would probably have to be PHP for web
 development, but I really want to work in java and GWT. So I installed
 Eclipse and installed the gwt plugin but I'm still new with java and
 it's envirement. I've been playing around with it but I was hoping I
 could get some answers around here.

 1. I compiled the test code to see if it would work on my server. When
 I go to the page it asks for login info. after playing around
 apparently it was my root admin/pass (I kinda figured). After that it
 loads everythign but if you type into the box to send a name to the
 server it returns an error. I figure it's because of somekind of
 permission thing going on (because of the fact I had to login to get
 started). I'm using a VPS and they set tomcat up using Plesk, I'm used
 to cPanel so this is also new to me. Anyone have any ideas on what I
 should do??


What is the exact error that you're seeing?




 2. For the life of me I can't include any kind of JAR files in my
 projects. Eclipse says something about the cross path. Can someone
 help me plz


Can you tell more about the error you're getting? What is the exact error
message that Eclipse is spitting out?



 


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



problem with rpc calls

2009-07-31 Thread gerry

Hello all,
I can't workaround this problem for days, and I have read the
documentation and the getting started example and searched this forum
but I still can't find a solution.

When I try to run my application in hosted mode i get this:
Cannot find resource 'something' in the public path of module
'queryinterface'

And on the development shell:
[TRACE] The development shell servlet received a request for
'something' in module 'queryinterface.gwt.xml'
[WARN] Resource not found: something; (could a file be missing from
the public path or a servlet tag misconfigured in module
queryinterface.gwt.xml ?)

My web.xml file looks like this:
web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org
.
  !-- Servlets --
  servlet
servlet-nameMyServiceImpl/servlet-name
servlet-classcom.diplomatiki.mypackage.server.MyServiceImpl/
servlet-class
  /servlet

  servlet-mapping
servlet-nameMyServiceImpl/servlet-name
url-pattern/queryinterface/something/url-pattern
  /servlet-mapping

/web-app

on the server side, the service is:
package com.diplomatiki.mypackage.client;

import .;

@RemoteServiceRelativePath(something)
public interface MyService extends RemoteService {

public String myMethod(String s);
public String myMethod2 (String Prefixes, String query) ;
}

and my module .gwt.xml file is:
?xml version=1.0 encoding=UTF-8 standalone=no?module rename-
to=queryinterface

!-- Inherit the core Web Toolkit stuff.  --
inherits name=com.google.gwt.user.User/

!-- Inherit the GWTExt Toolkit library configuration.--
inherits name=com.gwtext.GwtExt/

!-- Specify the app entry point class.   --
entry-point class=com.diplomatiki.mypackage.client.SparqlInterface/


!--servlet path=/something
class=com.diplomatiki.mypackage.server.MyServiceImpl/ --

stylesheet src=js/ext/resources/css/ext-all.css/
script src=js/ext/adapter/ext/ext-base.js/
script src=js/ext/ext-all.js/

/module

But when I add the line
servlet path=/something
class=com.diplomatiki.mypackage.server.MyServiceImpl/ on the
module, everything works fine
But why do I have to do this, since I have istalled gwt 1.7.0? I
created the project on eclipse as a dynamic web project and I also
used the gwt-ext library.

Please help, I can't think of anything.
--~--~-~--~~~---~--~~
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 - multiple modules in the same Eclipse project

2009-07-31 Thread Rajeev Dayal
In your launch configuration for A, do you specify both the A and B modules
on the command line when launching hosted mode?

On Thu, Jul 30, 2009 at 2:08 PM, Petarian imran...@gmail.com wrote:


 Hi,

 I have two modules A and B in one eclipse project. Both have their own
 Launcher, which work fine. However, when once I launch A, I want to
 type the URL for B.

 For example: When I launch A, the URL is:

 http://localhost:/A.html

 I want to type:

 http://localhost:/B.html in the same launched application. When I
 do this, I get the following error:.

 Unable to find 'b.gwt.xml' on your classpath; could be a typo, or
 maybe you forgot to include a classpath entry for source?

 Both A.gwt.xml and B.gwt.xml are in the same folder.

 I have tried modifying every classpath that I can think of.

 BTW. When I deploy both modules in production, they work fine. It just
 that my eclipse env. is screwed up.

 Thanks.

 


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



Re: oophm on a mac

2009-07-31 Thread Rajeev Dayal
Are you running from the command-line, or within Eclipse? Are you using the
Google Plugin for Eclipse?

On Fri, Jul 31, 2009 at 9:47 AM, Tom tomjmal...@gmail.com wrote:


 Built GWT from trunk and when I ran on my mac I get these error
 messages:

 oophm:
 [java] 2009-07-31 12:09:56.402 java[50133:80f] [Java
 CocoaComponent compatibility mode]: Enabled
 [java] 2009-07-31 12:09:56.404 java[50133:80f] [Java
 CocoaComponent compatibility mode]: Setting timeout for SWT to
 0.10
 [java] 2009-07-31 12:09:58.325 java[50133:17303] *** -
 [NSConditionLock unlock]: lock (NSConditionLock: 0x1b7a60 '(null)')
 unlocked when not locked
 [java] 2009-07-31 12:09:58.326 java[50133:17303] *** Break on
 _NSLockError() to debug.
 [java] 2009-07-31 12:09:58.456 java[50133:17303] *** -
 [NSConditionLock unlock]: lock (NSConditionLock: 0x10c0f0 '(null)')
 unlocked when not locked


 what have I done wrong.

 Thanks in advance

 Tom

 


--~--~-~--~~~---~--~~
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: oophm on a mac

2009-07-31 Thread Tom Malone

running from command line with ant tried it on a linux vm image and
seemed to work, just seems to be a mac thing.

Tom

On Fri, Jul 31, 2009 at 4:53 PM, Rajeev Dayalrda...@google.com wrote:
 Are you running from the command-line, or within Eclipse? Are you using the
 Google Plugin for Eclipse?

 On Fri, Jul 31, 2009 at 9:47 AM, Tom tomjmal...@gmail.com wrote:

 Built GWT from trunk and when I ran on my mac I get these error
 messages:

 oophm:
     [java] 2009-07-31 12:09:56.402 java[50133:80f] [Java
 CocoaComponent compatibility mode]: Enabled
     [java] 2009-07-31 12:09:56.404 java[50133:80f] [Java
 CocoaComponent compatibility mode]: Setting timeout for SWT to
 0.10
     [java] 2009-07-31 12:09:58.325 java[50133:17303] *** -
 [NSConditionLock unlock]: lock (NSConditionLock: 0x1b7a60 '(null)')
 unlocked when not locked
     [java] 2009-07-31 12:09:58.326 java[50133:17303] *** Break on
 _NSLockError() to debug.
     [java] 2009-07-31 12:09:58.456 java[50133:17303] *** -
 [NSConditionLock unlock]: lock (NSConditionLock: 0x10c0f0 '(null)')
 unlocked when not locked


 what have I done wrong.

 Thanks in advance

 Tom




 


--~--~-~--~~~---~--~~
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: Admin Area protected by simple scripted password in GWT

2009-07-31 Thread Isaac Truett

Yes, it sounds like you're headed in the right direction now.


On Fri, Jul 31, 2009 at 10:08 AM, Nickelnextnickeln...@gmail.com wrote:

 Oh. Now I got it. Thank you.

 I thought that making two files would also mean that there were two
 compiled javascripts, and the admin one could be protected with tomcat
 policy.

 So, now I'm on this.

 I have a RPC LoginService that send me back a SessionID and a true
 boolean if it goes well, or it invalidates my Session using
 getThreadLocalRequest().getSession().invalidate();

 If the boolean is true, the adminPanel is attached to the RootPanel.
 In the AdminPanel there's a fileUpload widget and more.

 When i try to upload a file, i send to the Java Plain Servlet that
 handles upload also my SessionID got from the RPC. Now, the
 UploadServlet checks if the two Sessions are the same, and works only
 if the result of the comparison is true.

 Is this a possible way to secure data like you said in your post
 before?
 Or is mine a stupid rambling speech?

 Thank you for your time and advice
 Nickelnext

 


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



Re: What validation framework best fits with Google-gin

2009-07-31 Thread Kwhit

There's examples for both on their websites. The 'advantage' with gwt-
validation is that you use annotations although ironically I think I
will end up not up not using them.


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



XML / Module problem? (Just upgraded both Eclipse and the GWT plugin..errors appeared on projects reimporting)

2009-07-31 Thread darkflame

I've started to get lots of XML errors flagging when I try to compile.
It seems it cant find the source code for various bits of XML
handeling;

[ERROR] Line 1486: No source code is available for type
com.google.gwt.xml.client.Document; did you forget to inherit a
required module?
[ERROR] Line 1486: No source code is available for type
com.google.gwt.xml.client.XMLParser; did you forget to inherit a
required module?
[ERROR] Line 1490: No source code is available for type
com.google.gwt.xml.client.NodeList; did you forget to inherit a
required module?
...
etc.

Yet, I *do* have;

inherits name=com.google.gwt.xml.XML/

In my module files.
What gives?
--~--~-~--~~~---~--~~
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 - multiple modules in the same Eclipse project

2009-07-31 Thread Imran
Perfect. I wasn't doing that. Thanks Rajeev.


Petarian.




On Fri, Jul 31, 2009 at 11:52 AM, Rajeev Dayal rda...@google.com wrote:

 In your launch configuration for A, do you specify both the A and B modules
 on the command line when launching hosted mode?


 On Thu, Jul 30, 2009 at 2:08 PM, Petarian imran...@gmail.com wrote:


 Hi,

 I have two modules A and B in one eclipse project. Both have their own
 Launcher, which work fine. However, when once I launch A, I want to
 type the URL for B.

 For example: When I launch A, the URL is:

 http://localhost:/A.html

 I want to type:

 http://localhost:/B.html in the same launched application. When I
 do this, I get the following error:.

 Unable to find 'b.gwt.xml' on your classpath; could be a typo, or
 maybe you forgot to include a classpath entry for source?

 Both A.gwt.xml and B.gwt.xml are in the same folder.

 I have tried modifying every classpath that I can think of.

 BTW. When I deploy both modules in production, they work fine. It just
 that my eclipse env. is screwed up.

 Thanks.




 


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



Re: Google analytics integration

2009-07-31 Thread Donovan Jimenez

What I'd like to see is analytics support for tracking the history
token in page tracks we submit.

Its annoying to use GWT's history support but then find that Google
Analytics won't let you track dynamic pages of that form. Transforming
the URLs into a form that GA will accept is the workaround, but
without adding extra URL parsing on the server side those links are
not clickable from GA.

I submitted a request to analytics months ago and got no response.
Does anyone else see that as useful?

On Jul 30, 12:06 pm, Carver jasoncar...@alum.mit.edu wrote:
 To use Google Analytics in GWT, we set up a couple methods like this:

         public static native void runGoogleAnalytics() /*-{
         try {
                 $wnd.gaTrack = $wnd._gat._getTracker(UA-XX-X);
                 $wnd.gaTrack._setDomainName(.slique.com);
                 $wnd.gaTrack._trackPageview();
         } catch(err) {}
         }-*/;
         public static native void runGoogleAnalytics(String pageName) /*-{
         try {
                 $wnd.gaTrack._trackPageview(pageName);
         } catch(err) {}
         }-*/;

 We call runGoogleAnalytics() in onModuleLoad, and then
 runGoogleAnalytics(/gwt/ministry/of/silly/walks) wherever we want to
 track a new page.  I hear that GA Events are the right way to do
 this, but this has gotten us started.

 Note: the setDomainName call is only necessary for us because we use
 the same GA account to track all subdomains on our site.

 Does that help?

 ~Carverhttp://slique.com- builds group memory by putting all your group's
 email, files and documents in one place
 I'm not being curt, I'm just usinghttp://five.sentenc.es/

 On Jul 30, 11:25 am, makoki iagoto...@gmail.com wrote:



  Yes, right, we're trying to track dynamic pages. Otherwise, as Juraj
  says, we don't have any problem.
  On 29 jul, 17:22, Juraj Vitko juraj.vi...@gmail.com wrote:

   I have not implemented Analytics in GWT yet, but it seems that unless
   you want to track dynamic pages inside your GWT app, you may just
   include the urchin.js script plus the trigger scriptlet (possibly
   wrapped in try { } catch) in you host HTML page.

   On Jul 28, 7:22 pm, makoki iagoto...@gmail.com wrote:

We had recently discovered a bug in our application that came out to
be a problem with google analytics integration and liked to know if
someone had any idea for a better way to integrate GA with GWT. We've
been using GA in out GWT application for quite a time (nearly a year)
without a problem but today we discovered that there's a problem with
IE6 and GA when we browse the application through localhost or any
hostname that hasn't a complete domain (i.e. example.com) so browsing
our app throughhttp://localhost/myapporhttp://netbiosname/myapp
raises the problem otherwise the integration works seamlesly, if we
use the IP or the public domain.
We've been tracking down the problem until we found it was the
_trackEvent(c,v,d,b) method of GA that was causing the problem (we've
found it empirically :P)
We've used this explanation to integrate google 
analyticshttp://code.google.com/p/gwt-examples/wiki/project_UrchinTracker

The ga.js script we downloaded directly from google last november more
or less and we're currently using GWT 1.7.0 , all is working fine
except in the case explained above.
Any idea what's happening? Any alternative to integrate GA?
Thks

--~--~-~--~~~---~--~~
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: Integrating Google Docs into GWT

2009-07-31 Thread amywamy

I have a related question.  I want to create a web app that will let
me upload or append data to Google Spreadsheets.  I am able to do this
from a GData example I modified, but I am having trouble translating
that into a web application.  From what I've tried so far, it seems
that it is not easy to link the two since GWT runs on the client-side
(and I keep getting errors).  Are there examples out there that can
show me how I can make GWT interface with GData?  What's the best way
to go about this?

Thanks in advance for your any help you might offer! =)
- Amy

On Jul 21, 11:33 am, Sumit Chandel sumitchan...@google.com wrote:
 Hi Abhiram,
 You will need to provide your own visualization for the spreadsheet data in
 your GWT application. The FlexTable widget may be particularly useful here.

 To actually persist and work with data in a Google Spreadsheet, however, you
 can use the Spreadsheets API (one of many flavours). You can check out the
 Spreadsheet API at the link below.

 Spreadsheets API:http://code.google.com/apis/spreadsheets/

 http://code.google.com/apis/spreadsheets/Hope that helps,
 -Sumit Chandel



 On Sat, Jul 18, 2009 at 2:43 AM, twdarkflame darkfl...@gmail.com wrote:

  Not to my knowledge, but you could just use a Frame element, seeing as
  Google docs can provide url links to each document.
  Not particularly neat though.

  On Jul 17, 11:53 am, abhiram abhir...@gmail.com wrote:
   Hi,

     Is there a way to integrate the 'Google Docs' with the GWT
   application so that I can conveniently display the spreadsheets and
   all in my web application. Just wanted to know if there is any jar
   available for 'Google Docs'. And a sample application also would be of
   great help.

   Regards,
   Abhiram

--~--~-~--~~~---~--~~
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 long does my Webapplication live?

2009-07-31 Thread Ben2008

Very useful indeed.
And yes i mean serverside lifecycle.
Is there a way to subscibe to server startup process?
I want to initialise some things if my server starts. For example
create my database connection pool.
I dont want to wait for the first user request to do all that stuff.

Thank you in advance.



On Jul 30, 10:53 pm, Isaac Truett itru...@gmail.com wrote:
 Ben,

 I think you may be confused about the boundary between your GWT client
 and your server. The EntryPoint is just the first piece of your code
 that gets executed on the client, like a main() method. Any variables
 you declare in the EntryPoint or elsewhere in client code remain as
 long as the browser stays on your host page (subject to scoping, live
 reference, and garbage collection). Database connections, which can
 only exist on the server, will exist as long as your connection pool
 keeps them around (you are using connection pooling, aren't you?).

 Some other things that might interest you are the servlet life cycle
 (which might answer your question about how long your web application
 lives on the server) and Gears (which could help you keep data on
 the client between visits):

 http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets4.htmlhttp://gears.google.com/

 Hope that helps.
 - Isaac



 On Tue, Jul 28, 2009 at 12:31 PM, Ben2008umi...@googlemail.com wrote:

  Hi Folks,
  If I have a heavy load web application i do not want to rebuild some
  data (eg. creating instances and loading stuff from database etc.) for
  every page request.
  I want to do that once at startup or any later point and keep things
  alive as long as my webservice is online.And i would prefer a nice way
  to clear it if my server is shutting down.

  My Question is, how long does an Entry Point instance live and is
  there a way to keep variables (like database connections or anything
  else)  as long as the server is up?

  I wrote some mini applications, but that did not satisfy me.- Hide quoted 
  text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: Eclipse Classic 3.5

2009-07-31 Thread Sumit Chandel
Hi Sp4rkR4t,
The Google Plugin for Eclipse v1.1.0, which provides support for Eclipse
3.5, as been released yesterday. Announcement thread linked below.

Announcing the Google Plugin for Eclipse 1.1.0:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/aa74940787785f51

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/aa74940787785f51
Cheers,
-Sumit Chandel

On Tue, Jul 28, 2009 at 1:13 PM, Sp4rkR4t michael.she...@googlemail.comwrote:


 Does anyone have an eta on the 3.5 plugin yet?

 On Jun 24, 7:39 pm, mihai007 mihai@gmail.com wrote:
  Oh well just landed here because I already have eclipse 3.5
 
  Didn't even knew about this, nor I was actually using Eclipse 3.5
  already
 
  I think people should be more careful about those timelines...
  Great plugin by the way but now that it does not work it's a little
  useless
 
  On Jun 23, 4:58 pm, Miguel Méndez mmen...@google.com wrote:
 
   We are working on an update; we expect to release 3.5 support shortly.
 
   On Tue, Jun 23, 2009 at 6:56 AM, Prashanth prashanth.b...@gmail.com
 wrote:
 
Hi Rajeev,
 
Eclipse 3.5 release is tomorrow.
Can you please let us know when is the scheduled release of Google
plugin for the same.
 
Thanks,
Prashanth.
 
On Jun 12, 1:24 am, Rajeev Dayal rda...@google.com wrote:
 Hi,
 
 We're currently working on this. I don't have a set date for you,
 but we
 will get it out there as soon as we can.
 
 Thanks,
 Rajeev
 
 On Thu, Jun 11, 2009 at 4:15 PM, Joakim sarne...@gmail.com
 wrote:
 
  Any news on the progress of the 3.5 support? Can we expect a
 working
  plugin in time for the final release of Galileo in two weeks?
 
  On 28 Maj, 20:37, Miguel Méndez mmen...@google.com wrote:
   The plugin code is not open sourced at this time, but we do
 plan to
open
   source it.
 
   On Tue, May 26, 2009 at 7:50 PM, acabler acab...@gmail.com
 wrote:
 
This will be really nice to have.  Is the plugin code
 available in
svn
yet?  I would like to check it out so I can contribute
 patches for
issues like these.
 
thanks,
adam
 
On May 23, 10:40 am, Alex Rudnick a...@google.com wrote:
 Hey LiR,
 
 The plugin doesn't supportEclipse3.5yet. We're aware of the
 incompatibility, and it'll be fixed in an upcoming release
 --
likely
 soon before Galileo gets officially released.
 
 Thanks!
 
 On Fri, May 22, 2009 at 11:46 PM, LiR kirill...@gmail.com
 
wrote:
 
 EclipseClassic3.5is available but google plugin (for 3.4
version)
  doesn`t want to install in new version.
 
  I have a Install Details message in top of window:
 
  The operation cannot be completed.  See the details.
 
  And details block:
 
  Cannot complete the install because one or more required
 items
  could
  not be found.
  Software being installed:
  com.google.gdt.eclipse.suite.e34.feature.feature.group
  1.0.1.v200905131143
  Missing requirement:
  com.google.gdt.eclipse.suite.e34.feature.feature.group
  1.0.1.v200905131143 requires
'org.eclipse.platform.feature.group
  [3.4.0,3.5.0)' but it could not be found
 
 --
 Alex Rudnick
 swe, gwt, atl
 
   --
   Miguel
 
   --
   Miguel
 


--~--~-~--~~~---~--~~
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: problems with GWT plugin for eclipse.

2009-07-31 Thread Mauro

2009/7/31 Rajeev Dayal rda...@google.com:
 You need to use a 32-bit JVM when running GWT. Install a 32-bit JVM, and
 change your project's JDK to use the 32-bit JVM.
 In future versions of GWT, it will no longer be necessary to use a 32-bit
 JVM.

I have a 64bit platform and I don't want to use 32bit.
Why there isn't GWT for 64 bit?

--~--~-~--~~~---~--~~
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: ensureDebugId(String) doesn't set IDs

2009-07-31 Thread The Question

So I tracked down the issue.  It was one of those stupid things, but
just in case someone else is getting the same issues:

The important thing is where you put the ensureDebugId method.  I was
calling it when the widget was being added to a container, not
necessarily when it was being populated with values.  In the cases
where it wasn't working, the object would be changed dynamically and
hadn't been updated yet when I was calling the ensureDebugId method.

Stephen


On Jul 29, 3:59 pm, The Question visser.step...@gmail.com wrote:
 I, like many others am trying to use Selenium to test my GWT
 application.  Unlike the others, though, I am having a much harder
 time using theensureDebugId(String) method.

 What is funny is that I am succeeding in setting the ID in some places
 but not in others.  My gwt.xml file includes the requisite
 statement:

  inherits name=com.google.gwt.user.Debug/,

 However, the following code doesn't set the ID of the TabPanel or the
 widget:

         TabPanel tabPanel = new TabPanel();
         tabPanel.ensureDebugId(main-menu);
         widget.ensureDebugId(widget.getName() + -button);
         tabPanel.add(widget, widget.getName());

 There is a lot more going on in my application than what is listed
 here, but I do not set IDs explicitly anywhere in my code.  After
 compiling the application there are no IDs that exist in the generated
 source despite these statements in my code.

 However, for the following code:

         RootPanel MENU_PANEL = RootPanel.get(gwtMainMenu);
         menuPanel.ensureDebugId(menu-panel);

 The ID 'gwt-debug-menu-panel' appears as expected.

 I haven't tried definitively, but I think the same thing happens with
 setID().  So this may not be a problem only related toensureDebugId
 (String), but the way I set my IDs in general.  However, I am looking
 to use theensureDebugIdmethod--not the setID() when I create IDs for
 Selenium.

 Why the 'work-sometimes' behaviour?  Is there an order that I should
 be worried about?
 Any help would be appreciated...

 Stephen
--~--~-~--~~~---~--~~
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: Event and Interrupt Questions

2009-07-31 Thread spike2...@googlemail.com

Cool, I always wanted the clients on my page to run s...@home-work for
me ;-)

On 31 Jul., 16:48, Jason Essington jason.essing...@gmail.com wrote:
 Javascript is single threaded, so the event code has to wait its turn.  
 If a tight loop or something is running, the event's code won't  
 execute until the loop is finished.

 If you need events to fire in the middle of long running processes (or  
 simply don't want the browser to act frozen) place those processes  
 into an IncrementalCommand.

 -jason

 On Jul 29, 2009, at 4:37 PM, spike2...@googlemail.com wrote:



  Hey i was coding a GWT App and a question came up:

  Does an event like MouseOver interrupt already running code or does it
  even fire? Or is it put on the top of a stack like Deferred Command?

  Is there a website where all this is explained?

  Thx in advanced
--~--~-~--~~~---~--~~
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 OOPHM and Spring

2009-07-31 Thread zhenj

Hello, Guys,

I am using this GWT server library so that the GWT services can be
published in Spring framework as beans. In this framework, I think it
is the Spring intercepting the requests first. So if I run OOPHM, the
gwt.hosted=x.x.x.x:9997 part can't be picked up by gwt, am I right?

Any idea how to enable OOPHM in this situation?

thank you,

Zhenj

--~--~-~--~~~---~--~~
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: oophm on a mac

2009-07-31 Thread Zheren

I have run oophm on mac in eclipse. I think I just followed the
guideline in GWT wiki page. I have not tried command line yet.

-Ben

On Jul 31, 11:56 am, Tom Malone tomjmal...@gmail.com wrote:
 running from command line with ant tried it on a linux vm image and
 seemed to work, just seems to be a mac thing.

 Tom



 On Fri, Jul 31, 2009 at 4:53 PM, Rajeev Dayalrda...@google.com wrote:
  Are you running from the command-line, or within Eclipse? Are you using the
  Google Plugin for Eclipse?

  On Fri, Jul 31, 2009 at 9:47 AM, Tom tomjmal...@gmail.com wrote:

  Built GWT from trunk and when I ran on my mac I get these error
  messages:

  oophm:
      [java] 2009-07-31 12:09:56.402 java[50133:80f] [Java
  CocoaComponent compatibility mode]: Enabled
      [java] 2009-07-31 12:09:56.404 java[50133:80f] [Java
  CocoaComponent compatibility mode]: Setting timeout for SWT to
  0.10
      [java] 2009-07-31 12:09:58.325 java[50133:17303] *** -
  [NSConditionLock unlock]: lock (NSConditionLock: 0x1b7a60 '(null)')
  unlocked when not locked
      [java] 2009-07-31 12:09:58.326 java[50133:17303] *** Break on
  _NSLockError() to debug.
      [java] 2009-07-31 12:09:58.456 java[50133:17303] *** -
  [NSConditionLock unlock]: lock (NSConditionLock: 0x10c0f0 '(null)')
  unlocked when not locked

  what have I done wrong.

  Thanks in advance

  Tom
--~--~-~--~~~---~--~~
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: Adding event handler from *outside* widgets

2009-07-31 Thread max3000

And what to do when the widget is final like HorizontalSplitPanel?
(SplitPanel is even package-scoped).

Thanks,

Max



On Jul 30, 2:57 pm, Isaac Truett itru...@gmail.com wrote:
 Widgets, at least in the core GWT library, already have methods to add
 handlers for events that they support. If you're adding a custom event
 handler for a custom event that's not part of the Widget's API, then
 it makes sense to subclass the widget because you are, in fact,
 creating a new type of Widget.

 On Thu, Jul 30, 2009 at 10:51 AM, max3000maxime.lar...@gmail.com wrote:

  Hi,

  I find it very annoying that one can't add event handlers to widgets
  *outside* the widget itself. Am I missing something or is there no way
  this can be done elegantly?

  I'm thinking something like:

  panel.addHandler(ResizeEvent.getType(), new ResizeHandler() {
   public void onResize(ResizeEvent event) {
     view.refresh(true);
   }
  });

  I find myself constantly extending widgets simply to add such
  handlers.

  Thanks,

  Max
--~--~-~--~~~---~--~~
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: Announcing the Google Plugin for Eclipse 1.1.0

2009-07-31 Thread Frank Stallone

Thank you for the quick, solid release!

--~--~-~--~~~---~--~~
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: Adding event handler from *outside* widgets

2009-07-31 Thread Isaac Truett

What sort of event are you trying to add to HorizontalSplitPanel? A
Composite might make more sense.

On Fri, Jul 31, 2009 at 1:13 PM, max3000maxime.lar...@gmail.com wrote:

 And what to do when the widget is final like HorizontalSplitPanel?
 (SplitPanel is even package-scoped).

 Thanks,

 Max



 On Jul 30, 2:57 pm, Isaac Truett itru...@gmail.com wrote:
 Widgets, at least in the core GWT library, already have methods to add
 handlers for events that they support. If you're adding a custom event
 handler for a custom event that's not part of the Widget's API, then
 it makes sense to subclass the widget because you are, in fact,
 creating a new type of Widget.

 On Thu, Jul 30, 2009 at 10:51 AM, max3000maxime.lar...@gmail.com wrote:

  Hi,

  I find it very annoying that one can't add event handlers to widgets
  *outside* the widget itself. Am I missing something or is there no way
  this can be done elegantly?

  I'm thinking something like:

  panel.addHandler(ResizeEvent.getType(), new ResizeHandler() {
   public void onResize(ResizeEvent event) {
     view.refresh(true);
   }
  });

  I find myself constantly extending widgets simply to add such
  handlers.

  Thanks,

  Max
 


--~--~-~--~~~---~--~~
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: Creating and Importing GWT Independent Modules

2009-07-31 Thread Lucas Neves Martins

Nope,

Can anybody give a step-by-step ?

On 29 jul, 10:49, Nuno brun...@gmail.com wrote:
 you dont need to do much thing for this...
 just create your gwt library project, you dont need to define any
 entrypoints.

 after, just click with your right button on your project, then export, then
 select java package

 after you only need to import
 this jar on the other project you want to use it, and on the module
 xml make reference to the xml of the library.

 you can find an example on my blog.http://tcninja.blogspot.com

 On Wed, Jul 29, 2009 at 10:10 AM, Lucas Neves Martins 
 snown...@gmail.comwrote:





  I looked it up all over the internet, but I only found this link :

 http://developerlife.com/tutorials/?p=229

  I need to create a .jar with gwt views (those .java in the client
  package) and then import it to other gwt project, much like they do
  with the SmartGwt api.

  How they did the SmartGwt api? Where is the Docs/Tutorial/Whitepapers
  on how to create and export GWT modules?

  I follow the instructions on this link above, but it just doesn't
  work, when I try to compile it, I get an error telling me that the
  compiler couldn't find the class I am using, even the class is on the /
  lib dir, and in my buildpath, and in the .xml with a declared inherit.

  Does anybody know how do I do that?

 --
 Quer aprender a programar? acompanhe:
 Wants to learn GWT? Follow this blog -

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



Re: Displaying a loading image while waiting on RPC

2009-07-31 Thread Daniel Jue
I agree with Chad, I have this in my click handler:

display.getButton().addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
display.getButton().disable();
display.setStatusText(Please wait while your connection is
verified...);
doAuthorize(); //rpc called in this method, and status
updated with pass/fail messages, button re-enabled

}
});




On Fri, Jul 31, 2009 at 10:31 AM, Chad chad...@gmail.com wrote:


 Nick,

 Create your message however you want (DecoratedPopupPanel, GlassPanel,
 Highlighted text, whatever). Just before you call your RPC, display
 your message. Then, in both the onFailure and onSuccess methods of
 your AsyncCallback, hide your message.

 HTH,
 Chad

 On Jul 30, 8:21 pm, Nick_Zaillian nzaill...@gmail.com wrote:
  Hey all.  This is my first post to the group.  I've got a little GWT/
  App Engine web app (at nicksmap.org) I've whipped up that maps New
  York area craigslist rental listings (yeah, I know, others have done
  it already, but all of the other implementations miss A LOT of
  listings and have no flagging features...so I thought there was room
  for me to go ahead and try to do it right).  I've got an RPC that gets
  called every time a user drags a map.  This function (ermethod)
  provides data that is then used to populate the map with markers and
  correspnding infowindow content.  Because of the sheer number of
  listings I am dealing with, the RPC can often take a few seconds to
  deliver all of its data, during which time it looks to the user like
  nothing is happening.  I would like to be able to display a loading
  icon during this time.  I'm sure that this is a pretty trivial thing
  to do -- I'm just not sure how to do it, so thought I should ask the
  group.
  Thanks,
  Nick Zaillian
 


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



Mapping column and row data to a flextable:

2009-07-31 Thread James

Hello All,
I'm very new to GWT (we are using 1.6) and I'm seeing a lot of code
with a two dimension object array construct for column and row data
for flextables: Object[][]. I've done resultset data to jsp
conversions in the past and I've always used typed column objects as a
more OOP approach to structure the data versus what I'm seeing. Is
this really a best practice and if not what is the preferred structure
or am I wrong and this is it?

Thanks,
JamesD
--~--~-~--~~~---~--~~
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 long does my Webapplication live?

2009-07-31 Thread Isaac Truett

You can configure a servlet to load on startup in web.xml and then do
your startup work in the servlet's init() method.

servlet
  servlet-nameMyServlet/servlet-name
  servlet-classfoo.bar. MyServlet /servlet-class
  load-on-startup1/load-on-startup
/servlet



On Fri, Jul 31, 2009 at 12:54 PM, Ben2008umi...@googlemail.com wrote:

 Very useful indeed.
 And yes i mean serverside lifecycle.
 Is there a way to subscibe to server startup process?
 I want to initialise some things if my server starts. For example
 create my database connection pool.
 I dont want to wait for the first user request to do all that stuff.

 Thank you in advance.



 On Jul 30, 10:53 pm, Isaac Truett itru...@gmail.com wrote:
 Ben,

 I think you may be confused about the boundary between your GWT client
 and your server. The EntryPoint is just the first piece of your code
 that gets executed on the client, like a main() method. Any variables
 you declare in the EntryPoint or elsewhere in client code remain as
 long as the browser stays on your host page (subject to scoping, live
 reference, and garbage collection). Database connections, which can
 only exist on the server, will exist as long as your connection pool
 keeps them around (you are using connection pooling, aren't you?).

 Some other things that might interest you are the servlet life cycle
 (which might answer your question about how long your web application
 lives on the server) and Gears (which could help you keep data on
 the client between visits):

 http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets4.htmlhttp://gears.google.com/

 Hope that helps.
 - Isaac



 On Tue, Jul 28, 2009 at 12:31 PM, Ben2008umi...@googlemail.com wrote:

  Hi Folks,
  If I have a heavy load web application i do not want to rebuild some
  data (eg. creating instances and loading stuff from database etc.) for
  every page request.
  I want to do that once at startup or any later point and keep things
  alive as long as my webservice is online.And i would prefer a nice way
  to clear it if my server is shutting down.

  My Question is, how long does an Entry Point instance live and is
  there a way to keep variables (like database connections or anything
  else)  as long as the server is up?

  I wrote some mini applications, but that did not satisfy me.- Hide quoted 
  text -

 - Show quoted text -
 


--~--~-~--~~~---~--~~
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 1.7 Crash while Compiling HistoryImplTimer.java

2009-07-31 Thread Sumit Chandel
Hi all,
Thanks for sharing Isaac and Hiroshi.

For anyone else who is experiencing this issue, can you also make sure that
you don't have any previous GWT JARs on your hosted mode launch
configuration classpaths? If that doesn't fix the issue, please let us know
here.

Cheers,
-Sumit Chandel

On Fri, Jul 31, 2009 at 6:30 AM, Hiroshi YAMAMOTO
hyamamoto2...@gmail.comwrote:


  I had the same error as well.

  Removing old user.jar(1.6.4) from the classpath worked for 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: problems with GWT plugin for eclipse.

2009-07-31 Thread Rajeev Dayal
The current version of GWT can only run with a 32-bit JVM because GWT
depends on SWT, and GWT only bundles the 32-bit version of the SWT libraries
that it requires.
The next version of GWT will support Out-of-process-hosted-mode, which means
that you can use a real browser while debugging your GWT app, instead of the
hosted browser. Getting rid of the hosted browser means that GWT will no
longer depend on SWT, and you'll be able to use a 64-bit JVM with GWT.

If you want, you can actually build GWT Trunk right now, and try out
Out-of-process-hosted-mode. Though we have not really documented it, the
version of the plugin that we just released does support
Out-of-process-hosted mode.

On Fri, Jul 31, 2009 at 1:00 PM, Mauro mrsan...@gmail.com wrote:


 2009/7/31 Rajeev Dayal rda...@google.com:
  You need to use a 32-bit JVM when running GWT. Install a 32-bit JVM, and
  change your project's JDK to use the 32-bit JVM.
  In future versions of GWT, it will no longer be necessary to use a 32-bit
  JVM.

 I have a 64bit platform and I don't want to use 32bit.
 Why there isn't GWT for 64 bit?

 


--~--~-~--~~~---~--~~
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 Incubator project

2009-07-31 Thread jay

We're also using the PagingScrollTable in production. For the most
part it's been great. We've restyled things, and added support for
drag-n-drop of the columns.

The one issue we've run into (which I have not yet solved) is
programmatically setting the values in all the cells of a column can
be quite slow in IE. (Sorry, I cannot quantify right now, other than
to say...it's slooowww.) [Please note: I don't know if this is
inherent in the table itself, or the way we're setting the values.]

jay

On Jul 30, 8:17 pm, Zheren benzhe...@gmail.com wrote:
 Joe, thanks for your experiences. From the demo in the incubator
 project now, it seems like the PagingScrollTable is really powerful.

 -Ben

 On Jul 30, 9:22 pm, Joe Cole profilercorporat...@gmail.com wrote:



  We have been using the ScrollTable in production for a over a year.
  Things we have had to implement on our own (not sure if this stuff is
  covered in the current drops):
   - sorting using comparators
   - tablemodel interface (supporting paging)
   - storing of current sorting indices to original row indices.
   - We built our own paging mechanism, but if doing it again would
  probably use the incubators
   - On window resize recalculate columns.

  It works really well though, no complaints here.

  On Jul 31, 12:09 pm, Ben benzhe...@gmail.com wrote:

   Is there anyone using GWT incubator project in production? The
   PagiongScrollTable looks pretty interesting to me. But not sure if
   this incubator project is fine for production as GWT itself. If anyone
   has experiences, could you share your experiences?
--~--~-~--~~~---~--~~
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: oophm on a mac

2009-07-31 Thread Rajeev Dayal
See the following documentation for getting OOPHM working on the Mac:
http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM
Basically, you need to get rid of the -XstartOnFirstThread argument when
launching the shell.

On Fri, Jul 31, 2009 at 11:56 AM, Tom Malone tomjmal...@gmail.com wrote:


 running from command line with ant tried it on a linux vm image and
 seemed to work, just seems to be a mac thing.

 Tom

 On Fri, Jul 31, 2009 at 4:53 PM, Rajeev Dayalrda...@google.com wrote:
  Are you running from the command-line, or within Eclipse? Are you using
 the
  Google Plugin for Eclipse?
 
  On Fri, Jul 31, 2009 at 9:47 AM, Tom tomjmal...@gmail.com wrote:
 
  Built GWT from trunk and when I ran on my mac I get these error
  messages:
 
  oophm:
  [java] 2009-07-31 12:09:56.402 java[50133:80f] [Java
  CocoaComponent compatibility mode]: Enabled
  [java] 2009-07-31 12:09:56.404 java[50133:80f] [Java
  CocoaComponent compatibility mode]: Setting timeout for SWT to
  0.10
  [java] 2009-07-31 12:09:58.325 java[50133:17303] *** -
  [NSConditionLock unlock]: lock (NSConditionLock: 0x1b7a60 '(null)')
  unlocked when not locked
  [java] 2009-07-31 12:09:58.326 java[50133:17303] *** Break on
  _NSLockError() to debug.
  [java] 2009-07-31 12:09:58.456 java[50133:17303] *** -
  [NSConditionLock unlock]: lock (NSConditionLock: 0x10c0f0 '(null)')
  unlocked when not locked
 
 
  what have I done wrong.
 
  Thanks in advance
 
  Tom
 
 
 
 
  
 

 


--~--~-~--~~~---~--~~
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: Is there any performance advantage to Grid over FlexTable

2009-07-31 Thread Sumit Chandel
Hi Pete,
If you know the number of rows and columns that your table will need and
don't expect it to change, then by all means use the Grid widget. The
FlexTable will create new rows dynamically for each row added via the
insertRow() method. The time to execute the method to insert the row may be
negligible, but the cost of adding more tr elements each time insertRow is
called can be expensive. Your users will also pay for new columns that are
added dynamically through the FlexTable. The Grid widget is instead a
ready-to-render table with the specified number of rows and columns
constructed in the table. If the number of rows and columns is less than,
say, 10. you may not notice any difference in performance. As you climb to
more rows and columns, however, the difference can be much greater.

You should only consider using the FlexTable if you really need to grow a
table dynamically. In all other cases, the Grid widget or your own HTMLTable
subclass with a predefined number of rows and columns would be best.

Regarding VerticalPanel / HorizontalPanel versus the Grid - it depends on
what you would like to place in said panels or widgets. If it's just text,
the Grid will be suitable, but you could also use panels (in fact, the test
code snippet below produces the very similar same HTML table structures for
both the grid and the panel implementation). If it's anything more than text
data (such as other widgets), it might be better to use a panel to have
better control over the positioning and layout of the contained widget. On
the other hand, you may not want to use either option of horizontal panels
or grids if you're adding widgets and instead prefer an HTMLPanel with a
FlowPanel (see Kelly Norton's presentation link below).

Performance Tips for Google Web Toolkit (starting at 23:00 - 27:00):
http://www.youtube.com/watch?v=q9hhENmVTWg

Grid vs Panels:

  public void onModuleLoad() {
VerticalPanel mainPanel = new VerticalPanel();
Grid grid = new Grid(5, 5);
for (int i = 0; i  5; i++) {
  for (int j = 0; j  5; j++) {
grid.setText(i, j, bonjour);
  }
}

VerticalPanel verticalPanel = new VerticalPanel();
for (int i = 0; i  5; i++) {
  HorizontalPanel horizontalPanel = new HorizontalPanel();
  for (int j = 0; j  5; j++) {
horizontalPanel.add(new Label(hello));
  }
  verticalPanel.add(horizontalPanel);
}

mainPanel.add(grid);
mainPanel.add(verticalPanel);
RootPanel.get().add(mainPanel);
  }

The HTML table structure for both the panels and the grid in the code
snippet below will almost be exactly the same.

Hope that helps,
-Sumit Chandel

On Wed, Jul 29, 2009 at 11:24 AM, pbyo...@gmail.com pbyo...@gmail.comwrote:


 If I know exactly how many rows and columns I need, is there any
 performance advantage to using the Grid widget over the FlexTable
 widget?

 Along the same lines, is there any advantage to using Grid over
 HorizontalPanel, or VerticalPanel?


 - - - - - - - - - - - - - - - - - - - -
 Pete Yorke
 Storke Brothers, LLC



 


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



how to write file to server using rpc?

2009-07-31 Thread Sednus

   Hello,

  I need help I am new using GWT and I want to write a text file to
the server but i can't find a writer supported by this JRE... Can
anybody help?

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



Re: how to write file to server using rpc?

2009-07-31 Thread Norman Maurer

Hi,

just checkout the formpanel.

Bye,
Norman

2009/7/31 Sednus sed...@gmail.com:

   Hello,

  I need help I am new using GWT and I want to write a text file to
 the server but i can't find a writer supported by this JRE... Can
 anybody help?

 


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



Re: XML / Module problem? (Just upgraded both Eclipse and the GWT plugin..errors appeared on projects reimporting)

2009-07-31 Thread Rajeev Dayal
A few questions
-Can you post the source of the main module file that you're running?

-Can you view your launch configuration, and ensure that all of your project
modules that you expect are listed on the GWT tab?

-Can you view your launch configuration's classpath? Expand the GWT
Classpath container, and ensure that both gwt-user.jar and
gwt-dev-platform.jar are listed there.


Rajeev


On Fri, Jul 31, 2009 at 12:12 PM, darkflame darkfl...@gmail.com wrote:


 I've started to get lots of XML errors flagging when I try to compile.
 It seems it cant find the source code for various bits of XML
 handeling;

 [ERROR] Line 1486: No source code is available for type
 com.google.gwt.xml.client.Document; did you forget to inherit a
 required module?
 [ERROR] Line 1486: No source code is available for type
 com.google.gwt.xml.client.XMLParser; did you forget to inherit a
 required module?
 [ERROR] Line 1490: No source code is available for type
 com.google.gwt.xml.client.NodeList; did you forget to inherit a
 required module?
 ...
 etc.

 Yet, I *do* have;

 inherits name=com.google.gwt.xml.XML/

 In my module files.
 What gives?
 


--~--~-~--~~~---~--~~
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 Incubator project

2009-07-31 Thread Norman Maurer

Hi Jay,

I would be really interested in adding drag-n-drop to my
PagingScrollTable. Do you have some sample code to show you did this
?

Thx,
Norman

2009/7/31 jay jay.gin...@gmail.com:

 We're also using the PagingScrollTable in production. For the most
 part it's been great. We've restyled things, and added support for
 drag-n-drop of the columns.

 The one issue we've run into (which I have not yet solved) is
 programmatically setting the values in all the cells of a column can
 be quite slow in IE. (Sorry, I cannot quantify right now, other than
 to say...it's slooowww.) [Please note: I don't know if this is
 inherent in the table itself, or the way we're setting the values.]

 jay

 On Jul 30, 8:17 pm, Zheren benzhe...@gmail.com wrote:
 Joe, thanks for your experiences. From the demo in the incubator
 project now, it seems like the PagingScrollTable is really powerful.

 -Ben

 On Jul 30, 9:22 pm, Joe Cole profilercorporat...@gmail.com wrote:



  We have been using the ScrollTable in production for a over a year.
  Things we have had to implement on our own (not sure if this stuff is
  covered in the current drops):
   - sorting using comparators
   - tablemodel interface (supporting paging)
   - storing of current sorting indices to original row indices.
   - We built our own paging mechanism, but if doing it again would
  probably use the incubators
   - On window resize recalculate columns.

  It works really well though, no complaints here.

  On Jul 31, 12:09 pm, Ben benzhe...@gmail.com wrote:

   Is there anyone using GWT incubator project in production? The
   PagiongScrollTable looks pretty interesting to me. But not sure if
   this incubator project is fine for production as GWT itself. If anyone
   has experiences, could you share your experiences?
 


--~--~-~--~~~---~--~~
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 is HorizontalSplitPanel a final class?

2009-07-31 Thread jay

We needed the same thing, so we just copied the source into our own
source tree and made the necessary modifications.

jay

On Jul 30, 10:17 pm, shoe54 webblaz...@yahoo.com wrote:
 I want to override final void onSplitterResize(int x, int y) but that
 method and the class itself are both final. Or is there any other way
 to detect when the splitter has moved?
--~--~-~--~~~---~--~~
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: Mapping column and row data to a flextable:

2009-07-31 Thread Isaac Truett

James,

You might find that the PagingScrollTable in the GWT Incubator
projects fits your OO sensibilities a little better. Look for the one
in the gen2 package, not the deprecated version in widgetideas.

http://code.google.com/p/google-web-toolkit-incubator/

Hope that helps,
Isaac

On Fri, Jul 31, 2009 at 1:46 PM, Jamesjdrinka...@gmail.com wrote:

 Hello All,
 I'm very new to GWT (we are using 1.6) and I'm seeing a lot of code
 with a two dimension object array construct for column and row data
 for flextables: Object[][]. I've done resultset data to jsp
 conversions in the past and I've always used typed column objects as a
 more OOP approach to structure the data versus what I'm seeing. Is
 this really a best practice and if not what is the preferred structure
 or am I wrong and this is it?

 Thanks,
 JamesD
 


--~--~-~--~~~---~--~~
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: RichTextToolbar Question

2009-07-31 Thread Sean

Ah, thank you. I forgot all the examples are in the GWT source code.
This thing is pretty sweet, I'm surprised it's not part of the normal
API.

Thank you,

Sean

On Jul 31, 9:23 am, Imran imran...@gmail.com wrote:
 This class is not part of the API. Instead, it was created in the demo to
 show you what can be done. Download the code for the demo and copy the file
 from there.

 Petarian.

 On Fri, Jul 31, 2009 at 9:11 AM, Sean slough...@gmail.com wrote:

  So, I am looking at the GWT Showcase and at:
 http://gwt.google.com/samples/Showcase/Showcase.html#CwRichText

  They have this amazing Toolbar. I look at the source code and they
  have:

   RichTextArea area = new RichTextArea();
   area.ensureDebugId(cwRichText-area);
   area.setSize(100%, 14em);
   RichTextToolbar toolbar = new RichTextToolbar(area);

  Problem is, I can't find RichTextToolbar in GWT. Eclipse can't include
  it and I can't find it in the javadocs. Are they using something that
  isn't in language yet?
--~--~-~--~~~---~--~~
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: XML / Module problem? (Just upgraded both Eclipse and the GWT plugin..errors appeared on projects reimporting)

2009-07-31 Thread twdarkflame

I looked in the classpath tab in eclipse but couldnt see  gwt-user.jar
or gwt-dev-platform.jarjust the GWT SDK 1.7.0 (which wasnt
expandable) and which I assumed replaced them.
I downloaded them anyway, and added them manually, but it didn't
remove the error.

I do believe all my project modules are listed fine...I'm referencing
too other projects and there not giving any seperate errors. (but each
project is flagging the lack of XML separately)

I also notice all 3 of them are flagging a warning;

Module declares a servlet class
'com.google.gwt.libideas.logging.server.RemoteLoggingServiceImpl', but
the web.xml has no corresponding declaration; please add the following
lines to your web.xml:
servlet
  servlet-nameremoteLoggingServiceImpl/servlet-name
  servlet-
classcom.google.gwt.libideas.logging.server.RemoteLoggingServiceImpl/
servlet-class
/servlet
servlet-mapping
  servlet-nameremoteLoggingServiceImpl/servlet-name
  url-pattern/SpiffyResources/logging/url-pattern
/servlet-mapping


I'm not using servlets, and none of my module xml isnt specifying
them :-/

I'm getting the impression here that with the change over its somehow
reading default information from ...somewhere...rather then my own
*.gwt.xml files.
Is that possibly?

Heres my main module xml;

module rename-to='Rateoholic_Frame'

  !-- Inherit the core Web Toolkit stuff.
--
  inherits name='com.google.gwt.user.User'/

  !-- Inherit the default GWT style sheet.  You can change
--
  !-- the theme of your GWT application by uncommenting
--
  !-- any one of the following lines.
--
  inherits name='com.google.gwt.user.theme.standard.Standard'/
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/
--
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/
--

  !-- Other module inherits
--

   inherits name=com.google.gwt.xml.XML/
inherits name='com.google.gwt.widgetideas.WidgetIdeas' /
inherits name='com.google.gwt.libideas.LibIdeas' /

 inherits name='com.google.gwt.widgetideas.GWTCanvas'/
!-- inherits name='gwt.canvas.gwt-canvas'/ --

  !-- Specify the app entry point class.
--
  entry-point class='com.darkflame.client.Rateoholic_Frame'/

  !-- Specify the application specific style sheet.
--
  stylesheet src='Rateoholic_Frame.css' /

/module

Thanks.



On Jul 31, 8:19 pm, Rajeev Dayal rda...@google.com wrote:
 A few questions
 -Can you post the source of the main module file that you're running?

 -Can you view your launch configuration, and ensure that all of your project
 modules that you expect are listed on the GWT tab?

 -Can you view your launch configuration's classpath? Expand the GWT
 Classpath container, and ensure that both gwt-user.jar and
 gwt-dev-platform.jar are listed there.

 Rajeev



 On Fri, Jul 31, 2009 at 12:12 PM, darkflame darkfl...@gmail.com wrote:

  I've started to get lots of XML errors flagging when I try to compile.
  It seems it cant find the source code for various bits of XML
  handeling;

  [ERROR] Line 1486: No source code is available for type
  com.google.gwt.xml.client.Document; did you forget to inherit a
  required module?
  [ERROR] Line 1486: No source code is available for type
  com.google.gwt.xml.client.XMLParser; did you forget to inherit a
  required module?
  [ERROR] Line 1490: No source code is available for type
  com.google.gwt.xml.client.NodeList; did you forget to inherit a
  required module?
  ...
  etc.

  Yet, I *do* have;

  inherits name=com.google.gwt.xml.XML/

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



How do you deal with Validation and MVP?

2009-07-31 Thread Eduardo Nunes

Hello guys,

  I would like to talk to you about validation and the MVP pattern.
Does someone already have implemented it? I checked out some
validation frameworks, some of them are very interesting but I'm
having problems to use them with the MVP pattern. I think that most of
validation feedback screens can be cataloged as:
1. The ones that show messages in some part of the application, all
messages together. Usually you need the same behavior inside a popup
for example.
2. The ones that show messages near the widget that generates the
problem, for example an invalid e-mail address message beside the
TextBox.
3. The ones that are a mix of the two above.

For the the first one the solution is quite simple, I did it creating
two events, ValidationError and ValidationOk, the presenter fire those
events after validation. The ValidationErrorEvent keeps the list of
error messages (or message keys). I didn't find a solution to work
with popups in this case.

For the other two I haven't found a solution. Maybe creating an
interface and adding it to each widget that accepts interface
modifications because of validations. I don't know, I'm using as
reference these two frameworks: http://gwt-validation.googlecode.com
and http://sourceforge.net/projects/gwt-vl/ (you can find a comparison
of them here: http://techblog.maydu.eu/?p=7)

Let's talk about it...

As soon as I get progress I will post here.

Best regards,

-- 
Eduardo S. Nunes
http://e-nunes.com.br

--~--~-~--~~~---~--~~
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 Compile Issue

2009-07-31 Thread gangurg gangurg
I have included org.apache.common.lang.StrinUtils  in my Entry Point java
file . I have included common-lang.jar in my web-app library .The Java
Compilation goes through . but if i do a GWT compile i get the following
error

[ERROR] Line 32: No source code is available for type
org.apache.commons.lang.StringUtils; did you forget to inherit a required
module?


I use Eclipse , GWT plug in .

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



PopupPanel setAnimationType() is package-private

2009-07-31 Thread Nathan Wells

I was just going through the PopupPanel class working on an unrelated
issue, and I found that there is a capability to set different types
of animation (setAnimationType(AnimationType type)), but the method is
package-private. Is there a reason for this? I would like to use one
of the option in the enum, but would need to pull it out of the jar to
do this...

Does anyone know why it's package-private? the method above
(setAnimation(ResizeAnimation animation)) says something about the API
possibly changing with 1.6. Obviously it hasn't changed so, can I
have it now :)?

--~--~-~--~~~---~--~~
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: oophm on a mac

2009-07-31 Thread Tom Malone

Thanks sorry, had been a muppet thought that I had to make sure it was there.

Sorry and thanks

Tom

On Fri, Jul 31, 2009 at 7:14 PM, Rajeev Dayalrda...@google.com wrote:
 See the following documentation for getting OOPHM working on the
 Mac: http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM
 Basically, you need to get rid of the -XstartOnFirstThread argument when
 launching the shell.

 On Fri, Jul 31, 2009 at 11:56 AM, Tom Malone tomjmal...@gmail.com wrote:

 running from command line with ant tried it on a linux vm image and
 seemed to work, just seems to be a mac thing.

 Tom

 On Fri, Jul 31, 2009 at 4:53 PM, Rajeev Dayalrda...@google.com wrote:
  Are you running from the command-line, or within Eclipse? Are you using
  the
  Google Plugin for Eclipse?
 
  On Fri, Jul 31, 2009 at 9:47 AM, Tom tomjmal...@gmail.com wrote:
 
  Built GWT from trunk and when I ran on my mac I get these error
  messages:
 
  oophm:
      [java] 2009-07-31 12:09:56.402 java[50133:80f] [Java
  CocoaComponent compatibility mode]: Enabled
      [java] 2009-07-31 12:09:56.404 java[50133:80f] [Java
  CocoaComponent compatibility mode]: Setting timeout for SWT to
  0.10
      [java] 2009-07-31 12:09:58.325 java[50133:17303] *** -
  [NSConditionLock unlock]: lock (NSConditionLock: 0x1b7a60 '(null)')
  unlocked when not locked
      [java] 2009-07-31 12:09:58.326 java[50133:17303] *** Break on
  _NSLockError() to debug.
      [java] 2009-07-31 12:09:58.456 java[50133:17303] *** -
  [NSConditionLock unlock]: lock (NSConditionLock: 0x10c0f0 '(null)')
  unlocked when not locked
 
 
  what have I done wrong.
 
  Thanks in advance
 
  Tom
 
 
 
 
  
 




 


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



Why does not HTMLPanel implement HasHTML interface?

2009-07-31 Thread Gregory Kanevsky

It seems very logical - almost obvious to me or what I am missing?

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



  1   2   >