Re: RequestBuilder + POST + multipart/form-data

2008-10-23 Thread Lothar Kimmeringer

Alex Rice schrieb:
 Can anyone confirm whether RequestBuilder actually works for POSTs
 setRequestData() and with multipart/form-data content type?

I can't confirm it for RequestBuilder, but can do it for
FormPanel, because there are constants that can be used to
set the encoding to mulitpart/form-data.

So you should give it a try, use the widget instead or
do the request on the server-side inside a RemoteServiceServlet.
There are a couple of examples out there using FormPanel
especially when the topic is upload a file using GWT where
this panel is in general used.


Regards, Lothar

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



Re: RPC fails under Tomcat

2008-10-23 Thread Lothar Kimmeringer

Barry schrieb:

 1) What log would it be referring to??

The log Tomcat uses for logging messages and error. I don't know
Tomcat in detail but would expect it in a directory called
logs.

 2) How does one debug server-side code running under Tomcat?? Is
 Eclipse any help here??

If the Remote Debug Interface of the Java Virtual Machine running
Tomcat is active any IDE with Remote-Debugging-support can do.
Eclipse is one of them.

 3) In fact, there's something failing in the server-side code being
 called by the RPC. If I comment out the guts of this function, I get a
 clean return, but no work done. I conclude that some horrible
 exception is occurring in the server-side code ... something that
 evades even an Exception try/catch handler. The problem appears to be
 in a CXF call to a web service.

If catching an exception doesn't help, there seems to be an Error
being thrown. Try to catch Throwable instead of Exception. Most
likely you will see a ClassNotFoundError or MethodNotFoundError.
The first occurred if you forgot ot add external libraries to the
classpath of Tomcat and/or the WebApplication, the second you
get if the version of the library doesn't fit with the one being
installed on the Tomcat-system


Regards, Lothar

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



Re: MySQl and GWT?!

2008-10-23 Thread GWBasic

You can only do what you can do from JavaScript.  This means that GWT
can only open connections to the web server that's serving it.

You will need to use whatever technology that you web server is
running in order to access MySQL.  This means that you'd need to write
some kind of data access script in PHP, ASP (C#), JSP, Perl, Ruby,
ect, ect.

A technique that I've used is to write queries in PHP, format the
results into XML, and then parse the XML in GWT.

Remember, GWT runs in the browser on an un-trusted computer.  For
security reasons; it's risky for the database to run any query that it
gets from GWT, as this would open your database up to hackers.

On Oct 21, 4:48 am, sumeetsahu [EMAIL PROTECTED] wrote:
 Hi,

 I an new to GWT. I just want to know if we can use MySQL with GWT.

 I want to create a web page where I will be storing user info on
 database and then query accordingly when ever required.

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



Re: splitting client, RPC and server in different eclipse projects?

2008-10-23 Thread Tom Janssens
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/887677fd133b5e0b




On 22/10/2008, TomJanssens [EMAIL PROTECTED] wrote:

 Hello all,

 I am trying to split the client, RPC and server code in different
 eclipse projects. Is this possible? Before I splitted the code it was
 working fine, however after splitting it in multiple projects I get
 the following errors.

 [TRACE] Removing units with errors
 [ERROR] Errors in 'file:/C:/workspace/grivio-client/src/com/blugri/
 client/preferencesmodule/PreferencesModule.java'
 [ERROR] Line 10: No source code is available for type
 com.blugri.client.preferencesmodule.PreferencesServiceAsync; did you
 forget to inherit a required module?
 [ERROR] Line 31: No source code is available for type
 com.blugri.client.preferencesmodule.PreferencesService; did you forget
 to inherit a required module?

 Can anbody tell me what I am forgetting?

 Another change which I did at the same time was updating gwt, gwt-ext
 and gwt-ext-ux to the latest version. I am also getting this error:

 [TRACE] Removing units with errors
 [ERROR] Errors in 'jar:file:/C:/workspace/grivio-client/lib/
 gwtextux.jar!/com/gwtextux/client/widgets/upload/SwfUploadPanel.java'
 [ERROR] Line 81: Cannot reduce the visibility of the inherited method
 from GridPanel

 Cheers
 Tom

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



Re: Suggestion: GWT port to Desktop

2008-10-23 Thread Jaco Van Staden
From what I can see this runs in Python.  Is there perhaps one that allows
your GWT code to run with the Java language?

As for the mobile applications...  I was wondering whether there would be a
port for GWT to Android or some kind of toolkit which compile to both
Android and GWT?

On Thu, Oct 23, 2008 at 1:36 AM, Guy Rouillier [EMAIL PROTECTED] wrote:


 Jaco Van Staden wrote:
  Hi...  I just picked up on this thread.  How does this work and where
  can I read more about this project?  Is there a way to have GWT code
  running on mobile apps?
 
  Looking forward to hearing from you :)

 Rather than copy the previous messages here, I'll just point you to the
 threads which you can read from the archives:

 ANN: Pyjamas 0.3 Released
 Suggestion: GWT port to Desktop

 And here are some links the original author provided:

 http://pyjd.org for Pyjamas-Desktop
 http://pyjs.org for Pyjamas


 For your last question, GWT is (clever) Javascript.  If your mobile
 browser has the necessary Javascript support, GWT should run there.

 --
 Guy Rouillier

 



-- 
Kind Regards

Jaco van Staden
Cell:  +27 (0)82 7712294

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



Re: Suggestion: GWT port to Desktop

2008-10-23 Thread Guy Rouillier

Jaco Van Staden wrote:
  From what I can see this runs in Python.  Is there perhaps one that 
 allows your GWT code to run with the Java language?

No, that's an idea the original poster was suggesting.  Purely 
hypothetical at this point.

 
 As for the mobile applications...  I was wondering whether there would 
 be a port for GWT to Android or some kind of toolkit which compile to 
 both Android and GWT? 

Not necessary.  GWT becomes pure Javascript.  As long as the browser on 
Android can run Javascript, it can run GWT.

 
 On Thu, Oct 23, 2008 at 1:36 AM, Guy Rouillier [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 
 Jaco Van Staden wrote:
   Hi...  I just picked up on this thread.  How does this work and where
   can I read more about this project?  Is there a way to have GWT code
   running on mobile apps?
  
   Looking forward to hearing from you :)
 
 Rather than copy the previous messages here, I'll just point you to the
 threads which you can read from the archives:
 
 ANN: Pyjamas 0.3 Released
 Suggestion: GWT port to Desktop
 
 And here are some links the original author provided:
 
 http://pyjd.org for Pyjamas-Desktop
 http://pyjs.org for Pyjamas
 
 
 For your last question, GWT is (clever) Javascript.  If your mobile
 browser has the necessary Javascript support, GWT should run there.
 
 --
 Guy Rouillier
 
 
 
 
 
 -- 
 Kind Regards
 
 Jaco van Staden
 Cell:  +27 (0)82 7712294
 
  


-- 
Guy Rouillier

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



Can I call GWT app. from Struts app. and vice versa ?

2008-10-23 Thread pepgrifell

hi,

we are migrating our web app. to GWT but it's a big app. so we will
migrate it by modules. In the Struts app. we have a toolbar with
buttons that allows to access different modules of the app. We would
like to migrate module a module. Let's say I have buttonA (module A),
button B (module B) and button C (module C).

I would like to know if I can call (and how) the GWT app. when I click
button C in Struts app. (I have module C in GWT) I suppose I should
call the entry page but then how can I redirect to the page I want ?
In the entry point I should receive some parameter (passed through the
URL) to know which page I should load ...

When the GWT app. will be load, I will have the same toolbar I have in
Struts app. Then I would like that when I call button A or B and go
back to Struts app.

I have two WAR's, one for Struts app. and the other for GWT app.

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



Re: Image LoadListener: onError not called for HttpServletResponse.SC_NOT_FOUND

2008-10-23 Thread Martin Trummer

this happens in hosted mode and webmode (FF3.0.3)

On Oct 22, 7:00 pm, Martin Trummer [EMAIL PROTECTED] wrote:
 hi,

 I have an imageServlet that returns HttpServletResponse.SC_NOT_FOUND
 if it cannot find the requested image.
 On the client side I use an Image element with an attached
 LoadListener.
 But even when the servlet returns HttpServletResponse.SC_NOT_FOUND,
 the onLoad() method will be called and not the onError() method.

 What is my servlet expected to return, so that the onError() method
 will be invoked?

 note: I tried the same with an image file; that means: an URL to the
 servers file system (and not to my servlet)
 in this case it works as expected: when the image exists, onLoad() is
 called, when it doesn't exist onError() is called.

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



Re: Calling a web service which uses JSON?

2008-10-23 Thread eggsy84

wonder if our comments helped?!!

On Oct 22, 2:42 pm, eggsy84 [EMAIL PROTECTED] wrote:
 If the server is on a different location you can however use JSONP to
 perform the request.

 I have wrote a quick tutorial on this in a J2EE container but the
 client side code will still be the same:

 http://eggsylife.blogspot.com/2008/10/gwt-and-cross-site-jsonp-in-j2e...

 This is taken from a very good article from Dan Morill at Google on
 how to access web service using JSONP and GWT:

 http://code.google.com/support/bin/answer.py?answer=65632topic=11368

 Dans article particularly addresses the client side code.

 Eggsy

 On Oct 22, 1:34 pm, Lothar Kimmeringer [EMAIL PROTECTED] wrote:

  markww schrieb:

   It's just building a JSON encoded string, sending it to the URL where
   the service is at, then sends back the JSON serialized response.

  You shouldn't use the term WebService for this because it's
  commonly used for the other thing.

   I'm using it from a java applet right now. Which examples should I
   look at to get this to work? Is that samples/JSON project the one I
   want?

  It looks fine from my side to see how to create a HTTP-request
  and parse the returned JSON-data in a way to get a Java-Object.
  But you should be aware that this example only works if you
  whitelist the server to be contacted if it's a different one
  where the GWT-page is coming from.

  So you might think of moving the actual request out to a
  RemoteServiceServlet and then I'm not sure if the JSON-
  classes (residing in the client-package of GWT) will work
  on the server, because there might JSNI-magic going on
  (haven't checked the source, so I might be wrong).

  Just try it out, the worst thing that can happen is that
  you get an error-message (of course this isn't valid if
  the name of the webservice is deleteallforreal ;-)

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



Re: gwt + spring ?

2008-10-23 Thread Waleed Zedan
Hi,

Bootstraping the HttpInvoker in the client side is not possible using spring
context.

You can check this approach, it may help you.

http://javaquickly.wordpress.com/2008/10/17/springfying-gwt/

wish this helps.

thanks,

On Mon, Oct 20, 2008 at 12:25 PM, Yonatan Maman [EMAIL PROTECTED] wrote:


 Hi
 Can I access spring bean that exposed using http invoker  (server)
 from GWT application (client) ?
 If so is there any example / tutorial for that  ?

 -- Yonatan

 



-- 
Waleed Zedan
SCJP 1.4 , CCNA

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



Re: Bean Serialization Problem: com.google.gwt.user.client.rpc.SerializationException: Type 'com.dg.common.client.beans.DGUser' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable'

2008-10-23 Thread [EMAIL PROTECTED]

Hi

May we know what was causing the difference in file-names?  I am
having a similar exception


G.



On Sep 22, 1:06 pm, ping2ravi [EMAIL PROTECTED] wrote:
 i found the problem why file names were different.
 Thanks

 On Sep 22, 11:18 am, ping2ravi [EMAIL PROTECTED] wrote:

  Hi All,
  My application was working good till now and now i deployed it to
  other machine and it start giving me following exception. My DGUser
  class is implementing serializable interface.

  SEVERE: Exception while dispatching incoming RPC call
  com.google.gwt.user.client.rpc.SerializationException: Type
  'com.dg.common.client.beans.DGUser' was not assignable to
  'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
  custom field serializer.  For security purposes, this type will not be
  serialized.
          at
  com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:
  140)
          at
  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
  585)
          at
  com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
  129)
          at 
  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
  $ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
          at
  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
  520)
          at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573)
          at
  com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:
  441)
          at
  com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
  529)
          at
  com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
  163)
          at
  com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:
  85)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
  290)
          at
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
  206)
          at
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
  233)
          at
  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
  175)
          at
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
  128)
          at
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
  102)
          at
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
  109)
          at
  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
  263)
          at
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
  844)
          at org.apache.coyote.http11.Http11Protocol
  $Http11ConnectionHandler.process(Http11Protocol.java:584)
          at 
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
  447)
          at java.lang.Thread.run(Thread.java:619)

  And also its giving following error in the log file, So i am guessing
  its because of this .gwt.rpc missing file,
  INFO: ERROR: The serialization policy file '/
  D96C005D9FEF0E3183DC3057D9F48727.gwt.rpc' was not found; did you
  forget to include it in this deployment?
  INFO: WARNING: Failed to get the SerializationPolicy
  'D96C005D9FEF0E3183DC3057D9F48727' for module 'http://localhost:8090/
  AdminMenu/'; a legacy, 1.3.3 compatible, serialization policy will be
  used.  You may experience SerializationExceptions as a result.

  I checked my deployed application directory there is only one .gwt.rpc
  file which is E8B2AED1667057CBC391B7AC2BFAA4E9.gwt.rpc but not
  D96C005D9FEF0E3183DC3057D9F48727.gwt.rpc. I don't know how GWT is
  generating this file name and why its generating different names when
  its being actual generating the file and when its using it. And the
  file which is present in my deployed directory have all my beans
  including DgUser.
  There is something wrong, can any one please help me.

  Thanks in advance,
  Ravi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Production and test source

2008-10-23 Thread obesga

Yes walden , it works as expeceted

( in GWT 1.5.2 )

It launchs a warning on GWT Shell, but it really works - as servlet is
in /test/src
If I don't add the second source line, an ClassNotFoundException is
thrown when GWTShell stars

I was also thinking about deploying proyect into 3 differente source
folders:
- One for the RPC interfaces and the data classes ( POJO ), this will
be shared with the bussines server code
- Other for the GWT busssines code, which may be translated to Js+HTML
but is not necessary for the server
- The test source folder

Or perhaps it is a little messy ?


Oskar


On 22 oct, 19:50, walden [EMAIL PROTECTED] wrote:
 I don't think

     source path=../../test/src/test/server/

 does anything.  As I recall, source paths cannot be outside the root
 module folder.  Your servlet implementation can live anywhere for
 testing, and it doesn't need to be on the source path.  That's for
 client side stuff.

 Walden

 On Oct 22, 1:13 pm, obesga [EMAIL PROTECTED] wrote:

  I have done rigth the separation of test code and bussines code into a
  GWT application

  The structure of my code is
  Project
   + src
   |  * myproy.gwt.xml
   |  * public /
   |  * client /
  + test
   |  +src
   |   |  * server / TestServlet.java
   |  +classes
   |
   + classes

  So my gwt.xml is:
  module
  [...]
      entry-point class='client.xxx'/

      source path=client/
      source path=../../test/src/test/server/

      servlet path=/servlet      class=server.TestServlet/
  [...]
  /module

  I must add src - classes and test/src - test/classes to classpath when
  compiling and launching shell.

  But when I make the jar to the server, I only include the bussines
  code, no the testing code

  ¿ Have you tried configurations like this ?
  ¿ What do you think ?

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



Some css entries lost after compling

2008-10-23 Thread Alex Luya

I have a css for FlexTable as following:
.emc-powertable td {
cursor:pointer;
border-color:blue;
border-style:solid;
border-width:1px 1px 1px 1px;
text-align: left;
}


after complied,in firefox,I can not see the border,and in firebug,I 
found this css become:

.emc-powertable td {
cursor:pointer;
border-color:blue;
border-style:solid;
text-align: left;
}

Apparently,some css entries lost,so I can not see border of table,but In 
IE6,I can see the border,Can anybody help me?

I am using GWT 1.5.2  xml file is

?xml version=1.0 encoding=UTF-8 standalone=no?module

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

!-- Specify the app entry point class.   --
entry-point class=com.tsolution.emc.client.EMC/
inherits name=com.google.gwt.user.theme.standard.Standard/
 
 !-- Add gwt-log support, default level `DEBUG` --
inherits name=com.allen_sauer.gwt.log.gwt-log-DEBUG/
extend-property name=log_level values=DEBUG/
set-property name=log_DivLogger value=DISABLED/
 !--set-property name=log_ConsoleLogger value=ENABLED /--
set-property name=log_RemoteLogger value=ENABLED/
servlet class=com.tsolution.emc.server.ServicesImpl 
path=/Services/
 inherits name=com.google.gwt.widgetideas.WidgetIdeas/
  inherits name=com.google.gwt.widgetideas.ScrollTable/
  inherits name=org.zenika.widget.DatePickerModule/

  stylesheet src=css/ScrollTableDemo.css/
/module



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



Re: RequestCallBack onResponseReceived, returnValue

2008-10-23 Thread garden

Okay it is so simple as i thought.
Define the CallBack in the Main and give them the method.

Greetings
garden

On 22 Okt., 12:04, garden [EMAIL PROTECTED] wrote:
 Hello everybody
 I've a little problem, and I think I have a big Fallacies.

 I have my main class, let's call it main
 and I have a database class wich I use to communicate with the server.

 Now I make in the main class a database
 and call the method to get content.

 MAIN
 String response = database.getContent();

 DATABASE
 final String temp;

 public String getContent()
 {
                 rB_requester.sendRequest(null,
                                 new RequestCallback() {
                                         public void 
 onResponseReceived(Request request, Response
 response) {
                                 temp = response.getText();
                         }

                         public void onError(Request request, Throwable 
 exception) {
                                 temp = exception.getMessage();
                         }
                 });

                 return temp;

 }

 The problem is that the temp String is empty, but the responseText is
 okay.
 How can I return data from the onResponseReceived - Method to the
 getContent - Method ?

 I think there is a very easy way, but I didn't see them. :(

 sorry for my terrible english
 Greatings - garden
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



PureMVC

2008-10-23 Thread marcelo melo

Hi, is anyone using PureMVC for Java / GWT?

Thanks

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



Re: PureMVC

2008-10-23 Thread Flemming Boller
Yes I am.  I think is it rather nice little MVC implementation, which has
made it more easy for us to make
components talk to each other in a loosely coupled way.

Minus is however, that it easy also to create a spider web of notifications
that is hard to overview.

But common sense and keep it simple should be used here :-)


/Flemming




On Thu, Oct 23, 2008 at 1:48 PM, marcelo melo [EMAIL PROTECTED]wrote:


 Hi, is anyone using PureMVC for Java / GWT?

 Thanks

 


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



Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-10-23 Thread walden

...or did you mean GXT and gwt-ext?  Confusing, amen.

On Oct 22, 3:12 pm, JohnMudd [EMAIL PROTECTED] wrote:
 Sorry, this is really confusing.  I mean Ext GWT and 
 GWT-Ext.http://www.ongwt.com/post/2008/04/22/MyGWT-is-dead-Long-live-Ext-GWT

 On Oct 22, 3:09 pm, JohnMudd [EMAIL PROTECTED] wrote:



  Oh, I mean gwt-ext.

  On Oct 22, 3:07 pm, JohnMudd [EMAIL PROTECTED] wrote:

   Can I sidestep issues with these widgets by switching to MyGWT or gwt-
   ext?

   John

   On Oct 18, 11:26 pm, JohnMudd [EMAIL PROTECTED] wrote:

Cool, I got issue number 3000.  Nice round 
number.http://code.google.com/p/google-web-toolkit/issues/detail?id=3000

On Oct 18, 11:14 pm, JohnMudd [EMAIL PROTECTED] wrote:

 I have to hand it to you, your changes (summarized below) do produce
 the desired 50% height in the log message.  But it's getting a little
 off track from my original intention and it doesn't seem to help in
 compiled mode, my ultimate goal.  I think at this point I'll try
 reporting this as a bug and see what kind of response I get.

      appPanel.setCellHeight(bodyPanel, 50%);
      bodyPanel.setSize(100%, 100%);
 ---

      appPanel.setCellHeight(bodyPanel, 100%);
      bodyPanel.setSize(100%, 50%);
      bodyPanel.add(new HTML(X));

 John

 On Oct 17, 11:05 pm, Ian Bambury [EMAIL PROTECTED] wrote:

  Try this. Works for me. You might need a doctype
  Ian

 http://examples.roughian.com

          root.add(basePanel);
          basePanel.setSize(100%, 200px);

          basePanel.add(logPanel);
          basePanel.setCellWidth(logPanel, 30%);
          basePanel.setCellHeight(logPanel, 100%);
          logPanel.setSize(100%, 100%);

          basePanel.add(appPanel);
          basePanel.setCellWidth(appPanel, 70%);
          basePanel.setCellHeight(appPanel, 100%);
          appPanel.setSize(100%, 100%);

          appPanel.add(bodyPanel);
          appPanel.setCellWidth(bodyPanel, 100%);
          appPanel.setCellHeight(bodyPanel, 100%);

          bodyPanel.setSize(100%, 50%);
          bodyPanel.add(new HTML(X));- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: splitting client, RPC and server in different eclipse projects?

2008-10-23 Thread walden

a third point:

* If you change everything at once, then it's polynomially harder to
figure out which change(s) caused the failure

On Oct 22, 6:02 pm, olivier nouguier [EMAIL PROTECTED]
wrote:
 2 points:
 * If you've split your source in 2 part you must now have 2 module.gwt.xml,
 one (Lib) inheriting of the other (App).
 * At gwt compile time the *source* must be found (added)  in the classpath.





 On Wed, Oct 22, 2008 at 10:26 PM, TomJanssens [EMAIL PROTECTED] wrote:

  Hello all,

  I am trying to split the client, RPC and server code in different
  eclipse projects. Is this possible? Before I splitted the code it was
  working fine, however after splitting it in multiple projects I get
  the following errors.

  [TRACE] Removing units with errors
  [ERROR] Errors in 'file:/C:/workspace/grivio-client/src/com/blugri/
  client/preferencesmodule/PreferencesModule.java'
  [ERROR] Line 10: No source code is available for type
  com.blugri.client.preferencesmodule.PreferencesServiceAsync; did you
  forget to inherit a required module?
  [ERROR] Line 31: No source code is available for type
  com.blugri.client.preferencesmodule.PreferencesService; did you forget
  to inherit a required module?

  Can anbody tell me what I am forgetting?

  Another change which I did at the same time was updating gwt, gwt-ext
  and gwt-ext-ux to the latest version. I am also getting this error:

  [TRACE] Removing units with errors
  [ERROR] Errors in 'jar:file:/C:/workspace/grivio-client/lib/
  gwtextux.jar!/com/gwtextux/client/widgets/upload/SwfUploadPanel.java'
  [ERROR] Line 81: Cannot reduce the visibility of the inherited method
  from GridPanel

  Cheers
  Tom

 --
 Si l'ignorance peut servir de consolation, elle n'en est pas moins
 illusoire.- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: PureMVC

2008-10-23 Thread marcelo melo

Totally agree with you... Simplicity is key most of the times (at
least it should :) ).

I have one question that is really annoying me. Having used it
(puremv) with Flex, it is easy to fire an event at the View and
associate it with a method at the Mediator. But, how to deal with it
on GWT? I am adding the Mediator as the event listener of the View (by
making it implement the relevant View listeners - ClickListener,
etc.), but I'm not quite sure if it's the best way to do it...

Any ideas?

Thanks!

On Thu, Oct 23, 2008 at 9:53 AM, Flemming Boller
[EMAIL PROTECTED] wrote:
 Yes I am.  I think is it rather nice little MVC implementation, which has
 made it more easy for us to make
 components talk to each other in a loosely coupled way.

 Minus is however, that it easy also to create a spider web of notifications
 that is hard to overview.

 But common sense and keep it simple should be used here :-)


 /Flemming




 On Thu, Oct 23, 2008 at 1:48 PM, marcelo melo [EMAIL PROTECTED]
 wrote:

 Hi, is anyone using PureMVC for Java / GWT?

 Thanks




 


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



Re: internationalization java file in one place and property files in another jar

2008-10-23 Thread Thomas Broyer


On 23 oct, 07:23, zujee [EMAIL PROTECTED] wrote:
 I have so  many property files and corresponding java file which
 extending messages. So I have planned to put all these proerty files
 in one jar and put the corresponding java file which extending
 messages in local folder, where i can set the path corresponding
 property files. Is that possible? then can some of you experts pls
 direct me how can i achive that

First, resources are loaded from the classpath, so whichever JAR they
live in, as long as they're in the classpath, they'll be found.
This means that you don't even have to change your code for this to
work, just package your properties file within another JAR, preserving
the package hierarchy (folders inside the JAR).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Announcing GWT 1.5.3

2008-10-23 Thread Brian

Hi Sumit,

Thanks for the replies.  Glad to know that about -whitelist, makes
sense.

Basically, I've just gone back to 1.5.2. I can work quite well with
this, being able to hit other ports while still on localhost (or even
better, modifying my hosts file so it looks like I'm coming from
whatever host I want).  I'll probably build against 1.5.3 for a final
build to deploy, but for debugging locally, 1.5.2 is much more
efficient for me.
I haven't looked into the speed issues with -noserver, but I wouldn't
doubt that it's just something on my end causing the slowdown.
I haven't looked into the imagebundle issues, and don't plan to for
the foreseable future -- sorry, just don't have time this month to
debug imagebundles on 1.5.3 with -noserver.

-Brian
P.S.  Just as you have a -whitelist option, perhaps consider a '-
sophole host:port' option to allow this type of debugging locally
without having to go to the -noserver route.

On Oct 22, 9:25 pm, Sumit Chandel [EMAIL PROTECTED] wrote:
 Hi Brian,
 Hosted mode shouldn't be any slower running with the -noserver option as
 opposed to with the embedded Tomcat server. Is it possible that the server
 you're using is somehow carrying a larger load than just responding to your
 GWT application resource and other server-side requests?

 About the issues you're having with the ImageBundle, what problems are you
 experiencing? Are the images not showing up at all, or is hosted mode having
 a hard time locating the resources? In terms of steps you can follow to get
 up and running with hosted mode with the -noserver option, check out the FAQ
 below to make sure you've got everything setup correctly to use hosted mode
 with -noserver.

 Using hosted mode with the -noserver 
 option:http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=goog...

 Hope that helps,
 -Sumit Chandel

 On Wed, Oct 22, 2008 at 7:49 AM, Brian [EMAIL PROTECTED] wrote:

  Yeah, I couldn't figure out a -whitelist that would work either, so am
  now also doing -noserver.
  I also had imagebundle issues, but didn't bother tracking it down, I
  just copied everything over to the directory where my server serves
  content.  Wow -noserver is slow.  Not sure if it's because I've copied
  everything over, or what.  I don't have time yet to track this down.

  On Oct 22, 9:52 am, JY [EMAIL PROTECTED] wrote:
   Same problem here. I had no luck with the whitelist parameter. Used
   the exact same parameters as Brian:- -whitelist ^http[:][/]
   [/]localhost[:]8080[/] . Any suggestions?

   This forced me to use the -noserver option, but created yet another
   problem for me. In the -noserver mode, my ImageBundles do not work in
   hosted. I've started a thread here but no reply so far:-
 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

   On Oct 22, 7:59 am, Brian [EMAIL PROTECTED] wrote:

Yeah, and it was really handy that it did let them through, as IE also
lets the URLs through in web mode (if you've enabled it in IE's
internet options).  Great for testing.

I wasn't able to get a -whitelist option to work with 1.5.3 and hosted
mode. Here's what I'm using:
-whitelist ^http[:][/][/]localhost[:]8080[/]

Any suggestions on the -whitelist to use to get the above posted code
to work in 1.5.3 hosted mode?

Thanks.

On Oct 21, 7:40 pm, Sumit Chandel [EMAIL PROTECTED] wrote:

 Hello again,
 As it turns out, the SOP warning message that hosted mode issues when
  trying
 to make the request tohttp://localhost:8080/v1in1.5.3isan
  improvement
 over 1.5.2.

 The embedded Tomcat server in hosted mode is actually running on port
  ,
 so a request to port 8080 does indeed violate SOP and should not be
  allowed
 to go through. In 1.5.2, it seems that hosted mode was still allowing
 requests on different ports to go through, which is actually
  incorrect
 behaviour that looks to now be fixed in 1.5.3.

 Hope that helps,
 -Sumit Chandel

 On Tue, Oct 21, 2008 at 3:37 PM, Sumit Chandel 
  [EMAIL PROTECTED]wrote:

  Hello everyone,

  Hosted mode does indeed respect SOP so as to closely reflect what
  your
  application would look like running in a deployed environment as
  you
  debug. You can pass in a -whitelist for specific cross-site URLs
  that
  you want to communicate with, but that should only be used for
  quick
  debug cycles to make sure that SOP problems aren't something that
  you
  forget about and get stuck on at the web mode testing or production
  stage.

  That said, Brian's code snippet doesn't seem to suggest to be
  making a
  cross-site request, and so should work. I'm trying to reproduce
  this
  now to figure out what's going on.

  Thanks,
  -Sumit Chandel

  On Oct 21, 8:08 am, Alex Rice [EMAIL PROTECTED] wrote:
   I hope someone can clarify this. I thought Hosted Mode did have
  the
   SOP restriction and I'm 

onTabSelected change the TabBar widget

2008-10-23 Thread ArunDhaJ

Hi All,
On selecting a TabBar how to change the Widget?

Actually I'm having 3 sets of picture to show the TabBar in selected
mode and another 3 sets of picture for TabBar in unselected mode.

Upon loading I'm creating an HTML widget with tab_left, tab_center and
tab_right image and repeating tab_center image till the required
length.

When I select the TabBar I need to create another HTML widget with the
other three sets of images.

Using style sheet we can specify only one image but in my case I need
to replace 3 images.

How to change the HTML widget in selected state to unselected state?


In TabListener's onTabSelected event we can only get the HTML using
tabPanel.getTabBar().getTabHTML(tabIndex));

is there any way to set the HTML??


Thanks in Advance !
-ArunDhaJ
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Possible to get an element's propertys from a container iframe?

2008-10-23 Thread darkflame

If my GWT app is in a container iframe, is it possible to get
propertys of elements from outside that frame?

I tried a simple;

 DOM.getElementById(testid).getInnerText())

But the app couldnt find it.

Is there any way for the GWT app to look outside its container? Or
to even tell if it has one?

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



Re: RPC Image

2008-10-23 Thread Jim Freeze

Hi

On Thu, Oct 23, 2008 at 9:54 AM, Jason Essington
[EMAIL PROTECTED] wrote:

 Although you could certainly return the bytes of an image via RPC,
 once you have them on the client side, there is no way to actually
 turn those bytes into an image (or even save those bytes to the file
 system). That is a limitation of the XMLHTTP request and javascript,
 not a limitation made by GWT.

Jason, once you have the data, can't you use it to embed the image
directly into the DOM via base64 encoding?

img src=data:image/gif;base64,R0lGODlhUAAPAKIAAA





-- 
Jim Freeze

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



Re: GWT 1.5.3 zip files are corrupt for windows and linux

2008-10-23 Thread Jason Essington

I've seen that happen, the download stopped before you received the  
whole file. if the file on your filesystem is smaller than what Google  
claims the file should be, then you don't have a complete archive, and  
no amount of repairing is going to help you unzip it.

Just try downloading it again.

-jason

On Oct 21, 2008, at 10:20 PM, nocturnal wrote:


 Hello All

 I downloaded the GWT 1.5.3 release, but the zip file extraction fails
 saying the end of the file is corrupt.
 I also tried repairing the archive, but it didn't help.

 Linux tar files are also corrupt.
 Is there someone else facing 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RPC Image

2008-10-23 Thread Jason Essington

That's one solution, with the following caveats:

1) it's fine if you don't plan to support IE
2) base64 adds 33% to the actual bytecount
3) URIs are limited in size (different platforms tend to have  
different limits)
4) Data URIs don't benefit from browser caching.

-jason

On Oct 23, 2008, at 9:08 AM, Jim Freeze wrote:


 Hi

 On Thu, Oct 23, 2008 at 9:54 AM, Jason Essington
 [EMAIL PROTECTED] wrote:

 Although you could certainly return the bytes of an image via RPC,
 once you have them on the client side, there is no way to actually
 turn those bytes into an image (or even save those bytes to the file
 system). That is a limitation of the XMLHTTP request and javascript,
 not a limitation made by GWT.

 Jason, once you have the data, can't you use it to embed the image
 directly into the DOM via base64 encoding?

 img src=data:image/gif;base64,R0lGODlhUAAPAKIAAA





 -- 
 Jim Freeze

 


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



Re: Getting User Credential from IE

2008-10-23 Thread Chad

Julian,

I did that here this way. I used jcifs (1.2.13 to be exact). You can
find it at this website:

http://jcifs.samba.org/

You'll need to add a filter to your web.xml file to specify your
domain controller. An example (the file I created) can be seen here:

http://www.milamade.com/code/gwt/web.xml.htm

You will have to change the ip address of the domain controller to
suit your needs. You will need to include the jcifs jar file in your
war when you deploy. To access the network alias, I added this method
to my server implementation class:

pre
package com.tuesdaymorning.datawarehouse.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class RPCsuperImpl extends RemoteServiceServlet {
private static final long serialVersionUID = 200611201219L;

protected String domain = TM\\;

public String getUserName() {
String user = getThreadLocalRequest().getRemoteUser();

if (user == null) {
return default;
}

if (!user.toLowerCase().startsWith(domain.toLowerCase())) {
user = domain + user;
}

return user;
}
}
/pre

One thing to note, if you are using IE, you will be signed in
automatically as IE does this invisibly. If you are using any other
browser, you will prompted with a browser dialog asking for your
username and password, IIRC.

HTH,
Chad

On Oct 22, 4:15 pm, Julian [EMAIL PROTECTED] wrote:
 I realized that when we use our corporate Seibel page using IE, it
 knows the Logon User Name.  I like IE to pass GWT the User Name that
 is already authenticated into Windows.

 I'm new to front end programming, can someone give me some concept
 that I need to go and figure this out.

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



TriggerAction

2008-10-23 Thread Ton Carvalho
Hello, everyone, I have a problem here and I believe that the class
TriggerAction help me, but I managed to use it, someone can help me have
some example?

thanks.

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



Re: Listener for moving split panel?

2008-10-23 Thread gregor

Hi Shaselai,

Assuming your goal is to fix the size of the AbsolutePanel, you could
try replacing HorizontalSplitPanel with HorizontalPanel. Then:

absolutePanel.setSize(x_px, y_px); // you could derive these
values from Window.getClientWidth() etc
// add your VSP and AP to the HP
horizontalPanel.setCellWidth(absolutePanel,
absolutePanel.getOffsetwidth());
horizontalPanel.setCellHeight(absolutePanel,
absolutePanel.getOffsetheight();
horizontalPanel.setCellWidth(verticalSplitPanel,100%);

You may find you need to size the height of the HorizontalPanel itself
explicitly to make this work properly - I don't know because I've
never used an AP in this way before.

To create a gap between the VSP and the AP, the simplest way is
horizontalPanel.setspacing(x_px). Alternatively introduce a third
cell (e.g. a SimplePanel), set it's height to 100% and it's width to
how many pixels you want, and decorate it how you wish.

So far this will fix the size of the AbsolutePanel and leave the
VerticalSplitPanel to fill up any remaining width. I suspect this may
not be what you want, perhaps because the VSP contains lists of items
you want to drag into the AP, and you would rather the VSP had a fixed
width, and the AP fill out the remaining client area. You could
achieve this by getting hold of Window.getClientWidth() and setting
the width of the AP relative to that. This would have the effect of
fixing the width of the VSP. However you will still have a problem if
the user resizes their browser.

To get round this I would suggest looking at a couple of
possibilities:

1. HorizontalSplitPanel is (or was, it's recently changed) difficult
to extend, but HorizontalPanel is not. Therefore you could hook it up
to a WindowResizeListener (or have it implement WindowResizeListener
itself) from which you could resize the AP and it's children. Or you
could use a Composite containing the HP to do the same thing The
javadoc for AP puts it like this:

An absolute panel positions all of its children absolutely, allowing
them to overlap.Note that this panel will not automatically resize
itself to allow enough room for its absolutely-positioned children. It
must be explicitly sized in order to make room for them.Once a widget
has been added to an absolute panel, the panel effectively owns the
positioning of the widget. Any existing positioning attributes on the
widget may be modified by the panel.

So I think the problem with an AP in an HSP is that AP does not
respond to resizing of its parent, but clearly you can resize it
explicitly youself. Of course the width of the VSP will still be fixed
and you may not really want that, you really want an HSP

2. The problem with HSP is that it does not fire an event when the
splitter is moved, and I recall that a year ago tried to extend it to
add such an event, but found I couldn't (without copying the code
itself) because the critical methods where private (i.e. access to the
splitter element was private). I see there is now a protected method
Element getSplitElement() so you could extend HorizontalSplitPanel to
implement the MouseListener interface (or override
onBrowserEvent(Event event)). Because you can now get hold of the
splitter element  (you couldn't before) you can check if a mouse down
event occurs on the splitter and pick up it's new location on mouse up
in the same way that HSP does internally. Basically crib the HSP code
and make sure you don't consume the event, i.e. pass it on to the
underlying HSP superclass, and use a DeferredCommand to delay resizing
your AP until HSP has finished it's own work. You should be able to
read the new splitter positions to work out your resizing numbers for
the AP.

Note the splitter position does not change if the browser window
itself is resized, so if you hook up your extended HSP (per option 2)
to a WindowResizeListener you can again access the splitter position
to calculate redraw sizes of the AP in the event the use changes the
browser window after the HSP has resized itself. Again you probably
have to use a DeferredCommand so you don't do it until the HSP has
itself finished.

regards
gregor

On Oct 22, 4:42 pm, shaselai [EMAIL PROTECTED] wrote:
 How do I do that? Right now the setup is like:
 Class DragGUI extends VerticalPanel{
 HorizontalSplitPane.addRightWidget(AbsolutePanel);
 VerticalSplitPane.addTopWidget(topVerticalPanel);
 VerticalSplitPane.addBottomWidget(bottomVerticalPanel);
 HorizontalSplitPane.addLeftWidget(VerticalSplitPane);

 }

 On Oct 21, 12:47 pm, gregor [EMAIL PROTECTED] wrote:

  Don't think so. Could you use a plain HorizontalPanel with maybe three
  cells if you want some decoration to saplit left and right?

  On Oct 21, 3:29 pm, shaselai [EMAIL PROTECTED] wrote:

   gregor,
   is there a way to force the splitpane not draggable? i didnt really
   see it in the api and if there is a way to do that it would be great
   too!
   thanks!

   On Oct 20, 3:19 pm, gregor [EMAIL PROTECTED] wrote:

Hi Shaselai,

I 

Unable to run a separate module in hosted mode on oc4j

2008-10-23 Thread Anti

Hello,

Thanks for your help.

I have been working on my application for a while deploying directly
on oc4j, that was a happy world, but today I had to run the
application in hosted mode and got the next exception:

[ERROR] Unable to find type
'org.eagle.app.docUpload.client.DocUpload'

(you can see below that class defined as entry point)

DocUpload is a file upload tool with its separate set of classes in
the same project, it has its own gwt.xml file also:

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

!-- Specify the app entry point class.   --
entry-point class='org.eagle.app.docUpload.client.DocUpload'/
stylesheet src=KitchenSink.css/
stylesheet src=eagle.css/
servlet path='/services/docUploadService'
class='org.eagle.app.docUpload.server.DocUploadServiceImpl'/
servlet path='/services/fileUploadService'
class='org.eagle.app.docUpload.server.FileUploadServlet'/
servlet path='/services/imageService'
class='org.eagle.app.docUpload.server.DocumentFetchServlet'/

/module

I repeat, the exception is only thrown in hosted mode, deploying on
oc4j everything is perfect. I am puzzled.

Please advise.

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



Invocation Exception on Firefox

2008-10-23 Thread Lane

I am getting the following error:

com.google.gwt.user.client.rpc.InvocationException: Unable to initiate
the asynchronous service invocation -- check the network connection.

when trying to connect to my server from Firefox. It works fine when I
connect from IE. My code is uncontroversial, I think:

  service = (ServiceAsync) GWT.create(Service.class);
  ServiceDefTarget endpoint = (ServiceDefTarget) service;
  endpoint.setServiceEntryPoint(http://mydomain.com;);
  service.(do stuff)

This used to work and now it doesn't, but, again, only on Firefox.

Any ideas?

Lane

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



hibernate4gwt problem

2008-10-23 Thread Akhil

Hi

I am using hibernate4gwt to avoid serialization problems of hibernate
generated sets and other collections .

My code seems to work properly in hosted mode but when running on
tomact i am getting the following exception when passing objects from
server to client side

com.google.gwt.user.client.rpc.SerializationException: Type
'com.bashpole.vo.Address_h4gwt15' 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.
at
com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize(StandardSerializationPolicy.java:
83)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
581)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
129)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
520)
at
com.google.gwt.user.server.rpc.RPCCopy_GWT15.encodeResponse(RPCCopy_GWT15.java:
597)
at
com.google.gwt.user.server.rpc.RPCCopy_GWT15.encodeResponseForSuccess(RPCCopy_GWT15.java:
429)
at
com.google.gwt.user.server.rpc.RPCCopy.encodeResponseForSuccess(RPCCopy.java:
156)
at
net.sf.hibernate4gwt.gwt.HibernateRemoteService.processCall(HibernateRemoteService.java:
174)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:
86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
174)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
174)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
874)
at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:
665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:
528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:
81)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)


I am using GWT 1.5 and using the dynamic proxy mode of hibernate4gwt .
Everything seems to work as expected in hosted mode.
I am using GWT.create for all the Value objects on Client side . and
on server side i am using setBeanManager for all RPC servlets as
described in hibernate4gwt documentation


Thanks
Akhil




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



How to pass Session in two different GWT application

2008-10-23 Thread lalit

Hi,

I have three GWT application[ A, B and C] . All these three
application having login screen. My requirment is that if User already
logged in Application 'A' then he should be able to move on
application B and C without making a login for B and C.

Suppose after login for A, A application having two click buttton to
move on B or C.

Please could you help to find out the solution.




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



Re: Can't get RPC example working (using GWT 1.5 and kitchenSink)

2008-10-23 Thread 전준희

I Love you guys too, as soon as got the exact same problem, the first
search result on Google was this thread, which solved the problem!@

On Sep 12, 9:49 am, vezir [EMAIL PROTECTED] wrote:
 I just luv u guyz thank u for the solution

 On Aug 29, 1:11 am, EJ Blom [EMAIL PROTECTED] wrote:

  Thanks! Removing theoverrideannotations did the trick (damn, i knew
  it was going to be easy).

  EJ

  On Aug 28, 10:53 pm, Jason Essington [EMAIL PROTECTED]
  wrote:

   the @overrideannotations need to go away
   and the onSuccess should be

   public void onSuccess(String result) rather than Object since you
   defined the callback asAsyncCallbackString

   see if those two things don't get you a little closer.

   -jason

   On Aug 28, 2008, at 1:52 PM, EJ Blom wrote:

Hi all,

It's a bit embarrassing, but the simplest RPC example (from
   http://www.thescreencast.com/2007/08/gwt-rpc-in-eclipse.html) will not
work in my environment. I created a new Eclipse Project and merged the
KitchenSink example in my own code (I really like the layout).
Everything worked fine, so I decided to move on to RPC.
All examples are copied from the screencast:

Service interface:

package client;

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

public interface MyService extends RemoteService{

   public String greeting(String helloTo);

}

Service implementation @ server side:

package server;

import client.MyService;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class MyServiceImpl extends RemoteServiceServlet implements
MyService {

  [EMAIL PROTECTED]
   public String greeting(String helloTo) {
           return Hello +helloTo+ from
+getServletContext().getServerInfo();
   }

}

My automanager.gwt.xml:

module

     inherits name='com.google.gwt.user.User'/
     entry-point class='client.automanager'/
     stylesheet src='automanager.css' /
     servlet path=/greeting class=server.MyServiceImpl /

/module

And the asynchronous interface:

package client;

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

public interface MyServiceAsync {

   public void greeting(String helloTo,AsyncCallbackString callback);

}

In automanager.java I added the following method which was linked to a
button click:

             public void remoteGreetingLabel(final Label label){
                     MyServiceAsync greetingService = (MyServiceAsync)
GWT.create(MyService.class);
                     ServiceDefTarget endpoint = 
(ServiceDefTarget)greetingService;
                     String moduleRelativeURL = 
GWT.getModuleBaseURL()+greeting;
                     endpoint.setServiceEntryPoint(moduleRelativeURL);

                     AsyncCallbackcallback = newAsyncCallback(){
                          [EMAIL PROTECTED]
                           public void onFailure(Throwable caught) {
                                   System.out.println(Error:  + 
caught.getMessage());
                           }

                          [EMAIL PROTECTED]
                           public void onSuccess(Object result) {
                                   label.setText((String)result);
                           }
                     };
                     greetingService.greeting(GWT-client, callback);
             }

By commenting theAsyncCallbackobject, everything runs fine (ofcourse
without the whole RPC thing), by uncommenting it I get the following
errors:

[TRACE] Compiling Java source files in module 'automanager'
[TRACE] Removing units with errors
[ERROR] Errors in 'file:/C:/workspace/automanager/src/client/
automanager.java'
[ERROR] Line 99: The method onFailure(Throwable) of type new
   AsyncCallback(){}mustoverridea superclass method
[ERROR] Line 105: The method onSuccess(Object) of type new
   AsyncCallback(){}mustoverridea superclass method
[TRACE] Finding entry point classes
[ERROR] Unable to find type 'client.automanager'
[ERROR] Hint: Previous compiler errors may have made this type
unavailable
[ERROR] Failure to load module 'automanager'

Anyone?

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



Getting the table from the FieldSet

2008-10-23 Thread Gwt ongole

Hi I am tring to get the Widget from the Field set.
Is it possible for getting Widget From the field set

i add  the table to the field set
like
FieldSet f=new FieldSet()
f.add ( Flextable object)

But  i did n't get the table from the filed set

is it possible to get the flex table or any Widget from field set ?


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



Problem playing swt file in Panel or Window with IE 7

2008-10-23 Thread victor

Hello!!! I am using Window widget to showing swt, it is work in all
browsers except worst IE7. How I can solve a problem?
My example : setHtml(object data='manual/GoogleSearch.swf'
type='application/x-shockwave-flash' width='100%' height='100%' );

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



Re: PureMVC

2008-10-23 Thread yunhui song
Hi

   I have used Guice and Gin to implements MVC framework(like backend spring
framework). By this way view(ui), event Listener and data
access(xmlHttpReqeust wrapped by REST-GWT) can be seperated by three layers.

   Gin module used to initialize and couple all the instance used in the GWT
module. It's a typicall Ioc container. I found it is rocking by this way in
my project.

Sammi

On Thu, Oct 23, 2008 at 8:06 AM, Flemming Boller
[EMAIL PROTECTED]wrote:

 Hi
 We have done it like the mediator has a reference to the view (which
 implements a gwt- neutral interface).

 The View has a hard reference the mediator.

 We want the mediator to be unaware of GWT because that means we are able
 to perform many junit tests of the gui
 without using the GETTestCasewhich is a no-go Testcase :-)


 Please let me hear how you progress and the experiences you have with
 puremvc

 /FLeming


 On Thu, Oct 23, 2008 at 2:11 PM, marcelo melo [EMAIL PROTECTED]wrote:


 Totally agree with you... Simplicity is key most of the times (at
 least it should :) ).

 I have one question that is really annoying me. Having used it
 (puremv) with Flex, it is easy to fire an event at the View and
 associate it with a method at the Mediator. But, how to deal with it
 on GWT? I am adding the Mediator as the event listener of the View (by
 making it implement the relevant View listeners - ClickListener,
 etc.), but I'm not quite sure if it's the best way to do it...

 Any ideas?

 Thanks!

 On Thu, Oct 23, 2008 at 9:53 AM, Flemming Boller
 [EMAIL PROTECTED] wrote:
  Yes I am.  I think is it rather nice little MVC implementation, which
 has
  made it more easy for us to make
  components talk to each other in a loosely coupled way.
 
  Minus is however, that it easy also to create a spider web of
 notifications
  that is hard to overview.
 
  But common sense and keep it simple should be used here :-)
 
 
  /Flemming
 
 
 
 
  On Thu, Oct 23, 2008 at 1:48 PM, marcelo melo [EMAIL PROTECTED]
  wrote:
 
  Hi, is anyone using PureMVC for Java / GWT?
 
  Thanks
 
 
 
 
  
 




 



-- 
Best Regards,
Sammi

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



Re: RPC fails under Tomcat

2008-10-23 Thread medgey

This is not related to GWT, but you can debug tomcat in eclipse using
standard java remote debugging.

On Oct 22, 11:57 pm, Barry [EMAIL PROTECTED] wrote:
 Hi ...

 I have an RPC that is working fine in host mode but fails in web mode
 and I don't know what to do to troubleshoot it. On the client, I get a
 message box that says Failure:
 com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
 the server; see server log for details.

 A few questions:

 1) What log would it be referring to??

 2) How does one debug server-side code running under Tomcat?? Is
 Eclipse any help here??

 3) In fact, there's something failing in the server-side code being
 called by the RPC. If I comment out the guts of this function, I get a
 clean return, but no work done. I conclude that some horrible
 exception is occurring in the server-side code ... something that
 evades even an Exception try/catch handler. The problem appears to be
 in a CXF call to a web service.

 Could there be something terribly abusive inflicted on me from CXF??

 Thanks for the help !

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



Re: DialogBox IE6 DragDrop Problem

2008-10-23 Thread Thomas Broyer


On 8 oct, 16:29, Schimki86 [EMAIL PROTECTED] wrote:
 It is possible to Drag  Drop the DialogBox over its caption. In IE6
 it is not able to drag the dialog correctly: only when the mouse is
 over the caption-text it works... any idea? Thanks!

Wait for GWT 1.6 (or ask for a backport or r3673 to releases/1.5):
http://code.google.com/p/google-web-toolkit/issues/detail?id=2822

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



Re: RequestBuilder + POST + multipart/form-data

2008-10-23 Thread Alex Rice

(sorry if this double posts- I think I messed up my last reply)

On Oct 23, 4:40 am, Thomas Broyer [EMAIL PROTECTED] wrote:
 The best advice I could give you is to use application/x-www-form-
 urlencoded with your Alfresco Web Script ;-)

Thomas, thanks for your insights into Alfresco, and pointing out the
problems with my code!  I am trying x-www-form-urlencoded data now
with Alfresco 2.1.6E - Tomcat, but can't get it to work- no data
appears in args and argsM. Is this how you are doing it? This seems
like it would be easier than messing with multipart , for sure.

String jsonUrlEncodedStr = json=+
URL.encodeComponent(json.toString());
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url);
rb.setRequestData(jsonUrlEncodedStr);
rb.setHeader(Content-Type, application/x-www-form-urlencoded
data);
rb.setCallback(new RequestCallback()...);
rb.send();

BTW when I append guest=true to my url, then that appears in args and
argM, which I actually need do for both GET and POST submissions to my
webscripts.

Thanks again

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



IndexOutOfBoundsException RPC Exception

2008-10-23 Thread John

Hi,

I have a web project that is now being built using GWT 1.5.3.   The 
project has been in development for a few months now and just this 
morning started throwing this exception - though I don't recall any 
changes that were introduced when the exception started appearing:

13:17:06,752 ERROR [[/admin]] Exception while dispatching incoming RPC call
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:546)
at java.util.ArrayList.get(ArrayList.java:321)
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.extract(ServerSerializationStreamReader.java:617)
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readInt(ServerSerializationStreamReader.java:432)
at 
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.prepareToRead(AbstractSerializationStreamReader.java:38)
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:383)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234)
at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:163)
at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:613)

The section of code where this is occurring is in the onModuleLoad of 
the app, when I add a Composite-derived object to a VerticalPanel.  I 
know it's this spot as I've added Window.alerts to trace it.

I'm just curious if anyone has any suggestions on how I can troubleshoot 
this?  I've tried rebuilding, redeploying and clearing the browser cache.

Just for completeness, here is the code I am using that throws the 
exception:

private LoginComposite login = new LoginComposite();
private HorizontalPanel page = new HorizontalPanel();
private VerticalPanel view = new VerticalPanel();

public void onModuleLoad() {
// Do some set up stuff...
page.setWidth(100%);
page.setSpacing(10);
page.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);

view.setWidth(100%);
view.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);

view.add(login);  // Exception is thrown here...

// view panel is added to a FlexTable inside createLayout()
page.add(createLayout());
RootPanel.get().add(page);
}

I'm certainly not suggesting that the VerticalPanel object is buggy, but 
would like to know what types of errors cause this exception.  Thanks 
for any, and all, suggestions.

John

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



Hibernate annotations

2008-10-23 Thread ET

need some clarifications. To use hibernate annotations do we have to
use ejb3 entity beans? what is the difference anyway?

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



Re: RequestBuilder + POST + multipart/form-data

2008-10-23 Thread Alex Rice

On Oct 23, 4:40 am, Thomas Broyer [EMAIL PROTECTED] wrote:

 The best advice I could give you is to use application/x-www-form-
 urlencoded with your Alfresco Web Script ;-)

Thomas, thanks for pointing out my code errors, and your valuable
insights about Alfresco! I would like to use x-www-form-urlencoded
data, and not muck about with multipart encoding, but can't seem to
get it to work. Running Alfresco 2.1.6 w/ Tomcat. I think
RequestBuilder.GET is working fine, POST is the problem.

Is this how you are doing it? In GWT:

RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url);
String jsonUrlEncodedStr = json=+
URL.encodeComponent(json.toString());
rb.setRequestData(jsonUrlEncodedStr);
rb.setHeader(Content-Type, application/x-www-form-urlencoded
data);
rb.setCallback(new RequestCallback()... );
rb.send();

In Alfresco web script:

var sResult = ;
for (arg in args)
sResult += arg + = + args[arg] + br/;

for (arg in argsM)
{
  for each (val in argsM[arg])
 sResult += arg + = + val + br/;
}
model.response = sResult;

What I get back from Alfresco is empty, unless I append guest=true to
my URL, which is actually needed for both GET and POST because I am
running web scripts with guest authentication. In that case I do see
guest=true in args and argsM.


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



Re: How to pass Session in two different GWT application

2008-10-23 Thread [EMAIL PROTECTED]

We've had similar design issues in the past.  The easiest and stablest
(sp?) solution was to create a session concept in your database and do
everything there.  We were unable to make the session object on
various web containers behave consistentlybut your mileage may
vary.

On Oct 23, 10:03 am, lalit [EMAIL PROTECTED] wrote:
 Hi,

 I have three GWT application[ A, B and C] . All these three
 application having login screen. My requirment is that if User already
 logged in Application 'A' then he should be able to move on
 application B and C without making a login for B and C.

 Suppose after login for A, A application having two click buttton to
 move on B or C.

 Please could you help to find out the solution.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: History doesn't works when modifying iframes by id

2008-10-23 Thread Sumit Chandel
Hi Davsket,
How exactly is history failing for you when making references to the
elements below? Is it only that the banners represented by the elements
you're retrieving don't update appropriately, or does history become
completely nonfunctional?

I would imagine it is the former, in which case you would need to re-render
the elements rather than just change their src attribute to get them to
update on the page. For example, something you could try is to remove the
element and then re-add it to the page to have it re-render with the new
src attribute appropriately set using the DOM.removeChild() /
DOM.insertChild() methods.

However, if the banner elements are actually images, have you considered
using a regular Image widget (or using an ImageBundle if appropriate)? That
could make it easier to re-render the banner whenever the specified history
event occurs.

Hope that helps,
-Sumit Chandel

On Tue, Oct 21, 2008 at 10:04 AM, Davsket [EMAIL PROTECTED] wrote:


 Hi, I have a problem with History and I have found that it starts to
 fail when I run some code like this:

 /**onLoad()**/
 Document doc = Document.get();
 public_top = doc.getElementById(public_banner_top);
 public_right = doc.getElementById(public_banner_right);

 /**onTabChange - Usually after a history event**/
 public_right.setAttribute(src, srv/banners/get?banner=right);
 public_top.setAttribute(src, srv/banners/get?banner=top);

 I thought the problem was because the History uses iframes, but I call
 this elements by their id, so it shouldn't be.
 If I remove this elements everything works fine, theres another way to
 do this? I only need to refresh some banners (in iframes) after a tab
 change.

 Thanks.
 


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



Re: gwt deployment

2008-10-23 Thread Sumit Chandel
Hi Arnaud,
The link below should be exactly what you're looking for.

Example Deployment with Tomcat:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideRPCDeployment

Hope that helps,
-Sumit Chandel

On Tue, Oct 21, 2008 at 12:28 PM, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:


 Hello,
 i have created a gwt project with projectCreator.So i want to deploy
 it to tomcat.Can you help for this  or give a web site link which
 explain  hwo deploy it?
 Arnaud
 


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



text file in frame does not respect UTF-8 encoding IE6 and IE7 issue

2008-10-23 Thread Salman Hemani

I have tried searching for the solution to this problem and I am not
having any luck.

Problem: I have a UTF-8 text file with chinese characters and it is
loaded in the Frame object which renders correctly in the GWT browser
as well as IE 7. But IE6 and Firefox do not display the characters
correctly. It just seems like gibberish.

Any ideas how to solve this issue?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT through HTML/DHTML

2008-10-23 Thread DataSurfer

a href=http://some-domain.com/YourGWTApp/; target=_blankLink
Text/a

On Oct 5, 2:17 am, Sachin [EMAIL PROTECTED] wrote:
 Hi,

 How can I access Application created through GWT throught HTML link ?
 I want to create a pure HTML link suppose Window. Then after
 clicking on this link I want to open the Window created through GWT.
 How can I achieve this functionality ?

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



Re: Hibernate annotations

2008-10-23 Thread noon

Not a GWT question but : Hibernate use JPA annotations for most of its
mapping description, and some more specific annotations for non-
standard operations (such as delete-orphan casacade option).

Regards
Bruno

On 23 oct, 20:32, ET [EMAIL PROTECTED] wrote:
 need some clarifications. To use hibernate annotations do we have to
 use ejb3 entity beans? what is the difference anyway?

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



keyboard short cut problem..

2008-10-23 Thread jhpark

Sorry I can't write english.

I want button navigation..

example)
button1 button2 button3 button4

key press :
ctrl + n
 - button1
ctrl + n
 - button2
ctrl + n
 - button3
ctrl + n
 - button4

ctrl+p
 - button3
ctrl+p
 - button2
ctrl+p
 - button1

I want like google mail short cut..



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



Re: Problem with gwt-maps-1.0.0RC1 and InfoWindow

2008-10-23 Thread Jim Alateras

Just to add some further information.

I am using GWT 1.5.2 on the mac

On Oct 24, 12:20 pm, Jim Alateras [EMAIL PROTECTED] wrote:
 HI,

 I am trying to open the info window to a marker in my GET application
 using the code below. When I click on it the code in 'onClick' gets
 executed (i can it in the debugger) but the info window is not
 displayed. Any ideas why this maybe the case?

                 mapWidget.setCenter(latlng, 16);

                 final Marker marker = new Marker(latlng);
                 marker.addMarkerClickHandler(new MarkerClickHandler() {
                         public void onClick(MarkerClickEvent event) {
                                 final InfoWindow info = 
 mapWidget.getInfoWindow();
                                 info.open(event.getSender(), new 
 InfoWindowContent(address));
                         }

                 });

                 mapWidget.addOverlay(marker);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



MapWidget only partially rendering

2008-10-23 Thread Jim Alateras

I am only getting a part of the map widget rendering when I run my gwt
application. This happens both in hosted and non-hosted mode. I need
to resize the window before i get a complete map.

Here is my code

mapWidget = new MapWidget(initialPoint, zoomLevel);
mapWidget.setSize(width, height);
initWidget(mapWidget);
mapWidget.addControl(new SmallMapControl());
mapWidget.addControl(new MapTypeControl());

I am using GWT 1.5.2 on a mac



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



Re: Problem with gwt-maps-1.0.0RC1 and InfoWindow

2008-10-23 Thread Eric Ayers
0) Try replacing event.getSender() with 'marker'.  Its already marked final
(or did you try that already?)

1) The 1.0.0 RC1 release was plagued with a few issues related to
InfoWindows and  overlays returned in the marker click handler.  All the
fixes are now committed to the svn/releases/maps/1.0 branch in the source
code repository
2) There are some issues with setting the maps version to 2.x I've
encountered recently.  You might try setting your Maps API version (the
v=2.x part of the url used to load the Maps API in your module XML file)
down to a specific version, like v=2.118

On Thu, Oct 23, 2008 at 9:29 PM, Jim Alateras [EMAIL PROTECTED] wrote:


 Just to add some further information.

 I am using GWT 1.5.2 on the mac

 On Oct 24, 12:20 pm, Jim Alateras [EMAIL PROTECTED] wrote:
  HI,
 
  I am trying to open the info window to a marker in my GET application
  using the code below. When I click on it the code in 'onClick' gets
  executed (i can it in the debugger) but the info window is not
  displayed. Any ideas why this maybe the case?
 
  mapWidget.setCenter(latlng, 16);
 
  final Marker marker = new Marker(latlng);
  marker.addMarkerClickHandler(new MarkerClickHandler() {
  public void onClick(MarkerClickEvent event) {
  final InfoWindow info =
 mapWidget.getInfoWindow();
  info.open(event.getSender(), new
 InfoWindowContent(address));
  }
 
  });
 
  mapWidget.addOverlay(marker);
 



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

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



Re: Hibernate annotations

2008-10-23 Thread Au Lai Seong

 ejb3 entity bean  might be confuse. since ejb3 came out, the entity
layer already not tight with ejb package. It come out a new naming
which is call JPA. When you use hibernate annotation, it is sure you
need to use hibernate as the persistence layer. Hibernate annotation
is the extension of JPA annotation. Thus, only can understand by
Hibernate. If you only use JPA annotation, then you can use hibernate
or toplink to be your persistence layer.

Jimmy6
http://code.google.com/p/jimmy6/

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



Re: Problem with gwt-maps-1.0.0RC1 and InfoWindow

2008-10-23 Thread Jim Alateras

Eric,

Thanks for the response

0) I have tried both using marker and event.getSender with the same
result

1) I have checked out the specified branch, svn/releases/maps/1.0. Is
there a guide on building the jar?

2) I have changed to 2.118 and now i get the map type and zoom
controls showing. Simple using 2.X would not show the controls.



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



Re: MapWidget only partially rendering

2008-10-23 Thread Jim Alateras

Eric,

Tried using mapWidget.checkResize but unfortunately i still need to
resize the actual window to get to render completely.


On Oct 24, 1:02 pm, Eric Ayers [EMAIL PROTECTED] wrote:
 Stupid maps trick #183: try mapWidget.checkResize() after filling out your
 map.  Sometimes, changing the type of panel the map is contained in also
 makes a difference (I usually use a VerticalPanel)



 On Thu, Oct 23, 2008 at 9:33 PM, Jim Alateras [EMAIL PROTECTED] wrote:

  I am only getting a part of the map widget rendering when I run my gwt
  application. This happens both in hosted and non-hosted mode. I need
  to resize the window before i get a complete map.

  Here is my code

                 mapWidget = new MapWidget(initialPoint, zoomLevel);
                 mapWidget.setSize(width, height);
                 initWidget(mapWidget);
                 mapWidget.addControl(new SmallMapControl());
                 mapWidget.addControl(new MapTypeControl());

  I am using GWT 1.5.2 on a mac

 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: MapWidget only partially rendering

2008-10-23 Thread Eric Ayers
Stupid maps trick #183: try mapWidget.checkResize() after filling out your
map.  Sometimes, changing the type of panel the map is contained in also
makes a difference (I usually use a VerticalPanel)

On Thu, Oct 23, 2008 at 9:33 PM, Jim Alateras [EMAIL PROTECTED] wrote:


 I am only getting a part of the map widget rendering when I run my gwt
 application. This happens both in hosted and non-hosted mode. I need
 to resize the window before i get a complete map.

 Here is my code

mapWidget = new MapWidget(initialPoint, zoomLevel);
mapWidget.setSize(width, height);
initWidget(mapWidget);
mapWidget.addControl(new SmallMapControl());
mapWidget.addControl(new MapTypeControl());

 I am using GWT 1.5.2 on a mac



 



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

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



Passing parameters from JSP to GWT Entry Point

2008-10-23 Thread Sumved

Hi All,

I am wondering whether we can pass parameter from JSP to GWT Entry
point.
I hope it is there because in real scenario probably no-body will use
only GWT.

Like, I have integrated Struts with GWT.

Now, My question is, Can we pass a value from JSP to GWT Entry point?

Thanks in advance.

Regards,
Sumved Shami

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



Re: Gears 0.4 features in GWT Google API Library

2008-10-23 Thread Mark Renouf

Ok. I went ahead and implemented the Geolocation stuff too, so this
brings gwt-gears up to speed with the latest gears 0.4 release.

I filled out a CLA, I'm not sure how/when I know that it was accepted.

There are a few things regarding design that I'm wondering. Whats the
preferred solution for handling optional arguments and parameter
objects. For optional arguments I created overloads for each
additional parameter...

  public native boolean getPermission()
  public native boolean getPermission(String siteName)
  public native boolean getPermission(String siteName, String
imageUrl)
  public native boolean getPermission(String siteName, String
imageUrl, String extraMessage)

For parameter objects I created a builder which extends
JavaScriptObject.

  geo.getLocation(new SuccessCallback() {  },
PositionOptions.create().setHighAccuracy(true).setGearsRequestAddress(true));

Any tips on better ways to map the JS APIs into Java-land?

On Oct 22, 4:06 pm, Mark  Renouf [EMAIL PROTECTED] wrote:
  I think the HttpRequest class has been there, but we didn't include it
  because we don't have official GWT support in workers yet and there is a
  comprable RequestBuilder class in GWT proper to use in the Main page.  It
  wouldn't hurt to add it, though!

 Ahh. That makes sense.

 But, unless I'm mistaken, only the Gears HttpRequest supports the Blob
 API... that's why I jumped into this. I have a working example now
 too. I'll take a look at the procedures for submission and provide
 what I have.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Invocation Exception on Firefox

2008-10-23 Thread Lane



On Oct 23, 11:58 am, Lane [EMAIL PROTECTED] wrote:
 I am getting the following error:

 com.google.gwt.user.client.rpc.InvocationException: Unable to initiate
 the asynchronous service invocation -- check the network connection.

 when trying to connect to my server from Firefox. It works fine when I
 connect from IE. My code is uncontroversial, I think:

   service = (ServiceAsync) GWT.create(Service.class);
   ServiceDefTarget endpoint = (ServiceDefTarget) service;
   endpoint.setServiceEntryPoint(http://mydomain.com;);
   service.(do stuff)

 This used to work and now it doesn't, but, again, only on Firefox.

 Any ideas?

I found the problem. I had the HTML file that rendered the GUI in a
different domain than the servlet. Apparently, on IE that works fine,
but not on Firefox or Chrome. Easy enough to fix.

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



Re: GWTTestSuite - ClassCastException on executing test suite

2008-10-23 Thread sean

Hi Jan,

I also receive the No source code is available for type
com.google.gwt.junit.tools.GWTTestSuite; did you forget to inherit a
required module?  message. I think this must be something GWT just
left out. One would think you would find the module for GWTTestSuite,
but it does not exist. However, the functionality still works for me
(all test classes get run). So the errors are thrown but don't seem to
matter. Kind of annoying.

On Oct 14, 4:44 am, Jan [EMAIL PROTECTED] wrote:
 Hello,

 I created a module containing GWTTestCases as described here (I am
 using GWT 1.5.2 on Windows XP):

 http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=goog...

 and here

 http://60-248-16-66.hinet-ip.hinet.net/GWT/doc/html/com.google.gwt.do...

 I have one GWTTestCase class and one GWTTestSuite class. Here is the
 code:

 8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 package test.client;

 import junit.framework.Test;
 import junit.framework.TestSuite;

 import com.google.gwt.junit.tools.GWTTestSuite;

 public class TestTestSuite extends GWTTestSuite {

         public static Test suite() {
                 TestSuite suite = new TestSuite(Tests);
                 suite.addTestSuite(TestTest.class);
                 return suite;
         }

 }

 ---

 package test.client;

 import com.google.gwt.junit.client.GWTTestCase;

 public class TestTest extends GWTTestCase {

         @Override
         public String getModuleName() {
                 return test.Test;
         }

         public void testStuff() {
                 assertTrue(2 + 2 == 4);
         }

 }
 8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 And here is the Module xml:

 module

     inherits name='com.google.gwt.junit.JUnit'/

 /module

 Invoking the test case using the following command line works:

 @java -Dgwt.args=-out www-test -Xmx256M -cp .\src;.\bin;.\lib
 \junit.jar;.\lib\gwt-user.jar;.\lib\gwt-dev-windows.jar
 junit.textui.TestRunner test.client.TestTest %*

 Invoking the TestTestSuite using the following command line:

 @java -Dgwt.args=-out www-test -Xmx256M -cp .\src;.\bin;.\lib
 \junit.jar;.\lib\gwt-user.jar;.\lib\gwt-dev-windows.jar
 junit.textui.TestRunner test.client.TestTestSuite %*

 fails with the error message:

 Error: java.lang.ClassCastException: class test.client.TestTestSuite

 I checked the class path several times. All src folders and jars are
 present.

 I played around with the code a bit. Letting the TestTestSuite class
 inherit from GWTTestCase works (to some extend). Here is the changed
 code:

 package test.client;

 import junit.framework.Test;

 import com.google.gwt.junit.client.GWTTestCase;
 import com.google.gwt.junit.tools.GWTTestSuite;

 public class TestTestSuite extends GWTTestCase {

         [EMAIL PROTECTED]
         public String getModuleName() {
                 return test.Test;
         }

         public static Test suite() {
                 GWTTestSuite suite = new GWTTestSuite(Tests);
                 suite.addTestSuite(TestTest.class);
                 return suite;
         }

 }

 Now the test case is run. However, the GWT compiler complains with
 some error messages:

 Removing units with errors
    [ERROR] Errors in 'file:/path goes here/src/test/client/
 TestTestSuite.java'
       [ERROR] Line 17: No source code is available for type
 com.google.gwt.junit.tools.GWTTestSuite; did you forget to inherit a
 required module?

 I have no idea which module could be missing.

 Any ideas from the GWT experts?

 Cheers,

 Jan

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



GWT links are not working with Internet Expolrer

2008-10-23 Thread ramesh_mantra

Hai All,

I designed application by using GWT. In that application i have one
problem.

My application links are working properly when i run application in
Mozilla Firefox and Hosted mode.But same application links are not
working with Internet Explorer.

please give me your valuable suggestions to fix this issue.


Thank u


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



Re: GWT links are not working with Internet Expolrer

2008-10-23 Thread Ian Petersen

On Fri, Oct 24, 2008 at 12:16 AM, ramesh_mantra [EMAIL PROTECTED] wrote:
 please give me your valuable suggestions to fix this issue.

If you expect any kind of useful answer, you're going to have to
present a lot more information.  What do you mean by links?
Hyperlinks?  What's the failure mode in IE?  Do they all fail in IE or
only some of them?  Do the ones that fail fail all the time?

GWT is, generally, very good at hiding the differences between
browsers so I'd be willing to bet it's you that's doing something
wrong.  You're going to have to post code and a description of how you
replicate the problem.

Ian

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



parse xml problem

2008-10-23 Thread AyeAyeAung

root
menu type=FFolder 1
menu type=SFolder 1 Shortcut 1/menu
menu type=SFolder 1 Shortcut 2/menu
menu type=FFolder 1 Folder 1
menu type=SShortcut1/menu
menu type=FShortcut2/menu
/menu
menu type=SFolder 1 Shortcut 3/menu
/menu
menu type=FFolder 2
menu type=FFolder 2 Folder 1/menu
menu type=FFolder 2 Folder 2/menu
menu type=SFolder 2 Shortcut 1/menu
/menu
menu type=FFolder 3
menu type=SFolder 3 Shortcut 1/menu
menu type=FFolder 3 Shortcut 2/menu
/menu
menu type=SShortcut 1/menu
/root

Hi all,
I have a problem parsing this xml. First, I tried to get node list
with getChildNodes(). It returns 4 nodes, that's what I want. Then, I
tried to get next node list with if a node has child
by hasChildNodes() and if it's type is F. In this stage, I can't use
getChildNodes(), but I tried to get node list with
getElementByTagName(menu), it return all elements under that node.
I wonder why I can't get node list with getChildNodes(). I want only
child element of
eg. Folder1(Folder 1 Shortcut 1, Folder 1 Shortcut 2, Folder 1 Folder
1, Folder 1 Shortcut 3)
not including child of Folder1 Folder1(Shortcut1, Shortcut2). Any
help! Thanks in advance.


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



SetAccesskey question...

2008-10-23 Thread jhpark

Sorry I can't write english well...

Button btn = new Button();



btn.setAccessKey('r');  - only 'r';

alt + r -- button work...

but I want 'r' and ' t'
alt + r + t == button work..


and
alt + ctrl + r == button work...

It is posibble ?

thank...



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



Re: Rick Text Area - Newbie question

2008-10-23 Thread kozura

As the post above mentions, this is not part of GWT, so that you can
configure the editor interface however you please.  But you can copy
the RichTextToolbar to use from the samples provided in the gwt
installation; you'll find it (and the images needed) in the directory:

samples/Showcase/src/com/google/gwt/sample/showcase/client/content/
text

On Oct 23, 7:43 pm, fchem [EMAIL PROTECTED] wrote:
 Hi guys,

 I must say I'm kind of new to GWT.
 I'm using the latest 1.5.3 on a Mac.
 The RichTextToolbar class doesn't seem to be existing anymore. How do
 you display the toolbar ?
 Your help would be much appreciated.
 Thanks,

 Francois

 On Sep 26, 3:04 am, mbracken [EMAIL PROTECTED] wrote:

  You're only adding theRichTextAreainto the page, you need to add 
  theRichTextAreaand the RichTextToolbar.   If you look in the GWT
  Showcase example (Kitchen Sink if you're using 1.5) you'll see
  there's a class RichTextToolbar.   You can use this class, or modify
  it to fit your needs to work as a toolbar to control yourRichTextArea.

  Something like:

  /RichTextAreatextArea = newRichTextArea();
  RichTextToolbar toolBar = new RichTextToolbar(textArea);

  FlowPanel content = new FlowPanel();
  content.add(toolBar);
  content.add(textArea);

  RootPanel.get(webricate_rte).add(content);
  /

  RichTextToolbar package is:
  com.google.gwt.sample.showcase.client.content.text.
  Be sure to include the images too.

  On Sep 25, 9:33 am, Nomee [EMAIL PROTECTED] wrote:

   This might be simplest to answer.
   Being too lazy I tried to look at some examples in GWT showcase and
   GWT documentation however I was not able to show Extended Toolbar for
   Rich Text Area in my browser using following lines of code.

   finalRichTextArearc1=newRichTextArea();
   RootPanel.get(webricate_rte).add(rc1);

   This shows simple Text Area with No toolbar
   How can I show editing controls with extended toolbar?

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



Re: GWT incubator help

2008-10-23 Thread ajay jetti
Hey Isaac dorry for the late reply

I checked the classpath for user.jar, i m used both gwt 1.5 and 1.5.2

still the error persists.

I cant seem to import any external jar

yours

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



[gwt-contrib] [google-web-toolkit commit] r3819 - branches/1_6_events/user/src/com/google/gwt/user/client

2008-10-23 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Thu Oct 23 05:31:42 2008
New Revision: 3819

Modified:
branches/1_6_events/user/src/com/google/gwt/user/client/Window.java
 
branches/1_6_events/user/src/com/google/gwt/user/client/WindowCloseListener.java
 
branches/1_6_events/user/src/com/google/gwt/user/client/WindowResizeListener.java
 
branches/1_6_events/user/src/com/google/gwt/user/client/WindowScrollListener.java

Log:
Deprecated WindowListeners now that handlers have been added.

Patch by: jlabanca



Modified:  
branches/1_6_events/user/src/com/google/gwt/user/client/Window.java
==
--- branches/1_6_events/user/src/com/google/gwt/user/client/Window.java  
(original)
+++ branches/1_6_events/user/src/com/google/gwt/user/client/Window.java Thu  
Oct 23 05:31:42 2008
@@ -241,6 +241,7 @@
 *
 * @param ListenerType listener type
 */
+  @Deprecated
private static class ListenerDelagateListenerType implements  
EventHandler {
  static void baseRemove(EventListener listener, Type... keys) {
HandlerManager manager = Window.getHandlers();
@@ -268,6 +269,7 @@
/**
 * A delegate to a [EMAIL PROTECTED] WindowCloseListener}.
 */
+  @Deprecated
private static class WindowCloseListenerDelagate extends
ListenerDelagateWindowCloseListener implements  
WindowClosingHandler,
CloseHandlerWindow {
@@ -290,6 +292,7 @@
/**
 * A delegate to a [EMAIL PROTECTED] WindowResizeListener}.
 */
+  @Deprecated
private static class WindowResizeListenerDelagate extends
ListenerDelagateWindowResizeListener implements ResizeHandler {
  public WindowResizeListenerDelagate(WindowResizeListener listener) {
@@ -304,6 +307,7 @@
/**
 * A delegate to a [EMAIL PROTECTED] WindowScrollListener}.
 */
+  @Deprecated
private static class WindowScrollListenerDelagate extends
ListenerDelagateWindowScrollListener implements  
WindowScrollHandler {
  public WindowScrollListenerDelagate(WindowScrollListener listener) {
@@ -348,6 +352,7 @@
 *
 * @param listener the listener to be informed when the window is closing
 */
+  @Deprecated
public static void addWindowCloseListener(WindowCloseListener listener) {
  WindowCloseListenerDelagate delegate = new WindowCloseListenerDelagate(
  listener);
@@ -371,6 +376,7 @@
 *
 * @param listener the listener to be informed when the window is resized
 */
+  @Deprecated
public static void addWindowResizeListener(WindowResizeListener  
listener) {
  addResizeHandler(new WindowResizeListenerDelagate(listener));
}
@@ -392,6 +398,7 @@
 *
 * @param listener the listener to be informed when the window is  
scrolled
 */
+  @Deprecated
public static void addWindowScrollListener(WindowScrollListener  
listener) {
  addWindowScrollHandler(new WindowScrollListenerDelagate(listener));
}
@@ -514,6 +521,7 @@
 *
 * @param listener the listener to be removed
 */
+  @Deprecated
public static void removeWindowCloseListener(WindowCloseListener  
listener) {
  ListenerDelagate.baseRemove(listener, WindowClosingEvent.TYPE,
  CloseEvent.TYPE);
@@ -524,6 +532,7 @@
 *
 * @param listener the listener to be removed
 */
+  @Deprecated
public static void removeWindowResizeListener(WindowResizeListener  
listener) {
  ListenerDelagate.baseRemove(listener, ResizeEvent.TYPE);
}
@@ -533,6 +542,7 @@
 *
 * @param listener the listener to be removed
 */
+  @Deprecated
public static void removeWindowScrollListener(WindowScrollListener  
listener) {
  ListenerDelagate.baseRemove(listener, WindowScrollEvent.TYPE);
}

Modified:  
branches/1_6_events/user/src/com/google/gwt/user/client/WindowCloseListener.java
==
---  
branches/1_6_events/user/src/com/google/gwt/user/client/WindowCloseListener.java
 
(original)
+++  
branches/1_6_events/user/src/com/google/gwt/user/client/WindowCloseListener.java
 
Thu Oct 23 05:31:42 2008
@@ -20,6 +20,7 @@
   *
   * @see  
com.google.gwt.user.client.Window#addWindowCloseListener(WindowCloseListener)
   */
[EMAIL PROTECTED]
  public interface WindowCloseListener extends java.util.EventListener {

/**
@@ -32,6 +33,7 @@
 * dialog box. If multiple listeners return messages, the first  
will
 * be displayed; all others will be ignored.
 */
+  @Deprecated
String onWindowClosing();

/**
@@ -39,5 +41,6 @@
 * This event cannot be cancelled, and is used mainly to clean up  
application
 * state and/or save state to the server.
 */
+  @Deprecated
void onWindowClosed();
  }

Modified:  
branches/1_6_events/user/src/com/google/gwt/user/client/WindowResizeListener.java
==
---  

[gwt-contrib] Re: Code Review: gwt-google-apis Maps Add version check

2008-10-23 Thread Miguel Méndez
On Thu, Oct 23, 2008 at 8:42 AM, Eric Ayers [EMAIL PROTECTED] wrote:

 Hi Miguel,

 Could you please review this patch? It is very small!

 I am currently running into issues with maps regression tests failing due
 to some problems with the Maps JavaScript API.  The Maps JavaScript API can
 be configured to return the current version, either stable or
 experimental.  When you run into problems, it is helpful to know what
 version your app is actually running so you can research the problem or
 write a good bug report.  This change adds Maps.getVersion() to return the
 current Maps JavaScript API version and adds a unit test case for it.

 Also, when I sorted MapWidgetTest, a method moved.

 M  maps/src/com/google/gwt/maps/client/Maps.java

LG - The javadoc should probably be changed since this method will return
the JS Maps API version even in cases where current scheme is not used.



 M  maps/test/com/google/gwt/maps/client/MapWidgetTest.java

LG with one nit: Ideally tests will not output to std:out unless there is an
error or failure.  So, consider removing the System.out.println during the
test.




 Patch is made against the releases/maps/1.0 branch

 Thanks,
 -Eric.
 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USA
 http://code.google.com/webtoolkit/




-- 
Miguel

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



[gwt-contrib] [google-web-toolkit commit] r3820 - branches/1_6_events/user/test/com/google/gwt/user/client/ui

2008-10-23 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Thu Oct 23 06:25:32 2008
New Revision: 3820

Modified:
 
branches/1_6_events/user/test/com/google/gwt/user/client/ui/ImageTest.java

Log:
Updated ImageTest to test handlers.  The listener tests still exist.

Patch by: jlabanca



Modified:  
branches/1_6_events/user/test/com/google/gwt/user/client/ui/ImageTest.java
==
---  
branches/1_6_events/user/test/com/google/gwt/user/client/ui/ImageTest.java  
 
(original)
+++  
branches/1_6_events/user/test/com/google/gwt/user/client/ui/ImageTest.java  
 
Thu Oct 23 06:25:32 2008
@@ -16,6 +16,10 @@
  package com.google.gwt.user.client.ui;

  import com.google.gwt.dom.client.Document;
+import com.google.gwt.event.dom.client.ErrorEvent;
+import com.google.gwt.event.dom.client.ErrorHandler;
+import com.google.gwt.event.dom.client.LoadEvent;
+import com.google.gwt.event.dom.client.LoadHandler;
  import com.google.gwt.junit.client.GWTTestCase;

  /**
@@ -23,7 +27,46 @@
   * are tested, along with the transitions between the two modes.
   */
  public class ImageTest extends GWTTestCase {
+  private static class TestErrorHandler implements ErrorHandler {
+private Image image;

+public TestErrorHandler(Image image) {
+  this.image = image;
+}
+
+public void onError(ErrorEvent event) {
+  fail(The image  + image.getUrl() +  failed to load.);
+}
+  }
+
+  @Deprecated
+  private abstract static class TestLoadListener implements LoadListener {
+private Image image;
+private boolean finished = false;
+
+public TestLoadListener(Image image) {
+  this.image = image;
+}
+
+public void onError(Widget sender) {
+  fail(The image  + image.getUrl() +  failed to load.);
+}
+
+/**
+ * Mark the test as finished.
+ */
+public void finish() {
+  finished = true;
+}
+
+/**
+ * @return true if the test has finished
+ */
+public boolean isFinished() {
+  return finished;
+}
+  }
+
/**
 * Helper method that allows us to 'peek' at the private  
codestate/code
 * field in the Image object, and call the  
codestate.getStateName()/code
@@ -154,25 +197,40 @@
/**
 * Tests the creation of an image in clipped mode.
 */
+  @SuppressWarnings(deprecation)
public void testCreateClippedImage() {
  final Image image = new Image(counting-forwards.png,
  16, 16, 16, 16);

-image.addLoadListener(new LoadListener() {
+final TestLoadListener listener = new TestLoadListener(image) {
private int onLoadEventCount = 0;

-  public void onError(Widget sender) {
-fail(The image  + ((Image) sender).getUrl() +  failed to  
load.);
+  public void onLoad(Widget sender) {
+if (++onLoadEventCount == 1) {
+  assertEquals(16, image.getWidth());
+  assertEquals(16, image.getHeight());
+  finish();
+}
}
+};
+image.addLoadListener(listener);

-  public void onLoad(Widget sender) {
+image.addLoadHandler(new LoadHandler() {
+  private int onLoadEventCount = 0;
+
+  public void onLoad(LoadEvent event) {
  if (++onLoadEventCount == 1) {
assertEquals(16, image.getWidth());
assertEquals(16, image.getHeight());
-  finishTest();
+  if (listener.isFinished()) {
+finishTest();
+  } else {
+fail(Listener did not fire first);
+  }
  }
}
  });
+image.addErrorHandler(new TestErrorHandler(image));

  RootPanel.get().add(image);
  assertEquals(16, image.getOriginLeft());
@@ -219,17 +277,14 @@
 * [EMAIL PROTECTED]  
com.google.gwt.user.client.ui.Image#setUrlAndVisibleRect(String,int,int,int,int)}
 * on a clipped image.
 */
+  @SuppressWarnings(deprecation)
public void testSetUrlAndVisibleRectOnClippedImage() {
  final Image image = new Image(counting-backwards.png,
  12, 12, 12, 12);

-image.addLoadListener(new LoadListener() {
+final TestLoadListener listener = new TestLoadListener(image) {
private int onLoadEventCount = 0;

-  public void onError(Widget sender) {
-fail(The image  + ((Image) sender).getUrl() +  failed to  
load.);
-  }
-
public void onLoad(Widget sender) {
  if (++onLoadEventCount == 2) {
assertEquals(0, image.getOriginLeft());
@@ -237,81 +292,105 @@
assertEquals(16, image.getWidth());
assertEquals(16, image.getHeight());
assertEquals(clipped, getCurrentImageStateName(image));
-  finishTest();
+  finish();
  }
}
-});
-
-RootPanel.get().add(image);
-assertEquals(clipped, getCurrentImageStateName(image));
-image.setUrlAndVisibleRect(counting-forwards.png,
-0, 16, 16, 16);
-
-delayTestFinish(5000);
-  }
-
-  /**
-   * Tests the behavior of
-   * 

[gwt-contrib] [google-web-toolkit commit] r3821 - branches/1_6_events/user/test/com/google/gwt/user/client/ui/impl

2008-10-23 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Thu Oct 23 06:47:24 2008
New Revision: 3821

Modified:
 
branches/1_6_events/user/test/com/google/gwt/user/client/ui/impl/ClippedImagePrototypeTest.java

Log:
Added handler tests to the listener tests.

Patch by: jlabanca



Modified:  
branches/1_6_events/user/test/com/google/gwt/user/client/ui/impl/ClippedImagePrototypeTest.java
==
---  
branches/1_6_events/user/test/com/google/gwt/user/client/ui/impl/ClippedImagePrototypeTest.java
  
(original)
+++  
branches/1_6_events/user/test/com/google/gwt/user/client/ui/impl/ClippedImagePrototypeTest.java
  
Thu Oct 23 06:47:24 2008
@@ -15,15 +15,17 @@
   */
  package com.google.gwt.user.client.ui.impl;

+import com.google.gwt.event.dom.client.ErrorEvent;
+import com.google.gwt.event.dom.client.ErrorHandler;
+import com.google.gwt.event.dom.client.LoadEvent;
+import com.google.gwt.event.dom.client.LoadHandler;
  import com.google.gwt.junit.client.GWTTestCase;
+import com.google.gwt.user.client.Timer;
  import com.google.gwt.user.client.ui.Image;
  import com.google.gwt.user.client.ui.ImageTest;
-import com.google.gwt.user.client.ui.RootPanel;
  import com.google.gwt.user.client.ui.LoadListener;
+import com.google.gwt.user.client.ui.RootPanel;
  import com.google.gwt.user.client.ui.Widget;
-import com.google.gwt.user.client.Timer;
-
-import java.util.ArrayList;

  /**
   * Tests for the ClippedImagePrototype implementation. Tests are done to  
ensure
@@ -34,11 +36,45 @@
   * application of the prototype to the image.
   */
  public class ClippedImagePrototypeTest extends GWTTestCase {
-
+  @Deprecated
+  private static class TestLoadListener implements LoadListener {
+private int onloadEventFireCount = 0;
+private Image image;
+
+public TestLoadListener(Image image) {
+  this.image = image;
+}
+
+public void onError(Widget sender) {
+  fail(The image  + image.getUrl() +  failed to load.);
+}
+
+public int getOnloadEventFireCount() {
+  return onloadEventFireCount;
+}
+
+public void onLoad(Widget sender) {
+  onloadEventFireCount++;
+}
+  }
+
+  private static class TestLoadHandler implements LoadHandler {
+private int onloadEventFireCount = 0;
+
+public int getOnloadEventFireCount() {
+  return onloadEventFireCount;
+}
+
+public void onLoad(LoadEvent event) {
+  onloadEventFireCount++;
+}
+  }
+
+  @Override
public String getModuleName() {
  return com.google.gwt.user.UserTest;
}
-
+
/**
 * Tests that a clipped image can be transformed to match a given  
prototype.
 * Also checks to make sure that a load event is fired on when
@@ -55,15 +91,31 @@
  assertEquals(8, image.getHeight());
  assertEquals(clipped, ImageTest.getCurrentImageStateName(image));

-final ArrayList onloadEventFireCounter = new ArrayList();
+final TestLoadListener listener = new TestLoadListener(image) {
+  @Override
+  public void onLoad(Widget sender) {
+super.onLoad(sender);

-image.addLoadListener(new LoadListener() {
-  public void onError(Widget sender) {
-fail(The image  + ((Image) sender).getUrl() +  failed to  
load.);
+if (image.getOriginLeft() == 12  image.getOriginTop() == 13) {
+  ClippedImagePrototype clippedImagePrototype = new  
ClippedImagePrototype(
+  counting-forwards.png, 16, 16, 16, 16);
+
+  clippedImagePrototype.applyTo(image);
+
+  assertEquals(16, image.getOriginLeft());
+  assertEquals(16, image.getOriginTop());
+  assertEquals(16, image.getWidth());
+  assertEquals(16, image.getHeight());
+  assertEquals(clipped,  
ImageTest.getCurrentImageStateName(image));
+}
}
+};
+image.addLoadListener(listener);

-  public void onLoad(Widget sender) {
-onloadEventFireCounter.add(new Object());
+final TestLoadHandler handler = new TestLoadHandler() {
+  @Override
+  public void onLoad(LoadEvent event) {
+super.onLoad(event);

  if (image.getOriginLeft() == 12  image.getOriginTop() == 13) {
ClippedImagePrototype clippedImagePrototype = new  
ClippedImagePrototype(
@@ -78,14 +130,22 @@
assertEquals(clipped,  
ImageTest.getCurrentImageStateName(image));
  }
}
+};
+image.addLoadHandler(handler);
+image.addErrorHandler(new ErrorHandler() {
+  public void onError(ErrorEvent event) {
+fail(The image  + image.getUrl() +  failed to load.);
+  }
  });
-
+
  RootPanel.get().add(image);
  delayTestFinish(2000);

  Timer t = new Timer() {
+  @Override
public void run() {
-assertEquals(2, onloadEventFireCounter.size());
+assertEquals(2, listener.getOnloadEventFireCount());
+assertEquals(2, handler.getOnloadEventFireCount());
  finishTest();
}
  };


[gwt-contrib] Re: Code Review: gwt-google-apis Maps Add version check

2008-10-23 Thread Miguel Méndez
On Thu, Oct 23, 2008 at 9:44 AM, Eric Ayers [EMAIL PROTECTED] wrote:



 On Thu, Oct 23, 2008 at 9:21 AM, Miguel Méndez [EMAIL PROTECTED] wrote:

 On Thu, Oct 23, 2008 at 8:42 AM, Eric Ayers [EMAIL PROTECTED] wrote:

 Hi Miguel,

 Could you please review this patch? It is very small!

 I am currently running into issues with maps regression tests failing due
 to some problems with the Maps JavaScript API.  The Maps JavaScript API can
 be configured to return the current version, either stable or
 experimental.  When you run into problems, it is helpful to know what
 version your app is actually running so you can research the problem or
 write a good bug report.  This change adds Maps.getVersion() to return the
 current Maps JavaScript API version and adds a unit test case for it.

 Also, when I sorted MapWidgetTest, a method moved.

 M  maps/src/com/google/gwt/maps/client/Maps.java

 LG - The javadoc should probably be changed since this method will return
 the JS Maps API version even in cases where current scheme is not used.



 M  maps/test/com/google/gwt/maps/client/MapWidgetTest.java

 LG with one nit: Ideally tests will not output to std:out unless there is
 an error or failure.  So, consider removing the System.out.println during
 the test.


 Do you have an alternate suggestion for getting the version of the Maps API
 from running the hosted mode tests?



Seems like you would want to include it in the failure capture information
of the assertions (exceptions thrown).




 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USA
 http://code.google.com/webtoolkit/




-- 
Miguel

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



[gwt-contrib] [google-web-toolkit commit] r3823 - branches/1_6_events/user/test/com/google/gwt/user/client/ui

2008-10-23 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Thu Oct 23 06:58:08 2008
New Revision: 3823

Modified:
 
branches/1_6_events/user/test/com/google/gwt/user/client/ui/CompositeTest.java

Log:
Add handler tests to CompositeTest.

Patch by: jlabanca



Modified:  
branches/1_6_events/user/test/com/google/gwt/user/client/ui/CompositeTest.java
==
---  
branches/1_6_events/user/test/com/google/gwt/user/client/ui/CompositeTest.java  
 
(original)
+++  
branches/1_6_events/user/test/com/google/gwt/user/client/ui/CompositeTest.java  
 
Thu Oct 23 06:58:08 2008
@@ -15,8 +15,14 @@
   */
  package com.google.gwt.user.client.ui;

+import com.google.gwt.event.dom.client.BlurEvent;
+import com.google.gwt.event.dom.client.BlurHandler;
+import com.google.gwt.event.dom.client.FocusEvent;
+import com.google.gwt.event.dom.client.FocusHandler;
  import com.google.gwt.junit.client.GWTTestCase;
+import com.google.gwt.user.client.Command;
  import com.google.gwt.user.client.DOM;
+import com.google.gwt.user.client.DeferredCommand;
  import com.google.gwt.user.client.Event;

  /**
@@ -24,6 +30,7 @@
   */
  public class CompositeTest extends GWTTestCase {

+  @Override
public String getModuleName() {
  return com.google.gwt.user.User;
}
@@ -32,6 +39,8 @@
  TextBox tb = new TextBox();
  boolean widgetFocusFired;
  boolean widgetLostFocusFired;
+boolean widgetFocusHandlerFired;
+boolean widgetBlurHandlerFired;
  boolean domFocusFired;
  boolean domBlurFired;

@@ -48,6 +57,17 @@
widgetFocusFired = true;
  }
});
+
+  tb.addFocusHandler(new FocusHandler() {
+public void onFocus(FocusEvent event) {
+  widgetFocusHandlerFired = true;
+}
+  });
+  tb.addBlurHandler(new BlurHandler() {
+public void onBlur(BlurEvent event) {
+  widgetBlurHandlerFired = true;
+}
+  });
  }

  @Override
@@ -68,38 +88,39 @@
  }
}

-  public void testBrowserEvents() {
-// TODO: re-enable this test when we figure out why the focus events aren't
-// firing on some browsers.
-//
-//final EventTestComposite c = new EventTestComposite();
-//RootPanel.get().add(c);
-//
-//this.delayTestFinish(1000);
-//
-//// Focus, then blur, the composite's text box. This has to be done in
-//// deferred commands, because focus events usually require the event  
loop
-//// to be pumped in order to fire.
-//DeferredCommand.addCommand(new Command() {
-//  public void execute() {
-//DeferredCommand.addCommand(new Command() {
-//  public void execute() {
-//// Ensure all events fired as expected.
-//assertTrue(c.domFocusFired);
-//assertTrue(c.domBlurFired);
-//assertTrue(c.widgetLostFocusFired);
-//
-//// Ensure that the widget's focus event was eaten by the
-//// composite's implementation of onBrowserEvent().
-//assertFalse(c.widgetFocusFired);
-//finishTest();
-//  }
-//});
-//
-//c.tb.setFocus(false);
-//  }
-//});
-//
-//c.tb.setFocus(true);
+  public void disabledTestBrowserEvents() {
+// TODO: re-enable this test when we figure out why the focus events  
aren't
+// firing on some browsers.
+final EventTestComposite c = new EventTestComposite();
+RootPanel.get().add(c);
+
+this.delayTestFinish(1000);
+
+// Focus, then blur, the composite's text box. This has to be done in
+// deferred commands, because focus events usually require the event  
loop
+// to be pumped in order to fire.
+DeferredCommand.addCommand(new Command() {
+  public void execute() {
+DeferredCommand.addCommand(new Command() {
+  public void execute() {
+// Ensure all events fired as expected.
+assertTrue(c.domFocusFired);
+assertTrue(c.domBlurFired);
+assertTrue(c.widgetLostFocusFired);
+assertTrue(c.widgetBlurHandlerFired);
+
+// Ensure that the widget's focus event was eaten by the
+// composite's implementation of onBrowserEvent().
+assertFalse(c.widgetFocusFired);
+assertFalse(c.widgetFocusHandlerFired);
+finishTest();
+  }
+});
+
+c.tb.setFocus(false);
+  }
+});
+
+c.tb.setFocus(true);
}
  }

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



[gwt-contrib] [google-web-toolkit commit] r3822 - branches/1_6_events/user/test/com/google/gwt/user/client/ui

2008-10-23 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Thu Oct 23 06:48:38 2008
New Revision: 3822

Modified:
 
branches/1_6_events/user/test/com/google/gwt/user/client/ui/ImageTest.java

Log:
Removed the SuppressWarning(deprecation) annotations from ImageTest.   
Since the methods use deprecated libraries, they should show warnings.

Patch by: jlabanca



Modified:  
branches/1_6_events/user/test/com/google/gwt/user/client/ui/ImageTest.java
==
---  
branches/1_6_events/user/test/com/google/gwt/user/client/ui/ImageTest.java  
 
(original)
+++  
branches/1_6_events/user/test/com/google/gwt/user/client/ui/ImageTest.java  
 
Thu Oct 23 06:48:38 2008
@@ -197,7 +197,6 @@
/**
 * Tests the creation of an image in clipped mode.
 */
-  @SuppressWarnings(deprecation)
public void testCreateClippedImage() {
  final Image image = new Image(counting-forwards.png,
  16, 16, 16, 16);
@@ -277,7 +276,6 @@
 * [EMAIL PROTECTED]  
com.google.gwt.user.client.ui.Image#setUrlAndVisibleRect(String,int,int,int,int)}
 * on a clipped image.
 */
-  @SuppressWarnings(deprecation)
public void testSetUrlAndVisibleRectOnClippedImage() {
  final Image image = new Image(counting-backwards.png,
  12, 12, 12, 12);
@@ -362,7 +360,6 @@
 * [EMAIL PROTECTED]  
com.google.gwt.user.client.ui.Image#setVisibleRect(int,int,int,int)}
 * on a clipped image.
 */
-  @SuppressWarnings(deprecation)
public void testSetVisibleRectAndLoadEventsOnClippedImage() {
  final Image image = new Image(counting-backwards.png, 16, 16, 16,  
16);


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



[gwt-contrib] [google-web-toolkit commit] r3824 - branches/1_6_events/user/src/com/google/gwt/user/client/ui

2008-10-23 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Thu Oct 23 07:38:28 2008
New Revision: 3824

Modified:
branches/1_6_events/user/src/com/google/gwt/user/client/ui/Widget.java

Log:
Fixed a bug in Widget.onAttach() where we do not update eventsToSink, which  
makes subsequent attempts to sinkEvents fail to actually sink the DOM event  
on the element.

Patch by: jlabanca



Modified:  
branches/1_6_events/user/src/com/google/gwt/user/client/ui/Widget.java
==
--- branches/1_6_events/user/src/com/google/gwt/user/client/ui/Widget.java  
 
(original)
+++ branches/1_6_events/user/src/com/google/gwt/user/client/ui/Widget.java  
 
Thu Oct 23 07:38:28 2008
@@ -30,7 +30,11 @@
   * [EMAIL PROTECTED] com.google.gwt.user.client.ui.Panel panels}.
   */
  public class Widget extends UIObject implements EventListener {
-  private int sunkEvents;
+  /**
+   * A bit-map of the events that should be sunk when the widget is  
attached
+   * to the DOM.  We delay the sinking of events to improve startup  
performance.
+   */
+  private int eventsToSink;
private boolean attached;

private Object layoutData;
@@ -81,10 +85,10 @@

@Override
public void sinkEvents(int eventBitsToAdd) {
-if (sunkEvents == -1) {
+if (eventsToSink == -1) {
super.sinkEvents(eventBitsToAdd);
  } else {
-  sunkEvents |= eventBitsToAdd;
+  eventsToSink |= eventBitsToAdd;
  }
}

@@ -188,10 +192,10 @@

  attached = true;
  DOM.setEventListener(getElement(), this);
-if (sunkEvents  0) {
-  super.sinkEvents(sunkEvents);
-  sunkEvents = -1;
+if (eventsToSink  0) {
+  super.sinkEvents(eventsToSink);
  }
+eventsToSink = -1;
  doAttachChildren();

  // onLoad() gets called only *after* all of the children are attached  
and

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



[gwt-contrib] [google-web-toolkit commit] r3825 - branches/1_6_events/user/test/com/google/gwt/user/client/ui

2008-10-23 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Thu Oct 23 07:39:54 2008
New Revision: 3825

Modified:
 
branches/1_6_events/user/test/com/google/gwt/user/client/ui/AnchorTest.java

Log:
Added handler tests to the listener tests in AnchorTest.

Patch by: jlabanca



Modified:  
branches/1_6_events/user/test/com/google/gwt/user/client/ui/AnchorTest.java
==
---  
branches/1_6_events/user/test/com/google/gwt/user/client/ui/AnchorTest.java 
 
(original)
+++  
branches/1_6_events/user/test/com/google/gwt/user/client/ui/AnchorTest.java 
 
Thu Oct 23 07:39:54 2008
@@ -16,6 +16,8 @@
  package com.google.gwt.user.client.ui;

  import com.google.gwt.dom.client.Element;
+import com.google.gwt.event.dom.client.ClickEvent;
+import com.google.gwt.event.dom.client.ClickHandler;
  import com.google.gwt.i18n.client.HasDirection;
  import com.google.gwt.junit.client.GWTTestCase;
  import com.google.gwt.user.client.DOM;
@@ -24,7 +26,24 @@
   * Tests for [EMAIL PROTECTED] Anchor}.
   */
  public class AnchorTest extends GWTTestCase {
+  private final class TestClickHandler implements ClickHandler {
+private int clicks = 0;
+private Object lastSender;
+
+public void onClick(ClickEvent event) {
+  clicks++;
+  lastSender = event.getSource();
+}

+public int getClicks() {
+  return clicks;
+}
+
+public Object getLastSender() {
+  return lastSender;
+}
+  }
+
private static final String TEST_URL0 = http://www.google.com/;;
private static final String TEST_URL1 = http://code.google.com/;;

@@ -58,6 +77,7 @@
  assertEquals(42, anchor.getTabIndex());
}

+  @Deprecated
private final class TestClickListener implements ClickListener {
  private int clicks = 0;
  private Widget lastSender;
@@ -136,10 +156,16 @@
  TestClickListener testListener = new TestClickListener();
  anchor.addClickListener(testListener);

+TestClickHandler handler = new TestClickHandler();
+anchor.addClickHandler(handler);
+
  assertEquals(0, testListener.getClicks());
+assertEquals(0, handler.getClicks());
  triggerEvent(anchor.getElement(), click, false, MouseEvents);
  assertEquals(1, testListener.getClicks());
+assertEquals(1, handler.getClicks());
  assertEquals(anchor, testListener.getLastSender());
+assertEquals(anchor, handler.getLastSender());
}

public void testLink() {

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



[gwt-contrib] Iterables and Collections

2008-10-23 Thread Charles Fry

I couldn't help but noticing that there are several places in GWT that
perform logical aggregations, but don't expose the aggregated elements
using Iterable (or List!). The two examples off the top of my head are
IndexedPanel and ListBox, though I'm sure there are more.

IndexedPanel could just implement ListWidget (or at the very least
IterableWidget).

Similarly ListBox could specify ListBox.Item as a formal subclass, and
implement ListItem.

Presumably there are others, but I generally see lots of value in
tightly integrating with Collections (or at the very least Iterable),
as it makes it trivial for Java users to consume new classes and
constructs using know techniques, rather than having to research in
each specific instance what the relevant method names are for
performing manual iteration.

Charles

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



[gwt-contrib] table columns

2008-10-23 Thread Charles Fry

As a new GWT user (thanks a ton for the awesome toolkit) I have a few
issues with table columns:

1) To my surprise, FlexTable row and column spans effect the offsets
of later cells in the row/column of the span. In other words the row
and column numbers passed as arguments into all of the methods are
relative and not absolute indices (being offset by any spans before
them). In addition to being undocumented (at least in the Javadocs), I
found this completely counter-intuitive. I recognize that this maps to
how HTML tables are implemented with respect to tr and td tags,
but I thought that the whole point of having an API that allowed
row/column references was to provide a higher-level abstraction. As it
is, it is completely impossible (as far as I can tell) to manipulate
FlexTable cells using absolute coordinates. Any operation pre-supposes
full knowledge of any spans that may be in effect (or come into
effect). I guess this makes it easier from your perspective to
dynamically shift cells when a span is in effect, but given the
indices used for all operations, I would have found it much more
intuitive for spans to simply hide cell content that had been set but
collided with a span. Am I missing something here? Is there a way to
achieve absolute referencing? At the very least, the current behavior
should be clearly documented, but I still find it very suspect. I
assume that currently you can use setText/Widget to put content in a
cell, and then create a span, and then later go to update the original
cell using the same indices, only to find that those indices now apply
to a different cell. Weird.

2) I was sad to discover that HTMLTables have a removeCell call and a
removeRow call, but no removeColumn call. This feels inconsistent.
Isn't the abstraction's purpose to let you think about things at a
higher level than the base trtd tags? I would find a removeColumn
call to be justified, even if it was documented as being expensive to
execute on large tables (if that is the reason it is not included, for
example).

3) In a similar vein, it is odd that HTMLTable allows you to
getRowCount and getCellCount, but not getColumnCount. That would be
awfully convenient to have as well.

I'd love to hear what any of the developers have to say about all
this. At the very least it should all be documented better, but I
would like to hope that table columns might ultimately become more
first class citizens, with their offsets being fixed. :-)

Charles

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



[gwt-contrib] Re: OOPHM Gecko 1.8

2008-10-23 Thread Sam Gross
On Thu, Oct 23, 2008 at 2:06 AM, John Tamplin [EMAIL PROTECTED] wrote:

 On Thu, Oct 23, 2008 at 12:22 AM, Sam Gross [EMAIL PROTECTED] wrote:

 I've been working on trying to create a version of oophm-xpcom.xpi that
 runs in both Firefox 2 and Firefox 3.  I also modified some of the makefiles
 in an attempt at getting rid of the separate makefiles for each platform.


 Great!


 Here's what's working:

- OOPHM runs in Firefox 2  3 in Linux and Mac
- Firefox 2 + 3 on Mac can run the same oophm-xpcom.xpi file
- The makefile builds against gecko 1.8 and gecko 1.9
- I trimmed downs the SDKs so that it's ~3 MB for Linux + Mac (x86 +
ppc)

 Here's what's not working:

- On Linux, the liboophm.so for Firefox 2 crashes Firefox 3 and vice
versa

 I realized that most of the libraries that we need to link against are
 always present in the Firefox distribution.  This seems more pleasant than
 having to distribute hundreds of megabytes of libraries to build OOPHM.


 In the past, we have wanted to include the files we need to build so
 someone can guarantee getting exactly the same bits we distribute.  The
 downside is it makes the checkout larger and can run into platform
 compatibility issues, and we aren't going to ship libraries for all the
 possible FireFox platforms anyway.


I think even if we stripped out the unecessary header and idl files, the
libraries to compile OOPHM on the major platforms would be at least 200 Mb.
 Since few people will want to rebuild the plugin - and almost everyone has
Firefox installed - it doesn't seem worthwhile to put full Gecko SDKs in the
tools directory.


 To build OOPHM on Linux if you Firefox installation is at
 /opt/local/firefox (default is /usr/lib/firefox):
 cd plugins/xpcom
  make FIREFOX_LIBS=/opt/local/firefox


 Does this only need the regular Firefox distribution, or are additional
 files needed?


Only the regular Firefox distribution.  The file gecko-sdks.tar.gz (attached
to the previous email) contains the required headers and libraries that
aren't included in the regular Firefox distribution.  We will probably want
to commit these files to tools/ at some point.


 To build only the Firefox 2 libraries:
 cd plugins/xpcom
 make lib BROWSER=ff2
 make xpi

 I'm not sure what's causing the crashes cross-version crashes on Linux.  I
 used the technique that Gears uses to prevent Firefox from loading
 cross-version libraries, which seems to work on Mac.  On Linux, Firefox 3
 crashes when executing ~nsCOMPtr_base and Firefox 2 crashes while checking
 the browser's version.


 It wouldn't be ideal, but I don't think it would be the end of the world to
 have two different XPIs, each of which list the versions they are compatible
 with.


That's probably best for the merge with trunk.

 -Sam

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



[gwt-contrib] [google-web-toolkit commit] r3828 - branches/1_6_events/user/src/com/google/gwt/user/client

2008-10-23 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Thu Oct 23 10:22:49 2008
New Revision: 3828

Modified:
branches/1_6_events/user/src/com/google/gwt/user/client/History.java
 
branches/1_6_events/user/src/com/google/gwt/user/client/HistoryListener.java

Log:
Deprecated HistoryListener now that HistoryChangeHandler exists.

Patch by: jlabanca



Modified:  
branches/1_6_events/user/src/com/google/gwt/user/client/History.java
==
--- branches/1_6_events/user/src/com/google/gwt/user/client/History.java
 
(original)
+++ branches/1_6_events/user/src/com/google/gwt/user/client/History.java
 
Thu Oct 23 10:22:49 2008
@@ -29,8 +29,8 @@
   * p
   * In order to receive notification of user-directed changes to the current
   * history item, implement the
- * [EMAIL PROTECTED] com.google.gwt.user.client.HistoryListener} interface and 
attach  
it
- * via [EMAIL PROTECTED] #addHistoryListener}.
+ * [EMAIL PROTECTED] com.google.gwt.user.client.HistoryChangeHandler} 
interface and  
attach
+ * it via [EMAIL PROTECTED] #addHistoryListener}.
   * /p
   *
   * p
@@ -41,7 +41,8 @@
   * p
   * h3URL Encoding/h3
   * Any valid characters may be used in the history token and will survive
- * round-trips through [EMAIL PROTECTED] #newItem(String)} to [EMAIL 
PROTECTED]  
#getToken()}/[EMAIL PROTECTED] HistoryListener#onHistoryChanged(String)},
+ * round-trips through [EMAIL PROTECTED] #newItem(String)} to [EMAIL 
PROTECTED] #getToken()}/
+ * [EMAIL PROTECTED] 
HistoryChangeHandler#onHistoryChanged(HistoryChangeEvent)},
   * but most will be encoded in the user-visible URL. The following US-ASCII
   * characters are not encoded on any currently supported browser (but may  
be in
   * the future due to future browser changes):
@@ -80,7 +81,7 @@
 */
public static HandlerRegistration addHistoryChangeHandler(
HistoryChangeHandler handler) {
-return impl.addHistoryChangeHandler(handler);
+return HistoryImpl.addHistoryChangeHandler(handler);
}

/**
@@ -88,6 +89,7 @@
 *
 * @param listener the listener to be added
 */
+  @Deprecated
public static void addHistoryListener(HistoryListener listener) {
  L.HistoryChange.add(listener);
}
@@ -102,10 +104,11 @@
}-*/;

/**
-   * Fire [EMAIL PROTECTED] HistoryListener#onHistoryChanged(String)} events 
with the
-   * current history state. This is most often called at the end of an
-   * application's [EMAIL PROTECTED]  
com.google.gwt.core.client.EntryPoint#onModuleLoad()}
-   * to inform history listeners of the initial application state.
+   * Fire [EMAIL PROTECTED] 
HistoryChangeHandler#onHistoryChanged(HistoryChangeEvent)}
+   * events with the current history state. This is most often called at  
the end
+   * of an application's
+   * [EMAIL PROTECTED] com.google.gwt.core.client.EntryPoint#onModuleLoad()} 
to inform
+   * history listeners of the initial application state.
 */
public static void fireCurrentHistoryState() {
  HistoryImpl.fireHistoryChangedImpl(getToken());
@@ -121,10 +124,10 @@

/**
 * Gets the current history token. The listener will not receive a
-   * [EMAIL PROTECTED] HistoryListener#onHistoryChanged(String)} event for the 
initial
-   * token; requiring that an application request the token explicitly on
-   * startup gives it an opportunity to run different initialization code  
in the
-   * presence or absence of an initial token.
+   * [EMAIL PROTECTED] 
HistoryChangeHandler#onHistoryChanged(HistoryChangeEvent)}  
event for
+   * the initial token; requiring that an application request the token
+   * explicitly on startup gives it an opportunity to run different
+   * initialization code in the presence or absence of an initial token.
 *
 * @return the initial token, or the empty string if none is present.
 */
@@ -136,7 +139,8 @@
 * Adds a new browser history entry. In hosted mode, the 'back'  
and 'forward'
 * actions are accessible via the standard Alt-Left and Alt-Right  
keystrokes.
 * Calling this method will cause
-   * [EMAIL PROTECTED] HistoryListener#onHistoryChanged(String)} to be called 
as well.
+   * [EMAIL PROTECTED] 
HistoryChangeHandler#onHistoryChanged(HistoryChangeEvent)} to  
be
+   * called as well.
 *
 * @param historyToken the token to associate with the new history item
 */
@@ -148,13 +152,13 @@
 * Adds a new browser history entry. In hosted mode, the 'back'  
and 'forward'
 * actions are accessible via the standard Alt-Left and Alt-Right  
keystrokes.
 * Calling this method will cause
-   * [EMAIL PROTECTED] HistoryListener#onHistoryChanged(String)} to be called 
as well  
if
-   * and only if issueEvent is true.
+   * [EMAIL PROTECTED] 
HistoryChangeHandler#onHistoryChanged(HistoryChangeEvent)} to  
be
+   * called as well if and only if issueEvent is true.
 *
 * @param historyToken the token to associate with the new 

[gwt-contrib] [google-web-toolkit commit] r3830 - in branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase: . client clie...

2008-10-23 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Thu Oct 23 10:47:07 2008
New Revision: 3830

Modified:
 
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/Showcase.gwt.xml
 
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/client/Application.java
 
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/client/Showcase.java
 
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/client/content/i18n/CwConstantsWithLookupExample.java
 
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/client/content/i18n/CwMessagesExample.java
 
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/client/content/lists/CwListBox.java
 
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/client/content/lists/CwTree.java
 
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwCookies.java
 
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwAbsolutePanel.java
 
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/client/content/text/CwBasicText.java

Log:
Converted more listeners in Showcase to handlers.  The only remaining  
listeners are the TabListeners, which have not been converted yet.

Patch by: jlabanca



Modified:  
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/Showcase.gwt.xml
==
---  
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/Showcase.gwt.xml
 
(original)
+++  
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/Showcase.gwt.xml
 
Thu Oct 23 10:47:07 2008
@@ -18,5 +18,10 @@

!-- Specify the app entry point class. --
entry-point class='com.google.gwt.sample.showcase.client.Showcase'/
-
+
+  !-- Internationalization support. --
+  extend-property name=locale values=en/
+  extend-property name=locale values=ar/
+  extend-property name=locale values=fr/
+  extend-property name=locale values=zh/
  /module

Modified:  
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/client/Application.java
==
---  
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/client/Application.java
  
(original)
+++  
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/client/Application.java
  
Thu Oct 23 10:47:07 2008
@@ -16,9 +16,13 @@
  package com.google.gwt.sample.showcase.client;

  import com.google.gwt.core.client.GWT;
+import com.google.gwt.event.logical.shared.HasSelectionHandlers;
+import com.google.gwt.event.logical.shared.ResizeEvent;
+import com.google.gwt.event.logical.shared.ResizeHandler;
+import com.google.gwt.event.logical.shared.SelectionHandler;
+import com.google.gwt.event.shared.HandlerRegistration;
  import com.google.gwt.i18n.client.LocaleInfo;
  import com.google.gwt.user.client.Window;
-import com.google.gwt.user.client.WindowResizeListener;
  import com.google.gwt.user.client.ui.AbstractImagePrototype;
  import com.google.gwt.user.client.ui.Composite;
  import com.google.gwt.user.client.ui.DecoratorPanel;
@@ -33,7 +37,6 @@
  import com.google.gwt.user.client.ui.Tree;
  import com.google.gwt.user.client.ui.TreeImages;
  import com.google.gwt.user.client.ui.TreeItem;
-import com.google.gwt.user.client.ui.TreeListener;
  import com.google.gwt.user.client.ui.Widget;
  import com.google.gwt.user.client.ui.FlexTable.FlexCellFormatter;
  import com.google.gwt.user.client.ui.HTMLTable.CellFormatter;
@@ -44,17 +47,28 @@
   * some external links at the top.
   * /p
   * h3CSS Style Rules/h3
+ *
   * ul class=css
+ *
   * li.Application { Applied to the entire Application }/li
+ *
   * li.Application-top { The top portion of the Application }/li
+ *
   * li.Application-title { The title widget }/li
+ *
   * li.Application-links { The main external links }/li
+ *
   * li.Application-options { The options widget }/li
+ *
   * li.Application-menu { The main menu }/li
- * li.Application-content-wrapper { The scrollable element around the  
content }/li
+ *
+ * li.Application-content-wrapper { The scrollable element around the  
content
+ * }/li
+ *
   * /ul
   */
-public class Application extends Composite implements WindowResizeListener  
{
+public class Application extends Composite implements ResizeHandler,
+HasSelectionHandlersTreeItem {
/**
 * Images used in the [EMAIL PROTECTED] Application}.
 */
@@ -69,18 +83,6 @@
}

/**
-   * A listener to handle events from the Application.
-   */
-  public interface ApplicationListener {
-/**
- * Fired when a menu item is selected.
- *
- * @param item the item that was selected
- */
-void onMenuItemSelected(com.google.gwt.user.client.ui.TreeItem item);
-  }
-
-  /**
  

[gwt-contrib] [google-web-toolkit commit] r3831 - branches/1_6_events/user/src/com/google/gwt/event/logical/shared

2008-10-23 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Thu Oct 23 11:18:57 2008
New Revision: 3831

Added:
 
branches/1_6_events/user/src/com/google/gwt/event/logical/shared/BeforeSelectionEvent.java

(contents, props changed)
 
branches/1_6_events/user/src/com/google/gwt/event/logical/shared/BeforeSelectionHandler.java

(contents, props changed)
 
branches/1_6_events/user/src/com/google/gwt/event/logical/shared/HasBeforeSelectionHandlers.java

(contents, props changed)

Log:
Added BeforeSelectionEvent and associated handlers and interfaces.

Patch by: jlabanca



Added:  
branches/1_6_events/user/src/com/google/gwt/event/logical/shared/BeforeSelectionEvent.java
==
--- (empty file)
+++  
branches/1_6_events/user/src/com/google/gwt/event/logical/shared/BeforeSelectionEvent.java
   
Thu Oct 23 11:18:57 2008
@@ -0,0 +1,103 @@
+/*
+ * Copyright 2008 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under
+ * the License.
+ */
+
+package com.google.gwt.event.logical.shared;
+
+import com.google.gwt.event.shared.AbstractEvent;
+
+/**
+ * Fired before an event source has selected a new value.
+ *
+ * @param Value the type of value the widget has selected
+ */
+public class BeforeSelectionEventValue extends AbstractEvent {
+
+  /**
+   * The event type.
+   */
+  public static final TypeBeforeSelectionEvent, BeforeSelectionHandler  
TYPE = new TypeBeforeSelectionEvent, BeforeSelectionHandler() {
+@Override
+protected void fire(BeforeSelectionHandler handler,
+BeforeSelectionEvent event) {
+  handler.onBeforeSelection(event);
+}
+  };
+
+  private Value oldValue;
+  private Value newValue;
+  private boolean canceled = false;
+
+  /**
+   * Constructor.
+   *
+   * @param oldValue the old value
+   * @param newValue the new value
+   */
+
+  public BeforeSelectionEvent(Value oldValue, Value newValue) {
+this.oldValue = oldValue;
+this.newValue = newValue;
+  }
+
+  /**
+   * Cancel the selection. Firing this will prevent a subsequent
+   * [EMAIL PROTECTED] SelectionEvent} from being fired.
+   */
+  public void cancel() {
+this.canceled = true;
+  }
+
+  /**
+   * Returns the new value.
+   *
+   * @return the new value
+   */
+  public Value getNewValue() {
+assertLive();
+return newValue;
+  }
+
+  /**
+   * Returns the old value.
+   *
+   * @return the old value
+   */
+  public Value getOldValue() {
+assertLive();
+return oldValue;
+  }
+
+  /**
+   * Check to see if this event has been canceled. If canceled, the  
subsequent
+   * [EMAIL PROTECTED] SelectionEvent} will not fire.
+   *
+   * @return true if the event has been canceled.
+   */
+  public boolean isCancelled() {
+return canceled;
+  }
+
+  @Override
+  public String toDebugString() {
+assertLive();
+return super.toDebugString() +  old =  + oldValue +  new = +  
newValue;
+  }
+
+  @Override
+  protected Type getType() {
+return TYPE;
+  }
+}

Added:  
branches/1_6_events/user/src/com/google/gwt/event/logical/shared/BeforeSelectionHandler.java
==
--- (empty file)
+++  
branches/1_6_events/user/src/com/google/gwt/event/logical/shared/BeforeSelectionHandler.java
 
Thu Oct 23 11:18:57 2008
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2008 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under
+ * the License.
+ */
+
+package com.google.gwt.event.logical.shared;
+
+import com.google.gwt.event.shared.EventHandler;
+
+/**
+ * Handler for [EMAIL PROTECTED] BeforeSelectionEvent} events.
+ *
+ * @param Value type of the selected value
+ */
+public interface BeforeSelectionHandlerValue extends EventHandler {
+  /**
+   * Fired before a value has been selected.
+   *
+   * @param event the event
+   */
+  void onBeforeSelection(BeforeSelectionEventValue event);
+}

Added:  

[gwt-contrib] [google-web-toolkit commit] r3832 - branches/1_6_events/user/src/com/google/gwt/user/client/ui

2008-10-23 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Thu Oct 23 11:21:36 2008
New Revision: 3832

Modified:
branches/1_6_events/user/src/com/google/gwt/user/client/ui/L.java
branches/1_6_events/user/src/com/google/gwt/user/client/ui/TabBar.java
 
branches/1_6_events/user/src/com/google/gwt/user/client/ui/TabListener.java

Log:
Converted TabListener to handlers in TabBar.  Conversion of TabPanel will  
be done soon.

Patch by: jlabanca



Modified: branches/1_6_events/user/src/com/google/gwt/user/client/ui/L.java
==
--- branches/1_6_events/user/src/com/google/gwt/user/client/ui/L.java
(original)
+++ branches/1_6_events/user/src/com/google/gwt/user/client/ui/L.java   Thu  
Oct 23 11:21:36 2008
@@ -61,6 +61,8 @@
  import com.google.gwt.event.dom.client.MouseWheelHandler;
  import com.google.gwt.event.dom.client.ScrollEvent;
  import com.google.gwt.event.dom.client.ScrollHandler;
+import com.google.gwt.event.logical.shared.BeforeSelectionEvent;
+import com.google.gwt.event.logical.shared.BeforeSelectionHandler;
  import com.google.gwt.event.logical.shared.CloseEvent;
  import com.google.gwt.event.logical.shared.CloseHandler;
  import com.google.gwt.event.logical.shared.OpenEvent;
@@ -101,6 +103,37 @@
  public void onCellClick(CellClickEvent event) {
listener.onCellClicked((SourcesTableEvents) event.getSource(),
event.getRowIndex(), event.getCellIndex());
+}
+  }
+
+  public static class Tab extends LTabListener implements
+  SelectionHandlerInteger, BeforeSelectionHandlerInteger {
+@Deprecated
+public static void add(TabBar source, TabListener listener) {
+  Tab t = new Tab(listener);
+  source.addBeforeSelectionHandler(t);
+  source.addSelectionHandler(t);
+}
+
+public static void remove(Widget eventSource, TabListener listener) {
+  baseRemove(eventSource, listener, SelectionEvent.TYPE,
+  BeforeSelectionEvent.TYPE);
+}
+
+protected Tab(TabListener listener) {
+  super(listener);
+}
+
+public void onBeforeSelection(BeforeSelectionEventInteger event) {
+  if (!listener.onBeforeTabSelected((SourcesTabEvents)  
event.getSource(),
+  event.getNewValue().intValue())) {
+event.cancel();
+  }
+}
+
+public void onSelection(SelectionEventInteger event) {
+  listener.onTabSelected((SourcesTabEvents) event.getSource(),
+  event.getNewValue().intValue());
  }
}


Modified:  
branches/1_6_events/user/src/com/google/gwt/user/client/ui/TabBar.java
==
--- branches/1_6_events/user/src/com/google/gwt/user/client/ui/TabBar.java  
 
(original)
+++ branches/1_6_events/user/src/com/google/gwt/user/client/ui/TabBar.java  
 
Thu Oct 23 11:21:36 2008
@@ -16,6 +16,13 @@
  package com.google.gwt.user.client.ui;

  import com.google.gwt.event.dom.client.HasKeyCodes;
+import com.google.gwt.event.logical.shared.BeforeSelectionEvent;
+import com.google.gwt.event.logical.shared.BeforeSelectionHandler;
+import com.google.gwt.event.logical.shared.HasBeforeSelectionHandlers;
+import com.google.gwt.event.logical.shared.HasSelectionHandlers;
+import com.google.gwt.event.logical.shared.SelectionEvent;
+import com.google.gwt.event.logical.shared.SelectionHandler;
+import com.google.gwt.event.shared.HandlerRegistration;
  import com.google.gwt.user.client.DOM;
  import com.google.gwt.user.client.Event;

@@ -25,30 +32,29 @@
   * p
   * img class='gallery' src='TabBar.png'/
   * /p
- * h3CSS Style Rules/h3
- * ul class='css'
- * li.gwt-TabBar { the tab bar itself }/li
- * li.gwt-TabBar .gwt-TabBarFirst { the left edge of the bar }/li
+ * h3CSS Style Rules/h3 ul class='css' li.gwt-TabBar { the tab bar
+ * itself }/li li.gwt-TabBar .gwt-TabBarFirst { the left edge of the  
bar }/li
   * li.gwt-TabBar .gwt-TabBarFirst-wrapper { table cell around the left  
edge }/li
- * li.gwt-TabBar .gwt-TabBarRest { the right edge of the bar }/li
- * li.gwt-TabBar .gwt-TabBarRest-wrapper { table cell around the right  
edge }/li
- * li.gwt-TabBar .gwt-TabBarItem { unselected tabs }/li
- * li.gwt-TabBar .gwt-TabBarItem-wrapper { table cell around tab }/li
- * li.gwt-TabBar .gwt-TabBarItem-selected { additional style for  
selected tabs }/li
- * li.gwt-TabBar .gwt-TabBarItem-wrapper-selected { table cell around  
selected tab}/li
+ * li.gwt-TabBar .gwt-TabBarRest { the right edge of the bar }/li li
+ * .gwt-TabBar .gwt-TabBarRest-wrapper { table cell around the right edge  
}/li
+ * li.gwt-TabBar .gwt-TabBarItem { unselected tabs }/li li.gwt-TabBar
+ * .gwt-TabBarItem-wrapper { table cell around tab }/li li.gwt-TabBar
+ * .gwt-TabBarItem-selected { additional style for selected tabs }/li  
li
+ * .gwt-TabBar .gwt-TabBarItem-wrapper-selected { table cell around  
selected
+ * tab}/li
+ *
+ * li.gwt-TabBar .gwt-TabBarItem-disabled { additional style for  
disabled tabs
+ * 

[gwt-contrib] Re: Dialog box has odd look when used as a gadget

2008-10-23 Thread Eric Ayers

The issue is that the images in the .css file weren't loading.  I
picked some rules out of standard.css and removed images from the
rules.

On Wed, Oct 22, 2008 at 11:28 AM, John LaBanca [EMAIL PROTECTED] wrote:
 I don't know much about gadgets or the restrictions they impose.  You could
 examine it in Firebug to see if the background images are included and make
 sure the border cells are the correct width and height.  To me, it looks
 like the images are not being included because the background colors are
 correct be the background images are not.  The DecoratorPanel doesn't
 support standards mode in all cases, so if you are in standards mode, that
 might explain the weirdness.  If you send me a link, I can take a look at it
 in Firebug.

 Thanks,
 John LaBanca
 [EMAIL PROTECTED]


 On Wed, Oct 22, 2008 at 11:20 AM, Eric Ayers [EMAIL PROTECTED] wrote:

 Hey John,

 When using the standard theme for GWT under a gadget, I'm getting some
 strange artifacts on the DialogBox.  The screenshot shows the rendered
 gadget and a slightly different version of the source code (the dialog box
 text doesn't match).   Basically, the animation looks good, but the
 decoration on the borders and rounded corners are missing.

 The permissions look good on the gwt/ directory in the public directory
 and some of the other parts of the standard theme are working - any ideas
 for where to look?

 -Eric.

 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USA
 http://code.google.com/webtoolkit/





-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

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



[gwt-contrib] [google-web-toolkit commit] r3834 - in branches/1_6_events: samples/showcase/src/com/google/gwt/sample/showcase/client user/s...

2008-10-23 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Thu Oct 23 15:25:49 2008
New Revision: 3834

Modified:
 
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/client/Showcase.java
branches/1_6_events/user/src/com/google/gwt/user/client/ui/L.java
branches/1_6_events/user/src/com/google/gwt/user/client/ui/TabBar.java
branches/1_6_events/user/src/com/google/gwt/user/client/ui/Tree.java

Log:
Switched tree and tab bar  to use selection events.

Modified:  
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/client/Showcase.java
==
---  
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/client/Showcase.java
 
(original)
+++  
branches/1_6_events/samples/showcase/src/com/google/gwt/sample/showcase/client/Showcase.java
 
Thu Oct 23 15:25:49 2008
@@ -227,7 +227,7 @@
  // Add a handler that sets the content widget when a menu item is  
selected
  app.addSelectionHandler(new SelectionHandlerTreeItem() {
public void onSelection(SelectionEventTreeItem event) {
-TreeItem item = event.getNewValue();
+TreeItem item = event.getSelectedItem();
  ContentWidget content = itemWidgets.get(item);
  if (content != null  !content.equals(app.getContent())) {
History.newItem(getContentWidgetToken(content));

Modified: branches/1_6_events/user/src/com/google/gwt/user/client/ui/L.java
==
--- branches/1_6_events/user/src/com/google/gwt/user/client/ui/L.java
(original)
+++ branches/1_6_events/user/src/com/google/gwt/user/client/ui/L.java   Thu  
Oct 23 15:25:49 2008
@@ -69,8 +69,9 @@
  import com.google.gwt.event.logical.shared.CloseHandler;
  import com.google.gwt.event.logical.shared.OpenEvent;
  import com.google.gwt.event.logical.shared.OpenHandler;
+import com.google.gwt.event.logical.shared.SelectionEvent;
+import com.google.gwt.event.logical.shared.SelectionHandler;
  import com.google.gwt.event.logical.shared.ValueChangeEvent;
-import com.google.gwt.event.logical.shared.ValueChangeHandler;
  import com.google.gwt.event.shared.AbstractEvent;
  import com.google.gwt.event.shared.EventHandler;
  import com.google.gwt.event.shared.HandlerManager;
@@ -135,7 +136,7 @@

  public void onSelection(SelectionEventInteger event) {
listener.onTabSelected((SourcesTabEvents) event.getSource(),
-  event.getNewValue().intValue());
+  event.getSelectedItem().intValue());
  }
}

@@ -317,13 +318,12 @@
}

public static class Tree extends LTreeListener implements
-  ValueChangeHandlerTreeItem, CloseHandlerTreeItem,
-  OpenHandlerTreeItem {
+  SelectionHandlerTreeItem, CloseHandlerTreeItem,  
OpenHandlerTreeItem {
  @Deprecated
  public static void add(com.google.gwt.user.client.ui.Tree tree,
  TreeListener listener) {
Tree t = new Tree(listener);
-  tree.addValueChangeHandler(t);
+  tree.addSelectionHandler(t);
tree.addCloseHandler(t);
tree.addOpenHandler(t);
  }
@@ -344,8 +344,8 @@
listener.onTreeItemSelected(event.getTarget());
  }

-public void onValueChange(ValueChangeEventTreeItem event) {
-  listener.onTreeItemSelected(event.getOldValue());
+public void onSelection(SelectionEventTreeItem event) {
+  listener.onTreeItemSelected(event.getSelectedItem());
  }
}


Modified:  
branches/1_6_events/user/src/com/google/gwt/user/client/ui/TabBar.java
==
--- branches/1_6_events/user/src/com/google/gwt/user/client/ui/TabBar.java  
 
(original)
+++ branches/1_6_events/user/src/com/google/gwt/user/client/ui/TabBar.java  
 
Thu Oct 23 15:25:49 2008
@@ -337,7 +337,7 @@
  selectedTab = panel.getWidget(index + 1);
  setSelectionStyle(selectedTab, true);

-fireEvent(new SelectionEventInteger(oldIndex, index));
+fireEvent(new SelectionEventInteger(index));
  return true;
}


Modified:  
branches/1_6_events/user/src/com/google/gwt/user/client/ui/Tree.java
==
--- branches/1_6_events/user/src/com/google/gwt/user/client/ui/Tree.java
 
(original)
+++ branches/1_6_events/user/src/com/google/gwt/user/client/ui/Tree.java
 
Thu Oct 23 15:25:49 2008
@@ -33,11 +33,11 @@
  import com.google.gwt.event.logical.shared.CloseHandler;
  import com.google.gwt.event.logical.shared.HasCloseHandlers;
  import com.google.gwt.event.logical.shared.HasOpenHandlers;
-import com.google.gwt.event.logical.shared.HasValueChangeHandlers;
+import com.google.gwt.event.logical.shared.HasSelectionHandlers;
  import com.google.gwt.event.logical.shared.OpenEvent;
  import com.google.gwt.event.logical.shared.OpenHandler;
-import com.google.gwt.event.logical.shared.ValueChangeEvent;