Re: Integrating RequestFactory into an eclipse project
Thanks all for the help, I ended up doing a tedious comparison of my project with DynaTableRf sample and copied the hibernate validator and gwt-servlet.jar from there. After a very frustrating 5 days, I have a working RequestFactory setup, now I can focus on actually implementing the server end. Question: Part of the problem I faced was Uncaught Exceptions with very unhelpful stack traces. The errors ended up being things like, I had an inconsistency in id type between getid and findClazz(id), un- initialized version field, etc. There were no hints whatsoever on the console, I did an extremely tedious comparison of my project with DynaTableRf as I said above to fix this. I'm wondering if this is because I'm missing a configuration that would automatically point out this inconsistencies. Or is there any other approach to hunting the problem? A strategically placed break point on client/server side? Again, thanks for the responses. Spundun On Aug 19, 10:45 am, David Chandler drfibona...@google.com wrote: See alsohttp://code.google.com/p/listwidget/ HTH, /dmc On Wed, Aug 17, 2011 at 2:49 AM, Spundun spun...@gmail.com wrote: Hi all, I'm trying to add RequestFactory and objectify to my existing eclipse project that uses GPE and GAE. The page http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html has the following instructions in the sectioin titled wiring Add the following jars to your WEB-INF/lib directory: requestfactory-server.jar javax/validation/validator-api-1.0.0.GA.jar A JSR 303 Validator of your choice, such as hibernate-validator my question is, where do I find the requestfactory-server.jar file? What do I use as a validator of my choice that I can use with GAE and which is easily gettable? Also, this process feels very clunky compared to the rest of the GPE experience, is there any plan to integrate it into GPE? p.s.: I haven't been able to do anything through maven yet. THe closest I got was when Run As- Maven install failed with error You must use a 32-bit Java runtime to run GWT Hosted Mode. I'm on mac. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, GWT+GAE w:http://code.google.com/ b:http://turbomanage.wordpress.com/ b:http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Editor returns null values for empty strings after flush?
That was the missing piece for me: the editor framework uses getvalueorthrow! The issue is here: http://code.google.com/p/google-web-toolkit/issues/detail?id=6713 On Aug 19, 11:02 pm, Jens jens.nehlme...@gmail.com wrote: Ok after digging around in GWT's source code: TextBox uses the generic ValueBoxEditor (see link in my previous answer) and does not have its own TextBoxEditor. The ValueBoxEditor knows the TextBox (but as ValueBoxBaseT, because the ValueBoxEditor is generic) and calls ValueBoxBase.getValueOrThrow() to get the editor value. This call returns null for empty Strings as mentioned before. Thats why you got null for TextBoxes. But I can see your point. TextBox overwrites ValueBoxBaseString.getValue() and changes null to an empty String. But it does not overwrite ValueBoxBaseString.getValueOrThrow(). So you end up having two methods that return the value but they have a different result for an empty String in the wrapped input element: - getValue() returns an empty String (called by you in your example) - getValueOrThrow() returns null (called by the editor framework) In addition to these both methods you also have TextBox.getText() which returns the text via a DOM operation. This method never returns null for an empty TextBox so maybe thats why Google has overwritten getValue() to act the same way. Unfortunately they forgot getValueOrThrow() which is used by the Editor Framework. So I think its a bug in TextBoxBase: getText(), getValue() and getValueOrThrow() should all act the same way. Maybe you can open an issue and ask to align both getValue methods so that they return the same for an empty string in the wrapped input element. Hope that helps. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Editor returns null values for empty strings after flush?
It looks like that it is enough to comment out the if statement in the ValueboxBase it solved the issue for me. But I am not sure what collateral damages that imposes to the request factory way of things. The patch did not break any test (?!?), and the fact that the TextBoxBase does undo this behavior is a bit scaring: ValueBoxBase: /** * Return the parsed value, or null if the field is empty or parsing fails. */ public T getValue() { try { return getValueOrThrow(); } catch (ParseException e) { return null; } } /** * Return the parsed value, or null if the field is empty. * * @throws ParseException if the value cannot be parsed */ public T getValueOrThrow() throws ParseException { String text = getText(); T parseResult = parser.parse(text); /* patched to fix inconsistent behaviour if (.equals(text)) { return null; } */ return parseResult; } TextBoxBase: @Override public String getValue() { String raw = super.getValue(); return raw == null ? : raw; } On 20 Aug., 08:45, P.G.Taboada pgtabo...@googlemail.com wrote: That was the missing piece for me: the editor framework uses getvalueorthrow! The issue is here: http://code.google.com/p/google-web-toolkit/issues/detail?id=6713 On Aug 19, 11:02 pm, Jens jens.nehlme...@gmail.com wrote: Ok after digging around in GWT's source code: TextBox uses the generic ValueBoxEditor (see link in my previous answer) and does not have its own TextBoxEditor. The ValueBoxEditor knows the TextBox (but as ValueBoxBaseT, because the ValueBoxEditor is generic) and calls ValueBoxBase.getValueOrThrow() to get the editor value. This call returns null for empty Strings as mentioned before. Thats why you got null for TextBoxes. But I can see your point. TextBox overwrites ValueBoxBaseString.getValue() and changes null to an empty String. But it does not overwrite ValueBoxBaseString.getValueOrThrow(). So you end up having two methods that return the value but they have a different result for an empty String in the wrapped input element: - getValue() returns an empty String (called by you in your example) - getValueOrThrow() returns null (called by the editor framework) In addition to these both methods you also have TextBox.getText() which returns the text via a DOM operation. This method never returns null for an empty TextBox so maybe thats why Google has overwritten getValue() to act the same way. Unfortunately they forgot getValueOrThrow() which is used by the Editor Framework. So I think its a bug in TextBoxBase: getText(), getValue() and getValueOrThrow() should all act the same way. Maybe you can open an issue and ask to align both getValue methods so that they return the same for an empty string in the wrapped input element. Hope that helps. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Aw: Re: Editor returns null values for empty strings after flush?
You should patch TextBoxBase and not ValueBoxBase. Or create your own MyTextBox extends TextBox and overwrite the method. ValueBoxBase itself is fine.. but TextBoxBase is not. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-Me08FUJOzYJ. 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: Editor returns null values for empty strings after flush?
I'll do that as soon as I have notice that is a feature and not bug. For now patching is easy and I must not change all my UIs. :-) Am 20.08.2011 um 12:51 schrieb Jens: You should patch TextBoxBase and not ValueBoxBase. Or create your own MyTextBox extends TextBox and overwrite the method. ValueBoxBase itself is fine.. but TextBoxBase is not. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-Me08FUJOzYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: In order to produce smaller client-side code, 'Object' is not allowed; consider using a more specific type
hi everone..may be u forget to make any variable or class as generic..i solved my problem by doing this. On Aug 19, 8:39 pm, David lujup...@gmail.com wrote: ok, let me get ride of the warning firstly. but I worried this is warn message not errro, that couldn't stop hosted mode from working finally. On Aug 19, 11:35 pm, Paul Robinson ukcue...@gmail.com wrote: I don't remember whether that should stop hosted mode from working. Either way, you know now how to get rid of the warning. On 19/08/11 16:27, David wrote: I can't find any exception beside the warning message In order to produce smaller client-side code, 'Object' is not allowed; consider using a more specific type Options in hosted mode console. On Aug 19, 11:24 pm, Paul Robinsonukcue...@gmail.com wrote: Copy paste the exception and stack trace. It could well be nothing to do with the things we've been talking about. On 19/08/11 16:19, David wrote: the exception is that client can't get any data from server side, so page can't show correctly at hosted mode in gwt v1.5.3. please note web mode work fine. On Aug 19, 11:15 pm, Paul Robinsonukcue...@gmail.com wrote: On 19/08/11 15:58, David wrote: thanks for your quick answer, I will update the code as your guide. but I am confusing whether this warning result in the exception that any data can't be retrieved from server side in Gwt version 1.5.3, as I mentioned, my app worked fin in gwt v1.4.60. You haven't said what exception you get- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
My GWT-App does not work in Android
Hi, my application does not work in Android: http://www.bavaria64.de/bcs Users report that they cannot access the app with Android. I cannot test it myself, but I would guess that Android, which comes from Google, would be supported by GWT, too? What can I do? Thanks Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/9Rs7ZQqmda0J. 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: Integrating RequestFactory into an eclipse project
If you pulled down trunk, you could use the client side requestfactory-apt.jar. That does compile time validation on your objects, so you'd probably be able to get the red squiggilies to tell when you're doing something wrong. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/_YbInjsmHgMJ. 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: Integrating RequestFactory into an eclipse project
You can also download the JAR from SVN, and you can also run ValidationTool to post-process your classes. See http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/fli2BLrTID0J. 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: My GWT-App does not work in Android
Hello Magnus. Users report that they cannot access the app with Android. I cannot test it myself, but I would guess that Android, which comes from Google, would be supported by GWT, too? What can I do? I just loaded the page with my Nexus One and Galaxy Tab without problems (as far as I can tell). What is the problem your users report? When I test my deployed GWT applications on Android devices and iPad, functionally they all work. Greetings, Michael --- http://about.me/michaelvogt -- You received 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: Generating XML
Hi Gary, I understand that you want to do. From a java object, you want to produce XML representation. Ok, you have many framewoks that do this for you. The 2 solutions i propose to you : 1) Use a standard way ( good practice and a framework support ) Let see JAXB API on Oracle web site because it's a standard way ( JSR recommendation if i remember ) http://www.oracle.com/technetwork/articles/javase/index-140168.html. This operation is called Marshaling e.g transforming a java object in xml. With JAXB you can fine tune the operation. Download JAXB and its javadoc, set your Eclipse project to add relative *.jar and javadoc. Then code 2) If you feel that it's a heavy for what you want to do, just override the toString() method of your java class, in order to produce xml. Here's a very simple exemple : class Personn { private String firstName, lastName; .../... constructor(s), getters, setters, methods omitted .../ @override public string toString() { // you can get class fields using introspection if you want to automate the process return firstName + firstName + /firstName + lastName + lastName + /lastName; } } I hope it helps. Regards. Karim Duran 2011/8/19 DarthG garyker...@gmail.com Part of my application requires an XML file to be generated from an object. The XML produced will be small in size and simple in structure. I could achieve this using elaborate string manipulation but I suspect there is a better way. I tried to use the xmlenc (http://xmlenc.sourceforge.net/) library, but it requires Writer objects to function, which GWT does not support. Is there an accepted way of XML generation for GWT? Or perhaps a way to synthesise Writer objects? Initially, I want the XML output on the console for testing, but eventually it will be stored on a server/database. Thanks, Gary -- You received 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.
Image onLoad doesn't fire in production
Greetings gentlemen, So my app is working perfectly on development but not on production and i can't figure out why. Here's a view class and it's supposed to load an image and then with that data draw it on a canvas, problem is on production my onLoad event isn't firing. Here's the class(it's quite messy, sorry for that.) http://pastebin.com/FsfDTRSk Is there any reason why it's not loading on production? The link i'm providing looks like this: http://lh5.ggpht.com/31_b6Vv_Py7kLvRuKUicwAKZ3n9Eps4nQE9EgRLe2KFVlbYfPT6lG8yAknlKuOc6tvMGVQP8neJP4WZ9j7QAT5blChyE Any and all help is much appreciated! Rohan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/O4IYhZwMIGIJ. 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.
stuck at v1.5.3 of the SDK in eclipse
hi, is there a way to upgrade to 1.5.3 within eclipse? I tried check for updates but it only finds up to 1.5.2, thx Initializing AppEngine server [WARN] There is a new version of the SDK available. --- Latest SDK: Release: 1.5.3 Timestamp: Tue Jul 19 15:46:16 CDT 2011 API versions: [1.0] --- Your SDK: Release: 1.5.2 Timestamp: Mon Jul 18 18:48:56 CDT 2011 API versions: [1.0] --- Please visit http://code.google.com/appengine for the latest SDK. -- You received 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: stuck at v1.5.3 of the SDK in eclipse
Download the App Engine SDK - Unzip it somewhere - Make a new project in eclipse - Select Configure SDK's - click Add and browse to the app engine directory you extracted and you're done. On Sat, Aug 20, 2011 at 6:28 PM, alexl alexthebl...@gmail.com wrote: hi, is there a way to upgrade to 1.5.3 within eclipse? I tried check for updates but it only finds up to 1.5.2, thx Initializing AppEngine server [WARN] There is a new version of the SDK available. --- Latest SDK: Release: 1.5.3 Timestamp: Tue Jul 19 15:46:16 CDT 2011 API versions: [1.0] --- Your SDK: Release: 1.5.2 Timestamp: Mon Jul 18 18:48:56 CDT 2011 API versions: [1.0] --- Please visit http://code.google.com/appengine for the latest SDK. -- You received 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. -- Which would you rather believe in: A God that never answers you or a society that embraces you? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: stuck at v1.5.3 of the SDK in eclipse
thanks it worked! say would you know how to disable stats (whatever that is) I keep getting this error $stats is not defined thx -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Doubt about MVP multiple areas.
I need to have a layout like this. +--+ || +--+ | Users | Name[] | | Pages|Lastname [] | | || | |[Save][Cancel] | | || | |-| | | [Add] | | |-| | | Id | Name | Lastname| | || | || | || +--+ In the lateral panel (Users / Pages) I have my main menu. When a user clicks on the Users menu item, in the gray area I have to display an Add button and a table of users. When the user clicks in the Add button, I have to show a form over the Users table and hide the Add button. What I did is the following: I created two ACP (Activity / View / Place): 1. UsersEditPlace, UsersEditView (here I have the form), UsersEditActivity 2. UsersListPlace, UsersListView (here I have the table, and the Add button), UsersListActivity And, I also created two ActivityMappers: 1. TopActivityMapper for the green area. 2. MainActivityMapper for the grey area. The only trouble that I have is: *how can I set visible 'Add' button when the user clicks in the Cancel button of the form (UserEditView) ?* Because, the Cancel button is in my UsersEditView, and the Add button is in my UsersListView, I don't have any reference to that button. I thought maybe, to implement PlaceHandler on my UsersListView, and if the Place is instance of UsersListPlace setVisible(true) to the button, but I don't like this idea so much. On the other side, where is placed the Add button, I have to put a menu for almost every item in my main menu (lateral menu) should I have another ActivityMapper where is my Add button, and create a View / Activity for every menu that I have to create? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Rek2bC4ulqwJ. 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: stuck at v1.5.3 of the SDK in eclipse
oops never mind, there as a syntax error I introduced in my hosted.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.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Doubt about MVP multiple areas.
With regards to enabling your add button, throw a custom event on the click of cancel, listen for this event in the activity which manages the view containing the add button. ~Ashwin Sent from my iPhone On Aug 21, 2011, at 8:06 AM, vehdra music veh...@gmail.com wrote: I need to have a layout like this. +--+ || +--+ | Users | Name[] | | Pages|Lastname [] | | || | |[Save][Cancel] | | || | |-| | | [Add] | | |-| | | Id | Name | Lastname| | || | || | || +--+ In the lateral panel (Users / Pages) I have my main menu. When a user clicks on the Users menu item, in the gray area I have to display an Add button and a table of users. When the user clicks in the Add button, I have to show a form over the Users table and hide the Add button. What I did is the following: I created two ACP (Activity / View / Place): 1. UsersEditPlace, UsersEditView (here I have the form), UsersEditActivity 2. UsersListPlace, UsersListView (here I have the table, and the Add button), UsersListActivity And, I also created two ActivityMappers: 1. TopActivityMapper for the green area. 2. MainActivityMapper for the grey area. The only trouble that I have is: how can I set visible 'Add' button when the user clicks in the Cancel button of the form (UserEditView) ? Because, the Cancel button is in my UsersEditView, and the Add button is in my UsersListView, I don't have any reference to that button. I thought maybe, to implement PlaceHandler on my UsersListView, and if the Place is instance of UsersListPlace setVisible(true) to the button, but I don't like this idea so much. On the other side, where is placed the Add button, I have to put a menu for almost every item in my main menu (lateral menu) should I have another ActivityMapper where is my Add button, and create a View / Activity for every menu that I have to create? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Rek2bC4ulqwJ. 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.