Re: Send e-mail in GWT

2010-10-04 Thread Subhrajyoti Moitra
i think GWT will be an overkill for this work.
I would just use a  HTML form and submit to a PHP/Perl/Ruby script for
sending the mail out from the server.

However if u insist..

Use GWT to make the form and submit buttons..
To send the mail u have 2 options:
- Use GWT RPC, which means u require a java server. infra. tomcat/appengine.
- Use PHP/ROR/anything, including CGI, (if u are too nostalgic about this!!)
on the server, that can send mails.

:)


Cheers...
Subhro.

On Mon, Oct 4, 2010 at 12:07 PM, naveen naveenkumarnl1...@gmail.com wrote:

 Hi team,

 My requirement is to send a mail from my website.

 i will elaborate the requirement. I have my own website, which is in
 simple html now. Am planning to develop my website using gwt. There is
 a contact us page in the website where a user can mail an enquiry to
 us. the form is like below.

 Name: Sender
 E-mail:sen...@abc.com e-mail%3asen...@abc.com

 Message:

  body



 sendbutton

 As soon as user clicks on send button, the mails come to specified To
 address. To address is hard coded and hidden.
 I want the same functionality to be implemented in gwt. how can i do
 it? Please help.


 Thanks and regards
 Naveen

 --
 You received 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: part II - Large scale application development and MVP - No Eclipse supported!

2010-10-04 Thread Y2i
... sorry, I meant to say I think it'll also work with the Java
version

On Oct 3, 11:01 pm, Y2i yur...@gmail.com wrote:
 Strange, those steps work for me fine, here is the eclipse project
 that I got:

 https://docs.google.com/leaf?id=0B6oje-sOVpn_NTFhNzg0OWUtYTE0OS00ZDI5...

 1) unzip the file
 2) In eclipse:  File-Import...
 3) Select Existing Project into Workspace under General, click Next
 3) Click Browse...
 4) Select the directory where the file was unzipped in step 1), click
 Ok
 5) Click Finish

 I tried this in Helios Java EE version, but I don't think it'll also
 work with the Java version

 On Oct 3, 2:09 pm, 100IT chris.devri...@gmail.com wrote:



  Thanks for your quick answer, I tried but no luck.

  I get tons of warnings and one error. I'm using:

  Eclipse IDE for Java Developers

  Version: Helios Release
  Build id: 20100617-1415

  Which works ok with:   Large scale application development and MVP
  version I.
  this should probably be simulated on your system using your
  experience.

  Pity the source isn't made like version I as this would help a lot of
  newbie volunteers.

   thanks for any help!!

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



Developing an AppStore for a GWT / App Engine application?

2010-10-04 Thread Ingo Jaeckel
hello everyone,

i want to build an app store for a GWT application. users should open
the app store from within the application, browse through apps and
install them like they are used to it from other app stores e.g. apple
app store or android market. i outlined my ideas about it in the wiki
of my project http://code.google.com/p/honeycrm/wiki/Plugins
(including a more detailed description of the store, apps and sequence
diagrams of the installation process).

- has something like this been done before?
- are there any best practices on this topic?
- is it realistically i.e. a good idea to put source code into the
plugin package (e.g. a zip file) and do the transformations
(compilation of .java - .class using javac and .java - .js using
GWTs compiler)? see
http://code.google.com/p/honeycrm/wiki/Plugins#installation_of_plugins
- can i do this within google app engine or do i have to use another
servlet container e.g. for compilation.

kind regards,
ingo

-- 
You received 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: part II - Large scale application development and MVP - No Eclipse supported!

2010-10-04 Thread Y2i
Strange, those steps work for me fine, here is the eclipse project
that I got:

https://docs.google.com/leaf?id=0B6oje-sOVpn_NTFhNzg0OWUtYTE0OS00ZDI5LWFhMWItMmMxOTc3MGJkMDRjsort=namelayout=listnum=50

1) unzip the file
2) In eclipse:  File-Import...
3) Select Existing Project into Workspace under General, click Next
3) Click Browse...
4) Select the directory where the file was unzipped in step 1), click
Ok
5) Click Finish

I tried this in Helios Java EE version, but I don't think it'll also
work with the Java version


On Oct 3, 2:09 pm, 100IT chris.devri...@gmail.com wrote:
 Thanks for your quick answer, I tried but no luck.

 I get tons of warnings and one error. I'm using:

 Eclipse IDE for Java Developers

 Version: Helios Release
 Build id: 20100617-1415

 Which works ok with:   Large scale application development and MVP
 version I.
 this should probably be simulated on your system using your
 experience.

 Pity the source isn't made like version I as this would help a lot of
 newbie volunteers.

  thanks for any help!!

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



calling GWT avascript compiler from ant

2010-10-04 Thread 3p1...@googlemail.com
Hi everyone

How can i call the gwt Javascript compiler

-- 
You received 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: calling GWT Javascript compiler from ant

2010-10-04 Thread Sebastian Rothbucher
Hi, you can invoke it e.g. with the following script:

  target name=gwtc depends=libs description=GWT compile to
JavaScript
java failonerror=true fork=true
classname=com.google.gwt.dev.Compiler
  classpath
pathelement location=src/
!-- this is gwt-dev.jar gwt-user.jar all JARs you have
yourself --
path refid=project.class.path/
  /classpath
  !-- add jvmarg -Xss16M or similar if you see a
StackOverflowError --
  jvmarg value=-Xmx256M/
  !-- Additional arguments like -style PRETTY or -logLevel DEBUG
--
  arg value=org.whatever.yourapphere/
/java
  /target

Basically, the GWT compiler is just a java program you can invoke via
the java command...

Hope this helps - best regards
 Sebastian Rothbucher


On 4 Okt., 12:13, 3p1...@googlemail.com 3p1...@googlemail.com
wrote:
 Hi everyone

 How can i call the gwt Javascript compiler from an Ant build script?
 I am using eclipse 3.5 with GWT plugin 2.0

 best regards

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: time selection widget?

2010-10-04 Thread ctasada
There's no default time selection widget in GWT. You can create your
own (that's what I did) or use one of the multiple GWT frameworks if
fits your development process (see GXT, SmartGWT, GWT-Mosaic, ...)

Cheers.

On Oct 3, 6:28 pm, Vik vik@gmail.com wrote:
 Hie

 I was checking at gwt widget gallery but could not find a time selection
 widget. Can someone please advise ?
 Thankx and Regards

 Vik
 Founderwww.sakshum.comwww.sakshum.blogspot.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: Send e-mail in GWT

2010-10-04 Thread Jeff Chimene
Since you want the recipient address hidden, you cannot use GWT[1]. You'll
have to send a request to the server and have it compose and send the email.

[1]
Otherwise, you'd use a *mailto* url

On Mon, Oct 4, 2010 at 2:37 AM, naveen naveenkumarnl1...@gmail.com wrote:

 Hi team,

 My requirement is to send a mail from my website.

 i will elaborate the requirement. I have my own website, which is in
 simple html now. Am planning to develop my website using gwt. There is
 a contact us page in the website where a user can mail an enquiry to
 us. the form is like below.

 Name: Sender
 E-mail:sen...@abc.com e-mail%3asen...@abc.com

 Message:

  body



 sendbutton

 As soon as user clicks on send button, the mails come to specified To
 address. To address is hard coded and hidden.
 I want the same functionality to be implemented in gwt. how can i do
 it? Please help.


 Thanks and regards
 Naveen

 --
 You received 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: Help: Development of large App with GWT

2010-10-04 Thread Sebastian Rothbucher
Hi noor,

actually we're using GWT to develop business applications and that
works extremely well. Maybe defining a scenario /process and building
an application for this is helpful.

Best Regards
 Sebastian Rothbucher

On 3 Okt., 18:10, Noor baken...@gmail.com wrote:
 Hi to all, I want some help from u. Many times, I have posted this
 topic on google discussion and many have helped me. Thanks for this.

 The fact is that I got a dissertation in which I have to demonstrate
 the power of GWT. To demonstrate this, I must create an application.
 So the question, which part of GWT should I exploit the most to show
 this?? Because on the market, there are many other frameworks for
 developing rich internet application. How can I make GWT standout of
 these existing frameworks.

 Please, if u've got any idea, just place it on the discussion, this
 would greatly help me

 Regards to all
 Noor

-- 
You received 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: Minimalistic JPA in GWT 2.1.0.M3

2010-10-04 Thread Y2i
I read through Java Persistence API spec and finally was able to make
a resource-local entity manager work.  persistence.xml went to WEB-INF/
classes/META-INF.

I'd like to able to use a container-managed entity manager through
injection, but I'm not sure if it is possible at all using a plain web
container (Jetty).  It looks as if I need to add some sort of an EE
container on top of Jetty, but I'm not sure where to start from.  My
persistence unit already uses JTA-aware data source
(com.atomikos.jdbc.AtomikosDataSourceBean +
org.postgresql.xa.PGXADataSource), but when I try to use
@PersistenceContext or @PersistenceUnit, injection does not happen.  I
would really appreciate it if someone could please help me understand
where I should look next.

Thanks in advance!
Yuri

On Sep 30, 11:52 pm, Y2i yur...@gmail.com wrote:
 persistence.xml has persistence-unit name=Domain.
 I tried @PersistenceContext, @PersistenceUnit and
 Persistence.createEntityManagerFactory() without any result.
 The problem is it does not matter what I type in persistence.xml,
 jetty does not see the file.
 I'm doing something fundamentally wrong, I'll try this again tomorrow
 with a fresh head.
 Thanks for sticking with me!

 On Sep 30, 11:33 pm, lineman78 linema...@gmail.com wrote:



  Does your persistence.xml have the following:

   persistence-unit name=Domain

  and using the following in your session bean:

  @PersistenceContext(unitName=Domain)
    EntityManager em;

  On Sep 30, 11:08 pm, Y2i yur...@gmail.com wrote:

   Thanks for the reply.  I'm doing something wrong because I'm getting
   the same error even when I place persistence.xml to /war/META-INF.
   javax.persistence.PersistenceException: No Persistence provider for
   EntityManager named Domain

   The exception is thrown in both hosted and stand-alone mode.  I'll try
   to configure JTA transactions first before doing anything else with
   the JPA.

   On Sep 30, 6:15 pm, lineman78 linema...@gmail.com wrote:

persistence.xml should be located in /war/META-INF

On Sep 30, 4:28 pm, Y2i yur...@gmail.com wrote:

 Client's requests go the server through RequestFactoryServlet.
 My service objects (those annotated with
 @Service(SomeDomainClass.class) on the client side are being called
 fine.
 When a service method explicitly creates an entity and returns it to
 the client, the request returns without problems.

 The problem occurs as soon as I start using JPA
 I use EclipseLink 2.1.0.  The transaction type is Resource Local for
 now

 When I try to eject EntityManager using @PersistenceContext, it is
 always null.
 When I try to get the factory using
 Persistence.createEntityManagerFactory(Domain), the call would throw
 javax.persistence.PersistenceException: No Persistence provider for
 EntityManager named Domain

 It seems that nether GWT hosted server nor deployment server
 (jetty-6.1.23, same as hosted server) see persistence.xml file.  It
 does not matter what I type inside persistence.xml - the error is the
 same, as though it is not picked up by the server at all.

 Any help, especially where to place persistance.xml for a GWT project,
 would be greatly appreciated.  Thanks in advance.
 Yuri

-- 
You received 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: keyboard shortcuts with CTRL

2010-10-04 Thread Marcin Misiewicz
Here i post the solution.

Actually it's very easy :

HandlerRegistration logHandler = 
Event.addNativePreviewHandler(new
NativePreviewHandler() {

@Override
public void onPreviewNativeEvent(NativePreviewEvent 
event) {
NativeEvent ne = event.getNativeEvent();
if (ne.getCtrlKey()  (ne.getKeyCode()=='l' ||
ne.getKeyCode()=='L')) {
ne.preventDefault();
DeferredCommand.addCommand(new 
Command() {

@Override
public void execute() {
loggerWindow.show();
}
});
}
}
});

CTRL+l oraz CTRL+L - opens the window with log messages.

On 1 Paź, 00:35, Marcin Misiewicz misq...@gmail.com wrote:
 I'm also interested in that topic. Does anybody has some experience
 with keyboard shortcuts in gwt.

 I'd like to have at least one application wide shortcut for opening a
 log panel and a few shortcuts
 dependent of what panel actually has focus on.

 On 1 Wrz, 19:13, levier levi.mail.l...@gmail.com wrote:







  Hi all,

  I'm developing an enterprise application and all users scream 
  forkeyboardshortcuts.
  And not shortcuts like you see in GMail (focus some widget, press c to
  compose a new mail etc) but true CTRL+N, CTRL+S like you see in a
  desktop application.
  I thought it really couldn't be done, till I tried the google docs in
  Chrome: CTRL+B made my text bold. Wow, that works! But probably it
  only works on Chrome right, I thought, so I didn't really believe in
  it and let it pass.

  Then I saw Microsoft releasingkeyboardshortcuts in Hotmail. I tried
  one and I got a pop up saying hey you pressed some key, did you mean
  it askeyboardshortcut?... hahaha, so again I let it pass and
  thought it couldn't be done.
  But today I saw Microsoft releasing their Word, Excel... Office suite
  on-line (search for Office Web Apps). I tried CTRL+B and it put my
  text in bold and didn't show my Bookmarks bar instead! In IE8 and
  Chrome.

  Now, some proof that it doesn't really work all of the time: I
  selected the text on the top of the page, hit CTRL+S and nothing
  happens... there goes my belief in in-browserkeyboardshortcuts
  again.
  I guess thekeyboardlistener is only put on the textarea and ribbon
  bar and not a true browser window listener.

  Still, my question stands:
  how can I blockkeyboardshortcuts like CTR+O, CTRL+N and do something
  with them instead of letting the browser handle them (CTRL+N typically
  opens a new browser window, I don't want that)? Any advice is much
  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: Help: Development of large App with GWT

2010-10-04 Thread Craigo
AJAX!  Make a whole bunch of client / server calls, and tell people
you didn't write a single line of JavaScript.  It was all generated!

On Oct 3, 11:37 pm, Noor baken...@gmail.com wrote:
 Thanks Craigo,
 what u said is true. However, I need some features which I can place
 in my applications to show how GWT makes things easy and speedy and
 most important what makes it different when it is finally deployed on
 the server.

-- 
You received 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 panel for HTML UL/LI lists

2010-10-04 Thread Falcon
I'm in a situation where I'm having to use a custom UListPanel instead
of UIBinder since I have dynamic content (I won't know how many I need
beforehand). I definitely agree that you should use UIBinder whenever
possible, but in my case I'm making my own version of TabPanel with a
ulli structure for the tabs. If the GWT team ever gets custom
UIBinder parsing sorted out, I could probably move all of the code to
UIBinder, but as I'm unwilling to go through the mess to get custom
parsing working currently, my only option is to do portions in code.

On Oct 3, 5:41 am, Markus Kramer tomaton...@googlemail.com wrote:
 I guess you could do it like this. But using a special panel makes it
 easier imo.
 For instance, you could easily change from the good-old VerticalPanel
 to UlListPanel.

 On Oct 2, 6:12 pm, opn open...@gmx.net wrote:

  I'm not sure if it works for you, but you can set the tag that a
  HTMLPanel represents. It's set to div when you don't specify something
  else. I only created a HTMLPanel as an em element one time as a test
  and it worked fine.
  I'm thinking about creating an ul HTMLPanel and insert li
  HTMLPanels into that. Don't know if it works and if it's good to do
  that : ) just an idea!

  regards
  opn

  On Oct 2, 11:42 am, Markus Kramer tomaton...@googlemail.com wrote:

   Yes that's true.
   But I don't like the UIBinder stuff that much. There is a lot which I
   found difficult to do with UIBinder, so I'll stay with the old way.
   Just a personal taste.

   On Sep 27, 6:45 am, lalit lalit.bh...@gmail.com wrote:

Cannot this be done with UIBinder in an easy way? Just write the
layout in ui.xml and insert  the widget in the li tags.

On Sep 25, 2:51 am, Markus Kramer tomaton...@googlemail.com wrote:

 Hi, for my current GWT project I wanted to make more use of HTML UL/LI
 elements than the table based layouts that you normally use in GWT
 applications.
 Biggest advantages for me is that other people can make changes to the
 layout/design of the page without having to touch the code itself.

 I couldn't find a class in GWT or anywhere else that helps with that,
 so I wrote my own. I can now create HTML like this:

 ul class=sampleList
   liWidget A/li
   liWidget B/li
 /ul

 with this code:

 UlListPanel ulList = new UlListPanel();
 ulList.addStyleName(sampleList);
 ulList.add(widgetA);
 ulList.add(widgetB);

 For the code go 
 here:http://markusbraindump.blogspot.com/2010/09/gwt-panel-for-html-ulli-l...

 Or did I reinvent the wheel?

 Markus

-- 
You received 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: Send e-mail in GWT

2010-10-04 Thread abhiram wuntakal
The simplest way to do this would be,

Create a front end page with the neccesary stuff like Recipient's id,
Subject Title, Mail Body and send all this data to the server side alone
with the sender username and password also as this is needed for the
authentication.

 Then, make use of *mail.jar *for sending the mail from the server side.
This has functionality to send the email and with all the necessary
parameters like Mail Body, Subject Title etc.. (Dont know the exact function
names, but there is a provision!!). This shud get ur email functionality
working!!

~ Abhiram Wuntakal

On Mon, Oct 4, 2010 at 12:07 PM, naveen naveenkumarnl1...@gmail.com wrote:

 Hi team,

 My requirement is to send a mail from my website.

 i will elaborate the requirement. I have my own website, which is in
 simple html now. Am planning to develop my website using gwt. There is
 a contact us page in the website where a user can mail an enquiry to
 us. the form is like below.

 Name: Sender
 E-mail:sen...@abc.com e-mail%3asen...@abc.com

 Message:

  body



 sendbutton

 As soon as user clicks on send button, the mails come to specified To
 address. To address is hard coded and hidden.
 I want the same functionality to be implemented in gwt. how can i do
 it? Please help.


 Thanks and regards
 Naveen

 --
 You received 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: Help: Development of large App with GWT

2010-10-04 Thread Noor
This is persuading but examiners can tell if even i didn't write ant
javascript, i did write it in java

-- 
You received 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.



Send e-mail in GWT

2010-10-04 Thread naveen
Hi team,

My requirement is to send a mail from my website.

i will elaborate the requirement. I have my own website, which is in
simple html now. Am planning to develop my website using gwt. There is
a contact us page in the website where a user can mail an enquiry to
us. the form is like below.

Name: Sender
E-mail:sen...@abc.com

Message:

  body



sendbutton

As soon as user clicks on send button, the mails come to specified To
address. To address is hard coded and hidden.
I want the same functionality to be implemented in gwt. how can i do
it? Please help.


Thanks and regards
Naveen

-- 
You received 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: Help: Development of large App with GWT

2010-10-04 Thread lalit
GWT strength is the ability to build rich client side code. If you can
show some data analytics/crunching kind of application and show that
how it can be supported in web application also.

For example showing stock market charts with feedback and may be
calculate technical indicators.

Just an idea.

On Oct 4, 3:45 pm, abhiram wuntakal abhir...@gmail.com wrote:
 Hey create a project which by itself acts as a GWT designer (Someone has
 already done a similar thing actually!!, with the DND options and all), Then
 u can have modules for server interaction which by itself can be automated
 so that all u need to do is indicate the table name and u get the data
 automatically!! This will be like a complete package for developing web
 application and u can claim that people who use this project just need to do
 some customizations rather than coding!! This will definitely turn out to be
 a really interesting project!!

   (P.S. : Later u can share the code with the GWT community even so that it
 can make the work of developers really really easy!! :-) )

 Regards,
 Abhiram







 On Mon, Oct 4, 2010 at 2:09 PM, Noor baken...@gmail.com wrote:
  This is persuading but examiners can tell if even i didn't write ant
  javascript, i did write it in java

  --
  You received 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.



calling GWT Javascript compiler from ant

2010-10-04 Thread 3p1...@googlemail.com
Hi everyone

How can i call the gwt Javascript compiler from an Ant build script?
I am using eclipse 3.5 with GWT plugin 2.0

best regards

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: calling GWT Javascript compiler from ant

2010-10-04 Thread 3p1...@googlemail.com
Hi Sebastian and thank you for your help

ant gives me Reference project.class.path not found.
on this line:
java failonerror=true fork=true
classname=com.google.gwt.dev.Compiler

and do i have to do anything in your lib requirement or can i omit it
in my case?

best regards

On Oct 4, 4:02 pm, Sebastian Rothbucher
sebastian.rothbuc...@clarities.de wrote:
 Hi, you can invoke it e.g. with the following script:

   target name=gwtc depends=libs description=GWT compile to
 JavaScript
     java failonerror=true fork=true
 classname=com.google.gwt.dev.Compiler
       classpath
         pathelement location=src/
         !-- this is gwt-dev.jar gwt-user.jar all JARs you have
 yourself --
         path refid=project.class.path/
       /classpath
       !-- add jvmarg -Xss16M or similar if you see a
 StackOverflowError --
       jvmarg value=-Xmx256M/
       !-- Additional arguments like -style PRETTY or -logLevel DEBUG
 --
       arg value=org.whatever.yourapphere/
     /java
   /target

 Basically, the GWT compiler is just a java program you can invoke via
 the java command...

 Hope this helps - best regards
      Sebastian Rothbucher

 On 4 Okt., 12:13, 3p1...@googlemail.com 3p1...@googlemail.com
 wrote:

  Hi everyone

  How can i call the gwt Javascript compiler from an Ant build script?
  I am using eclipse 3.5 with GWT plugin 2.0

  best regards

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Help: Development of large App with GWT

2010-10-04 Thread Thomas Broyer


On Oct 4, 6:37 am, Noor baken...@gmail.com wrote:
 Thanks Craigo,
 what u said is true. However, I need some features which I can place
 in my applications to show how GWT makes things easy and speedy and

Java tooling (auto-complete  refactoring made easier because Java is
a static language; unit testing –possibly in pure Java, without the
need to launch a browser or browser-simulator, and/or with mock
toolkits such as Mockito–, debugging –with breakpoints et al.,
including easy debugging of unit tests–, code coverage, code analysis:
checkstyle/PMD and the like, etc.)
Java means possibility to use the same code (such as validation
routines) on both the client and the server (if the server runs Java);
now with Node.js it's possible to easily run JS on the server and
share code the same, so it depends which constraints you have or can
give on the server's environment.

 most important what makes it different when it is finally deployed on
 the server.

GWT-RPC helps you develop AJAX apps in a breath: no need to think
about serialization (at least not too much), your code is shared with
the server so you don't have to keep the client and server code in
sync (you still have to update both at the same time, but it's made
much easier).

Code-splitting made easy (GWT.runAsync and
com.google.gwt.user.client.AsyncProxy).

You can go deeper in your analysis by talking about Cell data
presentation widgets, the App framework (MVP, event bus, activities,
places for history management, etc.), etc. coming in 2.1.


But in the end, it also depends which other framework you're
comparing GWT (which BTW isn't a framework but just a toolkit)
against: Silverlight? (it's kind of dead: http://www.riagenic.com/archives/363
; FWIW we're having a bad experience with it –couldn't tell you which
issues, but I can ask the other team if you want–, and closed-source
software doesn't really help when debugging weird issues) JavaFX?
(born-dead, and Oracle is turning so evil that I wouldn't recommend
it, not even judging the product quality) or rather JS toolkits such
as jQuery, ExtJS, Google Closure Library, etc. ?

-- 
You received 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.



Exception while dispatching incoming RPC call

2010-10-04 Thread kuoy...@taiwan
Hi:
I using GWT but it get a error(I want to GWT with JPA) :
[WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract void
org.kuoying.client.GreetingService.save(org.kuoying.client.RpcItem)'
threw an unexpected exception: java.lang.NullPointerException
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
378)
..

souce code:

public class First implements EntryPoint {
/**
 * This is the entry point method.
 */
public void onModuleLoad() {
Button sendButton = new Button(Send);
final TextBox nameField = new TextBox();
nameField.setText(GWT User);
RootPanel.get(nameFieldContainer).add(nameField);
RootPanel.get(sendButtonContainer).add(sendButton);
sendButton.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event) {
GreetingServiceAsync greetingService = GWT
.create(GreetingService.class);

String textToServer = nameField.getText();
RpcItem ri = new RpcItem();
ri.setId(7);
ri.setUsername(textToServer);
greetingService.save(ri, new AsyncCallback() {
public void onFailure(Throwable caught) 
{
Window.alert(Fail);
}
public void onSuccess(Object result) {
Window.alert(Success);
}
});
}
});
}
}
--
@RemoteServiceRelativePath(greet)
public interface GreetingService extends RemoteService {
//  String greetServer(String name) throws IllegalArgumentException;
void save(RpcItem ri);
}
--
public interface GreetingServiceAsync {
void save(RpcItem ri, AsyncCallback callback);
}

public class GreetingServiceImpl extends RemoteServiceServlet
implements
GreetingService {

private static final long serialVersionUID = 1L;

@Override
public void save(RpcItem ri) {
EntityManagerFactory emf;
EntityManager em = null;
try {
emf = Persistence.createEntityManagerFactory(oo);
em = emf.createEntityManager();
em.getTransaction().begin();
em.persist(ri);
em.getTransaction().commit();
} finally {
em.close();
}
}
}



What can I do?? THX^^

-- 
You received 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.



Stockwatcher. When StockPrice class object is created?

2010-10-04 Thread Maciej Egermeier
In tutorial StockPrice class is created but I can't find any instance
of an object of that class.

And I have problem with function:

private void updateTable(StockPrice stockPrice) {
// Make sure the stock is still in the stock table.
if (!stocks.contains(price.getSymbol())) {
  return;
}

int row = stocks.indexOf(price.getSymbol()) + 1;

Price cannot be resolved. And I can't find in tutorial where price
is declared.

Thanks for help 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.



New GWT 2.0 Book

2010-10-04 Thread Tommy Lui
Hi,

Please help me understand why Chris Ramsdale (Google's Developer
Relations team to develop and advocate GWT best practices.) is
writting a book about GWT 2.1 when he works at Google on the GWT team
and there's no official documentation, except for a few waves
available to the developer community.

Is this some way for him to force developers to buy his book?

http://www.manning.com/bambury/

The book is due to be release in 2011, so I'm sure it's GWT 2.1 not
GWT 2.0 content.

I'm hoping that I'm not the only person really pissed off about this.

I'd really like other peoples opinions on this topic


-- 
You received 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.



sport shoes : Jordan ,Nike, adidas, Puma, Gucci, LV, UGG , etc. including women shoes and kids shoes.

2010-10-04 Thread TWE WTEY
http://www.stefsclothes.net
boot.ugg.jacket.jeans.sweart. (UGG)
jordan air max oakland dunks $39;
Christan Audigier BIKINI JACKET $30;
gstar coogi evisu true jeans $35-39;
coach chanel gucci LV handbags $36;
..._|\__ _,,_
../ `-. [ ( Salut =) ) ] . -_|∷≮∩_∩
./_==o __|
...),---.(_(__) /
..// (\) ),.'
.//___// http://www.stefsclothes.net Welcome you to visit thanks
`---`
trjdfhhjdr

-- 
You received 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.



Weird error on RPC calls

2010-10-04 Thread Quincy
Hi, I'm encountering a problem that I can't work out related to RPC
and inheritence - the instance variable in my parent class didn't get
serialized. I'm using GXT for my project. Below are my code snipplet:

/* The data that are transmitted over the wire */
public abstract class MyModelData implements ModelData {
  private String oldData = null;

  protected String setOldData(String s) { oldData = s; }
}

public class ActualModelData extends ModelData implements Serializable
{
  private String someData = null;
  // some other strings as well

  public ActualModelData() { super(); }

  /* basically lets me change the primary key */
  public void setData(String s) {
setOldData(someData);
oldData = s;
  }
  // Other getters/setters as required by ModelData
}

/* Server */
// ...the interfaces as required
// inside MyServiceImpl:
bool change(ActualModelData serverData) {
// do stuff
}

/* Client */
public class MyUI extends LayoutContainer {
  // ...
  // ActualModelData clientData; -- instance variable originally came
from server
  clientData.setData(blah);
  myService.change(clientData, new AsyncCallbackBoolean() {
public void onFailure(Throwable error) {}
public void onSuccess(Boolean result) {}
  });


The problem: serverData.oldData == null (both hosted and compiled
modes)

I've stepped through the code in Eclipse:
In the client code, the clientData.oldData is definitely correctly set
when the change method was called (and was subsequently reset to
null elsewhere in the client code).
On the server side, serverData.oldData is null - I've even stepped
through the code before mine, and found that the String requestPayload
in RemoteServiceServlet.processPost(HttpServletRequest,
HttpServletResponse) doesn't contain any trace of the oldData value
(don't know how to read that string, but I've found the substring
representing the class type, followed by the known values of non-null
instance variables in ActualModelData).

I've tried deleting the folder with the hosted.html and the *.gwt.rpc
files and getting Eclipse to rebuild them, but the problem persists.
I'm now not show how to proceed other than flattening the class
structure (I can remove the hierarchy but then I won't be able to use
a single data grid to edit all my data types).

GWT version: 2.0.4
GWT Designer version: 8.0.0
AppEngine: 1.3.7
GXT version: 2.20
JRE: 1.6.0_20

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: keyboard shortcuts with CTRL

2010-10-04 Thread dushyant bing
wow , thanks a lot.

On Mon, Oct 4, 2010 at 7:44 PM, Marcin Misiewicz misq...@gmail.com wrote:

 Here i post the solution.

 Actually it's very easy :

HandlerRegistration logHandler =
 Event.addNativePreviewHandler(new
 NativePreviewHandler() {

@Override
public void onPreviewNativeEvent(NativePreviewEvent
 event) {
NativeEvent ne = event.getNativeEvent();
if (ne.getCtrlKey()  (ne.getKeyCode()=='l'
 ||
 ne.getKeyCode()=='L')) {
ne.preventDefault();
DeferredCommand.addCommand(new
 Command() {

@Override
public void execute() {
loggerWindow.show();
}
});
}
}
});

 CTRL+l oraz CTRL+L - opens the window with log messages.

 On 1 Paź, 00:35, Marcin Misiewicz misq...@gmail.com wrote:
  I'm also interested in that topic. Does anybody has some experience
  with keyboard shortcuts in gwt.
 
  I'd like to have at least one application wide shortcut for opening a
  log panel and a few shortcuts
  dependent of what panel actually has focus on.
 
  On 1 Wrz, 19:13, levier levi.mail.l...@gmail.com wrote:
 
 
 
 
 
 
 
   Hi all,
 
   I'm developing an enterprise application and all users scream
 forkeyboardshortcuts.
   And not shortcuts like you see in GMail (focus some widget, press c to
   compose a new mail etc) but true CTRL+N, CTRL+S like you see in a
   desktop application.
   I thought it really couldn't be done, till I tried the google docs in
   Chrome: CTRL+B made my text bold. Wow, that works! But probably it
   only works on Chrome right, I thought, so I didn't really believe in
   it and let it pass.
 
   Then I saw Microsoft releasingkeyboardshortcuts in Hotmail. I tried
   one and I got a pop up saying hey you pressed some key, did you mean
   it askeyboardshortcut?... hahaha, so again I let it pass and
   thought it couldn't be done.
   But today I saw Microsoft releasing their Word, Excel... Office suite
   on-line (search for Office Web Apps). I tried CTRL+B and it put my
   text in bold and didn't show my Bookmarks bar instead! In IE8 and
   Chrome.
 
   Now, some proof that it doesn't really work all of the time: I
   selected the text on the top of the page, hit CTRL+S and nothing
   happens... there goes my belief in in-browserkeyboardshortcuts
   again.
   I guess thekeyboardlistener is only put on the textarea and ribbon
   bar and not a true browser window listener.
 
   Still, my question stands:
   how can I blockkeyboardshortcuts like CTR+O, CTRL+N and do something
   with them instead of letting the browser handle them (CTRL+N typically
   opens a new browser window, I don't want that)? Any advice is much
   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.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.



integrating with wicket

2010-10-04 Thread fachhoch
My application uses wicket , I recently saw some GWT widgets , and
would like to use them in my application , please suggest me if there
is any integration between wicket and GWT , can I use GWT widgets
inside my wicket pages ?

-- 
You received 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: 2.1 Documentation

2010-10-04 Thread Tommy Lui
Why is Chris Ramsdale (Google's Developer Relations team to develop
and advocate GWT best practices) in the middle of writing a book about
GWT 2.1 when there's no documentation available online except for
Thomas blogs and a few Waves.

http://www.manning.com/bambury/

I hope I'm not the only one angry about this? I'd love to hear other
peoples thoughts.

Personally I feel he should be advocating some documentation for
developers instead of hording it for his own book, after all he's on
the GWT team.

As a member of the GWT community, I think if there's enough
information for Chris to write a 500 page book, why have we seen no
official documentation on the GWT website about GWT 2.1 for developers
like me.

The book is due to be release in early 2011, so I'm sure its GWT 2.1
not GWT 2.0

Please help me understand

-- 
You received 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 panel for HTML UL/LI lists

2010-10-04 Thread Adam Mark
Just extend FlowPanel and override setElement:

public class MyList extends FlowPanel {

...

@Override
protected void setElement(com.google.gwt.user.client.Element elem)
{
super.setElement(DOM.createElement(ul));
}

   ...

}

On Oct 2, 5:42 am, Markus Kramer tomaton...@googlemail.com wrote:
 Yes that's true.
 But I don't like the UIBinder stuff that much. There is a lot which I
 found difficult to do with UIBinder, so I'll stay with the old way.
 Just a personal taste.

 On Sep 27, 6:45 am, lalit lalit.bh...@gmail.com wrote:







  Cannot this be done with UIBinder in an easy way? Just write the
  layout in ui.xml and insert  the widget in the li tags.

  On Sep 25, 2:51 am, Markus Kramer tomaton...@googlemail.com wrote:

   Hi, for my current GWT project I wanted to make more use of HTML UL/LI
   elements than the table based layouts that you normally use in GWT
   applications.
   Biggest advantages for me is that other people can make changes to the
   layout/design of the page without having to touch the code itself.

   I couldn't find a class in GWT or anywhere else that helps with that,
   so I wrote my own. I can now create HTML like this:

   ul class=sampleList
     liWidget A/li
     liWidget B/li
   /ul

   with this code:

   UlListPanel ulList = new UlListPanel();
   ulList.addStyleName(sampleList);
   ulList.add(widgetA);
   ulList.add(widgetB);

   For the code go 
   here:http://markusbraindump.blogspot.com/2010/09/gwt-panel-for-html-ulli-l...

   Or did I reinvent the wheel?

   Markus

-- 
You received 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- chat

2010-10-04 Thread Yudji


I have created a simple client/server app
that does nothing but sends a string from client to server.

Now I would like to expand it so the server can send messages to all
clients. How can this be done?

-- 
You received 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- chat

2010-10-04 Thread Yudji


I have created a simple client/server app
that does nothing but sends a string from client to server.

Now I would like to expand it so the server can send messages to all
clients. How can this be done?

-- 
You received 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 for client-only web-application

2010-10-04 Thread bog.imp
Hello
I know Javascript very well and Java(not good but i can learn because
i know many languages, c++, python etc),
so i think i can create application using GWT.

Now i want create DHTML based application using Google Data Api(only
client), and some other *cool* Google API,
but this application i can create using any javascript framework(like
jQuey).

So problem that i can't choose why better use GWT, because i never use
GWT,

Can you help me get good decision.

-- 
You received 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 any proper way to create shortcut(s) for the current window object in gwt ?

2010-10-04 Thread wingdings
just for like CTRL+1 or CTRL+2 .. how do i assigns shortcuts ?

something like this i did but it aint executing , also am i doing it
right ?
mayday mayday !

public class quotation implements KeyboardListener
{

public static Widget getSomeWidget()
{

return new Widget;
}
@Override
       public void onKeyDown(Widget sender, char keyCode, int
modifiers) {
               // TODO Auto-generated method stub

       }

      �...@override
       public void onKeyPress(Widget sender, char keyCode, int
modifiers) {
               if(KeyboardListener.KEY_CTRL == keyCode)
               {

               }

       }

      �...@override
       public void onKeyUp(Widget sender, char keyCode, int modifiers)
{
               // TODO Auto-generated method stub

       }
}

-- 
You received 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.



AppEngine Users Service with GWT will always reload page/module upon login

2010-10-04 Thread Haris
Using Users Service, after filling up login and password and press OK,
onModuleLoad is executed. Basically the gwt module is reloaded. I am
going to loose data entry stuff form the user.

For instant if someone is typing a forum post and click submit only to
discover that login already timeout. The person relogin using User API
login page
only to discover that the text typed is lost because of this.

Any suggestion?

Regards,
Haris

-- 
You received 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.



Cannot create new web applications.

2010-10-04 Thread Justin Lilly
I just downloaded eclipse v3.6 (Helios), Java EE version. I then added
the google repository at http://dl.google.com/eclipse/plugin/3.6 to my
possible installation places, selected all downloads (which included
the google plugin for eclipse as well as the appengine and gwt sdk).

I'm attempting to follow through with the tutorial, but there is no
Create new web application selection available in my new project
dialog box. Yes, I already looked in the other section too.

I'm on 64 bit windows 7, with 64 bit eclipse. Any help would be
greatly appreciated.

 -justin

-- 
You received 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.



Exception while dispatching incoming RPC call

2010-10-04 Thread kuoy...@taiwan
Hi:
I using GWT but it get a error(I want to GWT with JPA) :
[WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract void
org.kuoying.client.GreetingService.save(org.kuoying.client.RpcItem)'
threw an unexpected exception: java.lang.NullPointerException
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
378)
..

souce code:

public class First implements EntryPoint {
/**
 * This is the entry point method.
 */
public void onModuleLoad() {
Button sendButton = new Button(Send);
final TextBox nameField = new TextBox();
nameField.setText(GWT User);
RootPanel.get(nameFieldContainer).add(nameField);
RootPanel.get(sendButtonContainer).add(sendButton);
sendButton.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event) {
GreetingServiceAsync greetingService = GWT
.create(GreetingService.class);

String textToServer = nameField.getText();
RpcItem ri = new RpcItem();
ri.setId(7);
ri.setUsername(textToServer);
greetingService.save(ri, new AsyncCallback() {
public void onFailure(Throwable caught) 
{
Window.alert(Fail);
}
public void onSuccess(Object result) {
Window.alert(Success);
}
});
}
});
}
}
--
@RemoteServiceRelativePath(greet)
public interface GreetingService extends RemoteService {
//  String greetServer(String name) throws IllegalArgumentException;
void save(RpcItem ri);
}
--
public interface GreetingServiceAsync {
void save(RpcItem ri, AsyncCallback callback);
}

public class GreetingServiceImpl extends RemoteServiceServlet
implements
GreetingService {

private static final long serialVersionUID = 1L;

@Override
public void save(RpcItem ri) {
EntityManagerFactory emf;
EntityManager em = null;
try {
emf = Persistence.createEntityManagerFactory(oo);
em = emf.createEntityManager();
em.getTransaction().begin();
em.persist(ri);
em.getTransaction().commit();
} finally {
em.close();
}
}
}



What can I do?? THX^^

-- 
You received 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: part II - Large scale application development and MVP - No Eclipse supported!

2010-10-04 Thread 100IT
Hi Y2I, Could you check your link? Its dead to my knowledge.
thanks for your help.

Regards.
Chris.

On 4 okt, 08:01, Y2i yur...@gmail.com wrote:
 Strange, those steps work for me fine, here is the eclipse project
 that I got:

 https://docs.google.com/leaf?id=0B6oje-sOVpn_NTFhNzg0OWUtYTE0OS00ZDI5...

 1) unzip the file
 2) In eclipse:  File-Import...
 3) Select Existing Project into Workspace under General, click Next
 3) Click Browse...
 4) Select the directory where the file was unzipped in step 1), click
 Ok
 5) Click Finish

 I tried this in Helios Java EE version, but I don't think it'll also
 work with the Java version

 On Oct 3, 2:09 pm, 100IT chris.devri...@gmail.com wrote:

  Thanks for your quick answer, I tried but no luck.

  I get tons of warnings and one error. I'm using:

  Eclipse IDE for Java Developers

  Version: Helios Release
  Build id: 20100617-1415

  Which works ok with:   Large scale application development and MVP
  version I.
  this should probably be simulated on your system using your
  experience.

  Pity the source isn't made like version I as this would help a lot of
  newbie volunteers.

   thanks for any help!!

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



Re: New GWT 2.0 Book

2010-10-04 Thread Isaac Truett
I think if this makes your list of things to get really pissed off about,
then life must be pretty good.

Someone who works on GWT gets a writing credit on a book about GWT; that's
not something to get upset over.



On Fri, Oct 1, 2010 at 1:38 PM, Tommy Lui tlui1...@gmail.com wrote:

 Hi,

 Please help me understand why Chris Ramsdale (Google's Developer
 Relations team to develop and advocate GWT best practices.) is
 writting a book about GWT 2.1 when he works at Google on the GWT team
 and there's no official documentation, except for a few waves
 available to the developer community.

 Is this some way for him to force developers to buy his book?

 http://www.manning.com/bambury/

 The book is due to be release in 2011, so I'm sure it's GWT 2.1 not
 GWT 2.0 content.

 I'm hoping that I'm not the only person really pissed off about this.

 I'd really like other peoples opinions on this topic


 --
 You received 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: Help: Development of large App with GWT

2010-10-04 Thread abhiram wuntakal
Hey create a project which by itself acts as a GWT designer (Someone has
already done a similar thing actually!!, with the DND options and all), Then
u can have modules for server interaction which by itself can be automated
so that all u need to do is indicate the table name and u get the data
automatically!! This will be like a complete package for developing web
application and u can claim that people who use this project just need to do
some customizations rather than coding!! This will definitely turn out to be
a really interesting project!!

  (P.S. : Later u can share the code with the GWT community even so that it
can make the work of developers really really easy!! :-) )

Regards,
Abhiram


On Mon, Oct 4, 2010 at 2:09 PM, Noor baken...@gmail.com wrote:

 This is persuading but examiners can tell if even i didn't write ant
 javascript, i did write it in java

 --
 You received 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: GWT- chat

2010-10-04 Thread andy stevko
Hello Yudji,

I believe you are referring to the application model call Comet
http://en.wikipedia.org/wiki/Comet_(programming)http://en.wikipedia.org/wiki/Comet_%28programming%29

There is a Comet implementation for the Google Web Toolkit
http://code.google.com/p/gwt-comet/



On Sun, Oct 3, 2010 at 6:48 PM, Yudji guilhermeyu...@hotmail.com wrote:



 I have created a simple client/server app
 that does nothing but sends a string from client to server.

 Now I would like to expand it so the server can send messages to all
 clients. How can this be done?

 --
 You received 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: New GWT 2.0 Book

2010-10-04 Thread Ashton Thomas
At the end of the day, the GWT community will benefit from the book.
For whatever reasons Chris is writing the book I am certain they are
justified and reasonable and I am sure he will be able to provide the
GWT community some valuable insight outside of buying the book.

yes, books may be a little behind development especially at the rate
GWT is coming along. So it is understandable that you would prefer to
have some more agile and publicly available documentation going on.

So your argument is understandable but this is probably not the worst
thing ever. A more appropriate response may be to continue to
highlight the contributions of people and make specific requests to be
addressed.



On Oct 4, 11:24 am, Isaac Truett itru...@gmail.com wrote:
 I think if this makes your list of things to get really pissed off about,
 then life must be pretty good.

 Someone who works on GWT gets a writing credit on a book about GWT; that's
 not something to get upset over.



 On Fri, Oct 1, 2010 at 1:38 PM, Tommy Lui tlui1...@gmail.com wrote:
  Hi,

  Please help me understand why Chris Ramsdale (Google's Developer
  Relations team to develop and advocate GWT best practices.) is
  writting a book about GWT 2.1 when he works at Google on the GWT team
  and there's no official documentation, except for a few waves
  available to the developer community.

  Is this some way for him to force developers to buy his book?

 http://www.manning.com/bambury/

  The book is due to be release in 2011, so I'm sure it's GWT 2.1 not
  GWT 2.0 content.

  I'm hoping that I'm not the only person really pissed off about this.

  I'd really like other peoples opinions on this topic

  --
  You received 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- chat

2010-10-04 Thread Subhrajyoti Moitra
http://code.google.com/p/atmosphere-gwt-comet/

http://code.google.com/p/atmosphere-gwt-comet/Here one more for the same
purpose.

On Mon, Oct 4, 2010 at 9:00 PM, andy stevko andy.ste...@gmail.com wrote:

 Hello Yudji,

 I believe you are referring to the application model call Comet
 http://en.wikipedia.org/wiki/Comet_(programming)http://en.wikipedia.org/wiki/Comet_%28programming%29

 There is a Comet implementation for the Google Web Toolkit
 http://code.google.com/p/gwt-comet/



 On Sun, Oct 3, 2010 at 6:48 PM, Yudji guilhermeyu...@hotmail.com wrote:



 I have created a simple client/server app
 that does nothing but sends a string from client to server.

 Now I would like to expand it so the server can send messages to all
 clients. How can this be done?

 --
 You received 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.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: Help: Development of large App with GWT

2010-10-04 Thread Noor
Hi to all of you, thanks a lot for responding.

If we consider GWT architecture, then we can say that this framework
targets application which has got to communicate with the server a
lot. Then through GWT RPC, the asynchronous calls are made to enhance
interactivity.

Like Lalit said, Stock Market charts which is potential application
and very good idea because information needs to be updated on a real
time basis.

My idea was a bidding system. So when the bidding is going to end,
many people will try to bid. Also, a client might want to place
several bids on after the other based on the highest bid in case he is
outbid.
Now, this is for one bidding

Now, if several bidding are going to end at the same time (even if a
slack of 1 or 2 min), then a bidder will be able to concentrate on may
be 1 or at most 2 or lets say 3.

Then again come the beauty of GWT, several biddings can shown in which
the user is registered in. Then, user can bid on may be 10 bidding if
the user interface is designed correctly

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



Re: New GWT 2.0 Book

2010-10-04 Thread Paul Stockley
2.1 Isn't even released yet so why are you pissed off about there
being no documentation!

On Oct 4, 11:36 am, Ashton Thomas ash...@acrinta.com wrote:
 At the end of the day, the GWT community will benefit from the book.
 For whatever reasons Chris is writing the book I am certain they are
 justified and reasonable and I am sure he will be able to provide the
 GWT community some valuable insight outside of buying the book.

 yes, books may be a little behind development especially at the rate
 GWT is coming along. So it is understandable that you would prefer to
 have some more agile and publicly available documentation going on.

 So your argument is understandable but this is probably not the worst
 thing ever. A more appropriate response may be to continue to
 highlight the contributions of people and make specific requests to be
 addressed.

 On Oct 4, 11:24 am, Isaac Truett itru...@gmail.com wrote:



  I think if this makes your list of things to get really pissed off about,
  then life must be pretty good.

  Someone who works on GWT gets a writing credit on a book about GWT; that's
  not something to get upset over.

  On Fri, Oct 1, 2010 at 1:38 PM, Tommy Lui tlui1...@gmail.com wrote:
   Hi,

   Please help me understand why Chris Ramsdale (Google's Developer
   Relations team to develop and advocate GWT best practices.) is
   writting a book about GWT 2.1 when he works at Google on the GWT team
   and there's no official documentation, except for a few waves
   available to the developer community.

   Is this some way for him to force developers to buy his book?

  http://www.manning.com/bambury/

   The book is due to be release in 2011, so I'm sure it's GWT 2.1 not
   GWT 2.0 content.

   I'm hoping that I'm not the only person really pissed off about this.

   I'd really like other peoples opinions on this topic

   --
   You received 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: part II - Large scale application development and MVP - No Eclipse supported!

2010-10-04 Thread Y2i
Sorry, somehow the link got messed up.  This one should work.
https://docs.google.com/leaf?id=0B6oje-sOVpn_NTFhNzg0OWUtYTE0OS00ZDI5LWFhMWItMmMxOTc3MGJkMDRjhl=enauthkey=CKbNwuYP


On Oct 4, 2:21 am, 100IT chris.devri...@gmail.com wrote:
 Hi Y2I, Could you check your link? Its dead to my knowledge.
 thanks for your help.

 Regards.
 Chris.

 On 4 okt, 08:01, Y2i yur...@gmail.com wrote:



  Strange, those steps work for me fine, here is the eclipse project
  that I got:

 https://docs.google.com/leaf?id=0B6oje-sOVpn_NTFhNzg0OWUtYTE0OS00ZDI5...

  1) unzip the file
  2) In eclipse:  File-Import...
  3) Select Existing Project into Workspace under General, click Next
  3) Click Browse...
  4) Select the directory where the file was unzipped in step 1), click
  Ok
  5) Click Finish

  I tried this in Helios Java EE version, but I don't think it'll also
  work with the Java version

  On Oct 3, 2:09 pm, 100IT chris.devri...@gmail.com wrote:

   Thanks for your quick answer, I tried but no luck.

   I get tons of warnings and one error. I'm using:

   Eclipse IDE for Java Developers

   Version: Helios Release
   Build id: 20100617-1415

   Which works ok with:   Large scale application development and MVP
   version I.
   this should probably be simulated on your system using your
   experience.

   Pity the source isn't made like version I as this would help a lot of
   newbie volunteers.

    thanks for any help!!

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



Re: Help: Development of large App with GWT

2010-10-04 Thread mig
It very much depends on what are you trying to do - what the
application should do. Technologically, GWT is unlike any other java
webframework. You don't prepare pages to display on the server and
send them to the browser as plain HTML code, you mostly send only data
and leave the presentation to GWT. This can end up in various ways. I
have seen perfectly efficient web pages and CMS systems go up with
plain GWT. On the other side, I have seen financial applications go up
in flames due to excesive use of GWT in heavy BigDecimal computations,
dynamic HTML table rendering and of course - Internet Explorer (7, 8).
So in general, it's about finding the right balance between server
side and client side rendering. GWT is good, GWT is nice but you
probably don't want to become too obsessed with it or you might end up
with a ton of untracable generator aspect rules and/or GWT services,
that generate HTML instead of sending data to the client for rendering
coz of miserable IE performance.
Good luck.

On 3. Okt, 18:10 h., Noor baken...@gmail.com wrote:
 Hi to all, I want some help from u. Many times, I have posted this
 topic on google discussion and many have helped me. Thanks for this.

 The fact is that I got a dissertation in which I have to demonstrate
 the power of GWT. To demonstrate this, I must create an application.
 So the question, which part of GWT should I exploit the most to show
 this?? Because on the market, there are many other frameworks for
 developing rich internet application. How can I make GWT standout of
 these existing frameworks.

 Please, if u've got any idea, just place it on the discussion, this
 would greatly help me

 Regards to all
 Noor

-- 
You received 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: Help: Development of large App with GWT

2010-10-04 Thread Noor
Thanks Mig,

As I stated above, I am trying to implement a bidding system and above
I described some its potential features such simultaneously bidding on
the several items

-- 
You received 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: Send e-mail in GWT

2010-10-04 Thread nacho
You can use appengine to deploy your app and use the appengine mail
api.

On 4 oct, 09:41, Jeff Chimene jchim...@gmail.com wrote:
 Since you want the recipient address hidden, you cannot use GWT[1]. You'll
 have to send a request to the server and have it compose and send the email.

 [1]
 Otherwise, you'd use a *mailto* url

 On Mon, Oct 4, 2010 at 2:37 AM, naveen naveenkumarnl1...@gmail.com wrote:
  Hi team,

  My requirement is to send a mail from my website.

  i will elaborate the requirement. I have my own website, which is in
  simple html now. Am planning to develop my website using gwt. There is
  a contact us page in the website where a user can mail an enquiry to
  us. the form is like below.

  Name: Sender
  E-mail:sen...@abc.com e-mail%3asen...@abc.com

  Message:

       body

  sendbutton

  As soon as user clicks on send button, the mails come to specified To
  address. To address is hard coded and hidden.
  I want the same functionality to be implemented in gwt. how can i do
  it? Please help.

  Thanks and regards
  Naveen

  --
  You received 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: calling GWT Javascript compiler from ant

2010-10-04 Thread nacho
Try with this:

?xml version=1.0 encoding=utf-8 ?
project name=ProjectName default=war basedir=.
  !-- Configure path to GWT SDK --
  property name=gwt.sdk location=/path/to/gwt /

  !-- SWT on Mac requires the -XstartOFirstThreadFlag. --
  condition property=XstartOnFirstThreadFlag value=-
XstartOnFirstThread
else=-Dgwt.dummy.arg1=
os family=mac/
  /condition

  !-- SWT on Mac requires the -d32 flag if the VM is 64-bit. --
  condition property=d32Flag value=-d32 else=-Dgwt.dummy.arg2=
and
  os family=mac/
  equals arg1=${sun.arch.data.model} arg2=64/
/and
  /condition

  path id=project.class.path
pathelement location=war/WEB-INF/classes/
pathelement location=${gwt.sdk}/gwt-user.jar/
fileset dir=${gwt.sdk} includes=gwt-dev*.jar/
!-- Add any additional non-server libs (such as JUnit) --
fileset dir=war/WEB-INF/lib includes=**/*.jar/
  /path

  target name=libs description=Copy libs to WEB-INF/lib
mkdir dir=war/WEB-INF/lib /
copy todir=war/WEB-INF/lib file=${gwt.sdk}/gwt-servlet.jar /
!-- Add any additional server libs that need to be copied --
  /target

  target name=javac depends=libs description=Compile java
source
mkdir dir=war/WEB-INF/classes/
javac srcdir=src includes=** encoding=utf-8
destdir=war/WEB-INF/classes
source=1.5 target=1.5 nowarn=true
debug=true debuglevel=lines,vars,source
  classpath refid=project.class.path/
/javac
copy todir=war/WEB-INF/classes
  fileset dir=src excludes=**/*.java/
/copy
  /target

  target name=gwtc depends=javac description=GWT compile to
JavaScript
java failonerror=true fork=true
classname=com.google.gwt.dev.Compiler
  classpath
pathelement location=src/
path refid=project.class.path/
  /classpath
  !-- add jvmarg -Xss16M or similar if you see a
StackOverflowError --
  jvmarg value=-Xmx256M/
  jvmarg value=${XstartOnFirstThreadFlag}/
  jvmarg value=${d32Flag}/
  !-- Additional arguments like -styzle PRETTY or -logLevel DEBUG
--
  arg line=-style PRETTY/
  arg value=com.mycompany.myProject.MyEntryPoint/
/java
  /target

  target name=hosted depends=javac description=Run hosted mode
java failonerror=true fork=true
classname=com.google.gwt.dev.HostedMode
  classpath
pathelement location=src/
path refid=project.class.path/
  /classpath
  jvmarg value=-Xmx256M/
  jvmarg value=${XstartOnFirstThreadFlag}/
  jvmarg value=${d32Flag}/
  arg value=-startupUrl/
  arg value=MyEntryPoint.html/
  !-- Additional arguments like -style PRETTY or -logLevel DEBUG
--
  arg value=com.mycompany.myProject.MyEntryPoint/
/java
  /target

  target name=build depends=gwtc description=Build this
project /

  target name=war depends=build description=Create a war file
zip destfile=/path/to/MyWar.war basedir=war/
  /target

  target name=clean description=Cleans this project
delete dir=war/WEB-INF/classes failonerror=false /
  /target

/project

Let me know if it works for you.

On 4 oct, 11:45, 3p1...@googlemail.com 3p1...@googlemail.com
wrote:
 Hi Sebastian and thank you for your help

 ant gives me Reference project.class.path not found.
 on this line:
 java failonerror=true fork=true
 classname=com.google.gwt.dev.Compiler

 and do i have to do anything in your lib requirement or can i omit it
 in my case?

 best regards

 On Oct 4, 4:02 pm, Sebastian Rothbucher

 sebastian.rothbuc...@clarities.de wrote:
  Hi, you can invoke it e.g. with the following script:

    target name=gwtc depends=libs description=GWT compile to
  JavaScript
      java failonerror=true fork=true
  classname=com.google.gwt.dev.Compiler
        classpath
          pathelement location=src/
          !-- this is gwt-dev.jar gwt-user.jar all JARs you have
  yourself --
          path refid=project.class.path/
        /classpath
        !-- add jvmarg -Xss16M or similar if you see a
  StackOverflowError --
        jvmarg value=-Xmx256M/
        !-- Additional arguments like -style PRETTY or -logLevel DEBUG
  --
        arg value=org.whatever.yourapphere/
      /java
    /target

  Basically, the GWT compiler is just a java program you can invoke via
  the java command...

  Hope this helps - best regards
       Sebastian Rothbucher

  On 4 Okt., 12:13, 3p1...@googlemail.com 3p1...@googlemail.com
  wrote:

   Hi everyone

   How can i call the gwt Javascript compiler from an Ant build script?
   I am using eclipse 3.5 with GWT plugin 2.0

   best regards

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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 in subfolder

2010-10-04 Thread Артём
On Oct 4, 7:03 am, Fendy Tjin fendyt...@gmail.com wrote:
 Hi,

 I have the same question, but I'm using Google Hosting which does
 automatically when uploading to the host server. In this case, how do I move
 it to a subfolder?

I'm developing on Google App Engine, and it preserves the file
hierarchy.
If I create a file war/MY_DIR/my_file.html, it will be in
http://my_app.appspot.com/MY_DIR/my_file.html.

-- 
You received 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.



Building a .jar with IsSerializable

2010-10-04 Thread Greg Dougherty
So here's the problem, and the solution I came up with.  My question
is: Is this a valid solution, or is it going to bite my in the tush
later?

I'm building a jar file, using Eclipse, that includes some classes
that implement IsSerializable.  So when I tried to use the jar, I got
a ClassNotDef exception.  I thought about having them implement
Serializable, but I'd prefer not to have to futz with the whitelist
file.  So instead I created a project called GWT Fill in, and
declared an interface of IsSerializable in the appropriate package.
This compiles and runs successfully.

Is there some hidden problem I'm going to see later?

-- 
You received 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: integrating with wicket

2010-10-04 Thread Georg Sendt
Yes this is no problem.  You can use GWT as normal as JavaScript in
your Wicket application.

Create a GWT-Project and  include the YourApplication.nocache.js in
your wicket page. You can do this easily with
org.apache.wicket.markup.html.WebComponent.

Regards,

Georg


On 3 Okt., 06:10, fachhoch fachh...@gmail.com wrote:
 My application uses wicket , I recently saw some GWT widgets , and
 would like to use them in my application , please suggest me if there
 is any integration between wicket and GWT , can I use GWT widgets
 inside my wicket pages ?

-- 
You received 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.



Monitor GWT 2.x application traffic using packet analyzer

2010-10-04 Thread Micky
Hi there,

I am trying to monitor my GWT 2.x application traffic within my
development environment. I have installed Wireshark and it seems to be
running correctly however I do not see any traffic showing up in it
when using my app. It seems that Wireshark will not monitor traffic on
the loopback ip 127.0.0.1 (which is what the GWT development
environment uses). So I tried just changing the development
environment URL from...

http://127.0.0.1:/TestApp.html?gwt.codesvr=127.0.0.1:9997

...to...

http://My Machine IP:/TestApp.html?gwt.codesvr=My Machine IP:
9997

...but this did not work - the application did not even load.

Does anyone have a workaround for this?

Thanks,

Micky

-- 
You received 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: Exception while dispatching incoming RPC call

2010-10-04 Thread Greg Dougherty
  EntityManagerFactory emf;
EntityManager em = null;
try {
emf =
Persistence.createEntityManagerFactory(oo);
em = emf.createEntityManager();
em.getTransaction().begin();
em.persist(ri);
em.getTransaction().commit();
} finally {
em.close();
}

If you throw an exception in Persistence.createEntityManagerFactory
(), em will be null when you try to call close on it.  Put an
if (em != null)
test in your finally.

On Oct 1, 8:06 pm, kuoy...@taiwan stu93303...@gmail.com wrote:
 Hi:
 I using GWT but it get a error(I want to GWT with JPA) :
 [WARN] Exception while dispatching incoming RPC call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract void
 org.kuoying.client.GreetingService.save(org.kuoying.client.RpcItem)'
 threw an unexpected exception: java.lang.NullPointerException
         at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
 378)
 ..

 souce code:

 public class First implements EntryPoint {
         /**
          * This is the entry point method.
          */
         public void onModuleLoad() {
                 Button sendButton = new Button(Send);
                 final TextBox nameField = new TextBox();
                 nameField.setText(GWT User);
                 RootPanel.get(nameFieldContainer).add(nameField);
                 RootPanel.get(sendButtonContainer).add(sendButton);
                 sendButton.addClickHandler(new ClickHandler(){
                         public void onClick(ClickEvent event) {
                                 GreetingServiceAsync greetingService = GWT
                                 .create(GreetingService.class);

                                 String textToServer = nameField.getText();
                                 RpcItem ri = new RpcItem();
                                 ri.setId(7);
                                 ri.setUsername(textToServer);
                                 greetingService.save(ri, new AsyncCallback() {
                                         public void onFailure(Throwable 
 caught) {
                                                 Window.alert(Fail);
                                         }
                                         public void onSuccess(Object result) {
                                                 Window.alert(Success);
                                         }
                                 });
                         }
                 });
         }}

 --
 @RemoteServiceRelativePath(greet)
 public interface GreetingService extends RemoteService {
 //      String greetServer(String name) throws IllegalArgumentException;
         void save(RpcItem ri);}

 --
 public interface GreetingServiceAsync {
         void save(RpcItem ri, AsyncCallback callback);}

 
 public class GreetingServiceImpl extends RemoteServiceServlet
 implements
                 GreetingService {

         private static final long serialVersionUID = 1L;

         @Override
         public void save(RpcItem ri) {
                 EntityManagerFactory emf;
                 EntityManager em = null;
                 try {
                         emf = Persistence.createEntityManagerFactory(oo);
                         em = emf.createEntityManager();
                         em.getTransaction().begin();
                         em.persist(ri);
                         em.getTransaction().commit();
                 } finally {
                         em.close();
                 }
         }

 }

 What can I do?? THX^^

-- 
You received 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: Monitor GWT 2.x application traffic using packet analyzer

2010-10-04 Thread Chris Conroy
you can pass -bindAddress to bind to a different interface (0.0.0.0 to bind
to *). Also, Wireshark is perfectly capable of capturing traffic on on
127.0.0.1. You just need to set the interface to lo (loopback) rather than
your actual NIC.

On Mon, Oct 4, 2010 at 4:44 PM, Micky micky.johns...@gmail.com wrote:

 Hi there,

 I am trying to monitor my GWT 2.x application traffic within my
 development environment. I have installed Wireshark and it seems to be
 running correctly however I do not see any traffic showing up in it
 when using my app. It seems that Wireshark will not monitor traffic on
 the loopback ip 127.0.0.1 (which is what the GWT development
 environment uses). So I tried just changing the development
 environment URL from...

 http://127.0.0.1:/TestApp.html?gwt.codesvr=127.0.0.1:9997

 ...to...

 http://My Machine IP:/TestApp.html?gwt.codesvr=My Machine IP:
 9997

 ...but this did not work - the application did not even load.

 Does anyone have a workaround for this?

 Thanks,

 Micky

 --
 You received 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: Monitor GWT 2.x application traffic using packet analyzer

2010-10-04 Thread Micky
Apparently loopback interfaces are not available on Windows platforms
(according to the Wireshark Help and this page
http://wiki.wireshark.org/CaptureSetup/Loopback).

The -bindAddress switch did the trick. Thanks.

On Oct 4, 4:58 pm, Chris Conroy con...@google.com wrote:
 you can pass -bindAddress to bind to a different interface (0.0.0.0 to bind
 to *). Also, Wireshark is perfectly capable of capturing traffic on on
 127.0.0.1. You just need to set the interface to lo (loopback) rather than
 your actual NIC.

 On Mon, Oct 4, 2010 at 4:44 PM, Micky micky.johns...@gmail.com wrote:
  Hi there,

  I am trying to monitor my GWT 2.x application traffic within my
  development environment. I have installed Wireshark and it seems to be
  running correctly however I do not see any traffic showing up in it
  when using my app. It seems that Wireshark will not monitor traffic on
  the loopback ip 127.0.0.1 (which is what the GWT development
  environment uses). So I tried just changing the development
  environment URL from...

 http://127.0.0.1:/TestApp.html?gwt.codesvr=127.0.0.1:9997

  ...to...

  http://My Machine IP:/TestApp.html?gwt.codesvr=My Machine IP:
  9997

  ...but this did not work - the application did not even load.

  Does anyone have a workaround for this?

  Thanks,

  Micky

  --
  You received 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 (2.0.4) Dev Mode and/or Plugins are Crashing, Debug How???

2010-10-04 Thread Andrew Hughes
Hi Again,

Sadly our application now appears to crash dev mode and/or the browser
plugin(s). The lack of visibility we have means I don't really know where
the problem lies. This is impeding development dramatically.

The only observations I can see is that:

* Windows reports that the 'The browser plugin has crashed' with that
annoying Report this... message. But there's no human readably information.
This happens for both Chrome and FF, IE8 seems to be more reliable but I
can't really develop this way (no firebug or chrome dev console).

* Also, the only log/exception I get in the dev mode console is a (near
uselesss) RemoteThreadDeath exception...

00:09:02.510 [ERROR] Uncaught exception escaped

com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote connection lost
at 
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1731)
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor232.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at 
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.SocketException: Connection reset by peer: socket
write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at 
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at java.io.DataOutputStream.flush(DataOutputStream.java:106)
at 
com.google.gwt.dev.shell.BrowserChannel$ReturnMessage.send(BrowserChannel.java:1341)
at 
com.google.gwt.dev.shell.BrowserChannel$ReturnMessage.send(BrowserChannel.java:1346)
at 
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1717)
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor232.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at 
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)


I've tried increasing the logging level on dev mode, this just crashes
things sooner but doesn't produce any more meaningful logs.

Anyone got any suggestions to try and give some visibility on things? I have
my suspicions as to what the problem might be but I'd rather not make any
ASSumptions here ;)

Cheers for reading.

-- 
You received this message because you are subscribed to 

Re: API design rant!

2010-10-04 Thread Jeff Schnitzer
My rant about GXT:
http://groups.google.com/group/google-web-toolkit/msg/693cacbce437d08a

The summary:  GXT was a waste of $600 and one month of my time.

Please don't emulate GXT.

Jeff

On Thu, Sep 30, 2010 at 5:14 AM, Slava Lovkiy slava.lov...@gmail.com wrote:
 I am 100% agree about GXT Api as being not extensible, causing to
 produce parallel suite of widgets.

 On Sep 30, 3:39 am, Jeff Larsen larse...@gmail.com wrote:
 GWT may not have the most perfect API design, but saying GXT is a
 design to implement is laughable at best. GXT has just barely enough
 good things to make it worth using. BARELY. I keep their crappy
 library segregated behind interfaces and wrap all their even types
 waiting for the day I can rip that giant pile of crap out of my
 project.

 Tell me without going to the docs or drilling into their source what
 events a GXT button can handle. You can't by just looking at their
 API.  You want to extend some of their controls, you're screwed
 because they, for not reason I'm able to discern, have tons of private
 variables with no getter/setter. If you want slow crappy code where
 you're constantly forced to go to the documentation then use GXT. If
 you want to extend one of their classes you could easily be copy/
 pasting a ton of their code/heirarchy in order to get some minimal
 functionality included.

 On Sep 29, 9:06 am, markM mark.a.mccon...@pfizer.com wrote:

  I think we often times forget too that folks are producing these
  products for us for free.  One can always pay for GWT EXT if they
  like.

  On Sep 28, 12:38 pm, Brett Thomas brettptho...@gmail.com wrote:

   Not to mention none of those three things have to do with API Design...

   On Tue, Sep 28, 2010 at 12:01 PM, Thomas Broyer t.bro...@gmail.com 
   wrote:

On Sep 28, 4:29 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote:
 Well, look at the JavaDoc for extended by
 com.google.gwt.dom.client.Style.Unit (AKA Style.Unit).  I don't think
 it's possible to write worse Documentation than that, other than
 perhaps writing something that is actively and consistently wrong.

Which doc are you talking about? the CSS length units part? (what
more should it say? if you don't know what a CSS length unit is, you'd
better stop doing web dev; or start learning CSS) the values and
valueOf part? (they're not in the code, they come with the enum
type, just like extends java.lang.EnumStyle.Unit)

 I assume people actually test code before it gets added to the
 project.  I assume those text cases are a pretty through workout of
 all the code's claimed features.  It's an Open Source project, so I
 assume there's no commercial reason to keep those test cases hidden.

You mean these test cases?

   http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/...

 Given that, why are there no *LayoutPanels in Showcase?

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

--
You received 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.-Hidequoted 
   text -

   - Show quoted text -

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-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: Cannot create new web applications.

2010-10-04 Thread Y2i
Strange, I didn't have such problem in Win 7 and Ubuntu 10.04 64-bit.
Can you verify that the GWT plugin is installed?
Help-Install New Software, then click What is already isntalled?
link

On Oct 1, 10:03 pm, Justin Lilly justinli...@gmail.com wrote:
 I just downloaded eclipse v3.6 (Helios), Java EE version. I then added
 the google repository athttp://dl.google.com/eclipse/plugin/3.6to my
 possible installation places, selected all downloads (which included
 the google plugin for eclipse as well as the appengine and gwt sdk).

 I'm attempting to follow through with the tutorial, but there is no
 Create new web application selection available in my new project
 dialog box. Yes, I already looked in the other section too.

 I'm on 64 bit windows 7, with 64 bit eclipse. Any help would be
 greatly appreciated.

  -justin

-- 
You received 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: Minimalistic JPA in GWT 2.1.0.M3

2010-10-04 Thread Jin
Hi Yuri,

I went through similar issues trying to get GWT to work with JPA.

I would imagine that Jetty does *not* support JPA - I'm using
Glassfish Enterprise Server with my GWT app for JEE / JPA support.
Glassfish is open source and commercial support can be purchased if
that's needed.

I've been able to use injection using annotations (@PersistenceContext
etc).

My GWT and JEE code are in the same project - when I had them in
separate projects I had problems getting them to talk.

Have lots of battle scars from this one, so let me know if you have
any other questions =)

Cheers,

Jin

On Oct 4, 6:14 pm, Y2i yur...@gmail.com wrote:
 I read through Java Persistence API spec and finally was able to make
 a resource-local entity manager work.  persistence.xml went to WEB-INF/
 classes/META-INF.

 I'd like to able to use a container-managed entity manager through
 injection, but I'm not sure if it is possible at all using a plain web
 container (Jetty).  It looks as if I need to add some sort of an EE
 container on top of Jetty, but I'm not sure where to start from.  My
 persistence unit already uses JTA-aware data source
 (com.atomikos.jdbc.AtomikosDataSourceBean +
 org.postgresql.xa.PGXADataSource), but when I try to use
 @PersistenceContext or @PersistenceUnit, injection does not happen.  I
 would really appreciate it if someone could please help me understand
 where I should look next.

 Thanks in advance!
 Yuri

 On Sep 30, 11:52 pm, Y2i yur...@gmail.com wrote:



  persistence.xml has persistence-unit name=Domain.
  I tried @PersistenceContext, @PersistenceUnit and
  Persistence.createEntityManagerFactory() without any result.
  The problem is it does not matter what I type in persistence.xml,
  jetty does not see the file.
  I'm doing something fundamentally wrong, I'll try this again tomorrow
  with a fresh head.
  Thanks for sticking with me!

  On Sep 30, 11:33 pm, lineman78 linema...@gmail.com wrote:

   Does your persistence.xml have the following:

    persistence-unit name=Domain

   and using the following in your session bean:

   @PersistenceContext(unitName=Domain)
     EntityManager em;

   On Sep 30, 11:08 pm, Y2i yur...@gmail.com wrote:

Thanks for the reply.  I'm doing something wrong because I'm getting
the same error even when I place persistence.xml to /war/META-INF.
javax.persistence.PersistenceException: No Persistence provider for
EntityManager named Domain

The exception is thrown in both hosted and stand-alone mode.  I'll try
to configure JTA transactions first before doing anything else with
the JPA.

On Sep 30, 6:15 pm, lineman78 linema...@gmail.com wrote:

 persistence.xml should be located in /war/META-INF

 On Sep 30, 4:28 pm, Y2i yur...@gmail.com wrote:

  Client's requests go the server through RequestFactoryServlet.
  My service objects (those annotated with
  @Service(SomeDomainClass.class) on the client side are being called
  fine.
  When a service method explicitly creates an entity and returns it to
  the client, the request returns without problems.

  The problem occurs as soon as I start using JPA
  I use EclipseLink 2.1.0.  The transaction type is Resource Local for
  now

  When I try to eject EntityManager using @PersistenceContext, it is
  always null.
  When I try to get the factory using
  Persistence.createEntityManagerFactory(Domain), the call would 
  throw
  javax.persistence.PersistenceException: No Persistence provider for
  EntityManager named Domain

  It seems that nether GWT hosted server nor deployment server
  (jetty-6.1.23, same as hosted server) see persistence.xml file.  It
  does not matter what I type inside persistence.xml - the error is 
  the
  same, as though it is not picked up by the server at all.

  Any help, especially where to place persistance.xml for a GWT 
  project,
  would be greatly appreciated.  Thanks in advance.
  Yuri

-- 
You received 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: Weird error on RPC calls

2010-10-04 Thread Jin
Hi,

Are you intending for ActualModelData to extend MyModelData rather
than ModelData?

The code snippet seems to show it extending ModelData, which is
implemented by MyModelData.

So the ActualModelData class will run the setOldData method from
ModelData rather than the  setOldData method from MyModelData.

Cheers,

Jin

On Oct 4, 11:29 pm, Quincy quincy@gmail.com wrote:
 Hi, I'm encountering a problem that I can't work out related to RPC
 and inheritence - the instance variable in my parent class didn't get
 serialized. I'm using GXT for my project. Below are my code snipplet:

 /* The data that are transmitted over the wire */
 public abstract class MyModelData implements ModelData {
   private String oldData = null;

   protected String setOldData(String s) { oldData = s; }

 }

 public class ActualModelData extends ModelData implements Serializable
 {
   private String someData = null;
   // some other strings as well

   public ActualModelData() { super(); }

   /* basically lets me change the primary key */
   public void setData(String s) {
     setOldData(someData);
     oldData = s;
   }
   // Other getters/setters as required by ModelData

 }

 /* Server */
 // ...the interfaces as required
 // inside MyServiceImpl:
 bool change(ActualModelData serverData) {
 // do stuff

 }

 /* Client */
 public class MyUI extends LayoutContainer {
   // ...
   // ActualModelData clientData; -- instance variable originally came
 from server
   clientData.setData(blah);
   myService.change(clientData, new AsyncCallbackBoolean() {
                         public void onFailure(Throwable error) {}
                         public void onSuccess(Boolean result) {}
   });

 The problem: serverData.oldData == null (both hosted and compiled
 modes)

 I've stepped through the code in Eclipse:
 In the client code, the clientData.oldData is definitely correctly set
 when the change method was called (and was subsequently reset to
 null elsewhere in the client code).
 On the server side, serverData.oldData is null - I've even stepped
 through the code before mine, and found that the String requestPayload
 in RemoteServiceServlet.processPost(HttpServletRequest,
 HttpServletResponse) doesn't contain any trace of the oldData value
 (don't know how to read that string, but I've found the substring
 representing the class type, followed by the known values of non-null
 instance variables in ActualModelData).

 I've tried deleting the folder with the hosted.html and the *.gwt.rpc
 files and getting Eclipse to rebuild them, but the problem persists.
 I'm now not show how to proceed other than flattening the class
 structure (I can remove the hierarchy but then I won't be able to use
 a single data grid to edit all my data types).

 GWT version: 2.0.4
 GWT Designer version: 8.0.0
 AppEngine: 1.3.7
 GXT version: 2.20
 JRE: 1.6.0_20

 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: Access Bean (POJO) classes at Client Side

2010-10-04 Thread Parth
Hi Didier,

Thanks for the reply.

I tried the example. It works fine. I made a mistake to send Bean
class to client side.
I was using Bean class of server side to pass from Implementing class
at server.

Thanks,
Parth.

On Oct 1, 9:11 pm, Didier DURAND durand.did...@gmail.com wrote:
 Hi,

 Aclassis transcoded by default when either in client or shared.
 So, you're ok on this side.

 Would you provide some details (code snippets) about what you try to
 achieve to be able to better understand ?
 didier

 On Oct 1, 2:35 pm, Parth parthbhaga...@gmail.com wrote:

  Hi,

  I put thatclassin client. But, I don't have any idea, what will
  happen when anyclassbe put in shared.

  Thanks.

  On Oct 1, 11:30 am, Didier DURAND durand.did...@gmail.com wrote:

   Hi,

   Did you place it in package name shared so that it gets transcoded
   to js ?
   didier

   On Oct 1, 6:23 am, Parth parthbhaga...@gmail.com wrote:

Hi all,

I am using GWT 2.0.4. I am not able to use user defined instance of
   classdefined even at client side. I am able toaccessdata using JSON
object with JSNI at client side. But not found any way to pass object
of  user definedclasssuch asBeanclassat client side in EntryPoint
   class. I had also tried it by implementing serializable interface to
theclasswhich I want at EntryPoint. But not got intended result.

Do any one have idea about that?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Monitor GWT 2.x application traffic using packet analyzer

2010-10-04 Thread Georg Sendt
Why dont you add some filter to your web.xml and use java to inspect
your incoming/outgoing data?

Regards,

Georg

On 4 Okt., 22:44, Micky micky.johns...@gmail.com wrote:
 Hi there,

 I am trying to monitor my GWT 2.x application traffic within my
 development environment. I have installed Wireshark and it seems to be
 running correctly however I do not see any traffic showing up in it
 when using my app. It seems that Wireshark will not monitor traffic on
 the loopback ip 127.0.0.1 (which is what the GWT development
 environment uses). So I tried just changing the development
 environment URL from...

 http://127.0.0.1:/TestApp.html?gwt.codesvr=127.0.0.1:9997

 ...to...

 http://My Machine IP:/TestApp.html?gwt.codesvr=My Machine IP:
 9997

 ...but this did not work - the application did not even load.

 Does anyone have a workaround for this?

 Thanks,

 Micky

-- 
You received 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-contrib] Sub entities not being filled in

2010-10-04 Thread Ray Cromwell
Thanks Sam, yeah, this is a big bad bug.

On Sun, Oct 3, 2010 at 9:33 PM, Sam Gross colesb...@gmail.com wrote:

 I also ran into a bug today where sub entities were not always
 deserialized.  The problem is in that entries in related objects may
 refer to entities that haven't been deserialized yet if the referenced
 entities occur later in related objects.

 Splitting AbstractRequestContext.processReturnRecord so that it first
 creates all the proxies before mutating any of them seemed to fix the
 problem.

 -Sam

 On Sun, Oct 3, 2010 at 9:47 PM, Patrick Julien pjul...@gmail.com wrote:
  I'm still having difficulties even with this syntax, again the
  collections seem to be the problem
 
  so having offices give me back all my offices.
 
  but putting offices.address, or offices.office.address or
  office.address still gives me null
 
  On Sun, Oct 3, 2010 at 9:07 PM, Ray Cromwell cromwell...@gmail.com
 wrote:
 
  the syntax of with() is with(property.subProperty.subSubProperty,
  property2.subProperty2.subPropertyProperty2). Bob can answer the
 question
  as to how to make deeply composited editors do the right thing.
 
  On Sun, Oct 3, 2010 at 6:02 PM, Patrick Julien pjul...@gmail.com
 wrote:
 
  No, it's not just me, anything one level deep doesn't get picked up.
 
  So my offices also have on address and it's not in the getPath() array
  either.  Even if it was, what's the syntax for sub path elements?
 
  On Sun, Oct 3, 2010 at 8:38 PM, Patrick Julien pjul...@gmail.com
 wrote:
   Getting there.  So now getPaths() gets me the data for my offices and
   patients but not the phones inside the offices.
  
   Since offices is using my own composite editor, I'm going to assume
   that's where the problem is
  
   On Sun, Oct 3, 2010 at 8:22 PM, BobV b...@google.com wrote:
   On Sun, Oct 3, 2010 at 7:24 PM, Patrick Julien pjul...@gmail.com
   wrote:
   Yeah, because even with using with().  The problem is the entire
   object graph isn't there
  
   So I have a practice that has offices and each office has phones.
  
   So if I ask for offices.  It fills in the offices but the phones
   inside it are not.  This could get laborious if I need to do this
   manually for each editing activity
  
   Use RequestFactoryEditorDriver.getPaths();
  
  
   interface MyOfficeDriver extends
   RequesFactoryEditorDriverOfficeProxy, OfficeEditor {}
  
   MyOfficeDriver driver = GWT.create(MyOfficeDriver.class);
   driver.initialize(requestFactory, editor);
  
  
 requestFactory.officeService().fetchOffice(1234).with(driver.getPaths()).to(receiver).fire();
  
  
   --
   Bob Vawter
   Google Web Toolkit Team
  
   --
   http://groups.google.com/group/Google-Web-Toolkit-Contributors
  
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors

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


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

Re: [gwt-contrib] Sub entities not being filled in

2010-10-04 Thread Patrick Julien
For the editor part, I can see in the generated code for my editor that

public static void traverseEditor(com.*.client.ui.EditorContainer
editor, String prefix, java.util.ListString paths) {
  }

is completely empty

but in this case, EditorContainer contains OfficeEditor because it's a
composite.  OfficeEditor has one AddressEditor and a
HasDataEditorPhone

so getPath() is currently buggy unless there's a way I can fill in my
own traverseEditor somehow

On Sun, Oct 3, 2010 at 9:47 PM, Patrick Julien pjul...@gmail.com wrote:
 I'm still having difficulties even with this syntax, again the
 collections seem to be the problem

 so having offices give me back all my offices.

 but putting offices.address, or offices.office.address or
 office.address still gives me null

 On Sun, Oct 3, 2010 at 9:07 PM, Ray Cromwell cromwell...@gmail.com wrote:

 the syntax of with() is with(property.subProperty.subSubProperty,
 property2.subProperty2.subPropertyProperty2). Bob can answer the question
 as to how to make deeply composited editors do the right thing.

 On Sun, Oct 3, 2010 at 6:02 PM, Patrick Julien pjul...@gmail.com wrote:

 No, it's not just me, anything one level deep doesn't get picked up.

 So my offices also have on address and it's not in the getPath() array
 either.  Even if it was, what's the syntax for sub path elements?

 On Sun, Oct 3, 2010 at 8:38 PM, Patrick Julien pjul...@gmail.com wrote:
  Getting there.  So now getPaths() gets me the data for my offices and
  patients but not the phones inside the offices.
 
  Since offices is using my own composite editor, I'm going to assume
  that's where the problem is
 
  On Sun, Oct 3, 2010 at 8:22 PM, BobV b...@google.com wrote:
  On Sun, Oct 3, 2010 at 7:24 PM, Patrick Julien pjul...@gmail.com
  wrote:
  Yeah, because even with using with().  The problem is the entire
  object graph isn't there
 
  So I have a practice that has offices and each office has phones.
 
  So if I ask for offices.  It fills in the offices but the phones
  inside it are not.  This could get laborious if I need to do this
  manually for each editing activity
 
  Use RequestFactoryEditorDriver.getPaths();
 
 
  interface MyOfficeDriver extends
  RequesFactoryEditorDriverOfficeProxy, OfficeEditor {}
 
  MyOfficeDriver driver = GWT.create(MyOfficeDriver.class);
  driver.initialize(requestFactory, editor);
 
  requestFactory.officeService().fetchOffice(1234).with(driver.getPaths()).to(receiver).fire();
 
 
  --
  Bob Vawter
  Google Web Toolkit Team
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors
 

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

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


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


[gwt-contrib] Re: Changes in com.google.gwt.app land to catch up to the RequestFactory (issue946802)

2010-10-04 Thread t . broyer


http://gwt-code-reviews.appspot.com/946802/diff/8001/9005
File user/src/com/google/gwt/app/place/CreateAndEditProxy.java (right):

http://gwt-code-reviews.appspot.com/946802/diff/8001/9005#newcode54
user/src/com/google/gwt/app/place/CreateAndEditProxy.java:54:
display.setWidget(null);
Er, really fall through to super.exit when cancelling a creation? (it
will goTo the details of the cancelled proxy!?)

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

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


[gwt-contrib] Re: Fixing a ConcurrentModificationException in JsonRequestProcessor that occurs when you use a sett... (issue945801)

2010-10-04 Thread jlabanca

committed as r8920

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

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


Re: [gwt-contrib] Sub entities not being filled in

2010-10-04 Thread Patrick Julien
Bob,

any suggestions for a work around for the moment?


On Mon, Oct 4, 2010 at 9:41 AM, Patrick Julien pjul...@gmail.com wrote:
 For the editor part, I can see in the generated code for my editor that

 public static void traverseEditor(com.*.client.ui.EditorContainer
 editor, String prefix, java.util.ListString paths) {
  }

 is completely empty

 but in this case, EditorContainer contains OfficeEditor because it's a
 composite.  OfficeEditor has one AddressEditor and a
 HasDataEditorPhone

 so getPath() is currently buggy unless there's a way I can fill in my
 own traverseEditor somehow

 On Sun, Oct 3, 2010 at 9:47 PM, Patrick Julien pjul...@gmail.com wrote:
 I'm still having difficulties even with this syntax, again the
 collections seem to be the problem

 so having offices give me back all my offices.

 but putting offices.address, or offices.office.address or
 office.address still gives me null

 On Sun, Oct 3, 2010 at 9:07 PM, Ray Cromwell cromwell...@gmail.com wrote:

 the syntax of with() is with(property.subProperty.subSubProperty,
 property2.subProperty2.subPropertyProperty2). Bob can answer the question
 as to how to make deeply composited editors do the right thing.

 On Sun, Oct 3, 2010 at 6:02 PM, Patrick Julien pjul...@gmail.com wrote:

 No, it's not just me, anything one level deep doesn't get picked up.

 So my offices also have on address and it's not in the getPath() array
 either.  Even if it was, what's the syntax for sub path elements?

 On Sun, Oct 3, 2010 at 8:38 PM, Patrick Julien pjul...@gmail.com wrote:
  Getting there.  So now getPaths() gets me the data for my offices and
  patients but not the phones inside the offices.
 
  Since offices is using my own composite editor, I'm going to assume
  that's where the problem is
 
  On Sun, Oct 3, 2010 at 8:22 PM, BobV b...@google.com wrote:
  On Sun, Oct 3, 2010 at 7:24 PM, Patrick Julien pjul...@gmail.com
  wrote:
  Yeah, because even with using with().  The problem is the entire
  object graph isn't there
 
  So I have a practice that has offices and each office has phones.
 
  So if I ask for offices.  It fills in the offices but the phones
  inside it are not.  This could get laborious if I need to do this
  manually for each editing activity
 
  Use RequestFactoryEditorDriver.getPaths();
 
 
  interface MyOfficeDriver extends
  RequesFactoryEditorDriverOfficeProxy, OfficeEditor {}
 
  MyOfficeDriver driver = GWT.create(MyOfficeDriver.class);
  driver.initialize(requestFactory, editor);
 
  requestFactory.officeService().fetchOffice(1234).with(driver.getPaths()).to(receiver).fire();
 
 
  --
  Bob Vawter
  Google Web Toolkit Team
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors
 

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

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



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


[gwt-contrib] Re: Making Showcase generate a hidden site map to Showcase to make it crawlable. Also ensuring that ... (issue952801)

2010-10-04 Thread kprobst

LGTM

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

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


[gwt-contrib] Fix 'ant dist-dev' and 'ant-doc' builds: (issue953801)

2010-10-04 Thread rice

Reviewers: fabbott,

Description:
Fix 'ant dist-dev' and 'ant-doc' builds:
1) Add memory to java heap for 'gwt.javac'
2) Break up a line in JsonResults that caused javac to exit
3) Remove an annotation in SafeHtmlHostedModeUtils that caused javadoc
to crash
4) Update the list of packages for which we generate javadoc
5) Clean up cellview/client/package.html file
6) Add safehtml/{client,shared}/package.html files


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

Affected files:
  M common.ant.xml
  M doc/build.xml
  M doc/packages.properties
  M  
user/src/com/google/gwt/requestfactory/client/impl/messages/JsonResults.java

  A user/src/com/google/gwt/safehtml/client/package.html
  M user/src/com/google/gwt/safehtml/shared/SafeHtmlHostedModeUtils.java
  A user/src/com/google/gwt/safehtml/shared/package.html
  M user/src/com/google/gwt/user/cellview/client/package.html


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


[gwt-contrib] Re: Fix 'ant dist-dev' and 'ant-doc' builds: (issue953801)

2010-10-04 Thread fabbott


http://gwt-code-reviews.appspot.com/953801/diff/1/5
File
user/src/com/google/gwt/requestfactory/client/impl/messages/JsonResults.java
(right):

http://gwt-code-reviews.appspot.com/953801/diff/1/5#newcode28
user/src/com/google/gwt/requestfactory/client/impl/messages/JsonResults.java:28:
// javac complains when this is all on one line
which javac, including revision?  Comment should probably say...

http://gwt-code-reviews.appspot.com/953801/diff/1/7
File
user/src/com/google/gwt/safehtml/shared/SafeHtmlHostedModeUtils.java
(right):

http://gwt-code-reviews.appspot.com/953801/diff/1/7#newcode112
user/src/com/google/gwt/safehtml/shared/SafeHtmlHostedModeUtils.java:112:
// The following annotation causes javadoc to crash:
Do we have any idea why??  It seems like we should have version
information, too.

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

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


[gwt-contrib] [google-web-toolkit] r8929 committed - Making Showcase generate a hidden site map to make it crawlable. Also ...

2010-10-04 Thread codesite-noreply

Revision: 8929
Author: gwt.mirror...@gmail.com
Date: Mon Oct  4 13:22:55 2010
Log: Making Showcase generate a hidden site map to make it crawlable. Also  
ensuring that the select box used to select source code always contains at  
least one option to work around an HtmlUnit innerHtml bug that affects  
crawlability.


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

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

Modified:
  
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/MainMenuTreeViewModel.java
  
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/Showcase.java
  
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseShell.java


===
---  
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/MainMenuTreeViewModel.java	 
Mon Sep 13 12:31:36 2010
+++  
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/MainMenuTreeViewModel.java	 
Mon Oct  4 13:22:55 2010

@@ -70,8 +70,10 @@

 import java.util.ArrayList;
 import java.util.HashMap;
+import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
+import java.util.Set;

 /**
  * The {...@link TreeViewModel} used by the main menu.
@@ -247,6 +249,21 @@
   public boolean isLeaf(Object value) {
 return value != null  !(value instanceof Category);
   }
+
+  /**
+   * Get the set of all {...@link ContentWidget}s used in the model.
+   *
+   * @return the {...@link ContentWidget}s
+   */
+  SetContentWidget getAllContentWidgets() {
+SetContentWidget widgets = new HashSetContentWidget();
+for (Category category : categories.getList()) {
+  for (ContentWidget example : category.examples.getList()) {
+widgets.add(example);
+  }
+}
+return widgets;
+  }

   /**
* Initialize the top level categories in the tree.
===
---  
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/Showcase.java	 
Mon Sep 13 12:31:36 2010
+++  
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/Showcase.java	 
Mon Oct  4 09:55:53 2010

@@ -26,17 +26,22 @@
 import com.google.gwt.event.logical.shared.ValueChangeEvent;
 import com.google.gwt.event.logical.shared.ValueChangeHandler;
 import com.google.gwt.i18n.client.LocaleInfo;
+import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
+import com.google.gwt.safehtml.shared.SafeHtmlUtils;
 import  
com.google.gwt.sample.showcase.client.MainMenuTreeViewModel.Category;

 import com.google.gwt.user.cellview.client.CellTree;
 import com.google.gwt.user.cellview.client.TreeNode;
 import com.google.gwt.user.client.History;
 import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.ui.HTML;
 import com.google.gwt.user.client.ui.RootLayoutPanel;
+import com.google.gwt.user.client.ui.RootPanel;
 import com.google.gwt.view.client.SelectionChangeEvent;
 import com.google.gwt.view.client.SingleSelectionModel;

 import java.util.ArrayList;
 import java.util.List;
+import java.util.Set;

 /**
  * Entry point classes define codeonModuleLoad()/code.
@@ -99,6 +104,7 @@
 final SingleSelectionModelContentWidget selectionModel = new  
SingleSelectionModelContentWidget();

 final MainMenuTreeViewModel treeModel = new MainMenuTreeViewModel(
 constants, selectionModel);
+SetContentWidget contentWidgets = treeModel.getAllContentWidgets();
 shell = new ShowcaseShell(treeModel);
 RootLayoutPanel.get().add(shell);

@@ -176,8 +182,30 @@
   ContentWidget content = (ContentWidget) category.getChildValue(0);
   selectionModel.setSelected(content, true);
 }
+
+// Generate a site map.
+createSiteMap(contentWidgets);
   }

+  /**
+   * Create a hidden site map for crawlability.
+   *
+   * @param contentWidgets the {...@link ContentWidget}s used in Showcase
+   */
+  private void createSiteMap(SetContentWidget contentWidgets) {
+SafeHtmlBuilder sb = new SafeHtmlBuilder();
+for (ContentWidget cw : contentWidgets) {
+  String token = getContentWidgetToken(cw);
+  sb.append(SafeHtmlUtils.fromTrustedString(a href=\# + token  
+ \

+  + token + /a));
+}
+
+// Add the site map to the page.
+HTML siteMap = new HTML(sb.toSafeHtml());
+siteMap.setVisible(false);
+RootPanel.get().add(siteMap, 0, 0);
+  }
+
   /**
* Set the content to the {...@link ContentWidget}.
*
===
---  
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseShell.java	 
Wed Sep 22 12:58:01 2010
+++  
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseShell.java	 
Mon Oct  4 09:55:53 2010

@@ -255,7 +255,15 @@
 tabStyle.setVisible(content.hasStyle());
 tabSource.setVisible(true);

-// Show the list of raw source files if there are any.
+/*
+ * Show the list of raw source files if there are any. We need to add  
at
+ * 

[gwt-contrib] Fix Eclipse / Checkstyle / Javadoc warnings (issue954801)

2010-10-04 Thread rice

Reviewers: jat,

Description:
Fix Eclipse / Checkstyle / Javadoc warnings


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

Affected files:
  M dev/core/src/com/google/gwt/core/ext/linker/SymbolData.java
  M dev/core/src/com/google/gwt/core/ext/typeinfo/TypeOracle.java
  M dev/core/src/com/google/gwt/dev/Precompile.java
  M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java
  M dev/core/src/com/google/gwt/dev/jjs/impl/OptimizerStats.java
  M dev/core/src/com/google/gwt/dev/json/JsonObject.java
  M dev/core/src/com/google/gwt/dev/json/JsonValue.java
  M dev/core/src/com/google/gwt/dev/resource/impl/ZipFileResource.java
  M dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java
  M dev/core/src/com/google/gwt/dev/util/editdistance/CharIndex.java
  M  
dev/core/src/com/google/gwt/dev/util/editdistance/GeneralEditDistances.java
  M  
dev/core/src/com/google/gwt/dev/util/editdistance/ModifiedBerghelRoachEditDistance.java
  M  
dev/core/src/com/google/gwt/dev/util/editdistance/MyersBitParallelEditDistance.java

  M dev/core/src/com/google/gwt/dev/util/editdistance/PatternBitmap.java
  M  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/PersonEditorWorkflow.java
  M  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/MentorSelector.java
  M  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/SummaryWidget.java
  M  
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpenseDetails.java
  M  
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/MobileExpenseEntry.java
  M  
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/MobileReportEntry.java
  M  
samples/expenses/src/main/java/com/google/gwt/sample/expenses/server/domain/Employee.java
  M  
samples/expenses/src/main/java/com/google/gwt/sample/expenses/server/domain/Expense.java
  M  
samples/expenses/src/main/java/com/google/gwt/sample/expenses/server/domain/Report.java

  M user/src/com/google/gwt/app/place/AbstractProxyListView.java
  M user/src/com/google/gwt/app/place/Activity.java
  M user/src/com/google/gwt/app/place/CreateAndEditProxy.java
  M user/src/com/google/gwt/app/place/EntityProxyKeyProvider.java
  M user/src/com/google/gwt/app/place/FindAndEditProxy.java
  M user/src/com/google/gwt/app/place/PlaceChangeEvent.java
  M user/src/com/google/gwt/app/place/PlaceChangeRequestEvent.java
  M user/src/com/google/gwt/app/place/Prefix.java
  M user/src/com/google/gwt/app/place/ProxyPlaceToListPlace.java
  M user/src/com/google/gwt/app/place/WithTokenizers.java
  M user/src/com/google/gwt/cell/client/ImageLoadingCell.java
  M user/src/com/google/gwt/editor/client/AutoBean.java
  M user/src/com/google/gwt/editor/client/AutoBeanVisitor.java
  M user/src/com/google/gwt/editor/client/EditorError.java
  M user/src/com/google/gwt/editor/client/impl/AbstractAutoBean.java
  M user/src/com/google/gwt/editor/client/testing/MockEditorChain.java
  M user/src/com/google/gwt/editor/rebind/model/EditorData.java
  M user/src/com/google/gwt/event/logical/shared/AttachEvent.java
  M user/src/com/google/gwt/event/shared/DefaultHandlerRegistration.java
  M user/src/com/google/gwt/event/shared/EventBus.java
  M user/src/com/google/gwt/event/shared/HandlerManager.java
  M user/src/com/google/gwt/i18n/client/CurrencyList.java
  M user/src/com/google/gwt/i18n/client/DateTimeFormatRenderer.java
  M user/src/com/google/gwt/i18n/client/Messages.java
  M user/src/com/google/gwt/i18n/client/impl/CurrencyDataImpl.java
  M user/src/com/google/gwt/logging/client/HtmlLogFormatter.java
  M user/src/com/google/gwt/logging/impl/FormatterImpl.java
  M user/src/com/google/gwt/logging/server/JsonLogRecordServerUtil.java
  M user/src/com/google/gwt/logging/server/RemoteLoggingServiceUtil.java
  M  
user/src/com/google/gwt/requestfactory/client/DefaultRequestTransport.java
  M  
user/src/com/google/gwt/requestfactory/client/RequestFactoryEditorDriver.java
  M  
user/src/com/google/gwt/requestfactory/client/impl/AbstractRequestFactory.java

  M user/src/com/google/gwt/requestfactory/client/impl/FindRequest.java
  M  
user/src/com/google/gwt/requestfactory/client/impl/SimpleEntityProxyId.java

  M user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java
  M user/src/com/google/gwt/requestfactory/server/Logging.java
  M user/src/com/google/gwt/requestfactory/server/SampleDataPopulator.java
  M user/src/com/google/gwt/requestfactory/shared/EntityProxy.java
  M user/src/com/google/gwt/requestfactory/shared/RequestContext.java
  M user/src/com/google/gwt/requestfactory/shared/RequestFactory.java
  M user/src/com/google/gwt/safehtml/client/SafeHtmlTemplates.java
  M user/src/com/google/gwt/safehtml/shared/SimpleHtmlSanitizer.java
  M user/src/com/google/gwt/text/shared/SimpleSafeHtmlRenderer.java
  M user/src/com/google/gwt/uibinder/client/UiChild.java
  M user/src/com/google/gwt/uibinder/client/UiHandler.java
  M 

[gwt-contrib] [google-web-toolkit] r8930 committed - Fix exit on cancel from create activity. Wasn't going to a...

2010-10-04 Thread codesite-noreply

Revision: 8930
Author: rj...@google.com
Date: Mon Oct  4 10:12:28 2010
Log: Fix exit on cancel from create activity. Wasn't going to a
new place, so you couldn't try to create again.

Also restore old behavior of not trying to save w/no changes,
didn't mean to delete it.

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

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

Modified:
 /trunk/user/src/com/google/gwt/app/place/AbstractProxyEditActivity.java
 /trunk/user/src/com/google/gwt/app/place/CreateAndEditProxy.java

===
--- /trunk/user/src/com/google/gwt/app/place/AbstractProxyEditActivity.java	 
Sun Oct  3 19:15:33 2010
+++ /trunk/user/src/com/google/gwt/app/place/AbstractProxyEditActivity.java	 
Mon Oct  4 10:12:28 2010

@@ -63,8 +63,7 @@
   }

   public String mayStop() {
-if (isWaiting()
-|| (editorDriver != null  editorDriver.flush().isChanged())) {
+if (isWaiting() || changed()) {
   return Are you sure you want to abandon your changes?;
 }

@@ -80,6 +79,10 @@
   }

   public void saveClicked() {
+if (!changed()) {
+  return;
+}
+
 setWaiting(true);
 editorDriver.flush().fire(new ReceiverVoid() {
   /*
@@ -157,6 +160,10 @@
   protected EntityProxyIdP getProxyId() {
 return (EntityProxyIdP) getProxy().stableId();
   }
+
+  private boolean changed() {
+return editorDriver != null  editorDriver.flush().isChanged();
+  }

   /**
* @return true if we're waiting for an rpc response.
===
--- /trunk/user/src/com/google/gwt/app/place/CreateAndEditProxy.java	Sun  
Oct  3 19:15:33 2010
+++ /trunk/user/src/com/google/gwt/app/place/CreateAndEditProxy.java	Mon  
Oct  4 10:12:28 2010

@@ -27,18 +27,20 @@
  */
 public abstract class CreateAndEditProxyP extends EntityProxy extends  
AbstractProxyEditActivityP {


-  private AcceptsOneWidget display;
   private final P proxy;
+  private final PlaceController placeController;
+  private ClassP proxyClass;

   public CreateAndEditProxy(ClassP proxyClass, RequestContext request,
   ProxyEditViewP, ? view, PlaceController placeController) {
 super(view, placeController);
 this.proxy = request.create(proxyClass);
+this.placeController = placeController;
+this.proxyClass = proxyClass;
   }

   @Override
   public void start(AcceptsOneWidget display, EventBus eventBus) {
-this.display = display;
 super.start(display, eventBus);
   }

@@ -51,10 +53,10 @@
   @Override
   protected void exit(boolean saved) {
 if (!saved) {
-  display.setWidget(null);
-}
-
-super.exit(saved);
+  placeController.goTo(new ProxyListPlace(proxyClass));
+} else {
+  super.exit(saved);
+}
   }

   @Override

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


[gwt-contrib] Re: Public: First take at GWT validation that actually validates on the client side. (issue863801)

2010-10-04 Thread bobv

LGTM, just comment / documentation nits.


http://gwt-code-reviews.appspot.com/863801/diff/32001/33004
File samples/common.ant.xml (right):

http://gwt-code-reviews.appspot.com/863801/diff/32001/33004#newcode100
samples/common.ant.xml:100: /classpath
Low priority: Can you extract this classpath as an ant environment
variable so it's not buried down in the target definition?

http://gwt-code-reviews.appspot.com/863801/diff/32001/33005
File samples/validation/build.xml (right):

http://gwt-code-reviews.appspot.com/863801/diff/32001/33005#newcode2
samples/validation/build.xml:2: !-- Must be compiled using jdk 1.6,
because hibernate needs jaxb --
What's the failure mode for this?  The GWT distribution is supposed to
be usable with a 1.5 install to support enterprise folks who can't
upgrade.  If it's just the server components of the sample app that
won't fire up, it's not a big deal.  If it means that you can't run the
GWT compiler to compile the app on 1.5, that's a problem.

http://gwt-code-reviews.appspot.com/863801/diff/32001/33006
File
samples/validation/src/com/google/gwt/sample/validation/Validation.gwt.xml
(right):

http://gwt-code-reviews.appspot.com/863801/diff/32001/33006#newcode20
samples/validation/src/com/google/gwt/sample/validation/Validation.gwt.xml:20:
inherits name='org.hibernate.validator.HibernateValidator'/
Since HibernateValidator also includes the Validation package, I think
you should drop the redundant import to reduce the huh? factor in the
sample app.

http://gwt-code-reviews.appspot.com/863801/diff/32001/33015
File user/build.xml (right):

http://gwt-code-reviews.appspot.com/863801/diff/32001/33015#newcode67
user/build.xml:67: pathelement
location=${gwt.tools.lib}/hibernate/validator/hibernate-validator-4.1.0.Final-sources.jar
/
Indentation looks off, could just be rietveld.

http://gwt-code-reviews.appspot.com/863801/diff/32001/33025
File user/src/org/hibernate/validator/HibernateValidator.gwt.xml
(right):

http://gwt-code-reviews.appspot.com/863801/diff/32001/33025#newcode1
user/src/org/hibernate/validator/HibernateValidator.gwt.xml:1: ?xml
version=1.0 encoding=UTF-8?
Add a comment in this file explaining when/how to import this module and
a readme file in same directory explaining why these files exist and any
maintenance directions.

http://gwt-code-reviews.appspot.com/863801/diff/32001/33044
File user/test/com/google/gwt/validation/example/client/AuthorTest.java
(right):

http://gwt-code-reviews.appspot.com/863801/diff/32001/33044#newcode53
user/test/com/google/gwt/validation/example/client/AuthorTest.java:53:
// public void testNotDefaultValidtor_EmptyNotDefualt() throws Exception
{
Instead of commenting out the code rename the method to
disabled_testXyzzy just to make sure the code doesn't rot from a
compilation standpoint.

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

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


Re: [gwt-contrib] Add Support for server side script selection in linker (issue941802)

2010-10-04 Thread Arthur Kalmenson
Wow, this is great! I'm guessing this means we can cut the startup
round trips to one? Is this going into GWT 2.1?

Exciting stuff.
--
Arthur Kalmenson



On Fri, Oct 1, 2010 at 6:09 PM,  unn...@google.com wrote:
 Reviewers: jgw,

 Description:
 Add Support for server side script selection in linker


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

 Affected files:
  A dev/core/src/com/google/gwt/core/ext/linker/impl/PermutationsUtil.java
  A
 dev/core/src/com/google/gwt/core/ext/linker/impl/PropertiesMappingArtifact.java
  A
 dev/core/src/com/google/gwt/core/ext/linker/impl/ResourceInjectionUtil.java
  M
 dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java
  M dev/core/src/com/google/gwt/core/ext/linker/impl/computeScriptBase.js
  M dev/core/src/com/google/gwt/core/ext/linker/impl/installLocationIframe.js
  A dev/core/src/com/google/gwt/core/ext/linker/impl/installScriptCommon.js
  A dev/core/src/com/google/gwt/core/ext/linker/impl/installScriptDirect.js
  A
 dev/core/src/com/google/gwt/core/ext/linker/impl/installScriptEarlyDownload.js
  M dev/core/src/com/google/gwt/core/ext/linker/impl/permutations.js
  M dev/core/src/com/google/gwt/core/ext/linker/impl/processMetas.js
  M dev/core/src/com/google/gwt/core/ext/linker/impl/waitForBodyLoaded.js
  M dev/core/src/com/google/gwt/core/linker/CrossSiteIframeLinker.java
  M dev/core/src/com/google/gwt/core/linker/CrossSiteIframeTemplate.js
  M dev/core/src/com/google/gwt/core/linker/SingleScriptLinker.java


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

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


[gwt-contrib] [google-web-toolkit] r8931 committed - Created a branch for the GWT 2.1 release.

2010-10-04 Thread codesite-noreply

Revision: 8931
Author: p...@google.com
Date: Mon Oct  4 13:53:40 2010
Log: Created a branch for the GWT 2.1 release.

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

Added:
 /releases/2.1

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


Re: [gwt-contrib] Sub entities not being filled in

2010-10-04 Thread Patrick Julien
As an update to this issue, I can confirm that I have an editor
working in another scenario where the depth level doesn't go beyond,
well, 1 I guess.

So I an editor, and it has a list in it but the list doesn't contain
other EntityProxy's

The two issues still remain:

driver.getPath() isn't able to completely scan an editor tree when it
contains CompositeEditor's that, they themselves, have more editors in
their hierarchy

It's not possible to request sub-properties when using collections
manually.  It just doesn't work.  The example I gave were trying to
get the name of an office inside a collection, putting

offices
office
offices.name
office.name
offices.office.name

just doesn't work.




On Mon, Oct 4, 2010 at 9:41 AM, Patrick Julien pjul...@gmail.com wrote:
 For the editor part, I can see in the generated code for my editor that

 public static void traverseEditor(com.*.client.ui.EditorContainer
 editor, String prefix, java.util.ListString paths) {
  }

 is completely empty

 but in this case, EditorContainer contains OfficeEditor because it's a
 composite.  OfficeEditor has one AddressEditor and a
 HasDataEditorPhone

 so getPath() is currently buggy unless there's a way I can fill in my
 own traverseEditor somehow

 On Sun, Oct 3, 2010 at 9:47 PM, Patrick Julien pjul...@gmail.com wrote:
 I'm still having difficulties even with this syntax, again the
 collections seem to be the problem

 so having offices give me back all my offices.

 but putting offices.address, or offices.office.address or
 office.address still gives me null

 On Sun, Oct 3, 2010 at 9:07 PM, Ray Cromwell cromwell...@gmail.com wrote:

 the syntax of with() is with(property.subProperty.subSubProperty,
 property2.subProperty2.subPropertyProperty2). Bob can answer the question
 as to how to make deeply composited editors do the right thing.

 On Sun, Oct 3, 2010 at 6:02 PM, Patrick Julien pjul...@gmail.com wrote:

 No, it's not just me, anything one level deep doesn't get picked up.

 So my offices also have on address and it's not in the getPath() array
 either.  Even if it was, what's the syntax for sub path elements?

 On Sun, Oct 3, 2010 at 8:38 PM, Patrick Julien pjul...@gmail.com wrote:
  Getting there.  So now getPaths() gets me the data for my offices and
  patients but not the phones inside the offices.
 
  Since offices is using my own composite editor, I'm going to assume
  that's where the problem is
 
  On Sun, Oct 3, 2010 at 8:22 PM, BobV b...@google.com wrote:
  On Sun, Oct 3, 2010 at 7:24 PM, Patrick Julien pjul...@gmail.com
  wrote:
  Yeah, because even with using with().  The problem is the entire
  object graph isn't there
 
  So I have a practice that has offices and each office has phones.
 
  So if I ask for offices.  It fills in the offices but the phones
  inside it are not.  This could get laborious if I need to do this
  manually for each editing activity
 
  Use RequestFactoryEditorDriver.getPaths();
 
 
  interface MyOfficeDriver extends
  RequesFactoryEditorDriverOfficeProxy, OfficeEditor {}
 
  MyOfficeDriver driver = GWT.create(MyOfficeDriver.class);
  driver.initialize(requestFactory, editor);
 
  requestFactory.officeService().fetchOffice(1234).with(driver.getPaths()).to(receiver).fire();
 
 
  --
  Bob Vawter
  Google Web Toolkit Team
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors
 

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

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



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


[gwt-contrib] Re: Fix verifyPositionStatic() to that RooPanel.get() is explicitly allowed, e.g. (issue931801)

2010-10-04 Thread fredsa

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

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


Re: [gwt-contrib] Sub entities not being filled in

2010-10-04 Thread BobV
Your feedback has been very helpful in finding out where the weak
points in our APIs and implementations are.

 driver.getPath() isn't able to completely scan an editor tree when it
 contains CompositeEditor's that, they themselves, have more editors in
 their hierarchy

I'm thinking about how to solve this one, since an uninitialized
CompositeEditor won't have any sub-editors to query.

 It's not possible to request sub-properties when using collections
 manually.  It just doesn't work.  The example I gave were trying to
 get the name of an office inside a collection, putting

RayC is looking at this.

-- 
Bob Vawter
Google Web Toolkit Team

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


Re: [gwt-contrib] Sub entities not being filled in

2010-10-04 Thread Ray Cromwell
The following test case passes:

public void testCollectionSubProperties() {
delayTestFinish(DELAY_TEST_FINISH);
simpleFooRequest().getSimpleFooWithSubPropertyCollection().with(
selfOneToManyField.fooField).fire(new ReceiverSimpleFooProxy() {
  @Override
  public void onSuccess(SimpleFooProxy response) {
assertEquals(I'm Here,

 response.getSelfOneToManyField().get(0).getFooField().getUserName());
  }
});
  }

on the server:
 public static SimpleFoo getSimpleFooWithSubPropertyCollection() {
SimpleFoo foo = new SimpleFoo();
SimpleFoo subFoo = new SimpleFoo();
SimpleFoo subSubFoo = new SimpleFoo();
subFoo.setFooField(subSubFoo);
subSubFoo.setUserName(I'm here);
subSubFoo.persist();
subFoo.persist();
foo.persist();
foo.setSelfOneToManyField(Arrays.asList(subFoo));
return foo;
  }

If you have a class that looks like this:

public class Company {
   ListOffice offices;
}

public class Office {
  Employee siteManager;
}

Then the correct way to query for siteManager is:

with(offices.siteManager)

With is a nothing more than a filter on names, it doesn't care if something
is a collection, or an entity, just whether or not the name matches.

-Ray

On Mon, Oct 4, 2010 at 2:32 PM, BobV b...@google.com wrote:

 Your feedback has been very helpful in finding out where the weak
 points in our APIs and implementations are.

  driver.getPath() isn't able to completely scan an editor tree when it
  contains CompositeEditor's that, they themselves, have more editors in
  their hierarchy

 I'm thinking about how to solve this one, since an uninitialized
 CompositeEditor won't have any sub-editors to query.

  It's not possible to request sub-properties when using collections
  manually.  It just doesn't work.  The example I gave were trying to
  get the name of an office inside a collection, putting

 RayC is looking at this.

 --
 Bob Vawter
 Google Web Toolkit Team

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


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

Re: [gwt-contrib] Sub entities not being filled in

2010-10-04 Thread Patrick Julien
On Mon, Oct 4, 2010 at 5:32 PM, BobV b...@google.com wrote:
 Your feedback has been very helpful in finding out where the weak
 points in our APIs and implementations are.

 driver.getPath() isn't able to completely scan an editor tree when it
 contains CompositeEditor's that, they themselves, have more editors in
 their hierarchy

 I'm thinking about how to solve this one, since an uninitialized
 CompositeEditor won't have any sub-editors to query.


You're using code generation for the other parts.  What I mean by that
is that you generate the method

public static void traverseEditor(com.*.client.ui.EditorContainer
editor, String prefix, java.util.ListString paths) {
 }

and that has content that was made at compile time, not run time.
Here, the editor you're looking for is right there in CompositeEditor

CompositeEditorT, C, E extends EditorC

So whatever E is the children.   Is that not suitable here also?

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


[gwt-contrib] attachevent.handler

2010-10-04 Thread Stephen Haberman
Hi,

We just updated to trunk to use the new AttachEvent (good timing,
thanks!), and a beginner GWT dev here expressed confusion at the
Handler interface. I explained its actually AttachEvent.Handler, an
inner interface. Which he then understood, but pointed at is not
consistent with the rest of the API, ClickHandler, etc.

I am prone to agree with him. Just FWIW.

- Stephen

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


[gwt-contrib] Re: Fixes to use Java 1.5 compatible JARs (issue939802)

2010-10-04 Thread Amit Manjhi
LGTM

On Mon, Oct 4, 2010 at 3:11 PM, rchan...@google.com wrote:

 Reviewers: amitmanjhi,

 Description:
 Fixes to use Java 1.5 compatible JARs

 Fixed DynaTableRf eclipse .classpath to use json-1.5.jar
 Fixed build scripts and eclipse classpaths to use java 1.5 compatible
 StreamHtmlParser JAR

 Review by: amitman...@google.com

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

 Affected files:
  M dev/build.xml
  M eclipse/samples/DynaTableRf/.classpath
  M eclipse/user/.classpath


 Index: dev/build.xml
 ===
 --- dev/build.xml   (revision 8929)
 +++ dev/build.xml   (working copy)
 @@ -100,7 +100,7 @@
   include name=htmlunit/htmlunit-r5940/htmlunit-r5940.jar /
   include
 name=htmlunit/htmlunit-r5940/htmlunit-core-js-r5940.jar /
   include name=nekohtml/nekohtml-1.9.13.jar /
 -  include
 name=streamhtmlparser/streamhtmlparser-jsilver-r10/streamhtmlparser-jsilver-r10-rebased.jar
 /
 +  include
 name=streamhtmlparser/streamhtmlparser-jsilver-r10/streamhtmlparser-jsilver-r10-1.5-rebased.jar
 /
   include name=xalan/xalan-2.7.1.jar /
   include name=xerces/xerces-2_9_1/serializer.jar /
   include name=xerces/xerces-2_9_1/xercesImpl-NoMetaInf.jar /
 @@ -124,7 +124,7 @@
   zipfileset src=${gwt.tools.lib}/jetty/jetty-6.1.11.jar /
   zipfileset src=${gwt.tools.lib}/icu4j/icu4j-4_4_1.jar /
   zipfileset
 src=${gwt.tools.lib}/protobuf/protobuf-2.2.0/protobuf-java-rebased-2.2.0.jar
 /
 -  zipfileset
 src=${gwt.tools.lib}/streamhtmlparser/streamhtmlparser-jsilver-r10/streamhtmlparser-jsilver-r10-rebased.jar
 /
 +  zipfileset
 src=${gwt.tools.lib}/streamhtmlparser/streamhtmlparser-jsilver-r10/streamhtmlparser-jsilver-r10-1.5-rebased.jar
 /
   zipfileset src=${gwt.tools.lib}/tomcat/ant-launcher-1.6.5.jar
 /
   zipfileset src=${gwt.tools.lib}/tomcat/catalina-1.0.jar /
   zipfileset
 src=${gwt.tools.lib}/tomcat/catalina-optional-1.0.jar /
 Index: eclipse/samples/DynaTableRf/.classpath
 ===
 --- eclipse/samples/DynaTableRf/.classpath  (revision 8929)
 +++ eclipse/samples/DynaTableRf/.classpath  (working copy)
 @@ -6,6 +6,6 @@
classpathentry combineaccessrules=false kind=src
 path=/gwt-user/
classpathentry kind=var
 path=GWT_TOOLS/lib/javax/validation/validation-api-1.0.0.GA.jar
 sourcepath=/GWT_TOOLS/lib/javax/validation/validation-api-1.0.0.GA-sources.jar/
classpathentry kind=var
 path=GWT_TOOLS/lib/javax/validation/validation-api-1.0.0.GA-sources.jar/
 -   classpathentry kind=var
 path=GWT_TOOLS/redist/json/r2_20080312/json.jar/
 +   classpathentry kind=var
 path=GWT_TOOLS/redist/json/r2_20080312/json-1.5.jar/
classpathentry kind=output path=war/WEB-INF/classes/
  /classpath
 Index: eclipse/user/.classpath
 ===
 --- eclipse/user/.classpath (revision 8929)
 +++ eclipse/user/.classpath (working copy)
 @@ -40,6 +40,6 @@
classpathentry exported=true kind=var
 path=GWT_TOOLS/lib/javax/validation/validation-api-1.0.0.GA-sources.jar/
classpathentry kind=var
 path=GWT_TOOLS/lib/jetty/jetty-6.1.11.jar
 sourcepath=/GWT_TOOLS/lib/jetty/jetty-6.1.11-src.zip/
classpathentry kind=var
 path=GWT_TOOLS/lib/guava/guava-r06/guava-r06-rebased.jar/
 -   classpathentry kind=var
 path=GWT_TOOLS/lib/streamhtmlparser/streamhtmlparser-jsilver-r10/streamhtmlparser-jsilver-r10-rebased.jar/
 +   classpathentry kind=var
 path=GWT_TOOLS/lib/streamhtmlparser/streamhtmlparser-jsilver-r10/streamhtmlparser-jsilver-r10-1.5-rebased.jar/
classpathentry kind=output path=bin/
  /classpath




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

[gwt-contrib] Fixes to use Java 1.5 compatible JARs (issue939802)

2010-10-04 Thread rchandia

Reviewers: amitmanjhi,

Description:
Fixes to use Java 1.5 compatible JARs

Fixed DynaTableRf eclipse .classpath to use json-1.5.jar
Fixed build scripts and eclipse classpaths to use java 1.5 compatible
StreamHtmlParser JAR

Review by: amitman...@google.com

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

Affected files:
  M dev/build.xml
  M eclipse/samples/DynaTableRf/.classpath
  M eclipse/user/.classpath


Index: dev/build.xml
===
--- dev/build.xml   (revision 8929)
+++ dev/build.xml   (working copy)
@@ -100,7 +100,7 @@
   include name=htmlunit/htmlunit-r5940/htmlunit-r5940.jar /
   include  
name=htmlunit/htmlunit-r5940/htmlunit-core-js-r5940.jar /

   include name=nekohtml/nekohtml-1.9.13.jar /
-  include  
name=streamhtmlparser/streamhtmlparser-jsilver-r10/streamhtmlparser-jsilver-r10-rebased.jar  
/
+  include  
name=streamhtmlparser/streamhtmlparser-jsilver-r10/streamhtmlparser-jsilver-r10-1.5-rebased.jar  
/

   include name=xalan/xalan-2.7.1.jar /
   include name=xerces/xerces-2_9_1/serializer.jar /
   include name=xerces/xerces-2_9_1/xercesImpl-NoMetaInf.jar /
@@ -124,7 +124,7 @@
   zipfileset src=${gwt.tools.lib}/jetty/jetty-6.1.11.jar /
   zipfileset src=${gwt.tools.lib}/icu4j/icu4j-4_4_1.jar /
   zipfileset  
src=${gwt.tools.lib}/protobuf/protobuf-2.2.0/protobuf-java-rebased-2.2.0.jar  
/
-  zipfileset  
src=${gwt.tools.lib}/streamhtmlparser/streamhtmlparser-jsilver-r10/streamhtmlparser-jsilver-r10-rebased.jar  
/
+  zipfileset  
src=${gwt.tools.lib}/streamhtmlparser/streamhtmlparser-jsilver-r10/streamhtmlparser-jsilver-r10-1.5-rebased.jar  
/
   zipfileset src=${gwt.tools.lib}/tomcat/ant-launcher-1.6.5.jar  
/

   zipfileset src=${gwt.tools.lib}/tomcat/catalina-1.0.jar /
   zipfileset  
src=${gwt.tools.lib}/tomcat/catalina-optional-1.0.jar /

Index: eclipse/samples/DynaTableRf/.classpath
===
--- eclipse/samples/DynaTableRf/.classpath  (revision 8929)
+++ eclipse/samples/DynaTableRf/.classpath  (working copy)
@@ -6,6 +6,6 @@
classpathentry combineaccessrules=false kind=src path=/gwt-user/
 	classpathentry kind=var  
path=GWT_TOOLS/lib/javax/validation/validation-api-1.0.0.GA.jar  
sourcepath=/GWT_TOOLS/lib/javax/validation/validation-api-1.0.0.GA-sources.jar/
 	classpathentry kind=var  
path=GWT_TOOLS/lib/javax/validation/validation-api-1.0.0.GA-sources.jar/
-	classpathentry kind=var  
path=GWT_TOOLS/redist/json/r2_20080312/json.jar/
+	classpathentry kind=var  
path=GWT_TOOLS/redist/json/r2_20080312/json-1.5.jar/

classpathentry kind=output path=war/WEB-INF/classes/
 /classpath
Index: eclipse/user/.classpath
===
--- eclipse/user/.classpath (revision 8929)
+++ eclipse/user/.classpath (working copy)
@@ -40,6 +40,6 @@
 	classpathentry exported=true kind=var  
path=GWT_TOOLS/lib/javax/validation/validation-api-1.0.0.GA-sources.jar/
 	classpathentry kind=var path=GWT_TOOLS/lib/jetty/jetty-6.1.11.jar  
sourcepath=/GWT_TOOLS/lib/jetty/jetty-6.1.11-src.zip/
 	classpathentry kind=var  
path=GWT_TOOLS/lib/guava/guava-r06/guava-r06-rebased.jar/
-	classpathentry kind=var  
path=GWT_TOOLS/lib/streamhtmlparser/streamhtmlparser-jsilver-r10/streamhtmlparser-jsilver-r10-rebased.jar/
+	classpathentry kind=var  
path=GWT_TOOLS/lib/streamhtmlparser/streamhtmlparser-jsilver-r10/streamhtmlparser-jsilver-r10-1.5-rebased.jar/

classpathentry kind=output path=bin/
 /classpath


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


[gwt-contrib] Re: Making Showcase generate a hidden site map to Showcase to make it crawlable. Also ensuring that ... (issue952801)

2010-10-04 Thread jlabanca

committed as r8929

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

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


[gwt-contrib] Changes the default row count of HasDataPresenter from Integer.MIN_VALUE to a more reasonable 0.... (issue950802)

2010-10-04 Thread jlabanca

Reviewers: rice,

Description:
Changes the default row count of HasDataPresenter from Integer.MIN_VALUE
to a more reasonable 0. We use the boolean isRowCountExact to determine
if we actually have 0 rows, or just think we do.


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

Affected files:
  M user/src/com/google/gwt/user/cellview/client/HasDataPresenter.java
  M user/test/com/google/gwt/user/cellview/client/HasDataPresenterTest.java


Index: user/src/com/google/gwt/user/cellview/client/HasDataPresenter.java
===
--- user/src/com/google/gwt/user/cellview/client/HasDataPresenter.java	 
(revision 8928)
+++ user/src/com/google/gwt/user/cellview/client/HasDataPresenter.java	 
(working copy)

@@ -269,7 +269,7 @@
*/
   private boolean pageStartChangedSinceRender;

-  private int rowCount = Integer.MIN_VALUE;
+  private int rowCount = 0;

   private boolean rowCountIsExact;

@@ -950,7 +950,7 @@
   private void updateLoadingState() {
 int cacheSize = rowData.size();
 int curPageSize = isRowCountExact() ? getCurrentPageSize() : pageSize;
-if (rowCount == 0) {
+if (rowCount == 0  rowCountIsExact) {
   view.setLoadingState(LoadingState.EMPTY);
 } else if (cacheSize = curPageSize) {
   view.setLoadingState(LoadingState.LOADED);
Index:  
user/test/com/google/gwt/user/cellview/client/HasDataPresenterTest.java

===
--- user/test/com/google/gwt/user/cellview/client/HasDataPresenterTest.java	 
(revision 8928)
+++ user/test/com/google/gwt/user/cellview/client/HasDataPresenterTest.java	 
(working copy)

@@ -351,6 +351,18 @@
 view.assertSelectedRows();
   }

+  public void testDefaults() {
+HasDataString listView = new MockHasDataString();
+MockViewString view = new MockViewString();
+HasDataPresenterString presenter = new  
HasDataPresenterString(listView,

+view, 10, null);
+
+assertEquals(0, presenter.getRowCount());
+assertFalse(presenter.isRowCountExact());
+assertEquals(0, presenter.getCurrentPageSize());
+assertEquals(new Range(0, 10), presenter.getVisibleRange());
+  }
+
   public void testGetCurrentPageSize() {
 HasDataString listView = new MockHasDataString();
 MockViewString view = new MockViewString();
@@ -884,10 +896,17 @@
 assertTrue(presenter.isRowCountExact());
 view.assertLoadingState(LoadingState.LOADING);

-// Set size to 0.
+// Set size to 0, but not exact. The state is loading until we know  
there is

+// no data.
 presenter.setRowCount(0, false);
 assertEquals(0, presenter.getRowCount());
 assertFalse(presenter.isRowCountExact());
+view.assertLoadingState(LoadingState.LOADING);
+
+// Set size to 0 and exact. Now we know the list is empty.
+presenter.setRowCount(0, true);
+assertEquals(0, presenter.getRowCount());
+assertTrue(presenter.isRowCountExact());
 view.assertLoadingState(LoadingState.EMPTY);
   }



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


[gwt-contrib] Adding examples for cell widgets and data providers. (issue955801)

2010-10-04 Thread jlabanca

Reviewers: rice,

Description:
Adding examples for cell widgets and data providers.


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

Affected files:
  A user/javadoc/com/google/gwt/examples/cell/CellExample.java
  A user/javadoc/com/google/gwt/examples/cell/EditableCellExample.java
  A user/javadoc/com/google/gwt/examples/cellview/CellBrowserExample.java
  A user/javadoc/com/google/gwt/examples/cellview/CellListExample.java
  A  
user/javadoc/com/google/gwt/examples/cellview/CellListValueUpdaterExample.java

  A user/javadoc/com/google/gwt/examples/cellview/CellTableExample.java
  A  
user/javadoc/com/google/gwt/examples/cellview/CellTableFieldUpdaterExample.java

  A user/javadoc/com/google/gwt/examples/cellview/CellTreeExample.java
  A user/javadoc/com/google/gwt/examples/cellview/SimplePagerExample.java
  A user/javadoc/com/google/gwt/examples/view/AsyncDataProviderExample.java
  A user/javadoc/com/google/gwt/examples/view/ListDataProviderExample.java
  M user/src/com/google/gwt/cell/client/AbstractCell.java
  M user/src/com/google/gwt/cell/client/AbstractEditableCell.java
  M user/src/com/google/gwt/cell/client/Cell.java
  M user/src/com/google/gwt/user/cellview/client/CellBrowser.java
  M user/src/com/google/gwt/user/cellview/client/CellList.java
  M user/src/com/google/gwt/user/cellview/client/CellTable.java
  M user/src/com/google/gwt/user/cellview/client/CellTree.java
  M user/src/com/google/gwt/user/cellview/client/SimplePager.java
  M user/src/com/google/gwt/view/client/AsyncDataProvider.java
  M user/src/com/google/gwt/view/client/ListDataProvider.java


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


[gwt-contrib] Fixed the serialization bug that the version numbers were not being sent back (issue930802)

2010-10-04 Thread amitmanjhi

Reviewers: robertvawter,

Description:
Fixed the serialization bug that the version numbers were not being sent
back
on an update (which impacts the event firing). Fixed the test and test
harness
(SimpleBar, SimpleFoo, SimpleFooString). The tests were only passing
purely due
to luck -- the serialization bug masked the test harness bug.

Patch by: amitmanjhi
Review by: robertvawter

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

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

  M user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java
  M  
user/test/com/google/gwt/requestfactory/server/JsonRequestProcessorTest.java

  M user/test/com/google/gwt/requestfactory/server/SimpleBar.java
  M user/test/com/google/gwt/requestfactory/server/SimpleFoo.java
  M user/test/com/google/gwt/requestfactory/server/SimpleFooString.java


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


Re: [gwt-contrib] Sub entities not being filled in

2010-10-04 Thread Patrick Julien
OK, this also works for me, where it breaks down is more collections

So I go back to practice, offices and phones

class Practice { private ListOffice offices; }
class Office { private ListPhone phones; }

practive is unique and has a list of offices

What I get back has all the practice seeded.  All the offices are
seeded and it has all its values but phones is null.

If I add offices.phones, it works, I get a non null list of phone
handles but the values on the handles are not set.

Now I manually add, in addition to offices.phones,
offices.phones.number the value of number is still null

I believe this respect the syntax you outlined here.  I can confirm on
the server in json request processor on the server that the phone
entities are there and have values when processed but the
subProperties map in RequestProperty is null so it returns false when
it tests if it should include these values or not



On Mon, Oct 4, 2010 at 5:46 PM, Ray Cromwell cromwell...@gmail.com wrote:

 The following test case passes:
 public void testCollectionSubProperties() {
     delayTestFinish(DELAY_TEST_FINISH);
     simpleFooRequest().getSimpleFooWithSubPropertyCollection().with(
         selfOneToManyField.fooField).fire(new ReceiverSimpleFooProxy() {
      �...@override
       public void onSuccess(SimpleFooProxy response) {
         assertEquals(I'm Here,

  response.getSelfOneToManyField().get(0).getFooField().getUserName());
       }
     });
   }
 on the server:
  public static SimpleFoo getSimpleFooWithSubPropertyCollection() {
     SimpleFoo foo = new SimpleFoo();
     SimpleFoo subFoo = new SimpleFoo();
     SimpleFoo subSubFoo = new SimpleFoo();
     subFoo.setFooField(subSubFoo);
     subSubFoo.setUserName(I'm here);
     subSubFoo.persist();
     subFoo.persist();
     foo.persist();
     foo.setSelfOneToManyField(Arrays.asList(subFoo));
     return foo;
   }
 If you have a class that looks like this:
 public class Company {
    ListOffice offices;
 }
 public class Office {
   Employee siteManager;
 }
 Then the correct way to query for siteManager is:
 with(offices.siteManager)
 With is a nothing more than a filter on names, it doesn't care if something
 is a collection, or an entity, just whether or not the name matches.
 -Ray
 On Mon, Oct 4, 2010 at 2:32 PM, BobV b...@google.com wrote:

 Your feedback has been very helpful in finding out where the weak
 points in our APIs and implementations are.

  driver.getPath() isn't able to completely scan an editor tree when it
  contains CompositeEditor's that, they themselves, have more editors in
  their hierarchy

 I'm thinking about how to solve this one, since an uninitialized
 CompositeEditor won't have any sub-editors to query.

  It's not possible to request sub-properties when using collections
  manually.  It just doesn't work.  The example I gave were trying to
  get the name of an office inside a collection, putting

 RayC is looking at this.

 --
 Bob Vawter
 Google Web Toolkit Team

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

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

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


[gwt-contrib] Re: Fixed the serialization bug that the version numbers were not being sent back (issue930802)

2010-10-04 Thread amitmanjhi

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

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


[gwt-contrib] Re: Changes the default row count of HasDataPresenter from Integer.MIN_VALUE to a more reasonable 0.... (issue950802)

2010-10-04 Thread rice

LGTM

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

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


[gwt-contrib] Fix ROO-1488 where forward references were not correctly resolved. (issue958801)

2010-10-04 Thread bobv

Reviewers: cromwellian, rjrjr,

Message:
I realized that the server never actually sends diffs, it just sends a
current snapshot of value fields, plus with() references for the return
object.  The problem just boils downs to ensuring that a canonical
entity is used when constructing the return-object graph.

Description:
Fix ROO-1488 where forward references were not correctly resolved.
Patch by: cromwellian, bobv
Review by: bobv, cromwellian


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

Affected files:
  M  
user/src/com/google/gwt/requestfactory/client/impl/AbstractRequestContext.java

  M user/src/com/google/gwt/requestfactory/client/impl/EntityCodex.java
  M user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java
  M user/test/com/google/gwt/requestfactory/server/SimpleFoo.java
  M user/test/com/google/gwt/requestfactory/shared/SimpleFooRequest.java


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