Re: Frameworks

2010-08-26 Thread Alek

mvp4g - very nice and simple framework. We use it in our project

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

On Aug 19, 4:51 pm, Alexei Telles alexeitel...@gmail.com wrote:
 Hi everybody.

 I've searching for some gwt news and I 've seen many new gwt tools on
 the internet.

 We could list here in this post frameworks that we have some
 experience.

 I mean 3rd Party Libraries to be used in gwt projects, both client and
 server sides.

 Reporting experiences, etc...

 What you guys think about?

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



Re: GWT serialization

2010-08-26 Thread Harald Pehl
I agree: Of course the GWT serialization is the most straightforward
way for the communication. And I would recommend to use it as long as
you don't have any special requirements. When you have one client and
one server there's no reason for using XML or JSON.

But as soon your client isn't the only one and you want to offer some
kind of REST interface, XML and/or JSON definitely make sense. Then
frameworks like Piriti or Acris (http://code.google.com/p/acris/wiki/
GWTJsonizer) can take care of mapping the XML / JSON to the client
side POJOs.

- Harald

On 25 Aug., 17:44, dolcra...@gmail.com dolcra...@gmail.com wrote:
 I concur, seems like they're trying to overcomplicate it.  Unless it
 requires either JSON or XML, but the OP did say theserialization
 format didn't matter.  I would suggest GWT-RPCserializationas it is
 probably the easiest to setup.  Then you just need to go to/from java
 objects to xml on the server side for storage.

 On Aug 25, 10:46 am, Brett Thomas brettptho...@gmail.com wrote:







  I just started with GWT so may be missing something - but why not just use
  the default GWTserializationby having the object implement IsSerializable.
  I've never done this, just remember reading about it. The source code from
  this tutorial looks helpfulhttp://developerlife.com/tutorials/?p=131

  On Wed, Aug 25, 2010 at 10:33 AM, Harald Pehl 
  harald.p...@googlemail.comwrote:

   The JSONserializationis only in the trunk and not yet available as
   downloadable version. As soon as I finished the documentation for it,
   there will be a new version in the downloads. In the meantime feel
   free to checkout the sources and build by yourself. You can take a
   look at the following unit tests to get a feeling of how the
  serializationworks:

  http://code.google.com/p/piriti/source/browse/trunk/core/src/test/jav...

  http://code.google.com/p/piriti/source/browse/trunk/core/src/test/jav...

  http://code.google.com/p/piriti/source/browse/trunk/core/src/test/jav...

   - Harald

   On 25 Aug., 15:00, Ciarán ciaran.mccann@gmail.com wrote:
I have looked into pirtiy before and messed around with code, but it
only seems to be go one way. JSON string to objects  and not the other
way around which is what I need. I have looked at ton's of librarys

On Aug 18, 1:24 pm, Peter Simun si...@seges.sk wrote:

 pirity is the answer :)http://code.google.com/p/piriti/

 You can serialize your object into XML/JSON and save the serialized
 object on the server.

 Peter

 On 17. Aug, 16:48 h., Ciarán ciaran.mccann@gmail.com wrote:

  Thanks for the reply.

  I am quite familiar with XML parsers, I used them in the past. 
  Though
  in this situation its not suitable as inherited class most always
   work
  without having to define the added properties in the parsing. I need
  to serialize objects into some kind of file, save it and restore it
   at
  a later date.

  Thanks again

  On Aug 17, 2:21 pm, aditya sanas 007aditya.b...@gmail.com wrote:

   Hi

   The basic requirement for you is to deal with XML file

   So we have jxl.jar which provides APIs to interact with tags and
   elements in
   xml so

   using these API's that are generally known as XML parsers that is
   SAX or DOC
   parsers.

   so use by using these parsers you will be able to deal with XML
   files.

   It wont be that difficult for you once you learn how to use these
   parsers.

   You will need external jar file jxl.jar

   --
   Aditya

   On Tue, Aug 17, 2010 at 6:00 PM, Ciarán 
   ciaran.mccann@gmail.com wrote:
Hi, I am currently working on a GWT app that requires me  to
serializes an object client side into maybe XML/JSON or anything
really. Then save that serialized object as a xml/json/.ser 
file.
   Then
at a later date read that file and reconstruct my object from 
it.

I have been searching for days for an answer to this, used
   several
external library, read tutorials, GWT documentation and I still
   not
closer to a solution. Am I totally missing something here? It 
was
   very
easy to do this in plan Java, but GWT I just can seem to get it
working.

Thanks

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

   --
   You received this message because you are subscribed to the Google Groups
   

Re: Plugin based web application

2010-08-26 Thread Alek
I'm also interested about this question.
Waiting for any answers (just thinking about DHTML injecting)...

On Aug 24, 12:07 pm, Ludovic Raulet ludovic.rau...@gmail.com wrote:
 Hello,
 I'm working on a web management framework developed in GWT (2.0.3).
 We display some kind of widgets (something like iGoogle). Currently
 all widgets are compiled together and selected at runtime with the
 client code.
 One of the main intend of this project is to allow the end users to
 write there own widgets and add them dynamically to the interface. So
 we need to split framework compilation from widgets compilation and
 allow widgets code to be loaded by the framework.
 The idea is to provide to end users a small sdk with only the widget
 framework. Once the widget's code is done, the user compiles the
 widget and uploads generated javascript/ressources files to a
 specific folder on the web-server. Then we expect the website
 detects the new pluging and loads it.
 I've done many research on this subject but without any result.

 Do you have some ideas to achieve this kind of things ?

 Regards.
 Ludovic.

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



Re: Plugin based web application

2010-08-26 Thread Gal Dolber
You can achieve that goal using a jsni communication channel.

I don't know what kind of communication do you need between the framework
and the widgets, but you can event share Overlay objects.

I'll do it this way: your framework declare a global javascript function and
when a widget is loaded it calls that function with all the information you
need. And as I said if you declare gwt Overlays you will be able to easily
share complex information.

Best

2010/8/26 Alek akorotenk...@gmail.com

 I'm also interested about this question.
 Waiting for any answers (just thinking about DHTML injecting)...

 On Aug 24, 12:07 pm, Ludovic Raulet ludovic.rau...@gmail.com wrote:
  Hello,
  I'm working on a web management framework developed in GWT (2.0.3).
  We display some kind of widgets (something like iGoogle). Currently
  all widgets are compiled together and selected at runtime with the
  client code.
  One of the main intend of this project is to allow the end users to
  write there own widgets and add them dynamically to the interface. So
  we need to split framework compilation from widgets compilation and
  allow widgets code to be loaded by the framework.
  The idea is to provide to end users a small sdk with only the widget
  framework. Once the widget's code is done, the user compiles the
  widget and uploads generated javascript/ressources files to a
  specific folder on the web-server. Then we expect the website
  detects the new pluging and loads it.
  I've done many research on this subject but without any result.
 
  Do you have some ideas to achieve this kind of things ?
 
  Regards.
  Ludovic.

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




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

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

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



Re: Question about one detail from StockWatcher sample.

2010-08-26 Thread M. Eduard
As I see this will be new instance of ClickHandler -
new ClickHandler() {
public void onClick(ClickEvent event) {
int removedIndex = stocks.indexOf(symbol);
stocks.remove(removedIndex);
stocksFlexTable.removeRow(removedIndex+1);
 }
  }


There is now such field in class definition 'symbol'. This is the
thing that I find strange, and why compiler was ok...
I suppose this is the same as

new ClickHandler() {
 private String s = symbol;
 public void onClick(ClickEvent event) {
int removedIndex = stocks.indexOf(s);
stocks.remove(removedIndex);
stocksFlexTable.removeRow(removedIndex+1);
 }
 }

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



Re: Deselect items in a CellTree with MultiSelectionModel

2010-08-26 Thread jaga
I suppose this is relevant for a CellTable too?
The code which does the selection is in model object. The
object'implements Comparable and the equals, compareTo and hashCode.
Is it possible to pass in a flag which says whether the row is
selected, then return false for the equals?



On Aug 20, 2:09 pm, rhmoller rhmol...@gmail.com wrote:
 I have been digging through the source code for GWT 2.1.0.M2. All
 click events result in adding to the selection. There is no support
 for deselecting items in any of the cell widgets.

 I have filed this issue for it:

 http://code.google.com/p/google-web-toolkit/issues/detail?id=5223

 On Aug 19, 1:35 pm, rhmoller rhmol...@gmail.com wrote:







  Hi

  I am trying to build a component for selecting multiple items from a
  tree structure using the cellview widgets from GWT 2.1.0.M2.

  I have a custom TreeViewModel with a single MultiSelectionModel object
  which is shared between all NodeInfo objects. I would like it to
  either toggle the selection of items when clicking on them, or support
  CTRL-clicking for deselecting items like in a list box.

  My problem is that I cannotdeselectany of the selected items. What
  do I need to do?

  Best regards
  Rene

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



GWT eat your own dogfood ? Future of GWT ?

2010-08-26 Thread stuckagain
Hi,

Since I get no response from the GWT dev-team on reported bugs I am
beginning to wonder about the future of GWT. It looks like stability
of the existing features is not very high on the list. I've heard
excuses in all the previous release that you guys were going to sort
out long-standing bugs after the next major release ... but years have
passed now and the collection of open and even new issues is going in
the wrong direction.

So I have to ask the obvious question:
Is Google going to abandon it now that Google Wave has been axed ?

The focus of 2.1 seems to be fast app development for enterprise apps,
which is very good... but one of the major requirements in enterprises
when selecting a toolkit is the maturity and stablity of the toolkits,
how much support do you get, how fast are bugs fixed ... etc... right
now I find it harder every day to sell GWT for newer projects.

From that perspective I'm not that sure that I would want to rely on
the Spring-Roo and Data aware widgets.

When we report bugs on other opensource projects (like struts in the
past or eclipse and many others) the new bug reports are quickly
detected and you get some basic feedback... right now the issue
tracker seems like you guys are using the SUN bug database. There are
still important bugs open from the beginning years of Java!

One other remark about dogfood:
How come I can not use CssResource with the standard widgets of GWT ?
They all rely on primary stylename and style dependent names to switch
states ... which makes it impossible to optimize the CSS with
CssResource. Are we really supposed to write our own widgets ? Writing
our own widgets is not too hard, but I hate it when I can not even use
the most fundamental UI widgets.

Again: I'm sounding very negative above, but that is just because I
care about the success of GWT! I want it to succeed but it needs to
grow up.

David

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



Gwt multiple modules

2010-08-26 Thread Thomas Van Driessche
Hi All,

I need another module in my gwt project.
Do i need to define a new gwt.xml file?

And how do you descide which module gets displayed on the page,
because it needs to be dependent from something so i can choose which
module i need to work with...

Does each module have a different js file?

kind regards

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



Application accessible from desktop and web both

2010-08-26 Thread dgiscool
Hello,

I need to develop an application with following features and want to
understand if GWT can be used to develop this application or is it the
right technology to use ?

1) Backend is in Java and uses MySQL
2) Desktop based UI to create some datafiles and data will be stored
in MySQL DB. This app will generate the data.
3) A desktop based application using which users can get access to
that database on a CD. This app will provide access to data locally
stored on a CD.
4) A web interface using which users can get access to the database
remotely. This app will provide remote access to data.

For local access also, we have the flexibility to install and run the
web server.

Should I use GWT for the UI part or should I use some thing else ? I
would like to provide common UI, look  feel for local and remote
access to data.

Please advice.

Thanks,
Deep


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



Re: Gwt multiple modules

2010-08-26 Thread AlexG
Hi Thomas,

I have something similar like you, I think. Okay, first .. YES, you
have to
define a new gwt.xml file, if you want to use your module on the
clientside
of your main-module.

I don´t exactly know, but I think not, that an extra js is created,
You have to make
your new module visible to your main-module, and I think the java-to-
js compiler
makes one file, but as I said, I dont´t exacly know.

I decide, which module is displayed, by what the user wants to do. If
you develope
your App using MVP-Pattern, so you just can create an Event, and
hanlde it in
the App-Controller. There you can just flush your desired container,
and create a
new Presenter of your new module/View, and just show it. So thats it.

If you don´t use MVP-pattern, you should change to MVP, it will cost
you a few hours
to understand MVP and convert your Project to MVP, but your code won´t
end up in
a mess.

So I hope this helps.

Greets Alex


On 26 Aug., 10:42, Thomas Van Driessche
thomas.van.driessch...@gmail.com wrote:
 Hi All,

 I need another module in my gwt project.
 Do i need to define a new gwt.xml file?

 And how do you descide which module gets displayed on the page,
 because it needs to be dependent from something so i can choose which
 module i need to work with...

 Does each module have a different js file?

 kind regards

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



Invalid version number errror after upgrading from 2.1 M2 to M3

2010-08-26 Thread Magno Machado
After I updated the GWT version on my project, I wasn't able to launch the
app anymore. I receive this error:
Invalid version number 2.0 passed to external.gwtOnLoad(), expected 2.1;
your hosted mode bootstrap file may be out of date; if you are using
-noserver try recompiling and redeploying your app

I have already tried to delete the hosted.html file as sugested in other
messages, but it didn't work

-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

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



Re: Running gwt js on second server

2010-08-26 Thread Stefan Bachert
Hi Pieter,

your approach does not support ClientBundle.
And the link href is missing a double slash (http://..;). Maybe a
typo.

You probably need to deliver addition headers with your page
(Access-Control-Allow-Origin) in order to overcome SOP. (Take care
which browser really support this)

Stefan Bachert
http://gwtworld.de




On 22 Aug., 19:38, Pieter pieter.vandenb...@gmail.com wrote:
 I have created a basic basic gwt application running on ServerA.

 Now I want a designer to be able to write his own style sheet for the
 application but not touch the source code.  So I created an html file
 and referenced the absolute js src.  However, this is not working as
 expected.

 Sample of html on ServerB

 html
     head
         meta name='gwt:module'
 content='com.my.modules.Blast=com.my.modules.Blast'
         titleParty Blast/title
         link href=http:/ServerA:8080/Forms/css/datepicker.css
 rel=stylesheet type=text/css /
     /head
     body
         script type=text/javascript  src=http://ServerA:8080/Forms/
 com.my.modules.Blast/com.my.modules.Blast.nocache.js/script
         div id=theForm/div
     /body
 /html

 The page is just empty.  Any insight with this is appreciated.

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



Re: font-size doesn't increase but in Word does it

2010-08-26 Thread Stefan Bachert
Hi,

the code look not wrong but incomplete.
Which html is really produced?
Does it work on standard conforming browsers like chrome/ff/safari?

Stefan Bachert
http://gwtword.de


On 24 Aug., 16:12, Ricardo.M ricardo.mar...@gmail.com wrote:
 I open Microsoft Word and write a text  Hello World then set font
 size to 140px and this show what i want.

 But when i have this, it only takes a size like 72px:
 PopupPanel dialogBoxnum = new PopupPanel();
 HTML htmlnumll1 = new HTML();
 htmlnumll1.setHTML(divtable width=\100%\ height=\100%
 \trtddiv align='center' style=\font-size:140px;
 color:#FF\ Hello World /div  /td /tr /table /div);

 Also i tried but nothing:
 DOM.setStyleAttribute(dialogBoxnum.getElement(),font-size, 140px);
 DOM.setStyleAttribute(dialogBoxnum.getElement(),htmlnumll1,
 htmlnumll1);

 Also i tried editing CCS but nothing.

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



DateTimeConstantsImpl_pt_BR.properties - File is missing

2010-08-26 Thread Diego Lovison
eras = a.C., d.C.
eraNames = Antes de Cristo, Depois de Cristo
narrowMonths = J, F, M, A, M, J, J, A, S, O, N, D
months = Janeiro, Fevereiro, Março, Abril, Maio, Junho, Julho, Agosto,
Setembro, Outubro, Novembro, Dezembro
shortMonths = Jan, Fev, Mar, Abr, Mai, Jun, Jul, Ago, Set, Out, Nov,
Dez
standaloneNarrowMonths = J, F, M, A, M, J, J, A, S, O, N, D
standaloneMonths = Janeiro, Fevereiro, Março, Abril, Maio, Junho,
Julho, Agosto, Setembro, Outubro, Novembro, Dezembro
standaloneShortMonths = Jan, Fev, Mar, Abr, Mai, Jun, Jul, Ago, Set,
Out, Nov, Dez
weekdays = Domingo, Segunda-Feira, Terça-Feira, Quarta-Feira, Quinta-
Feira, Sexta-Feira, Sábado
shortWeekdays = Dom, Seg, Ter, Qua, Qui, Sex, Sáb
narrowWeekdays = D, S, T, Q, Q, S, S
standaloneWeekdays = Domingo, Segunda-Feira, Terça-Feira, Quarta-
Feira, Quinta-Feira, Sexta-Feira, Sábado
standaloneShortWeekdays = Dom, Seg, Ter, Qua, Qui, Sex, Sáb
standaloneNarrowWeekdays = D, S, T, Q, Q, S, S
shortQuarters = T1, T2, T3, T4
quarters = 1.º trimestre, 2.º trimestre, 3.º trimestre, 4.º trimestre
ampms = Antes do meio-dia, Depois do meio-dia
dateFormats = \\, d 'de'  'de' , d 'de'  'de' ,
/MM/dd, yy/MM/dd
timeFormats = HH'H'mm'm'ss's' v, HH:mm:ss z, HH:mm:ss, HH:mm
firstDayOfTheWeek = 2
weekendRange = 7, 1

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



IE6 RPC Failure

2010-08-26 Thread Charlie M
Hi All,

I am having an issue with my GWT app. The first RPC call it makes
fails in IE6. It works correctly in all other browsers including later
IE versions. I have followed the Server Side code through with a
Debuger and its not throwing an exceptions and nothing is logged on
the server. Following through the response writter it seems to be
writing the an OK response rather than an exception thrown one.

Its seems odd this happens only in IE6. The RPC has been functioning
fine in IE6 previously and this code hasn't changed since then.

This happens in both development and compiled mode. Below is the stack
trace form it running in development mode:


Error: com.google.gwt.user.client.rpc.InvocationException

Stack Trace:
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
201)
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:393)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:
1714)
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
165)
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
120)
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
264)
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
com.google.gwt.core.client.impl.Impl.apply(Impl.java)
com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:
1669)
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
401)
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
java.lang.Thread.run(Unknown Source)


Has anyone else experience something like this before or that any
ideas?

Thanks,

Charlie M

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



Re: Piriti xml read error

2010-08-26 Thread Harald Pehl
Hi Deepak

I finally managed to take a closer look to your issues. I created a
playground project with some simple gwt tests. These tests parse the
XML you supplied and map the results to StationDetails and Station
class.

I found out that your code / mapping annotations needed some minor
adjustments:
public class Station {
...
@XmlField int id; // lowercase!
@XmlField String name; // lowercase!
}

public class StationDetails {
...
@XmlField(//Station) // XPath expression to find all Station
elements
ListStation listOfStations;
}

Making those changes the tests run successfully. You can find the code
in the SVN repository of Piriti. To test by yourself, please export
the code and start building:

svn checkout http://piriti.googlecode.com/svn/trunk/ piriti
cd piriti/core
mvn -DskipTests clean install
cd ../playground
mvn eclipse:eclipse clean install

- Harald


On 19 Aug., 21:18, Deepak Singh deepaksingh...@gmail.com wrote:
 Hi Harald,

 Apart from this exception mentioned in last post. i am describing my
 original issue as

 I have xml as
 StationDetails
     Station
          id12/id
          nameasd/name
     /Station
     Station
          id12/id
          nameasd/name
     /Station
     Station
          id12/id
          nameasd/name
     /Station
   
 /StationDetails

 Now i am mapping this as follows

 Station.java

 public class Station {
  public interface StationReader extends XmlReaderStation {}
 public static final StationReader XML = GWT.create(StationReader.class);
 �...@xmlfield int Id;
 @XmlField String Name;

 }

 public class StationDetails {
  public interface StationDetailsReader extends XmlReaderStationDetails {}
 public static final StationDetailsReader XML =
 GWT.create(StationDetailsReader.class);
 �...@xmlfield ListStation listOfStations;

 }

 Now i am reading this as follows:

 Document doc = new XmlParser().parse(strResponse);
 ListStation listOfStations = Station.XML.readList(doc);   Error while
 executing this line

 and the error is as follows..

 00:50:00.077 [ERROR] [ctshub] Uncaught exception escaped
 name.pehl.totoe.client.XPathException: (Error): TypeError: Object #an
 Element has no method 'selectNodes'
  stack: Error: TypeError: Object #an Element has no method 'selectNodes'
     at [object Object].anonymous (unknown source)
     at __gwt_jsInvoke (http://127.0.0.1:/ctshub/hosted.html?ctshub:76:35
 )
     at eval at anonymous 
 (http://127.0.0.1:/ctshub/hosted.html?ctshub:54:12)
     at XMLHttpRequest.anonymous (unknown source)
     at unknown source
     at __gwt_jsInvoke (http://127.0.0.1:/ctshub/hosted.html?ctshub:76:35
 )
     at eval at anonymous 
 (http://127.0.0.1:/ctshub/hosted.html?ctshub:54:12)
     at XMLHttpRequest.onreadystatechange (unknown source)
  __gwt_ObjectId: 1471
     at
 name.pehl.totoe.client.internal.NodeImpl.selectNodes(NodeImpl.java:200)
     at
 com.ctshub.bus.client.ticketgoose.StationDetails_StationDetailsReaderImpl.r 
 eadIds(StationDetails_StationDetailsReaderImpl.java:81)
     at
 com.ctshub.bus.client.ticketgoose.StationDetails_StationDetailsReaderImpl.i 
 nternalReadList(StationDetails_StationDetailsReaderImpl.java:60)
     at
 com.ctshub.bus.client.ticketgoose.StationDetails_StationDetailsReaderImpl.r 
 eadList(StationDetails_StationDetailsReaderImpl.java:38)
     at
 com.ctshub.bus.client.ticketgoose.TicketgooseStaticWsCall$1.onResponseRecei 
 ved(TicketgooseStaticWsCall.java:78)
     at
 com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
     at
 com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuild 
 er.java:395)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native

 I am really frustrated with the error and have wasted two days but no
 luck...

 Kindly suggest solution or some other way to read the document object.

 Thanks
 Deepak

 On Thu, Aug 19, 2010 at 11:36 PM, Deepak Singh 
 deepaksingh...@gmail.comwrote:







  Hi Harald,
  I am using 0.4.1 for piriti and 0.1 for totoe. Still i have the same issue.
  When i run it on chrome , i get

  Following plugin has crashed .GWT DMP plugin

  and on the console

  Exception in thread Code server for ctshub from Mozilla/5.0 (Windows; U;
  Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko)
  Chrome/5.0.375.126 Safari/533.4 on
 http://127.0.0.1:/Ctshub.html?gwt.codesvr=127.0.0.1:9997@
  x]1_/c_;6F8F/q com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError:
  Remote connection lost
   at
  com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
  nelServer.java:531)
  at
  com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java 
  :362)
   at java.lang.Thread.run(Unknown Source)
  Caused by: java.net.SocketException: Connection reset by peer: socket write
  error
  at java.net.SocketOutputStream.socketWrite0(Native Method)
   at java.net.SocketOutputStream.socketWrite(Unknown Source)
  at 

Re: Running gwt js on second server

2010-08-26 Thread Charlie M


On Aug 26, 11:26 am, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi Pieter,

 your approach does not support ClientBundle.
 And the link href is missing a double slash (http://..;). Maybe a
 typo.

 You probably need to deliver addition headers with your page
 (Access-Control-Allow-Origin) in order to overcome SOP. (Take care
 which browser really support this)

Alternatively there is a directive you can add to the module xml file
which forces it to compile with using the XSS linker which will work
cross domain unlike the default one. Unfortunately this linker cannot
run in development mode, so you can't debug its output. That said it
might be enough to just compile a new version for the designer to use
every now and again and do the normal development with the default
linker.

Before release you will probably want to transfer the designers output
in to CSS client bundles and move the images into these bundles as
well. As it will improve load times a lot.

Charlie M

 Stefan Bacherthttp://gwtworld.de

 On 22 Aug., 19:38, Pieter pieter.vandenb...@gmail.com wrote:



  I have created a basic basic gwt application running on ServerA.

  Now I want a designer to be able to write his own style sheet for the
  application but not touch the source code.  So I created an html file
  and referenced the absolute js src.  However, this is not working as
  expected.

  Sample of html on ServerB

  html
      head
          meta name='gwt:module'
  content='com.my.modules.Blast=com.my.modules.Blast'
          titleParty Blast/title
          link href=http:/ServerA:8080/Forms/css/datepicker.css
  rel=stylesheet type=text/css /
      /head
      body
          script type=text/javascript  src=http://ServerA:8080/Forms/
  com.my.modules.Blast/com.my.modules.Blast.nocache.js/script
          div id=theForm/div
      /body
  /html

  The page is just empty.  Any insight with this is appreciated.

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



Re: GWT eat your own dogfood ? Future of GWT ?

2010-08-26 Thread Christian Goudreau
Didn't read everything but:

 How come I can not use CssResource with the standard widgets of GWT ?


This is easy to do... I even like more the old widgets then the new Cell
widget for css customization.

And as far sa I can tell, a big majority of the bug I've seen so far are
often because the user don't use GWT in the right way. I'm not denying that
there's bug, but the big business app I've worked on never had issue with
GWT itself.

Cheers,

On Thu, Aug 26, 2010 at 4:40 AM, stuckagain david.no...@gmail.com wrote:

 Hi,

 Since I get no response from the GWT dev-team on reported bugs I am
 beginning to wonder about the future of GWT. It looks like stability
 of the existing features is not very high on the list. I've heard
 excuses in all the previous release that you guys were going to sort
 out long-standing bugs after the next major release ... but years have
 passed now and the collection of open and even new issues is going in
 the wrong direction.

 So I have to ask the obvious question:
 Is Google going to abandon it now that Google Wave has been axed ?

 The focus of 2.1 seems to be fast app development for enterprise apps,
 which is very good... but one of the major requirements in enterprises
 when selecting a toolkit is the maturity and stablity of the toolkits,
 how much support do you get, how fast are bugs fixed ... etc... right
 now I find it harder every day to sell GWT for newer projects.

 From that perspective I'm not that sure that I would want to rely on
 the Spring-Roo and Data aware widgets.

 When we report bugs on other opensource projects (like struts in the
 past or eclipse and many others) the new bug reports are quickly
 detected and you get some basic feedback... right now the issue
 tracker seems like you guys are using the SUN bug database. There are
 still important bugs open from the beginning years of Java!

 One other remark about dogfood:
 How come I can not use CssResource with the standard widgets of GWT ?
 They all rely on primary stylename and style dependent names to switch
 states ... which makes it impossible to optimize the CSS with
 CssResource. Are we really supposed to write our own widgets ? Writing
 our own widgets is not too hard, but I hate it when I can not even use
 the most fundamental UI widgets.

 Again: I'm sounding very negative above, but that is just because I
 care about the success of GWT! I want it to succeed but it needs to
 grow up.

 David

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




-- 
Christian Goudreau
www.arcbees.com

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



Re: Invalid version number errror after upgrading from 2.1 M2 to M3

2010-08-26 Thread Gal Dolber
Remove the generated folder in the war directory and run again.

2010/8/26 Magno Machado magn...@gmail.com

 After I updated the GWT version on my project, I wasn't able to launch the
 app anymore. I receive this error:
 Invalid version number 2.0 passed to external.gwtOnLoad(), expected
 2.1; your hosted mode bootstrap file may be out of date; if you are using
 -noserver try recompiling and redeploying your app

 I have already tried to delete the hosted.html file as sugested in other
 messages, but it didn't work

 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

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




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

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

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



Re: GWT 2.1 M3 is now available

2010-08-26 Thread Nathan Wells
Thanks Chris!

Keep up the excellent work guys!

On Aug 25, 3:51 pm, Chris Ramsdale cramsd...@google.com wrote:
 That's a great point, and we'll be there with M4. There's a Google snapshot
 repository that we'll be using for the next milestone and subsequent RCs.
 It's a single repo where we'll upload 2.1-BUILD-SNAPSHOT jars. Once we get
 to GA, we'll be in Maven central.

 -- Chris



 On Wed, Aug 25, 2010 at 8:21 AM, jie...@gmail.com jie...@gmail.com wrote:
Will milestone releases be put into the maven repo? This wasn't
discussed AFAIK so far. I, for one, would really like to see it.

   You meanhttp://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven/
   ? ;-)

  That maven layout doesn't actually include the 2.1.0M3 artifacts.
  Also, It's generally less useful to have a separate maven repository
  for every tag.. It would be nicer to users to provide one Maven
  repository format and put all artifacts into it - that way I wouldn't
  have to add a new repository every release of GWT.

  -Jesse

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

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



Re: GWT eat your own dogfood ? Future of GWT ?

2010-08-26 Thread Ed
 This is easy to do... I even like more the old widgets then the new Cell
 widget for css customization.
Did you try it ?
Because it's hard, and in many cases, espcially with dependent styles
not possible!
Have a look as this issue and the related topic...:
http://code.google.com/p/google-web-toolkit/issues/detail?id=4903

I would love to hear how you do it?

GWT is busy with many bugs, but it's all a mather of priorities...
I am also sometimes frustrated about some bugs not being fixed... but
that's the way it is...: it's open source and it's all a mather of
priorities...
I always manage to work around it, or fix them in some other way...
About the GWT future: still no worries and confident of a robust GWT
future with many awesome AJAX app's.


On Aug 26, 2:25 pm, Christian Goudreau goudreau.christ...@gmail.com
wrote:
 Didn't read everything but:

  How come I can not use CssResource with the standard widgets of GWT ?

 This is easy to do... I even like more the old widgets then the new Cell
 widget for css customization.

 And as far sa I can tell, a big majority of the bug I've seen so far are
 often because the user don't use GWT in the right way. I'm not denying that
 there's bug, but the big business app I've worked on never had issue with
 GWT itself.

 Cheers,



 On Thu, Aug 26, 2010 at 4:40 AM, stuckagain david.no...@gmail.com wrote:
  Hi,

  Since I get no response from the GWT dev-team on reported bugs I am
  beginning to wonder about the future of GWT. It looks like stability
  of the existing features is not very high on the list. I've heard
  excuses in all the previous release that you guys were going to sort
  out long-standing bugs after the next major release ... but years have
  passed now and the collection of open and even new issues is going in
  the wrong direction.

  So I have to ask the obvious question:
  Is Google going to abandon it now that Google Wave has been axed ?

  The focus of 2.1 seems to be fast app development for enterprise apps,
  which is very good... but one of the major requirements in enterprises
  when selecting a toolkit is the maturity and stablity of the toolkits,
  how much support do you get, how fast are bugs fixed ... etc... right
  now I find it harder every day to sell GWT for newer projects.

  From that perspective I'm not that sure that I would want to rely on
  the Spring-Roo and Data aware widgets.

  When we report bugs on other opensource projects (like struts in the
  past or eclipse and many others) the new bug reports are quickly
  detected and you get some basic feedback... right now the issue
  tracker seems like you guys are using the SUN bug database. There are
  still important bugs open from the beginning years of Java!

  One other remark about dogfood:
  How come I can not use CssResource with the standard widgets of GWT ?
  They all rely on primary stylename and style dependent names to switch
  states ... which makes it impossible to optimize the CSS with
  CssResource. Are we really supposed to write our own widgets ? Writing
  our own widgets is not too hard, but I hate it when I can not even use
  the most fundamental UI widgets.

  Again: I'm sounding very negative above, but that is just because I
  care about the success of GWT! I want it to succeed but it needs to
  grow up.

  David

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

 --
 Christian Goudreauwww.arcbees.com

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



Window.open not working on Chrome 5 ( GWT 2.0.4 )

2010-08-26 Thread hermis
Hello all,

I can't seem to get Chrome to open a new window using the
Window.open() function.

It seems to work fine if the function is called from a click handler,
but not when called directly.

Using Firefox and Internet Explorer the following code launches a
window on load and a new window each time
the button is pressed.

public void onModuleLoad()
{
Window.open(http://www.google.com;, _blank, );
Window.alert(Opened window);

Button btn = new Button(Launch Window!);
btn.addClickHandler( new ClickHandler()
{

@Override
public void onClick(ClickEvent event)
{
Window.open(http://www.google.com;, _blank, 
);
Window.alert(Opened window);
}
});

RootPanel.get().add( btn );
}


In Chrome, a window is not launched on load, however when the click
event occurs, it works fine.

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



Re: Running gwt js on second server

2010-08-26 Thread Pieter
Thank you for all your suggestions, I will explorer and update this
post with what I come up with.

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



Unable to find type entrypointclass after change in project structure

2010-08-26 Thread Premkumar
Hi All,

I am working on a gwt module that is built using maven build system. I
had a working module that had the following project structure.

project-name/src/main/java/pkg1/pkg2/pkg3/EntryPoingClass
project-name/src/man/resources/pkg1/pkg2/ModuleDef.gwt.xml

The module definition was looking like this (I have put only this
project specific settings here...normal inherits are not specified for
the sake of brevity)
...
entry-point class='pkg1.pkg2.pkg3.EntryPointClass'/
source path='pkg3'/
...

I am not a big fan of having sub packages in the resources folder.
Hence I am trying to change it to something like the following

project-name/src/main/java/pkg1/pkg2/pkg3/EntryPoingClass
project-name/src/man/resources/ModuleDef.gwt.xml

Also changed the module definition to
...
entry-point class='pkg1.pkg2.pkg3.EntryPointClass'/
source path='pkg1.pkg2.pkg3'/ !-- Since the module def is not
inside any package I am specifying the entire 'client' package here --

...

After this, invoking gwt compile fails with the following error

Unable to find type pkg1.pkg2.pkg3.EntryPointClass

Can anybody tell me if there is any relation between the package
structure of the EntryPointClass and the module definition package
structure apart from the fact that the EntryPointClass should be
inside the 'client' package specified in the module definition (which
is satisfied here)?

Btw, I could see that the compiled classes are available in the
classpath when invoking the gwt compiler.

Any help in this regard is greatly appreciated.

Thanks,
Prem







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



Re: js syntaxerror in ie8

2010-08-26 Thread julien
The problem can be reproduced on my computer with the scaffold demo
app and using IE8,
by creating a new employee with name: é

When the client app try to retrieve all employees to display the
employee list, the exception appears and the list is never shown.
What do you think about this ?

By the way, I think it is connected to the IE8 issue, on firefox the
accentued character are not correctly displayed using
requestFactoryServlet even if the character appears in a utf-8 source
file.

Regards,
Julien

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



Re: GWT eat your own dogfood ? Future of GWT ?

2010-08-26 Thread PhilBeaudoin
On Aug 26, 7:06 am, Ed post2edb...@gmail.com wrote:
  This is easy to do... I even like more the old widgets then the new Cell
  widget for css customization.

 Did you try it ?
 Because it's hard, and in many cases, espcially with dependent styles
 not possible!
 Have a look as this issue and the related 
 topic...:http://code.google.com/p/google-web-toolkit/issues/detail?id=4903

 I would love to hear how you do it?

Personally, I did it simply by copying the standard theme CSS into my
CssResource's CSS and marking all the styles as @external. I was able
to style dialog boxes and plenty of other widgets using @Sprite and
other advanced features of CssResources. Never encountered a problem
with dependent styles.


For the rest of your email, I just want to say that I entirely
disagree. I really like what the GWT team is doing and how the
framework is progressing. Keep up the good work guys!

   Philippe

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



GWT serialization with fine-grained control

2010-08-26 Thread João Ferreira
Hi all

I have this DTO that i use in my GWT RPCs but also in other parts of
my application.

I had to improve the (java) serialization performance and now this
class implements externalizable. In my serialization methods i use
GzipStream to compress and uncompress the serialzed strem.

I know that this custom serialization is not used in in GWT
serialization, however now i cant GWT compile this class due to the
Gzip imports.

My question is: there is any solution to be able to continue using
this class in GWT RPC by excluding the new methods from GWT
compilation?

Thanks
João Ferreira

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



Re: Can not download gwt developer plugin

2010-08-26 Thread Guillaume Lasnier
Hi,
I have the same problem not being able to install the GWT developer
plugin on any browser because the link is broken. Google please help,
this is critical!!!


Please find below the install url for each plugin I got using the
cached page on Google:

firefox-old :
  {
caption : Sorry, the GWT Developer Plugin only supports
Firefox 3.0 and 3.5 at present,
url : http://www.getfirefox.com;,
supported : false
  },

  opera :
  {
caption : Sorry, there is currently no GWT Developer
Plugin for Opera,
// TODO(you): If you are reading this, maybe you would be
interested in contributing an Opera version?
url : http://code.google.com/webtoolkit/
makinggwtbetter.html#contributingcode,
supported : false
  },

  safari-iphone :
  {
caption : Sorry, there is currently no GWT Developer
Plugin for mobile Safari,
url : troubleshootingUrl,
supported : false
  },

  webkit-android :
  {
caption : Sorry, there is currently no GWT Developer
Plugin for mobile WebKit,
url : troubleshootingUrl,
supported : false
  },

  chrome-lin :
  {
caption : Sorry, there is currently no GWT Developer
Plugin for Chrome on Linux,
url : troubleshootingUrl,
supported : false
  },

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

  chrome-win :
  {
caption : The GWT Developer Plugin requires Chrome 4 or
later,brso click here to learn about switching to the Chrome
DevChannel to get early access,
url : http://dev.chromium.org/getting-involved/dev-
channel,
supported : false
  },

  safari-win :
  {
caption : Sorry, there is currently no GWT Developer
Plugin for Safari on Windows,
url : troubleshootingUrl,
supported : false
  },

  firefox :
  {
caption : Download the GWT Developer PluginbrFor
Firefox,
url : https://dl-ssl.google.com/gwt/plugins/firefox/gwt-
dev-plugin.xpi,
platforms : Win x86, Linux x86/x86_64, Mac x86/PPC,
supported : true
  },

  ie :
  {
caption : Download the GWT Developer PluginbrFor
Internet Explorer,
url : https://dl-ssl.google.com/tag/s/appguid%3D
%7B9a5e649a-ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT
%2520Developer%2520Plugin%2520for%2520IE%26needsadmin%3Dfalse/gwt/
plugins/ie/GwtDevPluginSetup.exe,
platforms : Win x86,
supported : true
  },

  chrome4-win :
  {
caption : Download the GWT Developer PluginbrFor
Chrome,
url : https://dl-ssl.google.com/gwt/plugins/chrome/gwt-
dev-plugin.crx,
platforms : Win x86,
supported : true
  },

  safari-mac :
  {
caption : Download the GWT Developer PluginbrFor
Safari,
url : https://dl-ssl.google.com/gwt/plugins/safari/gwt-
dev-plugin.dmg,
platforms : Mac x86/x86_64/PPC,
supported : true
  }

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



Re: GWT 2.1 M3 is now available

2010-08-26 Thread sam samy
hi

please register to this website and get irancell mobile charge free.

www.malardiha.com/signup.php

malardiha.com


On 8/26/10, Chris Ramsdale cramsd...@google.com wrote:
 That's a great point, and we'll be there with M4. There's a Google snapshot
 repository that we'll be using for the next milestone and subsequent RCs.
 It's a single repo where we'll upload 2.1-BUILD-SNAPSHOT jars. Once we get
 to GA, we'll be in Maven central.

 -- Chris

 On Wed, Aug 25, 2010 at 8:21 AM, jie...@gmail.com jie...@gmail.com wrote:

   Will milestone releases be put into the maven repo? This wasn't
   discussed AFAIK so far. I, for one, would really like to see it.
 
  You meanhttp://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven/
  ? ;-)

 That maven layout doesn't actually include the 2.1.0M3 artifacts.
 Also, It's generally less useful to have a separate maven repository
 for every tag.. It would be nicer to users to provide one Maven
 repository format and put all artifacts into it - that way I wouldn't
 have to add a new repository every release of GWT.

 -Jesse

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



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



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



GWT hosted mode is extremly slow

2010-08-26 Thread haimke
I am using GWT 2.0.3, firefox 3.6.8, gwt plugin, Eclipse Galileo,
embedded Jetty

gwt compilation time ~1minute and its the app running speed is ok

but using hosted mode in firefox (or IE) is terribly slow and
unpredictable.
sometimes firefox is stuck for 30 seconds, sometimes for 8 minutes
usually no less than 3 minutes until I see some response.
It is impossible to keep developing like that.

I could not find any helpull information in the newsgroups

how can I know where exactly it is stuck ?
what could I do wrong ?
any other helpull information ?

thankyou
haim

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



Difficulty with GWT Developer Plugin Chrome Firefox

2010-08-26 Thread Chris Rowland
I'm doing some work with the most recent version of GWT (have been
working using the old hosted mode for quite a while) and I'm having
issues getting the developer addin installed in Chrome and Firefox.
When pasting the URL provided by the eclipse plugin, IE prompted to
install the addin and it worked ok.

However, when doing the same thing in Chrome and Firefox, it failed.

In Chrome, it simply said the addin was missing.  With Firefox it said
it was missing, but couldn't find it.

I wasn't able to find anywhere to download the installer manually,
either.

Any advice?

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



War takes more space

2010-08-26 Thread sathya ayyanar
I am using GWT.
In this, WAR folder takes more memory. When i reduce my source file
also it doesn't get reduced. What are all files/folder must be needed
in WAR? Please give suggestion about needs of each file and folder?
Some of folders are images, smartG, Web-INF, sc, LS, js, pieces(In
this, Sc and Web-INF takes more space).

I attached the folder details in the following URL
http://rapidshare.com/files/415235782/War_folder.bmp

In my test system I am already having War folder. In Each and every
time of testing What are all folders/files to be replaced?

Thanks in advance.

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



MVP Framework? Am I missing something?

2010-08-26 Thread Toji
I feel like I'm missing something here. Looking at the release notes
(http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html) for
the upcoming 2.1 they talk about a Model/View/Presentation Framework,
which sounds like something I would love to use. Poking around the
rest of the site for any further documentation of this feature and
it's use in the milestone release only yeilds a couple of MVP related
articles:

http://code.google.com/webtoolkit/articles/mvp-architecture.html
http://code.google.com/webtoolkit/articles/mvp-architecture-2.html

Both of which are pretty recent. These articles and the samples they
contain do discuss building an app around the MVP patter, and do a
decent job of explaining that, but I don't really see any framework
in use here. It's just an application of a development pattern using
the existing code constructs.

Maybe I'm just being dense, but usually when someone talks about a
framework they mean more than a code sample that structures itself a
certain way. Are there any other resources about this that I'm
missing?

Thanks!

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



Re: GWT eat your own dogfood ? Future of GWT ?

2010-08-26 Thread chrisr

  When we report bugs on other opensource projects (like struts in the
  past or eclipse and many others) the new bug reports are quickly
  detected and you get some basic feedback... right now the issue
  tracker seems like you guys are using the SUN bug database.

On a note loosely related to lack of feedback, how long do you
generally have to wait before your discussion topics get posted to the
board?  I have submitted a few questions recently and I haven't seen
any of them get posted, nor have I gotten any sort of rejection
notice.

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



Memory Leak IE7 GWT 2.0.4

2010-08-26 Thread chrisr
I created a simple application in an attempt to reproduce a memory
leak issue in our decently large GWT application.

This test application basically contains a split panel with a button
on the left, and a tab panel full of large blocks of text on the
right.
Clicking the reload button fires the reloadRight method, and does a
panel.clear() to remove the old tab panel and a  panel.add() to add a
new tab panel to the right panel.  Doing this repeatedly causes memory
consumption to increase without bounds.

For example, on the initial load IE7 uses around 35 MB.  125 clicks
later its using nearly 1.5GB.

Is this example doing something in a fundamentally incorrect way?
How  can I keep memory usage from exploding like this?


/* Example Below */


package com.example.myproject.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DecoratedTabPanel;
import com.google.gwt.user.client.ui.DecoratorPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.HorizontalSplitPanel;
import com.google.gwt.user.client.ui.RootPanel;

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

   /**
* This is the entry point method.
*/
   public void onModuleLoad() {
   RootPanel.get(container).add( new MainPanel() );
   }

   private class MainPanel extends DecoratorPanel{

   private HorizontalSplitPanel hsp;
   private HTMLPanel lPanel;
   private HTMLPanel rPanel;
   private DecoratedTabPanel tabPanel;
   int rightPanelCount = 0;

   public MainPanel(){
   hsp = new HorizontalSplitPanel();
   hsp.setSplitPosition(25%);
   hsp.setSize(800px, 400px);
   lPanel = new HTMLPanel(div id=\reloadButton
\/);

   rPanel = new HTMLPanel(div id=\right-panel-
contents\/);
   Button reloadButton = new ReloadButton(this);
   reloadButton.setVisible(true);
   lPanel.add( reloadButton, reloadButton );
   hsp.setLeftWidget(lPanel);
   hsp.setRightWidget(rPanel);
   this.add( hsp );
   reloadRight();
   }

   char[] chars = new char[] {' ',' ',' ', ' ', ' ',
'a','b','c','d','e','f','g','h','i','j','k','l','m',
 
'n','o','p','q','r','s','t','u','v','w','x','y','z' };

   private String getSomeText(int length){
   StringBuffer sb = new StringBuffer(length);
   for ( int i=0; ilength; ++i ){

sb.append( chars[ (int)Math.round(Math.random()*(chars.length-1)) ]);
   if ( i0  i % 60 == 0 )
   sb.append(br);
   }
   return sb.toString();
   }


   protected void reloadRight(){
   ++rightPanelCount;
   rPanel.clear();

   tabPanel = new DecoratedTabPanel();
   tabPanel.setWidth(400px);
   tabPanel.setAnimationEnabled(true);

   String text = Load count = +rightPanelCount;

   tabPanel.add( new HTML(text
+br+getSomeText((int)
(Math.random()*500)+50)), Tab One);
   tabPanel.add( new HTML(text
+br+getSomeText((int)
(Math.random()*500)+50)), Tab Two);
   tabPanel.add( new HTML(text
+br+getSomeText((int)
(Math.random()*500)+50)), Tab Three);
   tabPanel.add( new HTML(text
+br+getSomeText((int)
(Math.random()*500)+50)), Tab Four);
   tabPanel.add( new HTML(text
+br+getSomeText((int)
(Math.random()*500)+50)), Tab Five);
   tabPanel.selectTab(0);

   rPanel.add( tabPanel, right-panel-contents );
   }

   private class ReloadButton extends Button{

   private MainPanel mainPanel;

   public ReloadButton(MainPanel p){
   super(Reload Right Panel);
   this.mainPanel = p;
 
this.addClickHandler(getClickHandler());
   }

   private ClickHandler getClickHandler(){
   return new ClickHandler(){

   @Override
   public void onClick(ClickEvent
event) {
 
mainPanel.reloadRight();
   }
   };

Memory Leak IE7 GWT 2.0.4

2010-08-26 Thread chrisr
I created a simple application in an attempt to reproduce a memory
leak issue in our decently large GWT application.

This test application basically contains a split panel with a button
on the left, and a tab panel full of large blocks of text on the
right.
Clicking the reload button fires the reloadRight method, and does a
panel.clear() to remove the old tab panel and a  panel.add() to add a
new tab panel to the right panel.  Doing this repeatedly causes memory
consumption to increase without bounds.

For example, on the initial load IE7 uses around 35 MB.  125 clicks
later its using nearly 1.5GB.

Is this example doing something in a fundamentally incorrect way?
How  can I keep memory usage from exploding like this?


/* Example Below */


package com.example.myproject.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DecoratedTabPanel;
import com.google.gwt.user.client.ui.DecoratorPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.HorizontalSplitPanel;
import com.google.gwt.user.client.ui.RootPanel;

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

/**
 * This is the entry point method.
 */
public void onModuleLoad() {
RootPanel.get(container).add( new MainPanel() );
}

private class MainPanel extends DecoratorPanel{

private HorizontalSplitPanel hsp;
private HTMLPanel lPanel;
private HTMLPanel rPanel;
private DecoratedTabPanel tabPanel;
int rightPanelCount = 0;

public MainPanel(){
hsp = new HorizontalSplitPanel();
hsp.setSplitPosition(25%);
hsp.setSize(800px, 400px);
lPanel = new HTMLPanel(div id=\reloadButton\/);

rPanel = new HTMLPanel(div 
id=\right-panel-contents\/);
Button reloadButton = new ReloadButton(this);
reloadButton.setVisible(true);
lPanel.add( reloadButton, reloadButton );
hsp.setLeftWidget(lPanel);
hsp.setRightWidget(rPanel);
this.add( hsp );
reloadRight();
}

char[] chars = new char[] {' ',' ',' ', ' ', ' ',
'a','b','c','d','e','f','g','h','i','j','k','l','m',
 
'n','o','p','q','r','s','t','u','v','w','x','y','z' };

private String getSomeText(int length){
StringBuffer sb = new StringBuffer(length);
for ( int i=0; ilength; ++i ){

sb.append( chars[ (int)Math.round(Math.random()*(chars.length-1)) ]);
if ( i0  i % 60 == 0 )
sb.append(br);
}
return sb.toString();
}


protected void reloadRight(){
++rightPanelCount;
rPanel.clear();

tabPanel = new DecoratedTabPanel();
tabPanel.setWidth(400px);
tabPanel.setAnimationEnabled(true);

String text = Load count = +rightPanelCount;

tabPanel.add( new HTML(text+br+getSomeText((int)
(Math.random()*500)+50)), Tab One);
tabPanel.add( new HTML(text+br+getSomeText((int)
(Math.random()*500)+50)), Tab Two);
tabPanel.add( new HTML(text+br+getSomeText((int)
(Math.random()*500)+50)), Tab Three);
tabPanel.add( new HTML(text+br+getSomeText((int)
(Math.random()*500)+50)), Tab Four);
tabPanel.add( new HTML(text+br+getSomeText((int)
(Math.random()*500)+50)), Tab Five);
tabPanel.selectTab(0);

rPanel.add( tabPanel, right-panel-contents );
}

private class ReloadButton extends Button{

private MainPanel mainPanel;

public ReloadButton(MainPanel p){
super(Reload Right Panel);
this.mainPanel = p;
this.addClickHandler(getClickHandler());
}

private ClickHandler getClickHandler(){
return new ClickHandler(){

@Override

Re: GWT 2.1 M3 is now available

2010-08-26 Thread Jason Stratton


 Yes they are, versionned as 2.1-SNAPSHOT.
 Example with 
 com.google.gwt::gwt-user:http://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven/com/g...

OK. I am admittedly new to Maven, but I'm missing something.
(Something simple, I imagine.)

Here's the updates I've made to my pom.xml:

dependencies
dependency
  groupIdcom.google.gwt/groupId
  artifactIdgwt-servlet/artifactId
  version2.1-SNAPSHOT/version
  scoperuntime/scope
/dependency
dependency
  groupIdcom.google.gwt/groupId
  artifactIdgwt-user/artifactId
  version2.1-SNAPSHOT/version
  scopeprovided/scope
/dependency
/dependencies

plugins
plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdgwt-maven-plugin/artifactId
  version1.3.1.google/version
/plugin
/plugins

repositories
repository
  releases
enabledtrue/enabled
  /releases
  snapshots
enabledfalse/enabled
  /snapshots
  idgwt-dev-release/id
  urlhttp://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven/
/url
/repository
/repositories

pluginRepositories
pluginRepository
  releases
enabledtrue/enabled
  /releases
  snapshots
enabledfalse/enabled
  /snapshots
  idgwt-dev-release/id
  urlhttp://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven/
/url
/pluginRepository
/pluginRepositories

When I attempt to run mvn install, I get the following error:


[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

Missing:
--
1) com.google.gwt:gwt-user:jar:2.1-SNAPSHOT

  Try downloading the file manually ...

--
1 required artifact is missing.

for artifact:
  com.bridgeenergygroup:pa-web:war:1.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  gwt-dev-release (http://google-web-toolkit.googlecode.com/svn/
2.1.0.M3/gwt/maven/)


I thought I have all of the urls correct, but apparently not.

I apologize for my cluelessness, but can anyone please point me in the
right direction?

Thanks, Jason

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



Re: MVP Framework? Am I missing something?

2010-08-26 Thread David Chandler
Toji,

You have correctly identified the only MVP articles written by the GWT
team, and these do not refer to forthcoming 2.1 features. You can
expect to see more documentation on the new MVP features in 2.1 when
it's actually released.

In the mean time, if you're new to MVP, there are several third-party
open source MVP frameworks you may to check out: gwt-presenter / gwt-
dispatch, gwt-platform, and guit come to mind.

Hope that helps,
/dmc
David Chandler
Google Web Toolkit Team

On Aug 25, 11:58 am, Toji toj...@gmail.com wrote:
 I feel like I'm missing something here. Looking at the release notes
 (http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html) for
 the upcoming 2.1 they talk about a Model/View/Presentation Framework,
 which sounds like something I would love to use. Poking around the
 rest of the site for any further documentation of this feature and
 it's use in the milestone release only yeilds a couple of MVP related
 articles:

 http://code.google.com/webtoolkit/articles/mvp-architecture.htmlhttp://code.google.com/webtoolkit/articles/mvp-architecture-2.html

 Both of which are pretty recent. These articles and the samples they
 contain do discuss building an app around the MVP patter, and do a
 decent job of explaining that, but I don't really see any framework
 in use here. It's just an application of a development pattern using
 the existing code constructs.

 Maybe I'm just being dense, but usually when someone talks about a
 framework they mean more than a code sample that structures itself a
 certain way. Are there any other resources about this that I'm
 missing?

 Thanks!

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



Re: Invalid version number errror after upgrading from 2.1 M2 to M3

2010-08-26 Thread David Chandler
You may also need to clear browser cache to refresh the hosted.html
file which the plugin uses to read the version.

/dmc
David Chandler
Google Web Toolkit Team

On Aug 26, 9:06 am, Gal Dolber gal.dol...@gmail.com wrote:
 Remove the generated folder in the war directory and run again.

 2010/8/26 Magno Machado magn...@gmail.com





  After I updated the GWT version on my project, I wasn't able to launch the
  app anymore. I receive this error:
  Invalid version number 2.0 passed to external.gwtOnLoad(), expected
  2.1; your hosted mode bootstrap file may be out of date; if you are using
  -noserver try recompiling and redeploying your app

  I have already tried to delete the hosted.html file as sugested in other
  messages, but it didn't work

  --
  Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

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

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

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

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



Re: Database and GWT

2010-08-26 Thread barnaclehead
I am not sure how much community involvement there is in the
development side but I know from browsing the dev list there is some.
Jason seems to be the man. It currently offers everything I have
needed in my projects and really mostly keeps out of your way.

Barry

On Aug 24, 6:51 am, gcstang gcst...@gmail.com wrote:
 This looks awesome, I'll check it outis it still in development
 looks like the last release was in Feb.

 On Aug 23, 11:39 am, barnaclehead ba6...@gmail.com wrote:

  I have had much success with EoDSQL. I am surprised there isn't more
  talk about it. It is a very simple db abstraction where you write your
  own queries and there is great GWT support. The project home is at:
   https://eodsql.dev.java.net/
  and there is plenty of information on the authors' blog
   http://lemnik.wordpress.com/2010/02/02/eod-sql-2-1-released/
  The best tutorial is the docs/tutorial.html  from the downloaded
  package. There is a users mailing list but it isn't overly active, but
  still responsive. The archive is at:
   https://eodsql.dev.java.net/servlets/SummarizeList?listName=users

  Good luck,
  Barry.

  On Aug 5, 3:56 pm, Diego Venuzka dvenu...@gmail.com wrote:

   Hi!
   After some hours without sleep to solve my compilation problem, i stop in
   another problem. I'll need to insert data in database, and how GWT can 
   help
   with this? Or i can insert using the tradicional method with Java?
   Thanks =)

   --
   Diego Venuzka

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



Re: Database and GWT

2010-08-26 Thread barnaclehead
I am not sure how much community involvement there is in the
development side but I know from browsing the dev list there is some.
Jason seems to be the man. It currently offers everything I have
needed in my projects and really mostly keeps out of your way.

Barry

On Aug 24, 6:51 am, gcstang gcst...@gmail.com wrote:
 This looks awesome, I'll check it outis it still in development
 looks like the last release was in Feb.

 On Aug 23, 11:39 am, barnaclehead ba6...@gmail.com wrote:

  I have had much success with EoDSQL. I am surprised there isn't more
  talk about it. It is a very simple db abstraction where you write your
  own queries and there is great GWT support. The project home is at:
   https://eodsql.dev.java.net/
  and there is plenty of information on the authors' blog
   http://lemnik.wordpress.com/2010/02/02/eod-sql-2-1-released/
  The best tutorial is the docs/tutorial.html  from the downloaded
  package. There is a users mailing list but it isn't overly active, but
  still responsive. The archive is at:
   https://eodsql.dev.java.net/servlets/SummarizeList?listName=users

  Good luck,
  Barry.

  On Aug 5, 3:56 pm, Diego Venuzka dvenu...@gmail.com wrote:

   Hi!
   After some hours without sleep to solve my compilation problem, i stop in
   another problem. I'll need to insert data in database, and how GWT can 
   help
   with this? Or i can insert using the tradicional method with Java?
   Thanks =)

   --
   Diego Venuzka

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



Re: GWT eat your own dogfood ? Future of GWT ?

2010-08-26 Thread Christian Goudreau
Here's my example... say you want to customize MenuBar from GWT.

You have to declare in your CssResource file some styles.
@ClassName(mesy-MainMenu)
String mesyMainMenu();

@ClassName(mesy-Separator)
String mesySeparator();

Those are my two style, you don't need anything else, since everything will
use the base name mesy-MainMenu when I'll be done.

Then here's my styles in my style.css
.mesy-MainMenu {
color: #424242;
font-size: 13px;
cursor: pointer;
}

@external gwt-MenuItem;
.mesy-MainMenu .gwt-MenuItem {
color: #424242;
font-size: 13px;
vertical-align: bottom;
}

@external gwt-MenuItem-selected;
.mesy-MainMenu .gwt-MenuItem-selected {
   color: #682203;
}

.mesy-Separator {
vertical-align: bottom;
width: 5px;
text-align: center;
cursor: default;
}

Note the @External use.

Then when I declare my MenuBar inside UiBinder:
g:MenuBar ui:field=menu stylePrimaryName={res.style.mesyMainMenu}

And voilà ! Simple and easy. And know this... in my Mesy.gwt.xml default
style are activated.
inherits name=com.google.gwt.user.theme.standard.Standard /

Cheers,
On Thu, Aug 26, 2010 at 9:06 AM, chrisr chris.robert.rowl...@gmail.comwrote:


   When we report bugs on other opensource projects (like struts in the
   past or eclipse and many others) the new bug reports are quickly
   detected and you get some basic feedback... right now the issue
   tracker seems like you guys are using the SUN bug database.

 On a note loosely related to lack of feedback, how long do you
 generally have to wait before your discussion topics get posted to the
 board?  I have submitted a few questions recently and I haven't seen
 any of them get posted, nor have I gotten any sort of rejection
 notice.

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




-- 
Christian Goudreau
www.arcbees.com

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



Re: GWT 2.1 M3 is now available

2010-08-26 Thread Jason Stratton
I seem to have got it right now:


repositories
repository
  idgwt-dev/id
  urlhttp://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/
maven/url
/repository
/repositories

pluginRepositories
pluginRepository
  idgwt-dev/id
  urlhttp://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/
maven/url
/pluginRepository
/pluginRepositories


dependencies

!--  GWT dependencies (from central repo) --
dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-servlet/artifactId
version2.1-SNAPSHOT/version
scoperuntime/scope
/dependency
dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-user/artifactId
version2.1-SNAPSHOT/version
scopeprovided/scope
/dependency

/dependencies


Was is just simply the trailing slash on the URL for the repositories?

Anyway, I had some compilation conflicts with the gwt-incubator 2.0.1.
So I commented it all out.

I was then able to compile and run. Woohoo!

Now I'm having an issue debugging. I'm running on JBoss and connecting
with the Eclipse plug-in (3.5 (Galileo)) with the -noserver option. It
was working fine with GWT 2.0.4. I have upgraded the plug-in to 2.1 M3
and when I try to debug, I get the Plugin failed to connect to the
hosted mode server at 127.0.0.1:9997 message in the browser.

In the Eclipse console, I see the following message:


Connection received from 127.0.0.1:52115
   [ERROR] Invalid version number 2.1 passed to
external.gwtOnLoad(), expected 2.0; your hosted mode bootstrap file
may be out of date; if you are using -noserver try recompiling and
redeploying your app


Any ideas?
I'm just guessing here, but the GWT code is identifying itself as
version 2.1, but the Eclipse plug-in believes it's version 2.0?

Thanks
Jason

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



Re: GWT serialization with fine-grained control

2010-08-26 Thread Paul Robinson
No, there's no way to mark only part of a class for server-side. You can
use different versions of a class in the client and server by using the
super-source technique though. That would mean having two different
implementations of the same class.

João Ferreira wrote:
 Hi all

 I have this DTO that i use in my GWT RPCs but also in other parts of
 my application.

 I had to improve the (java) serialization performance and now this
 class implements externalizable. In my serialization methods i use
 GzipStream to compress and uncompress the serialzed strem.

 I know that this custom serialization is not used in in GWT
 serialization, however now i cant GWT compile this class due to the
 Gzip imports.

 My question is: there is any solution to be able to continue using
 this class in GWT RPC by excluding the new methods from GWT
 compilation?

 Thanks
 João Ferreira

   

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



Re: Recommended approach for web services on the GWT/GAE stack?

2010-08-26 Thread Arthur Kalmenson
If GWT is your only client, why not just use GWT-RPC?

--
Arthur Kalmenson



On Thu, Aug 19, 2010 at 12:08 AM, Bayard Randel k...@bestpractice.org.nz 
wrote:
 Hi there,

 Being relatively new to the java ecosystem, I'm finding the myriad of
 options for providing web services a little overwhelming. Is there a
 best practice, or recommended approach for providing web services in
 my GWT/GAE application? I understand Restlet supports the complete
 stack, and while I can appreciate the separation of concerns that it
 provides, suspect that it may be overkill given that the GWT client
 will be the only consumer. Ideally I'd like to post a json object from
 my other web app and avoid soap/xml.

 Thanks very much!

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



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



Re: GWT eat your own dogfood ? Future of GWT ?

2010-08-26 Thread David Chandler
David,

Thank for your honest feedback and your enthusiasm for GWT. Google
uses GWT in many other apps besides Wave and continues to increase
investment in GWT as part of Google's overall interest in improving
user experience on the Web. In addition, it is an open source project
with a very active community of open source frameworks built on GWT.
The GWT community and code base continue to grow very rapidly, which
has made it challenging to respond to bug reports (many of which are
actually enhancement requests), much less this forum. Being new to the
GWT team (==continuing Google investment in GWT), it is one of my
personal objectives to give the community a better sense of the
exciting ways in which the GWT team continues to improve GWT.

At this time, there is a lot of activity around the 2.1 release, and
you can get some sense of this by watching the SVN trunk. In addition,
the GWT team has considerably stepped up maven support (see recent
blog posts), which was one of the top issues in the issue tracker. As
always, addressing particular bugs is a question of priorities, but
rest assured that the GWT team is well aware that no one wants to see
new features added at the expense of stability.

As for the @CssResource issue, if this is still unresolved for you,
please star issue 4903 (http://code.google.com/p/google-web-toolkit/
issues/detail?id=4903) and we'll revisit it.

/dmc
David Chandler
Google Web Toolkit Team

On Aug 26, 4:40 am, stuckagain david.no...@gmail.com wrote:
 Hi,

 Since I get no response from the GWT dev-team on reported bugs I am
 beginning to wonder about the future of GWT. It looks like stability
 of the existing features is not very high on the list. I've heard
 excuses in all the previous release that you guys were going to sort
 out long-standing bugs after the next major release ... but years have
 passed now and the collection of open and even new issues is going in
 the wrong direction.

 So I have to ask the obvious question:
 Is Google going to abandon it now that Google Wave has been axed ?

 The focus of 2.1 seems to be fast app development for enterprise apps,
 which is very good... but one of the major requirements in enterprises
 when selecting a toolkit is the maturity and stablity of the toolkits,
 how much support do you get, how fast are bugs fixed ... etc... right
 now I find it harder every day to sell GWT for newer projects.

 From that perspective I'm not that sure that I would want to rely on
 the Spring-Roo and Data aware widgets.

 When we report bugs on other opensource projects (like struts in the
 past or eclipse and many others) the new bug reports are quickly
 detected and you get some basic feedback... right now the issue
 tracker seems like you guys are using the SUN bug database. There are
 still important bugs open from the beginning years of Java!

 One other remark about dogfood:
 How come I can not use CssResource with the standard widgets of GWT ?
 They all rely on primary stylename and style dependent names to switch
 states ... which makes it impossible to optimize the CSS with
 CssResource. Are we really supposed to write our own widgets ? Writing
 our own widgets is not too hard, but I hate it when I can not even use
 the most fundamental UI widgets.

 Again: I'm sounding very negative above, but that is just because I
 care about the success of GWT! I want it to succeed but it needs to
 grow up.

 David

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



Re: GWT eat your own dogfood ? Future of GWT ?

2010-08-26 Thread Ikai L (Google)
To add to David's answer: we use GWT extensively internally and externally
as well. There are a number of products that launch quickly using GWT/App
Engine. One of the ads tools administrative interfaces also runs on GWT.
While Wave was definitely the highest profile GWT application, just keep
your eyes open anytime you are using a Google tool. You'd be surprised how
dependent we are on it for rapid iteration.

On Thu, Aug 26, 2010 at 10:54 AM, David Chandler drfibona...@google.comwrote:

 David,

 Thank for your honest feedback and your enthusiasm for GWT. Google
 uses GWT in many other apps besides Wave and continues to increase
 investment in GWT as part of Google's overall interest in improving
 user experience on the Web. In addition, it is an open source project
 with a very active community of open source frameworks built on GWT.
 The GWT community and code base continue to grow very rapidly, which
 has made it challenging to respond to bug reports (many of which are
 actually enhancement requests), much less this forum. Being new to the
 GWT team (==continuing Google investment in GWT), it is one of my
 personal objectives to give the community a better sense of the
 exciting ways in which the GWT team continues to improve GWT.

 At this time, there is a lot of activity around the 2.1 release, and
 you can get some sense of this by watching the SVN trunk. In addition,
 the GWT team has considerably stepped up maven support (see recent
 blog posts), which was one of the top issues in the issue tracker. As
 always, addressing particular bugs is a question of priorities, but
 rest assured that the GWT team is well aware that no one wants to see
 new features added at the expense of stability.

 As for the @CssResource issue, if this is still unresolved for you,
 please star issue 4903 (http://code.google.com/p/google-web-toolkit/
 issues/detail?id=4903) and we'll revisit it.

 /dmc
 David Chandler
 Google Web Toolkit Team

 On Aug 26, 4:40 am, stuckagain david.no...@gmail.com wrote:
  Hi,
 
  Since I get no response from the GWT dev-team on reported bugs I am
  beginning to wonder about the future of GWT. It looks like stability
  of the existing features is not very high on the list. I've heard
  excuses in all the previous release that you guys were going to sort
  out long-standing bugs after the next major release ... but years have
  passed now and the collection of open and even new issues is going in
  the wrong direction.
 
  So I have to ask the obvious question:
  Is Google going to abandon it now that Google Wave has been axed ?
 
  The focus of 2.1 seems to be fast app development for enterprise apps,
  which is very good... but one of the major requirements in enterprises
  when selecting a toolkit is the maturity and stablity of the toolkits,
  how much support do you get, how fast are bugs fixed ... etc... right
  now I find it harder every day to sell GWT for newer projects.
 
  From that perspective I'm not that sure that I would want to rely on
  the Spring-Roo and Data aware widgets.
 
  When we report bugs on other opensource projects (like struts in the
  past or eclipse and many others) the new bug reports are quickly
  detected and you get some basic feedback... right now the issue
  tracker seems like you guys are using the SUN bug database. There are
  still important bugs open from the beginning years of Java!
 
  One other remark about dogfood:
  How come I can not use CssResource with the standard widgets of GWT ?
  They all rely on primary stylename and style dependent names to switch
  states ... which makes it impossible to optimize the CSS with
  CssResource. Are we really supposed to write our own widgets ? Writing
  our own widgets is not too hard, but I hate it when I can not even use
  the most fundamental UI widgets.
 
  Again: I'm sounding very negative above, but that is just because I
  care about the success of GWT! I want it to succeed but it needs to
  grow up.
 
  David

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




-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

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



Re: GWT eat your own dogfood ? Future of GWT ?

2010-08-26 Thread David Chandler
Chris,

Unfortunately, we have to manually approve posts from new members to
control spam. We typically review postings from new members several
times a day. After that, your posts should appear immediately.

/dmc
David Chandler
Google Web Toolkit Team

On Aug 26, 9:06 am, chrisr chris.robert.rowl...@gmail.com wrote:
   When we report bugs on other opensource projects (like struts in the
   past or eclipse and many others) the new bug reports are quickly
   detected and you get some basic feedback... right now the issue
   tracker seems like you guys are using the SUN bug database.

 On a note loosely related to lack of feedback, how long do you
 generally have to wait before your discussion topics get posted to the
 board?  I have submitted a few questions recently and I haven't seen
 any of them get posted, nor have I gotten any sort of rejection
 notice.

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



BlackBerry6 and GWT

2010-08-26 Thread myapplicationquestions
Hi All,

BlackBerry6 uses webkit so GWT webapp should work as it is but i
wanted to know if anyone has tried developing a web application
focused primarily for blackberry6?

Thanks,
Parag

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



Re: GWT eat your own dogfood ? Future of GWT ?

2010-08-26 Thread stuckagain
The @external part is what I don't like. This makes it impossible to
obfuscate and thus optimize the generated code.

The CssResource stuff also has the added benefit that you can not make
a mistake in stylenames since it is checked at compile time.

 For the rest of your email, I just want to say that I entirely
 disagree. I really like what the GWT team is doing and how the
 framework is progressing. Keep up the good work guys!

Don't get me wrong: I like GWT. But I'm frustrated that bug fixing
does not seem to be a high priority.
And I am not talking about functional enhancements, I'm talking about
issues in event handling not working, leaks in IFrames, ... etc.

David

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



Re: GWT eat your own dogfood ? Future of GWT ?

2010-08-26 Thread Christian Goudreau

 The @external part is what I don't like. This makes it impossible to

obfuscate and thus optimize the generated code.

Yeah well, right, but in that case, it doesn't really matter, in the
following, the only part that will no get obfuscated is : gwt-MenuItem
. The external style you use are the one used by gwt widget and the thing
that bugs me is that I have to copy past them in my @External. I could also
have set a style for every MenuItem like I did for MenuBar, but that'll be
more work.

@external gwt-MenuItem;
.mesy-MainMenu .gwt-MenuItem {

Something like this in firebug will be like : .g37d7g9 .gwt-MenuItem . Take
a look, the first part is obfuscated and refer that my base class :D

 The CssResource stuff also has the added benefit that you can not make

a mistake in stylenames since it is checked at compile time.

Same thing here, you don't actually use @external style inside your code, so
you don't need that check.

Anyway, there's always place for improvement :D

Cheers,

On Thu, Aug 26, 2010 at 2:12 PM, stuckagain david.no...@gmail.com wrote:

 The @external part is what I don't like. This makes it impossible to
 obfuscate and thus optimize the generated code.

 The CssResource stuff also has the added benefit that you can not make
 a mistake in stylenames since it is checked at compile time.

  For the rest of your email, I just want to say that I entirely
  disagree. I really like what the GWT team is doing and how the
  framework is progressing. Keep up the good work guys!

 Don't get me wrong: I like GWT. But I'm frustrated that bug fixing
 does not seem to be a high priority.
 And I am not talking about functional enhancements, I'm talking about
 issues in event handling not working, leaks in IFrames, ... etc.

 David

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




-- 
Christian Goudreau
www.arcbees.com

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



Re: GWT hosted mode is extremly slow

2010-08-26 Thread jocke eriksson
I found out that if you split your ClientBundles, memory consumptions goes
down. So if you have large ClientBundles with many images try to divide
them. Worked  for me.

2010/8/26 haimke haim.schind...@gmail.com

 I am using GWT 2.0.3, firefox 3.6.8, gwt plugin, Eclipse Galileo,
 embedded Jetty

 gwt compilation time ~1minute and its the app running speed is ok

 but using hosted mode in firefox (or IE) is terribly slow and
 unpredictable.
 sometimes firefox is stuck for 30 seconds, sometimes for 8 minutes
 usually no less than 3 minutes until I see some response.
 It is impossible to keep developing like that.

 I could not find any helpull information in the newsgroups

 how can I know where exactly it is stuck ?
 what could I do wrong ?
 any other helpull information ?

 thankyou
 haim

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



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



GWT Flash Killer (beta)

2010-08-26 Thread powwow
http://www.bluedojo.com/

I thought I'd like to share with the GWT Discussion Group of a Flash
Killer application that is written with GWT.  It's a work in
progress. :-)

Build animations without Flash.  No Flash plug-in required for
animations to play.
Runs in any web browser including IE, Firefox, Chrome, Safari.
Animations runs on iPad and iPhone.
Based on HTML5.

http://www.bluedojo.com/

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



Re: GWT eat your own dogfood ? Future of GWT ?

2010-08-26 Thread stuckagain
David,

On Aug 26, 7:54 pm, David Chandler drfibona...@google.com wrote:
 David,

 At this time, there is a lot of activity around the 2.1 release, and
 you can get some sense of this by watching the SVN trunk. In addition,
 the GWT team has considerably stepped up maven support (see recent

I've been looking at all the checkins. I'm aware of what is coming,
but we already have
build a fast table with cell renderers, incremental rendering with
multi TBODYs to get the fastest renderings,
so we are not really waiting for the new features. It's nice that
there will finally be a better table, but will it be
extendible enough ? Will all bugs be fixed quickly ? You can not
expect the community to fix every bug, especially
if the problem is somewhere deep inside the compiler or event
dispatching code (like the one I reported on PopupPanel in IE).

 blog posts), which was one of the top issues in the issue tracker. As
 always, addressing particular bugs is a question of priorities, but
 rest assured that the GWT team is well aware that no one wants to see
 new features added at the expense of stability.

Then why is there so little progress on fixing bugs ? It looks like
the whole team is working on 2.1.
When I look at New issues in the tracker I can see over 900 bugs that
are still marked as new, it takes me back all the way to November
2006.
There are indeed a lot enhancements but there are quite a lot of bugs
as well... like stack overflows with the RPC... in 2.0 DeRPC was
released, but with a big warning that it was not stable yet. Will it
be 100% for 2.1 ? Or is there a newer system used by the data aware
widgets ?

 As for the @CssResource issue, if this is still unresolved for you,
 please star issue 4903 (http://code.google.com/p/google-web-toolkit/
 issues/detail?id=4903) and we'll revisit it.

I read through the newsgroup thread but I must say I don't agree with
everything that was said there. CssResources are really great, just
too bad that they were not retrofitted to the existing widgets.

But I guess that the main goal would be for the declarative UI system?
What I do agree upon is that the build in widgets of GWT are very
limited in extendability (button in the titlebar of a dialog ... who
would not want it ?) and they are not supporting CssResource directly
so I have to fallback to @external which takes away a few nice
features of using a CssResource.

David

 /dmc
 David Chandler
 Google Web Toolkit Team

 On Aug 26, 4:40 am, stuckagain david.no...@gmail.com wrote:



  Hi,

  Since I get no response from the GWT dev-team on reported bugs I am
  beginning to wonder about the future of GWT. It looks like stability
  of the existing features is not very high on the list. I've heard
  excuses in all the previous release that you guys were going to sort
  out long-standing bugs after the next major release ... but years have
  passed now and the collection of open and even new issues is going in
  the wrong direction.

  So I have to ask the obvious question:
  Is Google going to abandon it now that Google Wave has been axed ?

  The focus of 2.1 seems to be fast app development for enterprise apps,
  which is very good... but one of the major requirements in enterprises
  when selecting a toolkit is the maturity and stablity of the toolkits,
  how much support do you get, how fast are bugs fixed ... etc... right
  now I find it harder every day to sell GWT for newer projects.

  From that perspective I'm not that sure that I would want to rely on
  the Spring-Roo and Data aware widgets.

  When we report bugs on other opensource projects (like struts in the
  past or eclipse and many others) the new bug reports are quickly
  detected and you get some basic feedback... right now the issue
  tracker seems like you guys are using the SUN bug database. There are
  still important bugs open from the beginning years of Java!

  One other remark about dogfood:
  How come I can not use CssResource with the standard widgets of GWT ?
  They all rely on primary stylename and style dependent names to switch
  states ... which makes it impossible to optimize the CSS with
  CssResource. Are we really supposed to write our own widgets ? Writing
  our own widgets is not too hard, but I hate it when I can not even use
  the most fundamental UI widgets.

  Again: I'm sounding very negative above, but that is just because I
  care about the success of GWT! I want it to succeed but it needs to
  grow up.

  David

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



Re: GWT Flash Killer (beta)

2010-08-26 Thread Christian Goudreau
Juste one word:

AWESOME

Cheers,

PS: I that that in fact, I wrote more than one word.

On Thu, Aug 26, 2010 at 2:45 PM, powwow jimmy.w...@gmail.com wrote:

 http://www.bluedojo.com/

 I thought I'd like to share with the GWT Discussion Group of a Flash
 Killer application that is written with GWT.  It's a work in
 progress. :-)

 Build animations without Flash.  No Flash plug-in required for
 animations to play.
 Runs in any web browser including IE, Firefox, Chrome, Safari.
 Animations runs on iPad and iPhone.
 Based on HTML5.

 http://www.bluedojo.com/

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




-- 
Christian Goudreau
www.arcbees.com

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



Re: GWT and Spring - More Generation Options

2010-08-26 Thread Christiana Thompson
For more information on this topic, please join us for a free webinar
on Tuesday, August 31, 2010 at 11:00 AM – 12:00 PM CDT

This webinar deep dives into the new Google Web Toolkit (GWT)
scaffolding options that are available in MyEclipse for Spring 8.6.
We’ll cover the following:

-- How does it work? See how to quickly generate working GWT
applications from existing DB tables, Java Beans and JPA entities in a
matter of minutes.
-- What gets generated? One of the biggest learning curves is
understanding what gets generated – we’ll do a deep dive into the
generated artifacts to help users understand what exactly comes out of
MyEclipse for Spring.
-- How does it compare to other GWT/Flex scaffolding technologies?

Register at https://www2.gotomeeting.com/register/691323002

Attend this webinar if you want to see how MyEclipse for Spring (ME4S)
is delivering unprecedented Rich Internet Application scaffolding
options to the Spring Community.

For developers who are new to GWT, MyEclipse for Spring 8.6 allows
them to quickly create their own contextual examples that they can
then reference while getting up to speed on the new technology.
Meanwhile, developers who are GWT experts can stop worrying about the
boilerplate code, and let MyEclipse for Spring take care of all the
mundane, repetitive tasks.

All webinar registrants will receive a 30 percent discount off of
MyEclipse for Spring – just for registering.  Visit
https://www2.gotomeeting.com/register/691323002 to register and get
your coupon code today.

On Aug 11, 1:56 pm, Jack jack.kenn...@gmail.com wrote:
 MyEclipse For Spring (ME4S) 8.6 is now generally available with
 support for GWT front endgenerationas well as Spring back endgeneration.

 We also posted an article on DZone 
 here:http://java.dzone.com/articles/generating-enterprise-class
 You can download the software and get more information 
 here:http://www.myeclipseide.com/me4s/

 We are anxious to get feedback from the GWT community so please let us
 know what you think.

 Thanks,
 Jack

 On Jul 12, 3:38 pm, Jack jack.kenn...@gmail.com wrote:



  Hello Stefan,

  Thanks for the question.

  First let me say that I am a fan of the work that is being done by the
  Roo and GWT teams.  Our goal in releasing additional generative
  tooling forSpringhas always been to give developers additional
 optionsand capabilities that largely complement the freeoptions
  available from SpringSource.

  We have a page that highlights some of the key differences in approach
  between Roo 
  andMyEclipseforSpringhere:http://www.myeclipseide.com/me4s/faqs/faqs_tool_comparison.php

  Specific to GWT, the most important difference for developers to
  consider is the GWT version.  ME4S supports GWT 2.0.x which is the
  current GA version and is based on the best practices presentation
  from Ray Ryan at Google I/O 2009. You can find that presentation 
  here:http://www.youtube.com/watch?v=PDuhR18-EdM

  The Roo integration for GWT is targeted at GWT 2.1 which looks to be a
  great set of additions to GWT, however it is still a work in progress.
  Most of the low level variances in the code that is generated reflect
  the difference in GWT version supported.

  Another difference is that ME4S generates code that does not use
  separate aspect files or design time annotations .  Our goal is to
  generate reusable software components from your existing technology
  assets like RDBMS tables, WSDL Documents, POJO's or Entities as
  quickly as possible giving youoptionsas to which project, source
  folder, and package you would like the generated code to go into.

  You can review videos of the GWT and other scaffoldingoptionsfrom
  ME4S in action here:http://www.youtube.com/user/myeclipseforspring

  Finally, we have an option to let you generate JUST the GWT front end
  and Service stub without requiring the use of any specific back end
  implementation includingSpring.

  ME4S can start from your existing Java code, WSDL, or RDBMS definition
  and generate reusable GWT front end components that are tied to your
  data model and which follow a strong MVP / Command pattern.  These
  components can be mixed and matched together to build more complicated
  downstream applications that go beyond CRUD.  The Remote Services are
  stubbed out to allow you to integrate with the server side technology
  of your choice, or you can accept the defaults and let ME4S build out
  a layered CRUD backend that includes JPA Entities, DAO’s, and Services
  all wired up usingSpring.

  I hope this helps, but let me know if you would like to have more
  detail.

  Thanks
  Jack Kennedy
  Skyway Software

  On Jul 12, 2:13 pm, Stefan Bachert stefanbach...@yahoo.de wrote:

   Hi,

   how do you compare your kind of scaffolding with the one ofSpring
   Roo?
   What is similar?
   What is different?

   Stefan Bacherthttp://gwtworld.de

   On 9 Jul., 15:06, Christiana Thompson christiana.thomp...@gmail.com
   wrote:

This week Genuitec and 

Re: GWT Flash Killer (beta)

2010-08-26 Thread Gal Dolber
Great job!!

2010/8/26 Christian Goudreau goudreau.christ...@gmail.com

 Juste one word:

 AWESOME

 Cheers,

 PS: I that that in fact, I wrote more than one word.


 On Thu, Aug 26, 2010 at 2:45 PM, powwow jimmy.w...@gmail.com wrote:

 http://www.bluedojo.com/

 I thought I'd like to share with the GWT Discussion Group of a Flash
 Killer application that is written with GWT.  It's a work in
 progress. :-)

 Build animations without Flash.  No Flash plug-in required for
 animations to play.
 Runs in any web browser including IE, Firefox, Chrome, Safari.
 Animations runs on iPad and iPhone.
 Based on HTML5.

 http://www.bluedojo.com/

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




 --
 Christian Goudreau
 www.arcbees.com

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




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

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

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



Re: GWT Flash Killer (beta)

2010-08-26 Thread Gal Dolber
Any tutorial? :P

2010/8/26 Gal Dolber gal.dol...@gmail.com

 Great job!!

 2010/8/26 Christian Goudreau goudreau.christ...@gmail.com

 Juste one word:

 AWESOME

 Cheers,

 PS: I that that in fact, I wrote more than one word.


 On Thu, Aug 26, 2010 at 2:45 PM, powwow jimmy.w...@gmail.com wrote:

 http://www.bluedojo.com/

 I thought I'd like to share with the GWT Discussion Group of a Flash
 Killer application that is written with GWT.  It's a work in
 progress. :-)

 Build animations without Flash.  No Flash plug-in required for
 animations to play.
 Runs in any web browser including IE, Firefox, Chrome, Safari.
 Animations runs on iPad and iPhone.
 Based on HTML5.

 http://www.bluedojo.com/

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




 --
 Christian Goudreau
 www.arcbees.com

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




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

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






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

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

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



Re: GWT eat your own dogfood ? Future of GWT ?

2010-08-26 Thread Ed
 The @external part is what I don't like. This makes it impossible to
I  agree with this (stuckagain was just a bit faster then me...)
Like mentioned in the doc. @external is there for legacy support.
I don't like the write legacy code...

Said that: Especially when having large projects with complex
constructions, obfuscating style sheet is an important requirement to
overcome style conflicts (just my experience).

 g:MenuBar ui:field=menu stylePrimaryName={res.style.mesyMainMenu}
Thanks Christian for your example, but it's missing the problem I
point out in the post that is linked to this issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=4903
That is: using Clientbundles/CssResources in reusable components.
Suppose your component has also ImageSources and CssResources and I
want to inject mine such that I change the style and images... How do
you accomplish that?
Please read it and you understand what I mean.
At the moment GWT is still restricted on this issue, but GWT is still
young so it's normal that still functionality like that is missing...
Like David mentioned, GWT dev team is working very hard and it's all a
matter of priorities.
So it's important that we all vote the issues that we find important
such these bugs get solved first...

@David: prepare yourself for the live stream chat with the GWT Dutch
team on the 10 of september... :)... I am at the other end and hope we
have time to discuss these ClientBundle/CssResource issues

Ed


On Aug 26, 8:46 pm, stuckagain david.no...@gmail.com wrote:
 David,

 On Aug 26, 7:54 pm, David Chandler drfibona...@google.com wrote:

  David,

  At this time, there is a lot of activity around the 2.1 release, and
  you can get some sense of this by watching the SVN trunk. In addition,
  the GWT team has considerably stepped up maven support (see recent

 I've been looking at all the checkins. I'm aware of what is coming,
 but we already have
 build a fast table with cell renderers, incremental rendering with
 multi TBODYs to get the fastest renderings,
 so we are not really waiting for the new features. It's nice that
 there will finally be a better table, but will it be
 extendible enough ? Will all bugs be fixed quickly ? You can not
 expect the community to fix every bug, especially
 if the problem is somewhere deep inside the compiler or event
 dispatching code (like the one I reported on PopupPanel in IE).

  blog posts), which was one of the top issues in the issue tracker. As
  always, addressing particular bugs is a question of priorities, but
  rest assured that the GWT team is well aware that no one wants to see
  new features added at the expense of stability.

 Then why is there so little progress on fixing bugs ? It looks like
 the whole team is working on 2.1.
 When I look at New issues in the tracker I can see over 900 bugs that
 are still marked as new, it takes me back all the way to November
 2006.
 There are indeed a lot enhancements but there are quite a lot of bugs
 as well... like stack overflows with the RPC... in 2.0 DeRPC was
 released, but with a big warning that it was not stable yet. Will it
 be 100% for 2.1 ? Or is there a newer system used by the data aware
 widgets ?

  As for the @CssResource issue, if this is still unresolved for you,
  please star issue 4903 (http://code.google.com/p/google-web-toolkit/
  issues/detail?id=4903) and we'll revisit it.

 I read through the newsgroup thread but I must say I don't agree with
 everything that was said there. CssResources are really great, just
 too bad that they were not retrofitted to the existing widgets.

 But I guess that the main goal would be for the declarative UI system?
 What I do agree upon is that the build in widgets of GWT are very
 limited in extendability (button in the titlebar of a dialog ... who
 would not want it ?) and they are not supporting CssResource directly
 so I have to fallback to @external which takes away a few nice
 features of using a CssResource.

 David

  /dmc
  David Chandler
  Google Web Toolkit Team

  On Aug 26, 4:40 am, stuckagain david.no...@gmail.com wrote:

   Hi,

   Since I get no response from the GWT dev-team on reported bugs I am
   beginning to wonder about the future of GWT. It looks like stability
   of the existing features is not very high on the list. I've heard
   excuses in all the previous release that you guys were going to sort
   out long-standing bugs after the next major release ... but years have
   passed now and the collection of open and even new issues is going in
   the wrong direction.

   So I have to ask the obvious question:
   Is Google going to abandon it now that Google Wave has been axed ?

   The focus of 2.1 seems to be fast app development for enterprise apps,
   which is very good... but one of the major requirements in enterprises
   when selecting a toolkit is the maturity and stablity of the toolkits,
   how much support do you get, how fast are bugs fixed ... etc... right
   now 

Re: GWT Flash Killer (beta)

2010-08-26 Thread powwow
Tutorials are coming soon...quite busy here.

I guess its targeted towards Flash developers since a Flash developer
could easily build animations since it is similar to the Flash IDE.

Jim

On Aug 26, 12:05 pm, Gal Dolber gal.dol...@gmail.com wrote:
 Any tutorial? :P

 2010/8/26 Gal Dolber gal.dol...@gmail.com





  Great job!!

  2010/8/26 Christian Goudreau goudreau.christ...@gmail.com

  Juste one word:

  AWESOME

  Cheers,

  PS: I that that in fact, I wrote more than one word.

  On Thu, Aug 26, 2010 at 2:45 PM, powwow jimmy.w...@gmail.com wrote:

 http://www.bluedojo.com/

  I thought I'd like to share with the GWT Discussion Group of a Flash
  Killer application that is written with GWT.  It's a work in
  progress. :-)

  Build animations without Flash.  No Flash plug-in required for
  animations to play.
  Runs in any web browser including IE, Firefox, Chrome, Safari.
  Animations runs on iPad and iPhone.
  Based on HTML5.

 http://www.bluedojo.com/

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

  --
  Christian Goudreau
 www.arcbees.com

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

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

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

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

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

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



Re: GWT eat your own dogfood ? Future of GWT ?

2010-08-26 Thread Ed
 I read through the newsgroup thread but I must say I don't agree with
 everything that was said there. CssResources are really great, just
 too bad that they were not retrofitted to the existing widgets.

I agree with you, I also was a bit suprised that it wasn't fully used
by the GWT widgets, but I think it's not possible yet till some of
these issues as discussed in the topic discussion are solved.
Ed

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



Re: GWT eat your own dogfood ? Future of GWT ?

2010-08-26 Thread Christian Goudreau

 That is: using Clientbundles/CssResources in reusable components.

Suppose your component has also ImageSources and CssResources and I

want to inject mine such that I change the style and images... How do

you accomplish that?


Yeah well in that case I would have to redesign this in a way where I don't
setPrimaryStyle inside UiBinder, but instead, in java. As for @external, I'm
using it for simplification, I could have setPrimary style on every
menuItem. As for name clash with a name like .xkjhfskjdh938 .gwt-menuItem,
you have to want it to be able to do that, hehe.

Your case is hard to solve since it's almost as if you wanted to reuse
something and change something that isn't meant to be changed. Add some
methods that will let you override the default setting :D And actually, that
something I never tried, so can't really further on this.

Anyway I didn't read everything, there was a LOT of things to read lol. I'm
not saying that things couldn't be improved btw, I agree with the fact that
there's no easy way to solve this. I'm just saying that there's some way to
do it :D

Cheers,

On Thu, Aug 26, 2010 at 3:09 PM, Ed post2edb...@gmail.com wrote:

  I read through the newsgroup thread but I must say I don't agree with
  everything that was said there. CssResources are really great, just
  too bad that they were not retrofitted to the existing widgets.

 I agree with you, I also was a bit suprised that it wasn't fully used
 by the GWT widgets, but I think it's not possible yet till some of
 these issues as discussed in the topic discussion are solved.
 Ed

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




-- 
Christian Goudreau
www.arcbees.com

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



Re: GWT hosted mode is extremly slow

2010-08-26 Thread haimke

I don't knows what ClientBundles are, and I am not using images so I
probably don't have it at all. I find it awkward how could Google
develop Gmail and Wave using GWT when it works so slow using hosted
mode.

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



Re: GWT hosted mode is extremly slow

2010-08-26 Thread Gal Dolber
Gwt isn't the problem... java is a pig
How big is your app?
If it is really big and you are instantiating everything when it loads it
will be really slow.
You need to code-split everything so you will get instantiated only what you
are working on, when you lunch development mode.
GWT.runAsync or with a trunk-build of gin
AsyncProviderYourFattyJavaObject.

Best

2010/8/26 haimke haim.schind...@gmail.com


 I don't knows what ClientBundles are, and I am not using images so I
 probably don't have it at all. I find it awkward how could Google
 develop Gmail and Wave using GWT when it works so slow using hosted
 mode.

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




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

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

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



GwtCreateResource GWT-RPC Service/ServiceAsync interfaces -- how?

2010-08-26 Thread Xlorep DarkHelm
Ok, I made a ClientBundle, and am trying to put my RPC endpoints into
the bundle, and getting a weird error. The relevant pieces are:

public interface Resources extends ClientBundle {
@ClassType(Display.Service.class)
GwtCreateResourceDisplay.ServiceAsync displaySvc();

@ClassType(Updater.Service.class)
GwtCreateResourceUpdater.ServiceAsync updateSvc();

@ClassType(AlgoList.Service.class)
GwtCreateResourceAlgoList.ServiceAsync listSvc();

@ClassType(Admin.Service.class)
GwtCreateResourceAdmin.ServiceAsync adminSvc();
}

I have my interfaces defined elsewhere. However, when I attempt to
create the resources, with the following:

public class ShowSort {
private static final Resources resources;
private static final Display.ServiceAsync displaySvc;
private static final Updater.ServiceAsync updateSvc;
private static final AlgoList.ServiceAsync listSvc;
private static final Admin.ServiceAsync adminSvc;

static {
resources = GWT.create(Resources.class);
resources.style().ensureInjected();
resources.shCore().ensureInjected();
resources.shTheme().ensureInjected();

displaySvc = resources.displaySvc().create();
updateSvc = resources.updateSvc().create();
listSvc = resources.listSvc().create();
adminSvc = resources.adminSvc().create();
}
}

I get the following error:

   Scanning for additional dependencies: file:/E:/Documents/Kenai/
showsort~source-code-repository/ShowSort/src/java/org/darkhelm/
showsort/client/ShowSort.java
  Adding '2' new generated units
 Validating newly compiled units
[ERROR] Errors in 'generated://
F280852A2C6F6F3CA331443A2AA1FAFB/org/darkhelm/showsort/client/
resources/
org_darkhelm_showsort_client_resources_Resources_default_InlineClientBundleGenerator.java'
   [ERROR] Line 10: The return type is incompatible with
GwtCreateResourceAdmin.ServiceAsync.create()
   [ERROR] Line 28: The return type is incompatible with
GwtCreateResourceDisplay.ServiceAsync.create()
   [ERROR] Line 37: The return type is incompatible with
GwtCreateResourceAlgoList.ServiceAsync.create()
   [ERROR] Line 64: The return type is incompatible with
GwtCreateResourceUpdater.ServiceAsync.create()
[ERROR] Errors in 'generated://
93A5FCE98D7AEEFFC6892A326A030E84/org/darkhelm/showsort/client/
resources/
org_darkhelm_showsort_client_resources_Resources_default_StaticClientBundleGenerator.java'
   [ERROR] Line 10: The return type is incompatible with
GwtCreateResourceAdmin.ServiceAsync.create()
   [ERROR] Line 28: The return type is incompatible with
GwtCreateResourceDisplay.ServiceAsync.create()
   [ERROR] Line 37: The return type is incompatible with
GwtCreateResourceAlgoList.ServiceAsync.create()
   [ERROR] Line 64: The return type is incompatible with
GwtCreateResourceUpdater.ServiceAsync.create()
  [ERROR] Unable to find recently-generated type
'org.darkhelm.showsort.client.resources.org_darkhelm_showsort_client_resources_Resources_default_InlineClientBundleGenerator
   [ERROR] Errors in 'file:/E:/Documents/Kenai/showsort~source-code-
repository/ShowSort/src/java/org/darkhelm/showsort/client/
ShowSort.java'
  [ERROR]  Internal compiler error
java.lang.RuntimeException: Unable to commit generated files
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
131)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:200)
at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:123)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:234)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.access$200(AbstractCompiler.java:109)
at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
522)
at
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:
112)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:
47)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
430)
at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
32)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:
522)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:
414)
at com.google.gwt.dev.Compiler.run(Compiler.java:201)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
at

Updated maven strategy for GWT

2010-08-26 Thread Peter Ondruska
http://googlewebtoolkit.blogspot.com/2010/08/updated-maven-strategy-for-gwt.html

As part of the GWT team's ongoing work to provide better maven
support, we are now publishing GWT milestones and release candidates
to the Google snapshot repository. GWT 2.1M3 is now available as
version 2.1-SNAPSHOT. If you're using Spring Roo with GWT, you'll
notice that the Roo-generated POMs for M3 still point to the SVN repo.
For this milestone release, the GWT jars are available from both the
SVN repo and the Google snapshot repo. Beginning with M4, we plan to
use only the Google snapshot repo. The GWT 2.1 release and minor point
releases thereafter will be published to the maven central repository.
To use the Google snapshot repository, put this in your pom.xml:
repository
  idgoogle-maven-snapshot-repository/id
  nameGoogle Maven Snapshot Repository/name
  urlhttps://oss.sonatype.org/content/repositories/google-snapshots/
/url
  snapshots
enabledtrue/enabled
  /snapshots
/repository

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



Re: GWT Flash Killer (beta)

2010-08-26 Thread Isuru Madusanka
Simply amazing!
Expecting tutorial on that!

On Fri, Aug 27, 2010 at 12:38 AM, powwow jimmy.w...@gmail.com wrote:

 Tutorials are coming soon...quite busy here.

 I guess its targeted towards Flash developers since a Flash developer
 could easily build animations since it is similar to the Flash IDE.

 Jim

 On Aug 26, 12:05 pm, Gal Dolber gal.dol...@gmail.com wrote:
  Any tutorial? :P
 
  2010/8/26 Gal Dolber gal.dol...@gmail.com
 
 
 
 
 
   Great job!!
 
   2010/8/26 Christian Goudreau goudreau.christ...@gmail.com
 
   Juste one word:
 
   AWESOME
 
   Cheers,
 
   PS: I that that in fact, I wrote more than one word.
 
   On Thu, Aug 26, 2010 at 2:45 PM, powwow jimmy.w...@gmail.com wrote:
 
  http://www.bluedojo.com/
 
   I thought I'd like to share with the GWT Discussion Group of a Flash
   Killer application that is written with GWT.  It's a work in
   progress. :-)
 
   Build animations without Flash.  No Flash plug-in required for
   animations to play.
   Runs in any web browser including IE, Firefox, Chrome, Safari.
   Animations runs on iPad and iPhone.
   Based on HTML5.
 
  http://www.bluedojo.com/
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-toolkit@googlegroups.com
   .
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
   --
   Christian Goudreau
  www.arcbees.com
 
--
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
   --
   Guit: Elegant, beautiful, modular and *production ready* gwt
 applications.
 
  http://code.google.com/p/guit/
 
  --
  Guit: Elegant, beautiful, modular and *production ready* gwt
 applications.
 
  http://code.google.com/p/guit/

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



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



Re: Recommended approach for web services on the GWT/GAE stack?

2010-08-26 Thread Bayard Randel
GWT is the only client, but I also need to provide a web service that
can receive and serialise json posted from a different web
application. I'm just uncertain about what the best way to implement
this service is on the GWT/GAE stack is.. using a servlet?

On Aug 27, 5:41 am, Arthur Kalmenson arthur.k...@gmail.com wrote:
 If GWT is your only client, why not just use GWT-RPC?

 --
 Arthur Kalmenson



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



Is there a searchbar widget for data presentation widgets?

2010-08-26 Thread Jambi
Hej Folks,

I´m pretty new to GWT so I´m still learning. So my question is, if
there is existing something like a interactive searchbar you can
combine with the new data presentation widgets? I think i´ve seen it
working before in some Google I/O video, but i´m not sure which video
it was.

best regards, Michael

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



Re: Is there a searchbar widget for data presentation widgets?

2010-08-26 Thread Jambi
Ok: I just found the part of the I/O where the widget is shown:

http://www.youtube.com/watch?v=_ToKWo_hcOkfeature=channel

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



Re: click event in dialogbox

2010-08-26 Thread aditya sanas
yeah it is possible.

you just need to create Anchor(String )  from GWT

and register a onclick event for this anchor as Anchor.addClickHandler();

using this you will be able to bind onclick with the link you desired.


--
Aditya


On Thu, Aug 26, 2010 at 5:19 AM, emilioF tarr...@gmail.com wrote:

 hi all,
 i have a dialogbox with some link as this a id=a class=docabc/
 a and i want bind a click event on a link and get id link. In jquery
 is $(a.doc).bind(click, function(event) { var id = $
 (this).attr(id);. In GWT how is possible? thanks

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



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



Google Web Toolkit Developer Plugin for Firefox - where is it?

2010-08-26 Thread Rich
Hello,

I am trying to install Google Web Toolkit Developer Plugin for Firefox
on a new Windows 7 (64bit) computer with FireFox 3.6.8 .

On a different computer, I have a version of FireFox 3.6.8  that is
using Google Web Toolkit Developer Plug-in for Firefox version
1.0.7511 so I know that it can be done.  Some how.  Or has been done.

But when I search for Google Web Toolkit Developer Plugin for Firefox
anywhere, I can not find it.  In particular when I search for Google
Web Toolkit Developer Plugin for Firefox in the Firefox Add-on
directory, it finds 0 results.

Can you tell me where it is?  Do I need to change versions of
FireFox?  I am calling it up from STS  (Eclipse) on a project that
uses GWT 2.0.3.

Thanks.

Regards,


Rich

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



[gwt-contrib] [google-web-toolkit] r8649 committed - Fix boolean properties, and punch up tests....

2010-08-26 Thread codesite-noreply

Revision: 8649
Author: gwt.mirror...@gmail.com
Date: Wed Aug 25 23:35:42 2010
Log: Fix boolean properties, and punch up tests.

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

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

Added:
  
/trunk/user/test/com/google/gwt/requestfactory/client/SimpleRequestFactoryInstance.java

 /trunk/user/test/com/google/gwt/valuestore
 /trunk/user/test/com/google/gwt/valuestore/server
 /trunk/user/test/com/google/gwt/valuestore/server/SimpleFoo.java
Deleted:
  
/trunk/user/test/com/google/gwt/requestfactory/client/impl/SimpleFooRecordImpl.java

Modified:
  
/trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/ReportRecord.java
  
/trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/report/ReportDetailsView.java
  
/trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/report/ReportDetailsView.ui.xml
  
/trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/report/ReportEditView.java
  
/trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/report/ReportEditView.ui.xml
  
/trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/report/ReportListView.java
  
/trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/Report.java
  
/trunk/user/src/com/google/gwt/requestfactory/client/impl/RecordJsoImpl.java
  
/trunk/user/test/com/google/gwt/requestfactory/client/impl/DeltaValueStoreJsonImplTest.java
  
/trunk/user/test/com/google/gwt/requestfactory/client/impl/RecordJsoImplTest.java
  
/trunk/user/test/com/google/gwt/requestfactory/client/impl/RecordKeyTest.java
  
/trunk/user/test/com/google/gwt/requestfactory/server/JsonRequestProcessorTest.java

 /trunk/user/test/com/google/gwt/requestfactory/server/SimpleFoo.java
 /trunk/user/test/com/google/gwt/requestfactory/shared/SimpleFooRecord.java

===
--- /dev/null
+++  
/trunk/user/test/com/google/gwt/requestfactory/client/SimpleRequestFactoryInstance.java	 
Wed Aug 25 23:35:42 2010

@@ -0,0 +1,41 @@
+/*
+ * Copyright 2010 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.requestfactory.client;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.requestfactory.client.impl.RecordImpl;
+import com.google.gwt.requestfactory.client.impl.RecordSchema;
+import com.google.gwt.requestfactory.shared.SimpleFooRecord;
+import com.google.gwt.requestfactory.shared.SimpleRequestFactory;
+
+/**
+ * Easy access for RequestFactory tests.
+ */
+public class SimpleRequestFactoryInstance {
+  private static SimpleRequestFactory factory;
+
+  public static SimpleRequestFactory factory() {
+if (factory == null) {
+  factory = GWT.create(SimpleRequestFactory.class);
+}
+
+return factory;
+  }
+
+  public static RecordSchema? schema() {
+return ((RecordImpl)  
factory().create(SimpleFooRecord.class)).getSchema();

+  }
+}
===
--- /dev/null
+++ /trunk/user/test/com/google/gwt/valuestore/server/SimpleFoo.java	Wed  
Aug 25 23:35:42 2010

@@ -0,0 +1,334 @@
+/*
+ * Copyright 2010 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.valuestore.server;
+
+import com.google.gwt.requestfactory.server.SimpleBar;
+import com.google.gwt.requestfactory.shared.Id;
+import com.google.gwt.requestfactory.shared.SimpleEnum;
+
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import java.util.Collections;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * Domain object for SimpleFooRequest.
+ */
+public class SimpleFoo {
+
+  static SimpleFoo singleton = new SimpleFoo();
+
+  private static Long nextId = 1L;
+
+  public static Long countSimpleFoo() {
+return 1L;
+  }
+
+  public static ListSimpleFoo findAll() {
+return Collections.singletonList(singleton);
+  }
+
+  public static SimpleFoo findSimpleFoo(Long id) {
+return findSimpleFooById(id);
+  }

Re: [gwt-contrib] RR: allow CheckBox to accept null?

2010-08-26 Thread Johan Rydberg

On 8/25/10 6:16 PM, Ray Ryan wrote:
The use case is dealing with boolean values that may be null, and 
really a check box is just the wrong UI there. Withdrawn.
I know of at least one data binding framework, gwt-pectin, that signals 
no value using null. As a work-around gwt-pectin has it's own CheckBox 
impl that accepts null.


Take this example; We have a master-detail interface.  a CheckBox has 
been bound to selectedElement.male.  If there is not a selected 
element, a no value signal should be sent down through data binding, 
not False. Right?


But then again, there's really no way to communicate something like a 
placeholder value for a checkbox.  But I still think CheckBox should 
accept null, for the interface to be consistent.


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


[gwt-contrib] [google-web-toolkit] r8650 committed - Temporarily disable GwtSafeHtmlUtilsTest until IE fix...

2010-08-26 Thread codesite-noreply

Revision: 8650
Author: p...@google.com
Date: Thu Aug 26 03:07:17 2010
Log: Temporarily disable GwtSafeHtmlUtilsTest until IE fix

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

Modified:
 /trunk/user/test/com/google/gwt/safehtml/shared/GwtSafeHtmlUtilsTest.java

===
---  
/trunk/user/test/com/google/gwt/safehtml/shared/GwtSafeHtmlUtilsTest.java	 
Mon Aug 23 04:03:59 2010
+++  
/trunk/user/test/com/google/gwt/safehtml/shared/GwtSafeHtmlUtilsTest.java	 
Thu Aug 26 03:07:17 2010

@@ -16,6 +16,8 @@
 package com.google.gwt.safehtml.shared;

 import com.google.gwt.junit.client.GWTTestCase;
+//import com.google.gwt.regexp.shared.RegExp;
+//import com.google.gwt.regexp.shared.SplitResult;

 /**
  * Unit tests for GwtEscapeUtils.
@@ -43,31 +45,31 @@
 fquot;bar #39;lt;amp;emgt;lt;e/mgt;ooamp;bar, escaped);
   }

-  public void testEscape_withEntities1() {
+  public void disabled_testEscape_withEntities1() {
 String escaped = SafeHtmlUtils.htmlEscapeAllowEntities(
 f\bar \'eme/moobar);
 assertEquals(
 fquot;bar #39;lt;amp;emgt;lt;e/mgt;ooamp;bar, escaped);
   }

-  public void testEscape_withEntities2() {
+  public void disabled_testEscape_withEntities2() {
 String escaped = SafeHtmlUtils.htmlEscapeAllowEntities( foo lt;);
 assertEquals(amp; foo lt;, escaped);
   }

-  public void testEscape_withEntities3() {
+  public void disabled_testEscape_withEntities3() {
 String escaped = SafeHtmlUtils.htmlEscapeAllowEntities(
 foo amp; em bar #39; baz);
 assertEquals(lt;foogt; amp; lt;emgt; bar #39; baz, escaped);
   }

-  public void testEscape_withEntities4() {
+  public void disabled_testEscape_withEntities4() {
 String escaped = SafeHtmlUtils.htmlEscapeAllowEntities(
 foo amp; bar #39; baz);
 assertEquals(amp;foo amp;amp; bar #39; bazamp;, escaped);
   }

-  public void testEscape_withEntitiesInvalidEntities() {
+  public void disabled_testEscape_withEntitiesInvalidEntities() {
 String escaped = SafeHtmlUtils.htmlEscapeAllowEntities(
 a mp;;x;#;#x;);
 assertEquals(amp;a mp;amp;;x;amp;#;amp;#x;, escaped);

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


[gwt-contrib] Fixing regex.split test failure due to inconsistent browser implementations. (issue801801)

2010-08-26 Thread pdr

Reviewers: conroy,

Description:
Fixing regex.split test failure due to inconsistent browser
implementations.

Review by: con...@google.com

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

Affected files:
  M user/src/com/google/gwt/safehtml/shared/SafeHtmlUtils.java
  M user/src/com/google/gwt/safehtml/shared/SimpleHtmlSanitizer.java
  M user/test/com/google/gwt/safehtml/shared/GwtSafeHtmlUtilsTest.java


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


[gwt-contrib] Re: Fixing regex.split test failure due to inconsistent browser implementations. (issue801801)

2010-08-26 Thread conroy

On 2010/08/26 14:52:08, pdr wrote:


LGTM


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

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


[gwt-contrib] Re: Fixing regex.split test failure due to inconsistent browser implementations. (issue801801)

2010-08-26 Thread jat

The bug isn't here -- the bug is instead in RegExp.split behaving
differently across platforms.  Why not fix that rather than leaving it
broken and working around it here?


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

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


Re: [gwt-contrib] Re: Allow RPC stats system extensions (issue751801)

2010-08-26 Thread Lex Spoon
I don't know anything about the *current* stats support in RPC.

Judging from the revision logs, it looks like Bob might have added that
system. Added to the CC.  -Lex


On Tue, Aug 24, 2010 at 5:29 PM, Pascal Muetschard 
pmuetschard...@google.com pmuetschard%2...@google.com wrote:

 Could I please get some feedback on this and get it submitted?
 Thanks.

 On Aug 10, 2:13 pm, pmuetschard...@google.com wrote:
  Reviewers: Dan Rice, scottb, Lex,
 
  Description:
  This patch allows for the extension of the RPC stats system by moving
  the stats methods into an object, making them non-static. This would
  allow application developers to extend the ProxyCreator to use a
  different implementation of the stats methods.
 
  Please review this athttp://gwt-code-reviews.appspot.com/751801/show
 
  Affected files:
 user/src/com/google/gwt/rpc/client/impl/RpcCallbackAdapter.java
 user/src/com/google/gwt/rpc/client/impl/RpcServiceProxy.java
 user/src/com/google/gwt/user/client/rpc/impl/RemoteServiceProxy.java
 
  user/src/com/google/gwt/user/client/rpc/impl/RequestCallbackAdapter.java
 user/src/com/google/gwt/user/client/rpc/impl/RpcStatsContext.java
 user/src/com/google/gwt/user/rebind/rpc/ProxyCreator.java

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


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

[gwt-contrib] [google-web-toolkit] r8652 committed - Fixing regex.split test failure due to inconsistent browser implementa...

2010-08-26 Thread codesite-noreply

Revision: 8652
Author: p...@google.com
Date: Thu Aug 26 05:38:09 2010
Log: Fixing regex.split test failure due to inconsistent browser  
implementations.


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

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

Modified:
 /trunk/user/test/com/google/gwt/safehtml/shared/GwtSafeHtmlUtilsTest.java

===
---  
/trunk/user/test/com/google/gwt/safehtml/shared/GwtSafeHtmlUtilsTest.java	 
Thu Aug 26 03:07:17 2010
+++  
/trunk/user/test/com/google/gwt/safehtml/shared/GwtSafeHtmlUtilsTest.java	 
Thu Aug 26 05:38:09 2010

@@ -45,31 +45,31 @@
 fquot;bar #39;lt;amp;emgt;lt;e/mgt;ooamp;bar, escaped);
   }

-  public void disabled_testEscape_withEntities1() {
+  public void testEscape_withEntities1() {
 String escaped = SafeHtmlUtils.htmlEscapeAllowEntities(
 f\bar \'eme/moobar);
 assertEquals(
 fquot;bar #39;lt;amp;emgt;lt;e/mgt;ooamp;bar, escaped);
   }

-  public void disabled_testEscape_withEntities2() {
+  public void testEscape_withEntities2() {
 String escaped = SafeHtmlUtils.htmlEscapeAllowEntities( foo lt;);
 assertEquals(amp; foo lt;, escaped);
   }

-  public void disabled_testEscape_withEntities3() {
+  public void testEscape_withEntities3() {
 String escaped = SafeHtmlUtils.htmlEscapeAllowEntities(
 foo amp; em bar #39; baz);
 assertEquals(lt;foogt; amp; lt;emgt; bar #39; baz, escaped);
   }

-  public void disabled_testEscape_withEntities4() {
+  public void testEscape_withEntities4() {
 String escaped = SafeHtmlUtils.htmlEscapeAllowEntities(
 foo amp; bar #39; baz);
 assertEquals(amp;foo amp;amp; bar #39; bazamp;, escaped);
   }

-  public void disabled_testEscape_withEntitiesInvalidEntities() {
+  public void testEscape_withEntitiesInvalidEntities() {
 String escaped = SafeHtmlUtils.htmlEscapeAllowEntities(
 a mp;;x;#;#x;);
 assertEquals(amp;a mp;amp;;x;amp;#;amp;#x;, escaped);

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


[gwt-contrib] Re: Fixing regex.split test failure due to inconsistent browser implementations. (issue801801)

2010-08-26 Thread pdr

On 2010/08/26 15:21:38, jat wrote:

The bug isn't here -- the bug is instead in RegExp.split behaving

differently

across platforms.  Why not fix that rather than leaving it broken and

working

around it here?

You're right and fixing regex.split is top of my todo list.
I chose to revert back to the string.split version because the
regex.split fix is not trivial and the failure situations of regex.split
are large enough that SafeHtml isn't really usable (on IE) while it is
in there.


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

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


[gwt-contrib] [google-web-toolkit] r8653 committed - These were in the submit for r8652, not sure why they didn't update th...

2010-08-26 Thread codesite-noreply

Revision: 8653
Author: gwt.mirror...@gmail.com
Date: Thu Aug 26 09:38:32 2010
Log: These were in the submit for r8652, not sure why they didn't update  
then!



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

Modified:
 /trunk/user/src/com/google/gwt/safehtml/shared/SafeHtmlUtils.java
 /trunk/user/src/com/google/gwt/safehtml/shared/SimpleHtmlSanitizer.java

===
--- /trunk/user/src/com/google/gwt/safehtml/shared/SafeHtmlUtils.java	Mon  
Aug 23 04:03:59 2010
+++ /trunk/user/src/com/google/gwt/safehtml/shared/SafeHtmlUtils.java	Thu  
Aug 26 09:38:32 2010

@@ -16,7 +16,6 @@
 package com.google.gwt.safehtml.shared;

 import com.google.gwt.regexp.shared.RegExp;
-import com.google.gwt.regexp.shared.SplitResult;

 /**
  * Utility class containing static methods for escaping and sanitizing  
strings.

@@ -113,16 +112,16 @@
   public static String htmlEscapeAllowEntities(String text) {
 StringBuilder escaped = new StringBuilder();

-SplitResult splitSegment = AMP_RE.split(text, -1);
-for (int i = 0, len = splitSegment.length(); i  len; i++) {
-  String segment = splitSegment.get(i);
-  if (i == 0) {
+boolean firstSegment = true;
+for (String segment : text.split(, -1)) {
+  if (firstSegment) {
 /*
  * The first segment is never part of an entity reference, so we  
always

  * escape it.
  * Note that if the input starts with an ampersand, we will get an  
empty

  * segment before that.
  */
+firstSegment = false;
 escaped.append(htmlEscape(segment));
 continue;
   }
===
--- /trunk/user/src/com/google/gwt/safehtml/shared/SimpleHtmlSanitizer.java	 
Mon Aug 23 04:03:59 2010
+++ /trunk/user/src/com/google/gwt/safehtml/shared/SimpleHtmlSanitizer.java	 
Thu Aug 26 09:38:32 2010

@@ -16,7 +16,6 @@
 package com.google.gwt.safehtml.shared;

 import com.google.gwt.regexp.shared.RegExp;
-import com.google.gwt.regexp.shared.SplitResult;

 import java.util.Arrays;
 import java.util.HashSet;
@@ -79,15 +78,15 @@
   private static String simpleSanitize(String text) {
 StringBuilder sanitized = new StringBuilder();

-SplitResult splitSegment = LT_RE.split(text, -1);
-for (int i = 0, len = splitSegment.length(); i  len; i++) {
-  String segment = splitSegment.get(i);
-  if (i == 0) {
+boolean firstSegment = true;
+for (String segment : text.split(, -1)) {
+  if (firstSegment) {
 /*
  *  the first segment is never part of a valid tag; note that if  
the
  *  input string starts with a tag, we will get an empty segment  
at the

  *  beginning.
  */
+firstSegment = false;
 sanitized.append(SafeHtmlUtils.htmlEscapeAllowEntities(segment));
 continue;
   }

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


[gwt-contrib] Re: Fix the escaping done by UrlBuilder. (issue754803)

2010-08-26 Thread rjrjr

LGTM

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

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


[gwt-contrib] Re: Add ability to use @UiChild annotation to specify how GWT should add a child element. (issue794801)

2010-08-26 Thread rjrjr


http://gwt-code-reviews.appspot.com/794801/diff/14001/13003
File user/src/com/google/gwt/uibinder/client/UiChild.java (right):

http://gwt-code-reviews.appspot.com/794801/diff/14001/13003#newcode29
user/src/com/google/gwt/uibinder/client/UiChild.java:29: * safely
called.  If no limit is specified, it assumed to be unlimited.
it is assumed

http://gwt-code-reviews.appspot.com/794801/diff/14001/13004
File user/src/com/google/gwt/uibinder/elementparsers/UiChildParser.java
(right):

http://gwt-code-reviews.appspot.com/794801/diff/14001/13004#newcode67
user/src/com/google/gwt/uibinder/elementparsers/UiChildParser.java:67:
String tag = child.getLocalName();
Please check that the child's prefix matches the parent's. That is,
g:thingy should match, but plain thingy should not

http://gwt-code-reviews.appspot.com/794801/diff/14001/13004#newcode79
user/src/com/google/gwt/uibinder/elementparsers/UiChildParser.java:79:
writer.die(child, Expecting only widgets in %s, child);
We had talked about handling non-widget Element children as well. Are
you going to add that in a follow up patch?

http://gwt-code-reviews.appspot.com/794801/diff/14001/13004#newcode103
user/src/com/google/gwt/uibinder/elementparsers/UiChildParser.java:103:
* Go through all of the method's required attributes and consume them
from
no apostrophe on method's

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

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


[gwt-contrib] Add DynaTableRf to the distribution, and fix some checkstyle issues. (issue775805)

2010-08-26 Thread rjrjr

Reviewers: unnurg,

Description:
Add DynaTableRf to the distribution, and fix some checkstyle issues.
Pave the way a bit for LoggingExample.


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

Affected files:
  A eclipse/samples/LogExample/.checkstyle
  A eclipse/samples/LogExample/.classpath
  A eclipse/samples/LogExample/.project
  M samples/build.xml
  M  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DynaTableWidget.java
  M  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/server/SchoolCalendarService.java

  A samples/logexample/war/WEB-INF/classes/marker


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


[gwt-contrib] Re: Add DynaTableRf to the distribution, and fix some checkstyle issues. (issue775805)

2010-08-26 Thread unnurg

LGTM

On 2010/08/26 20:20:23, rjrjr wrote:




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

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


[gwt-contrib] Re: Add debugging information to CssResource. (issue770801)

2010-08-26 Thread rjrjr

LGTM

Nice, one minor nit. As we said offline, it'd be good to get Simon
Stewart's take on this.


http://gwt-code-reviews.appspot.com/770801/diff/1/10
File user/src/com/google/gwt/resources/rg/CssResourceGenerator.java
(right):

http://gwt-code-reviews.appspot.com/770801/diff/1/10#newcode979
user/src/com/google/gwt/resources/rg/CssResourceGenerator.java:979: if
(debugInfo instanceof CssDebugInfoImpl) {
You just made this harder to customize, no? Why not but an isEnabled()
method on the debugInfo interface? Or you could make this an == check
against the null object?

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

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


[gwt-contrib] [google-web-toolkit] r8654 committed - Add DynaTableRf to the distribution, and fix some checkstyle issues....

2010-08-26 Thread codesite-noreply

Revision: 8654
Author: gwt.mirror...@gmail.com
Date: Thu Aug 26 14:18:16 2010
Log: Add DynaTableRf to the distribution, and fix some checkstyle issues.
Pave the way a bit for LoggingExample.

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

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

Added:
 /trunk/eclipse/samples/LogExample/.checkstyle
 /trunk/eclipse/samples/LogExample/.classpath
 /trunk/eclipse/samples/LogExample/.project
 /trunk/samples/logexample/war/WEB-INF/classes
 /trunk/samples/logexample/war/WEB-INF/classes/marker
Modified:
 /trunk/samples/build.xml
  
/trunk/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DynaTableWidget.java
  
/trunk/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/server/SchoolCalendarService.java


===
--- /dev/null
+++ /trunk/eclipse/samples/LogExample/.checkstyle   Thu Aug 26 14:18:16 2010
@@ -0,0 +1,7 @@
+?xml version=1.0 encoding=UTF-8?
+fileset-config file-format-version=1.2.0 simple-config=true
+fileset name=all enabled=true check-config-name=GWT Checks  
local=false

+file-match-pattern match-pattern=. include-pattern=true/
+/fileset
+filter name=NonSrcDirs enabled=true/
+/fileset-config
===
--- /dev/null
+++ /trunk/eclipse/samples/LogExample/.classpathThu Aug 26 14:18:16 2010
@@ -0,0 +1,8 @@
+?xml version=1.0 encoding=UTF-8?
+classpath
+   classpathentry kind=src path=core/src/
+   classpathentry kind=src output=war path=core/war/
+	classpathentry kind=con  
path=org.eclipse.jdt.launching.JRE_CONTAINER/

+   classpathentry combineaccessrules=false kind=src path=/gwt-user/
+   classpathentry kind=output path=war/WEB-INF/classes/
+/classpath
===
--- /dev/null
+++ /trunk/eclipse/samples/LogExample/.project  Thu Aug 26 14:18:16 2010
@@ -0,0 +1,30 @@
+?xml version=1.0 encoding=UTF-8?
+projectDescription
+   nameLogExample/name
+   comment/comment
+   projects
+   /projects
+   buildSpec
+   buildCommand
+   nameorg.eclipse.jdt.core.javabuilder/name
+   arguments
+   /arguments
+   /buildCommand
+   buildCommand
+   
namecom.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder/name
+   arguments
+   /arguments
+   /buildCommand
+   /buildSpec
+   natures
+   natureorg.eclipse.jdt.core.javanature/nature
+   
naturecom.atlassw.tools.eclipse.checkstyle.CheckstyleNature/nature
+   /natures
+   linkedResources
+   link
+   namecore/name
+   type2/type
+   locationURIGWT_ROOT/samples/logexample/locationURI
+   /link
+   /linkedResources
+/projectDescription
===
--- /trunk/samples/build.xmlWed Aug 25 11:12:04 2010
+++ /trunk/samples/build.xmlThu Aug 26 14:18:16 2010
@@ -26,6 +26,10 @@
 gwt.ant dir=json /
   /target

+  target name=logexample description=Build logexample
+gwt.ant dir=logexample /
+  /target
+
   target name=mail description=Build mail
 gwt.ant dir=mail /
   /target
@@ -36,9 +40,11 @@

   target name=-do description=Run all subprojects 
 antcall target=dynatable /
+antcall target=dynatablerf /
 antcall target=expenses /
 antcall target=hello /
 antcall target=json /
+!-- antcall target=logexample / Doesn't quite work yet --
 antcall target=mail /
 antcall target=showcase /
   /target
===
---  
/trunk/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DynaTableWidget.java	 
Thu Aug 12 08:15:08 2010
+++  
/trunk/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DynaTableWidget.java	 
Thu Aug 26 14:18:16 2010

@@ -122,7 +122,6 @@
 + event.getRecord());
   }
 });
-
   }

   public void clearStatusText() {
===
---  
/trunk/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/server/SchoolCalendarService.java	 
Thu Aug 12 08:15:08 2010
+++  
/trunk/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/server/SchoolCalendarService.java	 
Thu Aug 26 14:18:16 2010

@@ -62,6 +62,10 @@

   private static final Random rnd = new Random(3);

+  public static Person findPerson(Long id) {
+return people.get(id);
+  }
+
   public static ListPerson getPeople(int startIndex, int maxCount) {
 generateRandomPeople();

@@ -79,18 +83,6 @@

 return new ArrayListPerson(people.values()).subList(startIndex, end);
   }
-
-  private static void generateRandomPeople() {
-if (people.isEmpty())
-  for (int i = 0; i  MAX_PEOPLE; ++i) {
-Person person = generateRandomPerson();
-persist(person);

[gwt-contrib] Lose idiotic, inflexible password block. (issue779803)

2010-08-26 Thread rjrjr

Reviewers: amitmanjhi,

Description:
Lose idiotic, inflexible password block.


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

Affected files:
  M user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java


Index:  
user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java

===
--- user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java	 
(revision 8652)
+++ user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java	 
(working copy)

@@ -121,17 +121,7 @@

   public static final String RELATED = related;

-  public static final SetString BLACK_LIST = initBlackList();
-
   private static final Logger log =  
Logger.getLogger(JsonRequestProcessor.class.getName());

-
-  public static SetString initBlackList() {
-SetString blackList = new HashSetString();
-for (String str : new String[] {password}) {
-  blackList.add(str);
-}
-return Collections.unmodifiableSet(blackList);
-  }

   private RequestProperty propertyRefs;

@@ -1047,9 +1037,9 @@
   RequestProperty propertyContext) {
 if (Record.class.isAssignableFrom(p.getType())) {
   return propertyContext.hasProperty(p.getName());
-} else {
-  return !BLACK_LIST.contains(p.getName());
-}
+}
+
+return true;
   }

   /**


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


[gwt-contrib] Re: Lose idiotic, inflexible password block. (issue779803)

2010-08-26 Thread Amit Manjhi
LGTM

On Thu, Aug 26, 2010 at 2:31 PM, rj...@google.com wrote:

 Reviewers: amitmanjhi,

 Description:
 Lose idiotic, inflexible password block.


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

 Affected files:
  M user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java


 Index:
 user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java
 ===
 --- user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java
 (revision 8652)
 +++ user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java
 (working copy)
 @@ -121,17 +121,7 @@

   public static final String RELATED = related;

 -  public static final SetString BLACK_LIST = initBlackList();
 -
   private static final Logger log =
 Logger.getLogger(JsonRequestProcessor.class.getName());
 -
 -  public static SetString initBlackList() {
 -SetString blackList = new HashSetString();
 -for (String str : new String[] {password}) {
 -  blackList.add(str);
 -}
 -return Collections.unmodifiableSet(blackList);
 -  }

   private RequestProperty propertyRefs;

 @@ -1047,9 +1037,9 @@
   RequestProperty propertyContext) {
 if (Record.class.isAssignableFrom(p.getType())) {
   return propertyContext.hasProperty(p.getName());
 -} else {
 -  return !BLACK_LIST.contains(p.getName());
 -}
 +}
 +
 +return true;
   }

   /**




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

[gwt-contrib] Adding RTL support to Cell Widgets. CellBrowser opens from the right in RTL mode. CellTree open... (issue783802)

2010-08-26 Thread jlabanca

Reviewers: rjrjr_gooogle.com,

Description:
Adding RTL support to Cell Widgets. CellBrowser opens from the right in
RTL mode.  CellTree open/close icons appear on the right in RTL mode.
IconCell shows the image on the right.  As part of this change, I had to
change the location of the ruler in LayoutImpl.  It used to be shifted
to the top and left out of view, but this causes unintended scrollbars
in RTL mode.  Shifting it off to the top does not affect scrollbars, but
still hides the ruler completely.

We will add bidi support to cells in a seperate pass, which will set the
direction of text based on the content being rendered.


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

Affected files:
  M  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellValidation.java
  M  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/RangeLabelPager.java

  M user/src/com/google/gwt/cell/client/IconCellDecorator.java
  M user/src/com/google/gwt/layout/client/LayoutImpl.java
  M  
user/src/com/google/gwt/user/cellview/client/CellBasedWidgetImplTrident.java

  M user/src/com/google/gwt/user/cellview/client/CellBrowser.java
  M user/src/com/google/gwt/user/cellview/client/CellTree.java
  M user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java
  M user/src/com/google/gwt/user/cellview/client/SimplePager.java


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


[gwt-contrib] [google-web-toolkit] r8655 committed - Lose idiotic, inflexible password block....

2010-08-26 Thread codesite-noreply

Revision: 8655
Author: rj...@google.com
Date: Thu Aug 26 12:58:56 2010
Log: Lose idiotic, inflexible password block.

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

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

Modified:
  
/trunk/user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java


===
---  
/trunk/user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java	 
Wed Aug 25 17:41:41 2010
+++  
/trunk/user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java	 
Thu Aug 26 12:58:56 2010

@@ -121,18 +121,8 @@

   public static final String RELATED = related;

-  public static final SetString BLACK_LIST = initBlackList();
-
   private static final Logger log =  
Logger.getLogger(JsonRequestProcessor.class.getName());


-  public static SetString initBlackList() {
-SetString blackList = new HashSetString();
-for (String str : new String[] {password}) {
-  blackList.add(str);
-}
-return Collections.unmodifiableSet(blackList);
-  }
-
   private RequestProperty propertyRefs;

   private MapString, JSONObject relatedObjects = new HashMapString,  
JSONObject();

@@ -1047,9 +1037,9 @@
   RequestProperty propertyContext) {
 if (Record.class.isAssignableFrom(p.getType())) {
   return propertyContext.hasProperty(p.getName());
-} else {
-  return !BLACK_LIST.contains(p.getName());
-}
+}
+
+return true;
   }

   /**

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


[gwt-contrib] Re: CurrencyList now uses pure Java in dev mode. (issue771803)

2010-08-26 Thread scottb


http://gwt-code-reviews.appspot.com/771803/diff/1/2
File user/src/com/google/gwt/i18n/client/CurrencyList.java (right):

http://gwt-code-reviews.appspot.com/771803/diff/1/2#newcode209
user/src/com/google/gwt/i18n/client/CurrencyList.java:209: return new
CurrencyDataImpl(USD, $, 2, US$);
Meh, alright.

http://gwt-code-reviews.appspot.com/771803/diff/1/4
File user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java
(right):

http://gwt-code-reviews.appspot.com/771803/diff/1/4#newcode196
user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java:196:
buf.append(new CurrencyDataImpl(\).append(quote(code)).append(\,
\);
Lemme do that in a follow-up CL.  For now, I'll create a
CurrencyDataJava that subclasses DefaultCurrencyData, and then I'll do
another one that merges the two.

http://gwt-code-reviews.appspot.com/771803/diff/1/4#newcode405
user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java:405:
writer.println(protected CurrencyDataImpl getDefaultJava() {);
On 2010/08/25 23:40:32, jat wrote:

The return type should just be CurrencyData.


Done.

http://gwt-code-reviews.appspot.com/771803/diff/1/4#newcode456
user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java:456:
writer.println(protected CurrencyDataImpl getDefaultJava() {);
On 2010/08/25 23:40:32, jat wrote:

Return CurrencyData instead.


Done.

http://gwt-code-reviews.appspot.com/771803/diff/1/4#newcode680
user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java:680: //
TODO(jat): only emit new data where it differs from superclass!
Not true.  For example, the first dozen lines of:

CurrencyList_.loadCurrencyMapJava()
CurrencyList_en.loadCurrencyMapJava()
CurrencyList_en_au.loadCurrencyMapJava()

are all identical.  Same is true for names map in en vs. en_au.

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

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


[gwt-contrib] RR: design doc for ValueStore and Events

2010-08-26 Thread Amit Manjhi
https://wave.google.com/wave/#restored:search,restored:wave:googlewave.com%252Fw%252Bywx8dL_XC

The wave linked above describes how ValueStore and firing of data events
(creates, updates, and deletes) will work in GWT 2.1. It should be world
readable, and editable by everyone in Google-Web-Toolkit-Contributors. (I
just started a new wave with everyone on the RequestFactory design doc
wave.) Please provide feedback via separate blips, rather than editing the
main text directly.

Regards,
Amit

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

[gwt-contrib] Re: Initial support for round-trip edits in the DynaTableRF sample. (issue767801)

2010-08-26 Thread bobv

Ready for another look.

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

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


Re: [gwt-contrib] Re: RR: allow CheckBox to accept null?

2010-08-26 Thread Ray Ryan
Andrew, how would this be?

CheckBox cb = new CheckBox();

cb.setValue(null);
assertFalse(cb.getValue());

rjrjr


On Thu, Aug 26, 2010 at 5:57 PM, Andrew Pietsch andrew.piet...@gmail.comwrote:

 I personally would like to see it support null, not because null is a
 valid UI state but just to be consistent with all the other widgets.
 As far as pectin is concerned the bindings always created before the
 real value arrives so wigets are aften set to null. I've tried to
 avoid wiget specific logic in the core bindings as much as possible
 (it's a slippery slope to ugliness) and CheckBox is the odd one out.
 As a somewhat silly thought would a marker interface be an option i.e.
 perhaps something like `CheckBox implements HasValue, BarfsOnNull` so
 there's at least a mechanism to find out?

 On Aug 26, 6:00 pm, Johan Rydberg johan.rydb...@edgeware.tv wrote:
  On 8/25/10 6:16 PM, Ray Ryan wrote: The use case is dealing with boolean
 values that may benull, and
   really a check box is just the wrong UI there. Withdrawn.
 
  I know of at least one data binding framework, gwt-pectin, that signals
  no value usingnull. As a work-around gwt-pectin has it's ownCheckBox
  impl that acceptsnull.
 
  Take this example; We have a master-detail interface.  aCheckBoxhas
  been bound to selectedElement.male.  If there is not a selected
  element, a no value signal should be sent down through data binding,
  not False. Right?
 
  But then again, there's really no way to communicate something like a
  placeholder value for acheckbox.  But I still
 thinkCheckBoxshouldacceptnull, for the interface to be consistent.

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


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

[gwt-contrib] Re: Removed Object.typeId from generated class prototypes, and from the compilation and linkage phas... (issue751803)

2010-08-26 Thread scottb

Mostly looks good, just some style/simplicity comments on JProgram.

Thanks for the cleanups I noticed you did along the way.


http://gwt-code-reviews.appspot.com/751803/diff/1/4
File dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java (right):

http://gwt-code-reviews.appspot.com/751803/diff/1/4#newcode781
dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java:781: return
returnMap;
This whole setup seems kind of unnecessarily complicated to me.  How
about we just do this?

1) Final auto-initialize castableTypeMaps.

2) The init method just does a Map.putAll().

3) You're not allowed to share the same expression node in different
places in the tree anyway, so just do something like this:

JsonObject result = castableTypeMaps.get(referenceType);
if (result == null) {
  // auto-init to a null entry
  result = new JsonObject(...);
  castableTypeMaps.put(referenceType, result);
}
return result;

Then you don't have to do any squirrelly null key stuff.  Also, this
should be an IdentityHashMap.

http://gwt-code-reviews.appspot.com/751803/diff/1/6
File dev/core/src/com/google/gwt/dev/jjs/impl/CastNormalizer.java
(right):

http://gwt-code-reviews.appspot.com/751803/diff/1/6#newcode73
dev/core/src/com/google/gwt/dev/jjs/impl/CastNormalizer.java:73: new
HashMapJReferenceType, JsonObject();
IdentityHashMap

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

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


[gwt-contrib] Rudimentary exception handling. (issue803801)

2010-08-26 Thread rjrjr

Reviewers: cromwellian,

Description:
Rudimentary exception handling.


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

Affected files:
  M user/src/com/google/gwt/requestfactory/client/impl/AbstractRequest.java
  M user/src/com/google/gwt/requestfactory/client/impl/RecordJsoImpl.java
  M user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java
  M user/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java
  A  
user/src/com/google/gwt/requestfactory/server/RequestProcessingException.java

  M user/src/com/google/gwt/requestfactory/server/RequestProcessor.java


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


[gwt-contrib] Re: Rudimentary exception handling. (issue803801)

2010-08-26 Thread Ray Ryan
This is to be coupled with a simple UncaughtExceptionHandler in the entry
point:

GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {
  public void onUncaughtException(Throwable e) {
Window.alert(Error:  + e.getMessage());
placeController.goTo(Place.NOWHERE);
  }
});

This is not intended to be the final story on exception handling, just an
improvement over the complete lack of handling we have right now.

On Thu, Aug 26, 2010 at 6:10 PM, rj...@google.com wrote:

 Reviewers: cromwellian,

 Description:
 Rudimentary exception handling.


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

 Affected files:
  M user/src/com/google/gwt/requestfactory/client/impl/AbstractRequest.java
  M user/src/com/google/gwt/requestfactory/client/impl/RecordJsoImpl.java
  M user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java
  M user/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java
  A
 user/src/com/google/gwt/requestfactory/server/RequestProcessingException.java
  M user/src/com/google/gwt/requestfactory/server/RequestProcessor.java




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

[gwt-contrib] Re: Adding RTL support to Cell Widgets. CellBrowser opens from the right in RTL mode. CellTree open... (issue783802)

2010-08-26 Thread rjrjr

LGTM, presuming the following is cleared up

The RTL changes look good. Saw a few unrelated changes too, though. Were
they on purpose? Bad diff, maybe?


http://gwt-code-reviews.appspot.com/783802/diff/1/6
File
user/src/com/google/gwt/user/cellview/client/CellBasedWidgetImplTrident.java
(right):

http://gwt-code-reviews.appspot.com/783802/diff/1/6#newcode101
user/src/com/google/gwt/user/cellview/client/CellBasedWidgetImplTrident.java:101:
* Get the value of an element that has a value or checked state.
Are you sure this class belongs in this patch?

http://gwt-code-reviews.appspot.com/783802/diff/1/8
File user/src/com/google/gwt/user/cellview/client/CellTree.java (right):

http://gwt-code-reviews.appspot.com/783802/diff/1/8#newcode588
user/src/com/google/gwt/user/cellview/client/CellTree.java:588: } else
if (mouseup.equals(eventType)) {
This change here on purpose?

http://gwt-code-reviews.appspot.com/783802/diff/1/9
File user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java
(right):

http://gwt-code-reviews.appspot.com/783802/diff/1/9#newcode1140
user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java:1140:
Element child = parent.getFirstChildElement();
Another surprise. Starting to think trunk has moved out from under you.

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

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


  1   2   >