Re: Best practises in automatic test and deployment

2010-12-06 Thread Mark van Veen
Hi there,

thanks a lot for your suggestions I will have a look at it!

Mark

PS: I searched my mailing on the webinterface at google groups but couldnt
find it. Now I answered via gmail - is there a problem with the web
interface?

2010/12/1 Ray Tayek rta...@ca.rr.com

 At 06:10 AM 12/1/2010, you wrote:

 ... I am looking for some good tools which help me with

 deploying my application automaticly in a tomcat test server and later
 on the production server. ...

 What I am still missing is a automatic way of generating war files
 which are deployed on the test server(with different properties like
 db connection and user)  ,,,


 if you are not already aware of it, this may be of interest:
 http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html#Deploying_using_the_Client_Deployer_Package

 thanks

 ---
 co-chair http://ocjug.org/


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




-- 
Mit freundlichen Grüßen

Mark van Veen

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



Re: GAE Channels API in GWT

2010-12-06 Thread l.denardo
This other project was linked by the App Engine team:

http://code.google.com/p/gwt-gae-channel/

(discussion thread is
http://groups.google.com/group/google-appengine-java/browse_thread/thread/8cdf8e0a2276a9dd/fcb91bc1c62deb32?lnk=raot#fcb91bc1c62deb32).
Code should be derived from the DanceDanceRobots demo, which is
explained in Google IO sessions.

Regards
Lorenzo



On Dec 5, 10:25 pm, Andrea mariofut...@googlemail.com wrote:
 Hi,

 after the recent release of GAE supporting push services via the Channels API
 I wonder what is the best way to use it a GWT application.

 I mean, the example given in GAE requires use of javascript (client side) and 
 servlets (server side).

 Is the a pure java way, fully integrated in GWT?
 I've foundhttp://code.google.com/p/gwt-channel/but it does not look too 
 active.

 Any other solution?

 Andrea

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



OpenSuse 11.2

2010-12-06 Thread Fabiano
I'm a bit late on this topic but I have faced this problem with
OpenSuse 11.1.
The trick:
su
cd /usr/lib64
ln -s libnspr4.so libnspr4.so.0d


deleting compreg.dat in my firefox's profile folder has been
mandatory.
Has worked fine!
Thanks for the rips

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



New google code project : gwt-table-to-excel ... Excel export made easy

2010-12-06 Thread Francois Wauquier
Hi

I am pleased to share this project to facilitate excel export :
http://code.google.com/p/gwt-table-to-excel/

Francois Wauquier

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



Re: Tutorial-Contacts2-2.1

2010-12-06 Thread Bruno Santos
I had already talked about it:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/645020d9414f0205#

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



Re: New google code project : gwt-table-to-excel ... Excel export made easy

2010-12-06 Thread Gal Dolber
Great job! thanks

On Mon, Dec 6, 2010 at 9:43 AM, Francois Wauquier wok...@gmail.com wrote:

 Hi

 I am pleased to share this project to facilitate excel export :
 http://code.google.com/p/gwt-table-to-excel/

 Francois Wauquier

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




-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

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



Re: NetBeans GWT and JUNIT

2010-12-06 Thread darkling
I've been working on this all weekend without success. Can anyone help
me?

On Dec 3, 2:33 pm, darkling darkling...@aol.com wrote:
 I also wanted to add my Test class in case something in there is being
 done wrong:

 package com.baa.client;

 import com.baa.client.model.WebAppRestDataSource;
 import com.baa.client.presentation.DummyDynamicFormPresentation;
 import com.baa.client.presentation.DynamicFormPresentation;
 import com.google.gwt.junit.client.GWTTestCase;
 import com.smartgwt.client.data.Criteria;
 import com.smartgwt.client.data.DSRequest;
 import com.smartgwt.client.data.DSResponse;

 /**
  *
  * @author mmagliocca
  */
 public class BaseDynamicFormTest extends GWTTestCase{

     public BaseDynamicFormTest()
     {
         //ClasspathUtility.printDuplicates();
     }

     @Override
     public String getModuleName() {
         return com.baa.Scaffolding;
     }

 /*
     @Test
     public void testTest() {
     }

     @Test
     public void testSave() {
     }

     @Test
     public void testCancel() {
     }

     @Test
     public void testGetPermissionsObject() {
     }
 */
     //@Test
     public void testFetchData()
     {
        int x =1;
        x++; //finishTest();
     }

     //@Test
     public void testGetXSD()
     {
         BaseDynamicFormImpl impl = new BaseDynamicFormImpl();
         TestDynamicFormXSDDSCallBack xsdCallBack = new
 TestDynamicFormXSDDSCallBack();
         TestDynamicFormDataDSCallBack dataCallBack = new
 TestDynamicFormDataDSCallBack();
         Criteria criteria = new Criteria(ID, 3);
         dataCallBack.setForm(impl);
         xsdCallBack.setForm(impl);
         xsdCallBack.setForm(impl);
         xsdCallBack.setDsCallback(dataCallBack);
         xsdCallBack.setForm(impl);
         this.delayTestFinish(5000);
         impl.fetchXSD(criteria, xsdCallBack);
     }

 /*
     @Test
     public void testSetValidator() {
     }
 */
     public class BaseDynamicFormImpl extends BaseDynamicForm {

         public DynamicFormPresentation getPermissionsObject() {
             return new DummyDynamicFormPresentation(null);
         }
     }

     public class TestDynamicFormXSDDSCallBack extends
 DynamicFormXSDCallBack
     {
         @Override
         public void execute(WebAppRestDataSource ds) {
             finishTest();
             super.execute(ds);
             //validate correctness
         }
     }

     public class TestDynamicFormDataDSCallBack extends
 DynamicFormDataCallBack
     {
         @Override
         public void execute(DSResponse response, Object rawData,
 DSRequest request)
         {
             super.execute(response, rawData, request);
             //validate correctness
             finishTest();
         }
     }

 }

 On Dec 3, 9:24 am, darkling darkling...@aol.com wrote:

  I'm trying to debug my Junit test case because its throwing tons of
  errors. However when I try to debug it instead of being able to run
  it, it tells me

  The test class 'com.baa.client.BaseDynamicFormTest' was not found in
  module 'com.baa.AccountView'; no compilation unit for that type was
  seen
  com.google.gwt.junit.JUnitFatalLaunchException: The test class
  'com.baa.client.BaseDynamicFormTest' was not found in module
  'com.baa.AccountView'; no compilation unit for that type was seen
          at
  com.google.gwt.junit.JUnitShell.checkTestClassInCurrentModule(JUnitShell.java:
  605)
          at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:
  1189)
          at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:
  1152)
          at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:
  541)
          at
  com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:406)
          at
  com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:282)

  So now rather than debugging the errors that are caused when I run the
  test, I'm trying to debug the errors that only appear when I debug the
  test!

  I've seen lots of posts on this basic topic but they've all been
  Eclipse based and I'm not sure how to translate it for Netbeans. I'm
  using the GWT netbeans plugin and my test classes live in the test
  directory not the src directory.
  This is my module file:

  ?xml version=1.0 encoding=UTF-8?
  !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 2.0.0//
  EN http://google-web-toolkit.googlecode.com/svn/tags/2.0.0/distro-
  source/core/src/gwt-module.dtd
  module
    !-- Inherit the core Web Toolkit stuff.                        --
    inherits name=com.google.gwt.user.User/
    inherits name=com.smartgwt.SmartGwt/

    !-- TODO: remove from production --
    !-- provides access to SmartGWT console for debugging, to start
  console enter javascript:isc.showConsole() in browser URL --
    inherits name=com.smartgwt.tools.SmartGwtTools/

    !-- SmartGWT skin that we modify --
    !-- TODO: determine if we can rename this --
    inherits name=com.smartclient.theme.silverwave.SilverWave/
    

IE removes param tag when getHTML() is called

2010-12-06 Thread jucimarjr
I've created an object tag with some param tags. For example:

object style=width:480px; height:360px; display:inline-block;
background-color:black;  type=application/x-shockwave-flash
data=http://www.youtube.com/v/
tk5SuyoNiYArel=0autoplay=0loop=0enablejsapi=1disablekb=0egm=0border=0color1=color2=hl=pt_BRfeature=player_embeddedfs=1
param name=movie value=http://www.youtube.com/v/
tk5SuyoNiYArel=0autoplay=0loop=0enablejsapi=1disablekb=0egm=0border=0color1=color2=hl=pt_BRfeature=player_embeddedfs=1/

param name=allowFullScreen value=true/
param name=allowScriptAccess value=always/
param name=wmode value=transparent/
/object


But, when I call html.getHTML() in IE, what is returned is:

object style=width:480px; height:360px; display:inline-block;
background-color:black;  type=application/x-shockwave-flash
data=http://www.youtube.com/v/
tk5SuyoNiYArel=0autoplay=0loop=0enablejsapi=1disablekb=0egm=0border=0color1=color2=hl=pt_BRfeature=player_embeddedfs=1
/object


Somebody knows what can I do to get the full content?

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



Re: RequestFactory don't play nice with guice?

2010-12-06 Thread Simon Majou
Thanks for the info.

On Dec 5, 10:48 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 5 déc, 01:06, Simon Majou si...@majou.org wrote:

  When creating an object with RequestFactory the @inject fields are not
  injected. I guess RequestFactory don't use guice to create the
  objects. How can I delegate objects creation to Guice?

 Just wait for the 2.1.1 release and then implement a
 ServiceLayerDecorator.
 Seehttp://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_1_1
 andhttp://code.google.com/p/google-web-toolkit/source/browse/releases/2
 Javadoc for each method can be find in the ServiceLayer 
 class:http://code.google.com/p/google-web-toolkit/source/browse/releases/2

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



Re: How to create Gmail contextual gadget using GWT?

2010-12-06 Thread Alexander
By the way, some useful tags you should add using  @FeatureName.

For example: @FeatureName(value = dynamic-height)

Details see here 
http://code.google.com/p/gwt-google-apis/wiki/GadgetsGettingStarted#Adding_container_features

But I still don't know how to get such tag automatically after
compilation :(

!-- Define the content type and display location. The
settings
html and card are required for all Gmail contextual gadgets. --

Content type=html view=card

How to get added attribute view=card to Content  tag?

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



How do you use TabLayoutPanels with MVP ?

2010-12-06 Thread Marcin Misiewicz
Hi

I'm wondering what is the best practice of using mvp and
TabLayoutPanel with the following layout of the page.
The page layout is master/details. On top it displays some properties
of the model and on the bottom in the tabs it shows some history data
related to that model object. I guess its not rare case especially in
business applications.

So the object model is pretty straightforward one presenter/view for
handling of the model object properties and bunch of presenters/views
which are handling related history data.

The problem is how to wire together TabLayoutPanel and presenters/
views it is responsible to display.
I read the MVP part I and II tutorial and there parent presenter calls
the go(HasWidgets container) on the child presenter so the child
presenter can initialize and attach its view to the display
container.
But it's not the case when the container is TabLayoutPanel since when
adding the tab I have to pass two widgets : header and tab content
widget.
On other hand TabLayoutPanel does not introduce handy interface for
that operation for example HasWidgetsAndHeaders and for obvious
reasons I would like to stick to interfaces in the presenters go()
methods not go(TabLayoutPanel container).

So I came with the following solution, my uibinder looks like this :

g:FlowPanelg:LabelMaster display/g:Label/g:FlowPanel
g:TabLayoutPanel barHeight='3' barUnit='EM'
g:tab
g:headerTab 1/g:header
g:FlowPanel ui:field=tab1g:/FlowPanel
/g:tab
g:tab
g:headerTab 2/g:header
g:FlowPanel ui:field=tab2g:/FlowPanel
/g:tab
/g:TabLayoutPanel

Then presenter holding the TabLayoutPanel listens for the tab
selection events and binds the corresponding presenter display to its
tab container.

I'm not sure if its the best approach when working with TabLayoutPanel
in MVP manner. Perhaps you have found the better solution ?
I'm sure that the are more solutions and would like to know more about
them especially since this problem is related to nested presenters,
which are stronly debated here.

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



How to handle application state ?

2010-12-06 Thread Mittal
Here's the use case we are dealing with,

SSO token shall be received by GWT application.
SSO token shall have user profile and role information.
Once I have read SSO token, I would like to use User Profile
information to be available in header page and Role information in
navigation page to control who see's what in terms of functionality
(tabs).

How do I store or hold token information as an application state ?

- Mittal

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



Re: How to handle application state ?

2010-12-06 Thread Jeff Schwartz
In your case the state you want to preserve seems to be associated with a
particular user, not the application, so you can use either cookies or
servlet session state to persist the information when the user logs in and
you can then query the information when displaying tabs or reacting to other
user interface events.

Jeff

On Mon, Dec 6, 2010 at 9:39 AM, Mittal mitt...@gmail.com wrote:

 Here's the use case we are dealing with,

 SSO token shall be received by GWT application.
 SSO token shall have user profile and role information.
 Once I have read SSO token, I would like to use User Profile
 information to be available in header page and Role information in
 navigation page to control who see's what in terms of functionality
 (tabs).

 How do I store or hold token information as an application state ?

 - Mittal

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




-- 
*Jeff Schwartz*

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



Re: not being able to import import com.google.gwt.view.client.ListViewAdapter;

2010-12-06 Thread vsdev
com.google.gwt.view.client.ListViewAdapter was replaced by
com.google.gwt.view.client.ListDataProvider in GWT 2.1 M3.

On 6 Dez., 02:53, Noor baken...@gmail.com wrote:
 Hi, I am not being able to import import
 com.google.gwt.view.client.ListViewAdapter;. I have GWT 2.1 and it is
 giving the error The import com.google.gwt.view.client.ListViewAdapter
 cannot be resolved

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



GWT + MySQL

2010-12-06 Thread du.hahn
Hi, I get this error when i connect to a mysql database with eclipse
debug.


Starting Jetty on port 
   [WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type
'com.mysql.jdbc.exceptions.jdbc4.CommunicationsException' was not
included in the set of types which can be serialized by this
SerializationPolicy or its Class object could not be loaded. For
security purposes, this type will not be serialized.: instance =
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
Communications link failure

The last packet sent successfully to the server was 0 milliseconds
ago. The driver has not received any packets from the server.
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
614)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
126)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
534)
at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:609)
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
383)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
581)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
207)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
243)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
362)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
49)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
505)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
395)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:488)
[ERROR] 500 - POST /dbmind/greet (127.0.0.1) 57 bytes
   Request headers
  Host: localhost:
  Connection: keep-alive
  Referer: http://localhost:/
  Accept: */*
  User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/
534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7
  Accept-Encoding: gzip,deflate,sdch
  Accept-Language: en-US,en;q=0.8
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
  Content-Length: 184
  Origin: http://localhost:
  X-GWT-Module-Base: http://localhost:/dbmind/
  Content-Type: text/x-gwt-rpc; charset=UTF-8
  X-GWT-Permutation: 35D485F388E45FAF93FBD6C114AF0A90
   Response headers
  Content-Type: text/plain


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



Re: How do you use TabLayoutPanels with MVP ?

2010-12-06 Thread massimo malvestio
Try reading this thread
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/9ffeca279983d16e/6f8babc1d9beeb57?lnk=gstq=GWT+2.1+Activities+%E2%80%93+nesting%3F+YAGNI+%3F+-+an+example+of+where+you+NEED+it+!#6f8babc1d9beeb57

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



Re: How to handle application state ?

2010-12-06 Thread Mittal
Yes, its application state for a User. Why do I need to query server
information every time for a user, I think I should able to create
client side object such as UserProfile, populate it from server side
once user logs in and then pass client side UserProfile object where
its required such as Header or Navigation pages.

- Mittal

On Dec 6, 9:47 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
 In your case the state you want to preserve seems to be associated with a
 particular user, not the application, so you can use either cookies or
 servlet session state to persist the information when the user logs in and
 you can then query the information when displaying tabs or reacting to other
 user interface events.

 Jeff



 On Mon, Dec 6, 2010 at 9:39 AM, Mittal mitt...@gmail.com wrote:
  Here's the use case we are dealing with,

  SSO token shall be received by GWT application.
  SSO token shall have user profile and role information.
  Once I have read SSO token, I would like to use User Profile
  information to be available in header page and Role information in
  navigation page to control who see's what in terms of functionality
  (tabs).

  How do I store or hold token information as an application state ?

  - Mittal

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

 --
 *Jeff Schwartz*

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



Re: GWT + MySQL

2010-12-06 Thread Gaurav Vaish
Ensure that the jar is also in the WEB-INF/lib folder (required during
runtime - Jetty server).



--
Happy hacking,
Gaurav Vaish
http://www.mastergaurav.com


On Nov 30, 1:54 pm, mgm gabor.mundru...@gmail.com wrote:
 I am having the same issue.. I am using MySQL on the server side
 (server source package only) and there is the run-time error of:

   java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

 I do have the mysql package (mysql-connector-java.jar) in the eclipse
 class path (in Project / Properties / Java Build Path) and still it
 does not work.

 Does anyone know how to configure correctly? perhaps there are other
 settings to make...

 thanks
 Gabor

 On Nov 5, 2:23 pm, Ross McKinnon r.mckinno...@googlemail.com wrote:

  Hi there,

  I've spent numerous hours this week trying to get my existing GWT
  application to connect with an existing MySQL database with no luck.

  I've created my code to connect to the database using JDBC and is kept
  in the server package to ensure it remains as java code.  Also i have
  included the mySQL jar file in the build path for the project but
  still get an error

  java.lang.ClassNotFoundException:com.mysql.jdbc.Driver...

  I have tried numerous ways of getting the database and have ran out of
  ideas now so thought I would consult the experts to see if any kind
  person can lend a hang..

  Thanks for any help,

  Ross



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



Re: Plugin Upgrade Woes

2010-12-06 Thread Rajeev Dayal
Hey Evan,

Thanks for the information. Replies inline.

On Sun, Dec 5, 2010 at 1:36 PM, Evan Ruff evan.r...@hendersonsawmill.comwrote:

 Rajeev,

 Thank you for your response!

 1. The SDKs are listed as:
 gwt-2.0.4, 2.0.4, T:\gwt-2.0.4
 gwt-2.1.0, 2.1.0, T:\gwt-2.1.0

 All of them are clear without errors. T: is a symbolic drive that I store
 all tools. It has always worked previous to this issue, so I don't think
 that's the problem. I can use it for all my other Java projects.


Ok.



 2. I have Ant, but no Maven or Spring.


Ok. No AspectJ either, right?


 3. Checking the file system. Absolutely no .class files anywhere in
 WEB-INF/classes (my output directory)

 4. To get the .class files to appear, I went to the project's
 PropertiesGoogleWeb Toolkit. In that dialog, there is a Use Google Web
 Toolkit checkbox. I unchecked this and then Cleaned all projects. The
 .class files appeared in the file system as usual.

 5. Navigating to the build path in question, the only GWT specific thing on
 the build path is the library: GWT SDK [gwt-2.0.4 - 2.0.4]. It's on 2.0.4
 because I was switching back and forth from 2.1.0 trying to get it to
 complie.

 6. The only errors listed is The project '**' does not have any GWT
 SDKs on its build path. for the project in question.


And this is in the Error Log (Window - Show View - Error Log), not the
Problems View, right?



 I have already attempted to revert my Eclipse back to the previous
 revision, unfortunately, that crashes HARD.


That's unfortunate. How does it crash?



 Thanks for your help!

 E


A few other questions:

1) Can you post the contents of your .classpath and .project files?

2) Turn on GWT by checking Use GWT checkbox. Hit OK to exit the Project
Properties Dialog and apply the changes. Then, go back into Project
Properties and:

i) Navigate to the Java Build Path section, and tell me what the output
folders are for all of your defined source folders
ii) Navigate to the Builders section, and tell me what Builders are listed.
Additionally, tell me which ones are enabled and which ones are disabled.


Thanks,
Rajeev





 On Sun, Dec 5, 2010 at 1:26 PM, Rajeev Dayal rda...@google.com wrote:

 HI Evan,

 I'm sorry that you're experiencing these problems. When was the last time
 you had updated the plugin?

 If you don't mind, let me collect a few pieces of information from you -
 that will help me figure out what's going on:

 1) Can you tell me the names, versions, and locations of the GWT SDKs
 listed under Preferences - Google - Web Toolkit? Do any of these SDKs have
 a red X next to them?

 2) Are any of projects with problems Maven and/or Spring/Roo projects?

 3)  When you say there are Zero class files, are you checking on the file
 system, or are you checking from within Eclipse? Eclipse won't list the
 class files in the output folder within the workspace (since it's a special
 folder).

 4) What fiddling did you do to get the .class files to re-appear (but to
 end up with the there are no GWT SDKs on your build path problem

 5) If you navigate to the build path for one of your project with
 problems, how many GWT SDKs do you see listed on the classpath? There should
 be only one.

 6) Check out the Error log (Window - Show View - Error Log). Do you see
 any errors listed there?

 To drop back to the previous version, use Eclipse's Revert to Previous
 Configuration. Here are the instructions for Eclipse 3.6, but they are
 similar for Eclipse 3.5:


 http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/tasks-123.htm


 Rajeev


 On Sat, Dec 4, 2010 at 10:55 AM, Evan Ruff evan.r...@gmail.com wrote:

 After fiddling with this some more, I am now getting the project does
 not have any GWT SDKs on its build path even though the GWT SDK
 library is marked and the gwt-user.jar and gwt-dev.jar are located in
 that library.

 Has anyone else experienced errors of this nature with the plugin?

 Thanks!

 E

 On Dec 2, 12:43 pm, Evan Ruff evan.r...@gmail.com wrote:
  Hey guys,
 
  I'm having a really tough time today. I upgraded my GWT Plugin to
  1.4v201010280047 at the update site and it has completely broken all
  of my projects. When I have the Use GWT item selected in my project
  properties, it will not generate any class files. the WEB-INF/classes
  folder structures (as well as the gwt.xml resources) are all there,
  but there are ZERO class files. When I uncheck the Use GWT box, all
  my class files are compiled as normal.
 
  Obviously, this has been pretty frustrating this morning. Is this a
  known issue with the new Plugin and Eclipse 3.5? I'm POSITIVE I'm
  installing the correct plugin for my version. Is there any way I can
  fall back to the previous version? There does not seem to be any
  listed at the update site.
 
  Thanks for any help or direction,
 
  Evan

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, 

Re: WEB SERVICES

2010-12-06 Thread bond
Hi nancho. I've a similar problem.
I've a web project made with eclipse plugin that run on embedded
jetty. I want to create a ws with axis2 but the axis2 plugin don't
permit me to add a webservice because my project has not a server
(Tomcat).
Have you created a gwt project that can run on Tomcat with eclipse +
gwt eclipse plugin?

Can you give me some suggestions?

Thanks very much

Daniele

On 5 Dic, 14:50, nacho vela.igna...@gmail.com wrote:
 What i did was interact to the ws in my gwt app server code.

 What i mean is, for example, if you are using RPC to comunicate to
 your server, that you need to call to your ws in your MyServiceImpl
 class and that's all.

 But i have to say to you, that i needed to use JAX-WS and this lib is
 not supported with appengine, so i had to run and deploy my app in a
 Tomcat server. I don't know if this your case too.

 On 4 dic, 04:36, satti vsatish@gmail.com wrote:

  hi,

         can any one help how to intract with webservice in GWT.
  actually i genarated Java code from WSDL by using apache axis2, so
  that where i hav to add that code in my GWT application, can u please
  tell me step by step because i m new to GWT can any one help
  me pls...

  Thank in advance

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



Extending UI Binder

2010-12-06 Thread Abdullah Shaikh
Hi All,


I want to have my own custom xml file definition for defining UI, like
ui.xml, any idea on how to extend UI Binder for this ?

Also is it possible to generated the java script code at runtime, for
the requested screen instead of doing this at compile time ?

The idea is, for example there is a screen Screen1 and a initial place
holder screen (main screen), maybe a DockPanel or any container, when
the user request for Screen1, the server checks if the Screen1 is
already compiled (converted to javascript), if not, converted it to
javascript using the GWT complier, and return the javascript back to
the client, so that it can render this screen inside the container
(main screen).

This is like traditional web application, but here instead of
returning html, javascript will be returned.

I am doing all this, bcoz we have an ERP system, which has all the
screens defined in xml files, I want to integrated GWT with it, so
that the user can define the gwt ui, using the same xml files.


Any links of extending UI binder or how the GWT compiler works will be helpful ?

Thanks,
Abdullah

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



Re: How to handle application state ?

2010-12-06 Thread Jeff Schwartz
You shouldn't have to query for the information more than once but you do
need to store it some place and like I said, you have several options. If
you want to store it on the client and have the information persist even
after the user closes the browser (across sessions) then you can use
cookies. But first you need to get the data to the client.

If I were coding this I'd define a serializable class in a shared gwt folder
that matches the data model for the information that I want to bring down
and use on the client. I'd then create a remote service (such as a GWT
RemoteService) that on the server queries for the data and outputs the data
to the data structure I defined in the shared folder as per the above and
which then returns an instance of that class to the client. The client, upon
receiving the result back from the server, would store the result in a
HashMap for in some other data structure I designed to store data on the
client or in cookies if I wanted to use the information across sessions.

You have lots of options but they all follow a similar pattern to the above.

Jeff



On Mon, Dec 6, 2010 at 10:52 AM, Mittal mitt...@gmail.com wrote:

 Yes, its application state for a User. Why do I need to query server
 information every time for a user, I think I should able to create
 client side object such as UserProfile, populate it from server side
 once user logs in and then pass client side UserProfile object where
 its required such as Header or Navigation pages.

 - Mittal

 On Dec 6, 9:47 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
  In your case the state you want to preserve seems to be associated with a
  particular user, not the application, so you can use either cookies or
  servlet session state to persist the information when the user logs in
 and
  you can then query the information when displaying tabs or reacting to
 other
  user interface events.
 
  Jeff
 
 
 
  On Mon, Dec 6, 2010 at 9:39 AM, Mittal mitt...@gmail.com wrote:
   Here's the use case we are dealing with,
 
   SSO token shall be received by GWT application.
   SSO token shall have user profile and role information.
   Once I have read SSO token, I would like to use User Profile
   information to be available in header page and Role information in
   navigation page to control who see's what in terms of functionality
   (tabs).
 
   How do I store or hold token information as an application state ?
 
   - Mittal
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  *Jeff Schwartz*

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




-- 
*Jeff Schwartz*

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



Re: Maven stops with i18n generation error

2010-12-06 Thread UseTheFork
I came across the same issue under NetBeans 6.9.1.

i) I corrected the client issue in the pom.xml (see cri's comment).
ii) Then, the project would not compile because the provided GWTTest
fails. I tried to annotate it with JUnit's @Ignore.
iii) Unfortunately, the test is performed within gwt:test, not the
typical maven [surefire:test]. So @Ignore is of no use.
iv) Next, I deleted the test class from the project.
v) Then, the archetype project compiled fine and deployed well. It
works !!!

I am on NetBeans 6.9.1 with Tomcat 6.0.20 (of course, I'll have to dig
that test issue, but it is a start...)

UseTheFork


P.S.: Typically, I believe a proper maven project pom.xml for GWT
should contain the following the plugin reference:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.0.2/version
configuration
  source${maven.compiler.source}/source
  target${maven.compiler.target}/target
/configuration
  /plugin

Otherwise, the following two lines in the properties are a bit
pointless:

  maven.compiler.source1.6/maven.compiler.source
  maven.compiler.target1.6/maven.compiler.target

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



Capturing events on AbsolutePanel and prevent events being fired on children

2010-12-06 Thread Fabs
Hello all

I am developing an app with GWT. I have an absolutepanel with numerous
child widgets, generally images. I want to be able to click on a
widget, and then click on another location within the absolutepanel.
With the second click, the position of the click in the absolutepanel
is needed. If the user clicks on a child image, it should not matter,
and it should instead get the position of the click in the
absolutepanel. A click event should not be sent to the child widgets.

So my problem is, how do I capture the click event in the
absolutepanel whilst allowing users to click through the child
widgets?

Thanks for any replies.

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



Multiple editors for the same object

2010-12-06 Thread Nick Hebner
I am using two request factory based editors to edit the same object.
One editor is used mainly for display and adding/removing child
objects to the object. The other editor is used to edit the details of
the object. The display editor contains an edit link which opens the
details editor. Once the details editor finishes, I would like the
display editor to refresh to reflect any changes, but I cannot find a
way to do this.

RequestFactoryEditorDelegate has a refresh method, but the
EditorDelegate interface that is used throughout the editor framework
does not. RequestFactoryEditorDelegate also has object change
subscription support, but it seems that the event is only fired after
a request is made but I would like to make one big request after both
the display and details editors finish.

Is there a way to accomplish this or a better way to approach this
problem?

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



Re: GWT 2.1 cell table paging bug?

2010-12-06 Thread Arnaud
I have exactly the same problem than sebrojas, if someone has a
solution. Would appreciate any help.

Thanks
Arnaud

On Nov 2, 7:29 pm, sebrojas sebroja...@gmail.com wrote:
 Yes, is a bug!

 Also, I´m having other problems with celltable paging.
 When I set the page size to 12 or less, and I click the button next
 page or last page, and rows away is a picture of charging that is not
 removed.
 When I set the page size in 13 or more, and I click the button next
 page or last page, and then on the previous page shows several rows
 without values (the first).
 Please answer, need help
 I don´t understand why the pager have a setPageSize method and the
 dell table too??? :s, but it seems to the table method is the one that
 have effect

 ...
 ProvidesKeyDepuracion pk = new ProvidesKeyDepuracion() {
                         public Object getKey(Depuracion item) {
                                 return item.getId();
                         }
                 };

                 final CellTableDepuracion table = new 
 CellTableDepuracion(pk);
                 table.addStyleName(tabla);
                 table.setPageSize(8);

                 // Create a Pager to control the table.
                 SimplePager.Resources pagerResources = GWT
                                 .create(SimplePager.Resources.class);
                 pager = new SimplePager(TextLocation.CENTER, pagerResources, 
 false,
 0,
                                 true);
                 pager.setDisplay(table);
 ...

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



IE debugging and SimpleEventBus

2010-12-06 Thread nicko
Hi there

Just a suggestion for IE(6-8) debugging wrt to GWT2.1 - because
SimpleEventBus.doFire() wraps all handler calls in a try-catch - and
then wraps unknown exceptions as JavascriptExceptions - the only way
to get useful IE debugging info (window.onerror) can't be used
(because it requires the original JScript javascript exception, not
the in-code thrown exception, if it's going to be useful) - as per the
comment in com.google.gwt.core.client.impl.Impl.entry()

So - in my apps, i've added the following (yuck:) to SimpleEventBus

public static boolean disableExceptionCatch = false;//set if client is
ie6-8 ...would be nicer (probably) to use gwt.create() binding

doFire() 
if (!disableExceptionCatch) {
try {
event.dispatch(handler);
} catch (Throwable e) {
if (causes == null) {
causes = new 
HashSetThrowable();
}
causes.add(e);
}
} else {
event.dispatch(handler);
}


It's sort of a must-have for IE debugging (unless, of course, you
never get any errors because you write so many unit tests...:-)

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



Connecting calendar widget with datasource in smartGWT

2010-12-06 Thread AnAcHrOnOX
Hi,im facing a  problem while retrieving data from an xml file and
showing the information on the calendar widget as an appointment.
Im able to get the information on a listgrid by using the
setValueXPath() method...but when i use the datasource object in the
Calendar widget the values are not displayed in the calendar widget ..
I think the problem is because setValueXPath doesnt do data conversion
from String to Date for the date fields.
Can someone plz help me to figure out how to convert the value from
string to date while using setvaluexpath or a different approach to
solve this problem??

btw the gwt version im using is 2.1

The error that im getting on the developers console is


(11:03:23.829 [ERROR] [widgets]
11:03:23.829:XRP5:WARN:DataSource:isc_RestDataSour
ce_0$499:isc_RestDataSource_0$499.StartDate: value: 12-03-2010 04:00
failed on validator: {type: isDate, typeCastValidator: true,
_generated: true, defaultErrorMessage: Must be a date.})

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



compiler checking (in)valid JSNI syntaxt

2010-12-06 Thread Mike Dundee
Hello,

I'm trying to integrate 3rd party javascript library into GWT.
(Autodesk Design Review for displaying 3D models - works only in IE by
the way)

However I bumped into the following syntax, which is absolutely valid
in this library:
Content.Objects(1) = userCollection;

so I used it in JSNI:
public final native void setSelection(UserCollection userCollection) /
*-{
this.Objects(1) = userCollection';
}-*/;

However Google won't let it compile and complaints about:
Invalid assignment left-hand side


So I tried to use eval function:
public final native void setSelection(UserCollection userCollection) /
*-{
eval('this.Objects(1) = userCollection');
}-*/;

This works fine in hosted mode, however in production mode parameters
are obsufcated and eval fails.

Is there any way how to write this construct in JSNI?

Thank you

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



GWT Indexing for search

2010-12-06 Thread ravi
Hi,

I read in a blog that GWT websites are not shown in search results as
they are not indexed by search engines.Is this true as i am planning
to use GWT to develop a site for my business.

Regards,
Abhishek Ranjan

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



get plugin failed to connect to hosted mode server on .... error with Chrome GWT developer plugin but works fine with Firefox

2010-12-06 Thread puthali
Hi,

From yesterday I've been getting plugin failed to connect to hosted
mode server on 127.0.0.1:9997 error with GWT developer plugin on
Chrome but when I try the same on Firefox it works. Any help will be
greatly appreciated as I really don't want to launch FF just for this.

My Chrome GWT developer plugin version is 1.0.9274 and the Firefox GWT
plugin version is 1.0.7511

thanks,
Puthali

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



GWT-RPC WS generation

2010-12-06 Thread ParanoidAndroid
Hi Everybody,

Is there a way to auto-generate the WebServices from the server side
part of a GWT-RPC classic app ? This could be done by annotating the
server side call methods like in Spring.

Thanxxx  Regards,

ParanoidAndroid

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



regarding the flow of a gwt application

2010-12-06 Thread sury
Hi All:
i`m surender and i`m very new bee to gwt and now i end up with any
questions regarding gwt.
can u people please help me out to know how the flow goes on in gwt .
or suggest me with any tutorial or a site that gives a detailed
picture about the flow.

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



How to make a comment threading like feature using GWT

2010-12-06 Thread rocher balan
Wonder if any of you have an idea about how to create a comment
threading like feature using GWT.
As in a person should be able to comment on individual comments.

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



New to GWT - Panel Issues (StackLayoutPanel)

2010-12-06 Thread Dan
Alright, so this should be very simple, but it is not working for me
at all.  I am having issues with several different panels not doing
what I want them to do.  But, for now, I am going to focus on tackling
my StackLayoutPanel, and maybe it will solve all my other problems.

Code in my Java application as follows:

private final StackLayoutPanel  components  = new
StackLayoutPanel(Unit.EM);

private final FlowPanel flowPanel1  = new 
FlowPanel();
private final FlowPanel flowPanel2  = new 
FlowPanel();
private final FlowPanel flowPanel3  = new 
FlowPanel();

private final ScrollPanel   scrollPanel1= new
ScrollPanel(flowPanel1);
private final ScrollPanel   scrollPanel2= new
ScrollPanel(flowPanel2);
private final ScrollPanel   scrollPanel3= new
ScrollPanel(flowPanel3);
...
public void onModuleLoad() {
...

flowPanel1.add(new HTML(Content 1 goes here...));
flowPanel2.add(new HTML(Content 2 goes here...));
flowPanel3.add(new HTML(Content 3 goes here...));

components.add(scrollPanel1, new HTML(Title 1), 3);
components.add(scrollPanel2, new HTML(Title 2), 3);
components.add(scrollPanel3, new HTML(Title 3), 3);

RootPanel.get(contentContainer).add(components);

components.setVisible(false);

...
}

I have a button that has a handler to make components visible that
works properly.

I have some HTML that it is embedded in (!doctype html is specified
at the top):

table align=center width=400 height=600
  tr
td id=contentContainer style=width: 400; height: 600;/
td
  /tr
/table

In Internet Explorer, my StackLayoutPanel appears as an hr tag 1px
in height, with the rest of the content blank.  In Firefox, the first
stack header is positioned correctly, however stacks 2 and 3 are above
it (reverse order), squashing the other content on the screen.  I
click the top 2 headers and they drop down into the correct positions
(from what I have seen, this is not proper behavior for this type of
panel), however, I don't see any content in any tabs.

I am starting from the skeleton GAE application template in Eclipse,
and my CSS remains unchanged, so it shouldn't be affecting this panel
at all.

Does anyone have any ideas on why this may not be working properly?

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



Is it possible to load and cache jre code separately from main application module?

2010-12-06 Thread Vitaly Kulikov
I'm wondering if it is possible to load all GWT core code, such as
Collections and so on, separately from main application? The point is
to cach in once, and do not load every time when application is
updated.

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



Creating a GWT, Spring Roo and STS project from scratch

2010-12-06 Thread Jerry
Hi,

I've read the 'Getting started with GWT, Spring Roo, and SpringSource
Tool Suite' guide and manged to get the sample expenses application
working.  Now I would like to create my own project, but can't find a
guide on how to create a similar project as the 'expenses' one from
scratch.

Do you create a GWT project or Roo project?
Are there any Maven archetypes for a 'blank' GWT  Roo project?
Are there any guides on how to create a 'blank' project?

Thanks,
   Jerry

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



enum String value in JSNI

2010-12-06 Thread Mike Dundee
Hello,

is there any way to obtain String value of enum in JSNI method?

enum.toString() works only in hosted mode, but in production it gives
me [object] [Object]

Thank you

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



Is deferred binding ok for this?

2010-12-06 Thread megaswin
Hi guys,

I'm doing a small project related with real estate, and  previously I
thought to cover only one city. But now I  decided to extend it to
several ones, but the main problem here is that each city should have
its own Search Panel and has a number it's own GUI features. At the
same time I don't like situation when people from one city have to
download the code for support another city. So I'm looking for a way
to split city-related code. Is it ok to use deferred binding in such
situation or there exists something better?

Thanks a lot,
Maxim

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



How to inverse y axis in an AreaChart

2010-12-06 Thread Michaël Gerber
Hi,

I am using Google Chart Tools (aka Visualization) 1.1 Library with GWT
to display an AreaChart and I would like to know how to reverse the y
axis? There is setReverseAxis(boolean) when you set the Options but
this one reverse the x axis. I don't find how to set the y axis.

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



Re: Dev plugin for firefox 3.7

2010-12-06 Thread Sebastian

Any news on this Topic? A possible release-time would be enough ^^
just a sign of life.

On 11 Nov., 16:07, skrat dusan.malia...@gmail.com wrote:
 There is a big demand for this plugin. And unsatisfied :(

 On Nov 9, 11:34 am, csillag csillag.kris...@gmail.com wrote:

  On okt. 26, 00:54, slowpoison slowpoi...@slowpoison.net wrote:

   On Sep 14, 8:21 am, John Tamplin j...@google.com wrote:

I am working on it right now.  I have it working on FF40, but I am
still trying to get it where one XPI will work on both FF3 and FF4.

   Any update about this, John?

  Hi,

  I am still waiting for this.
  Could you please at least give us some info about what's happening?

  Thank you:

      Kristof

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



Re: Best practises in automatic test and deployment

2010-12-06 Thread Brian Lough
Mark, I would imagine the process you need to develop will dictate your
tools.  If you're just using InteliJ, you need to get Maven, Ant, or
whatever building you project outside it first.  That choice might dictate
which app server you use to test.

On Mon, Dec 6, 2010 at 1:53 AM, Mark van Veen mark.vanv...@gmail.comwrote:

 Hi there,

 thanks a lot for your suggestions I will have a look at it!

 Mark

 PS: I searched my mailing on the webinterface at google groups but couldnt
 find it. Now I answered via gmail - is there a problem with the web
 interface?

 2010/12/1 Ray Tayek rta...@ca.rr.com

 At 06:10 AM 12/1/2010, you wrote:

 ... I am looking for some good tools which help me with

 deploying my application automaticly in a tomcat test server and later
 on the production server. ...

 What I am still missing is a automatic way of generating war files
 which are deployed on the test server(with different properties like
 db connection and user)  ,,,


 if you are not already aware of it, this may be of interest:
 http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html#Deploying_using_the_Client_Deployer_Package

 thanks

 ---
 co-chair http://ocjug.org/


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




 --
 Mit freundlichen Grüßen

 Mark van Veen

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


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



Hosted Mode Runtime Configurations not working anymore

2010-12-06 Thread JoeyG

My system  app uses IE8 on Windows7 and we are using GWT 2.1.  I use
IntelliJ 9.x and when I start a hosted mode session using the Run
Configuration that I've always had, now when I click Launch Browser it
opens a Tab in IE but IE shows a page that says Internet Explorer
cannot display the webpage.  Also, the GWT Development Mode window
usually opens an IE Tab in it but now it doesn't.

Is there a log file that would show any errors for this GWT
Development Mode window when the Launch Browser button is clicked?

I'm not even sure if I am looking in the right area?

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



Re: How to handle application state ?

2010-12-06 Thread Brian Lough
Mittal, by query, I believe Jeff means retrieve the user information from
wherever you stored after the initial server retrieval: the cookie or the
Session/Servlet state.

On Mon, Dec 6, 2010 at 7:52 AM, Mittal mitt...@gmail.com wrote:

 Yes, its application state for a User. Why do I need to query server
 information every time for a user, I think I should able to create
 client side object such as UserProfile, populate it from server side
 once user logs in and then pass client side UserProfile object where
 its required such as Header or Navigation pages.

 - Mittal

 On Dec 6, 9:47 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
  In your case the state you want to preserve seems to be associated with a
  particular user, not the application, so you can use either cookies or
  servlet session state to persist the information when the user logs in
 and
  you can then query the information when displaying tabs or reacting to
 other
  user interface events.
 
  Jeff
 
 
 
  On Mon, Dec 6, 2010 at 9:39 AM, Mittal mitt...@gmail.com wrote:
   Here's the use case we are dealing with,
 
   SSO token shall be received by GWT application.
   SSO token shall have user profile and role information.
   Once I have read SSO token, I would like to use User Profile
   information to be available in header page and Role information in
   navigation page to control who see's what in terms of functionality
   (tabs).
 
   How do I store or hold token information as an application state ?
 
   - Mittal
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  *Jeff Schwartz*

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



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



Help !!

2010-12-06 Thread Ger4a
I HAVE THE SAME PROBLEMREALLY I NEED SOLVE IT .

.I've installed it and NetBeans 6.9.1 incl. the GWT plugin
forNetBeans.There I had no problems. Now I've created a web
application Projectwith GWT and the Tomcat 6 webserver.If I try to run
the project, I got this error:NetBeansProjects\gwtproject\nbproject
\build-impl.xml:686:
Prob ...lem:failed to create task or type nbdeployCause: The name is
undefined.Action: Check the spelling.Action: Check that any custom
tasks/types have been declared.Action: Check that any
presetdef/macrodef declarations have takenplace.BUILD
FAILED (total time: 0 seconds)I haven't changed any of the Files which
were automatically created bythe IDE.The error appears on this
line:target if=netbeans.home name=-run-deploy-nb
nbdeploy clientUrlPart=${client.urlPart}
debugmode=falseforceRedeploy=${forceRedeploy}//target


Does anyone know how to solve this problem?

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



Re: GWT Indexing for search

2010-12-06 Thread RPB
You can get Google to index a GWT site using this specification:
http://code.google.com/web/ajaxcrawling/docs/getting-started.html

-R

On Dec 6, 3:27 pm, ravi ranjaabhis...@gmail.com wrote:
 Hi,

 I read in a blog that GWT websites are not shown in search results as
 they are not indexed by search engines.Is this true as i am planning
 to use GWT to develop a site for my business.

 Regards,
 Abhishek Ranjan

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



Re: Dev plugin for firefox 3.7

2010-12-06 Thread Chris Conroy
The big hold up has been the fact that Firefox kept making breaking API  
changes from beta release to beta release. We're chasing a moving target  
here. I don't have a date to give you, but know that we haven't forgotten  
about it. We'll be sure to announce when it's ready.


On Dec 5, 10:09 am, Sebastian sebast...@buntin.de wrote:

Any news on this Topic? A possible release-time would be enough ^^
just a sign of life.


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



SuggestBox

2010-12-06 Thread Jon Vaughan
I have a suggest box

the user selects something from it, causing other things to load in
the page

they then go back to the suggest box and type some stuff into it which
doesn't result in a new selection

how can i determine that the value has changed to clear the other
loaded things in the page without introducing a race condition between
the valuechangehandler and the suggestionhandler when a suggestion
actually is picked?

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



Celltree Refresh question

2010-12-06 Thread dleins
If I add a new node to a tree which has been previously rendered via
Celltree, how do I add the node to the tree model and render the
modified tree without (hopefully) reloading and redrawing the entire
tree?  Is an example of this process documented anywhere?

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



Re: Form element values not binding in custom input cell (using AbstractInputCell)

2010-12-06 Thread John LaBanca
Try using InputElement#getValue() instead of Node#getNodeValue().  I'm not
exactly sure what nodeValue is, but I don't think its the same thing as the
input value.

Element e = Element.as(n);
InputElement input = e.cast();
String value = input.getValue();

Thanks,
John LaBanca
jlaba...@google.com


On Sat, Dec 4, 2010 at 4:09 AM, sevendays fux...@gmail.com wrote:

 Thanks John, however this did not resolve my problem. I did what you
 suggested but I'm still having trouble seeing the 'value' set on the
 input elements. I did the following:

 1) Change to extending AbstractEditableCell.
 2) Changed to using a Template combined with a SafeHtml renderer for
 the input tags.
 3) Pick up the change event in onBrowserEvent (see code snippet
 below)
 4) Inspect DOM tree to get the appropriate InputElement, then call
 getNodeValue() (see code snippet below)

 The problem is that getNodeValue() is null, even when the Element is
 definitely the correct one and after I have entered a value in the
 input field. It seems that when I enter a value in the form field,
 it doesn't make it onto the DOM tree, and therefore isn't seen by GWT.

 Any suggestions?


 --


 private static InputElement findElementTreeRecursive(Node n, String
 id) {

if (n.getNodeType() == Node.ELEMENT_NODE) {
Element e = Element.as(n);

System.out.println( let's compare element  + e.getId() + 
 with 
 + id);

if (e.getId().equals(id)) {
System.out.println(findElementTreeRecursive found
 element  +
 e.getNodeName() + , value=  + e.getNodeValue() + , id=  +
 e.getId());
return (InputElement) e;
 }
}

NodeListNode childNodes = n.getChildNodes();

 for (int i=0; ichildNodes.getLength(); i++) {
Node nDOM = childNodes.getItem(i);

 findElementTreeRecursive(nDOM, id);
}

System.out.println(findElementTreeRecursive NOT FOUND ELEMENT :(
 );

return null;
 }


 -



 @Override
 public void onBrowserEvent(Element parent, NodeDTO value, Object key,
 NativeEvent event, ValueUpdater valueUpdater) {
// Check that the value is not null.
if (value == null) {
return;
}

// Call the super handler, which handlers the enter key.
 super.onBrowserEvent(parent, value, key, event, valueUpdater);

 if (change.equals(event.getType())) {
Element target = event.getEventTarget().cast();
// findElementTreeRecursive() is called within
 getInputElement()
InputElement inputPctComplete = getInputElement(parent,
 ELEMENT_AGE_ID);
 }
 }


 On Dec 4, 12:34 am, John LaBanca jlaba...@google.com wrote:
  AbstractInputCell is intended to be wrap a single input element, not an
  entire form.  Specifically, you need to override getInputElement(parent)
 to
  dig into the DOM and get the input element that you are wrapping.  By
  default, getInputElement(parent) gets the first child of the parent,
  assuming that the cell renders a single input element and nothing else.
   Still, even if you override getInputElement, you'll only be able to
 return
  one value.
 
  What you really need to do is create a new AbstractEditableCell.  In
  onBrowserEvent, catch the change event and dig down to all of the input
  elements in the form, updating the DTO as needed.
 
  Thanks,
  John LaBanca
  jlaba...@google.com
 
  On Fri, Dec 3, 2010 at 9:23 AM, sevendays fux...@gmail.com wrote:
   I have created a CellBrowser where each cell is a custom HTML
   component that features a few different HTML form components (e.g.
   age, feeling etc.).
 
   The form displays fine, however, I can't get the value entered in the
   form into the client-side code. The relevant element in the DOM
   doesn't have the 'value' attribute set properly.
 
   I have tried a few things, including:
 
   1) Getting the element from the DOM object using
   dom.getElementById(ELEMENT_AGE_ID), this returns an entity but value
   is null, even though I had just entered a value into this element.
 
   2) Recursively looping round the DOM node tree, and printing it out to
   the console (printElementTree()) - again I can see the element but the
   value is null (after entering a value).
 
   What am I not doing correctly? How can I get the value attribute to
   update on the element in the DOM? Once it has been updated, how do I
   get the values from the elements with IDs ELEMENT_AGE_ID,
   ELEMENT_FEELING_ID etc.?
 
   An extract of the code is below. Any suggestions or advice would be
   appreciated.
 
   ---
 
   public class NodeTreeItemCell extends AbstractInputCellNodeDTO,
   NodeTreeItemCell.ViewData {
 
  public static final int CELL_WIDTH = 440;
 
  // these statics are the HTML element IDs
  public 

Re: Retrieving element type?

2010-12-06 Thread Ed
Anybody any idea?
I am not sure if I should submit a enhancement request, to add the
above is(element) method... ?

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



Re: GAE Channels API in GWT

2010-12-06 Thread Andrea
On 06/12/10 11:40, l.denardo wrote:
 This other project was linked by the App Engine team:
 
 http://code.google.com/p/gwt-gae-channel/
 
 (discussion thread is
 http://groups.google.com/group/google-appengine-java/browse_thread/thread/8cdf8e0a2276a9dd/fcb91bc1c62deb32?lnk=raot#fcb91bc1c62deb32).
 Code should be derived from the DanceDanceRobots demo, which is
 explained in Google IO sessions.
 
 Regards
 Lorenzo

that looks a good example to start from.
cheers


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



Re: regarding the flow of a gwt application

2010-12-06 Thread Brett Freer
Hi Suri,

How about looking at the Getting Started guide? -
http://code.google.com/webtoolkit/gettingstarted.html.

Kind regards

Brett Freer

On Dec 6, 10:31 pm, sury suren...@gmail.com wrote:
 Hi All:
 i`m surender and i`m very new bee to gwt and now i end up with any
 questions regarding gwt.
 can u people please help me out to know how the flow goes on in gwt .
 or suggest me with any tutorial or a site that gives a detailed
 picture about the flow.

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



Re: How to create Gmail contextual gadget using GWT?

2010-12-06 Thread Eric Ayers
The way you get dynamic height is by implementing the
NeedsDynamicHeight interface on your gadget.

http://www.google.com/codesearch/p?hl=en#ow6Lmd7dcZY/trunk/gadgets/gadgets/src/com/google/gwt/gadgets/client/NeedsDynamicHeight.javaq=NeedsDynamicHeight%20package:http://gwt-google-apis%5C.googlecode%5C.comsa=Ncd=1ct=rc



On Mon, Dec 6, 2010 at 9:26 AM, Alexander akolc...@gmail.com wrote:
 By the way, some useful tags you should add using �...@featurename.

 For example: @FeatureName(value = dynamic-height)

 Details see here 
 http://code.google.com/p/gwt-google-apis/wiki/GadgetsGettingStarted#Adding_container_features

 But I still don't know how to get such tag automatically after
 compilation :(

        !-- Define the content type and display location. The
 settings
 html and card are required for all Gmail contextual gadgets. --

        Content type=html view=card

 How to get added attribute view=card to Content  tag?

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





-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

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



Re: GAE Channels API in GWT

2010-12-06 Thread Andrea
On 06/12/10 11:40, l.denardo wrote:
 This other project was linked by the App Engine team:
 
 http://code.google.com/p/gwt-gae-channel/
 
 (discussion thread is
 http://groups.google.com/group/google-appengine-java/browse_thread/thread/8cdf8e0a2276a9dd/fcb91bc1c62deb32?lnk=raot#fcb91bc1c62deb32).
 Code should be derived from the DanceDanceRobots demo, which is
 explained in Google IO sessions.
 
 Regards
 Lorenzo

This seems to be only client side.
I was expecting something on the server side too.

But maybe I did not understand how it works.

Andrea

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



Re: Retrieving element type?

2010-12-06 Thread Thomas Broyer

On 6 déc, 20:21, Ed post2edb...@gmail.com wrote:
 Anybody any idea?
 I am not sure if I should submit a enhancement request, to add the
 above is(element) method... ?

There's a comment in some Cell widget (CellTable?) that such an is()
method on every Element subclass would be very handy (and I agree), so
an enhancement request probably wouldn't be dismissed, and would allow
tracking the patches.

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



Re: HelloMVP sample with JUnit TestCase example?

2010-12-06 Thread Rod
Is there an example of this anywhere?  Has anyone rewritten HelloMVP
using GIN - and posted it?  I am completely unfamiliar with GIN so a
concrete example would be immensely useful!  Again, are there any
examples of this with Unit tests in place as well?  My most driving
reason for pursuing this MVP style GWT development was to enable
better testing.

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



NullPointerException in PassthroughParser

2010-12-06 Thread Geoffrey Wiseman
I'm seeing some NPEs in PassthroughParser when using TextBox,
particularly if you touch getValue(), setValue().  getValueOrThrow()
seems to pass a null right up to PassthroughParser.parse(), which
calls toString() without checking.  It happend once, we switched to
setText(), problem went away.  Happened a second time, seemed worth
digging a little deeper.

I can probably create a simple test case if that's helpful.  I'm not
seeing any filed bug reports or discussions, which surprises me.

I believe this is a regression in 2.1.0 that we didn't see in 2.0.4,
although my memory's a little fuzzy on that point.

I'm inclined to file it as a bug, but I thought I'd check here to see
if (a) anyone else has encountered his (b) it's expected, and I'm
doing it wrong (c) there's a discussion or filed bug that I missed.

Thanks,

  - Geoffrey

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



Re: NullPointerException in PassthroughParser

2010-12-06 Thread Thomas Broyer


On 6 déc, 23:32, Geoffrey Wiseman geoffrey.wise...@gmail.com wrote:
 I'm seeing some NPEs in PassthroughParser when using TextBox,
 particularly if you touch getValue(), setValue().  getValueOrThrow()
 seems to pass a null right up to PassthroughParser.parse(), which
 calls toString() without checking.  It happend once, we switched to
 setText(), problem went away.  Happened a second time, seemed worth
 digging a little deeper.

There sure could be an NPE given the code in PassthroughParser, but
it's actually only called on the result of getText() which is never
'null' (ValueBoxBase, line 216, getValueOfThrow).

 I believe this is a regression in 2.1.0 that we didn't see in 2.0.4,
 although my memory's a little fuzzy on that point.

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



A MVP widget within a View

2010-12-06 Thread FKereki
Hi!

I've been playing with the MVP framework, and I'm thinking about
designing a widge (in MVP fashion, naturally!) and including it within
another MVP form.

I worked with this in ESSENTIAL GWT, but I'm not seeing my way now
with activities  places... any hints, so to avoid overloading my
tired brain cells?

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



Re: How to handle application state ?

2010-12-06 Thread Mittal
Jeff,

I agree on creating a share object and storing into HashMap on client
side. But how do I share this HashMap on client side among different
screens such as Header, Navigation etc.  (Other than passing HashMap
to these screens via some setter methods)


Mittal

On Dec 6, 11:23 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
 You shouldn't have to query for the information more than once but you do
 need to store it some place and like I said, you have several options. If
 you want to store it on the client and have the information persist even
 after the user closes the browser (across sessions) then you can use
 cookies. But first you need to get the data to the client.

 If I were coding this I'd define a serializable class in a shared gwt folder
 that matches the data model for the information that I want to bring down
 and use on the client. I'd then create a remote service (such as a GWT
 RemoteService) that on the server queries for the data and outputs the data
 to the data structure I defined in the shared folder as per the above and
 which then returns an instance of that class to the client. The client, upon
 receiving the result back from the server, would store the result in a
 HashMap for in some other data structure I designed to store data on the
 client or in cookies if I wanted to use the information across sessions.

 You have lots of options but they all follow a similar pattern to the above.

 Jeff



 On Mon, Dec 6, 2010 at 10:52 AM, Mittal mitt...@gmail.com wrote:
  Yes, its application state for a User. Why do I need to query server
  information every time for a user, I think I should able to create
  client side object such as UserProfile, populate it from server side
  once user logs in and then pass client side UserProfile object where
  its required such as Header or Navigation pages.

  - Mittal

  On Dec 6, 9:47 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
   In your case the state you want to preserve seems to be associated with a
   particular user, not the application, so you can use either cookies or
   servlet session state to persist the information when the user logs in
  and
   you can then query the information when displaying tabs or reacting to
  other
   user interface events.

   Jeff

   On Mon, Dec 6, 2010 at 9:39 AM, Mittal mitt...@gmail.com wrote:
Here's the use case we are dealing with,

SSO token shall be received by GWT application.
SSO token shall have user profile and role information.
Once I have read SSO token, I would like to use User Profile
information to be available in header page and Role information in
navigation page to control who see's what in terms of functionality
(tabs).

How do I store or hold token information as an application state ?

- Mittal

--
You received this message because you are subscribed to the Google
  Groups
Google Web Toolkit group.
To post to this group, send email to
  google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com

.
For more options, visit this group at
   http://groups.google.com/group/google-web-toolkit?hl=en.

   --
   *Jeff Schwartz*

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

 --
 *Jeff Schwartz*

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



Re: All I Want for Christmas is a powerful Widget Library from Google !

2010-12-06 Thread cri
I've been thinking about this thread for awhile and have decided to
add my two cents.

First, let me say that I'm huge Google and GWT fan. I've been using
GWT for over two years on multiple projects and I really do think its
great. I just bought myself an Android phone and I'd say its the
Windows/MacOs story all over again. Watch out Apple, but I digress.

The GWT team basically acknowledges that GWT's widget set needs
addition development, and that's putting it mildly. Compared to a
state of the art widget set, e.g. GXT, SmartGWT, etc, the GWT widget
set is, sorry for being blunt, pretty primitive. For that reason, in
the past I have used ExtGwt and GwtExt with decent success,  but there
were some problems with performance, documentation, support,
incompatibility with native widgets, etc. But, wow, these are some
really nice widgets and we managed to get our apps out the door.

Well, with 2.1 there seemed to be some hope that GWT would start
focusing on comprehensive widget development and, so,  on a new
project we are going to give native GWT widgets a try. We don't have a
real complicated UI to build so it should be very doable.

Then I saw this thread and thought, h, Google is saying that they
are going to leave it to 3rd parties to take care of the W in GWT.
Personally, I think this is a mistake. People are going to prefer
staying with native widgets since they will continue to be supported
and will be well integrated into the rest of GWT. Like I said before,
I think GWT as a whole is really great. But I would guess that the one
thing that would make it a huge success and start blowing away the
competition would be a suitably great native widget set. I understand
that Google has put a lot of priority into the doing the difficult
things, but now I wonder if its time for them to focus on the one
thing that would contribute most to GWT's success and longevity.

On Nov 18, 2:14 pm, David Chandler drfibona...@google.com wrote:
 Thanks all for your support of GWT. We're really glad that what you've
 seen so far makes you want even more, and let me officially
 acknowledge here that the GWT team very much understands that you want
 a powerfulwidgetlibrary. That's why we created the powerful new
 CellWidgets in 2.1 (in time forChristmas, you may note) and are
 dreaming up new widgets for future releases also.

 Having said that, the GWT team at Google generally chooses to focus on
 the really hard problems such as compiler optimization and new
 features like RequestFactory while leaving the easier problems such 
 asWidgetcreation (which is easy, in part, because of our focus on the
 hard problems) to the open source community. This is not even so much
 about the effort required to create new widgets as it is about the
 effort required to support them since that's where browser differences
 tend to be the greatest. In many cases, Googlers have contributed open
 source projects like gwt-dnd for drag and drop support (Fred Sauer)
 and GQuery (Ray Cromwell). But we don't think it's too much to ask
 everyone to put in a little effort extending and styling widgets in
 exchange for totally free, open source software that lets you run
 no-compromise AJAX on all modern browsers.

 Please do continue to share yourWidgetcreations via the various GWT
 galleries on the Web!

 /dmc
 David Chandler
 Developer Programs Engineer, Google Web 
 Toolkithttp://googlewebtoolkit.blogspot.com/







 On Sat, Nov 13, 2010 at 1:48 AM, zixzigma zixzi...@gmail.com wrote:
  GWT with its powerful set of features, make Large Scale Ajax software
  development possible.

  from Java to JS compiler, all the optimization, code splitting, MVP,
  Guice and Gin, new data binding features,
  and one can go on and on ...

  However one important aspect seem to be neglected for years and not
  aknowledged by GWT team is
  the absense of a powerfulWidgetlibrary.

  Thewidgetset provided by GWT is very basic, and does not include
  many many widgets needed to make more complex UI interaction possible.

  Drag and Drop (Tree for example or Grid, Filter), Calendar, Combo Box,
  Complex grids (sort, filter, etc) to name a few.

   All the effort that goes into crafting a well architected and tested
  app goes unnoticed unfortunately cause its about First Impression most
  of the time !
  if you invest hours and hours to get the basic browser history
  working, all the design for testability etc,
  but dont have a pretty looking front-end, its just not fair !

  We often see posts here and on other forums from developers requiring
  more advanced widgets to develop their apps.

  there are alternatives out there, SmartGWT, Ext-GWT.
  They are great, lots of eye candy, but they encourage a more desk-top
  style apps on the web,
  which goes against Google best practices that says not to turn web
  apps into desktop-like apps).
  also third-party libraries dont fit well with MVP, API inconsistency,
  they are also are hard to customize beyond the 

Re: Retrieving element type?

2010-12-06 Thread Ed
Thanks for the feedback (finally you agree ;) ):
http://code.google.com/p/google-web-toolkit/issues/detail?id=5723

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



Is possible to fire events in GWTTestCase?

2010-12-06 Thread Luis Solano
Hi, I want to fire an event for testing purposes. I know this idiom:

KeyUpEvent.fireNativeEvent(
Document.get().createKeyUpEvent(false, false, false, false,
KeyCodes.KEY_ENTER), s,s.getElement());

But it executes the fireEvent method and then the handler. The problem
is I  want to test the onBrowserEvent, but I didn't find a way to fire
a event as DOM.dispatchEventImpl does. Any suggestion?

Thank you!

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



gwt 2.1, xml. Document.getElementById() returns null

2010-12-06 Thread Roman Makurin
Hi All!

I need to handle xml on client side, so Im using following
scheme:

Document xml = XMLParser.parse(xmlStr);
Element el = xml.getElementById(id1);

at this point getElementById() returns null, but im 100% 
sure that element with id=id1 presents in xml document.

Why this happen ? And is there any chance to get it
working ?

Thanks

-- 
If you think of MS-DOS as mono, and Windows as stereo,
 then Linux is Dolby Digital and all the music is free...


pgp5heAUxm85v.pgp
Description: PGP signature


Re: All I Want for Christmas is a powerful Widget Library from Google !

2010-12-06 Thread Duane
+1

On Nov 13, 1:48 am, zixzigma zixzi...@gmail.com wrote:
 GWT with its powerful set of features, make Large Scale Ajax software
 development possible.

 from Java to JS compiler, all the optimization, code splitting, MVP,
 Guice and Gin, new data binding features,
 and one can go on and on ...

 However one important aspect seem to be neglected for years and not
 aknowledged by GWT team is
 the absense of a powerful Widget library.

 The widget set provided by GWT is very basic, and does not include
 many many widgets needed to make more complex UI interaction possible.

 Drag and Drop (Tree for example or Grid, Filter), Calendar, Combo Box,
 Complex grids (sort, filter, etc) to name a few.

  All the effort that goes into crafting a well architected and tested
 app goes unnoticed unfortunately cause its about First Impression most
 of the time !
 if you invest hours and hours to get the basic browser history
 working, all the design for testability etc,
 but dont have a pretty looking front-end, its just not fair !

 We often see posts here and on other forums from developers requiring
 more advanced widgets to develop their apps.

 there are alternatives out there, SmartGWT, Ext-GWT.
 They are great, lots of eye candy, but they encourage a more desk-top
 style apps on the web,
 which goes against Google best practices that says not to turn web
 apps into desktop-like apps).
 also third-party libraries dont fit well with MVP, API inconsistency,
 they are also are hard to customize beyond the provided themes. and
 some of the other open-source ones are too experimental.

 You can argue that well go create your own. but that does not make any
 sense at all.
 if GWT is for Large Scale applications, does it make sense that
 developers spend their time experimenting with where to position close-
 icon on a Tab ?! or adding maximize/minimize to a dialog ?
 what about these ubuquitous Callout Tooltips ? or implement drag and
 drop on a tree which is going to be a maintanance nightmare down the
 road ?! each project creating their own in-house widget library ?! and
 test it ?

 an alternative could be to use GWT along-side JQuery/YUI, because
 there are hundreds if not thousands of variation for each plugin you
 can think out there. but does it make sense to do all the optimization
 in GWT, only to load additional JS Libraries to use plugins on top of
 them?

 Google acquired Instantiations(GWT Designer) a while ago, which was
 great news,
 although many are waiting for them to add UiBinder feature(still in
 beta), it was a great move by Google.

 I was thinking if Google Team is busy with the architectural aspect of
 GWT, why not invest in or acquire a company to work on a powerful and
 complete Widget Library to put others to shame. (after all its Google,
 right ?!)

 I can understand why they have not done this so far, because Google
 have always been about simplicity and investing in more bleeding-edge
 technologies, but they can acquire others to do this for GWT
 community !

 The GWT team have done a superb job in creating this powerful Toolkit,
 and been so generous in sharing it with us. for that i am very
 grateful.

 But a boy can dream !

 All I Want for Christmas is a powerful Widget Library !
 a mix between Ext (Application-Oriented) and JQuery plugins (Designer
 oriented/eye candy/effects) !

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



Re: How to handle application state ?

2010-12-06 Thread Jeff Schwartz
This is what I write in all my GWT applications when I need a client-side
cache:

import java.util.HashMap;

public class MyCache {

HashMapString, Object hashMap = new HashMapString, Object();

// singleton
private static MyCache instance = null;

private MyCache(){}

/**
 * @return instance.hashMap
 */
// singleton
public static HashMapString, Object getCache() {
if(instance == null){
instance = new MyCache();
}
return instance.hashMap;
}
}

The above class is a singleton and has a factory method getCache().

And this is how I use it:

MyCache.getCache.put(Account,account);
.
.
.
Account account = (Account) MyCache.getCache().get(Account);

Feel free to use it in your applications.

Jeff

On Mon, Dec 6, 2010 at 6:38 PM, Mittal mitt...@gmail.com wrote:

 Jeff,

 I agree on creating a share object and storing into HashMap on client
 side. But how do I share this HashMap on client side among different
 screens such as Header, Navigation etc.  (Other than passing HashMap
 to these screens via some setter methods)


 Mittal

 On Dec 6, 11:23 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
  You shouldn't have to query for the information more than once but you do
  need to store it some place and like I said, you have several options. If
  you want to store it on the client and have the information persist even
  after the user closes the browser (across sessions) then you can use
  cookies. But first you need to get the data to the client.
 
  If I were coding this I'd define a serializable class in a shared gwt
 folder
  that matches the data model for the information that I want to bring down
  and use on the client. I'd then create a remote service (such as a GWT
  RemoteService) that on the server queries for the data and outputs the
 data
  to the data structure I defined in the shared folder as per the above and
  which then returns an instance of that class to the client. The client,
 upon
  receiving the result back from the server, would store the result in a
  HashMap for in some other data structure I designed to store data on the
  client or in cookies if I wanted to use the information across sessions.
 
  You have lots of options but they all follow a similar pattern to the
 above.
 
  Jeff
 
 
 
  On Mon, Dec 6, 2010 at 10:52 AM, Mittal mitt...@gmail.com wrote:
   Yes, its application state for a User. Why do I need to query server
   information every time for a user, I think I should able to create
   client side object such as UserProfile, populate it from server side
   once user logs in and then pass client side UserProfile object where
   its required such as Header or Navigation pages.
 
   - Mittal
 
   On Dec 6, 9:47 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
In your case the state you want to preserve seems to be associated
 with a
particular user, not the application, so you can use either cookies
 or
servlet session state to persist the information when the user logs
 in
   and
you can then query the information when displaying tabs or reacting
 to
   other
user interface events.
 
Jeff
 
On Mon, Dec 6, 2010 at 9:39 AM, Mittal mitt...@gmail.com wrote:
 Here's the use case we are dealing with,
 
 SSO token shall be received by GWT application.
 SSO token shall have user profile and role information.
 Once I have read SSO token, I would like to use User Profile
 information to be available in header page and Role information in
 navigation page to control who see's what in terms of functionality
 (tabs).
 
 How do I store or hold token information as an application state ?
 
 - Mittal
 
 --
 You received this message because you are subscribed to the Google
   Groups
 Google Web Toolkit group.
 To post to this group, send email to
   google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com
 
 
 .
 For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.
 
--
*Jeff Schwartz*
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
   For more 

what Mock framework do you recommend ?

2010-12-06 Thread metalhammer29a
Hello,
I was wondering, which Mock framework do you use in your GWT
development ?
What has been your experience ?

I am thinking of using JMock.
what do you think of it ?

have you used other frameworks such as Unitils ?
frameworks that build on top of Mocking frameworks,
and provide annotation support, among other things.


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



Re: All I Want for Christmas is a powerful Widget Library from Google !

2010-12-06 Thread metalhammer29a
+1

completely agree,
Google offered  $6 Billion to Groupon,
and are investing in Wind power and space adventures.
as the OP stated, if Google team is too focused on hard problems/
architectural decisions,
why not invest/acquire a company to do this for them and the
community.

Sencha is dedicated to developing widgets, and their upcoming 3.0 is
very promising.
wish Google had acquired them instead of GWT Designer.
http://www.slideshare.net/darrellmeyer/ext-gwt-30

on the positive note,
CellWidgets are great, lightweight and fast,
and the GWT MVP is superb.
great framework for developing serious apps.

a new GQuery Plugin, supports Drag and Drop for GWT CellWidgets,
which is great news.

http://gwtquery-plugins.googlecode.com/svn/trunk/droppable/demo/GwtSimpleSample/GwtSimpleSample.html

I was thinking if Google Team is busy with the architectural aspect of
GWT, why not invest in or acquire a company to work on a powerful and
complete Widget Library to put others to shame. (after all its Google,
right ?!)
I can understand why they have not done this so far, because Google
have always been about simplicity and investing in more bleeding-edge
technologies, but they can acquire others to do this for GWT
community !

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



Re: A MVP widget within a View

2010-12-06 Thread metalhammer29a
have a look at GWTP, a popular MVP framework for GWT.

http://code.google.com/p/gwt-platform/

GWTP is loaded with many added features,
including Tabbed Navigation, Breadcrumbs, Spring integration, among
others.
The community is active, dedicated and very friendly.

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



Re: Celltree Refresh question

2010-12-06 Thread metalhammer29a
I have the same problem : (

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



[gwt-contrib] Re: Breaking change proposed: future proofing Activity in 2.1.1

2010-12-06 Thread Neil Fuller
Sorry for being so prescriptive in my first email about interfaces and
mocking and starting a bit of a side discussion about interfaces Vs
abstract classes. It smells a little like a no-one-right-answer
discussion that has probably been debated in every API forum.

I think most people could live comfortably with each approach.
However, I've seen many cases of frameworks starting out with abstract
(or concrete) classes and then going through pain of introducing
interfaces when the problems crop up. I think it would be a shame to
go the other way. GWT is going through to the trouble of introducing
IsWidget, etc., presumably to support better composition. In GWT's
case that's always smelled to me like something that might have been
done differently if the designers could start with a clean slate. If
the convention in GWT it to have Is{Abstract|Concrete} and a default
implementation of the interface then it might be worth moving to that
model for consistency, but that would probably break even more code!

The Interface Vs AbstractClass discussion so far seem to break into
the two main points:
1) Multiple inheritance.
2) Mocking

My view:

1) Multiple Inheritance:
I think the problem usually comes down to: What if a developer class
naturally behaves like an Activity and a something-else, where
something-else is written in some framework the GWT team have no
control over and also requires you extend another Abstract class.
Well, then we get into writing shims like getAsActivity(),
getAsSomethingElse() to get around the Java single inheritance model.
With interfaces, internally, the implementer may well be using
delegation/composition to avoid writing the same code again. Use of
inheritance for code re-use rather than true specialization is
convenient, but I've become less tolerant to it over time when it is
presented as the only way to do things (rather than a convenience)
because it seems to cause a lot of pain.

2) On the mocking point - perhaps everybody uses EasyMock now and
that's ok. My understanding is that EasyMock won't work under standard
GWT tests (somebody please correct me if I'm wrong). The class
extension code is, IMO, a clever way of mocking classes that were not
written with an API / testing in mind. Having previously measured the
performance impact of mocking classes Vs interfaces I can tell you
there was at one point a measurable several-order-of-magnitude
difference in performance. I don't know if that's still the case but
the reason we looked at it at all was that our small tests were taking
many seconds to run and we couldn't work out where all the expense
might be coming from. That's not a compelling argument backed up by
evidence but something people might want to debunk if using mocking-of-
classes extensively.

I guess Activity may be so simple this isn't something that I should
be concerned about, but having had to hand-roll stubs/fakes/mocks for
classes that were never designed for testing in mind (and also not
very amenable to EasyMock-style expectation-setting) I tend to have a
knee-jerk interfaces are good, abstract classes are bad reaction.
One problem is, if somebody adds a method to AbstractActivity and I'm
hand-rolling test classes there's no compile time error to say that
I've forgotten to override a method and so my AbstractActivity is now
only partially mocked. Those can be fun to debug. The easy to evolve
advantage of an abstract class actually causes problems in this one
case.

The other problem for me is that if you have the following:

new MyClassUnderTest(fooActivity)

And fooActivity is of type FooActivity. The developer made it an
interface because a mocking framework didn't fit, or because that's a
project standard, or they wanted a fake, not a mock or a stub. The
internals of MyClassUnderTest cannot then take FooActivity and pass it
to something expecting an AbstractActivity (without a nasty, test-
breaking cast) even if the developer has go to the trouble of
declaring identical methods on FooActivity as are inherited from
AbstractActivity. I've hit this a few times and had to resort to
EasyMock-class extension, or the override everything approach to
writing mocks.

Just my 2c.

Neil.

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


[gwt-contrib] Re: Breaking change proposed: future proofing Activity in 2.1.1

2010-12-06 Thread Jeff Larsen
Personally, I'm a fan of having both. The default implementation can
be an abstract class but have that abstract class implement the
Activity interface. Developers will be making a conscious choice to
use the interface only knowing that they can introduce bugs.

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


[gwt-contrib] Re: Update MissingPlugin.html to reflect new Chrome platform support (issue1184801)

2010-12-06 Thread fabiomfv

LGTM

http://gwt-code-reviews.appspot.com/1184801/show

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


[gwt-contrib] [google-web-toolkit] r9357 committed - Cherry picking r9353 into release branch for Issues 5563 and 5460

2010-12-06 Thread codesite-noreply

Revision: 9357
Author: rchan...@google.com
Date: Fri Dec  3 08:29:14 2010
Log: Cherry picking r9353  into release branch for Issues 5563 and 5460

http://code.google.com/p/google-web-toolkit/source/detail?r=9357

Modified:
 /releases/2.1/user/src/com/google/gwt/text/client/DoubleParser.java
 /releases/2.1/user/test/com/google/gwt/text/client/DoubleParserTest.java

===
--- /releases/2.1/user/src/com/google/gwt/text/client/DoubleParser.java	Thu  
Oct 14 11:27:30 2010
+++ /releases/2.1/user/src/com/google/gwt/text/client/DoubleParser.java	Fri  
Dec  3 08:29:14 2010

@@ -46,7 +46,7 @@
 }

 try {
-  return  
Math.rint(NumberFormat.getDecimalFormat().parse(object.toString()));

+  return NumberFormat.getDecimalFormat().parse(object.toString());
 } catch (NumberFormatException e) {
   throw new ParseException(e.getMessage(), 0);
 }
===
---  
/releases/2.1/user/test/com/google/gwt/text/client/DoubleParserTest.java	 
Wed Oct  6 08:01:28 2010
+++  
/releases/2.1/user/test/com/google/gwt/text/client/DoubleParserTest.java	 
Fri Dec  3 08:29:14 2010

@@ -30,7 +30,7 @@
   }

   public void testOuroborus() throws ParseException {
-assertEquals(123,  
DoubleRenderer.instance().render(DoubleParser.instance().parse(123)));
+assertEquals(123.5,  
DoubleRenderer.instance().render(DoubleParser.instance().parse(123.5)));

   }

   public void testNull() throws ParseException {

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


[gwt-contrib] [google-web-toolkit] r9358 committed - Undeprecate HandlerManager and TabPanel, neither of which is quite...

2010-12-06 Thread codesite-noreply

Revision: 9358
Author: gwt.mirror...@gmail.com
Date: Mon Dec  6 07:53:26 2010
Log: Undeprecate HandlerManager and TabPanel, neither of which is quite
ready to die yet.

Review at http://gwt-code-reviews.appspot.com/1187801

Review by: jlaba...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=9358

Modified:
 /trunk/user/src/com/google/gwt/event/shared/HandlerManager.java
 /trunk/user/src/com/google/gwt/user/client/ui/TabPanel.java
 /trunk/user/src/com/google/gwt/user/client/ui/Widget.java

===
--- /trunk/user/src/com/google/gwt/event/shared/HandlerManager.java	Tue  
Oct  5 11:03:13 2010
+++ /trunk/user/src/com/google/gwt/event/shared/HandlerManager.java	Mon  
Dec  6 07:53:26 2010

@@ -19,12 +19,16 @@

 /**
  * Manager responsible for adding handlers to event sources and firing  
those

- * handlers on passed in events. Primitive ancestor of {...@link EventBus},
- * and used at the core of {com.google.gwt.user.client.ui.Widget}.
- *
- * @deprecated use {...@link SimpleEventBus}.
+ * handlers on passed in events. Primitive ancestor of {...@link EventBus},  
and

+ * used at the core of {com.google.gwt.user.client.ui.Widget}.
+ * p
+ * While widget authors should continue to use
+ * {...@link com.google.gwt.user.client.ui.Widget#addDomHandler(EventHandler,  
com.google.gwt.event.dom.client.DomEvent.Type)}

+ * and
+ * {...@link com.google.gwt.user.client.ui.Widget#addHandler(EventHandler,  
Type)},
+ * application developers are strongly discouraged from using a  
HandlerManager

+ * instance as a global event dispatch mechanism.
  */
-...@deprecated
 public class HandlerManager implements HasHandlers {

   private final SimpleEventBus eventBus;
@@ -50,6 +54,7 @@
* @param source the event source
* @param fireInReverseOrder true to fire handlers in reverse order
*/
+  @SuppressWarnings(deprecation)
   public HandlerManager(Object source, boolean fireInReverseOrder) {
 eventBus = new SimpleEventBus(fireInReverseOrder);
 this.source = source;
@@ -114,6 +119,7 @@
* @param type the handler's event type
* @return the given handler
*/
+  @SuppressWarnings(deprecation)
   public H extends EventHandler H getHandler(GwtEvent.TypeH type, int  
index) {

 return eventBus.getHandler(type, index);
   }
@@ -124,6 +130,7 @@
* @param type the event type
* @return the number of registered handlers
*/
+  @SuppressWarnings(deprecation)
   public int getHandlerCount(Type? type) {
 return eventBus.getHandlerCount(type);
   }
@@ -134,6 +141,7 @@
* @param e the event type
* @return whether the given event type is handled
*/
+  @SuppressWarnings(deprecation)
   public boolean isEventHandled(Type? e) {
 return eventBus.isEventHandled(e);
   }
===
--- /trunk/user/src/com/google/gwt/user/client/ui/TabPanel.java	Tue Oct  5  
11:03:13 2010
+++ /trunk/user/src/com/google/gwt/user/client/ui/TabPanel.java	Fri Dec  3  
10:28:00 2010

@@ -58,18 +58,13 @@
  * h3Example/h3
  * {...@example com.google.gwt.examples.TabPanelExample}
  * /p
- *
- * @deprecated Use {...@link TabLayoutPanel} instead, but understand that it  
is
- * not a drop in replacement for this class. It requires  
standards
- * mode, and is most easily used under a {...@link  
RootLayoutPanel} (as

- * opposed to a {...@link RootPanel}
  *
  * @see TabLayoutPanel
  */

 // Cannot do anything about tab panel implementing TabListener until next
 // release
-...@deprecated
+...@suppresswarnings(deprecation)
 public class TabPanel extends Composite implements TabListener,
 SourcesTabEvents, HasWidgets, HasAnimation, IndexedPanel.ForIsWidget,
 HasBeforeSelectionHandlersInteger, HasSelectionHandlersInteger {
===
--- /trunk/user/src/com/google/gwt/user/client/ui/Widget.java	Thu Oct 14  
06:34:39 2010
+++ /trunk/user/src/com/google/gwt/user/client/ui/Widget.java	Fri Dec  3  
10:28:00 2010

@@ -55,7 +55,6 @@
*/
   int eventsToSink;
   private boolean attached;
-  @SuppressWarnings(deprecation)
   private HandlerManager handlerManager;
   private Object layoutData;
   private Widget parent;
@@ -74,7 +73,6 @@
* @param handler the handler
* @return {...@link HandlerRegistration} used to remove the handler
*/
-  @SuppressWarnings(deprecation)
   public final H extends EventHandler HandlerRegistration addDomHandler(
   final H handler, DomEvent.TypeH type) {
 assert handler != null : handler must not be null;
@@ -91,7 +89,6 @@
* @param handler the handler
* @return {...@link HandlerRegistration} used to remove the handler
*/
-  @SuppressWarnings(deprecation)
   public final H extends EventHandler HandlerRegistration addHandler(
   final H handler, GwtEvent.TypeH type) {
 return ensureHandlers().addHandler(type, handler);
@@ -101,7 +98,6 @@
 return this;
   }

-  @SuppressWarnings(deprecation)
   public 

[gwt-contrib] [google-web-toolkit] r9359 committed - Rolling back r9354 due to some GWTTestCase breakages...

2010-12-06 Thread codesite-noreply

Revision: 9359
Author: gwt.mirror...@gmail.com
Date: Mon Dec  6 07:55:08 2010
Log: Rolling back r9354 due to some GWTTestCase breakages

Review at http://gwt-code-reviews.appspot.com/1188801

http://code.google.com/p/google-web-toolkit/source/detail?r=9359

Modified:
 /trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java

===
--- /trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java	 
Fri Dec  3 05:03:49 2010
+++ /trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java	 
Fri Dec  3 13:02:53 2010

@@ -1018,7 +1018,10 @@

 // Get the bytes, compiling if necessary.
 byte[] classBytes = findClassBytes(className);
-
+if (classBytes == null) {
+  throw new ClassNotFoundException(className);
+}
+
 if (HasAnnotation.hasAnnotation(classBytes, GwtScriptOnly.class)) {
   scriptOnlyClasses.add(className);
   maybeInitializeScriptOnlyClassLoader();
@@ -1110,7 +1113,7 @@
   }

   @SuppressWarnings(deprecation)
-  private byte[] findClassBytes(String className) throws  
ClassNotFoundException {

+  private byte[] findClassBytes(String className) {
 if (JavaScriptHost.class.getName().equals(className)) {
   // No need to rewrite.
   return javaScriptHostBytes;
@@ -1133,12 +1136,6 @@

 CompilationUnit unit = (compiledClass == null)
 ? getUnitForClassName(lookupClassName) : compiledClass.getUnit();
-
-if (unit != null  unit.isError()) {
-  throw new ClassNotFoundException(Cannot load class  + className
-  +  because it has errors.);
-}
-
 if (emmaAvailable) {
   /*
* build the map for anonymous classes. Do so only if unit has  
anonymous

@@ -1151,10 +1148,11 @@
unit.hasAnonymousClasses()  jsniMethods != null
jsniMethods.size()  0  !unit.createdClassMapping()) {
 if (!unit.constructAnonymousClassMappings(logger)) {
-  throw new ClassNotFoundException(
+  logger.log(TreeLogger.ERROR,
   Our heuristic for mapping anonymous classes between  
compilers 
   + failed. Unsafe to continue because the wrong jsni  
code 

   + could end up running. className =  + className);
+  return null;
 }
   }
 }
@@ -1201,10 +1199,6 @@
   }
   classBytes = newBytes;
 }
-
-if (classBytes == null) {
-  throw new ClassNotFoundException(className);
-}
 return classBytes;
   }

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


[gwt-contrib] [google-web-toolkit] r9360 committed - Update MissingPlugin.html to reflect new Chrome platform support...

2010-12-06 Thread codesite-noreply

Revision: 9360
Author: gwt.mirror...@gmail.com
Date: Mon Dec  6 07:57:35 2010
Log: Update MissingPlugin.html to reflect new Chrome platform support

Review at http://gwt-code-reviews.appspot.com/1184801

http://code.google.com/p/google-web-toolkit/source/detail?r=9360

Modified:
 /trunk/plugins/MissingPlugin/war/MissingPlugin.html

===
--- /trunk/plugins/MissingPlugin/war/MissingPlugin.html	Tue Nov 17 08:54:24  
2009
+++ /trunk/plugins/MissingPlugin/war/MissingPlugin.html	Mon Dec  6 07:57:35  
2010

@@ -62,27 +62,14 @@
 supported : false
   },

-  chrome-lin :
-  {
-caption : Sorry, there is currently no GWT Developer Plugin  
for Chrome on Linux,

-url : troubleshootingUrl,
-supported : false
+  chrome :
+  {
+caption : Download the GWT Developer PluginbrFor Chrome,
+url : 
https://dl-ssl.google.com/gwt/plugins/chrome/gwt-dev-plugin.crx;,
+platforms : Win x86, Linux x86/x86_64, Mac x86,
+supported : true
   },

-  chrome-mac :
-  {
-caption : Sorry, there is currently no GWT Developer Plugin  
for Chrome on OS X,

-url : troubleshootingUrl,
-supported : false
-  },
-
-  chrome-win :
-  {
-caption : The GWT Developer Plugin requires Chrome 4 or  
later,brso click here to learn about switching to the Chrome DevChannel  
to get early access,

-url : http://dev.chromium.org/getting-involved/dev-channel;,
-supported : false
-  },
-
   safari-win :
   {
 caption : Sorry, there is currently no GWT Developer Plugin  
for Safari on Windows,

@@ -106,14 +93,6 @@
 supported : true
   },

-  chrome4-win :
-  {
-caption : Download the GWT Developer PluginbrFor Chrome,
-url : 
https://dl-ssl.google.com/gwt/plugins/chrome/gwt-dev-plugin.crx;,
-platforms : Win x86,
-supported : true
-  },
-
   safari-mac :
   {
 caption : Download the GWT Developer PluginbrFor Safari,
@@ -133,20 +112,7 @@
 } else if (ua.indexOf(android) != -1) {
   id = 'webkit-android';
 } else if (ua.indexOf(chrome) != -1) {
-  if (ua.indexOf(windows) != -1) {
-var ver = /chrome\/(\d+)(\.\d+)*/.exec(ua);
-if (ver  ver.length  1  ver[1] = 4) {
-  id = 'chrome4-win';
-} else {
-  id = 'chrome-win';
-}
-  } else if (ua.indexOf(linux) != -1) {
-id = 'chrome-lin';
-  } else if (ua.indexOf(macintosh) != -1) {
-id = 'chrome-mac';
-  } else {
-// unknown Chrome platform
-  }
+id = 'chrome';
 } else if (ua.indexOf(macintosh) != -1) {
   id = 'safari-mac';
 } else if (ua.indexOf(windows) != -1) {

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


[gwt-contrib] Re: Modifications to StackTraceDeobfuscator: (issue1189801)

2010-12-06 Thread fredsa

http://gwt-code-reviews.appspot.com/1189801/show

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


[gwt-contrib] Isolates the portion of TypeOracleMediator that (issue1188802)

2010-12-06 Thread zundel

Reviewers: jbrosenberg, scottb, tobyr,

Description:
Isolates the portion of TypeOracleMediator that
deals with JDT derived classes such as CompilationUnit
and Compiled Class.  This sets up TypeOracleMediator
so that the TypeOracle can potentially be built without
referencing JDT output.


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

Affected files:
  M dev/core/src/com/google/gwt/dev/javac/CompilationState.java
  M dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java
  A dev/core/src/com/google/gwt/dev/javac/TypeOracleMediatorFromSource.java
  M dev/core/test/com/google/gwt/dev/javac/TypeOracleMediatorTest.java
  M tools/api-checker/src/com/google/gwt/tools/apichecker/ApiContainer.java


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


[gwt-contrib] Re: Isolates the portion of TypeOracleMediator that (issue1188802)

2010-12-06 Thread zundel

This change is not all the way ready for review, but I wanted some
feedback on the testing portion.

The overall aim of this change is to isolate the part of building the
type oracle that relies on running the JDT compiler from the part that
builds the type oracle from bytecode.

The idea is to show that loading the type oracle using classbytes from
the classpath is the same as compiling source code with JDT and taking
the classbytes from there.  To do that, I created new source files with
the same data as in the TypeOracleMediatorTest resources, then look up
the bytecode using the class loader for those classes.

The only test I've modified is testAssimilation().  I wanted to run the
same test on both the source and bytecode build type oracle.  I'm not
really happy with it and am looking for fresh ideas.

http://gwt-code-reviews.appspot.com/1188802/show

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


[gwt-contrib] Re: Isolates the portion of TypeOracleMediator that (issue1188802)

2010-12-06 Thread zundel

http://gwt-code-reviews.appspot.com/1188802/show

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


[gwt-contrib] [google-web-toolkit] r9361 committed - Modifications to StackTraceDeobfuscator:...

2010-12-06 Thread codesite-noreply

Revision: 9361
Author: fre...@google.com
Date: Mon Dec  6 09:48:07 2010
Log: Modifications to StackTraceDeobfuscator:

- Introduces a new protected method, getSymbolMapInputStream(), to obtain a  
symbol map InputStream for a given permutation strong name, to be  
overridden by subclasses.

- Makes the deobfuscateStackTrace() convenience method public
- Multiple lookups for a given permutations's, non-existent or broken,  
symbol map file no longer results in repeated attempt to access or parse  
the same file

- Prevent NPE due to parse() method returning null
- Javadoc additions

Review at http://gwt-code-reviews.appspot.com/1189801

Review by: sce...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=9361

Modified:
 /trunk/user/src/com/google/gwt/logging/server/StackTraceDeobfuscator.java

===
---  
/trunk/user/src/com/google/gwt/logging/server/StackTraceDeobfuscator.java	 
Thu Dec  2 11:11:38 2010
+++  
/trunk/user/src/com/google/gwt/logging/server/StackTraceDeobfuscator.java	 
Mon Dec  6 09:48:07 2010

@@ -18,8 +18,10 @@

 import java.io.BufferedReader;
 import java.io.File;
-import java.io.FileReader;
+import java.io.FileInputStream;
 import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.logging.LogRecord;
@@ -30,12 +32,13 @@
  * Deobfuscates stack traces on the server side. This class requires that  
you

  * have turned on emulated stack traces and moved your symbolMap files to a
  * place accessible by your server. More concretely, you must compile with  
the
- * -extra command line option, copy the symbolMaps directory to somewhere  
your
- * server side code has access to it, and then set the symbolMapsDirectory  
in

- * this class through the constructor, or the setter method.
- * For example, this variable could be set to WEB-INF/classes/symbolMaps/
- * if you copied the symbolMaps directory to there or compiled your  
application

- * using code-extra war/WEB-INF/classes//code.
+ * code-extra/code command line option, copy the  
codesymbolMaps/code
+ * directory to somewhere your server side code has access to it, and then  
set
+ * the symbolMapsDirectory in this class through the constructor, or the  
setter

+ * method. For example, this variable could be set to
+ * WEB-INF/classes/symbolMaps/, if you copied the symbolMaps directory to
+ * there or compiled your application using
+ * code-extra war/WEB-INF/classes//code.
  *
  * TODO(unnurg): Combine this code with similar code in JUnitHostImpl
  */
@@ -65,6 +68,13 @@
 setSymbolMapsDirectory(symbolMapsDirectory);
   }

+  /**
+   * Best effort resymbolization of a log record's stack trace.
+   *
+   * @param lr the log record to resymbolize
+   * @param strongName the GWT permutation strong name
+   * @return the best effort resymbolized log record
+   */
   public LogRecord deobfuscateLogRecord(LogRecord lr, String strongName) {
 if (lr.getThrown() != null  strongName != null) {
   lr.setThrown(deobfuscateThrowable(lr.getThrown(), strongName));
@@ -72,6 +82,30 @@
 return lr;
   }

+  /**
+   * Convenience method which resymbolizes an entire stack trace to extent
+   * possible.
+   *
+   * @param st the stack trace to resymbolize
+   * @param strongName the GWT permutation strong name
+   * @return a best effort resymbolized stack trace
+   */
+  public StackTraceElement[] deobfuscateStackTrace(
+  StackTraceElement[] st, String strongName) {
+StackTraceElement[] newSt = new StackTraceElement[st.length];
+for (int i = 0; i  st.length; i++) {
+  newSt[i] = resymbolize(st[i], strongName);
+}
+return newSt;
+  }
+
+  /**
+   * Best effort resymbolization of a a single stack trace element.
+   *
+   * @param ste the stack trace element to resymbolize
+   * @param strongName the GWT permutation strong name
+   * @return the best effort resymbolized stack trace element
+   */
   public StackTraceElement resymbolize(StackTraceElement ste,
   String strongName) {
 SymbolMap map = loadSymbolMap(strongName);
@@ -84,6 +118,16 @@
 String[] ref = parse(
 parts[0].substring(0, parts[0].lastIndexOf(')') + 1));

+String declaringClass;
+String methodName;
+if (ref != null) {
+  declaringClass = ref[0];
+  methodName = ref[1];
+} else {
+  declaringClass = ste.getClassName();
+  methodName = ste.getMethodName();
+}
+
 // parts[3] contains the source file URI or Unknown
 String filename = Unknown.equals(parts[3]) ? null
 : parts[3].substring(parts[3].lastIndexOf('/') + 1);
@@ -98,7 +142,8 @@
   lineNumber = Integer.parseInt(parts[4]);
 }

-return new StackTraceElement(ref[0], ref[1], filename, lineNumber);
+return new StackTraceElement(
+declaringClass, methodName, filename, 

[gwt-contrib] Re: Modifications to StackTraceDeobfuscator: (issue1189801)

2010-12-06 Thread fredsa

Committed as r9361

http://gwt-code-reviews.appspot.com/1189801/show

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


[gwt-contrib] [google-web-toolkit] r9362 committed - Partial fix for http://code.google.com/p/google-web-toolkit/issues/det...

2010-12-06 Thread codesite-noreply

Revision: 9362
Author: gwt.mirror...@gmail.com
Date: Mon Dec  6 14:51:53 2010
Log: Partial fix for  
http://code.google.com/p/google-web-toolkit/issues/detail?id=5707


Modify JsInliner to avoid propagating expressions incorrectly.

in EvaluationOrderVisitor, two changes were made. First of all, a clinit()  
call

is treated as violating order, the same as any other invocation.

Secondly, a JsNameRef that can be affected by side effects (a global,  
non-param,
non-local) that is visited when there are still expressions that need  
evaluation

first, is treated as violating order.

This fixes the showcase issue, but is still insufficient. Side-effect  
inducing
expressions (assignment, post/prefix increment ops) are still not handled.  
The

exemption of JsNameRefs that are locals is also insufficient, since a side
effect inducing parameter value may be aliased to the same object as this  
local.

After your review, I may remove it and just ban any non-param reference from
occuring while there are still params to be evaluated.

I tested this and it seems to fix the problem.

Review by: sco...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=9362

Modified:
 /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.java
 /trunk/dev/core/test/com/google/gwt/dev/js/JsInlinerTest.java

===
--- /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.java	Mon Sep 20  
06:50:17 2010
+++ /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.java	Mon Dec  6  
14:51:53 2010

@@ -611,12 +611,37 @@
 private boolean maintainsOrder = true;
 private final ListJsName toEvaluate;
 private final ListJsName unevaluated;
-
-public EvaluationOrderVisitor(ListJsName toEvaluate) {
+private final SetJsName paramsOrLocals = new HashSetJsName();
+
+public EvaluationOrderVisitor(ListJsName toEvaluate, JsFunction  
callee) {

   this.toEvaluate = toEvaluate;
   this.unevaluated = new ArrayListJsName(toEvaluate);
+  // collect params and locals from callee function
+  new JsVisitor() {
+@Override
+public void endVisit(JsParameter x, JsContextJsParameter ctx) {
+  paramsOrLocals.add(x.getName());
+}
+
+@Override
+public boolean visit(JsVar x, JsContextJsVar ctx) {
+  // record this before visiting initializer
+  paramsOrLocals.add(x.getName());
+  return true;
+}
+  }.accept(callee);
 }

+/**
+ * Referencing an array breaks order if there are unevaluated  
arguments.

+ */
+@Override
+public void endVisit(JsArrayAccess x, JsContextJsExpression ctx) {
+  if (unevaluated.size()  0) {
+maintainsOrder = false;
+  }
+}
+
 @Override
 public void endVisit(JsBinaryOperation x, JsContextJsExpression ctx)  
{

   JsBinaryOperator op = x.getOperator();
@@ -669,12 +694,7 @@
  */
 @Override
 public void endVisit(JsInvocation x, JsContextJsExpression ctx) {
-  /*
-   * The check for isExecuteOnce() is potentially incorrect here,  
however

-   * the original Java semantics of the clinit would have made the code
-   * incorrect anyway.
-   */
-  if ((isExecuteOnce(x) == null)  unevaluated.size()  0) {
+  if (unevaluated.size()  0) {
 maintainsOrder = false;
   }
 }
@@ -710,11 +730,35 @@
   return maintainsOrder  unevaluated.size() == 0;
 }

+/**
+ * Check to see if the evaluation of this JsName will break program  
order assumptions given

+ * the parameters left to be substituted.
+ *
+ * The cases are as follows:
+ * 1) JsName is a function parameter name which has side effects or is  
affected by side effects

+ * (hereafter called 'volatile'), so it will be in 'toEvaluate'
+ * 2) JsName is a function parameter which is not volatile (not in  
toEvaluate)

+ * 3) JsName is a reference to a global variable
+ * 4) JsName is a reference to a local variable
+ *
+ * A reference to a global while there are still parameters left to  
evaluate / substitute

+ * implies an order volation.
+ *
+ * A reference to a volatile parameter is ok if it if is the next  
parameter in sequence to
+ * be evaluated (beginning of unevaluated list). Else, it is either  
being evaluated out of
+ * order with respect to other parameters, or it is being evaluated  
more than once.

+ */
 private void checkName(JsName name) {
   if (!toEvaluate.contains(name)) {
+// if the name is a non-local/non-parameter (e.g. global) and  
there are params left to eval

+if (!paramsOrLocals.contains(name)  unevaluated.size()  0) {
+  maintainsOrder = false;
+}
+// else this may be a local, or all volatile params have already  
been evaluated, so it's ok.

 return;
   }

+  // either this param is being evaled twice, or out of order
   if (unevaluated.size() == 0 || 

Re: [gwt-contrib] [google-web-toolkit] r9362 committed - Partial fix for http://code.google.com/p/google-web-toolkit/issues/det...

2010-12-06 Thread Ray Cromwell
I forgot to edit the log description before I submitted, this isn't a
partial fix, it's a complete fix, although it is more conservative
than it needs to be (an inliner could substitute and propagate
expressions if it did better dataflow analysis). It can be made more
optimal later.

-Ray

On Mon, Dec 6, 2010 at 2:52 PM,  codesite-nore...@google.com wrote:
 Revision: 9362
 Author: gwt.mirror...@gmail.com
 Date: Mon Dec  6 14:51:53 2010
 Log: Partial fix for
 http://code.google.com/p/google-web-toolkit/issues/detail?id=5707

 Modify JsInliner to avoid propagating expressions incorrectly.

 in EvaluationOrderVisitor, two changes were made. First of all, a clinit()
 call
 is treated as violating order, the same as any other invocation.

 Secondly, a JsNameRef that can be affected by side effects (a global,
 non-param,
 non-local) that is visited when there are still expressions that need
 evaluation
 first, is treated as violating order.

 This fixes the showcase issue, but is still insufficient. Side-effect
 inducing
 expressions (assignment, post/prefix increment ops) are still not handled.
 The
 exemption of JsNameRefs that are locals is also insufficient, since a side
 effect inducing parameter value may be aliased to the same object as this
 local.
 After your review, I may remove it and just ban any non-param reference from
 occuring while there are still params to be evaluated.

 I tested this and it seems to fix the problem.

 Review by: sco...@google.com
 http://code.google.com/p/google-web-toolkit/source/detail?r=9362

 Modified:
  /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.java
  /trunk/dev/core/test/com/google/gwt/dev/js/JsInlinerTest.java

 ===
 --- /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.java    Mon Sep 20
 06:50:17 2010
 +++ /trunk/dev/core/src/com/google/gwt/dev/js/JsInliner.java    Mon Dec  6
 14:51:53 2010
 @@ -611,12 +611,37 @@
     private boolean maintainsOrder = true;
     private final ListJsName toEvaluate;
     private final ListJsName unevaluated;
 -
 -    public EvaluationOrderVisitor(ListJsName toEvaluate) {
 +    private final SetJsName paramsOrLocals = new HashSetJsName();
 +
 +    public EvaluationOrderVisitor(ListJsName toEvaluate, JsFunction
 callee) {
       this.toEvaluate = toEvaluate;
       this.unevaluated = new ArrayListJsName(toEvaluate);
 +      // collect params and locals from callee function
 +      new JsVisitor() {
 +       �...@override
 +        public void endVisit(JsParameter x, JsContextJsParameter ctx) {
 +          paramsOrLocals.add(x.getName());
 +        }
 +
 +       �...@override
 +        public boolean visit(JsVar x, JsContextJsVar ctx) {
 +          // record this before visiting initializer
 +          paramsOrLocals.add(x.getName());
 +          return true;
 +        }
 +      }.accept(callee);
     }

 +    /**
 +     * Referencing an array breaks order if there are unevaluated
 arguments.
 +     */
 +   �...@override
 +    public void endVisit(JsArrayAccess x, JsContextJsExpression ctx) {
 +      if (unevaluated.size()  0) {
 +        maintainsOrder = false;
 +      }
 +    }
 +
     @Override
     public void endVisit(JsBinaryOperation x, JsContextJsExpression ctx) {
       JsBinaryOperator op = x.getOperator();
 @@ -669,12 +694,7 @@
      */
     @Override
     public void endVisit(JsInvocation x, JsContextJsExpression ctx) {
 -      /*
 -       * The check for isExecuteOnce() is potentially incorrect here,
 however
 -       * the original Java semantics of the clinit would have made the code
 -       * incorrect anyway.
 -       */
 -      if ((isExecuteOnce(x) == null)  unevaluated.size()  0) {
 +      if (unevaluated.size()  0) {
         maintainsOrder = false;
       }
     }
 @@ -710,11 +730,35 @@
       return maintainsOrder  unevaluated.size() == 0;
     }

 +    /**
 +     * Check to see if the evaluation of this JsName will break program
 order assumptions given
 +     * the parameters left to be substituted.
 +     *
 +     * The cases are as follows:
 +     * 1) JsName is a function parameter name which has side effects or is
 affected by side effects
 +     * (hereafter called 'volatile'), so it will be in 'toEvaluate'
 +     * 2) JsName is a function parameter which is not volatile (not in
 toEvaluate)
 +     * 3) JsName is a reference to a global variable
 +     * 4) JsName is a reference to a local variable
 +     *
 +     * A reference to a global while there are still parameters left to
 evaluate / substitute
 +     * implies an order volation.
 +     *
 +     * A reference to a volatile parameter is ok if it if is the next
 parameter in sequence to
 +     * be evaluated (beginning of unevaluated list). Else, it is either
 being evaluated out of
 +     * order with respect to other parameters, or it is being evaluated
 more than once.
 +     */
     private void checkName(JsName name) {
       if (!toEvaluate.contains(name)) {
 +        // if the name is a 

[gwt-contrib] Re: Isolates the portion of TypeOracleMediator that (issue1188802)

2010-12-06 Thread scottb

Looks like this is heading in a good direction.  Idea for the test code.

Another high level idea is that you a single test case superclass with
the bulk of the code, then you have to two subclasses that only differ
in how typeOracle is built.  We use this pattern in other places.


http://gwt-code-reviews.appspot.com/1188802/diff/4001/5004
File dev/core/test/com/google/gwt/dev/javac/TypeOracleMediatorTest.java
(right):

http://gwt-code-reviews.appspot.com/1188802/diff/4001/5004#newcode122
dev/core/test/com/google/gwt/dev/javac/TypeOracleMediatorTest.java:122:
InputStream istream = loader.getResourceAsStream(resourcePath);
There should be a Util.readUrlAsBytes() or something that does all this
mess for you.

http://gwt-code-reviews.appspot.com/1188802/diff/4001/5004#newcode1188
dev/core/test/com/google/gwt/dev/javac/TypeOracleMediatorTest.java:1188:
compileAndRefresh();
I think what you really want to do is have compileAndRefresh() build two
different oracles, and have your assertions simply check both oracles at
the same time.

http://gwt-code-reviews.appspot.com/1188802/show

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


[gwt-contrib] Tests don't compile, possible solution, and several tests failures

2010-12-06 Thread Luis Solano
Hi,
I was trying to execute the test but I got this error:

...
...
...
-filter.props:
build:
compile.emma.if.enabled:
-compile.emma.if.enabled:
compile.tests:
compile.emma.if.enabled:
-compile.emma.if.enabled:
compile.tests:
[mkdir] Created dir: /Users/Luis/Documents/workspace-gwt/gwt/build/
out/user/bin-test
[gwt.javac] Compiling 911 source files to /Users/Luis/Documents/
workspace-gwt/gwt/build/out/user/bin-test
[gwt.javac] /Users/Luis/Documents/workspace-gwt/gwt/user/test/com/
google/gwt/requestfactory/client/RequestFactoryTestBase.java:105:
incompatible types
[gwt.javac] found   : com.google.gwt.autobean.shared.AutoBeanT
[gwt.javac] required:
com.google.gwt.autobean.shared.AutoBeancom.google.gwt.requestfactory.shared.BaseProxy
[gwt.javac] AutoBeanBaseProxy restoredBean =
AutoBeanUtils.getAutoBean(restored);
[gwt.javac]
^
[gwt.javac] Note: Some input files use or override a deprecated API.
[gwt.javac] Note: Recompile with -Xlint:deprecation for details.
[gwt.javac] Note: Some input files use unchecked or unsafe operations.
[gwt.javac] Note: Recompile with -Xlint:unchecked for details.
[gwt.javac] 1 error

BUILD FAILED
/Users/Luis/Documents/workspace-gwt/gwt/build.xml:118: The following
error occurred while executing this line:
/Users/Luis/Documents/workspace-gwt/gwt/build.xml:27: The following
error occurred while executing this line:
/Users/Luis/Documents/workspace-gwt/gwt/build.xml:59: The following
error occurred while executing this line:
/Users/Luis/Documents/workspace-gwt/gwt/user/build.xml:118: Compile
failed; see the compiler error output for details.

Total time: 7 minutes 14 seconds

I provide a patch that solves the compile error, and I have run all of
subclasses of RequestFactoryTestBase (FindServiceTest,
RequestFactoryTest, RequestFactoryUnicodeEscapingTest and EditorTest)
with no errors.

Index: user/test/com/google/gwt/requestfactory/client/
RequestFactoryTestBase.java
===
--- user/test/com/google/gwt/requestfactory/client/
RequestFactoryTestBase.java (revision 9347)
+++ user/test/com/google/gwt/requestfactory/client/
RequestFactoryTestBase.java (working copy)
@@ -102,7 +102,7 @@
 store = new DefaultProxyStore(store.encode());
 s = req.getSerializer(store);
 T restored = s.deserialize(id.getProxyClass(), key);
-AutoBeanBaseProxy restoredBean =
AutoBeanUtils.getAutoBean(restored);
+AutoBeanT restoredBean = AutoBeanUtils.getAutoBean(restored);
 assertNotSame(proxy, restored);
 /*
  * Performing a regular assertEquals() or even an
AutoBeanUtils.diff() here


I have compiled and run the tests with JDK 1.6 due to this issue
http://code.google.com/p/google-web-toolkit/issues/detail?id=5708.

Several tests failed and after 1h30m the execution is stuck with
ServletMappingSuite.
UiBinderGwtSuite ran out of memory and in the console, ant reported
tests failures and/or errors at least in BigIntegerSuite, RPCSuite,
EmulSuite, CrossSiteRunAsyncSuite, RequestFactoryJreSuite and a
timeout issue in ValidationClientGwtSuite

Did you know something about this or is something related with me or
my JDK? I'll run the tests again

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


[gwt-contrib] Re: Public: Check constraints against the field or property that has the actual annotation. (issue1185801)

2010-12-06 Thread nchalko

PTAL

http://gwt-code-reviews.appspot.com/1185801/show

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