A portal for information about the 2011 Japan Earthquake and Tsunamis
I hope you don't mind or consider this spam or improper. I know many of you from these news groups as I am an active member and I would never do anything that I thought was improper. We've all seen the videos of the devastation in Japan caused by the recent earthquake and tsunamis. In response I've created a little portal site on app engine that lists a few organizations and agencies accepting donations as well as providing information. I know many of you are running successful web sites on app engine and if you can afford $10 or $20 dollars, please, that would be an amazing response from these groups. I've already made mine. Won't you please help? The link to the site is http://japanearthquaketsunamirelief.appspot.com/. Please understand that I have no affiliation at all with any of the sites listed on the portal and I urge you to use discretion whenever making any donation. Sincerely, -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- 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: Celltable ui.xml possibilities
A number of widgets, cell-based widgets included, cannot be fully marked up using uibinder alone at this time and require backing Java code but the GWT team is promising fuller markup support for them in a future GWT version. The upside is that the Java api for CellTable is very adaptable, especially when used in conjunction with the supporting DataProvider and SelectionModel classes and their derivatives. Jeff On Thu, Mar 3, 2011 at 3:02 PM, Jim Weaver weaver...@gmail.com wrote: Hi, Very new to GWT. I'm working on a small application and trying to use the UIBinder technique (owner java class paried with ui.xml template). In the case of a celltable, I'm curious if I can put more of the layout in the ui.xml than any of the examples show. All the examples generally just show a single node for the CellTable, and java code adds columns to the cell table and maps those columns to model object properties. Is this the only option? With some widgets, like DockLayoutPanel, the javadoc for the widget shows that some of the operations on the widget (like addNorth in DLP's case) can be made in the ui.xml as opposed to java code. CellTable javadoc does not make any reference to what the options are in the ui.xml. Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- 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: maintain two html pages in gwt
On Thu, Mar 3, 2011 at 1:59 AM, Dhanu Musham dhanunjaya.mus...@gmail.comwrote: hi, can i maintain two html pages in gwt, one for Login.html and after successful login then shows actual my application, Why can't you just manipulate the DOM to display one or the other view? With GWT this is a very easy thing to do and it is the preferred approach. else for one html page, how can i manage login validation checking server and how can i redirect actual my application thanks, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- 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: Best practice for to maintain Big project
If you are using Eclipse and the plugin to create your projects then you wont have to recompile every time you make a code change. On Thu, Mar 3, 2011 at 3:10 AM, Jiunarayan jiunara...@gmail.com wrote: What could be the best practice to maintain big project. I meant for every changes the whole project is compiled to get the javascript?? I got a kind of insecure of recompiling the whole project for a every changes. -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to secure RequestFactory in GWT 2.2
I haven't used the request factory so I am sorry, no I can't help you with this. On Wed, Mar 2, 2011 at 3:04 PM, Kathiravan Tamilvanan kat...@gmail.comwrote: Jeff, Do you have any idea how to do session validation with RequestFactory approach. I am using RequestFactory with a ServiceLocator to locate my spring service layer. I would like to validate the session, when a request is made through the RequestFactory, before invoking the Spring service layer. Do you have any recommendation on this? Thanks, Kathir -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- 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: Using HashMap with ValueProxy
Hash maps are supported. I use one for a local cache. On Wed, Mar 2, 2011 at 12:56 PM, shelbot shubhanshu.na...@gmail.com wrote: Thanks for the reply. Is maps not supported in RequestFactory or whole GWT? Because I believe I saw maps in the white list. http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html#Package_java_util On Mar 2, 9:12 am, zixzigma zixzi...@gmail.com wrote: I believe Map is not supported, only Set and List. -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to secure RequestFactory in GWT 2.2
On Wed, Mar 2, 2011 at 1:48 PM, Kathiravan Tamilvanan kat...@gmail.comwrote: I am also looking for some recommendation for this. I have read this link http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ and also wanted to implement the security with RequestFactory. But as the article suggests, the session id should be sent on the payload of the request instead of the cookie approach. The following questions come to my mind 1. Do we need to send the session id on each method on the RequestContext? If so how do we validate this on the Server side? IMO if a GET exposes sensitive data to the client then I would say it should. Also, if a request is a POST then I would say it should. For everything else it would depend on the nature of the application and the data. For instance, does the application fall under the guidelines of an industry's governance board like many financial applications and specifically those related to banking and the credit card industries. You can validate the session id by comparing it to the Session object's session id as follows (show in the context of a RemoteServiceServlet): HttpSession session = getThreadLocalRequest().getSession(true); String sid = session.getId(); if (!clientSid.equals(sid)) { throw new MyInvalidSessionException(); } MyInvalidSessionException is a custom exception class derived from Throwable and can be caught in the onFailure methods of each RPC call. 2. Does servlet filter help in validating the session before every request? I am not really sure how to get the RequestContext session id parameter from the servlet filter . Is it even right thinking? Yes if you were to use the session id in the request header which isn't a good idea and no if you are using RPC because the filter will be called prior to the serialization of your payload forcing you to resort to bit twiddling with the request headers to get at it. -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- 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: Using HashMap with ValueProxy
sorry for posting this. i didn't have the original question - just the one below. never mind lol On Wed, Mar 2, 2011 at 1:44 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: Hash maps are supported. I use one for a local cache. On Wed, Mar 2, 2011 at 12:56 PM, shelbot shubhanshu.na...@gmail.comwrote: Thanks for the reply. Is maps not supported in RequestFactory or whole GWT? Because I believe I saw maps in the white list. http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html#Package_java_util On Mar 2, 9:12 am, zixzigma zixzi...@gmail.com wrote: I believe Map is not supported, only Set and List. -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- 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: Method Reference Delegate or so
Here's one solution: For each onSuccess method call back set some flag value to indicate it has completed. Issue all thre rp calls. Set a timer that runs a check of all three values set by their respective onSuccess methods. If they all indicate that their respective rp calls have completed do the processing needed at this point which relies on all 3 rp calls to have completed. Otherwise, restart the timer. Keep the lapse time quick so as not to block the ui. Jeff On Sat, Feb 26, 2011 at 3:43 PM, andi andi.ba...@googlemail.com wrote: Hi all, I'm looking for a solution how to transport a method reference. Usecase is to wrap some async method calls and only have one success handler after all are doen. E.g. I want something like this (which would easily possible in JS): Requestor req = new Requestor(); req.add(Foo.method, param, param); req.add(Bar.method, param); req.do(new SimpleMethodCallbackJSONValue() { @Override public void onSuccess() { // ... } }); Someone has a solution how to accomplish this? Thanks in advance, Andi -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How AsyncCallback works? - RPC services
I googled found the following: Ajax intro: http://www.javalobby.org/articles/ajax/ Google RPC doc: http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html On Sat, Feb 26, 2011 at 12:01 PM, dreamer venugopal.vasire...@gmail.comwrote: True. Not found this kind of details. May be some gwt contributor should be having good Idea about these. On Feb 25, 6:53 am, Jeff Schwartz jefftschwa...@gmail.com wrote: RPC uses Ajax so understanding how Ajax works will answer all your questions. On Fri, Feb 25, 2011 at 9:49 AM, dreamer venugopal.vasire...@gmail.com wrote: Hi, Not sure how the AsyncCallback works in GWT. Could somebody share please? 1) Will it create a thread and polls the server ? or 2) Will servers register's client IP and when result is available makes a fresh TCP/IP connection to client and calls client. Within this call back, will server calls a method on skeleton (server side stubs) for remote call ? or It just makes a tcp call and client handles calling the Async method ? -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt mvp sessions
Hi Thomas, On Fri, Feb 25, 2011 at 8:49 AM, Thomas Broyer t.bro...@gmail.com wrote: Of course! I didn't mean to imply that you shouldn't secure your app, but honestly if someone succeeds in hijacking your session, then he could possibly do it before loading the host page, so that your GWT app will run with the hijacked session, and the auth token in the request payload won't be of any help. First off, the hacker couldn't have access to the local cookie on the user's machine unless the user has been infected with a virus. If the user's computer has been infected with a virus that can some how target local cookies then this user has a lot more to worry about than someone hijacking their session. So let's rule that scenario out. Secondly, if the hacker could somehow manage to hijack your session - meaning they've some how coerced the request to use a different value for the session id) and do it before loading the host page it wouldn't make a difference if every Servlet method that is called does the following: 1) checks each payload for an auth token (a value equal to the sid stored as a cookie on the client) and 2) compares the auth token's value to the HttpSession's session id value. If they aren't the same then throw a custom exception and catch it on the client and authenticate the user (either form-based auth or some other method such as Google Account, OpenId, et. al) Not only does the above protect against session hijacking but it also solves the how do I know if the session is timed out question. So you solve two use cases in one implementation which isn't bad. You can even use filters to do this eliminating the need for every Servlet method to implement this logic. It's a simple, viable solution to an attack that is quite prevalent these days. It's implementation on both the client and server are trivial yet (I would venture to guess) is regrettably ignored by many if not most developers (to which I am not limiting to GWT developers). Of course, having a secure transport protocol (ie SSL) is the ultimate solution but not every site or every page on a site requires SSL yet every page that communicates with the server on every site requires a proactive defense against these kinds of attacks. -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How AsyncCallback works? - RPC services
RPC uses Ajax so understanding how Ajax works will answer all your questions. On Fri, Feb 25, 2011 at 9:49 AM, dreamer venugopal.vasire...@gmail.comwrote: Hi, Not sure how the AsyncCallback works in GWT. Could somebody share please? 1) Will it create a thread and polls the server ? or 2) Will servers register's client IP and when result is available makes a fresh TCP/IP connection to client and calls client. Within this call back, will server calls a method on skeleton (server side stubs) for remote call ? or It just makes a tcp call and client handles calling the Async method ? -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt mvp sessions
On Fri, Feb 25, 2011 at 10:14 AM, veenatic praveen.bit...@gmail.com wrote: Does this mean that auth token in the request payload is not of much use? Also, I want to understand when i have the token set in the requestfactory payload, how to retrieve from the payload when a service call is made by requestfactory since i will have to validate the token for every service request. On Friday, February 25, 2011 3:49:32 PM UTC+2, Thomas Broyer wrote: Of course! I didn't mean to imply that you shouldn't secure your app, but honestly if someone succeeds in hijacking your session, then he could possibly do it before loading the host page, so that your GWT app will run with the hijacked session, and the auth token in the request payload won't be of any help. To the contrary - it means that every request to the server should include it and that ever request should validate it against the HttpSession's session id value and respond accordingly. -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- 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: Own GWT library without web.xml
Are you importing the library into your web.xml file? On Fri, Feb 25, 2011 at 10:32 AM, klemensr klem...@reinthaler.info wrote: Dear all, I have two projects in my workspace - a master project and a specialised project which uses the master project as a library. Both projects are maven based. The master project is using jar packaging so that I can use this lib in the specialised project. The master project includes gwt views and RPC definitions (servlets, ...). I get the error message The web.xml file does not exist in the master project. Right, I don't have a web.xml file in the master project because it is in the specialised project. Which settings do I have to make to get rid of the error message? I am using GWT 2.1.1 at the moment - I was using GWT 2.0.0 before and it was working fine. Thanks for your 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-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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt mvp sessions
You are talking about using request cookies so of course the scenario you describe might be possible. Everyone knows they are vulnerable and hence their ease of hijacking. The right way to do it is not using request cookies at all on the server because they cannot be trusted - the auth token must be delivered to the server as part of the payload and it must never be read from a request cookie. On Fri, Feb 25, 2011 at 11:38 AM, Thomas Broyer t.bro...@gmail.com wrote: On Friday, February 25, 2011 3:21:18 PM UTC+1, Jeff wrote: Hi Thomas, On Fri, Feb 25, 2011 at 8:49 AM, Thomas Broyer t.br...@gmail.com wrote: Of course! I didn't mean to imply that you shouldn't secure your app, but honestly if someone succeeds in hijacking your session, then he could possibly do it before loading the host page, so that your GWT app will run with the hijacked session, and the auth token in the request payload won't be of any help. First off, the hacker couldn't have access to the local cookie on the user's machine unless the user has been infected with a virus. If the user's computer has been infected with a virus that can some how target local cookies then this user has a lot more to worry about than someone hijacking their session. So let's rule that scenario out. I can setup an web page at attacker.appspot.com that sets a cookie with Domain=.appspot.com, and it'll target every appspot.com app out there. If victim.appspot.com uses its own authentication mechanism and its own cookies, I can then easily set a cookie to a user's browser visiting attacker.appspot.com and redirect it to victim.appspot.com, and he would then be automatically authenticated with my own session (session fixation attack). Secondly, if the hacker could somehow manage to hijack your session - meaning they've some how coerced the request to use a different value for the session id) and do it before loading the host page it wouldn't make a difference if every Servlet method that is called does the following: 1) checks each payload for an auth token (a value equal to the sid stored as a cookie on the client) and 2) compares the auth token's value to the HttpSession's session id value. If they aren't the same then throw a custom exception and catch it on the client and authenticate the user (either form-based auth or some other method such as Google Account, OpenId, et. al) But if the auth token is initialized from the cookie (or somehow attached to the authenticated user) and the attacker managed to set the cookie value on behalf of the webapp (or at least do a session fixation attack), then those two checks won't detect it. -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt mvp sessions
On Fri, Feb 25, 2011 at 12:30 PM, Thomas Broyer t.bro...@gmail.com wrote: You contradict yourself (compare the HttpSession's ID with the auth token –the HttpSession is maintained by a cookie, whose value generally is the session's ID– vs. do not send the auth token in a cookie), but that's not the problem. Actually I am not contradicting myself, Thomas. You just failed to understand! The problem is: how are you initializing the auth token on the client side, and how you associate it with the user on the server-side? The client and server have to share some knowledge at some point, and if you have use form based authentication on another web page (i.e. your app's host page is protected and cannot be accessed without being authenticated), then the only way (not accurate, but that's how 99.999% of auth is done, because the alternative comes with a UX penalty) to transfer the authentication from the login page to the app's page is to use either a cookie or pass a unique token in the URL, both of which can be hijacked. If the user is authenticated the authentication process should then send down the HttpSession id as part of the payload back to the client. The client then stores the session id it receives as part of the payload from the server as a local cookie. Encryption can even be applied on the server for extra security as it's value has no real meaning to the client, only that it needs to include it in each payload to 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-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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt mvp sessions
I am not dismissing your scenarios outright as I never said that the method was foolproof and I also said that only SSL will give you something close to that. Also lets not forget that if the user manages to be lured to an attackers site via a link in an email for instance and then doesn't notice that they are then redirected to another site then they have bigger problems than having their session hijacked lol. However, there are ways to mitigate even the cross-subdomain attack that you use as an example... On Fri, Feb 25, 2011 at 2:20 PM, Thomas Broyer t.bro...@gmail.com wrote: This is where you fail to understand me: you make the assumption that the authentication process takes place, while I'm talking about bypassing it with a session-fixation attack. I understood perfectly, Thomas. To reiterate, the attacker will have had to authenticate in order to acquire a valid sid which he then stores and waits in prey for the user to respond to his email with a link to his site. When the user takes the bait and visits the attacker's site the attacker redirects the user to another site including the sid as a query parameter. One possible scenario (easily mitigated through the use of your own domain name): *Attacker*: authenticates to victim.example.com, grabs the cookies in use, store them at attacker.example.com (note: same domain, different subdomains, much like appspot.com hosted apps) At this point the request hits the server and the session id is set the query parameter, the same one as the attackers. This attack can be mitigated by changing the session ID when users logs in and to additionally require the user to authenticate on every important request. A pain in the rear for the user of course but it will largely work. The fact that it does work is due to the reluctance to require users to log in for every important request. Sure enough, even if you used SSL it would require that every request uses it in order to be close to 100% protected from this kind of attack. The only sites I know that do that are some banks. I believe Citibank does for instance. Interestingly I believe Facebook announced that they will be rolling this out to all their members. It will be interesting to see how it affects the performance of their site. Perhaps requiring every one to use SSL for every request is the right approach. Maybe we should all be going in that direction but service providers might be loathe to provide this service as it adds additional demands on their servers that they might not be able to handle and the users might complain because of the increased latency. Perhaps using HttpOnly headers would also mitigate this kind of attack. I don't think App Engine supports it though but I wish it did. The bottom line is this, it really comes down to a multi-faceted approach to security. One big wall isn't going to cut it and the more obstacles put up the less chances are that some malcontent will be successful. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt mvp sessions
With RPC I define all my RPC synchronous methods taking a string parameter whose value will be assigned from the cooke storing the sid. On the server, the handler will compare this string value to the value returned from the Session.getId() method. If they aren't the same I throw a custom exception which is caught on the client in the overloaded OnFailure method of the RPC call. Here's the typical code for a server-side handler: @Override public SingleRPCPayloadSomeTyoe someMethod(String clientSid, ...) throws MyCapabilityDisabledException { HttpSession session = getThreadLocalRequest().getSession(true); String sid = session.getId(); if (clientSid.equals(sid)) { . . . return payload; } else { throw new MyInvalidSessionException(); } } On Fri, Feb 25, 2011 at 7:01 PM, veenatic praveen.bit...@gmail.com wrote: I think the discussion has become very interesting and I understood a lot about attacks and attackers but I still ponder over the question that if we have to put the auth token on the payload of the RequestFactory, how to do that? And after this how to read the token from the payload to verify it? -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt mvp sessions
btw my bad I meant to say overridden OnFailure method... sorry about that On Fri, Feb 25, 2011 at 7:15 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: With RPC I define all my RPC synchronous methods taking a string parameter whose value will be assigned from the cooke storing the sid. On the server, the handler will compare this string value to the value returned from the Session.getId() method. If they aren't the same I throw a custom exception which is caught on the client in the overloaded OnFailure method of the RPC call. Here's the typical code for a server-side handler: @Override public SingleRPCPayloadSomeTyoe someMethod(String clientSid, ...) throws MyCapabilityDisabledException { HttpSession session = getThreadLocalRequest().getSession(true); String sid = session.getId(); if (clientSid.equals(sid)) { . . . return payload; } else { throw new MyInvalidSessionException(); } } On Fri, Feb 25, 2011 at 7:01 PM, veenatic praveen.bit...@gmail.comwrote: I think the discussion has become very interesting and I understood a lot about attacks and attackers but I still ponder over the question that if we have to put the auth token on the payload of the RequestFactory, how to do that? And after this how to read the token from the payload to verify it? -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- 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: Spring GWT Integration
+1 On Thu, Feb 24, 2011 at 3:55 PM, nino ekambi jazzmatad...@googlemail.comwrote: Well because this is an open source Project and maybe some one else could contribuate ? :) I think those guys are busy building the best Web framework out there. 2011/2/24 lascarayf lascar...@gmail.com Why GWT team do not make a OFFICIAL GWT SPRING INTEGRATION DOCUMENT?? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt mvp sessions
On Thu, Feb 24, 2011 at 6:19 PM, Thomas Broyer t.bro...@gmail.com wrote: In such a scenario, you'll generally have a session maintained by the server through a cookie, which will be enough (yes, cookies are not that secure, but still deemed secure enough that everyone from Google to Facebook, Twitter, Microsoft, Yahoo!, etc. use them). I respectfully disagree, Thomas, and think your advice on this is ill served. In addition I believe that there are those at all the companies that you mentioned who would take issue with your opinion. Values from cookies that are explicitly maintained on the client and which are transported to the server as part of an RPC's payload can be trusted but values which come directly from HTTPRequest's cookies aren't trustworthy. That's a fact. Leave one little hole open and some malcontent with a half a brain is going to take advantage of it and hijack your session. It's such an easy prevention to implement that one would have to be foolish to not take advantage of it. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- 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: Managing session timeouts in GWT
On the server compare the user's session id that you placed in your payload to the servlets current session id. If they aren't the same throw a custom exception and catch it on the client's onFailure method. Don't use the request's cookies session value because it is vulnerable to hijacking. Instead, when your user logs in copy their session id to a cookie on the client. Every time you make an rpc call include the session id up to the server. Jeff On Wed, Feb 23, 2011 at 3:25 PM, joe kolba joekolb...@gmail.com wrote: My app is currently built around the Spring framework and Spring Security + GWT. Is there any way for me to redirect to login when a session expires or when the user makes a RPC request when the session has expired? I was thinking about creating a timer that tracks the time between RPC calls, once the timer has gone above the allocated time I could do a Window redirect. Any suggestions? -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ follow me on twitter: @jefftschwartz -- 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: Eclipse 3.6 + GPE startup time
You should probably post this in the eclipse forum but have you checked you eclipse logs? That would be the 1st place I'd look. On Wed, Feb 23, 2011 at 7:19 PM, Bryan Donnovan bryandonno...@gmail.comwrote: Eclipse takes around 1 minute to launch and seems to get worse over time. I have only 3 GWT projects in the workspace, and I'm not sure what to do about this problem. Does anyone know a method for improving the startup time? -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ follow me on twitter: @jefftschwartz -- 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: Best hosting provider for GWT app
Well I'd certainly put App Engine very high on the list and maybe even at the top of the list if your application can live within App Engine's quotas and constraints. Jeff On Tue, Feb 22, 2011 at 1:37 PM, Deepak Singh deepaksingh...@gmail.comwrote: Hi All, Lets share our experience for the hosting of gwt apps. If someone has experienced a hosting provider before or know the best in the market, let all should know who is the best ? Priority should be the server speed to deliver files quickly as gwt app face the startup time issue. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ follow me on twitter: @jefftschwartz -- 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: Strange Doubt, can we have more than one RPC in GWT application, web.xml?
You can have more than 1 ServiceImpl servlet. On Tue, Feb 22, 2011 at 2:01 PM, amarasat amarasat...@gmail.com wrote: Hello everyone, This might be a silly doubt. But after implementing the StockWatcherApplication, i ran into a strange doubt. This is the RPC definition and its servlet mapping in web.xml !-- Servlets -- servlet servlet-namestockPriceServiceImpl/servlet-name servlet- classcom.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl/ servlet-class /servlet servlet-mapping servlet-namestockPriceServiceImpl/servlet-name url-pattern/stockwatcher/stockPrices/url-pattern /servlet-mapping According to the tutorial we replace the RPC service GreetingServiceImpl with the StockPriceServiceImpl, but what if we want the application to implement both the RPC's? Can it be done? like to declare both the GreetingServiceImpl and StockPriceServiceImpl in the web.xml. -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ follow me on twitter: @jefftschwartz -- 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.
In praise of GWT and App Engine
I needed a personal Web site where I could host my credentials, one I can use as sort of a promo to highlight my GWT and App Engine experience and showcase my work because I am currently looking for development work. So using App Engine and GWT I put together http://jefftschwartz.appspot.com/. On the back-end I used App Engine's Java Mail API for sending inquiries to my Google email account and a GWT-RPC servlet to handle the requests. All the markup was done right in the GWT application's hosting page using plain HTML I used RootPanel.get and DOM.getElementById and various widget wrapper methods to tie the scripting to user events on the page elements. What impressed me the most was that it only took me a few hours total development time from concept to implementation. The combination of being able to create an App Engine application ID on demand and benefit from GWT's productivity is an awesome combination. Many thanks to the App Engine GWT teams for some pretty powerful juvu. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ follow me on twitter: @jefftschwartz -- 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: content type of DataResource
There's a little publicized feature in Eclipse (I assume you are using it). In the package explorer, right click on your resource, select Google and then select Add To Client Bundle. Magic! When I tripped over this one I was giggly. It also works for css files and even creates the interface for them as well. On Tue, Feb 22, 2011 at 7:05 PM, Bryan Donnovan bryandonno...@gmail.comwrote: I am using a ClientBundle with DataResource elements for audio files used as sound effects. e.g. public interface Sounds extends ClientBundle { @Source(sound1.mp3) DataResource sound1(); @Source(sound2.wav) DataResource sound2(); } In the above example, the url of sound1begins data:content/ unknown; while sound2 begins data:audio/x-wav How do I influence what content type appears in the data url? For instance, I would like audio/mp3 as opposed to content/unknown thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ follow me on twitter: @jefftschwartz -- 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: Master-details with GWT
Yes, that's how. If the total amount of child records for all parents isn't that many you can prefetch them all. In the onSuccess method where you receive the Parent record create a set of parent keys based on the result set you received back and send the set collection up to the server via RPC where you can issue either a query using 'in' or individual gets for each element in the set. In the onSuccess method of this second RPC call you can then propagate your parent cell table. Jeff On Mon, Feb 21, 2011 at 12:08 PM, csaffi csaff...@gmail.com wrote: Thank you for your suggestion Jeff. I was talking about the UI implementation of master-details. If I'm not wrong, this is what I could be: when a row on CellTable gets selected - get Master record from DataProvider - retreive related Details records from datastore -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ follow me on twitter: @jefftschwartz -- 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: Master-details with GWT
Not sure what kind of help you are asking for. Do you want suggestions regarding the UI and what interface elements to use or are you asking about database schema, etc.? If your question is UI related you can use a CellTable to present the master records. When a row is selected you can get the Master record from DataProvider which acts as sort of a middle man between the actual data and the CellTable and then retrieve its many side of records from what ever datastore you are using. There are other ways of course but CellTable is very efficient and fast. On Sat, Feb 19, 2011 at 7:36 AM, csaffi csaff...@gmail.com wrote: Hi everybody, I'd like to develop a web application using GWT for implementing the master-details pattern. When clicking on the master-table, the details- table will show all records related to the master. For example, two related tables with a 1:n relation could be these: - Master: orders(id, date, totalAmount) - Details: order(order, code, description, price, qty) Please help me if you could suggest anything. Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to make a TextArea auto-growing...?
There's a jQuery plugin that I've used in the past with good results. I imagine that its code could be a model for a gwt derived textarea widget. Unfortunately I don't have the time to do this now but if I do in the future I'll take a crack at it. I don't think it would be that difficult. On Fri, Feb 18, 2011 at 6:38 AM, Carlo Alberto Degli Atti lordk...@gmail.com wrote: Hi, I've looked around but I haven't found any solution, so I post it here: how can I make a TextArea that expands its height depending on the text inside? Thanks CA -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to make a TextArea auto-growing...?
Doesn't work in FFv3.6.13 scoll bar is visible and text area does not expand On Fri, Feb 18, 2011 at 6:07 PM, Brandon Donnelson branflake2...@gmail.comwrote: I made a demo of textbox expanding and text area expansion. http://demogwttextexpand.appspot.com/ - demo http://code.google.com/p/gwt-examples/wiki/DemoGWTTextBoxExpander - wiki, links to source here. Brandon Donnelson http://gwt-examples.googlecode.com http://c.gawkat.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to make a TextArea auto-growing...?
textarea also doesn't work in chrome v9.0.597.98 On Fri, Feb 18, 2011 at 6:09 PM, Andy pula...@gmail.com wrote: The AutoSizingTextArea widget is up at http://code.google.com/p/gwt-traction/ I hope you find it useful. I'm happy to accept patches if anyone wants to suggest changes. On Feb 18, 2:15 pm, Andy pula...@gmail.com wrote: I'm refactoring the code into gwt-traction right now, but noticing that GQuery no longer has this static method: public static String curCSS(Element elem, String name, boolean force) I should be close once I find its replacement. On Feb 18, 11:44 am, Andy pula...@gmail.com wrote: We have a good implementation of both an auto-sizing TextArea (vertical) and an auto-sizing TextBox (horizontal) that automatically adjust to the CSS specified for the box (accommodating different fonts, line-height, padding, etc). I've been meaning to share it for a while and will do it this weekend. It's currently dependent on GQuery.curCSS to get the computed styles. I was hoping to remove that dependency before adding it to our gwt- traction library but since we use GQuery in other places, it hasn't been a priority for me. I'll try to remove that, but the first version may require GQuery. I should be able to have it up by Monday. Hopefully you can wait that long. I'll update this thread when it's available. Cheers, Andy On Feb 18, 6:38 am, Carlo Alberto Degli Atti lordk...@gmail.com wrote: Hi, I've looked around but I haven't found any solution, so I post it here: how can I make a TextArea that expands its height depending on the text inside? Thanks CA -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to make a TextArea auto-growing...?
also doesn't work in ie v8 On Fri, Feb 18, 2011 at 6:13 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: textarea also doesn't work in chrome v9.0.597.98 On Fri, Feb 18, 2011 at 6:09 PM, Andy pula...@gmail.com wrote: The AutoSizingTextArea widget is up at http://code.google.com/p/gwt-traction/ I hope you find it useful. I'm happy to accept patches if anyone wants to suggest changes. On Feb 18, 2:15 pm, Andy pula...@gmail.com wrote: I'm refactoring the code into gwt-traction right now, but noticing that GQuery no longer has this static method: public static String curCSS(Element elem, String name, boolean force) I should be close once I find its replacement. On Feb 18, 11:44 am, Andy pula...@gmail.com wrote: We have a good implementation of both an auto-sizing TextArea (vertical) and an auto-sizing TextBox (horizontal) that automatically adjust to the CSS specified for the box (accommodating different fonts, line-height, padding, etc). I've been meaning to share it for a while and will do it this weekend. It's currently dependent on GQuery.curCSS to get the computed styles. I was hoping to remove that dependency before adding it to our gwt- traction library but since we use GQuery in other places, it hasn't been a priority for me. I'll try to remove that, but the first version may require GQuery. I should be able to have it up by Monday. Hopefully you can wait that long. I'll update this thread when it's available. Cheers, Andy On Feb 18, 6:38 am, Carlo Alberto Degli Atti lordk...@gmail.com wrote: Hi, I've looked around but I haven't found any solution, so I post it here: how can I make a TextArea that expands its height depending on the text inside? Thanks CA -- 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. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ follow me on twitter: @jefftschwartz -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ follow me on twitter: @jefftschwartz -- 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: Feedback Requested: Preview of new GWT Style Theme
It is an improvement over previous attempts but can I make a suggestion? Why not use a top graphic artist? Developers are great at layout but... well you know where I'm going with this. Jeff On Wed, Feb 16, 2011 at 1:12 PM, John LaBanca jlaba...@google.com wrote: The GWT team is happy to (pre)announce that we will introduce a new, more modern CSS style theme in GWT 2.3 called Clean. The new theme makes existing widgets look cleaner (more business-like) than the standard theme, and replaces the thick light blue borders with thin gray borders. We worked under the constraint that we would not modify the DOM structure of the existing widgets because we didn't want to break existing apps, so this new theme is purely a CSS overhaul. You can preview the new Clean style theme at the link below: http://gwt-showcase-clean.appspot.com/ Please let us know what you like and dislike about the new theme, and if you are interested in switching your app to it. Once we release the theme, it becomes very difficult to change it without affecting existing apps, so early feedback is helpful. Thanks, John LaBanca jlaba...@google.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Latest plugin clobbered Hover settings in Eclipse Helios
Hi, Just a heads up on the latest AppEngine plugin, after I installed it my Eclipse Java Editor Hover settings were altered. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Reload to logout
Window.Location.assign(your gwt application's url goes here); On Sun, Feb 13, 2011 at 3:35 AM, daniela iervolino daniela.ie...@gmail.comwrote: Hi everybody, I want to do a logout mechanism only reloading the page. The logout is an hyperlink. I have a class MyHistoryListener that manages the tokens to forward to the right page. If the token is logout, I want to reload my page... The problem is that the reloading goes on forever until I stop the application. Instead if I put a control like this if( ! History.getToken().equals(logout){ History.fireCurrentHistoryState(); } in the onModuleLoad() page, I have that the window do a fake reloading. I mean I have a blank page with the history equals to #logout. Does anyone know how I can obtain one true reloading? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Performace Tips
Is the problem in dev or production? On Feb 10, 2011 12:33 PM, tjmcc18 tjmc...@gmail.com wrote: I am working on a GWT application and over time it has become extremely slow while running in IE7. It still runs very fast in Firefox3 however. This leads me to believe there must be some GWT specific programming techniques that while acceptable when running in Firefox, cause IE to run very slow. I know there are various debuggers and things I can use to attempt to find the cause, but has anyone run into this issue where IE is slow and FF is fast? Have you found any techniques which enabled you to speed up IE? Thanks, TJ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to add scroll bar in flowpanel ?
+1 yeah On Wed, Feb 9, 2011 at 11:03 AM, John LaBanca jlaba...@google.com wrote: ... We're working on adding touch event support to ScrollPanel to fix this. Thanks, John LaBanca jlaba...@google.com On Wed, Feb 9, 2011 at 12:04 AM, Hemang shah hemangsha...@gmail.comwrote: hey thanks but i can't find anything from this will u please elaborate? i used scrollpanel in gwt it work nicely in desktop browser but it doesn't even apear in mobile browser. it display some of the content only but not appear scrollbar.. pls if u know than help On Tue, Feb 8, 2011 at 11:31 AM, harry hemangsha...@gmail.com wrote: hey thanks but i can't find anything from this will u please elaborate? i used scrollpanel in gwt it work nicely in desktop browser but it doesn't even apear in mobile browser. it display some of the content only but not appear scrollbar.. pls if u know than help On Feb 7, 9:40 pm, John LaBanca jlaba...@google.com wrote: Most mobile web browsers do not support inline scrolling, only page level scrolling. If you really need inline scrolling, you can take a look at the MobileScrollPanel we created for a demo a while back. It scrolls in response to TouchEvents. http://code.google.com/p/google-web-toolkit/source/browse/?#svn%2Ftru... Thanks, John LaBanca jlaba...@google.com On Mon, Feb 7, 2011 at 12:48 AM, harry hemangsha...@gmail.com wrote: i am developing an mobile application and i have a problem that i can not add scrollbar in it. i want to add scroll bar in my flow panel and i also want to fix my flowpanel's size fit to screen size. if anyone knows the solution pls tell me thanks in adv -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Developing a large scale GWT app and MVP
I may be treading on thin ice here but I haven't been convinced yet with the merits of MVP, particularly the one native to GWT which I find overly complex and poorly documented. I am developing a rather complex ui for an app which I had looked into using MVP for but it left me with more questions than answers. I decided to go sans MVP using a tightly coupled protocol relying on the event bus for intra view communications. Yes, I know that using junit tests are slow but then I am not sold on junit testing either as an end all to testing. Ducking... :) On Wed, Feb 9, 2011 at 11:30 AM, Ernesto Reig erniru...@gmail.com wrote: But what if the popup is complex enough to have its own logic? I mean, you have a popup acting as another mini-application. For example, a popup panel with a form asking for some input and a panel to show its search results which the user can interact with. Would it be correct to have its own MVP stuff (places, activities, activityManager,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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Announcing GPE/GWT 2.2 RC1
Java 5 is just s old lol. Java 6 makes me feel s young and Java 7 will make me feel like a kid again lol. On Tue, Feb 8, 2011 at 3:11 PM, Jeff Larsen larse...@gmail.com wrote: Also it is very cool to be able to put @Override on interface methods. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Considering using Google Accounts for authentication. Good idea?
To tidy up this thread I'd like to report that I have successfully implemented Google Accounts authentication in Love My Vehicle On The Web at http://lovemyvehicle.appspot.com/. I am sorry to say, though, that I had to completely purge the datastore at the same time (the requirements for my previous home grown approach were much different than what was needed by using Google Accounts so it really required new schemas to match the use case) so anyone who had previously registered to to check out the progress I am making on the application's development will have to register again but this time with Google Accounts. I apologize but I think you will agree that using the secure services of Google Accounts going forward greatly outweighs this minor inconvenience. BTW, I implemented Google Accounts without resorting to using JSP and HttpServlet. Instead, I was able to implement the service using RPC and RemoteServiceServlet. If anyone is interested in getting more details on this please let me know and if there are enough requests I will contribute an article covering the subject on my Blog at http://lovemyvehicle.blogspot.com/. Jeff On Tue, Feb 1, 2011 at 9:08 AM, Jeff Schwartz jefftschwa...@gmail.comwrote: Hi all, I hope you don't mind me cross posting this to both the gwt and app engine groups since I'd really like to get the opinions of users on both platforms. I'm in the middle of developing a gwt application on app engine. The application's security requirements are that non members, meaning those that haven't registered, are restricted to viewing only the application's public 'page'. What I developed for authentication is home grown using my own login form, client side cookies and a User entity with password and email address stored in the application's data store. While my home grown implementation works perfectly I am not comfortable with the security implications of cookies and passing raw passwords to the server to authenticate my users. I also can not use SSL at this time as financial constraints unfortunately prohibit any expenditures on this project. As I place my users' privacy and security above all else I am therefore looking to implement a better solution; one that would if possible eliminate my responsibility altogether of having to store cookies and passwords and transport them via HTTP when authenticating. One alternative that I am currently considering is using Google Accounts to authenticate my users along with my own User entity that would store the additional information users must provide when registering to use the services of my application. My User entity (not to be confused with the User object provided by the User API) would store the user's Google Account ID and would provide the ability to determine if a user is registered simply by querying for their Google Accounts ID in my datastore. It would eliminate having to store client side cookies and sending raw passwords to the server. So far it seems like a win-win proposition as it appears to satisfy all my use cases. For those who already use Google Accounts for user authentication are you happy with the service? How about the services' availability track record and does it provide the security you had hoped it would? For those using Google Accounts along with GWT have you found any specific issues related to using it with GWT (I am using RPC BTW) that you can relate? I am looking forward to reading your feedback and responses and thanks in advance. Jeff -- *Jeff Schwartz* -- *Jeff Schwartz* -- 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: Calculate age
I think you will find that you are not alone in your opinion regarding using deprecated methods and that you are in fact in good company. On Thu, Feb 3, 2011 at 7:35 AM, kkpirri hkakashisharin...@gmail.com wrote: Thank you! JsDate worked perfectly. Maybe I am too picky but I don't like using deprecated methods and neither suppress warning tags. Thank you. On 3 feb, 10:17, Thomas Broyer t.bro...@gmail.com wrote: If you want JVM forwards compatibility, then use Calendar. If you want GWT compatibility, then use java.util.Date and ignore the warnings: your code doesn't run in a JVM, what matters is what GWT understands. You can alternatively use JsDate http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g... . If you want both, then you can use JodaTime (there's a GWT-compatible port). But honestly, do you really think java.util.Date will go away before you do some maintenance work on your app? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to add datetimepiker in GWT
Using UiBinder in some ui.xml file: ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui xmlns:dp=urn:import:com.google.gwt.user.datepicker.client ... table id=inputTable tr tdg:Label addStyleNames={style.detailLabel} {style.required}Date of purchase/g:Label/td tddp:DateBox ui:field=dopDateBox styleName={style.detailValue}//td /tr /table ... Then, in the .java file: ... @UiField DateBox dopDateBox; ... dopDateBox.setFormat(new DateBox.DefaultFormat(DateTimeFormat.getFormat( dd, ))); dopDateBox.getDatePicker().setWidth(200px); dopDateBox.addValueChangeHandler(new ValueChangeHandlerDate(){ @Override public void onValueChange(ValueChangeEventDate event) { ... } }); ... I hope this helps. Jeff On Thu, Feb 3, 2011 at 9:28 AM, Ben Imp benlee...@gmail.com wrote: As far as I am aware, there is no such widget. You will have to make one. -Ben On Feb 3, 3:24 am, sujit mishra sujit.u...@gmail.com wrote: Hi , I need help regards datetimepicke widget . I am using GWT but not found any widget that able to capture date and time both at a time from user. So , please help me how to add datetimepicke using GWT Thanks Sujit Mishra -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to add datetimepiker in GWT
I haven't tested it but DatePicker's getValue method returns a Date object. What I am not sure of is if the Date object reflects the current time when a user selects a date from the calendar. The returned Date's getTime() method needs to be tested to see if it does or doesn't. Jeff On Thu, Feb 3, 2011 at 10:43 AM, Ben Imp benlee...@gmail.com wrote: I think you missed the bit about capturing the time portion as well. -Ben On Feb 3, 8:47 am, Jeff Schwartz jefftschwa...@gmail.com wrote: Using UiBinder in some ui.xml file: ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui xmlns:dp=urn:import:com.google.gwt.user.datepicker.client ... table id=inputTable tr tdg:Label addStyleNames={style.detailLabel} {style.required}Date of purchase/g:Label/td tddp:DateBox ui:field=dopDateBox styleName={style.detailValue}//td /tr /table ... Then, in the .java file: ... @UiField DateBox dopDateBox; ... dopDateBox.setFormat(new DateBox.DefaultFormat(DateTimeFormat.getFormat( dd, ))); dopDateBox.getDatePicker().setWidth(200px); dopDateBox.addValueChangeHandler(new ValueChangeHandlerDate(){ @Override public void onValueChange(ValueChangeEventDate event) { ... } }); ... I hope this helps. Jeff On Thu, Feb 3, 2011 at 9:28 AM, Ben Imp benlee...@gmail.com wrote: As far as I am aware, there is no such widget. You will have to make one. -Ben On Feb 3, 3:24 am, sujit mishra sujit.u...@gmail.com wrote: Hi , I need help regards datetimepicke widget . I am using GWT but not found any widget that able to capture date and time both at a time from user. So , please help me how to add datetimepicke using GWT Thanks Sujit Mishra -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Considering using Google Accounts for authentication. Good idea?
Hi David, I believe that automatic redirects to the sign-in page is optional and is only enforced if specified by establishing a security constraint in the application's deployment descriptor for those pages where that behavior is desired. Without this option I believe I can use the following technique via RPC: In an RPC implementation I call the request object's getUserPrincipal() method. If that returns null then I know the user isn't logged in so I then call the UserService method createLoginURL(java.lang.String destinationURL) where destinationURL is the url for my application and pass the generated login url back to the client which will then navigate the browser to the login page using the returned login url. The login page will redirect the user back to my app after they have logged in and again my rpc implementation is called but this time the user is logged in so then a query is made to the datastore to determine if the user has registered to use the application (using the user's Google Accounts ID) and if they haven't that is communicated back to the client in the payload, otherwise the user is logged in and they have already registered to use the app and that is communicated back to the client via the payload. The call to the above RPC implementation would be done in the module's entry point which means there is no way the user can bypass the login mechanism, even when the login page redirects the user back to the application after they have logged in. This cycle is key to the implementation. What do you think about using this approach? Jeff page is onl is available but that it isn't required as On Tue, Feb 1, 2011 at 1:24 PM, David Chandler drfibona...@google.comwrote: Yes, this is workable, but note that login with Google Accounts requires a redirect to the Google Accounts login page. It may be easier (and more secure) to see if the user is logged in on the server side using a JSP or servlet filter, then redirect accordingly to the Google Accounts login page or your app's host page. But either way works. /dmc On Tue, Feb 1, 2011 at 12:14 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: Thanks, David. I would be the last person to think you are being biased as I have come to respect Google above all other hi tech companies out there. If I were offered an opportunity to work for Google I would jump at it :) I've read all the documentation that Google provides regarding using Google Accounts for authentication. I think the following scenario will suffice for my use case: In my application's EntryPoint I will immediately make an RPC call to check if the user has a Google Account and if they do I will use the Google Account ID to check to see if they have registered to use my application. In response to these outcomes I will generate and return a payload to the client which the client can then use to determine its next course of action. If the payload indicates the the user has registered then the member's view will be rendered to the browser. If the payload indicates that they have a Google Account but haven't registered or it indicates that they don't have a Google Account then the non members view will be rendered to the browser. If the user has a Google Account then the non members view will provide an option for the user to register. If the user doesn't have a Google Account it will provide a link to Google where they can register which I am thinking would be the URL to sign up for Gmail though I might look to automate this somewhat by using the User api to control the forwarding and return urls. Sound good to you? Jeff On Tue, Feb 1, 2011 at 11:55 AM, David Chandler drfibona...@google.comwrote: Hi Jeff, I've been using Google Accounts for login in a GWT side project without any trouble (granted, I'm a little biased :-) I choose Google auth for exactly the reasons you mention. FYI, there are some classes in the Expenses GWT sample app that implement login with Google Accounts on GAE. http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/ /dmc On Tue, Feb 1, 2011 at 9:08 AM, Jeff Schwartz jefftschwa...@gmail.comwrote: Hi all, I hope you don't mind me cross posting this to both the gwt and app engine groups since I'd really like to get the opinions of users on both platforms. I'm in the middle of developing a gwt application on app engine. The application's security requirements are that non members, meaning those that haven't registered, are restricted to viewing only the application's public 'page'. What I developed for authentication is home grown using my own login form, client side cookies and a User entity with password and email address stored in the application's data store. While my home grown implementation works perfectly I am not comfortable with the security implications of cookies and passing raw passwords
Re: Can CellWidgets contain custom composite widgets ?
On Wed, Feb 2, 2011 at 10:06 AM, John LaBanca jlaba...@google.com wrote: +1 Also, we're working on a variation of UiBinder that can generate HTML strings and works with Cells. That should make it easier to template complex cells using HTML/XML. Thanks, John LaBanca jlaba...@google.com On Wed, Feb 2, 2011 at 2:46 AM, zixzigma zixzi...@gmail.com wrote: I realized what I was doing wrong. I was trying to do everything in the custom cell. I decided to handle things at CelLTable level, instead of cell level. so I defined a SingleSelectionModel, and when the row is selected, I change the flag within this selectionModel, which is related to the CellTable, instead of capturing low level click event in the cell. still I need to work on some of its details, since there are some minor problems. Thank you for your insights, it helped a lot. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Considering using Google Accounts for authentication. Good idea?
Once a user is authenticated I use their sid to authenticate them. The sid is retrieved from the server when the user is authenticated and stored on the client in a cookie. Every rpc call includes the sid which is validated against the current session id. If they agree the user is authenticated if they don't the payload back to the client reflects that the client will then force the user to authenticate by making the same rpc call used to authenticate my users. On Feb 2, 2011 12:23 PM, David Chandler drfibona...@google.com wrote: -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to setup multiple database connections: JPA, Hibernate, Spring, Lucene and GWT
Sharding On Feb 2, 2011 1:04 PM, Jan Mostert j...@mycee.com wrote: Sounds interesting! What would be a typical use-case for multiple databases? -- Jan Vladimir Mostert BEngSci Mail: j...@mycee.com MyCee Technologies On Wed, Feb 2, 2011 at 7:09 PM, isolanet giulio.rogg...@gmail.com wrote: Hi to all community members! I'd like to share with you my OSS project that explain how to configure a GWT project with Spring and Hibernate in order to access to more than one DB at the same time. The home of the project is http://code.google.com/p/gwt-spring-jpa-lucene The introduction page is http://code.google.com/p/gwt-spring-...tenceUnitSetup The project is in alpha version. Updates will follow. Thanks! Giulio -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@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.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-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: TextBox width percentage in Standards Mode
100% of what? Your problem has nothing to do with doctypes. If there is no immediate parent with a specific width set then there is nothing to constrain the width of the text box. On Mon, Jan 31, 2011 at 10:55 PM, Craig Mitchell craig...@gmail.com wrote: Hi, If I set a TextBox width percentage (say 100%) in standards mode (Ie: !doctype html), the total width will be larger then 100% due to the TextBox's padding, and border. I can get the width back to 100% by removing them with css like this: .noPadding { padding: 0px; margin: 0px; border: 0px; background-color: #ee; } However, I want the padding and border around the TextBox. How can I set a percentage width on a TextBox, and get it to actually go to that width? The reason I would like to do this, is so it works like ListBox, which doesn't seem to have any padding or border. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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.
Considering using Google Accounts for authentication. Good idea?
Hi all, I hope you don't mind me cross posting this to both the gwt and app engine groups since I'd really like to get the opinions of users on both platforms. I'm in the middle of developing a gwt application on app engine. The application's security requirements are that non members, meaning those that haven't registered, are restricted to viewing only the application's public 'page'. What I developed for authentication is home grown using my own login form, client side cookies and a User entity with password and email address stored in the application's data store. While my home grown implementation works perfectly I am not comfortable with the security implications of cookies and passing raw passwords to the server to authenticate my users. I also can not use SSL at this time as financial constraints unfortunately prohibit any expenditures on this project. As I place my users' privacy and security above all else I am therefore looking to implement a better solution; one that would if possible eliminate my responsibility altogether of having to store cookies and passwords and transport them via HTTP when authenticating. One alternative that I am currently considering is using Google Accounts to authenticate my users along with my own User entity that would store the additional information users must provide when registering to use the services of my application. My User entity (not to be confused with the User object provided by the User API) would store the user's Google Account ID and would provide the ability to determine if a user is registered simply by querying for their Google Accounts ID in my datastore. It would eliminate having to store client side cookies and sending raw passwords to the server. So far it seems like a win-win proposition as it appears to satisfy all my use cases. For those who already use Google Accounts for user authentication are you happy with the service? How about the services' availability track record and does it provide the security you had hoped it would? For those using Google Accounts along with GWT have you found any specific issues related to using it with GWT (I am using RPC BTW) that you can relate? I am looking forward to reading your feedback and responses and thanks in advance. Jeff -- *Jeff Schwartz* -- 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: Sharing objects between several windows to enable interaction
Have you considered using GWT tabs or some other ui feature (roll your own if you have to) that would provide multiple views other than opening multiple browser windows or tabs? I really don't like it when applications open multiple browser windows or tabs and consider that a UI faux pas :). On Tue, Feb 1, 2011 at 8:44 AM, Terje Andre Johansen terje.andre.johan...@gmail.com wrote: I am working on a project where I am using GWT to visualize biological data in several ways. This is done by searching for a gene by name, and what I want to happen is for each visualization to get its own window to display its data. The reason for this is that there is huge amounts of data, and trying to fit more than one visualization in one page is not a ideal way to do it. One of the goals for the project is to enable interaction between these visualization. In short this means that if a user clicks on a gene in one view, a similar event/method should be invoked in the other views as well. The newly opened windows will have the same parent and be in the same domain. I have looked at the GWT API, and so far only found the static void method Window.open(url, name, features). As far as I understand this means that I cannot get hold of the new window as an object to invoke methods on. Neither did I find the equivalent to the JS method window.opener() to get hold of the parent object in the newly opened window. I am wondering if anyone has worked with a similar problem and got some an idea of how to enable Window interaction using GWT. Help is appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Considering using Google Accounts for authentication. Good idea?
Thanks but I'd like to limit the discussion to Google Accounts. On Tue, Feb 1, 2011 at 10:19 AM, Jan Mostert j...@mycee.com wrote: Spring Security should take care of most of those requirements since it already has openID support built in, but that will require authentication to happen outside your GWT application (I'm a bit paranoid exposing my javascript if people aren't authenticated) and if you really need the login to be in GWT, Vaadin does some serverside magic that will allow you to build a secure login form using GWT. On Tue, Feb 1, 2011 at 4:08 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: Hi all, I hope you don't mind me cross posting this to both the gwt and app engine groups since I'd really like to get the opinions of users on both platforms. I'm in the middle of developing a gwt application on app engine. The application's security requirements are that non members, meaning those that haven't registered, are restricted to viewing only the application's public 'page'. What I developed for authentication is home grown using my own login form, client side cookies and a User entity with password and email address stored in the application's data store. While my home grown implementation works perfectly I am not comfortable with the security implications of cookies and passing raw passwords to the server to authenticate my users. I also can not use SSL at this time as financial constraints unfortunately prohibit any expenditures on this project. As I place my users' privacy and security above all else I am therefore looking to implement a better solution; one that would if possible eliminate my responsibility altogether of having to store cookies and passwords and transport them via HTTP when authenticating. One alternative that I am currently considering is using Google Accounts to authenticate my users along with my own User entity that would store the additional information users must provide when registering to use the services of my application. My User entity (not to be confused with the User object provided by the User API) would store the user's Google Account ID and would provide the ability to determine if a user is registered simply by querying for their Google Accounts ID in my datastore. It would eliminate having to store client side cookies and sending raw passwords to the server. So far it seems like a win-win proposition as it appears to satisfy all my use cases. For those who already use Google Accounts for user authentication are you happy with the service? How about the services' availability track record and does it provide the security you had hoped it would? For those using Google Accounts along with GWT have you found any specific issues related to using it with GWT (I am using RPC BTW) that you can relate? I am looking forward to reading your feedback and responses and thanks in advance. Jeff -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Considering using Google Accounts for authentication. Good idea?
but an open id is not a google account. On Tue, Feb 1, 2011 at 10:50 AM, Jan Mostert j...@mycee.com wrote: A google account is already an open-id: http://openid.net/get-an-openid/ http://openid.net/get-an-openid/ -- Jan Vladimir Mostert BEngSci Mail: j...@mycee.com MyCee Technologies On Tue, Feb 1, 2011 at 5:46 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: Thanks but I'd like to limit the discussion to Google Accounts. On Tue, Feb 1, 2011 at 10:19 AM, Jan Mostert j...@mycee.com wrote: Spring Security should take care of most of those requirements since it already has openID support built in, but that will require authentication to happen outside your GWT application (I'm a bit paranoid exposing my javascript if people aren't authenticated) and if you really need the login to be in GWT, Vaadin does some serverside magic that will allow you to build a secure login form using GWT. On Tue, Feb 1, 2011 at 4:08 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: Hi all, I hope you don't mind me cross posting this to both the gwt and app engine groups since I'd really like to get the opinions of users on both platforms. I'm in the middle of developing a gwt application on app engine. The application's security requirements are that non members, meaning those that haven't registered, are restricted to viewing only the application's public 'page'. What I developed for authentication is home grown using my own login form, client side cookies and a User entity with password and email address stored in the application's data store. While my home grown implementation works perfectly I am not comfortable with the security implications of cookies and passing raw passwords to the server to authenticate my users. I also can not use SSL at this time as financial constraints unfortunately prohibit any expenditures on this project. As I place my users' privacy and security above all else I am therefore looking to implement a better solution; one that would if possible eliminate my responsibility altogether of having to store cookies and passwords and transport them via HTTP when authenticating. One alternative that I am currently considering is using Google Accounts to authenticate my users along with my own User entity that would store the additional information users must provide when registering to use the services of my application. My User entity (not to be confused with the User object provided by the User API) would store the user's Google Account ID and would provide the ability to determine if a user is registered simply by querying for their Google Accounts ID in my datastore. It would eliminate having to store client side cookies and sending raw passwords to the server. So far it seems like a win-win proposition as it appears to satisfy all my use cases. For those who already use Google Accounts for user authentication are you happy with the service? How about the services' availability track record and does it provide the security you had hoped it would? For those using Google Accounts along with GWT have you found any specific issues related to using it with GWT (I am using RPC BTW) that you can relate? I am looking forward to reading your feedback and responses and thanks in advance. Jeff -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
Re: Selecting and disabling elements in CellTable
On Tue, Feb 1, 2011 at 11:06 AM, Greg Dougherty dougherty.greg...@mayo.eduwrote: Jeff, Don't move the check boxes, just don't render them. So, you're saying when the user selects a group they do not own, I should make the checkboxes disappear, leaving me with an empty column Hi Greg, We all have very strong beliefs when it comes to UI so I hope you understand that I am not trying to convert you over to my point of view. But to answer your question, no, I am not saying leave an empty column. I am saying don't display the column. Jeff -- 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: Sharing objects between several windows to enable interaction
If I were dealing with as dense an amount of data as you seem to be dealing with I'd look to use 1 physical window with possibly multiple view ports to present it all. Just MHO and YMMV. On Tue, Feb 1, 2011 at 10:20 AM, Terje Andre Johansen terje.andre.johan...@gmail.com wrote: As far as I can see this would force me to re-render each view on change and also make it harder for a user to compare the different views. Further if the user has multiple screens, I think using several Windows is better than using only one. Your idea is good, however its not what I want to do if it is possible to do it the way I described. If am not mistaken, if the user is using Chrome I would actually be able to use several cores in the CPU for rendering if the application is split between different Windows? Correct me if I am mistaken. On 1 Feb, 15:17, Jeff Schwartz jefftschwa...@gmail.com wrote: Have you considered using GWT tabs or some other ui feature (roll your own if you have to) that would provide multiple views other than opening multiple browser windows or tabs? I really don't like it when applications open multiple browser windows or tabs and consider that a UI faux pas :). On Tue, Feb 1, 2011 at 8:44 AM, Terje Andre Johansen terje.andre.johan...@gmail.com wrote: I am working on a project where I am using GWT to visualize biological data in several ways. This is done by searching for a gene by name, and what I want to happen is for each visualization to get its own window to display its data. The reason for this is that there is huge amounts of data, and trying to fit more than one visualization in one page is not a ideal way to do it. One of the goals for the project is to enable interaction between these visualization. In short this means that if a user clicks on a gene in one view, a similar event/method should be invoked in the other views as well. The newly opened windows will have the same parent and be in the same domain. I have looked at the GWT API, and so far only found the static void method Window.open(url, name, features). As far as I understand this means that I cannot get hold of the new window as an object to invoke methods on. Neither did I find the equivalent to the JS method window.opener() to get hold of the parent object in the newly opened window. I am wondering if anyone has worked with a similar problem and got some an idea of how to enable Window interaction using GWT. Help is appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2Bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Considering using Google Accounts for authentication. Good idea?
Thanks, David. I would be the last person to think you are being biased as I have come to respect Google above all other hi tech companies out there. If I were offered an opportunity to work for Google I would jump at it :) I've read all the documentation that Google provides regarding using Google Accounts for authentication. I think the following scenario will suffice for my use case: In my application's EntryPoint I will immediately make an RPC call to check if the user has a Google Account and if they do I will use the Google Account ID to check to see if they have registered to use my application. In response to these outcomes I will generate and return a payload to the client which the client can then use to determine its next course of action. If the payload indicates the the user has registered then the member's view will be rendered to the browser. If the payload indicates that they have a Google Account but haven't registered or it indicates that they don't have a Google Account then the non members view will be rendered to the browser. If the user has a Google Account then the non members view will provide an option for the user to register. If the user doesn't have a Google Account it will provide a link to Google where they can register which I am thinking would be the URL to sign up for Gmail though I might look to automate this somewhat by using the User api to control the forwarding and return urls. Sound good to you? Jeff On Tue, Feb 1, 2011 at 11:55 AM, David Chandler drfibona...@google.comwrote: Hi Jeff, I've been using Google Accounts for login in a GWT side project without any trouble (granted, I'm a little biased :-) I choose Google auth for exactly the reasons you mention. FYI, there are some classes in the Expenses GWT sample app that implement login with Google Accounts on GAE. http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/ /dmc On Tue, Feb 1, 2011 at 9:08 AM, Jeff Schwartz jefftschwa...@gmail.comwrote: Hi all, I hope you don't mind me cross posting this to both the gwt and app engine groups since I'd really like to get the opinions of users on both platforms. I'm in the middle of developing a gwt application on app engine. The application's security requirements are that non members, meaning those that haven't registered, are restricted to viewing only the application's public 'page'. What I developed for authentication is home grown using my own login form, client side cookies and a User entity with password and email address stored in the application's data store. While my home grown implementation works perfectly I am not comfortable with the security implications of cookies and passing raw passwords to the server to authenticate my users. I also can not use SSL at this time as financial constraints unfortunately prohibit any expenditures on this project. As I place my users' privacy and security above all else I am therefore looking to implement a better solution; one that would if possible eliminate my responsibility altogether of having to store cookies and passwords and transport them via HTTP when authenticating. One alternative that I am currently considering is using Google Accounts to authenticate my users along with my own User entity that would store the additional information users must provide when registering to use the services of my application. My User entity (not to be confused with the User object provided by the User API) would store the user's Google Account ID and would provide the ability to determine if a user is registered simply by querying for their Google Accounts ID in my datastore. It would eliminate having to store client side cookies and sending raw passwords to the server. So far it seems like a win-win proposition as it appears to satisfy all my use cases. For those who already use Google Accounts for user authentication are you happy with the service? How about the services' availability track record and does it provide the security you had hoped it would? For those using Google Accounts along with GWT have you found any specific issues related to using it with GWT (I am using RPC BTW) that you can relate? I am looking forward to reading your feedback and responses and thanks in advance. Jeff -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools
Re: Considering using Google Accounts for authentication. Good idea?
I will explore both options and I will also take a look at the Expenses GWT sample app you mentioned. Thanks! Jeff On Tue, Feb 1, 2011 at 1:24 PM, David Chandler drfibona...@google.comwrote: Yes, this is workable, but note that login with Google Accounts requires a redirect to the Google Accounts login page. It may be easier (and more secure) to see if the user is logged in on the server side using a JSP or servlet filter, then redirect accordingly to the Google Accounts login page or your app's host page. But either way works. /dmc On Tue, Feb 1, 2011 at 12:14 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: Thanks, David. I would be the last person to think you are being biased as I have come to respect Google above all other hi tech companies out there. If I were offered an opportunity to work for Google I would jump at it :) I've read all the documentation that Google provides regarding using Google Accounts for authentication. I think the following scenario will suffice for my use case: In my application's EntryPoint I will immediately make an RPC call to check if the user has a Google Account and if they do I will use the Google Account ID to check to see if they have registered to use my application. In response to these outcomes I will generate and return a payload to the client which the client can then use to determine its next course of action. If the payload indicates the the user has registered then the member's view will be rendered to the browser. If the payload indicates that they have a Google Account but haven't registered or it indicates that they don't have a Google Account then the non members view will be rendered to the browser. If the user has a Google Account then the non members view will provide an option for the user to register. If the user doesn't have a Google Account it will provide a link to Google where they can register which I am thinking would be the URL to sign up for Gmail though I might look to automate this somewhat by using the User api to control the forwarding and return urls. Sound good to you? Jeff On Tue, Feb 1, 2011 at 11:55 AM, David Chandler drfibona...@google.comwrote: Hi Jeff, I've been using Google Accounts for login in a GWT side project without any trouble (granted, I'm a little biased :-) I choose Google auth for exactly the reasons you mention. FYI, there are some classes in the Expenses GWT sample app that implement login with Google Accounts on GAE. http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/ /dmc On Tue, Feb 1, 2011 at 9:08 AM, Jeff Schwartz jefftschwa...@gmail.comwrote: Hi all, I hope you don't mind me cross posting this to both the gwt and app engine groups since I'd really like to get the opinions of users on both platforms. I'm in the middle of developing a gwt application on app engine. The application's security requirements are that non members, meaning those that haven't registered, are restricted to viewing only the application's public 'page'. What I developed for authentication is home grown using my own login form, client side cookies and a User entity with password and email address stored in the application's data store. While my home grown implementation works perfectly I am not comfortable with the security implications of cookies and passing raw passwords to the server to authenticate my users. I also can not use SSL at this time as financial constraints unfortunately prohibit any expenditures on this project. As I place my users' privacy and security above all else I am therefore looking to implement a better solution; one that would if possible eliminate my responsibility altogether of having to store cookies and passwords and transport them via HTTP when authenticating. One alternative that I am currently considering is using Google Accounts to authenticate my users along with my own User entity that would store the additional information users must provide when registering to use the services of my application. My User entity (not to be confused with the User object provided by the User API) would store the user's Google Account ID and would provide the ability to determine if a user is registered simply by querying for their Google Accounts ID in my datastore. It would eliminate having to store client side cookies and sending raw passwords to the server. So far it seems like a win-win proposition as it appears to satisfy all my use cases. For those who already use Google Accounts for user authentication are you happy with the service? How about the services' availability track record and does it provide the security you had hoped it would? For those using Google Accounts along with GWT have you found any specific issues related to using it with GWT (I am using RPC BTW) that you can relate? I am looking forward to reading
Re: Selecting and disabling elements in CellTable
On Tue, Feb 1, 2011 at 1:15 PM, Greg Dougherty dougherty.greg...@mayo.eduwrote: Ok, I've got two checkbox columns interspersed between other columns. If I add and delete the checkbox columns based on the current user selection in the first table, then other columns are going to be jumping around. No? Greg, Use GWT's Ajax abilities to dynamically render the other cell tables with or without the columns in question or instead just hide and show the columns accordingly . It is quite simple and I don't understand what you mean by 'then other columns are going to be jumping around. No? No, they wont. Good luck. Jeff -- 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: Considering using Google Accounts for authentication. Good idea?
On Tue, Feb 1, 2011 at 2:40 PM, Jeff Schnitzer j...@infohazard.org wrote: My $0.02: * For most applications, third-party auth should be a no-brainer. conversion rates will go up when users don't have to create Yet Another Account, and more than make up for any tiny amount of unavailability you are likely to experience. Yup! * If your app is more fun and less business, strongly consider Facebook auth. It's a bit harder to implement but it's quite a bit more javascript friendly - you can perform auth without redirects, getting a javascript callback when login or logout happens. The application is a rewrite of an application that I had written and successfully marketed back in the early 2000s so it is definitely more business than fun - though it will be fun for me to make some money with it (please please please lol) as it will be fun for me to see it providing a service to its users. Jeff On Tue, Feb 1, 2011 at 10:44 AM, Jeff Schwartz jefftschwa...@gmail.com wrote: I will explore both options and I will also take a look at the Expenses GWT sample app you mentioned. Thanks! Jeff On Tue, Feb 1, 2011 at 1:24 PM, David Chandler drfibona...@google.com wrote: Yes, this is workable, but note that login with Google Accounts requires a redirect to the Google Accounts login page. It may be easier (and more secure) to see if the user is logged in on the server side using a JSP or servlet filter, then redirect accordingly to the Google Accounts login page or your app's host page. But either way works. /dmc On Tue, Feb 1, 2011 at 12:14 PM, Jeff Schwartz jefftschwa...@gmail.com wrote: Thanks, David. I would be the last person to think you are being biased as I have come to respect Google above all other hi tech companies out there. If I were offered an opportunity to work for Google I would jump at it :) I've read all the documentation that Google provides regarding using Google Accounts for authentication. I think the following scenario will suffice for my use case: In my application's EntryPoint I will immediately make an RPC call to check if the user has a Google Account and if they do I will use the Google Account ID to check to see if they have registered to use my application. In response to these outcomes I will generate and return a payload to the client which the client can then use to determine its next course of action. If the payload indicates the the user has registered then the member's view will be rendered to the browser. If the payload indicates that they have a Google Account but haven't registered or it indicates that they don't have a Google Account then the non members view will be rendered to the browser. If the user has a Google Account then the non members view will provide an option for the user to register. If the user doesn't have a Google Account it will provide a link to Google where they can register which I am thinking would be the URL to sign up for Gmail though I might look to automate this somewhat by using the User api to control the forwarding and return urls. Sound good to you? Jeff On Tue, Feb 1, 2011 at 11:55 AM, David Chandler drfibona...@google.com wrote: Hi Jeff, I've been using Google Accounts for login in a GWT side project without any trouble (granted, I'm a little biased :-) I choose Google auth for exactly the reasons you mention. FYI, there are some classes in the Expenses GWT sample app that implement login with Google Accounts on GAE. http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/ /dmc On Tue, Feb 1, 2011 at 9:08 AM, Jeff Schwartz jefftschwa...@gmail.com wrote: Hi all, I hope you don't mind me cross posting this to both the gwt and app engine groups since I'd really like to get the opinions of users on both platforms. I'm in the middle of developing a gwt application on app engine. The application's security requirements are that non members, meaning those that haven't registered, are restricted to viewing only the application's public 'page'. What I developed for authentication is home grown using my own login form, client side cookies and a User entity with password and email address stored in the application's data store. While my home grown implementation works perfectly I am not comfortable with the security implications of cookies and passing raw passwords to the server to authenticate my users. I also can not use SSL at this time as financial constraints unfortunately prohibit any expenditures on this project. As I place my users' privacy and security above all else I am therefore looking to implement a better solution; one that would if possible eliminate my responsibility altogether of having to store cookies and passwords and transport them via HTTP
Re: GWT 2.1 cell table paging bug?
On Tue, Feb 1, 2011 at 3:16 PM, zixzigma zixzi...@gmail.com wrote: I do not think this is a bug, and in fact I found the current implementation very desirable. your table always shows X number of rows per page, even if its the last page. with this implementation your table will always have the same height, and same number of rows. and you dont have to deal with cases where there is only 1 or two items in the last page, which might make your UI look inconsistent. Unfortunately the paging mechanism in GWT v2.1 is inconsistent when using the mouse and the keyboard to scroll a paged table. When using the mouse it works the way you describe but when using the keyboard and scrolling down to the last page you will *sometimes* get an 'odd' number of rows. I believe making the table to act this way is more difficult than traditional way of paging, because you have to do some range manipulation, check if its last page, and if so, display enough rows for table pageSize to be met. and GWT CellTable already does this. Yes, I agree. Jeff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Selecting and disabling elements in CellTable
On Tue, Feb 1, 2011 at 3:38 PM, Greg Dougherty dougherty.greg...@mayo.eduwrote: Jeff: Column 1 : Column 2 ; Column 3 Column 1 :Column 3 Column 1 : Column 2 ; Column 3 I thought you said column, Geg, not an individual row's cells and naturally I took that then to mean all check boxes within a column. Is that what you said or do I have a pencil sticking out of my head :)? In any case it's now obvious what your intention is so here's one way to do this but it is by no means the only way: Iterate row by row through your cell table and for each row iterate through each of its cells. If a cell contains a checkbox that needs to be disabled then get the cell's inner html which will be a checkbox. Once you have the checkbox just set it's enabled property to false or better yet hide the checkbox by setting its display attribute to none. There are numerous GWT methods that can assist you in iterating over the DOM and in particular a table. For instance, I use TableElement often, especially TableElement.as which assert that the given Element is compatible with a TableElement and automatically typecast it. Once I have a valid TableElement reference I can then get a reference to its rows by calling its getRows method - just remember to compensate for any table header rows you may have. Once you have a NodeListTableRowElement use its TableRowElements to obtain the cells by calling it getCells method. Once you have the cells you can then iterate over each one and do with them as you like. Jeff Jeff -- 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: Considering using Google Accounts for authentication. Good idea?
I don't think that it is possible to change authorization policies since I've already deployed the app. Am I wrong about that? Additionally, I don't want to discourage users who might be shy of using Facebook for example because of privacy issues associated with many of the social web sites. On Tue, Feb 1, 2011 at 2:45 PM, David Chandler drfibona...@google.comwrote: Better still, you can use GAE OAuth support to support a large number of third-party logins. There's a nice tutorial on GWT+GAE integration with Facebook and Twitter in the book I recently reviewed on my personal blog: http://turbomanage.wordpress.com/2011/01/31/new-gwtgae-book/ /dmc On Tue, Feb 1, 2011 at 2:40 PM, Jeff Schnitzer j...@infohazard.orgwrote: My $0.02: * For most applications, third-party auth should be a no-brainer. conversion rates will go up when users don't have to create Yet Another Account, and more than make up for any tiny amount of unavailability you are likely to experience. * If your app is more fun and less business, strongly consider Facebook auth. It's a bit harder to implement but it's quite a bit more javascript friendly - you can perform auth without redirects, getting a javascript callback when login or logout happens. Jeff On Tue, Feb 1, 2011 at 10:44 AM, Jeff Schwartz jefftschwa...@gmail.com wrote: I will explore both options and I will also take a look at the Expenses GWT sample app you mentioned. Thanks! Jeff On Tue, Feb 1, 2011 at 1:24 PM, David Chandler drfibona...@google.com wrote: Yes, this is workable, but note that login with Google Accounts requires a redirect to the Google Accounts login page. It may be easier (and more secure) to see if the user is logged in on the server side using a JSP or servlet filter, then redirect accordingly to the Google Accounts login page or your app's host page. But either way works. /dmc On Tue, Feb 1, 2011 at 12:14 PM, Jeff Schwartz jefftschwa...@gmail.com wrote: Thanks, David. I would be the last person to think you are being biased as I have come to respect Google above all other hi tech companies out there. If I were offered an opportunity to work for Google I would jump at it :) I've read all the documentation that Google provides regarding using Google Accounts for authentication. I think the following scenario will suffice for my use case: In my application's EntryPoint I will immediately make an RPC call to check if the user has a Google Account and if they do I will use the Google Account ID to check to see if they have registered to use my application. In response to these outcomes I will generate and return a payload to the client which the client can then use to determine its next course of action. If the payload indicates the the user has registered then the member's view will be rendered to the browser. If the payload indicates that they have a Google Account but haven't registered or it indicates that they don't have a Google Account then the non members view will be rendered to the browser. If the user has a Google Account then the non members view will provide an option for the user to register. If the user doesn't have a Google Account it will provide a link to Google where they can register which I am thinking would be the URL to sign up for Gmail though I might look to automate this somewhat by using the User api to control the forwarding and return urls. Sound good to you? Jeff On Tue, Feb 1, 2011 at 11:55 AM, David Chandler drfibona...@google.com wrote: Hi Jeff, I've been using Google Accounts for login in a GWT side project without any trouble (granted, I'm a little biased :-) I choose Google auth for exactly the reasons you mention. FYI, there are some classes in the Expenses GWT sample app that implement login with Google Accounts on GAE. http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/ /dmc On Tue, Feb 1, 2011 at 9:08 AM, Jeff Schwartz jefftschwa...@gmail.com wrote: Hi all, I hope you don't mind me cross posting this to both the gwt and app engine groups since I'd really like to get the opinions of users on both platforms. I'm in the middle of developing a gwt application on app engine. The application's security requirements are that non members, meaning those that haven't registered, are restricted to viewing only the application's public 'page'. What I developed for authentication is home grown using my own login form, client side cookies and a User entity with password and email address stored in the application's data store. While my home grown implementation works perfectly I am not comfortable with the security implications of cookies and passing raw passwords to the server to authenticate my users. I also can not use SSL at this time
Re: Selecting and disabling elements in CellTable
BTW if you are using paging then you will have to do this in response to a rows range change event which I am not sure is even possible. On Tue, Feb 1, 2011 at 3:59 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: On Tue, Feb 1, 2011 at 3:38 PM, Greg Dougherty dougherty.greg...@mayo.edu wrote: Jeff: Column 1 : Column 2 ; Column 3 Column 1 :Column 3 Column 1 : Column 2 ; Column 3 I thought you said column, Geg, not an individual row's cells and naturally I took that then to mean all check boxes within a column. Is that what you said or do I have a pencil sticking out of my head :)? In any case it's now obvious what your intention is so here's one way to do this but it is by no means the only way: Iterate row by row through your cell table and for each row iterate through each of its cells. If a cell contains a checkbox that needs to be disabled then get the cell's inner html which will be a checkbox. Once you have the checkbox just set it's enabled property to false or better yet hide the checkbox by setting its display attribute to none. There are numerous GWT methods that can assist you in iterating over the DOM and in particular a table. For instance, I use TableElement often, especially TableElement.as which assert that the given Element is compatible with a TableElement and automatically typecast it. Once I have a valid TableElement reference I can then get a reference to its rows by calling its getRows method - just remember to compensate for any table header rows you may have. Once you have a NodeListTableRowElement use its TableRowElements to obtain the cells by calling it getCells method. Once you have the cells you can then iterate over each one and do with them as you like. Jeff Jeff -- *Jeff Schwartz* -- 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: Google Web Fonts
From what I read they are just web fonts which means their font css style sheets need to be loaded via a link tag and once they are loaded they are used as any other font would be using standard css font attributes. The Technical Considerations documentation, located at http://code.google.com/apis/webfonts/docs/technical_considerations.html, goes into some detail as to how the actual font style sheets are rendered which is browser dependent and only the browsers listed in this document, http://code.google.com/apis/webfonts/faq.html#Browsers_Supported, are supported. Some of these fonts really look great and can really add some finesse to a page if applied with some restraint :). Another very cool service from Google provided to us struggling web developers... how cool is that? Now I am wondering if these fonts can be used via ClientBundles. Hmmm... Jeff On Fri, Jan 28, 2011 at 2:58 AM, Thomas Lefort lefortho...@gmail.comwrote: Have you tried putting the link in your html file? Interesting anyway, I hadn't heard of it, looks great. I wonder what is the trick (canvas elements?). On Jan 27, 10:02 pm, EMan eric.nis...@gmail.com wrote: Has anyone successfully used this in a GWT project? http://code.google.com/apis/webfonts/docs/getting_started.html#Quick_... I tried to add these fonts to some uiBinder elements, but I can't get it to work. What is the best way to get the font css files to link up? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Google Web Fonts
2011/1/28 Jaroslav Záruba jaroslav.zar...@gmail.com No trick apparently, @font-face. Yup, I believe you are right :) Too bad the fonts (quite predictably) miss many characters and there's no way to complete them. I'd participate glady. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Selecting and disabling elements in CellTable
You can use one of the concrete implementations of AbstractSelectionModel to select rows and respond to row selection. CellTables and AbstractSelectionModel instances work hand-in-hand. You connect the selection model to the cell table by calling the table's setSelectionModel method passing an instance of a selection model. You select rows by calling the selection model's setSelected method passing an instance of the data object being displayed by the table. The row displaying that instance of the data object will then be selected You respond to row selection by adding a SelectionChangeEvent.Handler() to the selection model by calling the selection model's addSelectionChangeHandler method. You can use this event, for instance, to load a detailed view of the selected data object such as more information, data from its children data objects, etc. etc. Jeff On Fri, Jan 28, 2011 at 10:49 AM, Greg Dougherty dougherty.greg...@mayo.edu wrote: I am trying to use three CellTables to make a Users and Groups panel in my current application. Its purpose is so users can give other users access to resources that they control (in this particular case, choosing which people can see the information you've uploaded to a database). The first table is the Groups table. Groups can be added and selected. If you are the owner of the current Group then you can modify its settings, if not, you can't. The second table is Users. It has two columns, a text field with the name of the user, and a checkbox reporting whether or not the user is a member of the selected group. The third table is Resources. It lists the information available to members of the current group, and any information you control that is not available to the current group (so you can give access to that information to the members of the group). It also has two fields, the name of the resource, and a checkbox. Issues I'm trying to solve: 1: How do I programmatically select a row in a table? When a user creates a new group, I wish to select it. When the user first brings up the panel, I'd like to select the first group (or, maybe, the first group the person owns). 2: How do I disable a checkbox? If the user doesn't own the group, they shouldn't be able to change anything. TIA, Greg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Selecting and disabling elements in CellTable
From a UI designer's perspective why display a column of check boxes if the user isn't allowed to click them? I wouldn't personally as a designer nor would I like that if I were a user. If the checkbox column is in a cell table that is being rendered in response to the user having selected something from somewhere else in the view then I'd first determine if the user can or cannot check the boxes and then I would render the table accordingly. But that is just me and the way I would do it. Now, about your question which requires a question: Did you extend ColumnT,C to use check boxes in your cell table? If you did you can extend your implementation's api even further by providing it with methods to enable and disable the checkboxes. Jeff On Fri, Jan 28, 2011 at 11:59 AM, Greg Dougherty dougherty.greg...@mayo.edu wrote: Hi Jeff, Thank you. I added a SingleSelectionModel to my CellTable, and now I can force selection of rows. Any idea how I tell a column of CheckBoxes that they can't accept any clicks? Greg On Jan 28, 10:11 am, Jeff Schwartz jefftschwa...@gmail.com wrote: You can use one of the concrete implementations of AbstractSelectionModel to select rows and respond to row selection. CellTables and AbstractSelectionModel instances work hand-in-hand. You connect the selection model to the cell table by calling the table's setSelectionModel method passing an instance of a selection model. You select rows by calling the selection model's setSelected method passing an instance of the data object being displayed by the table. The row displaying that instance of the data object will then be selected You respond to row selection by adding a SelectionChangeEvent.Handler() to the selection model by calling the selection model's addSelectionChangeHandler method. You can use this event, for instance, to load a detailed view of the selected data object such as more information, data from its children data objects, etc. etc. Jeff On Fri, Jan 28, 2011 at 10:49 AM, Greg Dougherty dougherty.greg...@mayo.edu wrote: I am trying to use three CellTables to make a Users and Groups panel in my current application. Its purpose is so users can give other users access to resources that they control (in this particular case, choosing which people can see the information you've uploaded to a database). The first table is the Groups table. Groups can be added and selected. If you are the owner of the current Group then you can modify its settings, if not, you can't. The second table is Users. It has two columns, a text field with the name of the user, and a checkbox reporting whether or not the user is a member of the selected group. The third table is Resources. It lists the information available to members of the current group, and any information you control that is not available to the current group (so you can give access to that information to the members of the group). It also has two fields, the name of the resource, and a checkbox. Issues I'm trying to solve: 1: How do I programmatically select a row in a table? When a user creates a new group, I wish to select it. When the user first brings up the panel, I'd like to select the first group (or, maybe, the first group the person owns). 2: How do I disable a checkbox? If the user doesn't own the group, they shouldn't be able to change anything. TIA, Greg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: CellTable elements not updating correctly
Code? On Fri, Jan 28, 2011 at 12:28 PM, Greg Dougherty dougherty.greg...@mayo.edu wrote: I have two CellTables that are logically connected together. When I change the selection of the first one, I need to change the data representation in the second one. When I first create the two tables, this works. I call refresh on the DataProvider for the second table, it calls getValue for the column of check boxes, and the boxes are checked correctly. However, when I change the selection in the first table, and then call refresh on the DataProvider, the getValue calls are made, but their results are ignored. Is this a bug in GWT, or am I doing something wrong? TIA, Greg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Selecting and disabling elements in CellTable
Don't move the check boxes, just don't render them. If all user interfaces we're as rigid as that we wouldn't need a dom api to manipulate and render html on the client. A ui principle you didn't mention is don't expose useless info/ui to users. Look, its your site so I'm just giving you something to think about. On Jan 28, 2011 3:19 PM, Greg Dougherty dougherty.greg...@mayo.edu wrote: Well, If they create a group, or select a group that they can modify, then they need the checkboxes. Having them disappear and reappear (rather than be disabled and enabled) violates the principles of UI design that I know and agree with. Starting with the belief that the UI should be stable and solid, and that controls should not move (muscle memory being key to accomplishing things quickly, a UI that moves targets around is a bad UI). Now, about your question which requires a question: Did you extend ColumnT,C to use check boxes in your cell table? If you did you can extend your implementation's api even further by providing it with methods to enable and disable the checkboxes. public class UserColumn extends ColumnString, Boolean implements FieldUpdaterString, Boolean My Cell is a CheckboxCell. I don't see any routines in either class for enabling or disabling the checkbox. So, what do I override / call? Thanks, Greg On Jan 28, 11:29 am, Jeff Schwartz jefftschwa...@gmail.com wrote: From a UI designer's perspective why display a column of check boxes if the user isn't allowed to click them? I wouldn't personally as a designer nor would I like that if I were a user. If the checkbox column is in a cell table that is being rendered in response to the user having selected something from somewhere else in the view then I'd first determine if the user can or cannot check the boxes and then I would render the table accordingly. But that is just me and the way I would do it. Now, about your question which requires a question: Did you extend ColumnT,C to use check boxes in your cell table? If you did you can extend your implementation's api even further by providing it with methods to enable and disable the checkboxes. Jeff On Fri, Jan 28, 2011 at 11:59 AM, Greg Dougherty dougherty.greg...@mayo.edu wrote: Hi Jeff, Thank you. I added a SingleSelectionModel to my CellTable, and now I can force selection of rows. Any idea how I tell a column of CheckBoxes that they can't accept any clicks? Greg On Jan 28, 10:11 am, Jeff Schwartz jefftschwa...@gmail.com wrote: You can use one of the concrete implementations of AbstractSelectionModel to select rows and respond to row selection. CellTables and AbstractSelectionModel instances work hand-in-hand. You connect the selection model to the cell table by calling the table's setSelectionModel method passing an instance of a selection model. You select rows by calling the selection model's setSelected method passing an instance of the data object being displayed by the table. The row displaying that instance of the data object will then be selected You respond to row selection by adding a SelectionChangeEvent.Handler() to the selection model by calling the selection model's addSelectionChangeHandler method. You can use this event, for instance, to load a detailed view of the selected data object such as more information, data from its children data objects, etc. etc. Jeff On Fri, Jan 28, 2011 at 10:49 AM, Greg Dougherty dougherty.greg...@mayo.edu wrote: I am trying to use three CellTables to make a Users and Groups panel in my current application. Its purpose is so users can give other users access to resources that they control (in this particular case, choosing which people can see the information you've uploaded to a database). The first table is the Groups table. Groups can be added and selected. If you are the owner of the current Group then you can modify its settings, if not, you can't. The second table is Users. It has two columns, a text field with the name of the user, and a checkbox reporting whether or not the user is a member of the selected group. The third table is Resources. It lists the information available to members of the current group, and any information you control that is not available to the current group (so you can give access to that information to the members of the group). It also has two fields, the name of the resource, and a checkbox. Issues I'm trying to solve: 1: How do I programmatically select a row in a table? When a user creates a new group, I wish to select it. When the user first brings up the panel, I'd like to select the first group (or, maybe, the first group the person owns). 2: How do I disable a checkbox? If the user doesn't own the group, they shouldn't be able to change anything. TIA, Greg
Re: Does Google Web Toolkit support CSS3 for IE 6,7,8 ?
The question isn't if GWT supports CSS3 for IE 6, 7, 8? The question rather is does IE 6, 7, 8 support CSS3? The answer is no. You will have to wait for IE 9 which is currently in beta. On Thu, Jan 27, 2011 at 8:52 AM, jamshid asatillayev jamshid.asatilla...@gmail.com wrote: I have tried couple of ways: I opened new question regarding this here http://stackoverflow.com/questions/4512401/how-to-use-html-component-file-htc-with-gwt-for-applying-css3 However I couldn't succeed. Thanks!!! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Two parallel asynchronous rpc calls possible?
I'm glad you qualified your comment with 'in general' which IMHO is still not true and I believe it really depends on your use case. For instance, if you are targeting App Engine you certainly want to leverage parallel async calls because of the quota system that is enforced on Google's APIs and all server requests and that is only one of numerous use cases that I can think of that could benefit from using parallel async calls. Jeff On Thu, Jan 27, 2011 at 11:46 AM, Gal Dolber gal.dol...@gmail.com wrote: Yes, it is possible, every rpc call is asyc, so if you call two rpc methods one after the other they'll be executed in parallel. In general it is better to batch the parallel methods in one rpc call. On Thu, Jan 27, 2011 at 1:41 PM, joe kolba joekolb...@gmail.com wrote: Why not just make one call to a service and call different methods within your service object? You can put methods in your serviceImpl that are not RPC methods. On Thu, Jan 27, 2011 at 11:17 AM, ghost23 sven.bu...@googlemail.comwrote: hello, i have a service. I create an instance of it via GWT.create(MyService.class). Then i call a method on it, get the result, everything works nicely. Now i need to call two methods on that service more or less in parallel. I tried this (either using the same service instance or two distinct ones), but now i get weird results, sometimes, the objects cannot be de- serialized or i get exceptions, that the objects are of another type and so on. Is it basically possible to make two parallel calls to a service? Thank you. Sven -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: when to use AsyncDataProvider instead of CellTable.setRowData ?
I think the name DataProvider should give everyone a clue as to when and why to use one of its implementations - when you want to abstract out how data is provided to a user (meaning some sink of the data provided by the DataProvider). In addition to abstracting out how and where the data comes from, DataProviders also serve another important service. For instance, lets say you have 10 different views of the same data objects (Pojos). If you don't use a single DataProvider then all 10 views have to implement their own data providing plumbing. Instead, create a singleton dataprovider - list, async or whatever and share it among all views using the same data. Then, each view can filter on the actual instances of the Pojos it needs from the provider. Besides the benefits already mentioned, here's another one: If you provide common data through a single DataProvider then only the DataProvider has to be interested in receiving global events related to the data such as when a Pojo is updated, deleted or added and then views only need to concern themselves with redrawing themselves. Jeff On Thu, Jan 27, 2011 at 12:06 PM, zixzigma zixzi...@gmail.com wrote: I have included the relevant code from Roo generated Expenses app here: http://pastebin.com/2FUbaVjY in onRangeChanged method, getView().asHasData().setRowData(range.getStart(), values); the code invokes setRowData on CellTable, and it makes use of onRangeChanged event, and in fact displays dynamic data, but does not use AsyncDataProvider. this contradicts with John LaBanca's comment ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Two parallel asynchronous rpc calls possible?
Actually the benefit can be just as great when targeting traditional web servers, especially when there is high contention due to long running requests which block new requests from getting serviced. Breaking up the long running tasks into smaller atomic units of work that can run in parallel and require less cpu cycles to complete can provide a significant performance boost which users actually can experience and appreciate. On Thu, Jan 27, 2011 at 12:29 PM, Gal Dolber gal.dol...@gmail.com wrote: Yes, the in general was specifically for appengine, many of my high cpu request are generally batch rpcs. But outside of appengine I've seen great results of batching rpcs. Best On Thu, Jan 27, 2011 at 2:01 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: I'm glad you qualified your comment with 'in general' which IMHO is still not true and I believe it really depends on your use case. For instance, if you are targeting App Engine you certainly want to leverage parallel async calls because of the quota system that is enforced on Google's APIs and all server requests and that is only one of numerous use cases that I can think of that could benefit from using parallel async calls. Jeff On Thu, Jan 27, 2011 at 11:46 AM, Gal Dolber gal.dol...@gmail.comwrote: Yes, it is possible, every rpc call is asyc, so if you call two rpc methods one after the other they'll be executed in parallel. In general it is better to batch the parallel methods in one rpc call. On Thu, Jan 27, 2011 at 1:41 PM, joe kolba joekolb...@gmail.com wrote: Why not just make one call to a service and call different methods within your service object? You can put methods in your serviceImpl that are not RPC methods. On Thu, Jan 27, 2011 at 11:17 AM, ghost23 sven.bu...@googlemail.comwrote: hello, i have a service. I create an instance of it via GWT.create(MyService.class). Then i call a method on it, get the result, everything works nicely. Now i need to call two methods on that service more or less in parallel. I tried this (either using the same service instance or two distinct ones), but now i get weird results, sometimes, the objects cannot be de- serialized or i get exceptions, that the objects are of another type and so on. Is it basically possible to make two parallel calls to a service? Thank you. Sven -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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
Re: GWT Scroll Bar Issue
+1 On Jan 21, 2011 7:53 AM, wajad abbasi wajadabb...@gmail.com wrote: Thanks for your reply. Dear when will data grid be available??? OR is there any other Widget/Option which gives this kind of feature like smartgwt's Live Gird On Jan 20, 8:18 pm, John LaBanca jlaba...@google.com wrote: It isn't possible with CellTable. I'm working no a variation of CellTable called DataGrid that will add this specific feature. Thanks, John LaBanca jlaba...@google.com On Thu, Jan 20, 2011 at 9:12 AM, wajad abbasi wajadabb...@gmail.com wrote: I am adding celltable widget in scrollPanel. I want to set its header to be fixed and data should be under Vertical scroll or is there any possibility to control the Horizontal scroll bar.. Please help me if anyone can. i m working it out from last month. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@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.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-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 Special Features compared to other Frameworks
+1. Your raise excellent points. Anyone approaching GWT with the idea that they don't need to have at least a basic understanding of HTML, CSS and Javascript is going to be very disappointed. As great as GWT is, and it is great, it cannot always hide the fact that you are developing for the browser and the web. It certainly does, though, make developing for the browser and the web much easier and just as important, it makes it enjoyable again. +2 for GWT making web development enjoyable again. Jeff On Wed, Jan 19, 2011 at 9:52 AM, jhulford jhulf...@gmail.com wrote: On Jan 18, 3:26 pm, Noor baken...@gmail.com wrote: 2. The developer does not have to be a guru in browser incompatibilities to develop web sites which works on a variety of browsers because incompatibilities are handled by GWT through differed bindind While GWT does shield you from some browser differences, I can guarantee that you are going to run into them in any non-trivial application you write with GWT. Also somewhat relevant to your first point, even though you're writing code mostly in Java and working with widgets, for any sort of complex application you're definitely going to need to understand how to design and code in Javascript / HTML / CSS. GWT doesn't really pull you completely away from that aspect of web programming. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Client en Server side validation
It depends on what you mean by validation. If you mean that the data conforms to the business rules then IMO you can validate on the client and all you need to do on the server is authenticate the user. A practice that I follow is storing the user's session id in encrypted form on the client. I obtain the session id on the server when the user first authenticates and I encrypt it and send it back to the client. When the client communicates with the server I send the encrypted session id as part of the data payload to the server where it is validated again the user's current session id. If it isn't the same I force the user to login and authenticate. Jeff On Wed, Jan 19, 2011 at 4:00 PM, Ben Imp benlee...@gmail.com wrote: The correct thing to do, in my mind anyway (admittedly an odd place), is never trust a client and do your own validation of the data and operation requested. This contrasts with my professional experience, which has been that pretty much everyone just trusts the client and mindlessly follows its directions. I should mention that most of the applications I have dealt with are internal to an organization, so a rogue client isn't as big of a risk there. -Ben On Jan 19, 2:06 pm, Jeroen Wolff jeroen.wo...@gmail.com wrote: Hi, there has been a lot of discussion already in this group about validation and the frameworks that can help with it. Now i'm in a big project which need form/field validation onChange focus events and the same field validation need to be done on the server when the domain objects are being send via RPC to the server. Based on the concept: Always validate your input. The data coming in on the server is also input that we want to validate. Is this a right approach? If so, why can't i find this issue more spoken of...or does anybody thrust the rpc input? How do you slove this problem? If i make the presenter responsible for validating the widgets input, how does i know on the server which validator to use because on the server i have no presenter. Do you have patterns for this problem? Thanks, Jeroen Wolff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: what cleanup is necessary if a widget creates multiple child elements
If your widgets are adding event handlers to the event bus (SimpleEventBus, for example) then they would 'probably' need to clean themselves up at some point by removing the handlers. When they should do this is really specific to the life-cycle of your widgets. If they are singletons with an application scope life cycle, for instance (why I used 'probably'), a reference to the widget will never go out of scope so there is no need to remove the handlers. If you are attaching, unattaching, and reattaching them then it would depend on whether the handlers were going to receive events while they are unattached and what they would do with them. If they update the dom then that wouldn't work so you would want to clean up the handlers in this case. But if they were only saving a reference to a list of records returned from the server for instance then that would be ok and there would be no need to remove the handler when the widget is detached. I hope you see where this is going - it all depends on your use case. Jeff On Wed, Jan 12, 2011 at 9:20 PM, Joe Hudson joe...@gmail.com wrote: Hi, I'm wondering what, if anything I need to do from a cleanup perspective when using a Widget that creates child elements. For example: public class MyWidget extends Widget { public MyWidget() { Element el = DOM.createDiv(); setElement(el); Element anotherEl = DOM.createDiv(); el.appendchild(anotherEl); } } With the code above, should I do anything with anotherEl on detatch? Thanks for the advice. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: is there a UiBinder equivalent for ImageResource ?
Yes, there is: ui:with field='res' type='com.me.client.MyResources' / The above's type points to your resource budle. Then: g:Image resource={res.myimage} / The above, res is the field name defined in with. myimage is some image resource defined in you resource bundle. It is now typesafe and checked at compiler time. Jeff On Sun, Jan 16, 2011 at 6:48 PM, zixzigma zixzi...@gmail.com wrote: is there a UiBinder equivalent for ImageResource ? we have this g:Image resource= / but this is of type Image, not ImageResource. is it possible to get use ImageResource in UiBinder ? for example use a variablel in place of resource attribute ? in ui.xml g:Image resource=varX/ in .java @UiField ImageResource varX; -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: is there a UiBinder equivalent for ImageResource ?
I meant to say ClientBundle, not ResourceBundle. On Sun, Jan 16, 2011 at 7:27 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: Yes, there is: ui:with field='res' type='com.me.client.MyResources' / The above's type points to your resource budle. Then: g:Image resource={res.myimage} / The above, res is the field name defined in with. myimage is some image resource defined in you resource bundle. It is now typesafe and checked at compiler time. Jeff On Sun, Jan 16, 2011 at 6:48 PM, zixzigma zixzi...@gmail.com wrote: is there a UiBinder equivalent for ImageResource ? we have this g:Image resource= / but this is of type Image, not ImageResource. is it possible to get use ImageResource in UiBinder ? for example use a variablel in place of resource attribute ? in ui.xml g:Image resource=varX/ in .java @UiField ImageResource varX; -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- *Jeff Schwartz* -- 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: what cleanup is necessary if a widget creates multiple child elements
BTW handlers can also ignore events while unattached. Lot of choices here. On Sun, Jan 16, 2011 at 7:18 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: If your widgets are adding event handlers to the event bus (SimpleEventBus, for example) then they would 'probably' need to clean themselves up at some point by removing the handlers. When they should do this is really specific to the life-cycle of your widgets. If they are singletons with an application scope life cycle, for instance (why I used 'probably'), a reference to the widget will never go out of scope so there is no need to remove the handlers. If you are attaching, unattaching, and reattaching them then it would depend on whether the handlers were going to receive events while they are unattached and what they would do with them. If they update the dom then that wouldn't work so you would want to clean up the handlers in this case. But if they were only saving a reference to a list of records returned from the server for instance then that would be ok and there would be no need to remove the handler when the widget is detached. I hope you see where this is going - it all depends on your use case. Jeff On Wed, Jan 12, 2011 at 9:20 PM, Joe Hudson joe...@gmail.com wrote: Hi, I'm wondering what, if anything I need to do from a cleanup perspective when using a Widget that creates child elements. For example: public class MyWidget extends Widget { public MyWidget() { Element el = DOM.createDiv(); setElement(el); Element anotherEl = DOM.createDiv(); el.appendchild(anotherEl); } } With the code above, should I do anything with anotherEl on detatch? Thanks for the advice. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- *Jeff Schwartz* -- 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: Extend AsyncCallback or ServiceInterfaceProxyGenerator
Done! Just a side note and slightly off topic and I hope you forgive me but every time I have to do one of these large, multi file code changes in a Web application I break into a sweat. I can't even begin to count the number of times I thought I had captured all the places in my html, javascript and css files where I needed to make changes and only found during testing that I missed a lot. Refactoring traditional web apps is, well it's a nightmare to put it mildly. However, implementing this multi file change to my GWT project was nothing like that and in fact it was the total opposite. Eclipse Java refactoring support is really quite excellent and this really drove home the point of how convenient GWT makes Web development. So my thanks goes out to Google and all the GWT team members for creating and maintaining an awesome product. IMHO GWT isn't evolutionary, it is revolutionary. Jeff On Fri, Jan 14, 2011 at 5:23 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: I made up my mind and did that hurt lol :). Even though extending ServiceInterfaceProxyGenerator is rather trivial it might be overkill for my initial needs which extending AsyncCallback can easily provide and I can alway extend ServiceInterfaceProxyGenerator at some later point anyway. So my AsyncCallback will not only handle common exceptions in onFailure but it will also allow me to eliminate having to override onFailure 99.99% of the time making the code much more concise and readable. Thanks, Jeff On Fri, Jan 14, 2011 at 3:48 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: Hi David, So far I have 146 and I am no where even nearly having a fully implemented application. Eclipse's refactoring definitely would ease the pain if I go with extending AsyncCallback :) Regarding extending ServiceInterfaceProxyGenerator, I've looked at the code and it doesn't appear to be that big of a deal to implement the generator which just outputs strings. One drawback to it though is if the api changes but I guess the same thing can be said for extending AsyncCallback as well. Gee, I am still on the fence over which way to go. I gather from your feedback then that if it were your decision to make you'd go with AsyncCallback. Jeff On Fri, Jan 14, 2011 at 2:17 PM, David Chandler drfibona...@google.comwrote: Hi Jeff, You must have a LOT of AsyncCallbacks in order to make it worth the pain of modifying generator code :-) Extending AsyncCallback is the technique most people use and makes sense as it's clearly application code. Perhaps one of the Eclipse refactoring tools can ease the pain? /dmc On Fri, Jan 14, 2011 at 10:08 AM, Jeff Schwartz jefftschwa...@gmail.com wrote: I want to implement common error handling in all of my RPC onFailure methods. Excluding repeating the error handling code in every invocation I can either 1) extend AsyncCallback and use it in all my invocations or I can 2) extend ServiceInterfaceProxyGenerator and have it generate an implementation of AsyncCallback for me that would include my common error handling. As I already have a lot of RPC calls using the normal AsyncCallback so using option 1 would obviously require refactoring a lot of code. In contrast, were I to use option 2 there would be no refactoring required. Perhaps the solution seems obvious, which is to use option 2, but I am hoping that you can provide feedback on both of these options and perhaps illuminate any potential problems with either before I commit to one or the other. Thanks a lot for your feedback. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- *Jeff Schwartz* -- *Jeff Schwartz* -- 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
Re: is it possible to develop custom reusable widgets using UiBinder ?
On Fri, Jan 14, 2011 at 1:42 AM, zixzigma zixzi...@gmail.com wrote: Thank you very much for sharing your experience. on this comment, I also pay close attention to widget lifecycles which is critical to successful implementations of widgets that get attached, detached and reattached and so on and so on. why widget lifecycle is important ? why is it important when they are attached/detached ? Please have a look at the followig: * http://googlewebtoolkit.blogspot.com/2009/05/widget-best-practices-widget-building.html * and how can you monitor it ? (logging your java code or viewing resulting html markup gwt creates ?) GTW widgets already provide numerous methods such as onLoad, onAttach, etc. that provide all you need to know. There are many things you can use these methods for and all that is required is that you override them. how can you tell in what state a widget is: attached/detached ? what are the states ? only attached and detached ? *isAttached*, *isOrWasAttached*, *etc*. Check out the documentation for *Widget *and *Composite* - both provide numerous methods for maintaining and inquiring about a widget's state. Jeff Thank You -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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.
Extend AsyncCallback or ServiceInterfaceProxyGenerator
I want to implement common error handling in all of my RPC onFailure methods. Excluding repeating the error handling code in every invocation I can either 1) extend AsyncCallback and use it in all my invocations or I can 2) extend ServiceInterfaceProxyGenerator and have it generate an implementation of AsyncCallback for me that would include my common error handling. As I already have a lot of RPC calls using the normal AsyncCallback so using option 1 would obviously require refactoring a lot of code. In contrast, were I to use option 2 there would be no refactoring required. Perhaps the solution seems obvious, which is to use option 2, but I am hoping that you can provide feedback on both of these options and perhaps illuminate any potential problems with either before I commit to one or the other. Thanks a lot for your feedback. -- *Jeff Schwartz* -- 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: Extend AsyncCallback or ServiceInterfaceProxyGenerator
Hi David, So far I have 146 and I am no where even nearly having a fully implemented application. Eclipse's refactoring definitely would ease the pain if I go with extending AsyncCallback :) Regarding extending ServiceInterfaceProxyGenerator, I've looked at the code and it doesn't appear to be that big of a deal to implement the generator which just outputs strings. One drawback to it though is if the api changes but I guess the same thing can be said for extending AsyncCallback as well. Gee, I am still on the fence over which way to go. I gather from your feedback then that if it were your decision to make you'd go with AsyncCallback. Jeff On Fri, Jan 14, 2011 at 2:17 PM, David Chandler drfibona...@google.comwrote: Hi Jeff, You must have a LOT of AsyncCallbacks in order to make it worth the pain of modifying generator code :-) Extending AsyncCallback is the technique most people use and makes sense as it's clearly application code. Perhaps one of the Eclipse refactoring tools can ease the pain? /dmc On Fri, Jan 14, 2011 at 10:08 AM, Jeff Schwartz jefftschwa...@gmail.comwrote: I want to implement common error handling in all of my RPC onFailure methods. Excluding repeating the error handling code in every invocation I can either 1) extend AsyncCallback and use it in all my invocations or I can 2) extend ServiceInterfaceProxyGenerator and have it generate an implementation of AsyncCallback for me that would include my common error handling. As I already have a lot of RPC calls using the normal AsyncCallback so using option 1 would obviously require refactoring a lot of code. In contrast, were I to use option 2 there would be no refactoring required. Perhaps the solution seems obvious, which is to use option 2, but I am hoping that you can provide feedback on both of these options and perhaps illuminate any potential problems with either before I commit to one or the other. Thanks a lot for your feedback. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Extend AsyncCallback or ServiceInterfaceProxyGenerator
I made up my mind and did that hurt lol :). Even though extending ServiceInterfaceProxyGenerator is rather trivial it might be overkill for my initial needs which extending AsyncCallback can easily provide and I can alway extend ServiceInterfaceProxyGenerator at some later point anyway. So my AsyncCallback will not only handle common exceptions in onFailure but it will also allow me to eliminate having to override onFailure 99.99% of the time making the code much more concise and readable. Thanks, Jeff On Fri, Jan 14, 2011 at 3:48 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: Hi David, So far I have 146 and I am no where even nearly having a fully implemented application. Eclipse's refactoring definitely would ease the pain if I go with extending AsyncCallback :) Regarding extending ServiceInterfaceProxyGenerator, I've looked at the code and it doesn't appear to be that big of a deal to implement the generator which just outputs strings. One drawback to it though is if the api changes but I guess the same thing can be said for extending AsyncCallback as well. Gee, I am still on the fence over which way to go. I gather from your feedback then that if it were your decision to make you'd go with AsyncCallback. Jeff On Fri, Jan 14, 2011 at 2:17 PM, David Chandler drfibona...@google.comwrote: Hi Jeff, You must have a LOT of AsyncCallbacks in order to make it worth the pain of modifying generator code :-) Extending AsyncCallback is the technique most people use and makes sense as it's clearly application code. Perhaps one of the Eclipse refactoring tools can ease the pain? /dmc On Fri, Jan 14, 2011 at 10:08 AM, Jeff Schwartz jefftschwa...@gmail.comwrote: I want to implement common error handling in all of my RPC onFailure methods. Excluding repeating the error handling code in every invocation I can either 1) extend AsyncCallback and use it in all my invocations or I can 2) extend ServiceInterfaceProxyGenerator and have it generate an implementation of AsyncCallback for me that would include my common error handling. As I already have a lot of RPC calls using the normal AsyncCallback so using option 1 would obviously require refactoring a lot of code. In contrast, were I to use option 2 there would be no refactoring required. Perhaps the solution seems obvious, which is to use option 2, but I am hoping that you can provide feedback on both of these options and perhaps illuminate any potential problems with either before I commit to one or the other. Thanks a lot for your feedback. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- *Jeff Schwartz* -- 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: Extend AsyncCallback or ServiceInterfaceProxyGenerator
You must have been reading my mind because your reply arrived as soon as I posted my decision. I am a devout believer in Karma and as we know it is nothing to sneeze at; my luck, I'd get hit in the head by a 600 page hard covered book dedicated to DotNot web development falling from an elevated train station. Thanks, Ben. Jeff On Fri, Jan 14, 2011 at 5:20 PM, Ben Imp benlee...@gmail.com wrote: I'd recommend simply extending the AsyncCallback. Its undoubtedly more work up front, but its also not a hack, which is a Good Thing. Its easy to understand, and future maintainers of the program will thank you for that. Also, karma will likely stab you in the eye if you don't. -Ben On Jan 14, 2:48 pm, Jeff Schwartz jefftschwa...@gmail.com wrote: Hi David, So far I have 146 and I am no where even nearly having a fully implemented application. Eclipse's refactoring definitely would ease the pain if I go with extending AsyncCallback :) Regarding extending ServiceInterfaceProxyGenerator, I've looked at the code and it doesn't appear to be that big of a deal to implement the generator which just outputs strings. One drawback to it though is if the api changes but I guess the same thing can be said for extending AsyncCallback as well. Gee, I am still on the fence over which way to go. I gather from your feedback then that if it were your decision to make you'd go with AsyncCallback. Jeff On Fri, Jan 14, 2011 at 2:17 PM, David Chandler drfibona...@google.com wrote: Hi Jeff, You must have a LOT of AsyncCallbacks in order to make it worth the pain of modifying generator code :-) Extending AsyncCallback is the technique most people use and makes sense as it's clearly application code. Perhaps one of the Eclipse refactoring tools can ease the pain? /dmc On Fri, Jan 14, 2011 at 10:08 AM, Jeff Schwartz jefftschwa...@gmail.comwrote: I want to implement common error handling in all of my RPC onFailure methods. Excluding repeating the error handling code in every invocation I can either 1) extend AsyncCallback and use it in all my invocations or I can 2) extend ServiceInterfaceProxyGenerator and have it generate an implementation of AsyncCallback for me that would include my common error handling. As I already have a lot of RPC calls using the normal AsyncCallback so using option 1 would obviously require refactoring a lot of code. In contrast, were I to use option 2 there would be no refactoring required. Perhaps the solution seems obvious, which is to use option 2, but I am hoping that you can provide feedback on both of these options and perhaps illuminate any potential problems with either before I commit to one or the other. Thanks a lot for your feedback. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w:http://code.google.com/ b:http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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.
How to handle com.google.apphosting.api.ApiProxy.CapabilityDisabledException
Hi all. It would be nice if I could catch CapabilityDisabledException on the client in the RPC calls onFailure callback methods but it appears it isn't possible; seems like the exception can only be declared in server code so I came up with another solution and would like your feedback. I am thinking about defining a custom exception derived from Throwable and, sharing it between the client and server. I'd catch CapabilityDisabledException in my RPC methods and in response I would throw my custom throwable exception back to the client. In my client's RPC onFailure callback methods I would catch my custom exception in the following manner: @Override public void onFailure(Throwable caught) { try{ throw caught; }catch (MyCapabilityDisabledException e) { *=== catch it here** * // direct the user to a view which explains that the db is not available and to try again later } }catch(IncompatibleRemoteServiceException e){ }catch (InvocationException e){ }catch (Throwable e) { Window.alert(Severe error!); } } What do you think, do you like the solution or do you have a better one that you have implemented and successfully tested and used? Thanks in advance for your feedback. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to handle com.google.apphosting.api.ApiProxy.CapabilityDisabledException
On Thu, Jan 13, 2011 at 8:26 PM, Y2i yur...@gmail.com wrote: This will work fine. I was hoping that would be the case. :) Just two notes: MyCapabilityDisabledException can extend Exception, it does not have to extend Throwable. You can also use if(caught instanceof MyCapabilityDisabledException) instead of re-throwing caught in onFailure() Points well taken and thank you for your feedback. Jeff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: is it possible to develop custom reusable widgets using UiBinder ?
Yes and no. You can create you custom widgets with UiBinder but you have to resort to mostly relying Composite and HTMLPanel and backing code until Google ramps up UiBinder. Then, once you components are built, you can reuse the them just like any other GWT widget in UiBinder by providing its namespace and import declaration such as: ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui xmlns:dp=urn:import:com.google.gwt.user.datepicker.client *xmlns:my='urn:import:lmv.com.client.members'* Any composite in the lmv.com.client.members package will now be able to be referenced with the *my* tag. That's pretty powerful juju if you ask me and the beauty of a component based framework like GWT. Jeff On Thu, Jan 13, 2011 at 9:29 PM, zixzigma zixzi...@gmail.com wrote: is it possible to develop custom reusable widgets using UiBinder ? or this is only possible within the Java code as outlined here [1] ? [1] http://code.google.com/webtoolkit/doc/latest/DevGuideUiCustomWidgets.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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: is it possible to develop custom reusable widgets using UiBinder ?
I don't think there is any advantage to having everything in a single file. In fact it sort of goes against the grain of Java development if you think about it. At least that's the way I see it. Besides, complex composites might use composition, using other widgets and composits. Surely these can't be all in the same file also. Regarding MVP, no, I don't really use it but I do use parts of its supporting infrastructure such as GWTEvents, the SimpleEventBus, etc. I also pay close attention to widget lifecycles which is critical to successful implementations of widgets that get attached, detached and reattached and so on and so on. I guess I just haven't been won over by MVP yet. I find most of the MVP frameworks I've looked at quite verbose and way too complex for something that needn't be. Most of what I have seen seems to be code that should really be hidden deep in the bowels of a framework's internal packaging and not exposed as a public api. I want to write applications and right now I just don't see how MVP can make that any easier for me. Jeff On Fri, Jan 14, 2011 at 12:07 AM, zixzigma zixzi...@gmail.com wrote: I was thinking pure Java code might have been better, because everything would be encapsulated in single file, and properties can be set programmatically. when developing re-usable components with UiBinder, do you find yourself using MVP ? for example having a - Wdiget Interface - WidgetImpl java code - WidgetImpl.ui.xml uibinder file - and a WidgetPresenter ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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.
Best pattern for handling app engine datastore errors when using GWT RemoteService
What do you think is the best code pattern for servlet and client when dealing with app engine datastore errors using GWT RemoteService? Do you catch the errors in your servlets or do you let them filter down to the client uncaught? Sample code? Thanks in advance. Jeff -- 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: Problem with @sprite
Resolved by adding the following to my .ui.xml template: ui:image field=btndelete16x12 src='btndelete16x12.gif'/ Apparently the image declaration is required because the .ui.xml file references the .css file in which the @sprite is defined but you would never have know that from the ambiguous error message I was getting; it was only through trial and error did I find the above solution. Anyway, thanks Thomas for trying to help me out on this one. Jeff On Wed, Jan 5, 2011 at 5:43 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: Hi Thomas, Thank you for your explanation. I am at a loss understanding how I create the CssResource in the context of the ClientBundle. Can you elaborate on that and maybe provide an example? Just to update the information I previously provided, I've added @Source(lmv/com/client/members/insurance.css) Insurance insurance(); to LMVResources which extends ClientBundle. Also, I didn't realize that in Eclipse if I select a resource file, right click and use the menu option Google | Add to ClientBundle... that it actually creates the interface extending ClientBundle for you. So, I've modified the code in my Composite to use the generated file whose name is Insurance.java and now it looks like interface InsurancePaymentStyle extends Insurance{} instead of what I had previously which was interface InsurancePaymentStyle extends CssResource { String deleteAnchor(); } With the above changes in place I get this error 16:19:43.624 [ERROR] [lmv] Unable to find ImageResource method value(btndelete16x12) in lmv.com.client.members.InsurancePaymentDisplayView_InsurancePaymentDisplayViewUiBinderImpl_GenBundle : Could not find no-arg method named btndelete16x12 in type lmv.com.client.members.InsurancePaymentDisplayView_InsurancePaymentDisplayViewUiBinderImpl_GenBundle Also, could it be that because the ClientBundle class, the resource and the Composite reside in different packages is what is causing the problem? Thanks in advance. Jeff On Wed, Jan 5, 2011 at 5:12 PM, Thomas Broyer t.bro...@gmail.com wrote: A CssResource is always created in the *context* of a ClientBundle, and the ImageResource-s are looked up in that ClientBundle. In the snippet you posted, there's no (apparent, as you didn't include the ClientBundle where InsurancePaymentStyle is used) relationship between LVMResources and InsurancePaymentStyle -- 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. -- *Jeff Schwartz* -- *Jeff Schwartz* -- 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: Not able to set BigDecimal value in a grid column using HTMLTable setText function in IE8
**Use either BigDecimal's constructor to initialize its value or one of its valueOf methods to set its value. Jeff On Thu, Jan 6, 2011 at 4:58 AM, sims smriti...@gmail.com wrote: I am receiving following js error when I am trying to set a Bigdecimal value for a grid column using HTMLTable setText function. This is happening only in IE8 . Works fine in Firefox. User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0) Timestamp: Thu, 30 Dec 2010 18:51:16 UTC Message: Exception thrown and not caught Line: 1 Char: 21338 Code: 0 URI: http://dev3.compiere.org/apps/js/bigdecimal.js This issue happens only when i run the application in hosted mode. In development mode of eclipse it is working fine. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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: Dropping support for ie6?
-/+ 1 IE6 +1 IE9 On Dec 27, 2010 2:22 AM, marius.andreiana marius.andrei...@gmail.com wrote: Hi, GWT 2.1.1 dropped support for firefox 1.0. What do you think about next GWT release dropping support for ie6? (while introducing support for ie9 would be great) -- 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: History, Is An Alternate Implementation Possible?
I agree with Thomas and would add the behavior your are seeking to implement is counter intuitive to what people expect when using browser history. As such then I'd either try to adapt the application so that the browsers navigation mechanism maintains the user's expectations or forgo using history altogether which isn't such a far fetched idea considering the power that GWT provides for creating applications that mimic desktop applications; you can legitimately consider not using history a viable solution. I've done just that when I was in the designing phase of my latest application, http://lovemyvehicle.appspot.com/, and I decided to only use navigation for the registration process which is sort of a wizard (at least at this time, it might change as I give it more thought and get more feedback). Once a user has become a member and logs into the application it uses no navigation at all. The application my members see is highly modeless. State is maintained in most of the views so that switching to another view and then back using the applications menu structure brings the user back to the same view and state they were at before they switched views. Communication between views is via an EventBus and events are consumed by all concerned views so that when one view's state is changed it is immediately picked up by any view interested in the event. This model is very intuitive and I am getting a lot of good feedback on it. So what I am suggesting is that there are alternatives to history if you are so inclined to imagine them. Good luck. Jeff On Thu, Jan 6, 2011 at 11:40 AM, Thomas Broyer t.bro...@gmail.com wrote: Well, PlaceHistoryHandler uses an Historian (DefaultHistorian by default, which delegates to the History class), so you can easily replace the implementation there. But really, I wonder how you'll make it work OK with the back/forward browser buttons, particularly when going back/forth not a single place at a time (i.e. open the back/forth menu and go several steps back/forth; similar issue with bookmarks). IMO, what you're trying to do is simply impossible. -- 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. -- *Jeff Schwartz* -- 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: History, Is An Alternate Implementation Possible?
BTW, the app is still in development and there's lots of good stuff still left to implement but I have a rather large number of members already who I think are mostly interested in (at this time so far) seeing how my implementation is progressing. Jeff On Thu, Jan 6, 2011 at 12:10 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: I agree with Thomas and would add the behavior your are seeking to implement is counter intuitive to what people expect when using browser history. As such then I'd either try to adapt the application so that the browsers navigation mechanism maintains the user's expectations or forgo using history altogether which isn't such a far fetched idea considering the power that GWT provides for creating applications that mimic desktop applications; you can legitimately consider not using history a viable solution. I've done just that when I was in the designing phase of my latest application, http://lovemyvehicle.appspot.com/, and I decided to only use navigation for the registration process which is sort of a wizard (at least at this time, it might change as I give it more thought and get more feedback). Once a user has become a member and logs into the application it uses no navigation at all. The application my members see is highly modeless. State is maintained in most of the views so that switching to another view and then back using the applications menu structure brings the user back to the same view and state they were at before they switched views. Communication between views is via an EventBus and events are consumed by all concerned views so that when one view's state is changed it is immediately picked up by any view interested in the event. This model is very intuitive and I am getting a lot of good feedback on it. So what I am suggesting is that there are alternatives to history if you are so inclined to imagine them. Good luck. Jeff On Thu, Jan 6, 2011 at 11:40 AM, Thomas Broyer t.bro...@gmail.com wrote: Well, PlaceHistoryHandler uses an Historian (DefaultHistorian by default, which delegates to the History class), so you can easily replace the implementation there. But really, I wonder how you'll make it work OK with the back/forward browser buttons, particularly when going back/forth not a single place at a time (i.e. open the back/forth menu and go several steps back/forth; similar issue with bookmarks). IMO, what you're trying to do is simply impossible. -- 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. -- *Jeff Schwartz* -- *Jeff Schwartz* -- 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.
Problem with @sprite
I want to create an anchor element that has an image as its background and I want to apply a css style selector to the Anchor widget that defines the background image such as myAnchorWidget.setStyle(...). I am not able to get it working and when I run the application it throws an error which I've included below. Here's what I've done and maybe you can tell me where I've gone wrong. 1) In the insurance.css file I've declared a sprite as follows: @sprite .deleteAnchor{ gwt-image: btndelete16x12; } 2) I added the image file, btndelete16x12.gif, to my lmv/com/client/members package and I created a subclass of ClientBundle to include it as follows: package lmv.com.client; import com.google.gwt.core.client.GWT; import com.google.gwt.resources.client.ClientBundle; import com.google.gwt.resources.client.ImageResource; public interface LMVResources extends ClientBundle { public static final LMVResources INSTANCE = GWT.create(LMVResources.class); @Source(lmv/com/client/members/btndelete16x12.gif) ImageResource btndelete16x12(); } 3) In my Composite I've created the following: interface InsurancePaymentStyle extends CssResource { String deleteAnchor(); } 4) When I run the app I get the following error: *13:30:42.263 [ERROR] [lmv] Unable to find ImageResource method value(btndelete16x12()) in lmv.com.client.LMVResources : Could not find no-arg method named btndelete16x12() in type lmv.com.client.LMVResources * Thanks in advance for helping me out with this. -- *Jeff Schwartz* -- 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: Problem with @sprite
Hi Thomas, Thank you for your explanation. I am at a loss understanding how I create the CssResource in the context of the ClientBundle. Can you elaborate on that and maybe provide an example? Just to update the information I previously provided, I've added @Source(lmv/com/client/members/insurance.css) Insurance insurance(); to LMVResources which extends ClientBundle. Also, I didn't realize that in Eclipse if I select a resource file, right click and use the menu option Google | Add to ClientBundle... that it actually creates the interface extending ClientBundle for you. So, I've modified the code in my Composite to use the generated file whose name is Insurance.java and now it looks like interface InsurancePaymentStyle extends Insurance{} instead of what I had previously which was interface InsurancePaymentStyle extends CssResource { String deleteAnchor(); } With the above changes in place I get this error 16:19:43.624 [ERROR] [lmv] Unable to find ImageResource method value(btndelete16x12) in lmv.com.client.members.InsurancePaymentDisplayView_InsurancePaymentDisplayViewUiBinderImpl_GenBundle : Could not find no-arg method named btndelete16x12 in type lmv.com.client.members.InsurancePaymentDisplayView_InsurancePaymentDisplayViewUiBinderImpl_GenBundle Also, could it be that because the ClientBundle class, the resource and the Composite reside in different packages is what is causing the problem? Thanks in advance. Jeff On Wed, Jan 5, 2011 at 5:12 PM, Thomas Broyer t.bro...@gmail.com wrote: A CssResource is always created in the *context* of a ClientBundle, and the ImageResource-s are looked up in that ClientBundle. In the snippet you posted, there's no (apparent, as you didn't include the ClientBundle where InsurancePaymentStyle is used) relationship between LVMResources and InsurancePaymentStyle -- 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. -- *Jeff Schwartz* -- 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: EnterButton
Using UiBinder declare a SubmitButton ( http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/SubmitButton.html) within a qwt FormPannel. If you want to react to the user submitting the form then assign a field name to the submit button and attach an event handler to the submit button. The following is an example of how to setup the event handler code when using UiBinder: @UiHandler(yourButtonFieldName) void onSubmitBtnClicked(ClickEvent e) { doSomething(); } On Tue, Jan 4, 2011 at 10:36 AM, Greg Dougherty dougherty.greg...@mayo.eduwrote: Hi Jeff, I don't see any place to attach a KeyPressHandler to a FormPanel. Were you thinking of something else? Greg On Jan 3, 6:27 pm, Jeff Schwartz jefftschwa...@gmail.com wrote: I haven't tried it but I think if you wrap your input widgets in a gwt form widget your button would respond appropriately. On Mon, Jan 3, 2011 at 9:57 AM, Greg Dougherty dougherty.greg...@mayo.eduwrote: I have a couple of places where I want the user to be able to hit enter, and have a button clicked. So I created the class EnterButton, which has all the default constructors, and the following bit of code: public void onKeyPress (KeyPressEvent event) { int keyCode = event.getNativeEvent ().getKeyCode (); if (keyCode == KeyCodes.KEY_ENTER) click (); } Is there a reason why some such class isn't part of GWT already? Is there something in this code that will turn around and bite me in the tush? -- 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 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* -- 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. -- *Jeff Schwartz* -- 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: EnterButton
I haven't tried it but I think if you wrap your input widgets in a gwt form widget your button would respond appropriately. On Mon, Jan 3, 2011 at 9:57 AM, Greg Dougherty dougherty.greg...@mayo.eduwrote: I have a couple of places where I want the user to be able to hit enter, and have a button clicked. So I created the class EnterButton, which has all the default constructors, and the following bit of code: public void onKeyPress (KeyPressEvent event) { int keyCode = event.getNativeEvent ().getKeyCode (); if (keyCode == KeyCodes.KEY_ENTER) click (); } Is there a reason why some such class isn't part of GWT already? Is there something in this code that will turn around and bite me in the tush? -- 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. -- *Jeff Schwartz* -- 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.