Re: font-size: does not work for GWT button and flextable

2011-06-25 Thread Ashwin Desikan
if you are using UI-Binder , you can either your the styleName or 
addStyleNames property. for example

UiBinder

/UiBinder


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



Re: font-size: does not work for GWT button and flextable

2011-06-25 Thread Ashwin Desikan
Sorry, hit enter too fast. 

here is the example for a custom button with specific font and colors

UiBinder
style
.btn {
  color: #FF0080;
padding-left: 10px;
padding-right: 10px;
padding-top: 5px;
padding-bottom: 5px;
font-size: 12px;
font-family: Gothic,sans-serif;
font-weight: bold;
text-align: left;
text-shadow: aqua;
background: none;
border : 1px solid #dbe9fb;
cursor: pointer;
}
/style
g:Button styleName={style.btn} ui:field=testTest/g:Button
/UiBinder

one disadvantage with this approach would your button would appear the same 
when its enabled or disabled. If you have a need to display differently then 
you would have to update your CSS for those properties. Check out the GWT 
Button class and it would you the details about the CSS properties you can 
override

Thanks
Ashwin

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



Re: custom event + event bubbling

2011-06-25 Thread Ashwin Desikan
what sort of events are you looking to capture? You can create custom events 
and register those events with the eventBus. When ever that event occurs all 
handlers would receive a notification and you can take necessary action.

Thanks
Ashwin

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



Re: GWT integration to the cloud

2011-06-25 Thread Aza Tek
It seems that most folks want to use GWT RequestFactory and Activities 
Places without code generation, so we've chosen to prioritize effort around
making that easier...
It's not clear to me why we can't push for both:
1. Use Roo to generate and MANAGE boilerplate code (Roo allows you chop and
change your code).
2. Make it easier to write gwt code.
Am I missing something?
Thx

On Fri, Jun 24, 2011 at 3:11 PM, David Chandler drfibona...@google.comwrote:

 We've seen very little interest in GWT-Roo integration on this forum. It
 seems that most folks want to use GWT RequestFactory and Activities  Places
 without code generation, so we've chosen to prioritize effort around making
 that easier (for example, ServiceLocators and issues 5807, 6234 make it
 possible to inherit generic service methods vs. generate them).

 Technically, GWT-Roo integration is structured as a Roo add-on so Spring
 needs to be at least involved in any further work.

 Are you just wanting to kick the tires or have you already adopted Roo and
 have a really strong use case for GWT integration also?

 /dmc

 On Fri, Jun 24, 2011 at 6:19 AM, Aza Tek azat...@gmail.com wrote:

 Wonderful, wonderful question Amit. I'm all ears for a genuine answer on
 this one (NOT the usual This is a springsource-team problem, when it's
 clearly so important to GWT).

 Thanks


 On Fri, Jun 24, 2011 at 11:53 AM, Amit a.b.kleinm...@gmail.com wrote:

 On Google I/O 2010, the VMware- Spring Roo tool was demonstrated. It
 shows how one can quickly build a simple GWT application, where Roo
 got only small and simple input and generated the entire code. A year
 later, in one of the sessions of Google I/O 2011, a question was asked
 regarding the collaboration of Google with VMware and the future of
 Roo and its GWT plugin, however this time no real answer was given.
 I wonder what is the status of Roo and the GWT plug-in from your eyes,
 is it going to be a tool ready for production (for real applications
 rather than demo only).
 Also what is the reccomended way for integration of GWT with the cloud
 for an entrprise application - e.g., is there any intention to provide
 integration with the VMware spring V-Fabric products?
 What is the future of GAE in that sense given the following report
 http://gigaom.com/cloud/can-google-app-engine-compete-in-the-enterprise

 Waiting for your comments,

 Amit Kleinmann

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


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




 --
 David Chandler
 Developer Programs Engineer, Google Web Toolkit
 w: http://code.google.com/
 b: http://googlewebtoolkit.blogspot.com/
 t: @googledevtools

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


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



GWT - Tomcat 7 - Java JRE 6u26 - Windows 7 Deploy problem

2011-06-25 Thread Matej Jelovcan
Hi guys.

While I wait for the response from Sun/Oracle, I hope you won't mind too
much that I also ask you about the problem I am having. It is this:

SEVERE: Allocate exception for servlet ZPortalService
java.lang.NullPointerException
at sun.awt.shell.Win32ShellFolder2$1.call(Unknown Source)
at sun.awt.shell.Win32ShellFolder2$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)

I copied this from tomcats localhost log. As a result, ZPOrtalService is not
available, naturally. My setup where I was testing this was:
- Clean Windows 7 Ultimate (fresh install)
- java jdk-6u26-windows-i586
- apache-tomcat-7.0.16

The problem is that the same war package is deploying and working
perfectly fine on above mention setup with the difference of the OS - there
I am running Windows XP SP3.

No idea what might be going on and if anyone has come across this problem,
I'm all ears for the possible solution :)

Thank you!

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



Mac terminal, getting a Permission Denied for webAppCreator

2011-06-25 Thread Bob
In Mac terminal, i am getting a Permission Denied when I try to run 
webAppCreator (part of Google Web Tool Kit).  This is used to create starter 
applications for tutorials.  I am accessing the correct file in the correct 
folder.

Any ideas?

Thanks!

Bob

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



How to add JUnit testing to an existing project in eclipse.

2011-06-25 Thread Bob
When you create a new GWT web project in eclipse, and generate starting code 
automatically, it does not generate JUnit testing code to be able to add 
test cases.  How do you add this?

I have been trying to get this done with webAppCreator, but always get 
permission denied.

Any ideas?

thanks
bob

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



[i18n] Changed handling of quotes in GWT localizable resources?

2011-06-25 Thread googelybear
Hi,

I am developing a multi locale app and as described in many posts
(e.g. [1] or [2]) so far I have always put 2 quotes when I wanted a
single quote to appear in the output in my language properties files
(e.g. that''s right will become that's right). This was very
annoying for translators and often got forgotten, meaning I had to fix
it manually. But it worked.

Now I received a bug report from the client stating that all quotes
are printed twice on the website (which turned out to be true).

I will now go back and replace all the double quotes with single
quotes again.

I don't know in which version of GWT that changed (I suspect 2.2 or
2.3).

Did others also experience the same issue? If so, why have we not been
warned about this change by the GWT team? If not, do you have any idea
what could have caused this?

thanks,
Den

[1] 
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/4be5f74a13c080d3/
[2] 
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/cc4be2121791faa6/

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



Re: Regular expression email validation in GWT

2011-06-25 Thread Piro
I had problems with validation framework so i changed it to gwt-vl
http://gwt-vl.sourceforge.net/
You can try it too. It is perfect framework, but it works. It is not
using annotations so it is more verbose.
More about email regex: http://www.regular-expressions.info/email.html

On 24. Jún, 07:37 h., creativepragmatic creativepragma...@gmail.com
wrote:
 Hello,

 I am trying to validate a form using gwt-validation but have not been
 having any success validating the email field of a POJO.  The field is
 annotated as follows:

         @NotNull
         @Pattern(regexp = .+@.+\\.[a-z]+)
         private String email;

 Whenever Pattern is annotated to the above code, it fails after the
 following line that I modeled after Gwt_validation_sample:

         SetConstraintViolationEmail violations =
 validator.validate(email);

 I have added the following JARs to the classpath:

         dom4j-1.6.1
         freemarker-gae-2.3.18
         guava-r09
         gwt-validation-2.0-preview-r199
         javassist
         reflections-0.9.5-RC2
         reflections-0.9.5-RC2.one
         slf4j-api-1.6.1
         validation-api-1.0.0.GA-sources
         validation-api-1.0.0.GA

 I am not sure if they are all required.

 Thank you in advance for any help,

 Orville

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



Re: how can i get the proxy that i edited using driver.edit?

2011-06-25 Thread Elhanan Maayan
yea, but that means i can ever use driver.edit without using request.edit
first, and driver.edit already does request.edit

On Fri, Jun 24, 2011 at 8:41 PM, isern juanis...@gmail.com wrote:

 Just an idea, I'd try this:

 proxy = request.edit(proxy);

 driver.edit(proxy);

 If I got RF right, the edited reference should be the same as the one
 request.edit() returns, as it is already bound to that context.

 Greetings!

 On Jun 24, 1:20 pm, Elhanan elh.mailg...@gmail.com wrote:
  i know the it's not the same proxy i sent in..
 
  and i know i need to send to a persist method i created in a
  requestContext.
 
  so do i need to use the onProxyChangeEvent?

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



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



Re: FireFox 5.0

2011-06-25 Thread kfer38
FF5 has been out for many days now and there's still 
no gwt plugin for it so I'm still using ff4. I tried switching to chrome 
but had many difficulties using it. I get errors in eclipse, and 
my project causes chrome to always display unresponsive script... 
kill process or wait message which gets annoying. One question
 I have is,how to you change the default browser on 
eclipse and speedtracer plugin?


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



Re: FireFox 5.0

2011-06-25 Thread Filipe Sousa
I compiled the plugin for Fedora 15 x86_64 bit and it works for me.

http://dl.dropbox.com/u/5176435/Fedora/15/gwt-dev-plugin.xpi

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



Facebook like Chat App with GWT

2011-06-25 Thread gangurg gangurg
I am trying to implement a Facebook style Chat APP . I use JBOSS as my APP
server . Can anyone share thoughts on how do I go about .
I have GWT for my client .

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



Re: custom event + event bubbling

2011-06-25 Thread isern
I come from the Flex/JS/Tapestry worlds and a technique commonly used
is to attach listeners to certain events expecting they'll will go up
like a bubble through the component hierarchy. Actually if I'm not
wrong this kind of behavior also occurs with native hardware events in
GWT.

A typical example is the Accept/Cancel widget. It's a widget because
it's repeated all over the application.

To reduce coupling to a minimum, I'd like to listen to the events
accept and cancel on the current widget (that contains accept/
cancel directly or indirectly), being aware that if users click
accept the event will be caught and what you do depends on that
context (UI structure)

The EventBus is okay, but it doesn't seem to take into account this
component hierarchy, all the event handlers are notified without
discrimination.

I've managed, however, to create a BubbledEvent/BubbledEventHandler
that only is dispatched if the current listener (a visual widget) is a
parent of that which triggered it.

I hope I was clear,

Best regards, Juan

On Jun 25, 3:34 am, Ashwin Desikan ashwin.desi...@gmail.com wrote:
 what sort of events are you looking to capture? You can create custom events
 and register those events with the eventBus. When ever that event occurs all
 handlers would receive a notification and you can take necessary action.

 Thanks
 Ashwin

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



MessagesWithLookup gives deferred binding error

2011-06-25 Thread Frank Mena
I have a messages interface that extends Messages.java and works
fine.  When I switch to extending to MessagesWithLookup.java instead,
I get the error message:

Deferred binding result type 'com.mycompany.MyMessages' should not be
abstract

I cannot figure out why this is happening.  Why is this happening?

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



Re: MessagesWithLookup gives deferred binding error

2011-06-25 Thread Frank Mena
OK, my bad.  I imported a class from another package that I thought
was GWT.


On Jun 25, 5:46 pm, Frank Mena frank.m...@gmail.com wrote:
 I have a messages interface that extends Messages.java and works
 fine.  When I switch to extending to MessagesWithLookup.java instead,
 I get the error message:

 Deferred binding result type 'com.mycompany.MyMessages' should not be
 abstract

 I cannot figure out why this is happening.  Why is this happening?

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



Re: Disable/Enable CSS obfuscating in gwt.xml ?

2011-06-25 Thread karthik reddy
Not to revive a old thread but wanted to add some relevant info to the 
discussion. In the case of set-configuration-property 
name=CssResource.style value=pretty/,   the code that generates 
the aforementioned  very  long class names is present in the 
computeObfuscatedNames  method 
of com.google.gwt.resources.rg.CssResourceGenerator  class:

   if (prettyOutput) {
  obfuscatedClassName += -
  + type.getQualifiedSourceName().replaceAll([.$], -) + -
  + name;
}

Retaining the original class names is a very useful tool while development. 
(obfuscation is ideal for only production)
Unfortunately, you can not override the above method which means we are 
stuck with these long names. I wish there was a way to have GWT just retain 
the class names as they are.  (using @external for each and every class is 
cumbersome and cant be used for styles within widgets)

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



GWT Unit Test code doesn't work for me

2011-06-25 Thread Tom Fishman
I downloaded the sample code from http://code.google.com/webtoolkit/
articles/mvp-architecture-2.html, ( http://code.google.com/p/google-
web-toolkit/downloads/detail?name=Tutorial-Contacts2.zip). I got the
following errors and warnings in eclipse:


Description ResourcePathLocationType
Cannot instantiate the type ContactsViewExampleGWTTest.java 
/Contacts/
test/com/google/gwt/sample/contacts/testline 27 Java Problem
ContactsPresenter.Display cannot be resolved to a type
ExampleGWTTest.java /Contacts/test/com/google/gwt/sample/contacts/test
line 18 Java Problem
ContactsPresenter.Display cannot be resolved to a type
ExampleJRETest.java /Contacts/test/com/google/gwt/sample/contacts/test
line 17 Java Problem
ContactsPresenter.Display cannot be resolved to a type
ExampleJRETest.java /Contacts/test/com/google/gwt/sample/contacts/test
line 22 Java Problem
display cannot be resolved to a variableExampleGWTTest.java 
/Contacts/
test/com/google/gwt/sample/contacts/testline 27 Java Problem
display cannot be resolved to a variableExampleGWTTest.java 
/Contacts/
test/com/google/gwt/sample/contacts/testline 28 Java Problem
mockDisplay cannot be resolved to a variableExampleJRETest.java /
Contacts/test/com/google/gwt/sample/contacts/test   line 22 Java Problem
mockDisplay cannot be resolved to a variableExampleJRETest.java /
Contacts/test/com/google/gwt/sample/contacts/test   line 23 Java Problem
AsyncCallback is a raw type. References to generic type
AsyncCallbackT should be parameterizedExampleJRETest.java 
/Contacts/
test/com/google/gwt/sample/contacts/test/jreline 51 Java Problem
AsyncCallback is a raw type. References to generic type
AsyncCallbackT should be parameterizedExampleJRETest.java 
/Contacts/
test/com/google/gwt/sample/contacts/test/jreline 52 Java Problem
ContactsView is a raw type. References to generic type ContactsViewT
should be parameterized ExampleGWTTest.java /Contacts/test/com/google/
gwt/sample/contacts/testline 27 Java Problem
ContactsViewImpl is a raw type. References to generic type
ContactsViewImplT should be parameterized ContactsViewImpl.java   /
Contacts/src/com/google/gwt/sample/contacts/client/view line 36 Java
Problem
IAnswer is a raw type. References to generic type IAnswerT should be
parameterized   ExampleJRETest.java /Contacts/test/com/google/gwt/sample/
contacts/test/jre   line 48 Java Problem
The file war\WEB-INF\lib\gwt-servlet.jar has a different size than GWT
SDK library gwt-servlet.jar; perhaps it is a different version? gwt-
servlet.jar /Contacts/war/WEB-INF/lib   Unknown Google Web Toolkit
Problem
The following classpath entry 'C:\MyGAE2\Contacts\lib
\easymock-2.5.2.jar' will not be available on the server's classpath
ContactsUnknown Google Web App Problem
The import com.google.gwt.dom.client.NodeList is never used
ContactsViewImpl.java   /Contacts/src/com/google/gwt/sample/contacts/
client/view line 15 Java Problem
The import com.google.gwt.sample.contacts.client.common.SelectionModel
is never used   ContactsViewImpl.java   /Contacts/src/com/google/gwt/
sample/contacts/client/view line 6  Java Problem
The import com.google.gwt.user.client.DOM is never used
ContactsViewImpl.java   /Contacts/src/com/google/gwt/sample/contacts/
client/view line 20 Java Problem
The import com.google.gwt.user.client.rpc.IsSerializable is never used
ContactDetails.java /Contacts/src/com/google/gwt/sample/contacts/
shared  line 4  Java Problem
The import com.google.gwt.user.client.ui.CheckBox is never used
ContactsViewImpl.java   /Contacts/src/com/google/gwt/sample/contacts/
client/view line 24 Java Problem
The import com.google.gwt.user.client.ui.HTMLTable is never used
ContactsViewImpl.java   /Contacts/src/com/google/gwt/sample/contacts/
client/view line 27 Java Problem
The import com.google.gwt.user.client.Window is never used
ContactsViewImpl.java   /Contacts/src/com/google/gwt/sample/contacts/
client/view line 22 Java Problem
The import java.util.ArrayList is never usedContactsViewImpl.java   /
Contacts/src/com/google/gwt/sample/contacts/client/view line 30 Java
Problem
The import java.util.ArrayList is never usedWallMainView.java   /Rebest/
src/rebest/client/wall/view line 4  Java Problem
The import java.util.List is never used WallMainView.java   /Rebest/src/
rebest/client/wall/view line 3  Java Problem
The import rebest.client.wall.model.WallGroup is never used
WallMainView.java   /Rebest/src/rebest/client/wall/view line 6  Java
Problem
The serializable class Address does not declare a static final
serialVersionUID field of type long Address.java/Contacts/src/com/
google/gwt/sample/contacts/shared   line 5  Java Problem

My feeling is the test code cannot access the source code.

My dev environment:

OS: Windows 7
Eclipse: 

Re: How to parse the response of GWT app?

2011-06-25 Thread Qi Peng
hi David,

I want to get your help.

I want to know how to parse the response data(like bellow) of GWT app.

Sample data:

//OK[41,40,0,2,39,38,37,0,36,0,4,1,4,35,19,1,3,34,19,18,1,17,1,-17,33,0,710,1,0,4,0,28,12,11,0,32,31,8,7,30,19,18,1,17,1,2,16,29,0,700,1,0,4,1,28,12,11,0,27,26,8,7,25,19,18,1,17,1,-8,24,0,500,1,150,23,1,22,12,11,0,22,21,8,7,20,19,18,1,17,1,1,16,15,0,410,1,150,14,1,13,12,11,0,10,9,8,7,4,3,1,6,5,0,4,0,0,0,3,2,1,[gov.egov.erule.regs.shared.action.LoadDocumentDetailResult/3665673162,gov.egov.erule.regs.shared.models.DocumentDetailModel/1210760895,java.util.ArrayList/3821976829,,FDA-2010-P-0532,gov.egov.erule.regs.shared.models.DocketType/1323825229,gov.egov.erule.regs.shared.models.MetadataValueModel/1270413309,gov.egov.erule.regs.shared.models.MetadataModel/1441296737,Document
Subtype,doc_sub_type,SUPPORTING  RELATED
MATERIALS,1,doc_type,dk_subType_v,Used to further define the type of
document,gov.egov.erule.regs.shared.models.MetadataModel$UiControlType/4187881057,com.extjs.gxt.ui.client.data.RpcMap/3441186752,value,java.lang.String/2004016611,CP-Citizen
Petition (Supporting  Related
Materials),Status,doc_status,doc_status_v,The current status of the
document,Posted,Received Date,receive_date,doc_primary_dates,The
date the agency received or created the document,October 04 2010, at 12:00
AM Eastern Daylight Time ,Date Posted,fr_publish_date,Date the
document is posted to Regulations.gov,November 10 2010, at 12:00 AM
Eastern Standard Time
,pdf,[Ljava.lang.String;/2600011424,FDA,FDA-2010-P-0532-0005,gov.egov.erule.regs.shared.models.DocumentType/2460330259,096480b68632,Attachment
4 - \Information Regarding Cigarettes with Characterizing Flavors Form
3734\ - [BBK Tobacco  Foods, LLP, (Levin Ginsburg Attorneys at Law) -
Citizen Petition] ],0,7]

Can you tell me how to deserialize the data?

I want to scrape some information from it, e.g. Status (in this case,
shoule be Posted).

Thanks a lot.

From Qi

On Sat, Jun 25, 2011 at 2:06 AM, David Chandler drfibona...@google.comwrote:

 Sure, for a percentage of the settlement.

 /dmc


 On Fri, Jun 24, 2011 at 4:44 AM, redice redicem...@gmail.com wrote:

 I want to parse the response of GWT app like following:

 //

 OK[41,40,0,2,39,38,37,0,36,0,4,1,4,35,19,1,3,34,19,18,1,17,1,-17,33,0,710,1,0,4,0,28,12,11,0,32,31,8,7,30,19,18,1,17,1,2,16,29,0,700,1,0,4,1,28,12,11,0,27,26,8,7,25,19,18,1,17,1,-8,24,0,500,1,150,23,1,22,12,11,0,22,21,8,7,20,19,18,1,17,1,1,16,15,0,410,1,150,14,1,13,12,11,0,10,9,8,7,4,3,1,6,5,0,4,0,0,0,3,2,1,
 [gov.egov.erule.regs.shared.action.LoadDocumentDetailResult/
 3665673162,gov.egov.erule.regs.shared.models.DocumentDetailModel/
 1210760895,java.util.ArrayList/3821976829,,FDA-2010-
 P-0532,gov.egov.erule.regs.shared.models.DocketType/
 1323825229,gov.egov.erule.regs.shared.models.MetadataValueModel/
 1270413309,gov.egov.erule.regs.shared.models.MetadataModel/
 1441296737,Document Subtype,doc_sub_type,SUPPORTING  RELATED
 MATERIALS,1,doc_type,dk_subType_v,Used to further define the
 type of document,gov.egov.erule.regs.shared.models.MetadataModel
 $UiControlType/4187881057,com.extjs.gxt.ui.client.data.RpcMap/
 3441186752,value,java.lang.String/2004016611,CP-Citizen Petition
 (Supporting  Related
 Materials),Status,doc_status,doc_status_v,The current status
 of the document,Posted,Received
 Date,receive_date,doc_primary_dates,The date the agency received
 or created the document,October 04 2010, at 12:00 AM Eastern
 Daylight Time ,Date Posted,fr_publish_date,Date the document is
 posted to Regulations.gov,November 10 2010, at 12:00 AM Eastern
 Standard Time ,pdf,[Ljava.lang.String;/2600011424,FDA,FDA-2010-
 P-0532-0005,gov.egov.erule.regs.shared.models.DocumentType/
 2460330259,096480b68632,Attachment 4 - \Information Regarding
 Cigarettes with Characterizing Flavors Form 3734\ - [BBK Tobacco 
 Foods, LLP, (Levin Ginsburg Attorneys at Law) - Citizen Petition] ],
 0,7]


 Can you help me?

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




 --
 David Chandler
 Developer Programs Engineer, Google Web Toolkit
 w: http://code.google.com/
 b: http://googlewebtoolkit.blogspot.com/
 t: @googledevtools

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


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

Re: custom event + event bubbling

2011-06-25 Thread ashwin.desi...@gmail.com
for listening on events on your widget you can define UiHandler or Attach /
Add handlers

for example, if you have a button defined in your UIBinder

g:Button ui:field = 'button1'Hello/g:Button

now if you want to listen on click event of this button, you can do either
of these two operations

@UiHandler(button1)
public void OnButton1Click(ClickEvent event) {
 ///do what ever you want on button click
}

when you are not using a UiBinder you can define

button1.addClickHandler(new ClickHandler() {
 @Override
public void onClick(ClickEvent arg0) {
//do your opertaions
}
})


hope this is clear.

Thanks
Ashwin

On Sun, Jun 26, 2011 at 4:40 AM, isern juanis...@gmail.com wrote:

 I come from the Flex/JS/Tapestry worlds and a technique commonly used
 is to attach listeners to certain events expecting they'll will go up
 like a bubble through the component hierarchy. Actually if I'm not
 wrong this kind of behavior also occurs with native hardware events in
 GWT.

 A typical example is the Accept/Cancel widget. It's a widget because
 it's repeated all over the application.

 To reduce coupling to a minimum, I'd like to listen to the events
 accept and cancel on the current widget (that contains accept/
 cancel directly or indirectly), being aware that if users click
 accept the event will be caught and what you do depends on that
 context (UI structure)

 The EventBus is okay, but it doesn't seem to take into account this
 component hierarchy, all the event handlers are notified without
 discrimination.

 I've managed, however, to create a BubbledEvent/BubbledEventHandler
 that only is dispatched if the current listener (a visual widget) is a
 parent of that which triggered it.

 I hope I was clear,

 Best regards, Juan

 On Jun 25, 3:34 am, Ashwin Desikan ashwin.desi...@gmail.com wrote:
  what sort of events are you looking to capture? You can create custom
 events
  and register those events with the eventBus. When ever that event occurs
 all
  handlers would receive a notification and you can take necessary action.
 
  Thanks
  Ashwin

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



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



[gwt-contrib] Re: Enable generator result caching, by default. (issue1467808)

2011-06-25 Thread zundel


http://gwt-code-reviews.appspot.com/1467808/diff/1/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerEnableGeneratorResultCaching.java
File
dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerEnableGeneratorResultCaching.java
(right):

http://gwt-code-reviews.appspot.com/1467808/diff/1/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerEnableGeneratorResultCaching.java#newcode48
dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerEnableGeneratorResultCaching.java:48:
public boolean setFlag() {
Is there some way we can log an ugly advisory warning that this flag has
no effect so people will actually remove it?

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

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


[gwt-contrib] Re: Enable generator result caching, by default. (issue1467808)

2011-06-25 Thread jbrosenberg


http://gwt-code-reviews.appspot.com/1467808/diff/1/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerEnableGeneratorResultCaching.java
File
dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerEnableGeneratorResultCaching.java
(right):

http://gwt-code-reviews.appspot.com/1467808/diff/1/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerEnableGeneratorResultCaching.java#newcode48
dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerEnableGeneratorResultCaching.java:48:
public boolean setFlag() {
Well, I looked into that.  Since there's no logger passed into this
class, it's kinda difficult for it to generate warning output.

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

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


[gwt-contrib] Re: Bug triggered in SourceFileCompilationUnit.asCachedCompilation() (issue1461803)

2011-06-25 Thread jbrosenberg


http://gwt-code-reviews.appspot.com/1461803/diff/4003/dev/core/src/com/google/gwt/dev/javac/SourceFileCompilationUnit.java
File
dev/core/src/com/google/gwt/dev/javac/SourceFileCompilationUnit.java
(right):

http://gwt-code-reviews.appspot.com/1461803/diff/4003/dev/core/src/com/google/gwt/dev/javac/SourceFileCompilationUnit.java#newcode60
dev/core/src/com/google/gwt/dev/javac/SourceFileCompilationUnit.java:60:
if (sourceToken  0) {
I think 'in' can end up being null, without an exception being thrown
(e.g. in File/ZipResource.openConnection(), it catch any IOException and
return null).  Shouldn't this handle that possibility a bit more
gracefully?  The assert for (in != null) in transferFromStream would
seemingly blow up in that case

http://gwt-code-reviews.appspot.com/1461803/diff/4003/dev/core/src/com/google/gwt/dev/util/DiskCache.java
File dev/core/src/com/google/gwt/dev/util/DiskCache.java (right):

http://gwt-code-reviews.appspot.com/1461803/diff/4003/dev/core/src/com/google/gwt/dev/util/DiskCache.java#newcode139
dev/core/src/com/google/gwt/dev/util/DiskCache.java:139: * Write the
rest of the data in an input stream to disk. Note: this method
s/close the in InputStream/close the InputStream

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

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


[gwt-contrib] Re: Enable generator result caching, by default. (issue1467808)

2011-06-25 Thread zundel


http://gwt-code-reviews.appspot.com/1467808/diff/1/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerEnableGeneratorResultCaching.java
File
dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerEnableGeneratorResultCaching.java
(right):

http://gwt-code-reviews.appspot.com/1467808/diff/1/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerEnableGeneratorResultCaching.java#newcode48
dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerEnableGeneratorResultCaching.java:48:
public boolean setFlag() {
On 2011/06/25 15:59:59, jbrosenberg wrote:

Well, I looked into that.  Since there's no logger passed into this

class, it's

kinda difficult for it to generate warning output.

maybe too much work, but  You could have it change the value of the an
option from false to true, then check the option in the main body
flag... if its true, then print the warning, if its false, go on about
your business silently.

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

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


[gwt-contrib] Re: Enable generator result caching, by default. (issue1467808)

2011-06-25 Thread zundel

LGTM

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

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


[gwt-contrib] Re: Bug triggered in SourceFileCompilationUnit.asCachedCompilation() (issue1461803)

2011-06-25 Thread zundel

I've seen NPEs in other scenarios, so it seemed worth it to go ahead and
have Resource.openContents let theIOException through so it could be
logged in the most appropriate way.


http://gwt-code-reviews.appspot.com/1461803/diff/4003/dev/core/src/com/google/gwt/dev/javac/SourceFileCompilationUnit.java
File
dev/core/src/com/google/gwt/dev/javac/SourceFileCompilationUnit.java
(right):

http://gwt-code-reviews.appspot.com/1461803/diff/4003/dev/core/src/com/google/gwt/dev/javac/SourceFileCompilationUnit.java#newcode60
dev/core/src/com/google/gwt/dev/javac/SourceFileCompilationUnit.java:60:
if (sourceToken  0) {
I'm wondering why we don't just throw an exception from openContents().
Returning null is obscuring a real problem, I don't see any cases where
a caller catches the null ptr and doe something smart.  Do you know how
hard I had to work to narrow this down on a machine that didn't have a
development env?


On 2011/06/25 16:14:33, jbrosenberg wrote:

I think 'in' can end up being null, without an exception being thrown

(e.g. in

File/ZipResource.openConnection(), it catch any IOException and return

null).

Shouldn't this handle that possibility a bit more gracefully?  The

assert for

(in != null) in transferFromStream would seemingly blow up in that

case

http://gwt-code-reviews.appspot.com/1461803/diff/4003/dev/core/src/com/google/gwt/dev/util/DiskCache.java
File dev/core/src/com/google/gwt/dev/util/DiskCache.java (right):

http://gwt-code-reviews.appspot.com/1461803/diff/4003/dev/core/src/com/google/gwt/dev/util/DiskCache.java#newcode139
dev/core/src/com/google/gwt/dev/util/DiskCache.java:139: * Write the
rest of the data in an input stream to disk. Note: this method
On 2011/06/25 16:14:33, jbrosenberg wrote:

s/close the in InputStream/close the InputStream


I meant for 'in' to be the parameter name, I'll make it more clear.

http://gwt-code-reviews.appspot.com/1461803/diff/6002/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardPublicResource.java
File
dev/core/src/com/google/gwt/core/ext/linker/impl/StandardPublicResource.java
(right):

http://gwt-code-reviews.appspot.com/1461803/diff/6002/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardPublicResource.java#newcode82
dev/core/src/com/google/gwt/core/ext/linker/impl/StandardPublicResource.java:82:
public InputStream getContents(TreeLogger logger)
I looked for references to this method, and none of them were explicitly
checking for null.  They would have failed later with an NPE, hiding the
real cause.

http://gwt-code-reviews.appspot.com/1461803/diff/6002/dev/core/test/com/google/gwt/dev/resource/impl/FileResourceTest.java
File
dev/core/test/com/google/gwt/dev/resource/impl/FileResourceTest.java
(right):

http://gwt-code-reviews.appspot.com/1461803/diff/6002/dev/core/test/com/google/gwt/dev/resource/impl/FileResourceTest.java#newcode77
dev/core/test/com/google/gwt/dev/resource/impl/FileResourceTest.java:77:
try {
This is the only place in the codebase I could find where a null return
value was checked and used intentionally.

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

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


[gwt-contrib] Re: Bug triggered in SourceFileCompilationUnit.asCachedCompilation() (issue1461803)

2011-06-25 Thread jbrosenberg


http://gwt-code-reviews.appspot.com/1461803/diff/6002/dev/core/src/com/google/gwt/dev/javac/CompilationUnitBuilder.java
File dev/core/src/com/google/gwt/dev/javac/CompilationUnitBuilder.java
(right):

http://gwt-code-reviews.appspot.com/1461803/diff/6002/dev/core/src/com/google/gwt/dev/javac/CompilationUnitBuilder.java#newcode139
dev/core/src/com/google/gwt/dev/javac/CompilationUnitBuilder.java:139:
InputStream in = resource.openContents();
This Util.copy isn't needed to be inside the try catch.

http://gwt-code-reviews.appspot.com/1461803/diff/6002/dev/core/src/com/google/gwt/dev/javac/JavaSourceParser.java
File dev/core/src/com/google/gwt/dev/javac/JavaSourceParser.java
(right):

http://gwt-code-reviews.appspot.com/1461803/diff/6002/dev/core/src/com/google/gwt/dev/javac/JavaSourceParser.java#newcode294
dev/core/src/com/google/gwt/dev/javac/JavaSourceParser.java:294:
InputStream stream = classSource.openContents();
Util.readStreamAsString doesn't need to be inside try/catch

http://gwt-code-reviews.appspot.com/1461803/diff/6002/dev/core/src/com/google/gwt/dev/resource/Resource.java
File dev/core/src/com/google/gwt/dev/resource/Resource.java (right):

http://gwt-code-reviews.appspot.com/1461803/diff/6002/dev/core/src/com/google/gwt/dev/resource/Resource.java#newcode84
dev/core/src/com/google/gwt/dev/resource/Resource.java:84: /**
This comment is no longer valid, no?  It can't return null anymore.  But
it gives me pause, since it mentions the resource might be invalildated
intentionally by its containing resource.  Do we know what that's about?
 Since much of this change is to treat an IOException as a
RuntimeException, etc.  (not that the current behavior is essentially
resulting in that anyway)...

http://gwt-code-reviews.appspot.com/1461803/diff/6002/dev/core/test/com/google/gwt/dev/resource/impl/FileResourceTest.java
File
dev/core/test/com/google/gwt/dev/resource/impl/FileResourceTest.java
(right):

http://gwt-code-reviews.appspot.com/1461803/diff/6002/dev/core/test/com/google/gwt/dev/resource/impl/FileResourceTest.java#newcode75
dev/core/test/com/google/gwt/dev/resource/impl/FileResourceTest.java:75:

Not sure what this comment is supposed to be saying (and I relealize
it's not your mod).  10 Gold stars if you can disambiguate!

http://gwt-code-reviews.appspot.com/1461803/diff/6002/user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java
File user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java
(right):

http://gwt-code-reviews.appspot.com/1461803/diff/6002/user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java#newcode204
user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java:204: }
catch (IOException iex) {
This changes the behavior, from being an NPE to essentially a
UnableToCompleteException.  I assume that's ok.

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

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