Re: GWT RPC with Python

2009-11-03 Thread rjcarr

I'm fairly certain that if you use Python then you can't use RPC
Object Serialization.  You'll have to make use of the JSON packages in
order to make this work.  Good luck!

On Nov 2, 12:42 am, maksud maksud.b...@gmail.com wrote:
 Hi,

 I am creating some application for google app engine with *python*. I am
 using *GWT* for the client side interface. But how to do RPC calls to
 python.

 I know Google App Engine java version could do that easily and I tested it
 well. But for Python what are the options.

 I triedhttp://code.google.com/p/python-gwt-rpc/project. But due to lack of
 documentation I could not manage it.

 Thanks in advance.

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



retrieving real Class name ?

2009-11-03 Thread Ed

I am running against gwt 2.0 ms1 and have set disableClassMetadata to
true during compile.
Now I get to see class names like Class$$Qe.  How can I use this to
retrieve the real class name ?

I remember Bruce telling during the Google I/O something about Class
name mapping tools coming up ? ;(... But can't find anything about
this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Error when I create widget...

2009-11-03 Thread Nguyen Kim Kha

I'm newbie... I wrote one file:

public class NewProj implements EntryPoint {
/**
 * This is the entry point method.
 */
public void onModuleLoad() {
LoginBox login = new LoginBox(kkk);
RootPanel.get(left).add(login);
}
}

And in file LoginBox.java:

public class LoginBox extends Composite {
private VerticalPanel content = new VerticalPanel();
public LoginBox(String caption) {
final Label labelCaption = new Label(caption);
content.add(labelCaption);
initWidget(content);
}
}

But when I run it, in GWT Hosted Mode window, there is error message:
 No source code is available for type kakalia.appengine.demo.LoginBox;
did you forget to inherit a required module?

I don't know why, pls help me

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



Re: retrieving real Class name ?

2009-11-03 Thread Thomas Broyer



On 3 nov, 09:38, Ed post2edb...@hotmail.com wrote:
 I am running against gwt 2.0 ms1 and have set disableClassMetadata to
 true during compile.
 Now I get to see class names like Class$$Qe.  How can I use this to
 retrieve the real class name ?

 I remember Bruce telling during the Google I/O something about Class
 name mapping tools coming up ? ;(... But can't find anything about
 this.

What Bruce talked about was the story of you compile, in the form of
the -soyc argument to the compiler and the soyc dashboard
(com.google.gwt.soyc.SoycDashboard class, it has a main())
See 
http://code.google.com/p/google-web-toolkit/wiki/CodeSplitting#The_Story_of_Your_Compile_%28SOYC%29
(a little bit outdated AFAICT, as for instance the -soyc argument is
present on both Compiler and GWTCompiler).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: retrieving real Class name ?

2009-11-03 Thread ed bras
Thanks Thomas, I am aware of the soyc, but Bruce also talked about the
symbol map that can be used on the server to restore your methods/class
names, etc...:
http://code.google.com/events/io/2009/sessions/GwtPreviewGoogleWebToolkit2.html(53:30).
However, I can't find any info on this symbol map usage. Where can I find it
?



On Tue, Nov 3, 2009 at 10:15 AM, Thomas Broyer t.bro...@gmail.com wrote:




 On 3 nov, 09:38, Ed post2edb...@hotmail.com wrote:
  I am running against gwt 2.0 ms1 and have set disableClassMetadata to
  true during compile.
  Now I get to see class names like Class$$Qe.  How can I use this to
  retrieve the real class name ?
 
  I remember Bruce telling during the Google I/O something about Class
  name mapping tools coming up ? ;(... But can't find anything about
  this.

 What Bruce talked about was the story of you compile, in the form of
 the -soyc argument to the compiler and the soyc dashboard
 (com.google.gwt.soyc.SoycDashboard class, it has a main())
 See
 http://code.google.com/p/google-web-toolkit/wiki/CodeSplitting#The_Story_of_Your_Compile_%28SOYC%29
 (a little bit outdated AFAICT, as for instance the -soyc argument is
 present on both Compiler and GWTCompiler).
 


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



GWT Native Code Deployment

2009-11-03 Thread Darin

Hello.

I have written a GWT project that uses native code. The class that
calls the code looks like this:

public class NativeCodeClass {
static {
System.loadLibrary(SolverLibrary);
}
public native String validatePassword(String username, String
password);
}

When I compile and run this inside of Eclipse (hosted mode), the
native code runs (assuming that I uncheck the Use Google App Engine)
just fine. I have also tested the compiled code (including the native
code) inside the Mozilla browser and it also runs as it should.
Unfortunately, when I deploy my code to the server, the Javascript
does not seem to be able to find my native library (SolverLibrary)
even though the Javascript is definitely working. I have tried copying
the library to every conceivable location that I could think of but
have thus far failed. I am running Windows XP and using Apache as my
http server. Any ideas for where I should put the native library so
that the Javascript can find it?

Disclaimer: I am a definite newbie with GWT and a mathematician by
trade. If I am doing something outrageously stupid, I apologize for
wasting everyone's time, but please let me know what I'm doing wrong
so that I don't wind up smashing my computer and scaring my son.
Thanks, Darin

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



GWT customizing the decoratedstackpanel

2009-11-03 Thread Chris Clarin

Hello,

I'm fairly new to GWT and have been using the Mail sample as the base
code for the application i'm building. I would like to change the
decorated stackpanel background image. When I look here:
http://gwt.google.com/samples/Mail/Mail.html the background of the
items in the panel is green, but when i use the source in my local, it
becomes blue, what do i change in the css such that it shows green
rather than blue? And such that the text is white instead of black?
I've been trying to work around mail.css for awhile now but to no
avail.

Any help would be greatly appreciated.

Thank you!

Best Regards,

Chris

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



incubator's PagingScrollTable(pagination+Sorting)

2009-11-03 Thread shloka

Hi All,
I am trying to implement pagination and sorting using the Incubator's
paging scroll table .Could do pagination but Sorting is not happening.
Please pool in some ideas to solve this.Any guidence is highly
appreciated.
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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.7.1 don't show app in hosted mode (Jetty bug: FULL head)

2009-11-03 Thread Rodrigo

Hi,

Same here.

GXT does use cookies for storing theme related things.

See:
http://www.extjs.com/deploy/gxtdocs/com/extjs/gxt/ui/client/state/StateManager.html

It seems it is writing the cookies many times on the file
user@localhost[1].txt.

After deleting this file my application seems to work. I say seems
because there
is another error that looks like has nothing to do with the original
post.

[ERROR] Unable to load module entry point class com.xxx.App (see
associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError):
'$doc.defaultView' is null or not an object
 number: -2146823281
 description: '$doc.defaultView' is null or not an object
at
com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl.getComputedStyle
(Native Method)
at
com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl.getStyleAttribute
(ComputedStyleImpl.java:27)
at com.extjs.gxt.ui.client.core.El.getStyleAttribute(El.java:1236)
at com.extjs.gxt.ui.client.util.IconHelper.createStyle
(IconHelper.java:77)
at com.extjs.gxt.ui.client.util.IconHelper.create(IconHelper.java:
107)
at com.extjs.gxt.ui.client.util.IconHelper.create(IconHelper.java:93)
at com.extjs.gxt.ui.client.widget.button.Button.setIconStyle
(Button.java:357)
at com.xxx.App.Editor.init(Editor.java:104)
at com.xxx.App.onModuleLoad(App.java:27)


R.

On Oct 28, 1:12 pm, Rajeev Dayal rda...@google.com wrote:
 Hm, I would have expected that to work. Can you verify that when this
 problem happens, you have large cookies in the directories that you tried to
 clear?

 I believe that the Vista cookies directory is:

 C:\Users\ your user name\AppData\Roaming\Microsoft\Windows\Cookies

 2009/10/17 lain yana-afanas...@ya.ru



   My suspicion is that there is some sort of cookie problem
  You are completely right.

  Now my application works fine without any configurations (because
  cookies expiration date has come, I think), so this bug was really a
  problem with cookies.
  But this problem may occur again in the future. =(

  If you know where the hosted browser stores cookies, could you tell
  me? Probably, they were not stored in those directories, which I
  cleaned.

  On 14 окт, 21:58, Rajeev Dayal rda...@google.com wrote:
   As an FYI, I think the default buffer size on Jetty 6 is 8k, so your
  current
   setting will not change anything. However, you should really not need to
   modify Jetty's parameters in this way. Do you have any idea as to why
  your
   request header could be more than 8k in size?
   Can you compile your app, and then use FireFox with Firebug, and post
  your
   HTTP Request header (maybe attach it as a text file, if it is indeed
  8k+).
   - Показать цитируемый текст -



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



When to use concrete implementations of Collections in GWT

2009-11-03 Thread tbb

Hi all,

I'm looking for a guideline in the GWT context (client classes and
serialized classes) about when it is recommended to declare fields as
concrete implementations of java.util Collections, i.e.
ArrayListString rather than ListString.

I found that classes used in RPC calls, fields should be declared with
concrete types.

Does this apply to pure client-side (compiled to Javascript) classes
as well? If so, what would be the downside of using the generic
interface? A larger compiler Javascript file?

Thanks
Thomas

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



Re: Can you get the compiler to list the permutations?

2009-11-03 Thread Martin Hutchinson

Thanks for the hint about looking in the .nocache.js file.  My
permutations were caused by:

extend-property name=locale values=en/

This actually tried to compile default and en.  Removing this line
works in our application as we only have language bundles in English
at the moment.

Martin

On Oct 31, 2:26 am, Sripathi Krishnan sripathi.krish...@gmail.com
wrote:
 We are using all the modules except the GwtExt ones, and are able to get
 down to a single permutation - so it is likely that the permutations are
 caused by something over there.

 You could try opening up the .gwt.xml for the GWT EXT modules and see if
 they have any replace-with statements. That would throw light on what
 properties are driving the permutations.

 You could also pass in the -style PRETTY to gwtc, and then look at the
 generated module/module.nocache.js file. It usually has a map from
 various properties (user agent, language, and your mysterious parameter) to
 the strong, MD5 file name. By inspecting the table, you should be able to
 figure out what is causing the extra permutations. This is how the map looks
 on my machine --

     try {
       unflattenKeylistIntoAnswers(['opera'],
 '34478C007220DB07F52AB22169457501');
       unflattenKeylistIntoAnswers(['ie6'],
 '872904FEB2B0C8ABFEEF5D761EE7FEF4');
       unflattenKeylistIntoAnswers(['safari'],
 'B30F09E1C9B5B042E928F79F73C1C79B');
       unflattenKeylistIntoAnswers(['gecko1_8'],
 'B712029A53D248F96310715A52A54CBA');
       unflattenKeylistIntoAnswers(['gecko'],
 'BAAA33CCD5FA4984C7DB8207E830D268');
       unflattenKeylistIntoAnswers(['ie8'],
 'C1B0450CB888E93E17495AEDAE49EB45');
       strongName = answers[computePropValue('user.agent')];
       initialHtml = strongName + '.cache.html';
     }
      catch (e) {
       return;
     }

 --Sri

 2009/10/29 Martin Hutchinson mhutchin...@gmail.com



  To speed up development I've tried to cut down the number of
  permutations that are compiled by fixing the language and user agent.
  I'm curious as to why I can't get the number of permutations down to
  1, even when fixing the user agent to gecko and the language to
  en.  I've tried to increase the compiler output from INFO to TRACE,
  but the sheer volume of output makes it hard to pick out the important
  bits.

  This is the .gwt.xml for the module, if this helps shed any light:

  module rename-to=viewer

         !-- Other modules that we depend on. --
         inherits name='com.google.gwt.user.User'/ !-- Core GWT --
     inherits name=com.google.gwt.i18n.I18N/ !--
  Internationalization --
     inherits name='com.gwtext.GwtExt'/ !-- GWT-Ext --
     inherits name=com.gwtextux.GwtExtUxNoScript/ !-- GWT-Ext Ux --

     inherits name=com.allen_sauer.gwt.log.gwt-log / !-- GWT
  logging --

         entry-point class='com.example.MyGWTApplication'/

     source path=client/
     source path=shared/
     source path=formatting/
     source path=rpc/
     source path=serialization/
     source path=servlets/
     source path=utils/

     extend-property name=locale values=en/

     extend-property name=log_level values=OFF /

      !-- For dev only: only support FireFox. This speeds up
  compilation --
     set-property name=user.agent value=gecko /

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



RichTextArea gotchas

2009-11-03 Thread Martin Trummer

If you are using or are planing to use GWTs RichTextArea (or GXTs,
which is basically the same), then the following blog post may be
interessting for you
http://martin-trummer.blogspot.com/2009/11/wysiwyg-gotchas.html

I am already keen to get to know your point of view about
 * this topic
 * the problems, that I've outlined
 * any proposals, improvements or
 * or better solutions than mine
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Issues using Eclipse and GWT Plugin in Ubuntu Karmic (9.10)

2009-11-03 Thread Bob Rozelle

Jason,

Thanks for looking into this.  When I get time I'm going to report the
search problem on Build id: 20090920-1017 to Ubuntu and Eclipse.  Just
a little busy right now.  I found that search is working if I hit
return while in the search box, but not when I press the search
button.

On Nov 2, 2:15 pm, Jason Parekh jasonpar...@gmail.com wrote:
 Hey guys,

 Typically when this happens, the flavor of Eclipse (e.g. Eclipse for Java)
 does not have the necessary update sites bundled to get the missing
 dependencies (in this case, WST).  I'll try verifying this tonight on a
 Karmic machine.

 jason

 2009/11/1 ddawster zhang ddaws...@gmail.com



  On 11月1日, 下午7时10分, Bob Rozelle broze...@eatlocalfood.com wrote:
   Upgraded to Ubuntu Karmic and now I'm having issues:

   I've got my own copy of Eclipse Gallileo (Build id: 20090920-1017),
   everything worked fine before the upgrade, but now the search
   mechanisms are broken (in file and through the search tab). Click the
   Search Button and nothing happens.

   So I thought, let me check out the official Ubuntu version of
   eclipse (Version: 3.5.1
   Build id: M20090917-0800).  I started that up and attempted to install
   the GWT Plugin and got the following error:

   one or more required items could not be found.
 Software being installed: Google Plugin for Eclipse 3.5
   1.1.2.v200910131704
   (com.google.gdt.eclipse.suite.e35.feature.feature.group
   1.1.2.v200910131704)
 Missing requirement: Google Plugin for Eclipse 3.5
   1.1.2.v200910131704
   (com.google.gdt.eclipse.suite.e35.feature.feature.group
   1.1.2.v200910131704) requires 'org.eclipse.wst.sse.ui 0.0.0' but it
   could not be found

   Any thoughts?

   Bob

  me too

  The problem if you had solved.Please send a email to  me. my email is
  ddaws...@gmail.com  Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RichTextArea gotchas

2009-11-03 Thread Thomas Broyer



On 3 nov, 12:25, Martin Trummer martin.trum...@24act.at wrote:
 If you are using or are planing to use GWTs RichTextArea (or GXTs,
 which is basically the same), then the following blog post may be
 interessting for 
 youhttp://martin-trummer.blogspot.com/2009/11/wysiwyg-gotchas.html

 I am already keen to get to know your point of view about
  * this topic
  * the problems, that I've outlined
  * any proposals, improvements or
  * or better solutions than mine

Use CKEditor? from what I've read (haven't used it yet), you have a
total control over the serialization (at the expense of not relying
on the browser's innerHTML) and it already unifies the HTML produced
by the rich text area.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Can you get the compiler to list the permutations?

2009-11-03 Thread Thomas Broyer



On 3 nov, 12:20, Martin Hutchinson mhutchin...@gmail.com wrote:
 Thanks for the hint about looking in the .nocache.js file.  My
 permutations were caused by:

 extend-property name=locale values=en/

 This actually tried to compile default and en.  Removing this line
 works in our application as we only have language bundles in English
 at the moment.

You could have used set-property name=locale value=en / too,
just like you used set-property name=user.agent value=gecko /
already (er, gecko is for Firefox pre-1.5, only needed for the linux
hosted mode actually, use gecko1_8 for any real use of Firefox)


 Martin

 On Oct 31, 2:26 am, Sripathi Krishnan sripathi.krish...@gmail.com
 wrote:



  We are using all the modules except the GwtExt ones, and are able to get
  down to a single permutation - so it is likely that the permutations are
  caused by something over there.

  You could try opening up the .gwt.xml for the GWT EXT modules and see if
  they have any replace-with statements. That would throw light on what
  properties are driving the permutations.

  You could also pass in the -style PRETTY to gwtc, and then look at the
  generated module/module.nocache.js file. It usually has a map from
  various properties (user agent, language, and your mysterious parameter) to
  the strong, MD5 file name. By inspecting the table, you should be able to
  figure out what is causing the extra permutations. This is how the map looks
  on my machine --

      try {
        unflattenKeylistIntoAnswers(['opera'],
  '34478C007220DB07F52AB22169457501');
        unflattenKeylistIntoAnswers(['ie6'],
  '872904FEB2B0C8ABFEEF5D761EE7FEF4');
        unflattenKeylistIntoAnswers(['safari'],
  'B30F09E1C9B5B042E928F79F73C1C79B');
        unflattenKeylistIntoAnswers(['gecko1_8'],
  'B712029A53D248F96310715A52A54CBA');
        unflattenKeylistIntoAnswers(['gecko'],
  'BAAA33CCD5FA4984C7DB8207E830D268');
        unflattenKeylistIntoAnswers(['ie8'],
  'C1B0450CB888E93E17495AEDAE49EB45');
        strongName = answers[computePropValue('user.agent')];
        initialHtml = strongName + '.cache.html';
      }
       catch (e) {
        return;
      }

  --Sri

  2009/10/29 Martin Hutchinson mhutchin...@gmail.com

   To speed up development I've tried to cut down the number of
   permutations that are compiled by fixing the language and user agent.
   I'm curious as to why I can't get the number of permutations down to
   1, even when fixing the user agent to gecko and the language to
   en.  I've tried to increase the compiler output from INFO to TRACE,
   but the sheer volume of output makes it hard to pick out the important
   bits.

   This is the .gwt.xml for the module, if this helps shed any light:

   module rename-to=viewer

          !-- Other modules that we depend on. --
          inherits name='com.google.gwt.user.User'/ !-- Core GWT --
      inherits name=com.google.gwt.i18n.I18N/ !--
   Internationalization --
      inherits name='com.gwtext.GwtExt'/ !-- GWT-Ext --
      inherits name=com.gwtextux.GwtExtUxNoScript/ !-- GWT-Ext Ux --

      inherits name=com.allen_sauer.gwt.log.gwt-log / !-- GWT
   logging --

          entry-point class='com.example.MyGWTApplication'/

      source path=client/
      source path=shared/
      source path=formatting/
      source path=rpc/
      source path=serialization/
      source path=servlets/
      source path=utils/

      extend-property name=locale values=en/

      extend-property name=log_level values=OFF /

       !-- For dev only: only support FireFox. This speeds up
   compilation --
      set-property name=user.agent value=gecko /

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



Pdf on the server cannot be displayed

2009-11-03 Thread Haydar

Hi all,

I have used gwt , ext gwt and jasperreports in my project.
I have a server side and client side. My client side enters some
values to some textfields
and presses Get report button. Then on the server side it connects
to database takes
the records needed and creates a report with these records. Server
side returns the
address of created report to the client and on the client side I open
a new ext gwt
window and set the url to the returned address. But I can see nothing.
The report is created under the address it returns but it does not
display it. The weird thing is that when there is a report(with the
same name) in the specified directory, I run the program again and it
displays the report. But when i delete the report there and run again
it does not display and say that source not found, blabla.pdf not
found. The warninng message is:
* [TRACE] The development shell servlet received a request for
'blabla.pdf' in module '..gwt.xml'
* [WARN] Resource not found: blabla.pdf; (could a file be missing
from the public path or a servlet tag misconfigured in module
..gwt.xml ?)

How can I solve this issue? What is it related with???

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



Re: retrieving real Class name ?

2009-11-03 Thread Thomas Broyer



On 3 nov, 10:46, ed bras post2edb...@gmail.com wrote:
 Thanks Thomas, I am aware of the soyc, but Bruce also talked about the
 symbol map that can be used on the server to restore your methods/class
 names, 
 etc...:http://code.google.com/events/io/2009/sessions/GwtPreviewGoogleWebToo...).
 However, I can't find any info on this symbol map usage. Where can I find it
 ?

See 
http://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions#Resymbolization
(again, a little out of date, as for instance, the generated files are
named permutationStrongName.symbolMap and appear to be CSV files,
not properties files)
Symbol maps are private artifacts, so you have to pass the -extra
argument to the compiler to have them saved on disk.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How can I disable context menu in RichTextArea?

2009-11-03 Thread Nathan Wells

Taimur,

not sure why Michael solution isn't working for you... try this out:

  protected void blockBrowserContextMenu(Element elem) {
  elem.setAttribute(oncontextmenu, return false;);
  }

HTH

On Nov 3, 5:22 am, Taimur Mirxa taim...@gmail.com wrote:
 I have checked the GoogleDocs application, in Google docs, it is also
 showing the customized menu instead of broswer's menu. hope if you guys can
 come up with any idea how it is accomplishing it?

 the snap is also attached with this email.

 2009/11/3 Dimitrijević Ivan dim...@gmail.com







  Do not use right-mouse click popup menu. This is not supported by all
  browsers. For instance, in Opera you should change configuration in
  order to allow scripts to handle context menu events. Instead you can
  detect mouse-over event, and depending of object which is hovered, you
  can display a panel that contain options (Just like MS Word does, or
  GMail when you select picture).

  On Nov 3, 6:46 am, Taimur Mirxa taim...@gmail.com wrote:
   Mike,

   I really appreciate your help, but this is not working in firefox. on the
   other side this method is working fine in hosted mode and IE. any idea?

   On Mon, Nov 2, 2009 at 12:04 PM, Michael Sullivan msull...@yahoo.com
  wrote:

In your client code somewhere, create this native function:
       protected native void blockBrowserContextMenu(Element elem) /*-{
           elem.oncontextmenu = function(e) {
             return false;
           };
         }-*/;

Then, when you create your RichTextArea, call 'getElement()' on your
RTA instance and pass it to the given native method.
That will block browser context menus for that instance of
RichTextArea and for no other part of your UI.  (Though you may want
to consider
re-implementing Cut/Copy/Paste on your custom menu, as they may be
expected by your users).

Mike

On Nov 2, 8:39 am, Taimur Mirxa taim...@gmail.com wrote:
 Folks,

 I have created my own popup menu, which I want to display in
RichTextArea,
 and it is appearing with right mouse click. my problem is that
  default
 broswer's context menu does also appear along with my menu. is there
  any
 resolution for this?

 I have seen lots of examples and code but all of them were disabling
 broswer's default menu that shows View Source and other options, I do
  not
 want to disable it, rather my point is to disable the context menu
  which
 appears in text fields or rich text areas.

 --
 Warm Regards,

 Taimur Mirza

 [To predict the behavior of ordinary people in advance, you only have
  to
 assume that they will always try to escape a disagreeable situation
  with
the
 smallest possible expenditure of intelligence.  - Friedrich
  Nietzsche]

   --
   Warm Regards,

   Taimur Mirza

   [To predict the behavior of ordinary people in advance, you only have to
   assume that they will always try to escape a disagreeable situation with
  the
   smallest possible expenditure of intelligence.  - Friedrich Nietzsche]

 --
 Warm Regards,

 Taimur Mirza

 [To predict the behavior of ordinary people in advance, you only have to
 assume that they will always try to escape a disagreeable situation with the
 smallest possible expenditure of intelligence.  - Friedrich Nietzsche]

  with browser menu.JPG
 42KViewDownload

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



Re: retrieving real Class name ?

2009-11-03 Thread ed bras
Thanks Thomas, I found the symbol maps, they are not so small in my case (6
files, 6 MB each)...  I get the idea that the class names mapping are spread
through all files.
I think there is no tooling support yet.

BTW: what is exactly a private artifact and what kind of artificats are
there ?

On Tue, Nov 3, 2009 at 2:24 PM, Thomas Broyer t.bro...@gmail.com wrote:




 On 3 nov, 10:46, ed bras post2edb...@gmail.com wrote:
  Thanks Thomas, I am aware of the soyc, but Bruce also talked about the
  symbol map that can be used on the server to restore your methods/class
  names, etc...:
 http://code.google.com/events/io/2009/sessions/GwtPreviewGoogleWebToo...).
  However, I can't find any info on this symbol map usage. Where can I find
 it
  ?

 See
 http://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions#Resymbolization
 (again, a little out of date, as for instance, the generated files are
 named permutationStrongName.symbolMap and appear to be CSV files,
 not properties files)
 Symbol maps are private artifacts, so you have to pass the -extra
 argument to the compiler to have them saved on disk.
 


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



Re: How can I disable context menu in RichTextArea?

2009-11-03 Thread Jason Morris

To re-iterate what has already been said: you can't truly disable this menu in 
Opera (in fact you 
won't even get the event by default).

However, if you are determined to try, this may help:

public class MyRichTextArea extends RichTextArea {

public MyRichTextArea() {
addDomHandler(new ContextMenuHandler() {
public void onContextMenu(ContextMenuEvent event) {
// open your popup menu here
event.preventDefault();
}
}, ContextMenuEvent.getType());
}

}

This should work as expected for most browsers.

Taimur Mirxa wrote:
 I have checked the GoogleDocs application, in Google docs, it is also 
 showing the customized menu instead of broswer's menu. hope if you guys 
 can come up with any idea how it is accomplishing it?
 
 the snap is also attached with this email.
 
 2009/11/3 Dimitrijević Ivan dim...@gmail.com mailto:dim...@gmail.com
 
 
 Do not use right-mouse click popup menu. This is not supported by all
 browsers. For instance, in Opera you should change configuration in
 order to allow scripts to handle context menu events. Instead you can
 detect mouse-over event, and depending of object which is hovered, you
 can display a panel that contain options (Just like MS Word does, or
 GMail when you select picture).
 
 
 On Nov 3, 6:46 am, Taimur Mirxa taim...@gmail.com
 mailto:taim...@gmail.com wrote:
   Mike,
  
   I really appreciate your help, but this is not working in
 firefox. on the
   other side this method is working fine in hosted mode and IE. any
 idea?
  
   On Mon, Nov 2, 2009 at 12:04 PM, Michael Sullivan
 msull...@yahoo.com mailto:msull...@yahoo.comwrote:
  
  
  
  
  
  
  
In your client code somewhere, create this native function:
   protected native void blockBrowserContextMenu(Element
 elem) /*-{
   elem.oncontextmenu = function(e) {
 return false;
   };
 }-*/;
  
Then, when you create your RichTextArea, call 'getElement()' on
 your
RTA instance and pass it to the given native method.
That will block browser context menus for that instance of
RichTextArea and for no other part of your UI.  (Though you may
 want
to consider
re-implementing Cut/Copy/Paste on your custom menu, as they may be
expected by your users).
  
Mike
  
On Nov 2, 8:39 am, Taimur Mirxa taim...@gmail.com
 mailto:taim...@gmail.com wrote:
 Folks,
  
 I have created my own popup menu, which I want to display in
RichTextArea,
 and it is appearing with right mouse click. my problem is
 that default
 broswer's context menu does also appear along with my menu.
 is there any
 resolution for this?
  
 I have seen lots of examples and code but all of them were
 disabling
 broswer's default menu that shows View Source and other
 options, I do not
 want to disable it, rather my point is to disable the context
 menu which
 appears in text fields or rich text areas.
  
 --
 Warm Regards,
  
 Taimur Mirza
  
 [To predict the behavior of ordinary people in advance, you
 only have to
 assume that they will always try to escape a disagreeable
 situation with
the
 smallest possible expenditure of intelligence.  - Friedrich
 Nietzsche]
  
   --
   Warm Regards,
  
   Taimur Mirza
  
   [To predict the behavior of ordinary people in advance, you only
 have to
   assume that they will always try to escape a disagreeable
 situation with the
   smallest possible expenditure of intelligence.  - Friedrich
 Nietzsche]
 
 
 
 
 -- 
 Warm Regards,
 
 Taimur Mirza
 
 [To predict the behavior of ordinary people in advance, you only have to 
 assume that they will always try to escape a disagreeable situation with 
 the smallest possible expenditure of intelligence.  - Friedrich Nietzsche]
 
  
 
 
 
 
 
 

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



Re: GWT Native Code Deployment

2009-11-03 Thread Jeff Chimene
Darin:

You can't call client-side Java from the compiled code. If you were to
provide a Java server, you could call your solver library via RPC, then
display the results on the client.

The client-side code at run-time is Javascript. You use GWT to write,
compile, test in Java. The run-time is Javascript.

On Mon, Nov 2, 2009 at 4:37 PM, Darin daring90...@gmail.com wrote:


 Hello.

 I have written a GWT project that uses native code. The class that
 calls the code looks like this:

 public class NativeCodeClass {
static {
System.loadLibrary(SolverLibrary);
}
public native String validatePassword(String username, String
 password);
 }

 When I compile and run this inside of Eclipse (hosted mode), the
 native code runs (assuming that I uncheck the Use Google App Engine)
 just fine. I have also tested the compiled code (including the native
 code) inside the Mozilla browser and it also runs as it should.
 Unfortunately, when I deploy my code to the server, the Javascript
 does not seem to be able to find my native library (SolverLibrary)
 even though the Javascript is definitely working. I have tried copying
 the library to every conceivable location that I could think of but
 have thus far failed. I am running Windows XP and using Apache as my
 http server. Any ideas for where I should put the native library so
 that the Javascript can find it?

 Disclaimer: I am a definite newbie with GWT and a mathematician by
 trade. If I am doing something outrageously stupid, I apologize for
 wasting everyone's time, but please let me know what I'm doing wrong
 so that I don't wind up smashing my computer and scaring my son.
 Thanks, Darin

 


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



Re: GWT Native Code Deployment

2009-11-03 Thread Jeff Chimene
Darin:

There is one other possibility. You mention that you ... tested the
compiled code (including the native
code) inside the Mozilla browser and it also runs as it should.

What's happening is that the Java run-time is able to load and run your
library in hosted mode. But, that doesn't mean that you can compile this
library to Javascript. Try putting the library into the classpath, modify
your code to instantiate whatever classes you need, and compile (rather than
run in hosted mode). You cannot use LoadLibrary on the client side: there is
no Java runtime.

On Mon, Nov 2, 2009 at 4:37 PM, Darin daring90...@gmail.com wrote:


 Hello.

 I have written a GWT project that uses native code. The class that
 calls the code looks like this:

 public class NativeCodeClass {
static {
System.loadLibrary(SolverLibrary);
}
public native String validatePassword(String username, String
 password);
 }

 When I compile and run this inside of Eclipse (hosted mode), the
 native code runs (assuming that I uncheck the Use Google App Engine)
 just fine. I have also tested the compiled code (including the native
 code) inside the Mozilla browser and it also runs as it should.
 Unfortunately, when I deploy my code to the server, the Javascript
 does not seem to be able to find my native library (SolverLibrary)
 even though the Javascript is definitely working. I have tried copying
 the library to every conceivable location that I could think of but
 have thus far failed. I am running Windows XP and using Apache as my
 http server. Any ideas for where I should put the native library so
 that the Javascript can find it?

 Disclaimer: I am a definite newbie with GWT and a mathematician by
 trade. If I am doing something outrageously stupid, I apologize for
 wasting everyone's time, but please let me know what I'm doing wrong
 so that I don't wind up smashing my computer and scaring my son.
 Thanks, Darin

 


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



GWT 1.7 compiling from Ant

2009-11-03 Thread grasshopper

Hello all,

I've just migrated a project from GWT 1.5 to GWT 1.7. While before i
could compile the GWT project from an ant file with the following
code:

target name=compile
exec executable=${root.dir}/HelloWorld-compile.cmd
failonerror=true/
/target

I can't do so anymore in GWT 1.7. I've search the group postings and
the closes i've come to some help is to do the following:

java failonerror=true fork=true
classname=com.google.gwt.dev.Compiler
classpath
path refid=${root.dir}/.classpath/
/classpath
/java

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



Re: incubator's PagingScrollTable(pagination+Sorting)

2009-11-03 Thread Davis Ford
Sorting does seem to work out of the box.  I ended up building my own
comparators.

Here's an example of what I did.  I was going to write up a longer blog
entry on this -- just haven't had time.

Let's say I have a simple object like this for my RowValue:

public class Person {
   private final String first;
   private final String last;
   public Person(String first, String last) { first = first; last = last; }
   public String getFirst() { return first; }
   public String getLast() { return last; }
}

So, I have to define my table model for Person =

private final classs DataSourceTableModel extends MutableTableModelPerson
{

private ListPerson list = new ArrayListPerson();

public void setData(ListPerson list) { this.list = list; }

public void requestRows(final Request request,
TableModel.CallbackPerson callback) {
callback.onRowsReady(request, new ResponsePerson() {
@Override
public IteratorPerson getRowValues() {
int col =
request.getColumnSortList().getPrimaryColumn();
boolean ascending =
request.getColumnSortList().isPrimaryAscending();

/* col tells you which column the user clicked and
ascending indicates whether to sort up/down */
/* i wrote my own Sorter class that knows how to sort a
collection of my own RowValue T here */
/* return the iterator of your sorted collection */
   }};
 }
}

There's a bit more to it, but I found that PagingScrollTable does not sort
by itself -- never worked for me.  I filed a bug on it.  Thus, I do the
sorting myself, and it works well.

Hope that helps,
Davis

On Mon, Nov 2, 2009 at 11:35 PM, shloka chythanya@gmail.com wrote:


 Hi All,
 I am trying to implement pagination and sorting using the Incubator's
 paging scroll table .Could do pagination but Sorting is not happening.
 Please pool in some ideas to solve this.Any guidence is highly
 appreciated.
 Thanks in Advance.

 



-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

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



StockWatcher User Service Google Account login only works in hosted mode

2009-11-03 Thread Bryce Thomas

Hi all,

I'm just starting out with GWT working through the StockWatcher
tutorial, developing in Eclipse with the Google Plugin.  I'm using GWT
1.7.1 SDK with App Engine 1.2.6 SDK.  Everything has gone fine in the
tutorial, up until the point with implementing the user sign in/sign
out with the LoginService.  I'm currently working through the tutorial
page at http://code.google.com/webtoolkit/tutorials/1.6/appengine.html
and am up to 3. Personalize the application with the User Service.
I've followed on with the code for all of this section and have tested
it in hosted mode where it works perfectly.

When I hit the Compile/Browse button, it compiles with no errors and
opens a browser window.  The problem is, the browser only displays the
start of the page (the Google code image and the StockWatcher
heading) and has not rendered any of the sign in/sign out links that I
see in hosted mode, or the stock table stuff below it.  Prior to
implementing the user sign in/sign out, all previous compiles had
worked perfectly and I had even deployed the example to AppEngine and
had it running on the Internet.  I'm stumped as to why it's not
working now.  For the version I've deployed to AppEngine I've checked
through the logs and there's no errors recorded there and I don't know
where to go looking for a solution.

Any help is much appreciated,

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



FlexTable Row MouseOver

2009-11-03 Thread miller

I would like to receive MouseOver event for a row in a FlexTable and I
have not been able to figure it out.  Any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: StockWatcher User Service Google Account login only works in hosted mode

2009-11-03 Thread Bryce Thomas

Ok, did some more testing and it looks as though it works fine in
Internet Explorer 8, but not in Chrome 3.0.195.27 or Firefox 3.5.4.
Is there any known compatibility problems, or settings somewhere that
I should be looking to change?

On Nov 4, 1:47 am, Bryce Thomas mongrelunleas...@gmail.com wrote:
 Hi all,

 I'm just starting out with GWT working through the StockWatcher
 tutorial, developing in Eclipse with the Google Plugin.  I'm using GWT
 1.7.1 SDK with App Engine 1.2.6 SDK.  Everything has gone fine in the
 tutorial, up until the point with implementing the user sign in/sign
 out with the LoginService.  I'm currently working through the tutorial
 page athttp://code.google.com/webtoolkit/tutorials/1.6/appengine.html
 and am up to 3. Personalize the application with the User Service.
 I've followed on with the code for all of this section and have tested
 it in hosted mode where it works perfectly.

 When I hit the Compile/Browse button, it compiles with no errors and
 opens a browser window.  The problem is, the browser only displays the
 start of the page (the Google code image and the StockWatcher
 heading) and has not rendered any of the sign in/sign out links that I
 see in hosted mode, or the stock table stuff below it.  Prior to
 implementing the user sign in/sign out, all previous compiles had
 worked perfectly and I had even deployed the example to AppEngine and
 had it running on the Internet.  I'm stumped as to why it's not
 working now.  For the version I've deployed to AppEngine I've checked
 through the logs and there's no errors recorded there and I don't know
 where to go looking for a solution.

 Any help is much appreciated,

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



Re: Error when I create widget...

2009-11-03 Thread Ian Bambury
Put the LoginBox class in the client directory

Ian

http://examples.roughian.com


2009/11/3 Nguyen Kim Kha nkim...@gmail.com


 I'm newbie... I wrote one file:

 public class NewProj implements EntryPoint {
/**
 * This is the entry point method.
 */
public void onModuleLoad() {
LoginBox login = new LoginBox(kkk);
RootPanel.get(left).add(login);
}
 }

 And in file LoginBox.java:

 public class LoginBox extends Composite {
private VerticalPanel content = new VerticalPanel();
public LoginBox(String caption) {
final Label labelCaption = new Label(caption);
content.add(labelCaption);
initWidget(content);
}
 }

 But when I run it, in GWT Hosted Mode window, there is error message:
  No source code is available for type kakalia.appengine.demo.LoginBox;
 did you forget to inherit a required module?

 I don't know why, pls help me

 KimKha
 


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



DropDownListBox animation

2009-11-03 Thread Olivier

Hi everyone,

I'm using the DropDownListBox from the incubator. The animation is 
enabled and for some reason instead of having the drop sliding up and 
down, it opens and close from the center.

Do you know where I can change that ?

Thanks

-- 

Olivier
Digiworks




Política de Protección de Datos de Carácter Personal
En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre,  sobre 
protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. 
informa a los usuarios de que:

Los Datos de Carácter Personal que recoge son objeto de tratamiento 
automatizado y se incorporan en los ficheros correspondientes, 
debidamente registrados en la Agencia Española de Protección de Datos. 
El usuario podrá,  en todo momento, ejercitar los derechos reconocidos 
en la LOPD, de acceso, rectificación, cancelación y oposición. El 
ejercicio de estos derechos puede realizarlo el propio usuario mediante 
comunicación escrita en la siguiente dirección postal:

DIGIWORKS SPAIN, S.L.
AVDA SAN RAFAEL, 11, LOCAL 2
03580 ALFAZ DEL PI
ALICANTE

También pueden ejercitar estos derechos en los términos que la normativa 
aplicable establece y que puede consultar en www.agpd.es.


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



Listener for gwt custom widgets

2009-11-03 Thread sony

Hi,

For my project when a button is clicked, the click event should then
wait and listen to the next two clicks on different widgets and then
connect them so as to form relationship between them.

Right now i an trying to use FocusListener without success. Any
suggestion will be of great help.

Thank you.

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



Re: RichTextArea gotchas

2009-11-03 Thread Martin Trummer

yes, this would eliminate the unification-step

but some of the problems of integrating an external editor
(like my example of using TinyMce) will remain:
 * not the native GXT look and feel
   e.g. changing the GXT theme will not change the editors look
 * integrating an editor to work nicely with GXT-Form-Layouts
   is tricky and sometimes the layout is completely messed up
 * the communication between GXT-Form-Fields needs do be done

I guess most of these problems can be solved (or worked around)
if you dig deep enough into GXT

however, it is of course a nice alternative for anyone who is
using plain GWT


On Nov 3, 12:53 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 3 nov, 12:25, Martin Trummer martin.trum...@24act.at wrote:

  If you are using or are planing to use GWTs RichTextArea (or GXTs,
  which is basically the same), then the following blog post may be
  interessting for 
  youhttp://martin-trummer.blogspot.com/2009/11/wysiwyg-gotchas.html

  I am already keen to get to know your point of view about
   * this topic
   * the problems, that I've outlined
   * any proposals, improvements or
   * or better solutions than mine

 Use CKEditor? from what I've read (haven't used it yet), you have a
 total control over the serialization (at the expense of not relying
 on the browser's innerHTML) and it already unifies the HTML produced
 by the rich text area.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RichTextArea gotchas

2009-11-03 Thread Martin Trummer

yes, this would eliminate the unification-step

but some of the problems of integrating an external editor
(like my example of using TinyMce) will remain:
 * not the native GXT look and feel
   e.g. changing the GXT theme will not change the editors look
 * integrating an editor to work nicely with GXT-Form-Layouts
   is tricky and sometimes the layout is completely messed up
 * the communication between GXT-Form-Fields needs do be done

I guess most of these problems can be solved (or worked around)
if you dig deep enough into GXT

however, it is of course a nice alternative for anyone who is
using plain GWT


On Nov 3, 12:53 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 3 nov, 12:25, Martin Trummer martin.trum...@24act.at wrote:

  If you are using or are planing to use GWTs RichTextArea (or GXTs,
  which is basically the same), then the following blog post may be
  interessting for 
  youhttp://martin-trummer.blogspot.com/2009/11/wysiwyg-gotchas.html

  I am already keen to get to know your point of view about
   * this topic
   * the problems, that I've outlined
   * any proposals, improvements or
   * or better solutions than mine

 Use CKEditor? from what I've read (haven't used it yet), you have a
 total control over the serialization (at the expense of not relying
 on the browser's innerHTML) and it already unifies the HTML produced
 by the rich text area.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Error when I create widget...

2009-11-03 Thread Nguyen Kim Kha

It works. Thanks a lot...

I have just open http://examples.roughian.com, this site is very
useful for me... Thank you so much!

On 3 Tháng Mười Một, 23:12, Ian Bambury ianbamb...@gmail.com wrote:
 Put the LoginBox class in the client directory

 Ian

 http://examples.roughian.com

 2009/11/3 Nguyen Kim Kha nkim...@gmail.com





  I'm newbie... I wrote one file:

  public class NewProj implements EntryPoint {
         /**
          * This is the entry point method.
          */
         public void onModuleLoad() {
                 LoginBox login = new LoginBox(kkk);
                 RootPanel.get(left).add(login);
         }
  }

  And in file LoginBox.java:

  public class LoginBox extends Composite {
         private VerticalPanel content = new VerticalPanel();
         public LoginBox(String caption) {
                 final Label labelCaption = new Label(caption);
                 content.add(labelCaption);
                 initWidget(content);
         }
  }

  But when I run it, in GWT Hosted Mode window, there is error message:
   No source code is available for type kakalia.appengine.demo.LoginBox;
  did you forget to inherit a required module?

  I don't know why, pls help me

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



Re: TextArea + iPhone

2009-11-03 Thread pbyo...@gmail.com

I haven't tried this theory out yet, but having the same problem, I
surmise it is because the TextArea is a child of a FocusPanel, which
seems to behave differently in Safari, both on and off the iPhone. You
might fiddle with this and see if it is the problem.



On Nov 2, 6:20 am, Sean slough...@gmail.com wrote:
 So, I have a Text Area with the RichTextToolBar attached and when I
 click on the Text Area in IE, FF and Chrome everything works fine.

 However, with the iPhone it doesn't seem to recognize it as a text
 input and doesn't bring up the keyboard. Is there anyway to fix that?

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



Estilo para CaptionPanel

2009-11-03 Thread Jochelo

No puedo cambiar el color al texto del CaptionPanel.
¿Alguna solución?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: EXT-GWT BeanModelTag

2009-11-03 Thread charlie

Jboss NCDeff errors are ubiquitous, try another servlet container to
see if its jboss or your app.

On Tue, Nov 3, 2009 at 11:15 AM, iaio81 stefano.taurie...@gmail.com wrote:

 Hi all,
 I'm developing with EXT-GWT and I've problem with Entity in a separate
 jar.
 I've created entity class that implements BeanModelTag, but JBoss
 doesn't deploy successfully because give me a NoClassDefError on
 BeanModelTag.help me please
 


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



Last Eclipse plugin version

2009-11-03 Thread Arnaud

Hello,

I want to download GWT plugin for Ecplise but I'm behind a proxy and I
can't configure Eclipse in order to use automatic update system (the
proxy require a login on a specific local webpage). So I'm trying to
install it manually using this method:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/f127367d8a578013

I've already downloaded the features but I can't get the plugins
because I don't know their names (for features, the names were given
in site.xml file). Maybe someone could have a quick look to those
plugins names, something like http://dl.google.com/eclipse/plugin/3.4/
plugins/com.google.appengine.eclipse.core_1.0.0.v2009.jar, I
don't know exactly how many plugins there should be, maybe 5.

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



Re: GWT 1.7 compiling from Ant

2009-11-03 Thread grasshopper

I am getting the following error:

[java] java.lang.NoClassDefFoundError: com/google/gwt/dev/Compiler
[java] Exception in thread main

On Nov 3, 10:33 am, grasshopper revi2...@gmail.com wrote:
 Hello all,

 I've just migrated a project from GWT 1.5 to GWT 1.7. While before i
 could compile the GWT project from an ant file with the following
 code:

 target name=compile
 exec executable=${root.dir}/HelloWorld-compile.cmd
 failonerror=true/
 /target

 I can't do so anymore in GWT 1.7. I've search the group postings and
 the closes i've come to some help is to do the following:

 java failonerror=true fork=true
 classname=com.google.gwt.dev.Compiler
         classpath
             path refid=${root.dir}/.classpath/
         /classpath
 /java

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



Re: Packaging Applications in GWT

2009-11-03 Thread Adligo

Hi Sundeep,

I have been doing this for quite some time and it seems the best
way is to split things out this way;
Common project (I call these projects Models as well)
Contains RPC Interfaces and Models(pojos with getters and setters)

Server project depends on Common project
Contains Servlets, HttpFilters and other server side stuff

Client (GWT) project depends on Common project
   Contains actual GWT code
your_project/war directory and content web.xml exc

I have been using this for quite a while with the Google plugin for
Eclipse, deploying on JBoss and GAE (Google App Engine) and it seems
to work well.
You can then right click on the Client project from eclipse and
run as a web app (Google plugin for Eclipse).   Your build system will
need to copy the Common.jar and Server.jar into your Client/web/WEB-
INF/lib directory.

Cheers,
Scott

On Oct 29, 12:42 pm, Sudeep S sudee...@gmail.com wrote:
 Hello,

 Can someone suggest the techniques/best practices involved in packaging the
 GWT applications where the client code and server code reside separately.

 Thanks

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



History iframe not needed in GWT 2.0?

2009-11-03 Thread fker...@gmail.com

I'm trying out GWT 2.0 MS2, and I just hit an unexpected behavior: I
removed the __gwt_historyFrame iframe that's used for History
management to check what error message I'd get -- but Alt+Backspace
seemingly kept working!? I tried out some Hyperlinks, and everything
(back, forward) runs OK... am I being obtuse, dense, plain stupid, or
is there some change in GWT 2.0?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: EXT-GWT BeanModelTag

2009-11-03 Thread iaio81

According to you, I have a separate jar with all entiites with
BeanModelTag implementation. In this jar I put in the persistence.xml
this code -- .jar-filegxt.jar/jar-file..   Is
it enough or I'm missing something?

On 3 Nov, 18:52, charlie charlie.f...@gmail.com wrote:
 Jboss NCDeff errors are ubiquitous, try another servlet container to
 see if its jboss or your app.



 On Tue, Nov 3, 2009 at 11:15 AM, iaio81 stefano.taurie...@gmail.com wrote:

  Hi all,
  I'm developing with EXT-GWT and I've problem with Entity in a separate
  jar.
  I've created entity class that implements BeanModelTag, but JBoss
  doesn't deploy successfully because give me a NoClassDefError on
  BeanModelTag.help me please
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: retrieving real Class name ?

2009-11-03 Thread ed bras
Ok, thanks

On Tue, Nov 3, 2009 at 6:36 PM, Thomas Broyer t.bro...@gmail.com wrote:




 On 3 nov, 15:26, ed bras post2edb...@gmail.com wrote:
 
  BTW: what is exactly a private artifact and what kind of artificats are
  there ?

 artifacts are those things (mostly files or bag of bytes, but not
 necessarily) created during the compilation (by generators and
 linkers); public artifacts go into the war (image bundles,
 *.nocache.js, *.cache.*, etc.) while private artifacts go into the -
 extra folder (soyc reports, symbol maps, messages/constants properties
 files). This should not be confused with generated types (created by
 generators) whose Java source code is outputted in the -gen folder.
 


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



Re: retrieving real Class name ?

2009-11-03 Thread Thomas Broyer



On 3 nov, 15:26, ed bras post2edb...@gmail.com wrote:

 BTW: what is exactly a private artifact and what kind of artificats are
 there ?

artifacts are those things (mostly files or bag of bytes, but not
necessarily) created during the compilation (by generators and
linkers); public artifacts go into the war (image bundles,
*.nocache.js, *.cache.*, etc.) while private artifacts go into the -
extra folder (soyc reports, symbol maps, messages/constants properties
files). This should not be confused with generated types (created by
generators) whose Java source code is outputted in the -gen folder.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Last Eclipse plugin version

2009-11-03 Thread Chris Ramsdale

The following link includes instructions on how to install the plugin
from a zip file.

http://code.google.com/eclipse/docs/install-from-zip.html

- Chris

On Nov 3, 9:05 am, Arnaud arnaud.decola...@gmail.com wrote:
 Hello,

 I want to download GWT plugin for Ecplise but I'm behind a proxy and I
 can't configure Eclipse in order to use automatic update system (the
 proxy require a login on a specific local webpage). So I'm trying to
 install it manually using this 
 method:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

 I've already downloaded the features but I can't get the plugins
 because I don't know their names (for features, the names were given
 in site.xml file). Maybe someone could have a quick look to those
 plugins names, something like http://dl.google.com/eclipse/plugin/3.4/
 plugins/com.google.appengine.eclipse.core_1.0.0.v2009.jar, I
 don't know exactly how many plugins there should be, maybe 5.

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



Re: GWT Native Code Deployment

2009-11-03 Thread Jeff Chimene
On Tue, Nov 3, 2009 at 3:47 PM, Darin daring90...@gmail.com wrote:


 Hi, Jeff. Again, thanks for the responses. I have researched what the
 classpath means (and I assume you mean the directory or directories
 where the JRE looks for possible libraries to use)


Yes


 and I have manually
 set the classpath to be the directory where the library resides.
 Unfortunately, that still did not change anything.


I didn't expect it would.



 To the best of my knowledge, the server itself isn't supposed to run
 the code.


The code that you posted originally (the call to LoadLibrary) should only
run on the server. It might also run on the client in hosted mode, but
that's not what you want in the Long Run.

According to the GWT website (please correct me if I am
 wrong, and it is very possible that I am wrong), the code is executed
 as Javascript from within the browser.


Correct, as long as you;re not trying to call LoadLibrary.

The Javascript that is already
 theoretically executing from within the browser is supposed to execute
 the native code.


I don't know what you mean by native code. Do you mean the compiled C++
code in SolverLibrary? If so. the browser will not execute that native code
(at least not via GWT compiled Javascript)

For some reason, it finds the code on the computer on
 which I am developing the app, but cannot find the native code when I
 copy it directly to another machine (into the directory where Apache
 looks for its source files). I have copied the SolverLibrary into
 every subdirectory of the main Apache library that I can find but the
 native code still refuses to execute. I'm going to try installing
 Eclipse and GWT on the server machine and see if that helps. Wish me
 luck...


I think we're back to the issue that Apache doesn't have a JRE, so it's not
finding the code that calls LoadLibrary. I think that what's happening is
that in hosted mode, you're using Tomcat, a Java server which will find and
execute the code that calls LoadLibrary. When you move to GWT noserver mode,
then you're using Apache.

What is the error you get when you run the code using an Apache server
instance?



 Best, Darin

 On Nov 3, 2:14 pm, Jeff Chimene jchim...@gmail.com wrote:
  Hi Darin:
 
  After re-reading your first post, I think you're already in a
 client-server
  environment. I am confused by the following: I am running Windows XP and
 using Apache as my http server. Any ideas for
 
  where I should put the native library so
 
   that the Javascript can find it?
 
  Your Apache installation probably doesn't run Java
  I think the reason it works in hosted mode is that your hosted mode
 server
  is a Java server: Tomcat.
 
  On Tue, Nov 3, 2009 at 2:59 PM, Jeff Chimene jchim...@gmail.com wrote:
 
   On Tue, Nov 3, 2009 at 2:36 PM, Darin daring90...@gmail.com wrote:
 
   Hi, Jeff.
 
   Thank you so much for responding to my question.
 
   Perhaps I'm getting confused by the jargon. The SolverLibrary that I
   wrote is written in C/C++ and compiled by Visual Studio into a DLL.
   This DLL is supposed to be run only on the server. The GWT code was
   written in Eclipse and follows essentially the documentation on the
   GWT web site. At the moment, the C/C++ DLL is only checking whether a
   username and password sent it by the client exists within a file on
   the server (nothing fancy; there is no reason to do this in C/C++
   other than to see if it will work) though I have plans to make much
   more complicated native functions once I get this to work. I am not
   sure where the classpath is. There is an environment variable in
   Windows called the PATH; is that what you mean? I do call the
   library via RPC. The calling code is as follows (written in Java in
   Eclipse using GWT):
 
   public class SecurityServiceImpl extends RemoteServiceServlet
   implements SecurityService {
 
  private static NativeCodeClass nativeCode=new
 NativeCodeClass();
  private CompressClass compression=new CompressClass();
  @Override
  public CompressedMessage validatePassword(CompressedMessage m)
 {
  String message=compression.Decompress(m);
  String
 username=message.substring(0,message.indexOf(','));
  String password=message.substring(message.indexOf(',')
   +1,message.length());
  String
 returnString=nativeCode.validatePassword(username,
   password);
  CompressedMessage
   replyMessage=compression.Compress(returnString);
  return replyMessage;
  }
   }
 
   Again, thanks for your help. Any other suggestions would be welcome.
   Best, Darin
 
   All the above has to run on the server (because it uses classes
 defined in
   SolverLibrary). You'll want to modify the above to handle requests from
 your
   client for solver library routines. The code you've posted so far will
 only
   run as Javascript on the client when SolverLibrary exists as
 Javascript;
   which 

eclipselink + gwt

2009-11-03 Thread romeosa.com

I'm trying to use eclipselink with gwt. I add the eclipselink library
to the build path and the derby db too. I put the META-INF folder in
src, with persistence file inside. All the codes for the persistence
stuff are in the server, so nothing will be converted to javascript.
However, when I try to get a result from a servlet, I get an error:
No Persistence provider for EntityManager named  I think that
the persistence.xml file is not placed in the right place.
Outside gwt everything work correctly.

Does anyone know how to solve this problem?

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



Re: stockWatcher tutorial error

2009-11-03 Thread Angel Marquez
Hi Tamuir,
You were absolutely correct. I had the StockPrice class in place; but, there
was a typo on my behalf in the package statement. Now I can move forward : )

Appreciate the help.

Thank you,
Angel

On Mon, Nov 2, 2009 at 11:21 PM, Taimur Mirxa taim...@gmail.com wrote:

 Hi,

 I have imported the StockWatcher class you attached in the email. it has
 missing StockPrice class. If you follow the complete code tutorial for
 stockwatcher application. it would run without any exception. even I have
 developed by following the tutorial.

 for your help StockPrice class if available at
 http://code.google.com/webtoolkit/tutorials/1.6/codeclient.html


 On Mon, Nov 2, 2009 at 9:58 PM, Angel Marquez angel.marq...@gmail.comwrote:

 attached.

 thank you.

 On Mon, Nov 2, 2009 at 9:51 PM, Taimur Mirxa taim...@gmail.com wrote:

 Can you attach the source code?


 On Mon, Nov 2, 2009 at 9:08 PM, Angel Marquez 
 angel.marq...@gmail.comwrote:

 This line of code:
 prices[i] = new StockPrice(stocks.get(i), price, change);

 in the refreshWatchlist() method is giving me an error.

 Any ideas?

 Please see attached screen shots.

 ty,
 -a





 --
 Warm Regards,

 Taimur Mirza

 [To predict the behavior of ordinary people in advance, you only have to
 assume that they will always try to escape a disagreeable situation with the
 smallest possible expenditure of intelligence.  - Friedrich Nietzsche]








 --
 Warm Regards,

 Taimur Mirza

 [To predict the behavior of ordinary people in advance, you only have to
 assume that they will always try to escape a disagreeable situation with the
 smallest possible expenditure of intelligence.  - Friedrich Nietzsche]

 


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



Re: Estilo para CaptionPanel

2009-11-03 Thread Ian Bambury
GWT
captionPanel.setStyleName( mi-CaptionPanel); CSS
. mi-CaptionPanel legend {color: #f00;} Ian

http://examples.roughian.com


2009/11/3 Jochelo jose.quintanilla.utre...@gmail.com


 No puedo cambiar el color al texto del CaptionPanel.
 ¿Alguna solución?

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



Re: GWT Native Code Deployment

2009-11-03 Thread Darin

Hi, Jeff. If it helps, I get the same behavior on both computers. I
cannot seem to get the library to run its code. However, if I might
add a new wrinkle: This time I changed the JNI to this:
public class NativeCodeClass {
static {
try{
System.loadLibrary(SolverLibrary);
} catch (UnsatisfiedLinkError e) {
System.exit(0);
}
}
public native String validatePassword(String username, String
password);
}

In theory, this will make the JRE completely crash if it cannot find
the SolverLibrary. The JRE did not crash but the communication between
server and client still did not function... I am totally lost now. If
you have any suggestions, I'd be happy to hear them. Thanks for all
your help thus far. Best, Darin

On Nov 3, 2:47 pm, Darin daring90...@gmail.com wrote:
 Hi, Jeff. Again, thanks for the responses. I have researched what the
 classpath means (and I assume you mean the directory or directories
 where the JRE looks for possible libraries to use) and I have manually
 set the classpath to be the directory where the library resides.
 Unfortunately, that still did not change anything.

 To the best of my knowledge, the server itself isn't supposed to run
 the code. According to the GWT website (please correct me if I am
 wrong, and it is very possible that I am wrong), the code is executed
 as Javascript from within the browser. The Javascript that is already
 theoretically executing from within the browser is supposed to execute
 the native code. For some reason, it finds the code on the computer on
 which I am developing the app, but cannot find the native code when I
 copy it directly to another machine (into the directory where Apache
 looks for its source files). I have copied the SolverLibrary into
 every subdirectory of the main Apache library that I can find but the
 native code still refuses to execute. I'm going to try installing
 Eclipse and GWT on the server machine and see if that helps. Wish me
 luck...

 Best, Darin

 On Nov 3, 2:14 pm, Jeff Chimene jchim...@gmail.com wrote:

  Hi Darin:

  After re-reading your first post, I think you're already in a client-server
  environment. I am confused by the following: I am running Windows XP and 
  using Apache as my http server. Any ideas for

  where I should put the native library so

   that the Javascript can find it?

  Your Apache installation probably doesn't run Java
  I think the reason it works in hosted mode is that your hosted mode server
  is a Java server: Tomcat.

  On Tue, Nov 3, 2009 at 2:59 PM, Jeff Chimene jchim...@gmail.com wrote:

   On Tue, Nov 3, 2009 at 2:36 PM, Darin daring90...@gmail.com wrote:

   Hi, Jeff.

   Thank you so much for responding to my question.

   Perhaps I'm getting confused by the jargon. The SolverLibrary that I
   wrote is written in C/C++ and compiled by Visual Studio into a DLL.
   This DLL is supposed to be run only on the server. The GWT code was
   written in Eclipse and follows essentially the documentation on the
   GWT web site. At the moment, the C/C++ DLL is only checking whether a
   username and password sent it by the client exists within a file on
   the server (nothing fancy; there is no reason to do this in C/C++
   other than to see if it will work) though I have plans to make much
   more complicated native functions once I get this to work. I am not
   sure where the classpath is. There is an environment variable in
   Windows called the PATH; is that what you mean? I do call the
   library via RPC. The calling code is as follows (written in Java in
   Eclipse using GWT):

   public class SecurityServiceImpl extends RemoteServiceServlet
   implements SecurityService {

          private static NativeCodeClass nativeCode=new NativeCodeClass();
          private CompressClass compression=new CompressClass();
         �...@override
          public CompressedMessage validatePassword(CompressedMessage m) {
                  String message=compression.Decompress(m);
                  String username=message.substring(0,message.indexOf(','));
                  String password=message.substring(message.indexOf(',')
   +1,message.length());
                  String returnString=nativeCode.validatePassword(username,
   password);
                  CompressedMessage
   replyMessage=compression.Compress(returnString);
                  return replyMessage;
          }
   }

   Again, thanks for your help. Any other suggestions would be welcome.
   Best, Darin

   All the above has to run on the server (because it uses classes defined 
   in
   SolverLibrary). You'll want to modify the above to handle requests from 
   your
   client for solver library routines. The code you've posted so far will 
   only
   run as Javascript on the client when SolverLibrary exists as Javascript;
   which condition is not true. The above code will run (as Java) on the 
   client
   in Hosted mode (because 

TimeZone and TimeZoneInfo - how to set to be more common names like EST5EDT or PST8PDT?

2009-11-03 Thread Open eSignForms

My server can give me a nice timezone string like EST5EDT that works
well in Java on the server.  The question is how would I use such a
string in the client-side TimeZone/TimeZoneInfo?  Clearly it's looking
for json string format that is not specified in the javadocs rather
than a timezone string like above.

I'd like my DateFormat to show 'z' using the more common TimeZone spec
than UTC-5 and the like.  Since my server has the user's preferred
date format and timezone specs, I can easily pass them back to the
client, but I don't know how to get my timezone string to be useful on
the client.

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



Re: GWT no NetBeans

2009-11-03 Thread Geraldo Lopes

Lucas,

Primeiramente, você vai ter mais sucesso aqui se postar as perguntas
em inglês.

Fiz uma aplicação teste rodei em modo de desenvolvimento. Ao mudar o
tema comentando o atual e descomentando o outro ( !-- --) deu
problema. Foi assim que você testou ?
Após mudar de Standard para Dark e reiniciar a aplicação a aparência
mudou...

Se você está interessado em mudar o tema em tempo de execução. A
aplicação abaixo pode ser um bom ponto de partida pra você.
Ela vem com o gwt
http://gwt.google.com/samples/Showcase/Showcase.html

Se você não gostou do resultado final da sua aplicação você pode
alterar o css.
Eu esperava não ter que me meter com css no gwt, mas esta não é uma
realidade. Ao menos agente se livra das idiosincrasias do JavaScript.

Boa sorte,

Geraldo Lopes de Souza



Quando você fala que tentou as opções
?xml version=1.0 encoding=UTF-8?
module
inherits name=com.google.gwt.user.User/
!-- inherits name=com.google.gwt.user.theme.standard.Standard/
 --

!-- inherits name=com.google.gwt.user.theme.chrome.Chrome/ --

inherits name=com.google.gwt.user.theme.dark.Dark/
entry-point class=org.stockwatcher.client.MainEntryPoint/
!-- Do not define servlets here, use web.xml --
/module

On 31 out, 14:53, Lucas lucasla...@uol.com.br wrote:
 Olá, amigos.

 Estou iniciando com o framework GWT e optei por trabalhar no NetBeans,
 e tenho obtido sucesso. Até agora. O meu problema é na aplicação de
 estilos. O arquivo .xml do meu aplicativo está da seguinte forma:

 ?xml version=1.0 encoding=UTF-8?
 module
     inherits name=com.google.gwt.user.User/
     !-- inherits name=com.google.gwt.user.theme.standard.Standard/ --

     !-- inherits name=com.google.gwt.user.theme.chrome.Chrome/ --

     inherits name=com.google.gwt.user.theme.dark.Dark/
     entry-point class=org.stockwatcher.client.MainEntryPoint/
     !-- Do not define servlets here, use web.xml --
 /module

 O problema é que, independente do estilo que eu escolho (Standard,
 Chrome ou Dark), a minha opção não afeta em absolutamente nada no
 visual no navegador quando executada.

 A impressão que eu tive desde o início é que o design não fica tão
 agradável como o esperado, e só fui me dar conta desse problema quando
 testei os três estilos e também nenhum deles (quando eu apago todos os
 3 estilos, não faz a menor diferença no visual).

 O que pode estar acontecendo?

 Obrigado,

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



Re: GWT Native Code Deployment

2009-11-03 Thread Jeff Chimene
On Tue, Nov 3, 2009 at 2:36 PM, Darin daring90...@gmail.com wrote:


 Hi, Jeff.

 Thank you so much for responding to my question.

 Perhaps I'm getting confused by the jargon. The SolverLibrary that I
 wrote is written in C/C++ and compiled by Visual Studio into a DLL.
 This DLL is supposed to be run only on the server. The GWT code was
 written in Eclipse and follows essentially the documentation on the
 GWT web site. At the moment, the C/C++ DLL is only checking whether a
 username and password sent it by the client exists within a file on
 the server (nothing fancy; there is no reason to do this in C/C++
 other than to see if it will work) though I have plans to make much
 more complicated native functions once I get this to work. I am not
 sure where the classpath is. There is an environment variable in
 Windows called the PATH; is that what you mean? I do call the
 library via RPC. The calling code is as follows (written in Java in
 Eclipse using GWT):

 public class SecurityServiceImpl extends RemoteServiceServlet
 implements SecurityService {

private static NativeCodeClass nativeCode=new NativeCodeClass();
private CompressClass compression=new CompressClass();
@Override
public CompressedMessage validatePassword(CompressedMessage m) {
String message=compression.Decompress(m);
String username=message.substring(0,message.indexOf(','));
String password=message.substring(message.indexOf(',')
 +1,message.length());
String returnString=nativeCode.validatePassword(username,
 password);
CompressedMessage
 replyMessage=compression.Compress(returnString);
return replyMessage;
}
 }

 Again, thanks for your help. Any other suggestions would be welcome.
 Best, Darin

 All the above has to run on the server (because it uses classes defined in
SolverLibrary). You'll want to modify the above to handle requests from your
client for solver library routines. The code you've posted so far will only
run as Javascript on the client when SolverLibrary exists as Javascript;
which condition is not true. The above code will run (as Java) on the client
in Hosted mode (because SolverLibrary will be loaded by the Java run-time in
Hosted mode); which is no good for what you want in the Long Run.

On Nov 3, 7:27 am, Jeff Chimene jchim...@gmail.com wrote:
  Darin:
 
  There is one other possibility. You mention that you ... tested the
  compiled code (including the native
  code) inside the Mozilla browser and it also runs as it should.
 
  What's happening is that the Java run-time is able to load and run your
  library in hosted mode. But, that doesn't mean that you can compile this
  library to Javascript. Try putting the library into the classpath, modify
  your code to instantiate whatever classes you need, and compile (rather
 than
  run in hosted mode). You cannot use LoadLibrary on the client side: there
 is
  no Java runtime.
 
  On Mon, Nov 2, 2009 at 4:37 PM, Darin daring90...@gmail.com wrote:
 
   Hello.
 
   I have written a GWT project that uses native code. The class that
   calls the code looks like this:
 
   public class NativeCodeClass {
  static {
  System.loadLibrary(SolverLibrary);
  }
  public native String validatePassword(String username, String
   password);
   }
 
   When I compile and run this inside of Eclipse (hosted mode), the
   native code runs (assuming that I uncheck the Use Google App Engine)
   just fine. I have also tested the compiled code (including the native
   code) inside the Mozilla browser and it also runs as it should.
   Unfortunately, when I deploy my code to the server, the Javascript
   does not seem to be able to find my native library (SolverLibrary)
   even though the Javascript is definitely working. I have tried copying
   the library to every conceivable location that I could think of but
   have thus far failed. I am running Windows XP and using Apache as my
   http server. Any ideas for where I should put the native library so
   that the Javascript can find it?
 
   Disclaimer: I am a definite newbie with GWT and a mathematician by
   trade. If I am doing something outrageously stupid, I apologize for
   wasting everyone's time, but please let me know what I'm doing wrong
   so that I don't wind up smashing my computer and scaring my son.
   Thanks, Darin
 


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



Re: GWT 1.7 + Eclipse, JPA, Spring configuration

2009-11-03 Thread Yaakov

Thanks for point that out... Now, it does pick up the persistence
unit...

However, I am still not able to start up pre-bundled with Eclipse GWT
Jetty server.

First, it complained that I didn't specify a persistence provider. I
did that by changing my entityManagerFactory to this:

bean id=entityManagerFactory
 
class=org.springframework.orm.jpa.LocalEntityManagerFactoryBean
   property name=persistenceUnitName value=testUnit
   property name=jpaDialect
value=org.springframework.orm.jpa.vendor.TopLinkJpaDialect /
   property name=jpaVendorAdapter
value=org.springframework.orm.jpa.vendor.TopLinkJpaVendorAdapter /
 /bean

After I did this, it started complaining that I Cannot apply class
transformer without LoadTimeWeaver specified.

Well, I tried specifying the load time weaver:
bean id=entityManagerFactory
 
class=org.springframework.orm.jpa.LocalEntityManagerFactoryBean
   property name=loadTimeWeaver
  bean
class=org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver
 /

   /property
   property name=persistenceUnitName value=testUnit
   property name=jpaDialect
value=org.springframework.orm.jpa.vendor.TopLinkJpaDialect /
   property name=jpaVendorAdapter
value=org.springframework.orm.jpa.vendor.TopLinkJpaVendorAdapter /
 /bean


When I specify that, it complains that in order to use that particular
weaver, I need to start with a Java agent... From Spring
documentation, that would be spring-agent-2.5.5.jar...

I opened Run Configurations in Eclipse and chose my GWT web app run
configuration. Then, I switched to the Arguments tab and put this in
VM arguments:
-javaagent:c:\spring-agent-2.5.5.jar

This is the exact same configuration (in my spring config and in my
run configuration) that I use to run JPA DAO tests without requiring a
server and it runs just fine within Eclipse and within maven...

However, even after specifying the Java agent the way I just
described, I still get the same error... It's as if GWT Hosted mode
server doesn't see that I am asking it to start with a specific Java
agent (specified in the Arguments-vm arguments in Eclipse)...

Any ideas as to how to get this to work?

Thanks,
Yaakov.



On Nov 3, 3:33 pm, Davis Ford davisf...@zenoconsulting.biz wrote:
 don't put persistence.xml in war folder, put it here:

 ${basedir}/src/main/resources/META-INF/persistence.xml

 When you build, maven will make sure it goes in the classes dir of your
 webapp (i.e. app.war!/WEB-INF/classes/persistence.xml)

 On Tue, Nov 3, 2009 at 3:03 PM, Yaakov Chaikin 
 yaakov.chai...@gmail.comwrote:





  Hi,

  I am trying to get hosted mode to work in Eclipse 3.4 with GWT plugin
  1.7 on Windows...

  Here is what I have:

  1) Maven folder structure, as I use maven to compile/deploy the whole
  thing.
  2) 3 separate modules (eclipse projects): Persistence, Model, and Web
  (this is the GWT project).
  3) Model has JPA annotated POJOs
  4) Persistence has Spring annotated DAOs like this:
  @Service
  @Transactional
  public UserDAOImpl implements UserDAO
  {
    @PersistenceContext(unitName=testUnit)
    private EntityManager manager;

    public User getUser(String userName)
    {
       // some JPA code
    }
  }

  5) The Persistence module has persistence.xml in
  src/main/resource/META-INF which looks like this:
   standard header stuff...
   persistence-unit name=testUnit transaction-type=RESOURCE_LOCAL
      classtest.User/class
      properties
         property name=toplink.jdbc.driver
  value=oracle.jdbc.driver.OracleDriver /
         property name=toplink.jdbc.url  value=oracle URL /
         property name=toplink.jdbc.user value=user /
        property name=toplink.jdbc.password value=password /
    /properties
  /persistence-unit

  6) In my Web module, I load this Spring configuration:

  ... standard header stuff
   bean id=entityManagerFactory
           class=org.springframework.orm.jpa.LocalEntityManagerFactoryBean
    property name=persistenceUnitName value=testUnit
   /bean
   .
   there are other things defined here
   .

  I think it is #6 where things are getting stuck... When I try to start
  Eclipse GWT in Hosted mode, the console spits out error creating bean
  with name 'entityManagerFactory' defined in class path resource
  test-context.xml: Invocation of init method failed; nested exception
  is java.lang.IllegalArgumentException: No persistence unit with name
  'testUnit' found

  I have no idea why this is happening... I already tried to create a
  directory under my 'war' directory in the Web module called META-INF
  and place the persistence.xml there, but it still says it can't find
  the persistence unit with name 'testUnit'...

  My maven dependencies bring the following into classpath (besides the
  other 2 modules this one depends on and besides the usual gwt ones):
  dependency
   groupIdjava.persistence/groupId
   artifactIdpersistence-api/artifactId
   version1.0/version
  /dependency
  dependency
   groupIdoracle/groupId
   

Re: Session IDs are not unique for first time asking

2009-11-03 Thread XqSun

Thank you a lot.

I modified my program so it will continue to ask sessions only after
the first call comes back already. Now it works as I want :)

Best regards,

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



Re: Incubator GWTCanvas - theoretically faster to Clear() between draws?

2009-11-03 Thread Matt Bishop

I would be surprised if clear() was slow.

Generally it is a good idea to clear first, especially on IE, which
has to convert the canvas calls to VML.  clear() blows away the
current VML doc, while redrawing may append to the existing.

As always, test your idea and let the real world usage decide.



On Nov 2, 3:26 am, Nerf mrre...@hotmail.com wrote:
 Hiya,

 Apologies if this has been asked, a quick search didn't net me
 anything. I have been playing around with the Incubator GWTCanvas and
 think it's fantastic. I have a decent little functioning framework
 now, and have begun to wonder about optimisation.

 My question is, if failing to Clear() the canvas between redraws
 (frames) causes the new image to be printed on the old image, is it
 theoretically more computationally expensive for each pixel of the
 second frame to be printed, even if they contain no transparency (full
 alpha)? I can see this happening at a base level due to some kind of
 alpha diff taking place, though without understanding the
 implementation I can't decide whether calling Clear(), filling the
 canvas with white/black, or just painting over the old image would be
 the fastest.

 I don't know if it's likely to affect my performance, but I am aiming
 for up to 20 frames a second on a 760x400 canvas, and would like to
 make it as easy as possible for the browsers to do their part.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Native Code Deployment

2009-11-03 Thread Darin

Hi, Jeff.

Thank you so much for responding to my question.

Perhaps I'm getting confused by the jargon. The SolverLibrary that I
wrote is written in C/C++ and compiled by Visual Studio into a DLL.
This DLL is supposed to be run only on the server. The GWT code was
written in Eclipse and follows essentially the documentation on the
GWT web site. At the moment, the C/C++ DLL is only checking whether a
username and password sent it by the client exists within a file on
the server (nothing fancy; there is no reason to do this in C/C++
other than to see if it will work) though I have plans to make much
more complicated native functions once I get this to work. I am not
sure where the classpath is. There is an environment variable in
Windows called the PATH; is that what you mean? I do call the
library via RPC. The calling code is as follows (written in Java in
Eclipse using GWT):

public class SecurityServiceImpl extends RemoteServiceServlet
implements SecurityService {

private static NativeCodeClass nativeCode=new NativeCodeClass();
private CompressClass compression=new CompressClass();
@Override
public CompressedMessage validatePassword(CompressedMessage m) {
String message=compression.Decompress(m);
String username=message.substring(0,message.indexOf(','));
String password=message.substring(message.indexOf(',')
+1,message.length());
String returnString=nativeCode.validatePassword(username, 
password);
CompressedMessage 
replyMessage=compression.Compress(returnString);
return replyMessage;
}
}

Again, thanks for your help. Any other suggestions would be welcome.
Best, Darin

On Nov 3, 7:27 am, Jeff Chimene jchim...@gmail.com wrote:
 Darin:

 There is one other possibility. You mention that you ... tested the
 compiled code (including the native
 code) inside the Mozilla browser and it also runs as it should.

 What's happening is that the Java run-time is able to load and run your
 library in hosted mode. But, that doesn't mean that you can compile this
 library to Javascript. Try putting the library into the classpath, modify
 your code to instantiate whatever classes you need, and compile (rather than
 run in hosted mode). You cannot use LoadLibrary on the client side: there is
 no Java runtime.

 On Mon, Nov 2, 2009 at 4:37 PM, Darin daring90...@gmail.com wrote:

  Hello.

  I have written a GWT project that uses native code. The class that
  calls the code looks like this:

  public class NativeCodeClass {
         static {
                 System.loadLibrary(SolverLibrary);
         }
         public native String validatePassword(String username, String
  password);
  }

  When I compile and run this inside of Eclipse (hosted mode), the
  native code runs (assuming that I uncheck the Use Google App Engine)
  just fine. I have also tested the compiled code (including the native
  code) inside the Mozilla browser and it also runs as it should.
  Unfortunately, when I deploy my code to the server, the Javascript
  does not seem to be able to find my native library (SolverLibrary)
  even though the Javascript is definitely working. I have tried copying
  the library to every conceivable location that I could think of but
  have thus far failed. I am running Windows XP and using Apache as my
  http server. Any ideas for where I should put the native library so
  that the Javascript can find it?

  Disclaimer: I am a definite newbie with GWT and a mathematician by
  trade. If I am doing something outrageously stupid, I apologize for
  wasting everyone's time, but please let me know what I'm doing wrong
  so that I don't wind up smashing my computer and scaring my son.
  Thanks, Darin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Session IDs are not unique for first time asking

2009-11-03 Thread XqSun

Hi all,

I write a simple app to get session id by calling getThreadLocalRequest
().getSession().getId(). Unfortunately, for first time of calling, I
usually get different return strings.

The code is bellow. I try to get session ids three times but app
returns three different strings of session id when the system (server
and client) has just started. Those strings are unique only when I
refresh browser.

Can you help me to point out what I am missing and/or the solution?

Thanks a lot for any help.

Code:

package com.mysite.testsession.client;

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

public class GetSession implements EntryPoint {
private final GetSessionServiceAsync myService = GWT.create
(GetSessionService.class);

public void onModuleLoad() {
final Label sessionLabel1 = new Label(Session1: );
final Label sessionLabel2 = new Label(Session2: );
final Label sessionLabel3 = new Label(Session3: );

VerticalPanel vPanel = new VerticalPanel();
vPanel.add(sessionLabel1);
vPanel.add(sessionLabel2);
vPanel.add(sessionLabel3);

RootPanel.get().add(vPanel);

myService.getSessionId(new AsyncCallbackString() {
@Override
public void onFailure(Throwable caught) { }

@Override
public void onSuccess(String result) {
sessionLabel1.setText(Session1:  + result);
}

});

myService.getSessionId(new AsyncCallbackString() {
@Override
public void onFailure(Throwable caught) { }

@Override
public void onSuccess(String result) {
sessionLabel2.setText(Session2:  + result);
}
});
myService.getSessionId(new AsyncCallbackString() {
@Override
public void onFailure(Throwable caught) { }

@Override
public void onSuccess(String result) {
sessionLabel3.setText(Session3:  + result);
}
});
}


}
--
package com.mysite.testsession.client;

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

@RemoteServiceRelativePath(mysession)
public interface GetSessionService extends RemoteService {
String getSessionId();
}
-
package com.mysite.testsession.client;

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

public interface GetSessionServiceAsync {
void getSessionId(AsyncCallbackString callback);
}

package com.mysite.testsession.server;

import com.mysite.testsession.client.GetSessionService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

@SuppressWarnings(serial)
public class GetSessionServiceImpl extends RemoteServiceServlet
implements GetSessionService {

@Override
public String getSessionId() {
return getThreadLocalRequest().getSession().getId();
}
}


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



Re: GWT 1.7 + Eclipse, JPA, Spring configuration

2009-11-03 Thread Davis Ford
which maven gwt plugin are you using -- is it the  codehaus gwt plugin?

to be honest, this sounds like it is not so much a gwt thing as it is a
hibernate/spring thing.

i've used hibernate/spring a lot with jpa, and never had to specify a weaver
via an extra JVM argument.  it seems a bit odd.  i'm not trying to dodge the
question, but typically i solve these issues with google searches.
 something in your project setup is not right -- narrow it down.

On Tue, Nov 3, 2009 at 4:57 PM, Yaakov yaakov.chai...@gmail.com wrote:


 Thanks for point that out... Now, it does pick up the persistence
 unit...

 However, I am still not able to start up pre-bundled with Eclipse GWT
 Jetty server.

 First, it complained that I didn't specify a persistence provider. I
 did that by changing my entityManagerFactory to this:

 bean id=entityManagerFactory

 class=org.springframework.orm.jpa.LocalEntityManagerFactoryBean
   property name=persistenceUnitName value=testUnit
property name=jpaDialect
 value=org.springframework.orm.jpa.vendor.TopLinkJpaDialect /
   property name=jpaVendorAdapter
 value=org.springframework.orm.jpa.vendor.TopLinkJpaVendorAdapter /
  /bean

 After I did this, it started complaining that I Cannot apply class
 transformer without LoadTimeWeaver specified.

 Well, I tried specifying the load time weaver:
 bean id=entityManagerFactory

 class=org.springframework.orm.jpa.LocalEntityManagerFactoryBean
property name=loadTimeWeaver
  bean
 class=org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver
 /
 
   /property
property name=persistenceUnitName value=testUnit
property name=jpaDialect
 value=org.springframework.orm.jpa.vendor.TopLinkJpaDialect /
   property name=jpaVendorAdapter
 value=org.springframework.orm.jpa.vendor.TopLinkJpaVendorAdapter /
  /bean


 When I specify that, it complains that in order to use that particular
 weaver, I need to start with a Java agent... From Spring
 documentation, that would be spring-agent-2.5.5.jar...

 I opened Run Configurations in Eclipse and chose my GWT web app run
 configuration. Then, I switched to the Arguments tab and put this in
 VM arguments:
 -javaagent:c:\spring-agent-2.5.5.jar

 This is the exact same configuration (in my spring config and in my
 run configuration) that I use to run JPA DAO tests without requiring a
 server and it runs just fine within Eclipse and within maven...

 However, even after specifying the Java agent the way I just
 described, I still get the same error... It's as if GWT Hosted mode
 server doesn't see that I am asking it to start with a specific Java
 agent (specified in the Arguments-vm arguments in Eclipse)...

 Any ideas as to how to get this to work?

 Thanks,
 Yaakov.



 On Nov 3, 3:33 pm, Davis Ford davisf...@zenoconsulting.biz wrote:
  don't put persistence.xml in war folder, put it here:
 
  ${basedir}/src/main/resources/META-INF/persistence.xml
 
  When you build, maven will make sure it goes in the classes dir of your
  webapp (i.e. app.war!/WEB-INF/classes/persistence.xml)
 
  On Tue, Nov 3, 2009 at 3:03 PM, Yaakov Chaikin yaakov.chai...@gmail.com
 wrote:
 
 
 
 
 
   Hi,
 
   I am trying to get hosted mode to work in Eclipse 3.4 with GWT plugin
   1.7 on Windows...
 
   Here is what I have:
 
   1) Maven folder structure, as I use maven to compile/deploy the whole
   thing.
   2) 3 separate modules (eclipse projects): Persistence, Model, and Web
   (this is the GWT project).
   3) Model has JPA annotated POJOs
   4) Persistence has Spring annotated DAOs like this:
   @Service
   @Transactional
   public UserDAOImpl implements UserDAO
   {
 @PersistenceContext(unitName=testUnit)
 private EntityManager manager;
 
 public User getUser(String userName)
 {
// some JPA code
 }
   }
 
   5) The Persistence module has persistence.xml in
   src/main/resource/META-INF which looks like this:
    standard header stuff...
persistence-unit name=testUnit transaction-type=RESOURCE_LOCAL
   classtest.User/class
   properties
  property name=toplink.jdbc.driver
   value=oracle.jdbc.driver.OracleDriver /
  property name=toplink.jdbc.url  value=oracle URL /
  property name=toplink.jdbc.user value=user /
 property name=toplink.jdbc.password value=password /
 /properties
   /persistence-unit
 
   6) In my Web module, I load this Spring configuration:
 
   ... standard header stuff
bean id=entityManagerFactory
  
  class=org.springframework.orm.jpa.LocalEntityManagerFactoryBean
 property name=persistenceUnitName value=testUnit
/bean
.
there are other things defined here
.
 
   I think it is #6 where things are getting stuck... When I try to start
   Eclipse GWT in Hosted mode, the console spits out error creating bean
   with name 'entityManagerFactory' defined in class path resource
   test-context.xml: Invocation of init method failed; nested exception
   is 

Re: GWT Native Code Deployment

2009-11-03 Thread Jeff Chimene
Hi Darin:

After re-reading your first post, I think you're already in a client-server
environment. I am confused by the following:
 I am running Windows XP and using Apache as my http server. Any ideas for
where I should put the native library so
 that the Javascript can find it?

Your Apache installation probably doesn't run Java
I think the reason it works in hosted mode is that your hosted mode server
is a Java server: Tomcat.

On Tue, Nov 3, 2009 at 2:59 PM, Jeff Chimene jchim...@gmail.com wrote:



 On Tue, Nov 3, 2009 at 2:36 PM, Darin daring90...@gmail.com wrote:


 Hi, Jeff.

 Thank you so much for responding to my question.

 Perhaps I'm getting confused by the jargon. The SolverLibrary that I
 wrote is written in C/C++ and compiled by Visual Studio into a DLL.
 This DLL is supposed to be run only on the server. The GWT code was
 written in Eclipse and follows essentially the documentation on the
 GWT web site. At the moment, the C/C++ DLL is only checking whether a
 username and password sent it by the client exists within a file on
 the server (nothing fancy; there is no reason to do this in C/C++
 other than to see if it will work) though I have plans to make much
 more complicated native functions once I get this to work. I am not
 sure where the classpath is. There is an environment variable in
 Windows called the PATH; is that what you mean? I do call the
 library via RPC. The calling code is as follows (written in Java in
 Eclipse using GWT):

 public class SecurityServiceImpl extends RemoteServiceServlet
 implements SecurityService {

private static NativeCodeClass nativeCode=new NativeCodeClass();
private CompressClass compression=new CompressClass();
@Override
public CompressedMessage validatePassword(CompressedMessage m) {
String message=compression.Decompress(m);
String username=message.substring(0,message.indexOf(','));
String password=message.substring(message.indexOf(',')
 +1,message.length());
String returnString=nativeCode.validatePassword(username,
 password);
CompressedMessage
 replyMessage=compression.Compress(returnString);
return replyMessage;
}
 }

 Again, thanks for your help. Any other suggestions would be welcome.
 Best, Darin

 All the above has to run on the server (because it uses classes defined in
 SolverLibrary). You'll want to modify the above to handle requests from your
 client for solver library routines. The code you've posted so far will only
 run as Javascript on the client when SolverLibrary exists as Javascript;
 which condition is not true. The above code will run (as Java) on the client
 in Hosted mode (because SolverLibrary will be loaded by the Java run-time in
 Hosted mode); which is no good for what you want in the Long Run.

 On Nov 3, 7:27 am, Jeff Chimene jchim...@gmail.com wrote:
  Darin:
 
  There is one other possibility. You mention that you ... tested the
  compiled code (including the native
  code) inside the Mozilla browser and it also runs as it should.
 
  What's happening is that the Java run-time is able to load and run your
  library in hosted mode. But, that doesn't mean that you can compile this
  library to Javascript. Try putting the library into the classpath,
 modify
  your code to instantiate whatever classes you need, and compile (rather
 than
  run in hosted mode). You cannot use LoadLibrary on the client side:
 there is
  no Java runtime.
 
  On Mon, Nov 2, 2009 at 4:37 PM, Darin daring90...@gmail.com wrote:
 
   Hello.
 
   I have written a GWT project that uses native code. The class that
   calls the code looks like this:
 
   public class NativeCodeClass {
  static {
  System.loadLibrary(SolverLibrary);
  }
  public native String validatePassword(String username, String
   password);
   }
 
   When I compile and run this inside of Eclipse (hosted mode), the
   native code runs (assuming that I uncheck the Use Google App Engine)
   just fine. I have also tested the compiled code (including the native
   code) inside the Mozilla browser and it also runs as it should.
   Unfortunately, when I deploy my code to the server, the Javascript
   does not seem to be able to find my native library (SolverLibrary)
   even though the Javascript is definitely working. I have tried copying
   the library to every conceivable location that I could think of but
   have thus far failed. I am running Windows XP and using Apache as my
   http server. Any ideas for where I should put the native library so
   that the Javascript can find it?
 
   Disclaimer: I am a definite newbie with GWT and a mathematician by
   trade. If I am doing something outrageously stupid, I apologize for
   wasting everyone's time, but please let me know what I'm doing wrong
   so that I don't wind up smashing my computer and scaring my son.
   Thanks, Darin
 




Re: GWT Native Code Deployment

2009-11-03 Thread Darin

Hi, Jeff. Again, thanks for the responses. I have researched what the
classpath means (and I assume you mean the directory or directories
where the JRE looks for possible libraries to use) and I have manually
set the classpath to be the directory where the library resides.
Unfortunately, that still did not change anything.

To the best of my knowledge, the server itself isn't supposed to run
the code. According to the GWT website (please correct me if I am
wrong, and it is very possible that I am wrong), the code is executed
as Javascript from within the browser. The Javascript that is already
theoretically executing from within the browser is supposed to execute
the native code. For some reason, it finds the code on the computer on
which I am developing the app, but cannot find the native code when I
copy it directly to another machine (into the directory where Apache
looks for its source files). I have copied the SolverLibrary into
every subdirectory of the main Apache library that I can find but the
native code still refuses to execute. I'm going to try installing
Eclipse and GWT on the server machine and see if that helps. Wish me
luck...

Best, Darin

On Nov 3, 2:14 pm, Jeff Chimene jchim...@gmail.com wrote:
 Hi Darin:

 After re-reading your first post, I think you're already in a client-server
 environment. I am confused by the following: I am running Windows XP and 
 using Apache as my http server. Any ideas for

 where I should put the native library so

  that the Javascript can find it?

 Your Apache installation probably doesn't run Java
 I think the reason it works in hosted mode is that your hosted mode server
 is a Java server: Tomcat.

 On Tue, Nov 3, 2009 at 2:59 PM, Jeff Chimene jchim...@gmail.com wrote:

  On Tue, Nov 3, 2009 at 2:36 PM, Darin daring90...@gmail.com wrote:

  Hi, Jeff.

  Thank you so much for responding to my question.

  Perhaps I'm getting confused by the jargon. The SolverLibrary that I
  wrote is written in C/C++ and compiled by Visual Studio into a DLL.
  This DLL is supposed to be run only on the server. The GWT code was
  written in Eclipse and follows essentially the documentation on the
  GWT web site. At the moment, the C/C++ DLL is only checking whether a
  username and password sent it by the client exists within a file on
  the server (nothing fancy; there is no reason to do this in C/C++
  other than to see if it will work) though I have plans to make much
  more complicated native functions once I get this to work. I am not
  sure where the classpath is. There is an environment variable in
  Windows called the PATH; is that what you mean? I do call the
  library via RPC. The calling code is as follows (written in Java in
  Eclipse using GWT):

  public class SecurityServiceImpl extends RemoteServiceServlet
  implements SecurityService {

         private static NativeCodeClass nativeCode=new NativeCodeClass();
         private CompressClass compression=new CompressClass();
        �...@override
         public CompressedMessage validatePassword(CompressedMessage m) {
                 String message=compression.Decompress(m);
                 String username=message.substring(0,message.indexOf(','));
                 String password=message.substring(message.indexOf(',')
  +1,message.length());
                 String returnString=nativeCode.validatePassword(username,
  password);
                 CompressedMessage
  replyMessage=compression.Compress(returnString);
                 return replyMessage;
         }
  }

  Again, thanks for your help. Any other suggestions would be welcome.
  Best, Darin

  All the above has to run on the server (because it uses classes defined in
  SolverLibrary). You'll want to modify the above to handle requests from your
  client for solver library routines. The code you've posted so far will only
  run as Javascript on the client when SolverLibrary exists as Javascript;
  which condition is not true. The above code will run (as Java) on the client
  in Hosted mode (because SolverLibrary will be loaded by the Java run-time in
  Hosted mode); which is no good for what you want in the Long Run.

  On Nov 3, 7:27 am, Jeff Chimene jchim...@gmail.com wrote:
   Darin:

   There is one other possibility. You mention that you ... tested the
   compiled code (including the native
   code) inside the Mozilla browser and it also runs as it should.

   What's happening is that the Java run-time is able to load and run your
   library in hosted mode. But, that doesn't mean that you can compile this
   library to Javascript. Try putting the library into the classpath,
  modify
   your code to instantiate whatever classes you need, and compile (rather
  than
   run in hosted mode). You cannot use LoadLibrary on the client side:
  there is
   no Java runtime.

   On Mon, Nov 2, 2009 at 4:37 PM, Darin daring90...@gmail.com wrote:

Hello.

I have written a GWT project that uses native code. The class that
calls the code looks 

Re: How would the UIBinder and the separation work with custom widgets

2009-11-03 Thread bkbonner

I pulled in the mail sample and it gave some good examples of how
other custom components are pulled into the UI.  Comparing it to the
mail sample in GWT 1.7.1 is really enlightening.

I can see how I can pull in PagingScrollTable and just use it as a
regular widget.  Thanks.

On Nov 2, 2:30 pm, bkbonner brian.bon...@paraware.com wrote:
 I'm trying to use UiBinder and have a Composite widget that uses the
 PagingScrollTable from the Incubator.  It seems like custom components
 will need to have custom parsers written for them to use the
 UiBinder.  I'm trying to understand the best use of UiBinder.

 I haven't written a lot of GWT apps, so I don't have the experience of
 others here.

 Thanks,

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



Re: How to insert static HTML content

2009-11-03 Thread compuroad

Thanks for the sugestion. But what do I do with navigation. GWT is a
one page show. When the user needs to create an account on the site
I need to clear the Home content and replace with a GWT generated
Create Account page/content. But since my home is static HTML, how
am I going to do it?

On Nov 3, 3:53 am, rjcarr rjc...@gmail.com wrote:
 I would suggest writing your page in the traditional way and then only
 filling in GWT for the sections you need.  You typically do with
 placeholders as divs and tds.  For example:

 body
   Here is some HTML ...
   div id=gwt/div
   Here is more HTML ...
 /body

 ...

 EntryPoint {
   RootPanel.get(gwt).add(new Label(Here is GWT HTML ...));
   ...

 }

 On Nov 2, 7:17 pm, compuroad wilson.ferreira...@gmail.com wrote:

  I would like to know if there is a built in way in GWT to read and
  inject HTML content. At least 50% of the site I am planning has static
  HTML content that would not benefit from GWT one page model. I am
  thinking in building a application that reads the static content using
  java.io.File and injects into GWT using the HTML widget.

  I would like to know if there are any alternatives.

  Thanks,

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



Re: How to insert static HTML content

2009-11-03 Thread Robert J. Carr

Well, what you say here:

GWT is a one page show

Is absolutely true.  Given that, you'll have to come up with the
solution that suits you best.  Some options are:

 1) Don't use GWT for the login and have it redirect you to your GWT
page when you've authenticated.
 2) Integrate your login into GWT and have it replace the login with
content when you've authenticated.
 3) Create 2 GWT apps, one for login and one for content.

There are probably other options I'm missing ...

On Tue, Nov 3, 2009 at 8:42 PM, compuroad wilson.ferreira...@gmail.com wrote:

 Thanks for the sugestion. But what do I do with navigation. GWT is a
 one page show. When the user needs to create an account on the site
 I need to clear the Home content and replace with a GWT generated
 Create Account page/content. But since my home is static HTML, how
 am I going to do it?

 On Nov 3, 3:53 am, rjcarr rjc...@gmail.com wrote:
 I would suggest writing your page in the traditional way and then only
 filling in GWT for the sections you need.  You typically do with
 placeholders as divs and tds.  For example:

 body
   Here is some HTML ...
   div id=gwt/div
   Here is more HTML ...
 /body

 ...

 EntryPoint {
   RootPanel.get(gwt).add(new Label(Here is GWT HTML ...));
   ...

 }

 On Nov 2, 7:17 pm, compuroad wilson.ferreira...@gmail.com wrote:

  I would like to know if there is a built in way in GWT to read and
  inject HTML content. At least 50% of the site I am planning has static
  HTML content that would not benefit from GWT one page model. I am
  thinking in building a application that reads the static content using
  java.io.File and injects into GWT using the HTML widget.

  I would like to know if there are any alternatives.

  Thanks,

  Wilson
 


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



GWT 1.7 + Eclipse, JPA, Spring configuration

2009-11-03 Thread Yaakov Chaikin

Hi,

I am trying to get hosted mode to work in Eclipse 3.4 with GWT plugin
1.7 on Windows...

Here is what I have:

1) Maven folder structure, as I use maven to compile/deploy the whole thing.
2) 3 separate modules (eclipse projects): Persistence, Model, and Web
(this is the GWT project).
3) Model has JPA annotated POJOs
4) Persistence has Spring annotated DAOs like this:
@Service
@Transactional
public UserDAOImpl implements UserDAO
{
   @PersistenceContext(unitName=testUnit)
   private EntityManager manager;

   public User getUser(String userName)
   {
  // some JPA code
   }
}

5) The Persistence module has persistence.xml in
src/main/resource/META-INF which looks like this:
 standard header stuff...
  persistence-unit name=testUnit transaction-type=RESOURCE_LOCAL
 classtest.User/class
 properties
property name=toplink.jdbc.driver
value=oracle.jdbc.driver.OracleDriver /
property name=toplink.jdbc.url  value=oracle URL /
property name=toplink.jdbc.user value=user /
   property name=toplink.jdbc.password value=password /
   /properties
/persistence-unit

6) In my Web module, I load this Spring configuration:

... standard header stuff
  bean id=entityManagerFactory
  class=org.springframework.orm.jpa.LocalEntityManagerFactoryBean
   property name=persistenceUnitName value=testUnit
 /bean
 .
 there are other things defined here
 .


I think it is #6 where things are getting stuck... When I try to start
Eclipse GWT in Hosted mode, the console spits out error creating bean
with name 'entityManagerFactory' defined in class path resource
test-context.xml: Invocation of init method failed; nested exception
is java.lang.IllegalArgumentException: No persistence unit with name
'testUnit' found

I have no idea why this is happening... I already tried to create a
directory under my 'war' directory in the Web module called META-INF
and place the persistence.xml there, but it still says it can't find
the persistence unit with name 'testUnit'...

My maven dependencies bring the following into classpath (besides the
other 2 modules this one depends on and besides the usual gwt ones):
dependency
  groupIdjava.persistence/groupId
  artifactIdpersistence-api/artifactId
  version1.0/version
/dependency
dependency
  groupIdoracle/groupId
  artifactIdjdbc/artifactId
  version1.4/version
/dependency
dependency
  groupIdoracle/groupId
  artifactIdoracle.toplink.essentials/artifactId
  version2.1-b60e-fcs/version
/dependency
dependency
  groupIdcommons-dbcp/groupId
  artifactIdcommons-dbcp/artifactId
  version1.2.2/version
/dependency

Obviously, there is more, but the bottom line is, for some reason, it
refuses to recognize my persistence unit... This is very frustrating
as I can't imagine having to redeploy every time I need to make GUI
update... One of the biggest points of GWT basically is out the
window.

I tried following what this blog pointed out (which is basically what
I've described above, but still have the same issues):
http://codetrips.blogspot.com/2009/05/gwt-spring-and-jpa-not-really-friendly.html

I can't imagine no one has used GWT with Spring and JPA and I am the
first one, so whoever knows the magic solution for this, please help
me out. I'd really appreciate it.

Thanks,
Yaakov.

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



Sharing code between client and server

2009-11-03 Thread asw888

I have some XML helper functions that I would like to share between
client and server. For example:

public class XmlUtils {
public static String getTextNodeValue(Node node) {
Node txNode = getTextNode(node);
return (txNode==null)? : (txNode.getNodeValue());
}
}

The only difference between client and server versions is:

import com.google.gwt.xml.client.*;
vs.
import org.w3c.dom.*;

What would be the simplest way to share as much of the XmlUtils code
as possible?

Thanks,
Andy

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



print problem in gwt

2009-11-03 Thread avd

Respected Sir,
I am developing a website for online trademark verfication and i stuck
in one problem my problem is i want to print some content of page.how
can i do that?
i have tried javascript function $wnd.print() using JSNI, this works
but it prints those contents that is fit to one screen not more than.

Is it any solution for How to Save a Gwt generated Page?

please help me??


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



Re: incubator's PagingScrollTable(pagination+Sorting)

2009-11-03 Thread shloka

Thanks Davis !

Yes,I saw the Bug u have reported.


I tried with gwtlib.jar and sample code  given for this in the link
http://code.google.com/p/gwtlib/
They use PagingTable and write the comparator code for sorting...
The approach is same as you have suggested...

So now i have to decide weather to go for PagingScrollTable of
incubator or PagingTable of gwtlib :)


Thanks!!

On Nov 3, 8:36 pm, Davis Ford davisf...@zenoconsulting.biz wrote:
 Sorting does seem to work out of the box.  I ended up building my own
 comparators.

 Here's an example of what I did.  I was going to write up a longer blog
 entry on this -- just haven't had time.

 Let's say I have a simple object like this for my RowValue:

 public class Person {
    private final String first;
    private final String last;
    public Person(String first, String last) { first = first; last = last; }
    public String getFirst() { return first; }
    public String getLast() { return last; }

 }

 So, I have to define my table model for Person =

 private final classs DataSourceTableModel extends MutableTableModelPerson
 {

     private ListPerson list = new ArrayListPerson();

     public void setData(ListPerson list) { this.list = list; }

     public void requestRows(final Request request,
 TableModel.CallbackPerson callback) {
             callback.onRowsReady(request, new ResponsePerson() {
                 @Override
                 public IteratorPerson getRowValues() {
                     int col =
 request.getColumnSortList().getPrimaryColumn();
                     boolean ascending =
 request.getColumnSortList().isPrimaryAscending();

                     /* col tells you which column the user clicked and
 ascending indicates whether to sort up/down */
                     /* i wrote my own Sorter class that knows how to sort a
 collection of my own RowValue T here */
                     /* return the iterator of your sorted collection */
                }};
      }

 }

 There's a bit more to it, but I found that PagingScrollTable does not sort
 by itself -- never worked for me.  I filed a bug on it.  Thus, I do the
 sorting myself, and it works well.

 Hope that helps,
 Davis

 On Mon, Nov 2, 2009 at 11:35 PM, shloka chythanya@gmail.com wrote:

  Hi All,
  I am trying to implement pagination and sorting using the Incubator's
  paging scroll table .Could do pagination but Sorting is not happening.
  Please pool in some ideas to solve this.Any guidence is highly
  appreciated.
  Thanks in Advance.

 --
 Zeno Consulting, Inc.
 home:http://www.zenoconsulting.biz
 blog:http://zenoconsulting.wikidot.com
 p: 248.894.4922
 f: 313.884.2977
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Testing new GWT RPC implementation (aka deRPC)

2009-11-03 Thread Mark Goerdes

Hi Bob,
thanks for your answer. With the patch on the current GWT 2 trunk I
get an out of memory error with my example. I tested with 256M and
512M. Any ideas?

Regards,
Mark

java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at java.lang.AbstractStringBuilder.expandCapacity
(AbstractStringBuilder.java:100)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:
390)
at java.lang.StringBuffer.append(StringBuffer.java:224)
at
com.google.gwt.dev.util.log.AbstractTreeLogger.getStackTraceAsString
(AbstractTreeLogger.java:71)
at com.google.gwt.dev.shell.log.SwingTreeLogger$LogEvent.init
(SwingTreeLogger.java:87)
at com.google.gwt.dev.shell.log.SwingTreeLogger.doLog
(SwingTreeLogger.java:253)
at com.google.gwt.dev.util.log.AbstractTreeLogger.log
(AbstractTreeLogger.java:208)
at com.google.gwt.core.ext.TreeLogger.log(TreeLogger.java:273)
at com.google.gwt.dev.shell.ModuleSpace.log(ModuleSpace.java:317)
at com.google.gwt.dev.shell.GWTBridgeImpl.log(GWTBridgeImpl.java:65)
at com.google.gwt.core.client.GWT.log(GWT.java:202)
at com.bearingpoint.davinci.frontend.gwt.test.client.SerializationTest
$1.onFailure(SerializationTest.java:20)
at
com.google.gwt.rpc.client.impl.RpcCallbackAdapter.onResponseReceived
(RpcCallbackAdapter.java:107)
at com.google.gwt.http.client.Request.fireOnResponseReceived
(Request.java:287)
at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange
(RequestBuilder.java:396)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:146)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn
(BrowserChannel.java:1706)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
(BrowserChannelServer.java:144)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
518)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
(ModuleSpace.java:275)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

On 3 Nov., 02:38, BobV b...@google.com wrote:
 Please test the patch athttp://gwt-code-reviews.appspot.com/89815and
 let me know if that fails to resolve the problem.

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



[gwt-contrib] Re: Testing new GWT RPC implementation (aka deRPC)

2009-11-03 Thread Mark Goerdes

Hi Bob,

sorry for my last post, I made a mistake in my project.

With this patch, the RPC call works properly!

Thanks for your help,
Mark

On 3 Nov., 11:25, Mark Goerdes mgoer...@googlemail.com wrote:
 Hi Bob,
 thanks for your answer. With the patch on the current GWT 2 trunk I
 get an out of memory error with my example. I tested with 256M and
 512M. Any ideas?

 Regards,
 Mark

 java.lang.OutOfMemoryError: Java heap space
         at java.util.Arrays.copyOf(Arrays.java:2882)
         at java.lang.AbstractStringBuilder.expandCapacity
 (AbstractStringBuilder.java:100)
         at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:
 390)
         at java.lang.StringBuffer.append(StringBuffer.java:224)
         at
 com.google.gwt.dev.util.log.AbstractTreeLogger.getStackTraceAsString
 (AbstractTreeLogger.java:71)
         at com.google.gwt.dev.shell.log.SwingTreeLogger$LogEvent.init
 (SwingTreeLogger.java:87)
         at com.google.gwt.dev.shell.log.SwingTreeLogger.doLog
 (SwingTreeLogger.java:253)
         at com.google.gwt.dev.util.log.AbstractTreeLogger.log
 (AbstractTreeLogger.java:208)
         at com.google.gwt.core.ext.TreeLogger.log(TreeLogger.java:273)
         at com.google.gwt.dev.shell.ModuleSpace.log(ModuleSpace.java:317)
         at com.google.gwt.dev.shell.GWTBridgeImpl.log(GWTBridgeImpl.java:65)
         at com.google.gwt.core.client.GWT.log(GWT.java:202)
         at com.bearingpoint.davinci.frontend.gwt.test.client.SerializationTest
 $1.onFailure(SerializationTest.java:20)
         at
 com.google.gwt.rpc.client.impl.RpcCallbackAdapter.onResponseReceived
 (RpcCallbackAdapter.java:107)
         at com.google.gwt.http.client.Request.fireOnResponseReceived
 (Request.java:287)
         at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange
 (RequestBuilder.java:396)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke
 (NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke
 (DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
 103)
         at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
 71)
         at com.google.gwt.dev.shell.OophmSessionHandler.invoke
 (OophmSessionHandler.java:146)
         at
 com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn
 (BrowserChannel.java:1706)
         at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
 (BrowserChannelServer.java:144)
         at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
 (ModuleSpaceOOPHM.java:120)
         at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 518)
         at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
 (ModuleSpace.java:275)
         at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
 (JavaScriptHost.java:91)
         at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
         at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 On 3 Nov., 02:38, BobV b...@google.com wrote:

  Please test the patch athttp://gwt-code-reviews.appspot.com/89815and
  let me know if that fails to resolve the problem.

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



[gwt-contrib] SubmitCompleteEvent.getResults() and text/plain

2009-11-03 Thread skrat

Hi all,

before reporting a bug I would like to know whether this happens
intentionally, and if so, what is the use case?

Common use case: one needs to async. upload a file through hidden
iframe, and she also wants to check what's the result of that
submission. The only way is to check the content of that iframe. Since
only text/plain and text/html are being loaded in iframes, we have to
use these content types. Usually it just contains JSON string with
server errors if something goes wrong. If not, then we issue an empty
response.

We use text/plain. When I call SubmitCompleteEvent.getResults() , and
my iframe is loaded with empty response, I'll get pre /pre with
firefox, and so my isEmpty() check fails. Shouldn't this be already
sanitized when calling getResults() ?

Now I'm forced to sanitize myself by creating hidden HTML widget,
setHTML()  getText().trim()  isEmpty()
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: RR : GWT 2.0 : Ensure circular references through CustomFieldSerializers works in deRPC

2009-11-03 Thread jgw

On 2009/11/03 01:37:14, bobv wrote:
 Review requested.

LGTM.

http://gwt-code-reviews.appspot.com/89815

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



[gwt-contrib] Compiler Optimization Thought: Class merging

2009-11-03 Thread Nathan Wells

As I was developing this morning, I came across a trade-off that I
wasn't happy with. Namely, as I create handlers and other interface
implementations in a given class, the implementations create new
classes, which adds additional, unnecessary code into the compiled
output.

One way around this is to sacrifice my code readability and simply
have the containing class implement those interfaces. For example,

class Foo {
  static class BarHandler implements ClickHandler, KeyDownHandler {
...
  }

  static class FooCommand implements Command {
...
  }

  ... class body that doesn't implement and onClick, onKeyDown or
execute method...

}

could compile to something like

class Foo implements ClickHandler, KeyDownHandler, Command {
  ... merged implementations ...
}

Of course, I'm operating under a few assumptions (based on my watching
this group and the developer group, and my lack of knowledge about how
the compiler actually works ;)

1. This isn't already done,
2. Adding more classes actually significantly increases the bulk of
compiled output.
3. The amount of time to add this optimization would be less than the
pain of the trade-off I'm dealing with.

Let me know what you think,
Nathan
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6604 committed - Add a test for circular references via a CustomFieldSerializer....

2009-11-03 Thread codesite-noreply

Revision: 6604
Author: b...@google.com
Date: Tue Nov  3 08:52:16 2009
Log: Add a test for circular references via a CustomFieldSerializer.
Update deRPC code to pass this test.

Patch by: bobv
Review by: jgw
http://code.google.com/p/google-web-toolkit/source/detail?r=6604

Modified:
   
/trunk/user/src/com/google/gwt/rpc/client/impl/CommandClientSerializationStreamWriter.java
   
/trunk/user/src/com/google/gwt/rpc/server/CommandServerSerializationStreamReader.java
   
/trunk/user/src/com/google/gwt/rpc/server/CommandServerSerializationStreamWriter.java
  /trunk/user/src/com/google/gwt/rpc/server/WebModePayloadSink.java
  /trunk/user/test/com/google/gwt/user/client/rpc/ObjectGraphTest.java
  /trunk/user/test/com/google/gwt/user/client/rpc/ObjectGraphTestService.java
   
/trunk/user/test/com/google/gwt/user/client/rpc/ObjectGraphTestServiceAsync.java
  /trunk/user/test/com/google/gwt/user/client/rpc/TestSetFactory.java
  /trunk/user/test/com/google/gwt/user/client/rpc/TestSetValidator.java
   
/trunk/user/test/com/google/gwt/user/server/rpc/ObjectGraphTestServiceImpl.java

===
---  
/trunk/user/src/com/google/gwt/rpc/client/impl/CommandClientSerializationStreamWriter.java
   
Wed Oct 28 09:10:53 2009
+++  
/trunk/user/src/com/google/gwt/rpc/client/impl/CommandClientSerializationStreamWriter.java
   
Tue Nov  3 08:52:16 2009
@@ -51,13 +51,19 @@
  anObject.hashCode();
}

-  private final MapObject, IdentityValueCommand identityMap = new  
IdentityHashMapObject, IdentityValueCommand();
+  private final MapObject, IdentityValueCommand identityMap;
private final TypeOverrides serializer;

public CommandClientSerializationStreamWriter(TypeOverrides serializer,
CommandSink sink) {
+this(serializer, sink, new IdentityHashMapObject,  
IdentityValueCommand());
+  }
+
+  private CommandClientSerializationStreamWriter(TypeOverrides serializer,
+  CommandSink sink, MapObject, IdentityValueCommand identityMap) {
  super(sink);
  this.serializer = serializer;
+this.identityMap = identityMap;
}

/**
@@ -141,8 +147,13 @@
  InvokeCustomFieldSerializerCommand command = new  
InvokeCustomFieldSerializerCommand(
  type, null, null);
  identityMap.put(value, command);
+
+/*
+ * Pass the current identityMap into the new writer to allow circular
+ * references through the graph emitted by the CFS.
+ */
  CommandClientSerializationStreamWriter subWriter = new  
CommandClientSerializationStreamWriter(
-serializer, new HasValuesCommandSink(command));
+serializer, new HasValuesCommandSink(command), identityMap);

  serializeFunction.serialize(subWriter, value);
  if (serializer.hasExtraFields(type.getName())) {
===
---  
/trunk/user/src/com/google/gwt/rpc/server/CommandServerSerializationStreamReader.java

Wed Oct 28 09:10:53 2009
+++  
/trunk/user/src/com/google/gwt/rpc/server/CommandServerSerializationStreamReader.java

Tue Nov  3 08:52:16 2009
@@ -177,7 +177,8 @@
  public boolean visit(InvokeCustomFieldSerializerCommand x, Context  
ctx) {
if (maybePushBackRef(x)) {

-CommandServerSerializationStreamReader subReader = new  
CommandServerSerializationStreamReader();
+CommandServerSerializationStreamReader subReader = new  
CommandServerSerializationStreamReader(
+backRefs);
  subReader.prepareToRead(x.getValues());

  Class? serializerClass = x.getSerializerClass();
@@ -267,9 +268,18 @@
  }
}

-  MapIdentityValueCommand, Object backRefs = new  
HashMapIdentityValueCommand, Object();
+  final MapIdentityValueCommand, Object backRefs;
IteratorValueCommand values;

+  public CommandServerSerializationStreamReader() {
+this(new HashMapIdentityValueCommand, Object());
+  }
+
+  private CommandServerSerializationStreamReader(
+  MapIdentityValueCommand, Object backRefs) {
+this.backRefs = backRefs;
+  }
+
public void prepareToRead(ListValueCommand commands) {
  values = commands.iterator();
  assert values.hasNext() : No commands;
===
---  
/trunk/user/src/com/google/gwt/rpc/server/CommandServerSerializationStreamWriter.java

Wed Oct 28 09:10:53 2009
+++  
/trunk/user/src/com/google/gwt/rpc/server/CommandServerSerializationStreamWriter.java

Tue Nov  3 08:52:16 2009
@@ -48,7 +48,7 @@
  CommandSerializationStreamWriterBase {

private final ClientOracle clientOracle;
-  private final MapObject, IdentityValueCommand identityMap = new  
IdentityHashMapObject, IdentityValueCommand();
+  private final MapObject, IdentityValueCommand identityMap;

public CommandServerSerializationStreamWriter(CommandSink sink) {
  this(new HostedModeClientOracle(), sink);
@@ -56,8 +56,14 @@

public CommandServerSerializationStreamWriter(ClientOracle oracle,
CommandSink sink) {
+this(oracle, sink, new 

[gwt-contrib] Re: Compiler Optimization Thought: Class merging

2009-11-03 Thread Bruce Johnson
This topic usually centers on all the little types needed for various event
handlers. Happily, @UiHandler in UiBinder removes the whole issue. The
UiBinder code generator can do whatever nastiness it needs to in order to
create the most efficient event handler/dispatch code. IOW, it's not only
more convenient to write your code using @UiHandler, it's almost certainly
more efficient than what you'd create by hand even if you were willing to do
the Hard Thing in your own handwritten code.

On Tue, Nov 3, 2009 at 12:23 PM, Scott Blum sco...@google.com wrote:

 Hi Nathan,

 We've talked about doing something like this, under various names,
 including inner class elision.  It seems worthwhile in the abstract, to
 reduce client-side object counts.  What I'm not sure of is how hard it
 really would be to get right.  In the past we've had discussions about the
 attributes of the classes to be merged.  They'd need to be singletons within
 their containing class, final, initialized up front.. and references
 wouldn't be allowed to escape into the wild.  And that last one is the
 real sticking point for what you want... allowing references to escape gets
 very problematic, but not allowing them to escape makes it very hard to
 actually get it to kick in for the exact case you're trying to solve.

 Scott

 On Tue, Nov 3, 2009 at 11:43 AM, Nathan Wells nwwe...@gmail.com wrote:


 As I was developing this morning, I came across a trade-off that I
 wasn't happy with. Namely, as I create handlers and other interface
 implementations in a given class, the implementations create new
 classes, which adds additional, unnecessary code into the compiled
 output.

 One way around this is to sacrifice my code readability and simply
 have the containing class implement those interfaces. For example,

 class Foo {
  static class BarHandler implements ClickHandler, KeyDownHandler {
...
  }

  static class FooCommand implements Command {
...
  }

  ... class body that doesn't implement and onClick, onKeyDown or
 execute method...

 }

 could compile to something like

 class Foo implements ClickHandler, KeyDownHandler, Command {
  ... merged implementations ...
 }

 Of course, I'm operating under a few assumptions (based on my watching
 this group and the developer group, and my lack of knowledge about how
 the compiler actually works ;)

 1. This isn't already done,
 2. Adding more classes actually significantly increases the bulk of
 compiled output.
 3. The amount of time to add this optimization would be less than the
 pain of the trade-off I'm dealing with.

 Let me know what you think,
 Nathan



 


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



[gwt-contrib] Re: RR : GWT 2.0 : Stabilize ClientBundle and MhtmlResourceContext output

2009-11-03 Thread jgw

On 2009/11/03 01:50:35, jlabanca wrote:
 As I mentioned before, I'm not all tat familiar with generators,
especially
 complex ones like this. Scott can probably give you better feedback
than I.

 http://gwt-code-reviews.appspot.com/89814/diff/1/2
 File

user/src/com/google/gwt/resources/rebind/context/AbstractClientBundleGenerator.java
 (right):

 http://gwt-code-reviews.appspot.com/89814/diff/1/2#newcode559
 Line 559: private MapResourceGenerator, ListJMethod
initAndPrepare(
 Why did you move this method?

LGTM. Amazing what a pain it is to ensure generator stability.

http://gwt-code-reviews.appspot.com/89814

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



[gwt-contrib] CompiledClasses now compute anonymous class status from JDT.

2009-11-03 Thread scottb

Reviewers: amitmanjhi,

Description:
This is to support new development where CCs don't retain their
TypeOracle references.

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

Affected files:
   dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java
   dev/core/src/com/google/gwt/dev/javac/CompiledClass.java



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



[gwt-contrib] Re: Fix some checkstyle warnings

2009-11-03 Thread Ray Ryan

Guess you caught me ignoring those.

Please remember to merge this into releases/2.0 as well, so that
downstream merges don't get complicated.

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



[gwt-contrib] Re: Make User depend upon UiBinder

2009-11-03 Thread BobV

On Tue, Nov 3, 2009 at 8:05 PM, Ray Ryan rj...@google.com wrote:
 So circular is okay?

It's fine.  ModuleDef deals with this by ignoring repeated imports.

-- 
Bob Vawter
Google Web Toolkit Team

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



[gwt-contrib] Re: Avoid calling overridable methods from ArrayList constructors

2009-11-03 Thread scottb

LGTM, some comments.


http://gwt-code-reviews.appspot.com/91809/diff/1/2
File user/super/com/google/gwt/emul/java/util/ArrayList.java (right):

http://gwt-code-reviews.appspot.com/91809/diff/1/2#newcode79
Line 79: clearImpl();
While you're there, it seems like we should delete this block and simply
initialize array inline.  Can you think of any reason not to?  The
reasoning that went into reusing the implementation method is totally
bogus in the face of modern compiler opts that will inline it.

http://gwt-code-reviews.appspot.com/91809/diff/1/2#newcode85
Line 85: // Note - we avoid calling overridable methods from
constructors
Can you move this inside the bodies of the relevant constructors?

http://gwt-code-reviews.appspot.com/91809/diff/1/2#newcode88
Line 88: if (!c.isEmpty()) {
Do we actually need the guard?

http://gwt-code-reviews.appspot.com/91809

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



[gwt-contrib] [google-web-toolkit] r6608 committed - Adds uibinder to javadoc....

2009-11-03 Thread codesite-noreply
Revision: 6608
Author: br...@google.com
Date: Tue Nov  3 10:32:28 2009
Log: Adds uibinder to javadoc.

Patch by: bruce
Review by: rjrjr



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

Modified:
  /trunk/doc/build.xml

===
--- /trunk/doc/build.xmlWed Oct 28 12:55:56 2009
+++ /trunk/doc/build.xmlTue Nov  3 10:32:28 2009
@@ -10,7 +10,7 @@
property.ensure name=gwt.dev.jar  
location=${gwt.build.lib}/gwt-dev.jar /

property name=USER_PKGS
-   
value=com.google.gwt.animation.client;com.google.gwt.benchmarks.client;com.google.gwt.core.client;com.google.gwt.core.ext;com.google.gwt.core.ext.soyc;com.google.gwt.core.ext.linker;com.google.gwt.core.ext.typeinfo;com.google.gwt.core.linker;com.google.gwt.debug.client;com.google.gwt.dom.client;com.google.gwt.event.dom.client;com.google.gwt.event.logical.shared;com.google.gwt.event.shared;com.google.gwt.http.client;com.google.gwt.i18n.client;com.google.gwt.i18n.client.constants;com.google.gwt.i18n.rebind.format;com.google.gwt.i18n.rebind.keygen;com.google.gwt.json.client;com.google.gwt.junit.client;com.google.gwt.benchmarks.client;com.google.gwt.resources.client;com.google.gwt.resources.ext;com.google.gwt.user.client;com.google.gwt.user.client.rpc;com.google.gwt.user.client.ui;com.google.gwt.user.datepicker.client;com.google.gwt.user.server.rpc;com.google.gwt.xml.client/
+   
value=com.google.gwt.animation.client;com.google.gwt.benchmarks.client;com.google.gwt.core.client;com.google.gwt.core.ext;com.google.gwt.core.ext.soyc;com.google.gwt.core.ext.linker;com.google.gwt.core.ext.typeinfo;com.google.gwt.core.linker;com.google.gwt.debug.client;com.google.gwt.dom.client;com.google.gwt.event.dom.client;com.google.gwt.event.logical.shared;com.google.gwt.event.shared;com.google.gwt.http.client;com.google.gwt.i18n.client;com.google.gwt.i18n.client.constants;com.google.gwt.i18n.rebind.format;com.google.gwt.i18n.rebind.keygen;com.google.gwt.json.client;com.google.gwt.junit.client;com.google.gwt.benchmarks.client;com.google.gwt.resources.client;com.google.gwt.resources.ext;com.google.gwt.user.client;com.google.gwt.user.client.rpc;com.google.gwt.user.client.ui;com.google.gwt.user.datepicker.client;com.google.gwt.user.server.rpc;com.google.gwt.xml.client;com.google.gwt.uibinder.client/
property name=LANG_PKGS  
value=java.lang;java.lang.annotation;java.util;java.io;java.sql /

!--Individual classes to include when we don't want to

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



[gwt-contrib] Re: Compiler Optimization Thought: Class merging

2009-11-03 Thread Matt Mastracci
I think the impact of anonymous classes will be significantly less  
once union types are implemented. As it stands right now, every  
anonymous class gets typeinfo and getClass because some code elsewhere  
is calling it on an variable that can't be tightened more than Object.

On 2009-11-03, at 10:23 AM, Scott Blum sco...@google.com wrote:

 Hi Nathan,

 We've talked about doing something like this, under various names,  
 including inner class elision.  It seems worthwhile in the  
 abstract, to reduce client-side object counts.  What I'm not sure of  
 is how hard it really would be to get right.  In the past we've had  
 discussions about the attributes of the classes to be merged.   
 They'd need to be singletons within their containing class, final,  
 initialized up front.. and references wouldn't be allowed to  
 escape into the wild.  And that last one is the real sticking  
 point for what you want... allowing references to escape gets very  
 problematic, but not allowing them to escape makes it very hard to  
 actually get it to kick in for the exact case you're trying to solve.

 Scott

 On Tue, Nov 3, 2009 at 11:43 AM, Nathan Wells nwwe...@gmail.com  
 wrote:

 As I was developing this morning, I came across a trade-off that I
 wasn't happy with. Namely, as I create handlers and other interface
 implementations in a given class, the implementations create new
 classes, which adds additional, unnecessary code into the compiled
 output.

 One way around this is to sacrifice my code readability and simply
 have the containing class implement those interfaces. For example,

 class Foo {
  static class BarHandler implements ClickHandler, KeyDownHandler {
...
  }

  static class FooCommand implements Command {
...
  }

  ... class body that doesn't implement and onClick, onKeyDown or
 execute method...

 }

 could compile to something like

 class Foo implements ClickHandler, KeyDownHandler, Command {
  ... merged implementations ...
 }

 Of course, I'm operating under a few assumptions (based on my watching
 this group and the developer group, and my lack of knowledge about how
 the compiler actually works ;)

 1. This isn't already done,
 2. Adding more classes actually significantly increases the bulk of
 compiled output.
 3. The amount of time to add this optimization would be less than the
 pain of the trade-off I'm dealing with.

 Let me know what you think,
 Nathan



 

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



[gwt-contrib] Re: Fix some checkstyle warnings

2009-11-03 Thread דניאל רייס
  They show up as severity=info which doesn't break the build.  But at
least the @param names seem worth fixing...

Dan

On Tue, Nov 3, 2009 at 3:21 PM, rj...@google.com wrote:

 Thanks.

 Why is ant checkstyle passing for me?


 http://gwt-code-reviews.appspot.com/89816


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



[gwt-contrib] [google-web-toolkit] r6609 committed - Avoid calling overridable methods from constructors to avoid subclassi...

2009-11-03 Thread codesite-noreply

Revision: 6609
Author: r...@google.com
Date: Tue Nov  3 10:42:54 2009
Log: Avoid calling overridable methods from constructors to avoid  
subclassing glitches
(see external issue 4177).

Review by: scottb


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

Modified:
  /trunk/user/super/com/google/gwt/emul/java/util/ArrayList.java

===
--- /trunk/user/super/com/google/gwt/emul/java/util/ArrayList.java  Fri Oct 
  
9 15:22:16 2009
+++ /trunk/user/super/com/google/gwt/emul/java/util/ArrayList.java  Tue Nov 
  
3 10:42:54 2009
@@ -61,7 +61,7 @@
/**
 * This field holds a JavaScript array.
 */
-  private transient E[] array;
+  private transient E[] array = (E[]) new Object[0];

/**
 * Ensures that RPC will consider type parameter E to be exposed. It  
will be
@@ -73,22 +73,21 @@
/**
 * The size of the array.
 */
-  private int size;
-
-  {
-clearImpl();
-  }
+  private int size = 0;

public ArrayList() {
}
-
+
public ArrayList(Collection? extends E c) {
-addAll(c);
+// Avoid calling overridable methods from constructors
+spliceArray(array, 0, 0, c.toArray());
+size = c.size();
}

public ArrayList(int initialCapacity) {
+// Avoid calling overridable methods from constructors
  assert (initialCapacity = 0);
-ensureCapacity(initialCapacity);
+setCapacity(array, initialCapacity);
}

@Override
@@ -130,7 +129,8 @@

@Override
public void clear() {
-clearImpl();
+array = (E[]) new Object[0];
+size = 0;
}

public Object clone() {
@@ -275,10 +275,4 @@
  setCapacity(array, newSize);
  size = newSize;
}
-
-  @SuppressWarnings(unchecked)
-  private void clearImpl() {
-array = (E[]) new Object[0];
-size = 0;
-  }
-}
+}

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



[gwt-contrib] [google-web-toolkit] r6610 committed - Adds uibinder to javadoc, replicating the same change in trunk in r660...

2009-11-03 Thread codesite-noreply
Revision: 6610
Author: br...@google.com
Date: Tue Nov  3 10:55:22 2009
Log: Adds uibinder to javadoc, replicating the same change in trunk in  
r6608.

Patch by: bruce
Reveiw by: rjrjr


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

Modified:
  /releases/2.0/doc/build.xml

===
--- /releases/2.0/doc/build.xml Tue Oct 13 16:57:19 2009
+++ /releases/2.0/doc/build.xml Tue Nov  3 10:55:22 2009
@@ -10,7 +10,7 @@
property.ensure name=gwt.dev.jar  
location=${gwt.build.lib}/gwt-dev.jar /

property name=USER_PKGS
-   
value=com.google.gwt.animation.client;com.google.gwt.benchmarks.client;com.google.gwt.core.client;com.google.gwt.core.ext;com.google.gwt.core.ext.soyc;com.google.gwt.core.ext.linker;com.google.gwt.core.ext.typeinfo;com.google.gwt.debug.client;com.google.gwt.dom.client;com.google.gwt.event.dom.client;com.google.gwt.event.logical.shared;com.google.gwt.event.shared;com.google.gwt.http.client;com.google.gwt.i18n.client;com.google.gwt.i18n.client.constants;com.google.gwt.i18n.rebind.format;com.google.gwt.i18n.rebind.keygen;com.google.gwt.json.client;com.google.gwt.junit.client;com.google.gwt.benchmarks.client;com.google.gwt.resources.client;com.google.gwt.resources.ext;com.google.gwt.user.client;com.google.gwt.user.client.rpc;com.google.gwt.user.client.ui;com.google.gwt.user.datepicker.client;com.google.gwt.user.server.rpc;com.google.gwt.xml.client/
+   
value=com.google.gwt.animation.client;com.google.gwt.benchmarks.client;com.google.gwt.core.client;com.google.gwt.core.ext;com.google.gwt.core.ext.soyc;com.google.gwt.core.ext.linker;com.google.gwt.core.ext.typeinfo;com.google.gwt.debug.client;com.google.gwt.dom.client;com.google.gwt.event.dom.client;com.google.gwt.event.logical.shared;com.google.gwt.event.shared;com.google.gwt.http.client;com.google.gwt.i18n.client;com.google.gwt.i18n.client.constants;com.google.gwt.i18n.rebind.format;com.google.gwt.i18n.rebind.keygen;com.google.gwt.json.client;com.google.gwt.junit.client;com.google.gwt.benchmarks.client;com.google.gwt.resources.client;com.google.gwt.resources.ext;com.google.gwt.user.client;com.google.gwt.user.client.rpc;com.google.gwt.user.client.ui;com.google.gwt.user.datepicker.client;com.google.gwt.user.server.rpc;com.google.gwt.xml.client;com.google.gwt.uibinder.client/
property name=LANG_PKGS  
value=java.lang;java.lang.annotation;java.util;java.io;java.sql /

!--Individual classes to include when we don't want to

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



[gwt-contrib] Re: RR: Introduces system property gwt.testMethodTimeoutMinutes

2009-11-03 Thread Ray Ryan
Okay, how's this?

(gwt-code-reviews.appspot.com is suddenly puking when I try to upload
patches to it, so here's one the old fashioned way. )
On Tue, Nov 3, 2009 at 4:06 PM, Amit Manjhi amitman...@google.com wrote:

 I agree with John. A system property is a global VM-wide option that seems
 like an overkill for this purpose. A command line option with sane defaults
 is probably the way to go.

 On Tue, Nov 3, 2009 at 3:50 PM, j...@google.com wrote:

 On 2009/11/03 23:49:14, Ray Ryan wrote:

 I imagine I'm not the only one who tweaks

 JUnitShell.TEST_METHOD_TIMEOUT_MILLIS

 when in the middle of long debug sessions. Wouldn't it be nice to be

 able to do

 so without touching the code?


  General questions: is a system property the right way to do this; is

 the

 property name okay; and is it okay to hit the system properties at

 class init

 time like that?


  Also deletes unneeded @SuppressWarnings


 I think this would be better as a JUnitShell command line option.


 http://gwt-code-reviews.appspot.com/89819




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



testMethodTimeout.diff
Description: Binary data


[gwt-contrib] Re: Make Horiz and Vert constant parsers field ref friendly

2009-11-03 Thread Ray Ryan

In fact, this is the third one.

On Tue, Nov 3, 2009 at 6:15 PM,  j...@google.com wrote:
 On 2009/11/03 22:48:40, Ray Ryan wrote:

 Joel, here's a quick one.

 LGTM (I think it may have already sent this, but Rietveld was 500'ing
 before).

 http://gwt-code-reviews.appspot.com/91811


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



[gwt-contrib] Re: Run tests multiple times with HtmlUnit to reduce false positives of failures

2009-11-03 Thread amitmanjhi

Uploading another patch. Did not know how to do it with this message.


http://gwt-code-reviews.appspot.com/91806/diff/1/2
File user/src/com/google/gwt/junit/JUnitMessageQueue.java (right):

http://gwt-code-reviews.appspot.com/91806/diff/1/2#newcode413
Line 413: assert (result != null);
Good point. Fixed.
On 2009/11/03 01:43:00, jlabanca wrote:
 This can be null.  The result is set to null to indicate that the test
has
 started, but no results have been received from the client.  With
respect to
 retry, the results will be null if we retry after a remote browser
dies in the
 middle of a test.

http://gwt-code-reviews.appspot.com/91806/diff/1/3
File user/src/com/google/gwt/junit/JUnitShell.java (right):

http://gwt-code-reviews.appspot.com/91806/diff/1/3#newcode698
Line 698: getTopLogger().log(TreeLogger.ERROR,
On 2009/11/02 22:09:01, jat wrote:
 This formatting change doesn't look right (the previous version fit
fine in 80
 characters) and is unrelated to the actual change being made.

Done.

http://gwt-code-reviews.appspot.com/91806/diff/1/3#newcode908
Line 908: if (batchingStrategy instanceof NoBatchingStrategy) {
Done.

On 2009/11/03 01:43:00, jlabanca wrote:
 You should put a comment explaining why this is true.  If a
BatchingStrategy is
 present, the client will already have moved passed the failed test
case.

http://gwt-code-reviews.appspot.com/91806/diff/1/3#newcode912
Line 912: batching does not work with retries, so not being retried);
Added a todo, will do in a separate commit

On 2009/11/03 01:43:00, jlabanca wrote:
 I think we should check this when we process the arguments.  In fact,
we should
 probably add a sanity check after the args processor to verify that we
don't
 have conflicting args in general.

http://gwt-code-reviews.appspot.com/91806/diff/1/3#newcode1005
Line 1005: prevTestInfo = currentTestInfo;
Good idea.

On 2009/11/03 01:43:00, jlabanca wrote:
 Since runTestImpl is called recursively, can you just pass numTries as
an arg?
 Then you can do away with the numTries and prevTestInfo instance
variables.  The
 static runTest methods can pass 0.

http://gwt-code-reviews.appspot.com/91806/diff/1/4
File user/src/com/google/gwt/junit/RunStyle.java (right):

http://gwt-code-reviews.appspot.com/91806/diff/1/4#newcode46
Line 46: public int getTries() {
Have a Todo elsewhere to add a command line arg. However, I think
retries is better as a RunStyle level argument than a global argument.

On 2009/11/03 01:43:00, jlabanca wrote:
 You should add a command line -retryCount arg to JUnitShell so the
user can
 specify this?  I think the number of retries would have more to do
with the
 users test setup than with the run style.

 This method should be getDefaultRetryCount, because it is the default
if the
 user does not specify a count.

http://gwt-code-reviews.appspot.com/91806/diff/1/4#newcode78
Line 78: * an error setting up for that mode
Removed

On 2009/11/02 22:09:01, jat wrote:
 These changes aren't related and I think are actually incorrect, since
 continuation lines should be indented 4 characters.

http://gwt-code-reviews.appspot.com/91806/diff/1/6
File user/test/com/google/gwt/junit/JUnitMessageQueueTest.java (right):

http://gwt-code-reviews.appspot.com/91806/diff/1/6#newcode379
Line 379: int testsPerBlock = 1;
On 2009/11/03 01:43:00, jlabanca wrote:
 You can reuse your static values here.

Done.

http://gwt-code-reviews.appspot.com/91806/diff/1/7
File user/test/com/google/gwt/junit/client/GWTTestCaseTest.java (right):

http://gwt-code-reviews.appspot.com/91806/diff/1/7#newcode377
Line 377: public void testRetry() {
On 2009/11/03 01:43:00, jlabanca wrote:
 You should add a note that this method MUST appear after
testSetRetry().

Done.

http://gwt-code-reviews.appspot.com/91806

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



[gwt-contrib] Re: Inline Polymorphic Function Declarations

2009-11-03 Thread spoon

LGTM, but with a few small changes requested.  No need for rereview.


http://gwt-code-reviews.appspot.com/89810/diff/1/2
File dev/core/src/com/google/gwt/dev/jjs/impl/FragmentExtractor.java
(right):

http://gwt-code-reviews.appspot.com/89810/diff/1/2#newcode175
Line 175: * the call to vtableInitToMethod()?
It sounds like using vtableInitToMethod is enough.  So, this code can be
deleted.  However, please do check that, say, the initial download of
Showcase is not changing.

http://gwt-code-reviews.appspot.com/89810/diff/1/4
File dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
(right):

http://gwt-code-reviews.appspot.com/89810/diff/1/4#newcode1725
Line 1725: * turning named polymorphic functions into anonymous
functions.
This TODO appears twice.

http://gwt-code-reviews.appspot.com/89810/diff/1/3
File dev/core/src/com/google/gwt/dev/js/EvalFunctionsAtTopScope.java
(right):

http://gwt-code-reviews.appspot.com/89810/diff/1/3#newcode116
Line 116: if (x.getName() != null  !dontMove.contains(x)  func == x)
{
I believe this code would be simpler if you made it a visit on
JsExprStmt rather than a visit on JsFunction.  Then you don't need the
currentStatement field.

http://gwt-code-reviews.appspot.com/89810

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



[gwt-contrib] Re: Hello EnumAttributeParser

2009-11-03 Thread rjrjr

tr...@6596, releases/2...@6599

http://gwt-code-reviews.appspot.com/91807

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



[gwt-contrib] Re: Compiler Optimization Thought: Class merging

2009-11-03 Thread Ray Ryan

On Tue, Nov 3, 2009 at 1:21 PM, Nathan Wells nwwe...@gmail.com wrote:

 @Scott
 Thanks for the insight into the discussions. Maybe this will be
 something possible to add in the future, in some form.

 @Bruce
 I like what I see with the UIBinder methodology... However, there is
 some amount of incompatibility with the MVP approach, unless I'm
 mistaken. This is because all Composite classes require GwtTestCases,
 whereas a presenter-layer Handler class would be JUnit testable. Have
 there already been thoughts about integrating the concepts of MVP and
 UIBinder? What searching I've done hasn't turned up much.

UiBinder doesn't require composite. Anyway, we pretty much backed into
use of the MVP pattern because of our use of UiBinder's predecessor.
You build your View with UiBinder, and your Presenter doesn't know a
thing about it. What's the actual issue you're running into?

 I would love to see a discussion about combining MVP and UIBinder
 (though that's probably a topic for a different thread).

 On Nov 3, 11:36 am, Matt Mastracci matt...@mastracci.com wrote:
 I think the impact of anonymous classes will be significantly less
 once union types are implemented. As it stands right now, every
 anonymous class gets typeinfo and getClass because some code elsewhere
 is calling it on an variable that can't be tightened more than Object.

 On 2009-11-03, at 10:23 AM, Scott Blum sco...@google.com wrote:

  Hi Nathan,

  We've talked about doing something like this, under various names,
  including inner class elision.  It seems worthwhile in the
  abstract, to reduce client-side object counts.  What I'm not sure of
  is how hard it really would be to get right.  In the past we've had
  discussions about the attributes of the classes to be merged.
  They'd need to be singletons within their containing class, final,
  initialized up front.. and references wouldn't be allowed to
  escape into the wild.  And that last one is the real sticking
  point for what you want... allowing references to escape gets very
  problematic, but not allowing them to escape makes it very hard to
  actually get it to kick in for the exact case you're trying to solve.

  Scott

  On Tue, Nov 3, 2009 at 11:43 AM, Nathan Wells nwwe...@gmail.com
  wrote:

  As I was developing this morning, I came across a trade-off that I
  wasn't happy with. Namely, as I create handlers and other interface
  implementations in a given class, the implementations create new
  classes, which adds additional, unnecessary code into the compiled
  output.

  One way around this is to sacrifice my code readability and simply
  have the containing class implement those interfaces. For example,

  class Foo {
   static class BarHandler implements ClickHandler, KeyDownHandler {
     ...
   }

   static class FooCommand implements Command {
     ...
   }

   ... class body that doesn't implement and onClick, onKeyDown or
  execute method...

  }

  could compile to something like

  class Foo implements ClickHandler, KeyDownHandler, Command {
   ... merged implementations ...
  }

  Of course, I'm operating under a few assumptions (based on my watching
  this group and the developer group, and my lack of knowledge about how
  the compiler actually works ;)

  1. This isn't already done,
  2. Adding more classes actually significantly increases the bulk of
  compiled output.
  3. The amount of time to add this optimization would be less than the
  pain of the trade-off I'm dealing with.

  Let me know what you think,
  Nathan
 


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



[gwt-contrib] [google-web-toolkit] r6623 committed - Strangely, this works better across platforms.

2009-11-03 Thread codesite-noreply

Revision: 6623
Author: sco...@google.com
Date: Tue Nov  3 14:04:04 2009
Log: Strangely, this works better across platforms.
http://code.google.com/p/google-web-toolkit/source/detail?r=6623

Modified:
  /trunk/user/build.xml

===
--- /trunk/user/build.xml   Tue Nov  3 13:04:24 2009
+++ /trunk/user/build.xml   Tue Nov  3 14:04:04 2009
@@ -144,8 +144,8 @@
  /gwt.checkstyle
  gwt.checkstyle.tests
fileset dir=test
-filename name=com/google/** /
-filename name=test/** /
+include name=com/google/**/*.java /
+include name=test/** /
/fileset
  /gwt.checkstyle.tests
/target

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



[gwt-contrib] Re: CompiledClasses now compute anonymous class status from JDT.

2009-11-03 Thread amitmanjhi

As mentioned in the detailed comments, because more classes will pass
the isAnonymous() filter, the matching algorithm will break.

Perhaps isAnonymous() can be renamed to isLocal() (since that is exactly
what is being computed).

isAnonymous()  can then be isLocal() 
isClassnameGenerated(getBinaryName()). Is that feasible?


http://gwt-code-reviews.appspot.com/89817/diff/1/2
File dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java (right):

http://gwt-code-reviews.appspot.com/89817/diff/1/2#newcode546
Line 546: if (cc.isAnonymous()
More classes will pass this test now.

http://gwt-code-reviews.appspot.com/89817/diff/1/3
File dev/core/src/com/google/gwt/dev/javac/CompiledClass.java (right):

http://gwt-code-reviews.appspot.com/89817/diff/1/3#newcode83
Line 83: anonymous = true;
I was referring to classes such as:

foo() {
   class Bar {
  ...
   }
   new Bar();
}

Bar is a local class but is not an anonymous class. If we are indeed
interested in all local classes, perhaps this variable should be called
'local' instead of 'anonymous'

I do think the previous code excluded local classes from anonymous
classes. The anonymous class matching code  will probably break because
CompilationUnit::getJdtClassNames(...) will now return more classes.

On 2009/11/03 23:01:33, scottb wrote:
 Not sure I under the question?  I'm considering all local classes to
be
 anonymous here, whether they are one directly, or are contained in
one.  Even a
 named local class cannot be accessed outside of its containing method.

http://gwt-code-reviews.appspot.com/89817

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



[gwt-contrib] Make User depend upon UiBinder

2009-11-03 Thread rjrjr

Reviewers: bobv,

Message:
Clue and review requested.

Description:
Makes User inherit UiBinder, to keep people from having to think about
turning it on.

But before I submit this, an important question: why did (and does) the
test app work if it inherits UiBinder directly, without inheriting User?
I can't find any circular dependencies.

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

Affected files:
   M user/src/com/google/gwt/user/User.gwt.xml
   M user/test/com/google/gwt/uibinder/test/UiBinderTestApp.gwt.xml


Index: user/src/com/google/gwt/user/User.gwt.xml
diff --git a/user/src/com/google/gwt/user/User.gwt.xml  
b/user/src/com/google/gwt/user/User.gwt.xml
index  
15e7dc5170dcee0571b896196ecf753f52f60d03..0c35ed45fea6d7449e57c4875c9476a59503a3c6
  
100644
--- a/user/src/com/google/gwt/user/User.gwt.xml
+++ b/user/src/com/google/gwt/user/User.gwt.xml
@@ -23,6 +23,7 @@
 inherits name=com.google.gwt.animation.Animation/
 inherits name=com.google.gwt.resources.Resources/
 inherits name=com.google.gwt.layout.Layout/
+   inherits name=com.google.gwt.uibinder.UiBinder/
 inherits name=com.google.gwt.user.AsyncProxy/
 inherits name=com.google.gwt.user.RemoteService/
 inherits name=com.google.gwt.user.DocumentRoot /
Index: user/test/com/google/gwt/uibinder/test/UiBinderTestApp.gwt.xml
diff --git a/user/test/com/google/gwt/uibinder/test/UiBinderTestApp.gwt.xml  
b/user/test/com/google/gwt/uibinder/test/UiBinderTestApp.gwt.xml
index  
190e301899f0418246f07757af91043e36acc328..75532fbbd92f196e9013fdaa0ee1caf174a1c74a
  
100644
--- a/user/test/com/google/gwt/uibinder/test/UiBinderTestApp.gwt.xml
+++ b/user/test/com/google/gwt/uibinder/test/UiBinderTestApp.gwt.xml
@@ -13,7 +13,7 @@

  !-- GWT UiBinder  
support.  --
  module
-  inherits name=com.google.gwt.uibinder.UiBinder /
+  inherits name=com.google.gwt.user.User /
inherits name=com.google.gwt.debug.Debug/
entry-point class=com.google.gwt.uibinder.test.client.UiBinderTestApp  
/
  /module



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



[gwt-contrib] [google-web-toolkit] r6612 committed - Checkstyle fixes for UiBinder tests...

2009-11-03 Thread codesite-noreply

Revision: 6612
Author: rj...@google.com
Date: Tue Nov  3 12:16:32 2009
Log: Checkstyle fixes for UiBinder tests

Patch by jat

review by rjrjr
http://code.google.com/p/google-web-toolkit/source/detail?r=6612

Modified:
  /trunk/user/test/com/google/gwt/uibinder/All.java
   
/trunk/user/test/com/google/gwt/uibinder/parsers/IntAttributeParserTest.java
  /trunk/user/test/com/google/gwt/uibinder/rebind/DummyMortalLogger.java
  /trunk/user/test/com/google/gwt/uibinder/test/client/EnumeratedLabel.java

===
--- /trunk/user/test/com/google/gwt/uibinder/All.java   Mon Nov  2 12:47:15  
2009
+++ /trunk/user/test/com/google/gwt/uibinder/All.java   Tue Nov  3 12:16:32  
2009
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2009 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.uibinder;

  import com.google.gwt.junit.tools.GWTTestSuite;
@@ -9,6 +24,10 @@
   * does not end in Suite to keep ant from running it redundantly.
   */
  public class All {
+
+  /**
+   * @return a test suite containing all the UiBinder tests.
+   */
public static Test suite() {
  GWTTestSuite suite = new GWTTestSuite(All UiBinder tests);

===
---  
/trunk/user/test/com/google/gwt/uibinder/parsers/IntAttributeParserTest.java
 
Mon Nov  2 12:47:15 2009
+++  
/trunk/user/test/com/google/gwt/uibinder/parsers/IntAttributeParserTest.java
 
Tue Nov  3 12:16:32 2009
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2009 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.uibinder.parsers;

  import com.google.gwt.core.ext.UnableToCompleteException;
@@ -5,6 +20,9 @@

  import junit.framework.TestCase;

+/**
+ * Test parsing integer attributes.
+ */
  public class IntAttributeParserTest extends TestCase {
private IntAttributeParser parser;
private DummyMortalLogger logger;
===
--- /trunk/user/test/com/google/gwt/uibinder/rebind/DummyMortalLogger.java  
 
Mon Nov  2 12:47:15 2009
+++ /trunk/user/test/com/google/gwt/uibinder/rebind/DummyMortalLogger.java  
 
Tue Nov  3 12:16:32 2009
@@ -15,6 +15,9 @@
   */
  package com.google.gwt.uibinder.rebind;

+/**
+ * A MortalLogger using a dummy logger.
+ */
  public class DummyMortalLogger extends MortalLogger {
public DummyMortalLogger() {
  super(new DummyTreeLogger());
===
---  
/trunk/user/test/com/google/gwt/uibinder/test/client/EnumeratedLabel.java   
 
Mon Nov  2 20:08:34 2009
+++  
/trunk/user/test/com/google/gwt/uibinder/test/client/EnumeratedLabel.java   
 
Tue Nov  3 12:16:32 2009
@@ -1,8 +1,30 @@
+/*
+ * Copyright 2009 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.uibinder.test.client;

  import com.google.gwt.user.client.ui.Label;

+/**
+ * A label that has an enum, to test UiBinder enum parsing.
+ */
  public class EnumeratedLabel extends Label {
+
+  /**
+   * An enum representing the suffix type.
+   */
public enum Suffix { ending, suffix, tail}

private Suffix suffix = Suffix.ending;

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



[gwt-contrib] [google-web-toolkit] r6628 committed - Remove FF2 prebuilt directories (for now, may add back later), tweak...

2009-11-03 Thread codesite-noreply

Revision: 6628
Author: j...@google.com
Date: Tue Nov  3 14:59:17 2009
Log: Remove FF2 prebuilt directories (for now, may add back later), tweak
install.rdf template.

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

Deleted:
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff2
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff2
Modified:
  /changes/jat/single-xpi/plugins/xpcom/install-template.rdf

===
--- /changes/jat/single-xpi/plugins/xpcom/install-template.rdf  Tue Nov  3  
14:54:41 2009
+++ /changes/jat/single-xpi/plugins/xpcom/install-template.rdf  Tue Nov  3  
14:59:17 2009
@@ -30,17 +30,14 @@

   
em:optionsURLchrome://gwt-devmode-plugin/content/options.xul/em:optionsURL

- 
em:updateURL![CDATA[https://dl.google.com/gwt/plugins/firefox-update.rdf?guid=%ITEM_ID%version=%ITEM_VERSION%application=%APP_ID%appversion=%APP_VERSION%]]/em:updateURL
+# updates, see  
http://developer.mozilla.org/en/docs/Extension_Versioning%2C_Update_and_Compatibility#Update_RDF_Format
+ 
em:updateURL![CDATA[https://dl.google.com/gwt/plugins/firefox-update.rdf?guid=%ITEM_ID%version=%ITEM_VERSION%application=%APP_ID%appversion=%APP_VERSION%locale=%APP_LOCALE%]]/em:updateURL

  !-- TODO
  # replace default about dialog
  em:aboutURLchrome://gwt-dmp/content/about.xul/em:aboutURL

-# updates, see  
http://developer.mozilla.org/en/docs/Extension_Versioning%2C_Update_and_Compatibility#Update_RDF_Format
-em:updateURLhttps://xxx.google.com/.../update.rdf/em:updateURL
- 
em:updateURLhttp://google-web-toolkit.googlecode.com/svn/trunk/plugins/xpcom/prebuilt/update.rdf/em:updateURL
-
-# platforms - any others?
+# more platforms - any others?
  em:targetPlatformSunOS_sparc-sunc/em:targetPlatform
  em:targetPlatformSunOS_x86-sunc/em:targetPlatform
  em:targetPlatformSunOS_x86_64-sunc/em:targetPlatform

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



[gwt-contrib] Fixes NPE in DockLayoutPanelParser when children have no NS

2009-11-03 Thread bruce

Reviewers: jgw,

Description:
Forgetting a namespace prefix on a child elem of DockLayoutPanel causes
an NPE, for example:

g:DockLayoutPanel unit=PCT
   westg:HTMLPanelfoo/g:HTMLPanel/west
   east/east
/g:DockLayoutPanel

Unfortunately, even after the patch the error message is confusing. It
says:
In g:DockLayoutPanel unit='PCT', child must be one of {north, south,
east, west, center}

The problem is that when you look at the XML, it seems like you've done
exactly what's being asked for. The error message ought to someone
account for the NS mismatch in how it explains the error.

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

Affected files:
   user/src/com/google/gwt/uibinder/parsers/DockLayoutPanelParser.java


Index: user/src/com/google/gwt/uibinder/parsers/DockLayoutPanelParser.java
===
--- user/src/com/google/gwt/uibinder/parsers/DockLayoutPanelParser.java  
(revision 6630)
+++ user/src/com/google/gwt/uibinder/parsers/DockLayoutPanelParser.java  
(working copy)
@@ -98,8 +98,22 @@
}

private boolean isValidChildElement(XMLElement parent, XMLElement child)  
{
-return child.getNamespaceUri().equals(parent.getNamespaceUri())
- DOCK_NAMES.containsKey(child.getLocalName());
+String childNsUri = child.getNamespaceUri();
+String parentNsUri = parent.getNamespaceUri();
+if (childNsUri == null  parentNsUri != null) {
+return false;
+}
+if (childNsUri != null  parentNsUri == null) {
+return false;
+}
+if (!childNsUri.equals(parentNsUri)) {
+  return false;
+}
+if (!DOCK_NAMES.containsKey(child.getLocalName())) {
+  return false;
+}
+// Made it through the gauntlet.
+return true;
}

private boolean requiresSize(XMLElement elem) {



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



[gwt-contrib] Re: missing headers and comments on UiBinder tests

2009-11-03 Thread Ray Ryan
Thanks, John. ant checkstyle didn't complain so I didn't notice. I'll
commit the patch in a moment.

On Tue, Nov 3, 2009 at 8:53 AM, John Tamplin j...@google.com wrote:
 Here is a patch which fixes it.

 --
 John A. Tamplin
 Software Engineer (GWT), Google


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



uibinder-checkstyle.patch
Description: Binary data


[gwt-contrib] [google-web-toolkit] r6606 committed - Stabilize the output from ClientBundle and MhtmlResourceContext....

2009-11-03 Thread codesite-noreply

Revision: 6606
Author: b...@google.com
Date: Tue Nov  3 10:06:29 2009
Log: Stabilize the output from ClientBundle and MhtmlResourceContext.

Patch by: bobv
Review by: jgw
http://code.google.com/p/google-web-toolkit/source/detail?r=6606

Modified:
   
/trunk/user/src/com/google/gwt/resources/rebind/context/AbstractClientBundleGenerator.java
   
/trunk/user/src/com/google/gwt/resources/rebind/context/MhtmlClientBundleGenerator.java
   
/trunk/user/src/com/google/gwt/resources/rebind/context/MhtmlResourceContext.java

===
---  
/trunk/user/src/com/google/gwt/resources/rebind/context/AbstractClientBundleGenerator.java
   
Wed Oct 28 07:06:41 2009
+++  
/trunk/user/src/com/google/gwt/resources/rebind/context/AbstractClientBundleGenerator.java
   
Tue Nov  3 10:06:29 2009
@@ -42,12 +42,12 @@
  import com.google.gwt.user.rebind.SourceWriter;

  import java.io.PrintWriter;
-import java.io.StringWriter;
  import java.util.ArrayList;
  import java.util.Collection;
  import java.util.HashMap;
  import java.util.HashSet;
  import java.util.IdentityHashMap;
+import java.util.LinkedHashMap;
  import java.util.List;
  import java.util.Map;
  import java.util.Set;
@@ -58,13 +58,15 @@
  public abstract class AbstractClientBundleGenerator extends Generator {

/**
-   * An implementation of FieldAccumulator that immediately composes its  
output
-   * into a StringWriter.
+   * An implementation of ClientBundleFields.
 */
-  private static class FieldsImpl implements ClientBundleFields {
+  protected static class FieldsImpl implements ClientBundleFields {
  private final NameFactory factory = new NameFactory();
-private final StringWriter buffer = new StringWriter();
-private final PrintWriter pw = new PrintWriter(buffer);
+/**
+ * It is necessary to maintain order in case one field refers to  
another.
+ */
+private final MapString, String fieldsToDeclarations = new  
LinkedHashMapString, String();
+private final MapString, String fieldsToInitializers = new  
HashMapString, String();

  public void addName(String name) {
factory.addName(name);
@@ -82,33 +84,56 @@

String ident = factory.createName(name);

-  pw.print(private );
+  StringBuilder sb = new StringBuilder();
+  sb.append(private );

if (isStatic) {
-pw.print(static );
+sb.append(static );
}

if (isFinal) {
-pw.print(final );
+sb.append(final );
}

-  pw.print(type.getQualifiedSourceName());
-  pw.print( );
-  pw.print(ident);
+  sb.append(type.getQualifiedSourceName());
+  sb.append( );
+  sb.append(ident);
+
+  fieldsToDeclarations.put(ident, sb.toString());

if (initializer != null) {
-pw.print( = );
-pw.print(initializer);
-  }
-
-  pw.println(;);
+fieldsToInitializers.put(ident, initializer);
+  }

return ident;
  }

-public String toString() {
-  pw.flush();
-  return buffer.getBuffer().toString();
+/**
+ * This can be called to reset the initializer expression on an
+ * already-defined field.
+ *
+ * @param ident an identifier previously returned by {...@link #define}
+ * @param initializer a Java expression that will be used to  
initialize the
+ *  field
+ */
+public void setInitializer(String ident, String initializer) {
+  assert fieldsToDeclarations.containsKey(ident) : ident +  not  
defined;
+  fieldsToInitializers.put(ident, initializer);
+}
+
+private String getCode() {
+  StringBuilder sb = new StringBuilder();
+  for (Map.EntryString, String entry :  
fieldsToDeclarations.entrySet()) {
+String ident = entry.getKey();
+sb.append(entry.getValue());
+
+String initializer = fieldsToInitializers.get(ident);
+if (initializer != null) {
+  sb.append( = ).append(initializer);
+}
+sb.append(;\n);
+  }
+  return sb.toString();
  }
}

@@ -194,6 +219,9 @@

  // If an implementation already exists, we don't need to do any work
  if (out != null) {
+  // There is actual work to do
+  doCreateBundleForPermutation(logger, generatorContext, fields,
+  generatedSimpleSourceName);
// Begin writing the generated source.
ClassSourceFileComposerFactory f = new  
ClassSourceFileComposerFactory(
packageName, generatedSimpleSourceName);
@@ -218,7 +246,7 @@
fields);

// Print the accumulated field definitions
-  sw.println(fields.toString());
+  sw.println(fields.getCode());

/*
 * The map-accessor methods use JSNI and need a fully-qualified class
@@ -231,7 +259,7 @@
  }

  finish(logger, resourceContext, generators.keySet());
-doFinish();
+doFinish(logger);

  // Return the name of the concrete class
  return createdClassName;
@@ -246,30 

[gwt-contrib] [google-web-toolkit] r6627 committed - Update XPCOM plugin names, prepare for production deployment.

2009-11-03 Thread codesite-noreply

Revision: 6627
Author: j...@google.com
Date: Tue Nov  3 14:54:41 2009
Log: Update XPCOM plugin names, prepare for production deployment.

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

Added:
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff3/libgwt_devmode_ff3.so
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff3+/libgwt_devmode_ff3+.so
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff35/libgwt_devmode_ff35.so
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff3/libgwt_devmode_ff3.so
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff3+/libgwt_devmode_ff3+.so
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff35/libgwt_devmode_ff35.so
Deleted:
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Darwin-gcc3/ff2/libgwt_dmp_ff2.dylib
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Darwin-gcc3/ff3/libgwt_dmp_ff3.dylib
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Darwin-gcc3/ff35/libgwt_dmp_ff35.dylib
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff2/libgwt_dmp_ff2.so
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff3/libgwt_dmp_ff3.so
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff3+/libgwt_dmp_ff3+.so
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff35/libgwt_dmp_ff35.so
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff2/libgwt_dmp_ff2.so
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff3/libgwt_dmp_ff3.so
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff3+/libgwt_dmp_ff3+.so
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff35/libgwt_dmp_ff35.so
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/WINNT_x86-msvc/ff3/xpOOPHM.dll
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/WINNT_x86-msvc/ff35/xpOOPHM.dll
  /changes/jat/single-xpi/plugins/xpcom/prebuilt/gwt-dmp.xpi
Modified:
  /changes/jat/single-xpi/plugins/xpcom/ExternalWrapper.cpp
  /changes/jat/single-xpi/plugins/xpcom/ExternalWrapper.h
  /changes/jat/single-xpi/plugins/xpcom/Makefile
  /changes/jat/single-xpi/plugins/xpcom/install-template.rdf
  /changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/chrome.manifest
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/content/options.xul
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/content/prefScript.js
   
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/defaults/preferences/defaults.js
  /changes/jat/single-xpi/plugins/xpcom/prebuilt/update.rdf

===
--- /dev/null   
+++  
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff3/libgwt_devmode_ff3.so

Tue Nov  3 14:54:41 2009
File is too large to display a diff.
===
--- /dev/null   
+++  
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff3+/libgwt_devmode_ff3+.so
  
Tue Nov  3 14:54:41 2009
File is too large to display a diff.
===
--- /dev/null   
+++  
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff35/libgwt_devmode_ff35.so
  
Tue Nov  3 14:54:41 2009
File is too large to display a diff.
===
--- /dev/null   
+++  
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff3/libgwt_devmode_ff3.so
 
Tue Nov  3 14:54:41 2009
File is too large to display a diff.
===
--- /dev/null   
+++  
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff3+/libgwt_devmode_ff3+.so
   
Tue Nov  3 14:54:41 2009
File is too large to display a diff.
===
--- /dev/null   
+++  
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff35/libgwt_devmode_ff35.so
   
Tue Nov  3 14:54:41 2009
File is too large to display a diff.
===
---  
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Darwin-gcc3/ff2/libgwt_dmp_ff2.dylib

Mon Oct 26 18:06:40 2009
+++ /dev/null   
Binary file, no diff available.
===
---  
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Darwin-gcc3/ff3/libgwt_dmp_ff3.dylib

Mon Oct 26 18:06:40 2009
+++ /dev/null   
Binary file, no diff available.
===
---  
/changes/jat/single-xpi/plugins/xpcom/prebuilt/extension/lib/Darwin-gcc3/ff35/libgwt_dmp_ff35.dylib
  
Mon Oct 26 18:06:40 2009
+++ /dev/null   
Binary file, no diff 

[gwt-contrib] [google-web-toolkit] r6611 committed - Fix accidentally extended timeout in JUnitShell

2009-11-03 Thread codesite-noreply

Revision: 6611
Author: rj...@google.com
Date: Tue Nov  3 11:48:42 2009
Log: Fix accidentally extended timeout in JUnitShell

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

Modified:
  /trunk/user/src/com/google/gwt/junit/JUnitShell.java

===
--- /trunk/user/src/com/google/gwt/junit/JUnitShell.javaMon Nov  2  
12:47:15 2009
+++ /trunk/user/src/com/google/gwt/junit/JUnitShell.javaTue Nov  3  
11:48:42 2009
@@ -338,7 +338,7 @@
 * begin running the test. Contacted does not necessarily mean the  
test has
 * begun, e.g. for linker errors stopping the test initialization.
 */
-  static final int TEST_BEGIN_TIMEOUT_MILLIS = 6;
+  static final int TEST_BEGIN_TIMEOUT_MILLIS = 60 * 1000;

/**
 * This is a system property that, when set, emulates command line  
arguments.
@@ -350,7 +350,7 @@
 * method, in milliseconds, measured from when the ilast/i client  
connects
 * (and thus starts the test). default of 5 minutes.
 */
-  private static final long TEST_METHOD_TIMEOUT_MILLIS = 50 * 60 * 1000;
+  private static final long TEST_METHOD_TIMEOUT_MILLIS = 5 * 60 * 1000;

/**
 * Singleton object for hosting unit tests. All test case instances  
executed

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



  1   2   >