Enter key to change the focus from one TextInputCell to another in a celltable.

2012-07-25 Thread Nitin


In the cell table to have tab flow working, I had to do the 
following: 
cellTable.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED);

apart from changing the template of TextInputcell. This helped me in 
getting the tab flow working properly i.e. when I hit TAB the focus shifts 
to the next editable cell of the celltable.

But there is one more requirement in my project which says that the enter 
key should behave as the tab key and hence when we hit enter on a 
particular TextInputcell, the focus should move to the next TextInputcell 
of the celltable. Can anyone please help me with this?

I have tried lots of things to achieve this, but none is working. This is 
very urgent for the project. Please let me know, if you need more 
information on the issue.

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



Re: Application size due to Internationalization

2012-07-25 Thread Rana
Dear Tony,

Thanks for your suggestions. Yes, I did this. But the main issue I am 
unable to solve is the size of the code. It is too big to deploy on 
app.spot.

Many thanks
Rana

On Wednesday, July 18, 2012 5:05:24 PM UTC+2, Tony Rah wrote:

 I use a special DevModule.gwt.xml module during development that only 
 compiles the permutations I am interested in. This way I can control the 
 user agent, locale, and other GWT based switches without compromising the 
 production builds. Below is a rough overview of this approach:

 Create a new module file XXXDev.gwt.xml where XXX is the name of your 
 applications top level module used for production builds. You will inherit 
 your apps module from here. Set your various property overrides (e.g. 
 set-property name='user.agent' value='safari'/ and set-property 
 name='locale' value='en'/).

 I personally use Ant to build my project and created a separate dev target 
 that builds the dev module instead of the production module.

 Obviously, there are countless ways to orchestrate this but the basic idea 
 is that you only compile the permutations you care about while doing 
 development. You let an automated build/test system build the really big 
 production builds and perform all of the automated tests.

 Hope that helps...

 On Tuesday, July 17, 2012 6:19:10 AM UTC-6, Rana wrote:

 Hi,

 Does anyone have a solution to the huge size of application, when we 
 apply to it internationalization using the static method? We are supposed 
 to support 66 languages. The application takes a long time during 
 compilation and the size of the application is huge, we cannot upload it to 
 google app engine.

 Many thanks
 Rana



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



Re: Class not found Exception

2012-07-25 Thread Thomas Broyer
See http://code.google.com/p/google-web-toolkit/issues/detail?id=7527

On Wednesday, July 25, 2012 7:55:57 AM UTC+2, harish saharan wrote:

 Dear all,
  I am using GWT 2.5 RC and i am having 
  java.lang.ClassNotFoundException: com.google.gwt.core.client.GWTBridge  

 Can anyone help me on this problem 


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



Re: Application size due to Internationalization

2012-07-25 Thread Rana
Hi,
Many thanks, I will see if we are deploying the  class files in the jar.

Thanks a lot for the idea
Rana

On Wednesday, July 18, 2012 10:48:11 AM UTC+2, Richard wrote:

 Rana - are you combining class files into a jar? That'll help reduce the 
 file count for GAE, if that's an issue for you.

 Wishlist:
 upload the code/basic .classes, have GWT compilation happen on Google 
 infrastructure.

 On Wednesday, July 18, 2012 9:49:19 AM UTC+2, Rana wrote:

 Hi Joseph,

 Thanks a lot for the information. I will go through both links, and see 
 if it helps in solving the problem.

 Many thanks again
 Rana

 On Wednesday, July 18, 2012 3:07:48 AM UTC+2, Joseph Lust wrote:

 Rana,

 I've read that internal Google apps must build to 240 permutations for 
 the supported browsers and languages. To support this they:

- Conduct draft compilations only using their desired dev permutation
- Do complete compiles for releases/CI/test on a server farm

 There are instructions out there that do this sort of thing:

- gwt-distcc http://code.google.com/p/gwt-distcc/ 
- GWT Distributed Build 
 documentationhttp://code.google.com/p/google-web-toolkit/wiki/DistributedBuilds

 Of course you probably don't need to do a complete build that often (CI 
 machine, pre-release), so collapsing the permutations or just doing a 
 single permutation draft compile might suffice.


 Sincerely,
 Joseph



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



Re: Application size due to Internationalization

2012-07-25 Thread Thomas Broyer


On Wednesday, July 25, 2012 11:34:13 AM UTC+2, Rana wrote:

 Dear Tony,

 Thanks for your suggestions. Yes, I did this. But the main issue I am 
 unable to solve is the size of the code. It is too big to deploy on 
 app.spot.


Are you also trying to deploy some WEB-INF/deploy folder?
If you don't know what it's for, then you can safely keep it out (you can 
pass the -deploy argument to the GWT Compiler to output those files in a 
different folder, outside your WAR)

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



Re: XsrfTokenServiceServlet throws RpcTokenException: Invalid RPC token

2012-07-25 Thread Jens
The session cookie should always be present because of your login process. 
You don't need an XSRF token during login but once you have successfully 
authenticated (and thus a session id is available) the very first thing to 
do is to fetch a XSRF token from the server. So basically your login() and 
getNewXsrfToken() methods are not protected with an XSRF token.

Personally I like to have two apps, the first one is just a very small 
login app (not necessarily a GWT app) that does not use XSRF Tokens at all 
and the second app is the real GWT app. Once the real app starts the very 
first thing it does is to fetch an XSRF token and then use it for all other 
requests, like fetching the logged in user information which would probably 
the second thing to do. If I can't get an XSRF token for any reason I 
redirect to the login app.
In this scenario you could also use a dynamic host page for the real app 
and let the server dynamically include the XSRF token and user information 
right into the host page so you can read it with GWT using the Dictionary 
class. That would save some requests on app startup. But personally I don't 
do that for now.

-- J.

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



Re: Application size due to Internationalization

2012-07-25 Thread Rana
Hello Tony,

No, we don't seem to be putting things we don't need from WEB-INF/deploy, 
but we are supporting I think 66 languages. And they are making the 
application very big in size. That is why. Also, originally the application 
is big, we are doing mathematical drawing and calculations... that adds to 
the size as well, I think.

Best wishes
Rana

On Wednesday, July 25, 2012 11:43:37 AM UTC+2, Thomas Broyer wrote:



 On Wednesday, July 25, 2012 11:34:13 AM UTC+2, Rana wrote:

 Dear Tony,

 Thanks for your suggestions. Yes, I did this. But the main issue I am 
 unable to solve is the size of the code. It is too big to deploy on 
 app.spot.


 Are you also trying to deploy some WEB-INF/deploy folder?
 If you don't know what it's for, then you can safely keep it out (you can 
 pass the -deploy argument to the GWT Compiler to output those files in a 
 different folder, outside your WAR)


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



Re: Application size due to Internationalization

2012-07-25 Thread Rana
:) :) Sorry, I got confused with the posting area:

No, we don't seem to be putting things we don't need from WEB-INF/deploy, 
but we are supporting I think 66 languages. And they are making the 
application very big in size. That is why. Also, originally the application 
is big, we are doing mathematical drawing and calculations... that adds to 
the size as well, I think.

Best wishes
Rana

On Wednesday, July 25, 2012 11:43:37 AM UTC+2, Thomas Broyer wrote:



 On Wednesday, July 25, 2012 11:34:13 AM UTC+2, Rana wrote:

 Dear Tony,

 Thanks for your suggestions. Yes, I did this. But the main issue I am 
 unable to solve is the size of the code. It is too big to deploy on 
 app.spot.


 Are you also trying to deploy some WEB-INF/deploy folder?
 If you don't know what it's for, then you can safely keep it out (you can 
 pass the -deploy argument to the GWT Compiler to output those files in a 
 different folder, outside your WAR)


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



Re: GWTEventService listener triggers additional call each time the web application is displayed in the browser

2012-07-25 Thread Andrea Boscolo
Has been a while since I used the framework, but I suspect you do not 
'unlisten' events when you leave your application (see 
http://code.google.com/p/gwteventservice/wiki/ConnectionHandling), your 
session stays open and every time you reload the app a new listener is 
registered.
Anyway I'd suggest to update to GWTEventService 1.2 (much more recent) and 
ask directly in the project's group 
https://groups.google.com/forum/?fromgroups#!forum/gwteventservice

On Tuesday, July 24, 2012 10:58:13 PM UTC+2, gshepherd wrote:

 I have a web service bundled with my GWT app and I'm using GWTEventService 
 1.1.1.  I need for the client to be notified when a record is added to the 
 database via a web service call.  In the OnMonduleLoad I've added the event 
 listener and everything works as expected.  For example, an external call 
 comes into my web service to add a new user.  My listener gets triggered on 
 this event and updates the GUI accordingly.
  
 The problem occurs when I leave the URL of my application and then return 
 sometime later, every time I get a new web service request to add a user my 
 listener fires twice.  If I leave the URL again and return now it fires 
 three times and so on.  I've verified that I'm only adding the one listener 
 on startup, but I don't understand why my listener keeps triggering 
 additional times each time I leave my URL and return later.
  
 Any ideas would be greatly appreciated.  Thanks.


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



Re: XsrfTokenServiceServlet throws RpcTokenException: Invalid RPC token

2012-07-25 Thread dhoffer
Thanks Alex  Jens,

I have two separate applications where I'd like to use this approach
to protect against XSRF attacks.

In one of them I'm seeing this problem with GWT in hosted mode so
there is no login process at all.  Eventually it will be put inside of
an enterprise ear and will have a login process so given what you say
that will solve the problem...but I still need a solution for hosted
mode so I can develop/test.

In the other app I'm planning to use method level security with Spring
Security (AOP) so in this app there will not be a separate login app/
url process...it's just the GWT app.  Personally I don't like the JSF/
JSP approach of redirecting to separate URLs/etc because I want one
look for all of my GWT app not different for login/logout etc.  And
the redirect approach just doesn't seem to fit well in the RPC world.

Thanks!
-Dave

On Jul 25, 4:58 am, Jens jens.nehlme...@gmail.com wrote:
 The session cookie should always be present because of your login process.
 You don't need an XSRF token during login but once you have successfully
 authenticated (and thus a session id is available) the very first thing to
 do is to fetch a XSRF token from the server. So basically your login() and
 getNewXsrfToken() methods are not protected with an XSRF token.

 Personally I like to have two apps, the first one is just a very small
 login app (not necessarily a GWT app) that does not use XSRF Tokens at all
 and the second app is the real GWT app. Once the real app starts the very
 first thing it does is to fetch an XSRF token and then use it for all other
 requests, like fetching the logged in user information which would probably
 the second thing to do. If I can't get an XSRF token for any reason I
 redirect to the login app.
 In this scenario you could also use a dynamic host page for the real app
 and let the server dynamically include the XSRF token and user information
 right into the host page so you can read it with GWT using the Dictionary
 class. That would save some requests on app startup. But personally I don't
 do that for now.

 -- J.

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



Re: Enter key to change the focus from one TextInputCell to another in a celltable.

2012-07-25 Thread Thomas Broyer


On Wednesday, July 25, 2012 6:23:05 PM UTC+2, Nitin wrote:

 cellTable.addCellPreviewHandler() did the trick for me. 

 Now the issue is that, this method is getting called twice. Could someone 
 explain the reasons for the handler getting called twice?


When changing the focused element while processing a keyboard event, some 
browsers fire the event again on the newly focused element. That's probably 
the reason it's being called twice in your case.

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



Re: XsrfTokenServiceServlet throws RpcTokenException: Invalid RPC token

2012-07-25 Thread jhulford
If you are serving your nocache files with your app server you could make a 
simple http filter, associate it with nocache requests and establish a session 
in the filter's service method.  That way you know for certain you always have 
a session when your host page loads.  Since you have access to the hosted mode 
jetty web.xml too, the same thing could be done the fix that as well.

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



Re: Animating DockLayoutPanel widget size change

2012-07-25 Thread Thomas Broyer
It should be as easy as calling the animate() method.

Actually, all layout changes are queued and processed by a 
Scheduler#scheduleFinally command. animate() will change the behavior of 
that command to animate the layout changes.

On Wednesday, July 25, 2012 8:40:36 PM UTC+2, Shaun Tarves wrote:

 Hi -

 Is there any way to animate the setting of a widget size within the 
 DockLayoutPanel? For example, when hiding display regions, it's typical to 
 set a particular region of the DockLayoutPanel to null, or set its size to 
 0.

 I would like to animate the reappearance or disappearance of a widget 
 within the DockLayoutPanel, but can't seem to figure out how.

 Any ideas?


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



Re: Animating DockLayoutPanel widget size change

2012-07-25 Thread Shaun Tarves
Well, that was easy. I hadn't tried that, assuming
DockLayoutPanel.setWidgetSize() was happening immediately.

Thanks.

On Wed, Jul 25, 2012 at 2:58 PM, Thomas Broyer t.bro...@gmail.com wrote:

 It should be as easy as calling the animate() method.

 Actually, all layout changes are queued and processed by a
 Scheduler#scheduleFinally command. animate() will change the behavior of
 that command to animate the layout changes.


 On Wednesday, July 25, 2012 8:40:36 PM UTC+2, Shaun Tarves wrote:

 Hi -

 Is there any way to animate the setting of a widget size within the
 DockLayoutPanel? For example, when hiding display regions, it's typical to
 set a particular region of the DockLayoutPanel to null, or set its size to
 0.

 I would like to animate the reappearance or disappearance of a widget
 within the DockLayoutPanel, but can't seem to figure out how.

 Any ideas?

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/gTBVUic0yO8J.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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



Re: DevMode not working in Chrome after update

2012-07-25 Thread mdwarne
I am having the same issue, 
I have been able to install the plugin by dragging it into the extensions 
window, but it still will not load
Mac Lion with latest Chrome.

Anybody figure out what is wrong yet?

Thanks,
Mike.

On Tuesday, July 17, 2012 4:16:03 AM UTC-10, Andy wrote:

 I updated Chrome this morning and now when I try to use DevMode I get an 
 error Could not load GWT DevMode Plugin and an offer to Download the GWT 
 Developer Plugin. When I try to download it (it's already installed), it 
 says Extensions, apps, and user scripts can only be added from the Chrome 
 Web Store. and there's no GWT plugin in the store.

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



Re: Enter key to change the focus from one TextInputCell to another in a celltable.

2012-07-25 Thread Andrei
It's called on all events in all cells, i.e. Blur, MouseOver, Click, etc. 
Just add a check for the type of event you want to process, like

if (blur.equals(event.getNativeEvent().getType())) {
// do something with a cell that loses focus
}
if (focus.equals(event.getNativeEvent().getType())) {
// do something with a cell that receives focus
}

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



Loading time questions about: google +, facebook, google analytics, Jquerry...

2012-07-25 Thread regnoult axel
Hello,

I have added various scripts at the end of my project.html page :
 - Google analytics
 - Facebook Like Box
 - Google + badge

#1 - The problem is that the first time (and others) my app loads, I cannot 
access to my home page before theses scripts have finished to be *executed *or 
*downloaded *(at the bottom left corner of Chrome, it is written : Waiting 
for google api/facebook/google-analytics... ). Is it the normal behaviour 
? 

Any solution to load theses scripts after the main content (initial page) 
has been displayed ? 

#2 - When using PageSpeed Audit, many errors are related to facebook 
(oAuth...), is this related to a bad coding practice of their plugin ?.

#3 - I need some special effects, 
http://stackoverflow.com/questions/11623305/how-to-fix-a-div-or-a-panel-after-some-scroll-in-gwt
 and 
so I was debating about the use of JQuerry. Adding JQuerry is just a 
question of adding initial download isn't it ? Finally, I am thinking that 
adding 42 kB of code is not a matter of fact (comparated tot the 350 kB of 
my initial download), isn't it ?.

#4 -  I do not have any idea about how to compare my app to others (in term 
of initial download size). Is there a tool to know it ?
- Would GMAIL be more or less than 350kB at initial download ?
- Same question for Adsense ?

Thanks you,



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



Re: GWT 2.5-rc1 feature uirender is not working as expected.

2012-07-25 Thread Rodrigo Chandia
I think this patch (under review) fixes this issue:

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

On Tuesday, July 24, 2012 3:27:29 PM UTC-4, Rodrigo Chandia wrote:

 Hmm, this seems like a bug to me. Hopefully I'll have a fix ready for rc2.


 On Mon, Jul 23, 2012 at 11:11 PM, Vasu wrote:


 Yea  you are absolutely right. It worked when I removed type 
 attribute from ui:with  tag. I was wondering it has to identify type to 
 call respective methods on the same and I realized that it tries to match 
 the variable name with that of name of the parameter to render method 
 (which I marked in blue color in below code). 


 --
 interface MyUiRenderer extends UiRenderer {
 void render(SafeHtmlBuilder sb, *Person person*);
 }
 --
  



 So Finally working code looks like this.


 PersonCell.java

 --


 public class PearsonCell extends AbstractCellPerson {


 interface MyUiRenderer extends UiRenderer {
 void render(SafeHtmlBuilder sb, Person person);

 }

 private static MyUiRendererrenderer= 
 GWT.create(MyUiRenderer.class);

 @Override
 public void render(com.google.gwt.cell.client.Cell.Context context, 
 Person value, SafeHtmlBuilder sb) {
 renderer.render(sb, value);
 }

 }


 --

 PersonCell.ui.xml

 --

 ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
 ui:with field='person' /

 div
 First Name :
 span
 ui:text from='{person.getFname}' /
 /span
 p
 Last Name :
 span
 ui:text from='{person.getLname}' /
 /span
 /p
 p
 Email :
 span
 ui:text from='{person.getEmailid}' /
 /span
 /p
 /div
 /ui:UiBinder

 --

 Thanks Thomas for your valuable inputs. Without that it would have been 
 painful to identify the issue. 

 Thanks,
 -Pandurang.


 On Thursday, 19 July 2012 13:34:11 UTC+5:30, Thomas Broyer wrote:



 On Thursday, July 19, 2012 5:36:13 AM UTC+2, Vasu wrote:

 Yes you were right, it is instantiating new Person object. But if I try 
 to set Type to empty string validation fails and I cannot run the 
 application.


 I didn't mean to set it to the empty string, but to not use the 
 attribute: ui:with field=person /

  

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



Re: Google flight field

2012-07-25 Thread Gal Dolber
Its just a div with a datebox, 2 buttons and a bunch of css to make it
pretty

div
  d:DateBox /
  g:Button /
  g:Button /
/div

On Wed, Jul 25, 2012 at 5:47 PM, Twentyseven ebarthel...@gmail.com wrote:

 Hello,

 I've seen that the Google Flight page is made using GWT (
 https://www.google.com/flights/).
 I find the text field, date field, ... with the button inside very nice.

 How can I make this type of field using GWT ?

 Thank's,

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




-- 
A world citizen

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



Image (Blob type) with RequestFactory and GAE Datastore

2012-07-25 Thread ronifabio
I want persist small images (1 MB) as Blob in the GAE Datastore using 
RequestFactory. However, I noticed that the RequestFactory EntityProxys do 
not support byte [] or Blob.

How can I do this?

In the following topic mentions the alternative to save the image path in 
the Datastore. This would require the use of Blobstore to persist theses 
small images.

https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/qWXBHiUFDJU
 

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



GWT 2.5 change to provided=true for HTMLPanel

2012-07-25 Thread RyanZA
Previously in GWT 2.4 and below, this would work:

UI Binder:
g:HTMLPanel ui:field=myPanel /

Code:
@UiField (provided=true)
HTMLPanel myPanel;

myPanel = new HTMLPanel(foobar);


In GWT 2.5, this now gives an error:

(gwt source)
// Make sure that, if there is a UiField for this panel, it isn't
// (provided = true), as that isn't supported.
if (uiField != null  uiField.isProvided()) {
  writer.die(UiField %s for HTMLPanel cannot be provided., fieldName);
}


Just wondering why provided=true is no longer supported? AFAIK this was the 
purpose of provided=true in UiBinder?

I've now changed the code to have UiBinder create an HTMLPanel for me and 
then add my widget to it, but this gives an extra unneeded wrapping div in 
my HTML...

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



[GWT 2.5]

2012-07-25 Thread RyanZA
Previously in GWT 2.4, I was using uibinder's provided=true feature to add 
my own panels:

(uibinder code)
g:HTMLPanel ui:field=myPanel /

(java code)
@UiField (provided=true)
HTMLPanel myPanel;

In GWT 2.5, this no longer works and gives the error that it isn't 
supported:

(gwt source)
// Make sure that, if there is a UiField for this panel, it isn't
// (provided = true), as that isn't supported.
OwnerField uiField = writer.getOwnerClass().getUiField(fieldName);
if (uiField != null  uiField.isProvided()) {
  writer.die(UiField %s for HTMLPanel cannot be provided., fieldName);
}

I'm curious as to why this would be? Isn't the provided=true part of 
UiBinder meant to allow you to replace fields in your template?
I've changed it now to have UiBinder create the HTMLPanel for me, and then 
add my HTMLPanel to it after, but I get an extra wrapping div tag now. Is 
there a reason that HTMLPanel can no longer have provided=true ?

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



GWT RequestFactory Error when firing request : org.springframework.beans.factory.NoSuchBeanDefinitionException

2012-07-25 Thread Radu Chilom
I have a maven+spring+gwt project in which i want to use request factory. I 
just can't figure out why I get this exception.

Request factory:  


   public interface StarRequestFactory extends RequestFactory {

@Service(value = RaduService.class, locator = GWTServiceLocator.class)
public interface RaduRequestContext extends RequestContext {
   RequestVoid save( );
}
 
RaduRequestContext raduRequestcontext();
}

Service : 

public class RaduService {

  public void save(){
System.out.println(You have saved.);
  }

} 

Locator : 

public class GWTServiceLocator implements ServiceLocator,
ApplicationContextAware {
  private ApplicationContext context;

  @Override
  public Object getInstance(Class? clazz) {
  return context.getBean(clazz);
  }

  @Override
  public void setApplicationContext(ApplicationContext context)
  throws BeansException {
  this.context = context;
  }

}



In my entrypoint class i make the request :

requestFactory.raduRequestcontext().save().fire(new ReceiverVoid() {

@Override
public void onSuccess(Void response) {
System.out.println(Success);

}
});

On this request i get the following error : 


[ERROR] Iul 25, 2012 3:35:36 PM 
com.google.web.bindery.requestfactory.server.RequestFactoryServlet doPost
[ERROR] SEVERE: Unexpected error
[ERROR] org.springframework.beans.factory.NoSuchBeanDefinitionException: No 
unique bean of type 
[com.aievas.star.shared.services.StarRequestFactory$RaduRequestContext] is 
defined: expected single bean but found 0: 
[ERROR] at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:269)
[ERROR] at 
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1083)
[ERROR] at 
com.aievas.star.server.integration.GWTServiceLocator.getInstance(GWTServiceLocator.java:25)
[ERROR] at 
com.aievas.star.server.integration.GWTServiceLayerDecorator.createServiceInstance(GWTServiceLayerDecorator.java:43)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[ERROR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:601)
[ERROR] at 
com.google.web.bindery.requestfactory.server.ServiceLayerCache.getOrCache(ServiceLayerCache.java:233)
[ERROR] at 
com.google.web.bindery.requestfactory.server.ServiceLayerCache.createServiceInstance(ServiceLayerCache.java:117)
[ERROR] at 
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:451)
[ERROR] at 
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:225)
[ERROR] at 
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:127)
..

Does anyone know what is this about ?

I can post the pom if needed.

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



GWT future

2012-07-25 Thread AG
I'm an Architect and we have been looking to port our legacy HTML w/ Java 
Script based web app  (with java backend) to a next generation web 
application. We are a java shop so GWT is very popular with our developers 
and I have been so called GWT fan-boy all along.

However, lately I'm strongly considering moving away from GWT. Following 
are my observations that are scaring me to start looking for GWT 
alternatives:

1. Larry Page has been killing no-so-happening (or revenue generating) 
projects from google. I was reading that 30+ projects have already been 
killed/shelved ever since Larry became CEO.
  -- I understand the need for this and I also understand that GWT 
currently enjoys a healthy developer community. 

2. DART - Looks like its the next big thing within google to develop web 
applications. As a google outsider, at least this is what it seems like. 
Google IO 2012 has no sessions for GWT while DART had several and there is 
even a session to convert GWT apps to DART.

3. The latest update to Google Developer portal 
(http://developers.google.com) has no direct links to GWT. The web 
development section goes to chrome. 

I think the GWT team can address some of my concerns but it would be great 
if Google's management can stand behind GWT as a platform of choice for web 
development - similar to how Microsoft stands behind theirs development 
platforms. 

AG


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



Re: GWT PrecompressLinker Tomcat

2012-07-25 Thread Nitin Jadhav
You need to modify tomcat's server.xml configuration file as follows:

Connector port=8080 maxHttpHeaderSize=8192
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false redirectPort=8443 acceptCount=100
connectionTimeout=2 disableUploadTimeout=true
compression=on
  compressionMinSize=2048
  noCompressionUserAgents=gozilla, traviata
  compressableMimeType=text/html,text/xml, text/css,text/javascript/

notice compression attributes. set as per your requirements. You need to 
restart tomcat to get these in effect.

On Friday, 24 June 2011 12:56:50 UTC+5:30, pop.ionut84 wrote:

 Hi, 
 I've included the PrecompressLinker option in my gwt.xml file, build 
 the application and deploy to Tomcat. All generated js file have an 
 equivalent js.gz file, but Tomcat still uses non gzip files. 

 How can I tell Tomcat when a request comes for foo.js to check for the 
 existence of foo.js.gz and use it?

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



Classpath entries not considered when running GWT module from Eclipse

2012-07-25 Thread kalyan
I am using maven-gwt plugin to convert my existing ant GWT project to maven.

1. Added the gwt maven entry as below and ran mvn eclipse:clean 
eclipse:eclipse, but still GWT SDK is not getting added to the generated 
eclipse project
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdgwt-maven-plugin/artifactId
version2.4.0/version
executions
execution
goals
goalcompile/goal
/goals
/execution
/executions
/plugin

Work Around followed : add it directly from the Project -- Google -- 
WebToolKit

2. After doing work around, build is fine and now able to run the web 
application. But Spring-tx jar which is present in the buildpath is not 
copied/considered while launching the application using jetty and hence 
throwing errors validating the application-context xml file. Infact none of 
the jars in java build path(dependencies defined in pom.xml) are being 
picked for runtime by Eclipse when launching in Jetty. But when running mvn 
clean install, all jars are copied to the web-inf/lib directory properly

Can you please help on both the issues

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



Re: DevMode for Firefox 14

2012-07-25 Thread Quincy Hsieh
Thanks! Alan.

Very useful.

Alan Leung於 2012年7月18日星期三UTC+8上午8時08分06秒寫道:

 While I am technically no longer on the team, I got curious and started 
 looking at the FF14 changes.

 There were some slight changes in the JS Object layout again but they seem 
 easy enough to fix.

 I have built it for Linux 32 bit: http://acleung.com/ff14-linux32.xpi

 -Alan


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



Re: DevMode for Firefox 14

2012-07-25 Thread Daniel Bergholm
Thank you!

On Tuesday, 24 July 2012 07:49:30 UTC+2, Alan Leung wrote:

 Last but not least, http://acleung.com/ff14-mac.xpi

 Have fun!

 -Alan


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



How can we save state of a GWT page?

2012-07-25 Thread Rubina


Hi All,

 

We have one requirement to implement in GWT application. Below example will 
clear the requirement – 

 

There are 3 screens in application. Suppose, user is on 2nd screen after 
moving from 1st screen to 2nd screen. When user clicks on Next button on 
first screen, then some RPC call is executed and fetch data from some 
external database. This data is used to display on 2nd screen. Now user 
bookmarks the browser URL (2nd screen) and closes the browser window. 

 

Next time, now user directly wants to navigate to the 2nd screen without 
repeating the work done on 1st screen. We want to store the state of 2ndscreen 
somehow on browser. If this screen launches, all Next and Previous 
button should also work properly.

 

Is this requirement achievable, if yes then which GWT APIs provides this 
feature? Please advice.

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



http://gwtgallery.appspot.com/

2012-07-25 Thread Overlook Support
Hi All,

we would like to add the web app we made using gwt, in the gwt app list but 
we noticed that the site seems to be no more
maintained. Is it true? Where we can publish the gwt apps?

Overlook Soft
http://www.overlooksoft.com
http://www.fingbox.com 

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



default-instantiable editor and requestfactory

2012-07-25 Thread Blas


Hi,

I’m having some trouble to get an editor and request factory working 
together.
I have made an editor of a user with an address editor within it.
The problem is with the saving of the changes with the user and the 
embedded address. Or I can load the user and the address by using with(..) 
Or If I comment that line out, I can only see the user with the address 
field empty but then I can save it. 
When I try the and, to load the editordriver with the adres I get the 
following:  The requested type is not default-instantiable.
someone knows what I'm doing wrong?

Many thanks in advance

Blas




public class EditUserPresenter extends 
PresenterWidgetEditUserPresenter.MyView implements EditUserUiHandler

{

public interface MyView extends PopupView, HasUiHandlersEditUserUiHandler

{

public DialogBox getDialog();

public HTMLPanel getHtmlPanel();

public UserEditor getUserEditor();

}

private final DataRequestFactory rf;

@Inject

public EditUserPresenter(final EventBus eventBus, final MyView view, final 
DataRequestFactory rf)

{

super(eventBus, view);

getView().setUiHandlers(this);

this.rf = rf;

}

@Override

protected void onBind()

{

 super.onBind();

}


@Override

public void onSave()

{

editorDriver.flush().fire(new ReceiverVoid() {

@Override

public void onSuccess(Void response)

{

getView().getDialog().hide();

}

@Override

public void onConstraintViolation(SetConstraintViolation? violations)

{

// TODO Auto-generated method stub

super.onConstraintViolation(violations);

}

@Override

public void onFailure(ServerFailure error)

{

Window.alert(fail);

// TODO Auto-generated method stub

super.onFailure(error);

}

});

}

@Override

public void onCancel()

{

getView().hide();

}


public void setUser(UserProxy user)

{

this.user = user;

}


@Override

protected void onReveal()

{

// TODO Auto-generated method stub

super.onReveal();

edit((RequestContext) null);

}


@Override

protected void onHide()

{

user = null;
super.onHide();

}


private final Driver editorDriver = GWT.create(Driver.class);;

private UserProxy user;


private void edit(RequestContext usercontext)

{


editorDriver.initialize(rf, getView().getUserEditor());

if (usercontext == null) {

fetchAndEdit();

return;

}

editorDriver.edit(user, usercontext);

getView().getDialog().center();

}


private void fetchAndEdit()

{


RequestUserProxy req = rf.userRequest().findById(user.getId());

//req.with(editorDriver.getPaths());

req.fire(new ReceiverUserProxy() {


@Override

public void onSuccess(UserProxy response)

{


user = response;

UserRequest context = rf.userRequest();

edit(context);

}

});

// TODO Auto-generated method stub

}


interface Driver extends RequestFactoryEditorDriverUserProxy, UserEditor

{

}

}

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



How to create a grouped column with the Data Grid?

2012-07-25 Thread Joshua Godi
I have been researching this for the last few days, what I want to do is 
create a column group with the DataGrid with the group displaying in the 
header and sorting / footer still working for each of the grouped columns. 

Is there anyway to accomplish this with the DataGrid? Can you help point me 
in the right direction?

Thanks,
Joshua

For example:

/-\
|  |  Average  |   Red|
|  |---|  eyes|
|  |  height |  weight |  |
|-|
|  Males   | 1.9 | 0.003   |   40%|
|-|
| Females  | 1.7 | 0.002   |   43%|
\-/

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



Re: Application size due to Internationalization

2012-07-25 Thread Shawn Brown
 Thanks for your suggestions. Yes, I did this. But the main issue I am unable
 to solve is the size of the code. It is too big to deploy on app.spot.

I don't think that is the case.

Prior to AE1.7, I was over the limit due to permutations as well.
AE1.6 was 150MB/app right, and 1.7 is 1gb (total for all apps)

It wasn't that difficult to serve the permutation files out of the blobstore.

The overview is:

1) ant task to move permutation stuff into /serve_from_blobstore folder
2) class to upload  /serve_from_blobstore permutations (including .rpc
files, and no-cache stuff) using BlobstoreService
3) servlet to handle the upload - stores blob and map (in datastore
entity) the req url and blob key
4) filter to serve blobs.  If request matches /myAppName, serve blob
by looking up blob key from request url using the enitity map created
in 3 [my *.gwt.xml file was using module rename-to='myAppName']
5) task to delete blobs for particular app version

Probably the trickiest things were catching the failed uploads (it
sporadically happened) and making sure they were retried until
successful and ensuring a versions blobs were all deleted.

I'm under 500 mb now so I just have two versions (and stay under the
1gb limit) and don't serve from the blobstore but have the
infrastructure in place should the need arise.

There is no way your app minus permutations is over 1gb I think.  I
don't see the size of language permutations as a barrier to deploying
on AppEngine.

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



Re: DevMode not working in Chrome after update

2012-07-25 Thread Andy
I never figured it out. I just switched to using DevMode in Firefox (using 
13.0.1 and afraid to update right now) and compiling when necessary to use 
Chrome.

On Wednesday, July 25, 2012 4:03:26 PM UTC-4, mdwarne wrote:

 I am having the same issue, 
 I have been able to install the plugin by dragging it into the extensions 
 window, but it still will not load
 Mac Lion with latest Chrome.

 Anybody figure out what is wrong yet?

 Thanks,
 Mike.

 On Tuesday, July 17, 2012 4:16:03 AM UTC-10, Andy wrote:

 I updated Chrome this morning and now when I try to use DevMode I get an 
 error Could not load GWT DevMode Plugin and an offer to Download the GWT 
 Developer Plugin. When I try to download it (it's already installed), it 
 says Extensions, apps, and user scripts can only be added from the Chrome 
 Web Store. and there's no GWT plugin in the store.



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



Re: Classpath entries not considered when running GWT module from Eclipse

2012-07-25 Thread Juan Pablo Gardella
2012/7/26 Venkatkalyan Solasa solasakal...@gmail.com

 hi any help

 On Wednesday, 25 July 2012 19:41:40 UTC+5:30, Venkatkalyan Solasa wrote:

 I am using maven-gwt plugin to convert my existing ant GWT project to
 maven.

 1. Added the gwt maven entry as below and ran mvn eclipse:clean
 eclipse:eclipse, but still GWT SDK is not getting added to the generated
 eclipse project
   plugin
 groupIdorg.codehaus.mojo/**groupId
 artifactIdgwt-maven-plugin/**artifactId
 version2.4.0/version
 executions
 execution
 goals
 goalcompile/goal
 /goals
 /execution
 /executions
 /plugin

 Work Around followed : add it directly from the Project -- Google --
 WebToolKit


Yes, this is the way. At the moment I don't know that is automatically
added.



 2. After doing work around, build is fine and now able to run the web
 application. But Spring-tx jar which is present in the buildpath is not
 copied/considered while launching the application using jetty and hence
 throwing errors validating the application-context xml file. Infact none of
 the jars in java build path(dependencies defined in pom.xml) are being
 picked for runtime by Eclipse when launching in Jetty. But when running mvn
 clean install, all jars are copied to the web-inf/lib directory properly

 Can you please help on both the issues


Do mvn eclipse:clean and remove .settings/ folder. Then import the project
using  Import as a Exists Maven Project (this is an option that appears if
you have sonatype maven plugin, provided out of in Eclipse Juno).-



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


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



[gwt-contrib] Re: Fix TreeMap and TreeSet emulation tests to pass with JDK 7. (issue1793803)

2012-07-25 Thread cromwellian

LGTM


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

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


[gwt-contrib] Re: Fixes issue 6653: Activity interface should use the new EventBus (issue1786804)

2012-07-25 Thread manuel . carrasco . m



A bit of discipline maybe, but no pain at all (not for me at least).


You are right s/pain/discipline/.

When you use gin for places and activities you have to be aware of this
circumstance to avoid  multiple instances of the event bus, so you have
to write a bit more code and replace something eventually simple like
this:

  bind(EventBus.class)
.to(SimpleEventBus.class).in(Singleton.class);

By a provider which maintains a unique instance of the event bus

  bind(com.google.web.bindery.event.shared.EventBus.class)
.toProvider(SingletonEventBusProvider.class);
  bind(com.google.gwt.event.shared.EventBus.class)
.toProvider(SingletonEventBusProvider.class);

  static class SingletonEventBusProvider
   implements Providercom.google.gwt.event.shared.SimpleEventBus {

static com.google.gwt.event.shared.SimpleEventBus eventBus =
new com.google.gwt.event.shared.SimpleEventBus();

public com.google.gwt.event.shared.SimpleEventBus get() {
  return eventBus;
}
  }

Note that this code does not work and would create two event buses
  bind(com.google.gwt.event.shared.EventBus.class)

.to(com.google.gwt.event.shared.SimpleEventBus.class).in(Singleton.class);
  bind(com.google.web.bindery.event.shared.EventBus.class)

.to(com.google.gwt.event.shared.SimpleEventBus.class).in(Singleton.class);

Finally, if you need injector getters for the EventBus you have to
duplicate methods in the Gininjector as well
  com.google.web.bindery.event.shared.EventBus getEventBusNew();
  com.google.gwt.event.shared.EventBus getEventBus();



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

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


[gwt-contrib] Re: Fixes issue 6653: Activity interface should use the new EventBus (issue1786804)

2012-07-25 Thread t . broyer

On 2012/07/25 10:01:17, manolo.carrasco wrote:

 A bit of discipline maybe, but no pain at all (not for me at

least).


You are right s/pain/discipline/.



When you use gin for places and activities you have to be aware of

this

circumstance to avoid  multiple instances of the event bus, so you

have to write

a bit more code


Huh!
How about simply letting the GIN generation fail if some class depends
on the gwt.event EventBus rather than the web.bindery one? (EventBus
being abstract, GIN won't be able to instantiate it and will defer to
GWT.create(), which will fail too).

Put simply: do not ever, never use com.google.gwt.event.shared.EventBus
in your code and it'll Just Work™; and if you do, it should fail.

BTW, you code can be simplified to:

   bind(com.google.web.bindery.event.shared.EventBus.class)
  .to(com.google.gwt.event.shared.SimpleEventBus.class);
   bind(com.google.gwt.event.shared.EventBus.class)
  .to(com.google.gwt.event.shared.SimpleEventBus.class);
   bind(com.google.gwt.event.shared.SimpleEventBus.class)
  .in(Singleton.class);

(you want the SimpleEventBus as a singleton, not each one of the
EventBus-es, which is what your code that doesn't work was declaring)

But it's not really the place to discuss this ;-)

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

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


[gwt-contrib] Allows UiRenderer styles before the first call to render() (issue1794803)

2012-07-25 Thread rchandia

Reviewers: rdayal,

Description:
Allows UiRenderer styles before the first call to render()

Fields are initialized both upon construction and on a call to render()

Also ensured that ui:with fields never get optimized as final.


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

Affected files:
  M user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java
  M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
  M user/test/com/google/gwt/uibinder/test/client/UiRendererTest.java
  M user/test/com/google/gwt/uibinder/test/client/UiRendererUi.java
  M user/test/com/google/gwt/uibinder/test/client/UiRendererUi.ui.xml


Index: user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java
===
--- user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java	(revision  
11175)
+++ user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java	(working  
copy)

@@ -394,7 +394,7 @@

 fieldWriter = fieldManager.registerField(
 FieldWriterType.IMPORTED, matchingResourceType.getErasedType(),  
resourceName);
-fieldWriter.setInitializer(UiBinderWriter.RENDER_PARAM_HOLDER_PREFIX +  
resourceName);

+fieldWriter.setInitializer(resourceName);
   }

   private void createSingleImport(XMLElement elem, JClassType  
enclosingType,

Index: user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
===
--- user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java	(revision  
11175)
+++ user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java	(working  
copy)

@@ -76,8 +76,6 @@
  */
 public class UiBinderWriter implements Statements {

-  static final String RENDER_PARAM_HOLDER_PREFIX  
= _renderer_param_holder_;

-
   private static final String SAFE_VAR_PREFIX =
 somethingUnlikelyToCollideWithParamNamesWefio;

@@ -1935,8 +1933,30 @@
 w.newline();

 JParameter[] renderParameters = findRenderParameters(baseClass);
-
-writeRenderParameterDefinitions(w, renderParameters);
+for (JParameter param : renderParameters) {
+  // Prevent fields related to parameters from being optimized as  
having

+  // static values.
+  fieldManager.convertFieldToGetter(param.getName());
+  fieldManager.convertFieldToGetter(param.getName());
+}
+
+// public UiRendererImplClass() {
+w.write(public %s() {, implClassName);
+w.indent();
+w.write(build_fields(););
+w.outdent();
+// }
+w.write(});
+w.newline();
+
+// private init_fields() {
+w.write(private void build_fields() {, implClassName);
+w.indent();
+fieldManager.initializeWidgetsInnerClass(w, getOwnerClass());
+w.outdent();
+// }
+w.write(});
+w.newline();

 String renderParameterDeclarations =  
renderMethodParameters(renderParameters);
 w.write(public void render(final %s sb%s%s) {,  
SafeHtmlBuilder.class.getName(),

@@ -1949,7 +1969,7 @@
 w.write(uiId =  
com.google.gwt.dom.client.Document.get().createUniqueId(););

 w.newline();

-fieldManager.initializeWidgetsInnerClass(w, getOwnerClass());
+w.write(build_fields(););
 w.newline();

 String safeHtml = rootField.getSafeHtml();
@@ -2245,20 +2265,13 @@
 }
   }

-  private void writeRenderParameterDefinitions(IndentedWriter w,  
JParameter[] renderParameters) {

-for (int i = 0; i  renderParameters.length; i++) {
-  JParameter parameter = renderParameters[i];
-  w.write(private %s %s%s;,  
parameter.getType().getQualifiedSourceName(),

-  RENDER_PARAM_HOLDER_PREFIX, parameter.getName());
-  w.newline();
-}
-  }
-
   private void writeRenderParameterInitializers(IndentedWriter w,  
JParameter[] renderParameters) {

 for (int i = 0; i  renderParameters.length; i++) {
   JParameter parameter = renderParameters[i];
-  w.write(%s%s = %s;, RENDER_PARAM_HOLDER_PREFIX,  
parameter.getName(), parameter.getName());

-  w.newline();
+  if (fieldManager.lookup(parameter.getName()) != null) {
+w.write(this.%s = %s;, parameter.getName(), parameter.getName());
+w.newline();
+  }
 }
   }

Index: user/test/com/google/gwt/uibinder/test/client/UiRendererTest.java
===
--- user/test/com/google/gwt/uibinder/test/client/UiRendererTest.java	 
(revision 11175)
+++ user/test/com/google/gwt/uibinder/test/client/UiRendererTest.java	 
(working copy)

@@ -256,6 +256,12 @@
 assertEquals(renderer.getUiStyle().disabled(),  
nameSpan.getClassName());

   }

+  public void testGetStyleBeforeRender() {
+HtmlRenderer renderer = GWT.create(HtmlRenderer.class);
+assertNotNull(renderer.getUiStyle().enabled());
+assertNotNull(renderer.getUiStyle2().ok());
+  }
+
   @Override
   protected void gwtTearDown() {
 docDiv.removeFromParent();
Index: user/test/com/google/gwt/uibinder/test/client/UiRendererUi.java

[gwt-contrib] Re: Added Aria roles and properties to the CellTree (issue1776803)

2012-07-25 Thread skybrian

Thanks John.

On 2012/07/25 22:42:13, john.labanca wrote:

As far as issue 7480, it sounds like a bug.  Updating the

SelectionModel should

update the CellTree's keyboard selection.


Well, the question is how to do this. I assume we install a
SelectionChangeHandler. However, we don't know how many SelectionModels
there are: one for the whole tree, or one for each parent? It's also
unclear how we know which cells to re-render after a
SelectionChangeEvent. I don't see any callbacks in CellTree or CellTable
so I'm not sure how the DOM gets updated after a selection state change.


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

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


[gwt-contrib] Fix TestOracleMediatorFromByteCodeTest to work when run on JDK 7. (issue1794804)

2012-07-25 Thread skybrian

Reviewers: cromwellian,

Description:
Fix TestOracleMediatorFromByteCodeTest to work when run on JDK 7.
The issue is that java.lang.Throwable has nested classes in JDK 7 but
not JDK 6.
So, change the assertion to allow any nested classes.


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

Affected files:
  M dev/core/test/com/google/gwt/dev/javac/TypeOracleMediatorTestBase.java


Index:  
dev/core/test/com/google/gwt/dev/javac/TypeOracleMediatorTestBase.java

===
--- dev/core/test/com/google/gwt/dev/javac/TypeOracleMediatorTestBase.java	 
(revision 11175)
+++ dev/core/test/com/google/gwt/dev/javac/TypeOracleMediatorTestBase.java	 
(working copy)

@@ -73,6 +73,7 @@
 import java.io.IOException;
 import java.io.InputStream;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.LinkedHashSet;
@@ -1168,8 +1169,8 @@
 addTestResource(CU_Throwable);
 addTestResource(CU_MethodsAndParams);
 buildTypeOracle();
-JClassType[] types = typeOracle.getTypes();
-assertEquals(3, types.length);
+// Throwable has nested classes in JDK 7, so we need to ignore them
+checkGetTypes(Methods, Object, Throwable);
   }

   public void testOuterInner() throws TypeOracleException {
@@ -1313,6 +1314,26 @@
 }
   }

+  private void checkGetTypes(String... expectedOuterClassNames) {
+SetString expected = new HashSetString();
+expected.addAll(Arrays.asList(expectedOuterClassNames));
+
+SetString found = new HashSetString();
+
+for (JClassType type : typeOracle.getTypes()) {
+  String name = type.getName();
+  if (name.indexOf('.')  0) {
+name = name.substring(0, name.indexOf('.'));
+  }
+  if (!expected.contains(name)) {
+fail(getTypes() returned an unexpected class:  + type.getName());
+  }
+  found.add(name);
+}
+
+assertEquals(expected, found);
+  }
+
   private void register(String qualifiedTypeName, CheckedJavaResource cup)  
{

 assertFalse(publicTypeNameToTestCupMap.containsKey(qualifiedTypeName));
 publicTypeNameToTestCupMap.put(qualifiedTypeName, cup);


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


[gwt-contrib] Re: Fix TestOracleMediatorFromByteCodeTest to work when run on JDK 7. (issue1794804)

2012-07-25 Thread cromwellian

lgtm

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

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


[gwt-contrib] Re: Help getting super dev mode to work

2012-07-25 Thread Thomas Käfer
Did I understand the procedure correctly?

1.) add those properties to your Application.gwt.xml file
2.) run the super dev mode, wait until compiled and The code server is 
ready. Next, visit: http://localhost:9876/; is showing
3.) run the normal dev mode
4.) 
browse http://127.0.0.1:/Application.html?gwt.codesvr=127.0.0.1:9997 
and press the bookmarklet Dev Mode On

-- this procedure gives me
Can't find any GWT Modules on this page.

Best Regards,
Thomas.

Am Sonntag, 17. Juni 2012 16:57:48 UTC+2 schrieb Daniel Kurka:

 I can`t seem to get super dev mode to work. 

 I am always Can't find any GWT Modules on this page., due to 
 window.__gwt_activeModules being undefined. 

 The super dev mode code server compiled fine. I have got the 
 bookmarklets. I compiled my GWT app the standard way and I am able to 
 run it in the browser, but still window.__gwt_activeModules is 
 undefined. What am I missing? Who is supposted to set that variable? 

 -Daniel 




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

[gwt-contrib] Fix CssObfuscationStyle to escape stable-shorttype types, so it works for cases like MyClientB... (issue1795803)

2012-07-25 Thread ehwang

Reviewers: unnurg,

Description:
Fix CssObfuscationStyle to escape stable-shorttype types, so it works
for cases like MyClientBundle.MyCssResource#selector().


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

Affected files:
  M user/src/com/google/gwt/resources/rg/CssObfuscationStyle.java


Index: user/src/com/google/gwt/resources/rg/CssObfuscationStyle.java
===
--- user/src/com/google/gwt/resources/rg/CssObfuscationStyle.java	(revision  
11162)
+++ user/src/com/google/gwt/resources/rg/CssObfuscationStyle.java	(working  
copy)

@@ -68,9 +68,9 @@
  */
 if (showClassName) {
   if (showPackageName) {
-toReturn = type.getQualifiedSourceName().replaceAll([.$], -)  
+ - + toReturn;
+toReturn = getPrettyCssClass(type.getQualifiedSourceName(),  
toReturn);

   } else {
-toReturn = type.getName() + - + toReturn;
+toReturn = getPrettyCssClass(type.getName(), toReturn);
   }
 }

@@ -88,4 +88,8 @@
   public boolean isPretty() {
 return isPretty;
   }
+
+  private static String getPrettyCssClass(String typeName, String  
cssClass) {

+return typeName.replaceAll([.$], -) + - + cssClass;
+  }
 }


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


[gwt-contrib] Fix JSON escaping of unicode characters to work in JDK 7. (issue1796803)

2012-07-25 Thread skybrian

Reviewers: acleung,

Description:
Fix JSON escaping of unicode characters to work in JDK 7.

JDK 7 supports Unicode 6 and some characters changed:
- zero-width-space is no longer a whitespace character
- invisible-plus is new

This caused JSON encoding tests to fail in HTMLUnit somehow, so
escape these characters just to be safe.

Fixes issue 7444.


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

Affected files:
  M user/src/com/google/gwt/core/client/JsonUtils.java


Index: user/src/com/google/gwt/core/client/JsonUtils.java
===
--- user/src/com/google/gwt/core/client/JsonUtils.java  (revision 11175)
+++ user/src/com/google/gwt/core/client/JsonUtils.java  (working copy)
@@ -28,7 +28,7 @@
* eval(). Control characters, quotes and backslashes are not affected.
*/
   public static native String escapeJsonForEval(String toEscape) /*-{
-var s =  
toEscape.replace(/[\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202e\u2060-\u2063\u206a-\u206f\ufeff\ufff9-\ufffb]/g,  
function(x) {
+var s =  
toEscape.replace(/[\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb]/g,  
function(x) {
   return  
@com.google.gwt.core.client.JsonUtils::escapeChar(Ljava/lang/String;)(x);

 });
 return s;
@@ -38,7 +38,7 @@
* Returns a quoted, escaped JSON String.
*/
   public static native String escapeValue(String toEscape) /*-{
-var s =  
toEscape.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202e\u2060-\u2063\u206a-\u206f\ufeff\ufff9-\ufffb\\]/g,  
function(x) {
+var s =  
toEscape.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb\\]/g,  
function(x) {
   return  
@com.google.gwt.core.client.JsonUtils::escapeChar(Ljava/lang/String;)(x);

 });
 return \ + s + \;
@@ -149,6 +149,7 @@
 out[0x70f] = '\\u070f'; // Syriac abbreviation mark
 out[0x17b4] = '\\u17b4'; // Khmer vowel inherent aq
 out[0x17b5] = '\\u17b5'; // Khmer vowel inherent aa
+out[0x200b] = '\\u200b'; // Zero width space
 out[0x200c] = '\\u200c'; // Zero width non-joiner
 out[0x200d] = '\\u200d'; // Zero width joiner
 out[0x200e] = '\\u200e'; // Left-to-right mark
@@ -164,6 +165,7 @@
 out[0x2061] = '\\u2061'; // Function application
 out[0x2062] = '\\u2062'; // Invisible times
 out[0x2063] = '\\u2063'; // Invisible separator
+out[0x2064] = '\\u2064'; // Invisible plus
 out[0x206a] = '\\u206a'; // Inhibit symmetric swapping
 out[0x206b] = '\\u206b'; // Activate symmetric swapping
 out[0x206c] = '\\u206c'; // Inherent Arabic form shaping


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


[gwt-contrib] Re: Fix JSON escaping of unicode characters to work in JDK 7. (issue1796803)

2012-07-25 Thread jat

LGTM

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

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