Best practice for to maintain Big project
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.
Re: GWT 2.2 Canvas support for IE6 (GWTCanvasImplIE6)
I am with Jan here. GWT-Graphics is an excellent library. Just don't overuse it in IE cause this will cause a big performance hit (especially Text objects) Frank On 3 mrt, 07:17, Jan Mostert j...@mycee.com wrote: GWT-graphics supports IE6 via VML and renders everything else via Vector Supported browsers The library has been tested to work with the following browsers: - Internet Explorer 6 and newer - Firefox 3.0 and newer - Safari 3.2 and newer - Opera 9.6 and newer - Google Chrome http://code.google.com/p/gwt-graphics/ -- Jan Vladimir Mostert BEngSci MyCee Technologies On Thu, Mar 3, 2011 at 1:58 AM, Craig Mitchell craig...@gmail.com wrote: +1. Partial support would be great as there are a lot of IE 6/7/8 users out there. http://www.w3schools.com/browsers/browsers_explorer.asp On Mar 3, 1:22 am, Kurtt Lin kurtt@gmail.com wrote: Even partially supporting is welcomed, and developers should have known about its IE6's poor performance, thus avoid rendering lots elements. Actually i want Canvas in IE 6/7/8 badly. T T On Wed, Mar 2, 2011 at 9:55 PM, Philip Rogers p...@google.com wrote: Because of the difficulty of supporting IE6 fully via VML (including text, etc.) and still having reasonable performance, there aren't plans to support it at this time. The new Canvas implementation in GWT should have complete support across FF3.5, Chrome, Safari, and IE9, but there isn't a fallback provided for the older browsers. On Mar 1, 10:31 pm, Craig Mitchell craig...@gmail.com wrote: Hi, Are there any plans for Canvas to support IE6? It was supported via GWTCanvasImplIE6 in the gwt-incubator.jar which would implement the Canvas functionality via VML. 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. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Can't install google eclipse plugin on fresh Helios install.
The most secure form to install the plugin is: 1) First uninstall the plugins: * GWTDesigner * GWTDesignerCore * GWT Eclipse plugin * WindowBuilder Common UI Support * WindowBuilder Common Components * WindowBuilder XML Common Components * Google Web Toolkit 2.1.1 SDK Bundle for Eclipse 3.6 2) Install the plugin following this instructions http://code.google.com/intl/es/eclipse/docs/install-from-zip.htmlhttp://www.google.com/url?sa=Dq=http://code.google.com/intl/es/eclipse/docs/install-from-zip.html Juan 2011/3/3 Andrew Hughes ahhug...@gmail.com Hi All, I've noticed a lot of posts that people are having trouble updating their eclipse plugins (starting ~14th Feb 2011). I'm not updating, I have a fresh Helios install that won't install the plugin or sdk from http://dl.google.com/eclipse/plugin/3.6. Would anyone be able to confirm this problem or explain it? it's really annoying. Cheers :) An error occurred while collecting items to be installed session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer,2.2.0.r36x201102111505 No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.UiBinder,2.2.0.r36x201102111505 No repository found containing: org.eclipse.update.feature,com.google.gdt.eclipse.designer.editor.feature,2.2.0.r36x201102111505 No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted,2.2.0.r36x201102111446 No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.1_6,2.2.0.r36x201102111446 No repository found containing: osgi.bundle, com.google.gdt.eclipse.designer.hosted.1_6.ie,2.2.0.r36x201102111446 No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.1_6.super,2.2.0.r36x201102111446 No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_0,2.2.0.r36x201102111446 No repository found containing: osgi.bundle, com.google.gdt.eclipse.designer.hosted.2_0.ie,2.2.0.r36x201102111446 No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_0.super,2.2.0.r36x201102111446 No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_0.webkit,2.2.0.r36x201102111446 No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_0.webkit_win32,2.2.0.r36x201102111446 No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_2,2.2.0.r36x201102111446 No repository found containing: osgi.bundle, com.google.gdt.eclipse.designer.hosted.2_2.ie,2.2.0.r36x201102111446 No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_2.webkit,2.2.0.r36x201102111446 No repository found containing: org.eclipse.update.feature,com.google.gdt.eclipse.designer.hosted.feature,2.2.0.r36x201102111446 No repository found containing: osgi.bundle,com.google.gdt.eclipse.designer.hosted.lib,2.2.0.r36x201102111446 No repository found containing: osgi.bundle,org.eclipse.wb.core,0.9.0.r36x201102111430 No repository found containing: osgi.bundle,org.eclipse.wb.core.databinding,0.9.0.r36x201102111430 No repository found containing: osgi.bundle,org.eclipse.wb.core.databinding.xml,0.9.0.r36x201102111443 No repository found containing: org.eclipse.update.feature,org.eclipse.wb.core.feature,0.9.0.r36x201102111430 No repository found containing: osgi.bundle,org.eclipse.wb.core.lib,0.9.0.r36x201102111430 No repository found containing: osgi.bundle,org.eclipse.wb.core.xml,0.9.0.r36x201102111443 No repository found containing: org.eclipse.update.feature,org.eclipse.wb.core.xml.feature,0.9.0.r36x201102111443 No repository found containing: osgi.bundle,org.eclipse.wb.css,0.9.0.r36x201102051550 No repository found containing: org.eclipse.update.feature,org.eclipse.wb.css.feature,0.9.0.r36x201102051550 No repository found containing: osgi.bundle,org.eclipse.wb.jdt.fragment,0.9.0.r36x201102111430 No repository found containing: osgi.bundle,org.eclipse.wb.os,0.9.0.r36x201102111430 No repository found containing: osgi.bundle,org.eclipse.wb.os.win32,0.9.0.r36x201102111430 No repository found containing: osgi.bundle,org.eclipse.wb.runtime,0.9.0.r36x201102111430 No repository found containing: osgi.bundle,org.eclipse.wb.runtime.lib,0.9.0.r36x201102111430 -- You received 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
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
During client-side development, you can just make code changes, reload your browser and see the impact of your 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.
Compiler Output Size
Hi, I have an issue that I find incredibly puzzeling: After updating to the newest GWT and App Engine version, I cannot deploy to App Engine anymore. I get the following error: Unable to update: java.io.IOException: Applications are limited to 15000 bytes of resource files, you have 214485231. I have checked and the files in the war/WEB-INF/deploy are indeed the stated size. Now there is absolutely nothing about my project that is large - the only resources are icons which together weigh less than 1MB. The only thing I can think of is the gwt_datepicker, widget which causes code to be compiled (together with the standard browser optimisations) in roughly 70 permutations, because of the locales it tries to support. Assuming my code, which is 2.4MB is compiled 70 times (and my guess is that the compiled JS will be larger in size than the Java source), then it could comfortably reach that figure. But if the solution was to limit the numbers of locales, that would mean that it wasn't possible to host projects of even a moderate size with a decent number of locales on App Engine. Does anyone have any experience with this? By the way the reason I posted this here rather than in the app-engine group is because I guess the issue is limiting the size of what GWT compiles rather than tweaking App Engine, but I may well be wrong there... Thanks, Johannes Lehmann -- You received 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: howto check HTML5 audio tag supported in a browser
gwtmodernizr can help you to detect browser support for HTML5 and CSS3 features Check at : http://code.google.com/p/gwtmodernizr/ On Mar 3, 12:31 am, John LaBanca jlaba...@google.com wrote: GWT has an Audio widget for HTML5 audio support: com.google.gwt.media.client.Audio.isSupported() Thanks, John LaBanca jlaba...@google.com On Wed, Mar 2, 2011 at 6:29 PM, Armishev, Sergey sarmis...@idirect.netwrote: I am new to HTML5 and have this simple question: what is the best way to check that HTML5 audio tag is supported on the browser? In general I would like to be able to check for all/most of HTML5 tags. The only library I found is Modernizr fromhttp://diveintohtml5.org/detectbut it doesn’t check for audio . Anybody knows and can recommend other libraries? Any GWT based libraries? -Sergey _ This electronic message and any files transmitted with it contains information from iDirect, which may be privileged, proprietary and/or confidential. It is intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please delete it and immediately notify the sender. _ -- You received 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.- 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.
Re: User roles in GWT applications
In my app I'm doing the security checks on the client- as well as on the server-side. After the user successfully logged into the app, the UserManager containes among other things a set of roles which are assigned to the current user enabling the role-checks without any rpc- callbacks. The client checks are done to provide only the necessary UI - only the system functions which can actually be accessed by the current user. The server checks provides the true security, ensuring that only the users with the corresponding rights can access the services. As I'm working with the gwt-presenter, I'm doing the checks also within the Places objects. But also in the presenters if it's needed. On 2 Mrz., 20:14, csaffi csaff...@gmail.com wrote: On 2 Mar, 14:31, Lukasz l.plotni...@googlemail.com wrote: I'm doing it by providing a self-implemented UserManager object on the client. It contains the currently signed in user and provides methods for access or role checks e.g. canEditUser(). This UserManager object is an singleton injected via gin into all relevant presenters (as you see I'm also using the MVP pattern in my app). When the presenter is rendering the view, it can check which functionality should be enabled or disabled. HTH, Lukasz Thank you Lukasz. Does UserManager check user roles server-side with an RCP call? -- You received 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: Compiler Output Size
214485231 Byte =~ 214 MB not 2.4 mb There just no way you should have such huge size. Something is very wrong with your code, you need a tool that scans the folders and see which folders and files are cause this size. On Mar 3, 7:54 am, Johannes Lehmann johannes.lehma...@googlemail.com wrote: Hi, I have an issue that I find incredibly puzzeling: After updating to the newest GWT and App Engine version, I cannot deploy to App Engine anymore. I get the following error: Unable to update: java.io.IOException: Applications are limited to 15000 bytes of resource files, you have 214485231. I have checked and the files in the war/WEB-INF/deploy are indeed the stated size. Now there is absolutely nothing about my project that is large - the only resources are icons which together weigh less than 1MB. The only thing I can think of is the gwt_datepicker, widget which causes code to be compiled (together with the standard browser optimisations) in roughly 70 permutations, because of the locales it tries to support. Assuming my code, which is 2.4MB is compiled 70 times (and my guess is that the compiled JS will be larger in size than the Java source), then it could comfortably reach that figure. But if the solution was to limit the numbers of locales, that would mean that it wasn't possible to host projects of even a moderate size with a decent number of locales on App Engine. Does anyone have any experience with this? By the way the reason I posted this here rather than in the app-engine group is because I guess the issue is limiting the size of what GWT compiles rather than tweaking App Engine, but I may well be wrong there... Thanks, Johannes Lehmann -- You received 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: Compiler Output Size
You can reduce the number of files being generated by using soft permutationshttp://code.google.com/p/google-web-toolkit/wiki/SoftPermutations, in your case, as the permutation explosion is due to locales, you could use runtime localeshttp://code.google.com/webtoolkit/doc/latest/DevGuideI18nLocale.html#RuntimeLocalesinstead. -- You received 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.
MSIE Invalid Argument error
With GWT 2.2 in MSIE I am getting an Invalid Argument error in a n.cache.html file which prevents the page from displaying. I go into the html file and delete the javascript statement at the line and character indicated and then re-execute. Then I'll get an error in another place. I end up having to do this several times before MSIE will display the page. When it does display it seems to display correctly. Namely, I can't find anything that doesn't display right. I said display right but that is meant in a technical sense. It still looks a bit of a mess because I haven't been able to get the scrolling right since the right part of the page is an iframe to show legacy web pages. The site does display in Firefox and Opera. This is an attempt to move to GWT 2.2 from GWT 1.5 using DockLayoutPanel and RootLayoutPanel instead of DockPanel and RootPanel. The URL is http://www.netrocam.com/rvd/homesite.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: Styeling a ListBox
Form elements are implemented by the browser, you are very limited in terms of customization (both Ui and functional). I remember an old post where somebody was asking how to customize an upload form - same issue - you cannot do that. What you can do is have a custom 3rd party (or your own) widget that mimics that functionality. Alex. On Mar 2, 6:38 pm, Ben Imp benlee...@gmail.com wrote: You can probably simulate a red border by surrounding the list box with a div, which you could add a border color to. IE should actually listen to that one. I don't think you can style the drop down arrow at all. From my understanding, form elements are kind of limited in how you can alter their appearance. -Ben On Mar 2, 9:27 am, K upadhya...@gmail.com wrote: Hi, I wish to change the way ListBox looks using CSS - Change the border color - Tried using the usual border-color:red. Worked on Firefox. No effect on IE Still the standard blue color - Change the Color of the arop down arrow. No idea how to go about doing it. regards K -- You received 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: Compiler Output Size
How many locales do you have? On Mar 3, 3:50 pm, Thomas Broyer t.bro...@gmail.com wrote: You can reduce the number of files being generated by using soft permutationshttp://code.google.com/p/google-web-toolkit/wiki/SoftPermutations, in your case, as the permutation explosion is due to locales, you could use runtime localeshttp://code.google.com/webtoolkit/doc/latest/DevGuideI18nLocale.html#...instead. -- You received 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
You can create 2 projects, or 2 modules in GWT that have entry-points (especially if you share code between the two modules). On Mar 3, 1:48 pm, Jeff Schwartz jefftschwa...@gmail.com wrote: 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.
java.lang.NoClassDefFoundError: org/apache/http/client/ClientProtocolException
Greetings folks, I would like to share something I've found about the potential conflict between AppEngine config in Eclipse GWT plugin and use of HttpClient code in your server for instance to build a proxy server. I've already known about constraints of AppEngine on server but I've forgot to disable AppEngine in my Eclipse project. If you encounter such error messages as « java.lang.NoClassDefFoundError: org/apache/http/client/ ClientProtocolException » although all the respective libraries are included so you should try to remove AppEngine from your classpath or disable AppEngine use via properties settings of your Eclipse project. Hoping this can help someone -- You received 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.
Making GWT 2.2 work in eclipse 3.4
I have seen a few posts (http://groups.google.com/group/google-web- toolkit/browse_thread/thread/eaf042880c63e3c5/07410f4d531860e6? lnk=gstq=eclipse+3.4# and https://groups.google.com/group/google-web-toolkit/browse_thread/thread/e630f2550ac20050) that have had problems with updating to GWT 2.2 in eclipse 3.4 and I ran into the same problem.I have been running 2.1 and 2.1.1 with no problem but when I tried to update to 2.2 i received the following error: Cannot complete the request. See the details. Google Plugin for Eclipse 3.4 is already installed, so an update will be performed instead. Unsatisfied dependency: [com.google.gdt.eclipse.suite.e34.feature.feature.group 2.2.0.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/ org.eclipse.wb.core.xml.feature.feature.group/0.9.0 Unsatisfied dependency: [com.google.gwt.eclipse.sdkbundle.e34.feature. 2.2.0.feature.group 2.2.0.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/ com.google.gdt.eclipse.suite.e34.feature.feature.group/2.2.0 Unsatisfied dependency: [com.google.gwt.eclipse.sdkbundle.e34.feature. 2.1.0.feature.group 2.1.0.v201010280047] requiredCapability: org.eclipse.equinox.p2.iu/ com.google.gdt.eclipse.suite.e34.feature.feature.group/1.4.0 Unsatisfied dependency: [com.google.gwt.eclipse.sdkbundle.e34.feature. 2.1.1.feature.group 2.1.1.v201012170126] requiredCapability: org.eclipse.equinox.p2.iu/ com.google.gdt.eclipse.suite.e34.feature.feature.group/1.4.1 Unsatisfied dependency: [com.google.gdt.eclipse.suite.e34.feature.feature.group 2.2.0.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/ org.eclipse.wb.core.xml.feature.feature.group/0.9.0 To solve this problem I downloaded the plugin and SDK (http:// code.google.com/eclipse/docs/install-from-zip.html) and commented out the row required namespace='org.eclipse.equinox.p2.iu' name='org.eclipse.wb.core.xml.feature.feature.group' range='0.9.0'/ in the content.xml file in the content.jar of the downloaded file. This made it possible to install GWT 2.2 in eclipse 3.4 from my local hard drive. I wonder if this is a viable solution or pure luck on my part? Regards Ralf -- You received 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: Integrating GIN into HelloMVP sample from GWT
@AnnotatedWith is the annotation you're looking for. or @Named, but personally I do prefer the first one. http://code.google.com/p/google-guice/wiki/BindingAnnotations Basically what you can do is replace the code below - public Activity getActivity (Place place) if (place instanceof GoodbyePlace) { . } with public Activity getActivity (@GoodbyePlace Place place) { return new GoodbyePlace ((GoodbyePlace) place, clientFactory); } You will probably notice I've changed the method a bit, the implementation selection decision (whether the method returns a GoodbyePlace or something else) is not there anymore. So you will need to adjust to this. The change is a bit more subtle, you're exchanging runtime type info with static compile time GIN functionality. Alex D. On Mar 2, 1:22 am, ciosbel andrew...@gmail.com wrote: https://groups.google.com/forum/#!topic/google-web-toolkit/LtGZpCxQAVY might 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.
Re: Compiler Output Size
I know my CODE is not 214 bytes, what I was saying is that if the 2.4MB that are my code were compiled into something larger 70 times, that could explain how GWT even manages to generate 214MB of stuff! On Mar 3, 2:31 pm, Aladdin alaamu...@gmail.com wrote: 214485231 Byte =~ 214 MB not 2.4 mb There just no way you should have such huge size. Something is very wrong with your code, you need a tool that scans the folders and see which folders and files are cause this size. On Mar 3, 7:54 am, Johannes Lehmann johannes.lehma...@googlemail.com wrote: Hi, I have an issue that I find incredibly puzzeling: After updating to the newest GWT and App Engine version, I cannot deploy to App Engine anymore. I get the following error: Unable to update: java.io.IOException: Applications are limited to 15000 bytes of resource files, you have 214485231. I have checked and the files in the war/WEB-INF/deploy are indeed the stated size. Now there is absolutely nothing about my project that is large - the only resources are icons which together weigh less than 1MB. The only thing I can think of is the gwt_datepicker, widget which causes code to be compiled (together with the standard browser optimisations) in roughly 70 permutations, because of the locales it tries to support. Assuming my code, which is 2.4MB is compiled 70 times (and my guess is that the compiled JS will be larger in size than the Java source), then it could comfortably reach that figure. But if the solution was to limit the numbers of locales, that would mean that it wasn't possible to host projects of even a moderate size with a decent number of locales on App Engine. Does anyone have any experience with this? By the way the reason I posted this here rather than in the app-engine group is because I guess the issue is limiting the size of what GWT compiles rather than tweaking App Engine, but I may well be wrong there... Thanks, Johannes Lehmann -- You received 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
Hey Google GWT developers, could we get a response to this question please? You've created this elaborate editors framework that lots of people are trying to adopt, but there seems to be no way to secure it on the server side. Without any server-side checks, attackers are free to query, modify and persist entities as they see fit. This is a really serious problem. Maybe there is an obvious solution and I've been too dumb to find it. I've looked through the documentation, examples and even the source and haven't been able to solve this. We'd all be happy to RTFM, if you could give us a pointer. 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.
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: how to secure RequestFactory in GWT 2.2
FWIW, I also tried securing my services layer by using a servlet Filter (same way that I'm using a PersistenceFilter to manage by EntityManager{Factory}). I was hoping to query the user's session for a loggedInUser object, but was stymied by the fact that the Filter interface only has a ServletRequest, not an HttpServletRequest, and thus no access to the user's session. If anyone knows a solution to this, please share. (Hmm, now I'm wondering if the ServletRequest can simply be cast to an HttpServletRequest...) -- You received 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: Compiler Output Size
This sounds like exactly what I need, thanks! On Mar 3, 2:50 pm, Thomas Broyer t.bro...@gmail.com wrote: You can reduce the number of files being generated by using soft permutationshttp://code.google.com/p/google-web-toolkit/wiki/SoftPermutations, in your case, as the permutation explosion is due to locales, you could use runtime localeshttp://code.google.com/webtoolkit/doc/latest/DevGuideI18nLocale.html#...instead. -- You received 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
OK, I feel as if I'm solving this problem via Rubber duck debugginghttp://en.wikipedia.org/wiki/Rubber_duck_debugging; sitting down to phrase my question reveals a potential solution: - create MyRequestFactoryServlet that extends RequestFactoryServlet (I didn't realize this was an option; I thought the relevant methods therein were marked final, but that's not the case) - override doGet()/doPost to check the user's session for a userIsLoggedIn object (which you can set via RPC or similar at your login page) - throw an exception (or perhaps redirect) if the user is not logged in - use MyRequestFactoryServlet in your web.xml rather than RequestFactoryServlet I think this will work, but I wonder if there is not a more official solution, given that there used to be a UserInformation class that seemed to address this issue. -- You received 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.
Highcharts - updating chart with data
Hi. I have just started using Highcharts (www.highcharts.com) and JSNI and I am having some difficulties updating my chart with data. Below is some sample code. First I call the 'createTestChart' method which creates the options object and then uses this options object to create the chart. This works fine! I then call the 'updateTestChart' method to push further data into the chart. This doesn't work. However, if I instead in the 'getTestConfig' method after the options object has been created write the following code, then the extra data is added to the chart: options.series.push({ name: 'Julie', data: [3, 4, 2] }); What I want is to create the chart based on a configuration and then update the chart with data retrieved from a server. Regards, Thomas. Sample code: public class HighchartWrapper { private JavaScriptObject options; public void createTestChart(String containerId) { options = getTestConfig(containerId); createChart(options); } public native void updateTestChart() /*-{ th...@com.conscius.marketshare.graph.client.util.HighchartWrapper::options.series.push({ name: 'Julie', data: [3, 4, 2] }); }-*/; private native void createChart(JavaScriptObject options) /*-{ var chart; chart = new $wnd.Highcharts.Chart(options); }-*/; // chart configuration private native JavaScriptObject getTestConfig(String containerId) / *-{ var options = { chart: { renderTo: containerId, defaultSeriesType: 'bar' }, title: { text: 'Fruit Consumption' }, xAxis: { categories: ['Apples', 'Bananas', 'Oranges'] }, yAxis: { title: { text: 'Fruit eaten' } }, series: [ { name: 'Jane', data: [1, 0, 4] }, { name: 'John', data: [5, 7, 3] } ] } return options; }-*/; } -- You received 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: Integrating GIN into HelloMVP sample from GWT
Yes, but you just get rid of the new operator. That's just half of fix, you're still type-casting after 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.
assertion does not work
Hi, I have an assertion and I know that it fails. assert (x dim.x y dim.y); or assert (x dim.x y dim.y): fail; But there is no message in eclipse (development mode and console). I have used the runtime argument -ea. What can I do? Thanks Magnus -- You received 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.
Problems with RPC and servlets
Hi, We have a strange problem with RPC and servlets which only occurs for Internet Explorer on our productive server. Our setup is: GWT 2.1.1, GXT 2.2.2, Glassfish 3.1, eclipselink, Https We have a async treegrid which calls some RPCs to the server when a node is selected. Also two user-pictures are loaded via a servlet, which basicly just write the picture into the ServletOutputStream of the HttpResponse. Now we get from time to time in IE some strange exceptions, which result in calling onfailure() of an AsyncCallback. But which RPC gets the exception is totally random and can not be reproduced. The affected callback do not need to trigger the picture servlet call, so it is independed from the response of the servlet. If we remove the pictures from the code it works fine. The content type and content lenght of the response are set correctly and it works just fine with firefox and chrome. But how can an error with the picture servlet result in Asycn-callback getting this exceptions? And have anyone of you an idea how to solve the issue? Exception 1: Exception Class:com.google.gwt.user.client.rpc.InvocationExceptionException Message: �PNG Exception Stack Trace: Unknown.com_google_gwt_user_client_rpc_InvocationException_InvocationException__Ljava_lang_String_2V(Unknown source:0) Unknown.com_google_gwt_user_client_rpc_impl_RequestCallbackAdapter_ $onResponseReceived__Lcom_google_gwt_user_client_rpc_impl_RequestCallbackAdapter_2Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_Response_2V(Unknown source:0) Unknown.com_google_gwt_http_client_Request_ $fireOnResponseReceived__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_RequestCallback_2V(Unknown source:0) Unknown.com_google_gwt_http_client_RequestBuilder $1_onReadyStateChange__Lcom_google_gwt_xhr_client_XMLHttpRequest_2V(Unknown source:0) Unknown.anonymous(Unknown source:0) Unknown.com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(Unknown source:0) Unknown.anonymous(Unknown source:0) Exception 2: Exception Class:com.google.gwt.user.client.JavaScriptException Exception Message:(Error): Could not complete the operation due to error c00ce514. number: -1072896748 description:Could not complete the operation due to error c00ce514 Exception Stack Trace: none Thank you for your help Best regards Christian -- You received 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.
Database jdbc
hi i waht tow know how to connect database into GWT project 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.
GWT, Eclipse, and testing touch events
Is there a way to emulate multitouch events when developing an app in GWT2.2 with Eclipse? In particular, I want to emulate touch events when I run as web application from Eclipse on my laptop (which is not a multitouch device, of course), for testing purposes prior to deployment. Is that possible? -- You received 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.
requestFactory: NPE while traversing local read-only proxies
Hi, I've recently set up remote logging which now gives me more visibility on client-side bugs. One problem that I've discovered this way, but never ran into myself, are spurious errors like the ones attached below. As you can see, the stack trace isn't always identical but it usually looks like an NPE somewhere in AbstractRequestContext.doFire. Now, my understanding is that this might have to do with the requestContext looking for any changes to local proxies. What baffles me, though, is that for the specific RequestContext involved in these errors the entities are never edited - the corresponding proxy class doesn't even have setters, and edit() is never called. The calls in question here are purely for getting data from the server (specifically, a total entity count and one result page, for populating a page of a CellTable). That's why I'm not sure why getVersion would even have to be called on the client side at all. I've double-checked that all arguments to the count and list operations are non-null. So far I don't know how to reproduce this error or else I would try to condense it into a test case. I'm hoping you might have an idea of where I could start looking? Also, is there any way I can make the stack traces more informative or enable other relevant debug output? Thanks. 2011-03-03 13:49:22,399 ERROR [redacted.client2.Redacted] - Uncaught Exception java.lang.Throwable: (TypeError): dynamicCast($getWrapped(this $static.this$0), 420) is null stack: $getVersion_0([object Object])@http://redacted/ redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:42867 traverseProperties_14([object Object],[object Object])@http://redacted/ redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:42835 $traverse([object Object],[object Object],[object Object])@http:// redacted/redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:6485 encodeForJsoPayload([object Object],[object Object])@http://redacted/ redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:31332 encode_1([object Object])@http://redacted/ redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:31322 $doFire([object Object],null)@http://redacted/ redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:6836 $fire([object Object])@http://redacted/ redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:6864 $updateTable([object Object])@http://redacted/ redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:12395 $onEntityUpdated_0([object Object],[object Object])@http://redacted/ redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:13757 execute_8()@http://redacted/ redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:14509 runScheduledTasks([object Array],[object Array])@http://redacted/ redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:33076 $flushPostEventPumpCommands([object Object])@http://redacted/ redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:32998 execute_50()@http://redacted/ redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:33128 execute_49([object Object])@http://redacted/ redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:33030 entry0(execute_49,[object XPCCrossOriginWrapper],[object Object])@http://redacted/ redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:32920 ([object Object])@http://redacted/ redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:32905 (1)@http://redacted/ redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:33094 2011-03-03 11:26:06,170 ERROR [redacted.client2.Redacted] - Uncaught Exception java.lang.Throwable: (TypeError): dynamicCast($getWrapped(this $static.this$0), 420) is null stack: $setInvocations([object Object],[object Object])@http:// redacted/redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:42886 $doFire([object Object],null)@http://redacted/ redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:6836 $fire([object Object])@http://redacted/ redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:6864 $updateTable([object Object])@http://redacted/ redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:12395 $onEntityUpdated_0([object Object],[object Object])@http://redacted/ redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:13757 execute_8()@http://redacted/ redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:14529 runScheduledTasks([object Array],[object Array])@http://redacted/ redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:33088 $flushPostEventPumpCommands([object Object])@http://redacted/ redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:33010 execute_50()@http://redacted/ redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:33140 execute_49([object Object])@http://redacted/ redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:33042 entry0(execute_49,[object XPCCrossOriginWrapper],[object Object])@http://redacted/ redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:32932 ([object Object])@http://redacted/ redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:32917 (11)@http://redacted/ redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:33106 --
IE7 problem: pictures/buttons are too big
Hi. Im using the google web toolkit. Everyhings was fine. Today I tested my stuff on the Internet Explorer 7 and I have to cry. Every picture and a lot of buttons are realy oversized. If I have a normal picture like 16x16, on the IE it is something like 40x40. On firefox, opera, chrome everyhing is fine. I used the designer to create the pictures and buttons. Then I tought, the designer got a bug. So I coded my own button with a fixed size, but its not helping. What can I do? Thank you -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
giw to create form hierarchy
hi all, i am new here and in GWT, and my english is not so good, so please excuse me. i need to create a web site, using GWT. the website has hierarchical structure: main global caption, and couple of buttons. each button opens new part of the application, which has its own sub tabs. each one of the sub-tab suppose to be navigatable. for example: Main form - application issues -- --- preferences --- create something ---edit something - administration --- --- user management -- policies now, i want to understand what is the best option to use GWT. i thought of two options: 1. there will be in the entry point main activity. in its start function we will create ActivityManager for each sub-menu (= sub tab = child). each sub menu will create activity managers for each its sub menu, and so on. we will set a display for each activity manager, and fire change place event. the problem is that i need to manage the places (all the places should go to the main activity, that should takes its params and delegate to the sub places, etc.) otherwise, when the user copy and paste the url, it will cause only the child activity to start, and the parent activity to be not initialized. 2. i can create OOP hierarchy of widges, so - there will be an activity for each leaf in the hierarchy structure tree. there will be also matching widges hierarchy. each leaf widge contains its own components, and all its parent components (such as - the main caption of the form) in this option, there is only one active activity. what is the best option? how would you implement hierarchy structure? 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.
Re: how to secure RequestFactory in GWT 2.2
On Thursday, March 3, 2011 4:16:40 PM UTC+1, KaffeineComa wrote: Hey Google GWT developers, could we get a response to this question please? You've created this elaborate editors framework that lots of people are trying to adopt, but there seems to be no way to secure it on the server side. Without any server-side checks, attackers are free to query, modify and persist entities as they see fit. This is a really serious problem. Maybe there is an obvious solution and I've been too dumb to find it. I've looked through the documentation, examples and even the source and haven't been able to solve this. We'd all be happy to RTFM, if you could give us a pointer. It's indeed easy and rather obvious. If you look at the Expenses sample, you'll see how they do it using GAE to authenticate the user, but the overall mechanism is portable to any environment. First, you need a way to intercept requests to the RequestFactoryServlet to check the user is authenticated: this is the role of a servlet Filter (or you can extend RequestFactoryServlet and override the service() or doPost() method) Next, you have to communicate to the client that the user is not authenticated (important in case the session times out, for instance): it's up to you to choose your protocol, but a response.sendError(HttpServletResponse.SC_UNAUTHORIZED); will be enough. Finally, sending the info the client is one thing, but the client has to handle it: this is the role of the RequestTransport that you can pass to RequestFactory's initialize() method. Just inherit DefaultRequestTransport and wrap the RequestCallback from super.createRequestCallback to handle getStatusCode()==401 (or whatever protocol you chose above) and do whatever you want (dispatch an event on your application's EventBus, redirect to the login page, simply do a Window.alert() and let the user refresh the page after they backed up their data using copy/paste to the Windows Notebook, etc.) I'm sure I've already written all of this here (last month?), unfortunately I can't find 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.
Re: Database jdbc
Is Java. You must implement layers to connect with a database. Juan 2011/3/3 Mohammed Magdi acm.ma...@gmail.com hi i waht tow know how to connect database into GWT project 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. -- You received 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: Image element will hang test execution
I guess this thread is closed. I couldn't find the error though :| -- You received 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: SimpleBeanEditorDriver and MVP
The real kicker is you probably need to do a GWT.create on the driver, so from that standpoint it makes the most sense to put it into the view otherwise your presenter is doomed to GWTTestCase rather than to extending TestCase. -- You received 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.
Questions on Compiling GWT App for deployment
Hello, in GWT, we write code in Java, that GWT Compiler , compiles to JavaScript. - when deploying the application, do you think we need compiled Java class files in our final WAR ? or we just need the generated .js ? I look inside the war file generated, and I see my client-side Java classes in classes folder. this made me wonder, weren't these classes supposed to be compiled to JavaScript ? so why they ended up in WAR ? - is it possible to compile GWT App into a JAR instead of WAR ? - is maven gwt:compile capable of producing jar ? instead of war ? Thank You -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to secure RequestFactory in GWT 2.2
Hi Thomas, Thank you. I actually came to the same solution just a few minutes after posting my plea for help. Here's my code, for anyone else who'd like to benefit: http://stackoverflow.com/questions/4557286/how-to-handle-security-constraints-using-gwt-2-1s-requestfactory/5183802#5183802 It wasn't obvious to me because for some reason I thought the doPost()/doGet() in RequestFactoryServlet were marked final, as they are in RemoteServiceServlet. 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.
Re: GWT, Eclipse, and testing touch events
Well multitouch is a simplified way to have mouse clicks mouse drag. You can click programatically in GWT, so I don't see why not. Of course, it won't be anywhere near the experience that comes by using a real device, but for testing alone it works. -- You received 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.
RequestBuilder and StatusCode=0
Hello everyone, i've this problem using gwt (on 127.0.0.1:) and external java servlet (127.0.0.1:8080/TestServlet). I've tried to find solution on line but without succes. This is the matter: I use RequestBuilder to call external java servlet. It call the servlet and the servlet executes the operation but on the onResponseReceived on gwt I've an error because statuscode=0. I hope that someone could help me. Thx, Marco -- You received 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
KaffineComa, I just looked at your Stackoverflow solution. I understand it to some extent but i am new to web development, here is my doubt, According to the http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ , it is good to send the session information on the payload. So i am assuming the RequestContext will have the session information as a parameter. something like EntityProxy getEntityWithId(String id, User); In this case i am not sure how to get the User information from inside the MyRequestFactoryServlet. Am i talking sense? 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.
Re: organization of large gwt project: how to correctly break an app into GIN, Guice, GWT and Maven modules
we do the gwt:compile in the client module (which is with packaging=jar - do you know how gwt:compile can produce a JAR ? is it possible ? - GWTCompiler job is to compile Java to JavaScript, can JavaScript in a JAR be accessible from application's .html page ? -- You received 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: RequestBuilder and StatusCode=0
Could be the Same Origin Policy violation that has been discussed on this forum https://groups.google.com/d/msg/google-web-toolkit/bqADKUq2Eoo/tWeiF5Me3KUJ https://groups.google.com/forum/?fromgroups#!searchin/google-web-toolkit/RequestBuilder$20and$20StatusCode=0 -- You received 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
When you inherit from DefaultRequestTransport as Thomas says, you can overwrite the method protected void configureRequestBuilder(RequestBuilder builder) You can then set custom HTTP headers to transport additional information like the session id or some other auth token. So there is no need to add these extra information to every RequestContext 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.
Re: how to secure RequestFactory in GWT 2.2
Kathiravan, I believe that a large part of the discussion in that FAQ has to do with implementing remember me functionality, whereby you persist the session information (or some hash thereof) in a cookie. I'm not using that functionality, and so I'm simply relying on the session management provided by regular old servlets. I'm assuming you're asking how do I get the User object in the session (so RequestFactoryServlet can later find it) in the first place? The answer to that is that I have a login page that uses normal GWT RPC to validate the login (well, I'm using OpenID, which is quite a bit more complicated than that, but the upshot is the same): in the ServiceImpl for my GWT RPC, I do the following: User user = validateLoginCredentials(...) req.getSession().setAttribute(LOGGED_IN_USER, user); Then I can retrieve the User object from the HttpSession in MyRequestFactoryServlet. Does that make sense? -- You received 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
JN, I am summarizing below what i understood from the discussion 1. User logins to the Application - The session id is created on the server side and sent back to the client. 2. For every request from the client, the client sends the session id as part of the request. ( can't be cookies as per the loginsecurityFAQ ) 3. The overwritten RequestTransport sets the session id in the HTTP Header ( this is happening on the client side. Is this right?) 4. The overwitten RequestFactoryServlet gets this session id from the HTTP header and validates the user state using the session id ( this is happening on the server side ) 5. If the validation fails RequestFactoryServlet sends an Exception, which is again handled by the overwritten RequestTransport (the client handling part as per Thomas suggestion ) Is the above understanding correct. I confused with the Payload and HttpHeader, are they the same? 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.
is it possible to use Java 7 in GWT ?
Hello, is it possible to use Java 7 in GWT ? -- You received 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: Templating for deferred binding / code generation
My generators tend to be very heavily commented, and I try to keep blocks of printed code as small as possible in my code. I like to work up most of the boilerplate stuff in an existing abstract class or classes, and extend those when making my generated class. Small methods help too - your Element and the collection of elements can be probably named by the generator, or perhaps the whole method written as something in an abstract impl class. The folks at Rocket-GWT have some other ideas, though the project seems to have died (or at least fallen asleep). Their approach seems to include templating, but also better tools to programmaticly write code. Perhaps someone else can pick up their mantle, but at least check out their thoughts: http://code.google.com/p/rocket-gwt/wiki/Generator. -Colin -- You received 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
Ooops..we both were posting at the same time. I dont think I understand the PayLoad concept properly. Is setting information on the Session with setAttribute termed as PayLoad. If thats the case, your explanation makes total sense to me. can you also look at my response to JN's post. I may be asking the same thing again and again. Things are little over my head now :-( Kathiravan. -- You received 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: Templating for deferred binding / code generation
I've never tried that but am very interested in how it works out for you if you ever decide to go this route. Please keep us posted! :) -- You received 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.
Read file issue
Hi all, I have some difficulties to find out how to read a text file with gwt 2.2 ... The only thing i have found about it is anyone saying on a forum that it can be done using RequestBuilder, but his example doesnt want to compile, cant fin Method.GET ... new RequestBuilder(Method.GET, path/to/file.txt).sendRequest(, new RequestCallback() { @Override public void onResponseReceived(Request req, Response resp) { String text = resp.getText(); // do stuff with the text } @Override public void onError(Request res, Throwable throwable) { // handle errors } }); So, i have two case where i need to read a file : 1) The file is on server side and a client has to read content 2) The user selects a file on his local machine and the client has to read it It sounds a bit more complicated than in nomal Java :p Any advice ? Thanks for your attention, Regards, Harold -- You received 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: organization of large gwt project: how to correctly break an app into GIN, Guice, GWT and Maven modules
you mentioned using maven-assembly-plugin, to be used as a war overlay. what do you think of maven-dependency-plugin [1] in this situation ? given we have app client shared server webapp * what I'm thinking is: we gwt:compile the client, and copy the generated files into webapp , and then using maven-war-plugin in webapp to create a war. I would like to know what is the benefit of maven-assembly-plugin over maven-dependency plugin, and is my proposed solution * a hack? and not the correct way to build ? Thank You [1] http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.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.
stacking multiple panels in z-order?
Now that the Canvas widget is available, I'd like to be able to create a panel which holds a number of subWidgets in a specified z-order, and in which multiple widgets are visible simultaneously. For instance, an HTML widget with a transparent background, a Canvas with translucent highlights drawn under that HTML widget, and a transparent Canvas above the HTML widget to add a drawing layer. This is sort of like a DeckPanel, but without the animation and with the ability to show multiple widgets simultaneously. Anyone know of such a GWT widget? Bill -- You received 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.
WindowBuilder MVP bug
Hi, I've noticed that if I try to create a new project through the WindowBuilder project wizard, but also check Use MVP framework, I get errors about the web.xml file missing. I don't know who cares, but I had to tell someone. :) -Tim p.s. This is all with the most recent versions of everything -- You received 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.
Cells overlaping
Hi everybody, Someone knows if it's possible to overlap cells? The question could also be if a composed cell can be used as a component cell for another composed cell. The objective is to build a cell with some components (an image, info text, some button controls...). I have thought to do it just rendering an uiWidget in a cell but it seems not possible (is it?). So the alternative were to group the elements in rows, each row a would be a cell and the every component that need some specific functionality would be also a cell in a row cell. At the end we have a main cell with some row cells each one of them will have some other control cells. Any idea/opinion/alternaitve? Thanks folks, al -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT and native encoding
Hi all, I'm considering using GWT for a rewrite of an old (very large and quite complex) corporate application. One of our main requirements is to support native encodings (other than UTF-8) for data input by the users. I know, why wouldn't I use UTF-8, right? In short, this data is to be sent to/between banks and they require it a native encoding. I have to support the following character encodings: iso-8859-1, iso-8859-2, iso-8859-9, Shift_JIS, GB18030, windows-874, windows-1251, windows-1258, EUC-KR, Big5. The current solution is to simply encode the applications pages in the native encoding, and then any data sent up is encoded properly. All of the GWT tutorials/examples/etc seem to suggest that the GWT host page be encoded in UTF-8, but nothing specifically states that this is required. So, my question is - can I encode GWT pages in any encoding or must it be in UTF-8 ? -- You received 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: howto check HTML5 audio tag supported in a browser
Thank you for the quick answer. When I moved forward with pure GWT based approach I found that Audio object works on Chrome but not on Firefox (3.6.13). Am I doing something wrong or it is some limitations? Below the code. I made audio controls visible and actually see them on Chrome as well as hear the sound but the same code doesn't show any audio player on Firefox. I tested only in development mode. Here is the code com.google.gwt.media.client.Audio audio = com.google.gwt.media.client.Audio.createIfSupported(); if(audio != null) { com.google.gwt.dom.client.AudioElement audioEl = audio.getAudioElement(); audioEl.setAutoplay(true); audioEl.setSrc(fullURL); audioEl.setAutoplay(true); audioEl.setControls(true); audioEl.setLoop(false); audioEl.setVolume(1.0); RootPanel.get().add(audio); } else { //no HTML5 audio support } -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of Julien Dramaix Sent: Thursday, March 03, 2011 8:13 AM To: Google Web Toolkit Subject: Re: howto check HTML5 audio tag supported in a browser gwtmodernizr can help you to detect browser support for HTML5 and CSS3 features Check at : http://code.google.com/p/gwtmodernizr/ On Mar 3, 12:31 am, John LaBanca jlaba...@google.com wrote: GWT has an Audio widget for HTML5 audio support: com.google.gwt.media.client.Audio.isSupported() Thanks, John LaBanca jlaba...@google.com On Wed, Mar 2, 2011 at 6:29 PM, Armishev, Sergey sarmis...@idirect.netwrote: I am new to HTML5 and have this simple question: what is the best way to check that HTML5 audio tag is supported on the browser? In general I would like to be able to check for all/most of HTML5 tags. The only library I found is Modernizr fromhttp://diveintohtml5.org/detectbut it doesn't check for audio . Anybody knows and can recommend other libraries? Any GWT based libraries? -Sergey _ This electronic message and any files transmitted with it contains information from iDirect, which may be privileged, proprietary and/or confidential. It is intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please delete it and immediately notify the sender. _ -- You received 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.- 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. /PREBRspan style='font-size:8.0pt;font-family:Arial,sans-serif;color:#003366' _BR This electronic message and any files transmitted with it containsBR information from iDirect, which may be privileged, proprietaryBR and/or confidential. It is intended solely for the use of the individualBR or entity to whom they are addressed. If you are not the originalBR recipient or the person responsible for delivering the email to theBR intended recipient, be advised that you have received this emailBR in error, and that any use, dissemination, forwarding, printing, orBR copying of this email is strictly prohibited. If you received this emailBR in error, please delete it and immediately notify the sender.BR _ /SPANPRE -- You received 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: SimpleBeanEditorDriver and MVP
As Jeff said, I would put it in the view. You might want to look at the following Issue in how to structure your View interface to access your editor driver in the presenter. John http://code.google.com/p/google-web-toolkit/issues/detail?id=5727can=1q=editorsort=-idcolspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars -- You received 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: Templating for deferred binding / code generation
Thanks for your input. I will give velocity templates a try and will let you know what I found out. - Harald -- You received 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: Database jdbc
Server-side GWT is just plain old java. I'd suggest reading up on the JDBC documentation. http://download.oracle.com/javase/6/docs/technotes/guides/jdbc/ -Ben On Mar 3, 3:14 pm, Mohammed Magdi moh_ma...@acm.org wrote: yes in Java thanks magdi On Thu, Mar 3, 2011 at 6:06 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Is Java. You must implement layers to connect with a database. Juan 2011/3/3 Mohammed Magdi acm.ma...@gmail.com hi i waht tow know how to connect database into GWT project 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. -- You received 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. -- Eng Mohammed Magdi Mohammed Third Year - CS dept -- You received 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.
ui:style src attribute causes error in the Google Eclipse plugin
Hi! I'm using Maven to build my GWT project, together with the standard Maven directory layout. That is, sources are in src/main/java while resources (such as CSS files) are in src/main/resources. Now, in one of my .ui.xml file I have a ui:style tag that uses an src attribute to define some constants (such as lightPanelColor, below). Here it is: *src/main/java/com/gwtplatform/samples/tab/client/view/AdminAreaView.ui.xml: * ui:style src='../../defines.css' .panel { background-color: lightPanelColor; padding: 5px; } /ui:style * * *src/main/resources/com/gwtplatform/samples/tab/defines.css:* @def darkPanelColor #fcb072; @def lightPanelColor #fcd5b6; @def messageBoxColor #fad163; @def titleFontWeight bold; @def titleFontSize22px; @def titleColor #921b12; @def minAppWidth 700px; @def leftColWidth 200px; @def formLineSpacing 8px; This works very well when I gwt compile my project, but it causes an error in Eclipse on that line: ui:style src='../../defines.css' because defines.css cannot be found. It's not surprising as it's not in the same directory tree... The fix is simple: just move defines.css to the java directory tree, but it feels a bit dirty. I wondered if it would be possible to make the GEP maven-aware somehow? (Maybe this would even let me drop the .ui.xml in the resources folder?) Cheers, Philippe -- You received 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
Just do an instanceof HttpServletRequest check and then cast it. It should always be a HttpServletRequest because your GWT app talks to a HttpServlet. If the instanceof check fails, well then just deny the request and send back a http error. -- You received 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.
Using JSNI for login RPC call
Is it a good idea to use JSNI to call a LoginRPCImpl to login to a GWT applcation from a HTML page. http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideJavaScriptNativeInterface -- You received 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.
Eclipse run configurations excruciatingly slow with 2.2 plugin
Hi, I installed the plugin and 2.2 SDK. Now, open the Run Run Configurations dialog in Eclipse (Helios) takes maybe 30 seconds. Clicking a tab in it is maybe another 30 seconds. Editing the text boxes is painful. Any idea what's going on? 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.
Re: java.lang.NoClassDefFoundError: javax/validation/ValidationException
maybe you forgot to import gwt-servlet-deps.jar that contains the missing class .. On 1 Mar, 23:43, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Add jsr303 lib in your classpath Juan 2011/3/1 Artem Nikulchenko ar...@toidev.com Hi, I'm trying to use GWT application in GAE. I tried to use RequestFactory (framework introduced in GWT 2.1) to make client-server communication. But I'm constantly getting an error: java.lang.NoClassDefFoundError: javax/validation/ValidationException at com.google.gwt.requestfactory.server.ServiceLayer.create(ServiceLayer.java: 66) at com.google.gwt.requestfactory.server.RequestFactoryServlet.init(RequestFa ctoryServlet.java: 88) at com.google.gwt.requestfactory.server.RequestFactoryServlet.init(RequestFa ctoryServlet.java: 74) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) Does anybody know how to fix it? 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. -- You received 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.
Need an example of editable ListEditor
Hi folks, pls share an example of editable ListEditor... I have an issue with persisting edited items, really need something working to compare with. 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.
Re: Plugin 2.2 and eclipse build error
Edit to add... When I remove the gwt 2.2 line from my build path its all fine but that kind of defeats the purpose of trying to use 2.2 I guess. This is what is in my class path when it fails classpathentry kind=con path=com.google.gwt.eclipse.core.GWT_CONTAINER/GWT/ Also one other thing, when I try and compile gwt (and not a full project build) I get this error Loading inherited module 'com.google.gwt.user.User' Loading inherited module 'com.google.gwt.i18n.I18N' [ERROR] Element 'property-provider' beginning on line 75 contains unexpected attribute 'generator' [ERROR] Failure while parsing XML com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.util.xml.DefaultSchema.onUnexpectedAttribute(DefaultSchema.java: 72) at com.google.gwt.dev.util.xml.Schema.onUnexpectedAttribute(Schema.java: 80) at com.google.gwt.dev.util.xml.Schema.onUnexpectedAttribute(Schema.java: 80) at com.google.gwt.dev.util.xml.ReflectiveParser $Impl.startElement(ReflectiveParser.java:228) My gwt.xml file is as follows module rename-to=client inherits name=com.google.gwt.user.User / inherits name='com.google.gwt.user.theme.standard.StandardResources'/ inherits name=com.google.gwt.http.HTTP/ set-property name=user.agent value=ie8, ie6, safari, gecko1_8 / entry-point class=com.mmp.client.clientHandler / /module On Mar 3, 9:38 am, kyle kyle.e.fow...@gmail.com wrote: Hi everyone, After updating my google plugin to 2.2 and then setting my project to run with the GWT 2.2 sdk every time I run a build for my application I get a java heap space error during the analyzing sources portion of the build. This goes away if I uninstall the plugin and restart eclipse, my builds have no issues. Has anyone ever seen anything like this and could offer any suggestions? Its quite frustrating not being able to build my project and work on some of the newer parts of the 2.2 sdk. Thanks, Kyle -- You received 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.
Can't make @sprite working ...
Does someone have a hint I am going no where with that thing ... Here is the LoginPanel.ui.xml: ui:style type=my.client.LoginPanel.LoginStyle @sprite .logo { gwt-image: googleIcon; vertical-align: middle; } /ui:style g:Anchor ui:field=googleAnchor styleName={style.logo}Google/g:Anchor And the code in the associated LoginPanel.java: public interface LoginStyle extends CssResource { String logo(); } @UiField LoginStyle style; public interface Resources extends ClientBundle { @Source(images/Google32.png) ImageResource googleIcon(); } Resources res; But I got : Unable to find ImageResource method value(googleIcon) in my.client.LoginPanel_BinderImpl_GenBundle : Could not find no-arg method named googleIcon in type my.client.LoginPanel_BinderImpl_GenBundle -- You received 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 JSNI for login RPC call
I have tried doing like this. I have two websites. One javascript based and one GWT based. I would like to login to the GWT based application from the Javascript application. I thought i could use JSNI to export the login method from the GWT application and call it from the other javascript application. Both the websites are on https, so i am assuming there wont be any security issues. I have exported the login method of the GWT application as follows, public static native void exportLogin() /*-{ $wnd.login=@com.sample.login.client.LoginModule1::loadModule(); }-*/; How do i invoke this from the javascript application and bring up the GWT application. From the documentation i understand that the GWT module has to be loaded to get access to the exported method. So i dont know how exactly implement this. *is it even possible to do it this way? * -- You received 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 JSNI for login RPC call
I have tried doing like this. I have two websites. One javascript based and one GWT based. I would like to login to the GWT based application from the Javascript application. I thought i could use JSNI to export the login method from the GWT application and call it from the other javascript application. Both the websites are on https, so i am assuming there wont be any security issues. I have exported the login method of the GWT application as follows, public static native void exportLogin() /*-{ $wnd.login=@com.sequenom.assaydesigner.login.client.LoginModule1::loadModule(); }-*/; How do i invoke this from the javascript application and bring up the GWT application. From the documentation i understand that the GWT module has to be loaded to get access to the exported method. So i dont know how exactly implement this. *is it even possible to do it this? * -- You received 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: Can't make @sprite working ...
I think you may be hitting this bug: http://code.google.com/p/google-web-toolkit/issues/detail?id=5320 There is a workaround in there. -- You received 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.
Creating EntityProxy on server (outside requestFactory flow) and sending it to client
Hi, in a few cases i have a situation where i would like to create an instance of an EntityProxy (or ValueProxy) derived interface on the server without having it created implicitly as part of a request to the RequestFactory. This EntityProxy derived interface would than be encoded to JSON, using the regular format, and decoded on the client where it would go its marry way as a regular object. Any idea how to achieve this? My attempts with constructing the EntityProxy through the AutoBean factory have been unsuccessful. -- Michel -- You received 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: howto check HTML5 audio tag supported in a browser
You are probably trying to play an unsupported format :) Firefox 3.6 doesn't support mp3. You can use audioEl.canPlayType() to detect the available formats like so: [... snip ...] AudioElement audioEl = audio.getAudioElement(); audioEl.setAutoplay(true); if (!audioEl.canPlayType(audio/mpeg;).equals(audioEl.CANNOT_PLAY)) { audioEl.setSrc(smallmp3.mp3); } else if (!audioEl.canPlayType(audio/ogg; codecs=\vorbis \).equals(audioEl.CANNOT_PLAY)) { audioEl.setSrc(smallogg.ogg); } else { RootPanel.get().add(new Label(no available media types)); } audioEl.setControls(true); audioEl.setLoop(false); audioEl.setVolume(1.0); RootPanel.get().add(audio); } else { RootPanel.get().add(new Label(audio not supported)); } [... snip ...] Philip On Mar 3, 2:53 pm, Armishev, Sergey sarmis...@idirect.net wrote: Thank you for the quick answer. When I moved forward with pure GWT based approach I found that Audio object works on Chrome but not on Firefox (3.6.13). Am I doing something wrong or it is some limitations? Below the code. I made audio controls visible and actually see them on Chrome as well as hear the sound but the same code doesn't show any audio player on Firefox. I tested only in development mode. Here is the code com.google.gwt.media.client.Audio audio = com.google.gwt.media.client.Audio.createIfSupported(); if(audio != null) { com.google.gwt.dom.client.AudioElement audioEl = audio.getAudioElement(); audioEl.setAutoplay(true); audioEl.setSrc(fullURL); audioEl.setAutoplay(true); audioEl.setControls(true); audioEl.setLoop(false); audioEl.setVolume(1.0); RootPanel.get().add(audio); } else { //no HTML5 audio support } -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of Julien Dramaix Sent: Thursday, March 03, 2011 8:13 AM To: Google Web Toolkit Subject: Re: howto check HTML5 audio tag supported in a browser gwtmodernizr can help you to detect browser support for HTML5 and CSS3 features Check at :http://code.google.com/p/gwtmodernizr/ On Mar 3, 12:31 am, John LaBanca jlaba...@google.com wrote: GWT has an Audio widget for HTML5 audio support: com.google.gwt.media.client.Audio.isSupported() Thanks, John LaBanca jlaba...@google.com On Wed, Mar 2, 2011 at 6:29 PM, Armishev, Sergey sarmis...@idirect.netwrote: I am new to HTML5 and have this simple question: what is the best way to check that HTML5 audio tag is supported on the browser? In general I would like to be able to check for all/most of HTML5 tags. The only library I found is Modernizr fromhttp://diveintohtml5.org/detectbutit doesn't check for audio . Anybody knows and can recommend other libraries? Any GWT based libraries? -Sergey _ This electronic message and any files transmitted with it contains information from iDirect, which may be privileged, proprietary and/or confidential. It is intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please delete it and immediately notify the sender. _ -- You received 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.-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 athttp://groups.google.com/group/google-web-toolkit?hl=en. /PREBRspan style='font-size:8.0pt;font-family:Arial,sans-serif;color:#003366' _BR This electronic message and any files transmitted with it containsBR information from iDirect, which may be privileged, proprietaryBR and/or confidential. It is intended solely for the use of the individualBR or
Re: organization of large gwt project: how to correctly break an app into GIN, Guice, GWT and Maven modules
ok, I am on to something, I have a very fundamental question though. as you mentioned, we GWT Compile our client files, (the result of this cimpilation is bunch of md5.html files (could have css, image, 3rd party js), correct ?) then we need to TAKE these generated files and PUT it in our WebApp maven project, so that it can WAR package them. my question is about this TAKING and PUTTING we can use Assembly plugin to pack the files, but do we Directly Copy the files from Client Project into WebApp project folder (using some kind of maven plugin) or we install these files in form of a Jar/Zip in Local Repository so that WebApp can grab them from there. given (client and webapp are two distinct maven project with their own pom.xml), which of the solutions below is the correct way for resolving dependency, given the assumptions in previous posts (multi-module gwt project) 1- copy assembled zip file from client project directory, to webapp project directory 2- install assembled zip file from client project into local repository, so that webapp project can then grab it from local repository ? Thank You -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.2 Canvas support for IE6 (GWTCanvasImplIE6)
Just tried out gwt-graphics, very impressive. One downside is that the Path vector object only supports ints, and not doubles, so when I hooked it up to GChart, my charts looked a little wobbly. On Mar 3, 5:17 pm, Jan Mostert j...@mycee.com wrote: GWT-graphics supports IE6 via VML and renders everything else via Vector Supported browsers The library has been tested to work with the following browsers: - Internet Explorer 6 and newer - Firefox 3.0 and newer - Safari 3.2 and newer - Opera 9.6 and newer - Google Chrome http://code.google.com/p/gwt-graphics/ -- Jan Vladimir Mostert BEngSci MyCee Technologies On Thu, Mar 3, 2011 at 1:58 AM, Craig Mitchell craig...@gmail.com wrote: +1. Partial support would be great as there are a lot of IE 6/7/8 users out there. http://www.w3schools.com/browsers/browsers_explorer.asp On Mar 3, 1:22 am, Kurtt Lin kurtt@gmail.com wrote: Even partially supporting is welcomed, and developers should have known about its IE6's poor performance, thus avoid rendering lots elements. Actually i want Canvas in IE 6/7/8 badly. T T On Wed, Mar 2, 2011 at 9:55 PM, Philip Rogers p...@google.com wrote: Because of the difficulty of supporting IE6 fully via VML (including text, etc.) and still having reasonable performance, there aren't plans to support it at this time. The new Canvas implementation in GWT should have complete support across FF3.5, Chrome, Safari, and IE9, but there isn't a fallback provided for the older browsers. On Mar 1, 10:31 pm, Craig Mitchell craig...@gmail.com wrote: Hi, Are there any plans for Canvas to support IE6? It was supported via GWTCanvasImplIE6 in the gwt-incubator.jar which would implement the Canvas functionality via VML. 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. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.2 Canvas support for IE6 (GWTCanvasImplIE6)
Also noticed some differences between browsers. One example is looking at the donut chart here http://hene.virtuallypreinstalled.com/Charts in IE, looks great, however, in Chrome, the shading is off (and the animations don't work on the bar chart). But, hey, it's better then the standard GWT canvas! :-) Having said all that, I think I'll be using the GWTCanvas in the gwt- incubator.jar. On Mar 4, 4:05 pm, Craig Mitchell craig...@gmail.com wrote: Just tried out gwt-graphics, very impressive. One downside is that the Path vector object only supports ints, and not doubles, so when I hooked it up to GChart, my charts looked a little wobbly. On Mar 3, 5:17 pm, Jan Mostert j...@mycee.com wrote: GWT-graphics supports IE6 via VML and renders everything else via Vector Supported browsers The library has been tested to work with the following browsers: - Internet Explorer 6 and newer - Firefox 3.0 and newer - Safari 3.2 and newer - Opera 9.6 and newer - Google Chrome http://code.google.com/p/gwt-graphics/ -- Jan Vladimir Mostert BEngSci MyCee Technologies On Thu, Mar 3, 2011 at 1:58 AM, Craig Mitchell craig...@gmail.com wrote: +1. Partial support would be great as there are a lot of IE 6/7/8 users out there. http://www.w3schools.com/browsers/browsers_explorer.asp On Mar 3, 1:22 am, Kurtt Lin kurtt@gmail.com wrote: Even partially supporting is welcomed, and developers should have known about its IE6's poor performance, thus avoid rendering lots elements. Actually i want Canvas in IE 6/7/8 badly. T T On Wed, Mar 2, 2011 at 9:55 PM, Philip Rogers p...@google.com wrote: Because of the difficulty of supporting IE6 fully via VML (including text, etc.) and still having reasonable performance, there aren't plans to support it at this time. The new Canvas implementation in GWT should have complete support across FF3.5, Chrome, Safari, and IE9, but there isn't a fallback provided for the older browsers. On Mar 1, 10:31 pm, Craig Mitchell craig...@gmail.com wrote: Hi, Are there any plans for Canvas to support IE6? It was supported via GWTCanvasImplIE6 in the gwt-incubator.jar which would implement the Canvas functionality via VML. 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. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT module 'stockwatcher' may need to be (re)compiled
I am getting GWT module 'stockwatcher' may need to be (re)compiled after I am deploying a GWT application StockWatcher on Tomcat after doing the following steps: 1) Perform a clean on the project making sure the “Start a build automatically ” checkbox is NOT checked. 2) Right click on the project and select Google, followed by GWT Compile. 3) Select the src folder in my project and right click and select Export. Select “JAR file” from the next window Make sure, only the “src”-folder in my project is checked in the next window. Select the export destination like this: folder of my project/war/WEB-INF/lib/projectname.jar – then click “Finish”. I do get a message that the jar file has been created with compiler warnings. 4) I execute an Ant script warbuilder .xml to create .war file which I deploy to the Tomcat webapps folder. Ant script project name=projectname basedir=. default=default target name=default depends=buildwar,deploy/target target name=buildwar war basedir=war destfile=projectname.war webxml=war/WEB-INF/ web.xml exclude name=WEB-INF/** / webinf dir=war/WEB-INF/ include name=**/*.jar / /webinf /war /target target name=deploy copy file=projectname.war todir=. / /target /project 5) When I go to the website http://localhost:8080/StockWatcher, I can see only part of the website and I get the above message before even that is shown. Why am I getting the error even though I am compiling everything correctly? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 w/ selectionModel and ActionCells
this sounds great, John! i'll give it a try. Thanks! On Mar 2, 8:00 am, John LaBanca jlaba...@google.com wrote: r9788 adds a new BlacklistEventTranslator and WhitelistEventTranslator for use in DefaultSelectionEventManager. Using these, you can disable/enable selection for specific columns.http://code.google.com/p/google-web-toolkit/source/detail?r=9788 DefaultSelectionEventManager manager = DefaultSelectionEventManager.createBlacklistManager(0, 3); // Ignore clicks on columns 0 and 3 SelectionModel model = new SingleSelectionModel(); cellTable.setSelectionModel(model, manager); Hope this helps with this issue. You can wait for GWT 2.3, or just copy the BlacklistEventTranslator code into your app and call DefaultSelectionEventManager.createCustomManager(myBlacklistEventTranslator). Thanks, John LaBanca jlaba...@google.com On Tue, Feb 22, 2011 at 12:09 PM, John LaBanca jlaba...@google.com wrote: You can try overriding ActionCell#handlesSelection() to return true to disable the default selection. We might need to do so for all interactive cells and change the JavaDoc of Cell#handlesSelection() to clarify that it can be used to simply disable default selection. But in general, this is what handlesSelection() was designed to do. Thanks, John LaBanca jlaba...@google.com On Tue, Feb 22, 2011 at 8:44 AM, Thomas Visser thomas.vis...@gmail.comwrote: ActionCell already returns false for handlesSelection(). If a cell declares to handle the selection, the default way of (de)selecting, by clicking in the row, does not work anymore. Then it is the value- updater's task to do so. I recently wrote something about it in a blog post. See for more information: http://thoughtsofthree.com/2011/02/creating-a-gwt-radiobuttoncell/ (paragraph Depending on and handling the selection) On Feb 22, 5:30 am, Patrick Tucker tucker...@gmail.com wrote: I haven't played with this a whole bunch but have you looked at handlesSelection? I was under the impression that by setting this to false you indicate that a particular cell type is not allowed to determine selection state? Like if you have a checkboxcell it can be the only cell that determines whether or not the row is selected. On Feb 11, 2:09 pm, Henry H. djhenr...@gmail.com wrote: yeah, i had the feeling i have to ditch the selectionModel. thanks for your help... On Feb 11, 6:28 am, Thomas Visser thomas.vis...@gmail.com wrote: This is not possible. In your case, the click event is always also given to the SelectionModel. See line 971 in CellTable (http://www.google.com/codesearch/p? hl=en#A1edwVHBClQ/user/src/com/google/gwt/user/cellview/client/ CellTable.javaq=CellTable%20package:http://google-web-toolkit %5C.googlecode%5C.comsa=Ncd=1ct=rc): if (selectionModel != null click.equals(eventType) ! handlesSelection) { selectionModel.setSelected(value, true); } As you can see, if you could make the handlesSelection boolean true, the selectionModel will not be updated. This boolean is true if one (or more) cell(s) declare(s) to handle the selection. ActionCell does not do that. What you can do is create your own cell, make it handle the selection, and use it for all the columns that you want to be clickable. On Feb 11, 1:42 am, Henry H. djhenr...@gmail.com wrote: hi, i have a celltable with a selectionModel but also a column of actioncells. the selectionModel and actioncells both handle click events, but when i click the action cell, it also triggers the selectionmodel click handler. is it possible to prevent this? Or do i have to nix the selectionModel and go with clickable cells on the row? 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. -- You received 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.
RequestFactory JDO One to Many bidirectional managed relationships
We were using RPC to persist our data and we want to shift to RequestFactory!!! We managed to make One to One and One to Many Unidirectional managed relationships work with JDO. We try for 2 weeks and the bidirectional is not working!!! We persist then we use AppWrench and we see that the data are saved but when we retrieve with our code (getObjectById ...) the related child objects return null. Can someboby please provide a small functional SAMPLE of JDO 1:M bidirectional relationship. Unfortunately Google is not providing working samples for major areas that is releasing in GWT or AppEngine!!! I pretty sure that this is killing Appengine and GWT adoption from the developer community. The DynatableRF sample app that Google suggests covers only a small subset of relationships and has a lot of irrelevant code plus we do not believe that this is the proper way to do it (copying and storing objects all the time ...). At least for the unidirectional we managed to do it in a much simpler and straightforward way. Any help would be much appreciated from us and we believe from a lot of others. Thank you for your 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.
Re: Best practice for to maintain Big project
What I meant was when the project is compiled and you are project is ready. But during maintenance, for a small changes the whole code has to be recompiled again instead for a particular change. Is there a way to recompiled again during production. On Mar 3, 7:01 pm, Jeff Schwartz jefftschwa...@gmail.com wrote: 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 implement custom find methods in GWT+roo scaffolding app
http://forum.springsource.org/showthread.php?t=104652 On 2 мар, 15:26, Zed zed...@gmail.com wrote: As far as I see no one is going to answer me. I foundhttps://jira.springsource.org/browse/ROO-1595and if I got them right there is NO custom finder methods available at this time (it's still openned). Without them I can't use generated Request object and possibly all over stuff. If you don't want to explain just say am I right or not. If I can't use custom finder methods I just leave roo and do everything by hands. On 1 мар, 12:50, Zed zed...@gmail.com wrote: At the moment I moved forward. In ROO-931 its says us At the moment the gwt setup command generates request objects for all finder methods (from herehttps://jira.springsource.org/browse/ROO-931?page=com.atlassian.jira). I added 'finder' using Roo shell command: finder add findEmployeesByDepartmentEquals After that Roo generated me an Aspect: privileged aspect Employee_Roo_Finder { public static Query Employee.findEmployeesByDepartmentEquals(String department) { if (department == null || department.length() == 0) throw new IllegalArgumentException(The department argument is required); EntityManager em = Employee.entityManager(); Query q = em.createQuery(SELECT Employee FROM Employee AS employee WHERE employee.department = :department); q.setParameter(department, department); return q; } and added anotation to Employee.java: @RooEntity(finders = {findEmployeesByDepartmentEquals}) but no request objects generated. My EmployeeRequest.java (generated and maintained by Roo) looks as follows (I can't see finder methods there): @RooGwtMirroredFrom(org.springsource.roo.extrackgae.server.domain.Employee ) @ServiceName(org.springsource.roo.extrackgae.server.domain.Employee) public interface EmployeeRequest extends RequestContext { abstract Requestjava.lang.Long countEmployees(); abstract Requestjava.util.Listorg.springsource.roo.extrackgae.client.managed.reque st.EmployeeProxy findAllEmployees(); abstract Requestjava.util.Listorg.springsource.roo.extrackgae.client.managed.reque st.EmployeeProxy findEmployeeEntries(int firstResult, int maxResults); abstract Requestorg.springsource.roo.extrackgae.client.managed.request.EmployeeProx y findEmployee(Long id); abstract InstanceRequestorg.springsource.roo.extrackgae.client.managed.request.Empl oyeeProxy, java.lang.Void remove(); abstract InstanceRequestorg.springsource.roo.extrackgae.client.managed.request.Empl oyeeProxy, java.lang.Void persist(); } Tell me please where I'm wrong? How to make finder methods works? On 25 фев, 17:00, Zed zed...@gmail.com wrote: Hellow everyone, I started to deal with GWT+roo scaffolding ap and found the idea very cool. Thank you guys! But I found it hard for me to understanf how to implement custom find methods like for example - findAllEmployeesByName. I looked all the documentations and it's written there that I can add this method to Entity object itself like this: @RooJavaBean @RooToString @RooEntity public class Employee { . @NotNull private String displayName; @SuppressWarnings(unchecked) public static ListEmployee findAllEmployeesByName(String name){ return entityManager().createQuery(select ... from Employee o).getResultList(); }} I added it but nothing happend. No code generation started. I see all finder methods are in Aspects which are generated by Roo itself and I can't put my code there. Can you guys give me some hint please. With respect Andrew Efremov -- You received 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.
Is the Issue 5320 resolved ?
-- You received 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.
DateBox can't be used with ValueBoxEditorDecorator
Trying to use DateBox with ValueBoxEditorDecorator in uiBinder thinking I could take advantage of the error reporting. But unfortunately they can't be used together and at runtime it gives the following error when I bring up the form: [ERROR] [sandbox] - Line 50: The method setValueBox(ValueBoxBase) in the type ValueBoxEditorDecorator is not applicable for the arguments (DateBox) I searched on the GWT issue tracker and here in this forum, doesn't look like anyone reported it. Please stop me if the GWT team think I shouldn't open an issue there thru the issue tracker. Thanks, Joseph -- You received 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 2.2 Canvas support for IE6 (GWTCanvasImplIE6)
gwt-graphics is very simple to use and very good. But one more down side, there is now no new development in the project and support seems to have been withdrawn. I have reported Issue related to IE behavior six month back, but it has not been looked into.Same thing with other issues that are reported in this project. regards, Nagin Kothari On Fri, Mar 4, 2011 at 10:35 AM, Craig Mitchell craig...@gmail.com wrote: Just tried out gwt-graphics, very impressive. One downside is that the Path vector object only supports ints, and not doubles, so when I hooked it up to GChart, my charts looked a little wobbly. On Mar 3, 5:17 pm, Jan Mostert j...@mycee.com wrote: GWT-graphics supports IE6 via VML and renders everything else via Vector Supported browsers The library has been tested to work with the following browsers: - Internet Explorer 6 and newer - Firefox 3.0 and newer - Safari 3.2 and newer - Opera 9.6 and newer - Google Chrome http://code.google.com/p/gwt-graphics/ -- Jan Vladimir Mostert BEngSci MyCee Technologies On Thu, Mar 3, 2011 at 1:58 AM, Craig Mitchell craig...@gmail.com wrote: +1. Partial support would be great as there are a lot of IE 6/7/8 users out there. http://www.w3schools.com/browsers/browsers_explorer.asp On Mar 3, 1:22 am, Kurtt Lin kurtt@gmail.com wrote: Even partially supporting is welcomed, and developers should have known about its IE6's poor performance, thus avoid rendering lots elements. Actually i want Canvas in IE 6/7/8 badly. T T On Wed, Mar 2, 2011 at 9:55 PM, Philip Rogers p...@google.com wrote: Because of the difficulty of supporting IE6 fully via VML (including text, etc.) and still having reasonable performance, there aren't plans to support it at this time. The new Canvas implementation in GWT should have complete support across FF3.5, Chrome, Safari, and IE9, but there isn't a fallback provided for the older browsers. On Mar 1, 10:31 pm, Craig Mitchell craig...@gmail.com wrote: Hi, Are there any plans for Canvas to support IE6? It was supported via GWTCanvasImplIE6 in the gwt-incubator.jar which would implement the Canvas functionality via VML. 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. -- You received 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. -- You received 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 set URL of application
Hi, I have application which runs on private network. It has URL http://hostname:8080/application. I need access for this application from outside. So I expose this application out on URL http:outsideAddress/application. But when I try to access on this addess, application redirects to internal address and application doesn't run. Is there any possibility how to set URL for application? Does any solution exist for this problem? 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.
Is it good to have Anonymous class for service implementation
Hi How efficient will it be to have Anonymous class for every service implementation. Service here I meant RPC service. -- You received 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 set URL of application
Hi, I have application which runs on private network. It has URL http://hostname:8080/application. I need access for this application from outside. So I expose this application out on URL http:outsideAddress/application. But when I try to access on this addess, application redirects to internal address and application doesn't run. Is there any possibility how to set URL for application? Does any solution exist for this problem? 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.
[gwt-contrib] Formatting changes with updated Eclipse GWT Format settings for issue 1373803 (issue1371806)
Reviewers: scottb, Description: Formatting changes with updated Eclipse GWT Format settings for issue 1373803 (see http://gwt-code-reviews.appspot.com) Please review this at http://gwt-code-reviews.appspot.com/1371806/ Affected files: M dev/core/src/com/google/gwt/dev/javac/typemodel/TypeOracle.java M dev/core/test/com/google/gwt/dev/javac/TypeOracleMediatorTestBase.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Formatting changes with updated Eclipse GWT Format settings for issue 1373803 (issue1371806)
Simply ran autoformatter on these 2 files. Diffs are due to changes to gwt-format.xml for Eclipse's autoformatter to 100 chars. http://gwt-code-reviews.appspot.com/1371806/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] A fix for issue 5998
I uploaded a patch to rietveld for issue 5998 but until now I did not see it appear in the GWT-Contributors newsgroup ... Is that normal ? What did I do wrong ? Anyway, here is a copy of the message in question. If anybody wants to review this and hopefully commit it then I would be a happy man. I need this fix for a project that I am working on (involving using SafeHtml to bulk render my gui based on XML/Schemas). It really flies, but without this patch I can not wrap the Image widgets correctly. Reviewers: jlabanca, rjrjr, Description: See: http://code.google.com/p/google-web-toolkit/issues/detail?id=5998 This http://code.google.com/p/google-web-toolkit/issues/detail?id=5998Thisis my first patch, so sorry if I did something wrong. I added a unittest on Image that checks if a subclass can now implement a wrap method. Please review this at http://gwt-code-reviews.appspot.com/1370804/ Affected http://gwt-code-reviews.appspot.com/1370804/Affected files: user/src/com/google/gwt/user/client/ui/Image.java user/test/com/google/gwt/user/client/ui/ImageTest.java Index: user/test/com/google/gwt/user/client/ui/ImageTest.java === --- user/test/com/google/gwt/user/client/ui/ImageTest.java (revision 9789) +++ user/test/com/google/gwt/user/client/ui/ImageTest.java (working copy) @@ -18,6 +18,7 @@ import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.DivElement; import com.google.gwt.dom.client.Document; +import com.google.gwt.dom.client.Element; import com.google.gwt.event.dom.client.ErrorEvent; import com.google.gwt.event.dom.client.ErrorHandler; import com.google.gwt.event.dom.client.LoadEvent; @@ -50,6 +51,25 @@ } } + private static class TestImage extends Image { +public TestImage( Element element ) { + super(element); +} + +public static TestImage wrap( Element element ) { + // Assert that the element is attached. + assert Document.get().getBody().isOrHasChild(element); + + TestImage image = new TestImage(element); + + // Mark it attached and remember it for cleanup. + image.onAttach(); + RootPanel.detachOnWindowClose(image); + + return image; +} + } + private abstract static class TestLoadHandler implements LoadHandler { private boolean finished = false; @@ -581,7 +601,21 @@ assertEquals(16, image.getHeight()); assertEquals(clipped, getCurrentImageStateName(image)); } + + /** + * Tests that it is possible to make a subclass of Image that can be wrapped. + */ + public void testWrapOfSubclass() { +String uid = Document.get().createUniqueId(); +DivElement div = Document.get().createDivElement(); +div.setInnerHTML(img id=' + uid + ' src='counting-forward.png'); +Document.get().getBody().appendChild(div); +final TestImage image = TestImage.wrap(Document.get().getElementById(uid)); + +assertNotNull(image); + } + private void assertResourceWorked(Image image, ImageResource prettyPiccy) { assertEquals(prettyPiccy.getURL(), image.getUrl()); assertEquals(prettyPiccy.getTop(), image.getOriginTop()); Index: user/src/com/google/gwt/user/client/ui/Image.java === --- user/src/com/google/gwt/user/client/ui/Image.java (revision 9789) +++ user/src/com/google/gwt/user/client/ui/Image.java (working copy) @@ -409,8 +409,6 @@ assert Document.get().getBody().isOrHasChild(element); Image image = new Image(element); -image.changeState(new UnclippedState(element)); - // Mark it attached and remember it for cleanup. image.onAttach(); RootPanel.detachOnWindowClose(image); @@ -481,6 +479,7 @@ protected Image(Element element) { ImageElement.as(element); setElement(element); +changeState(new UnclippedState(element)); } public HandlerRegistration addClickHandler(ClickHandler handler) { -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adds unit tests for extending JavaScriptObject. Tests a loosening of the (issue1369805)
After sleeping on the static rogue setter, I don't like it much either and came up with some alternatives: 1) Would it be more palatable to turn setJavaScriptObjectClass() it into an instance method? That way, we wouldn't have to reset the static variable each time in tearDown and the override would last for only one instance of a TypeOracle. That is the simplest thing I can think of. 2) We could make the setter just add to a static list of alternative class names to be treated like JavaScriptObject. That would incur a slight run-time penalty in computeSingleJsoImplData() to check against a list of strings instead of just a single one. But then we wouldn't have to worry about resetting the name. 3) Do you think it would be feasable to taking com.google.gwt...mediatortest.JavaScriptObject.class object's bytecode and re-write the package using ASM? 4) You suggested squirreling away a copy of com/google/gwt/core/client/JavaScriptObject.class somewhere on the classpath for the gwt-dev project and using it as the source for the bytecode. This would require some minor refactoring of CheckedJavaResource and subclasses in TypeOracleMediatorTest. To me, this is kind of obscure black magic (comparted to how the rest of the tests are implemented.) On Wed, Mar 2, 2011 at 10:02 PM, Scott Blum sco...@google.com wrote: On Wed, Mar 2, 2011 at 7:21 PM, Eric Ayers zun...@google.com wrote: @Scott: I was not planning to revert the diff cheese. This uses the recently updated official gwt-format.xml autoformatting for Eclipse. I've already volunteered to go through and run the autoformatter to bring existing source up to date. Right, I'm just making the point that it would be great if you could land that first, so that when you submit this change, it won't mix the formatting semantic changes into one CL. Per our face to face, it'd also be good if you could leave a TODO in TypeOracle to remove the rogue setter once TypeOracleMediatorFromByteCodeTest is gone. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Phase 1 of I18n Rewrite - support extended plurals/etc for export to property/etc files (issue1355802)
http://gwt-code-reviews.appspot.com/1355802/diff/10001/user/src/com/google/gwt/i18n/client/impl/plurals/DefaultRule.java File user/src/com/google/gwt/i18n/client/impl/plurals/DefaultRule.java (right): http://gwt-code-reviews.appspot.com/1355802/diff/10001/user/src/com/google/gwt/i18n/client/impl/plurals/DefaultRule.java#newcode1 user/src/com/google/gwt/i18n/client/impl/plurals/DefaultRule.java:1: /* I'll revert. http://gwt-code-reviews.appspot.com/1355802/diff/10001/user/src/com/google/gwt/i18n/rebind/AbstractResource.java File user/src/com/google/gwt/i18n/rebind/AbstractResource.java (right): http://gwt-code-reviews.appspot.com/1355802/diff/10001/user/src/com/google/gwt/i18n/rebind/AbstractResource.java#newcode1 user/src/com/google/gwt/i18n/rebind/AbstractResource.java:1: /* On 2011/03/03 01:07:39, rjrjr wrote: no real change Done. http://gwt-code-reviews.appspot.com/1355802/diff/10001/user/src/com/google/gwt/i18n/rebind/format/MessageCatalogFactory.java File user/src/com/google/gwt/i18n/rebind/format/MessageCatalogFactory.java (right): http://gwt-code-reviews.appspot.com/1355802/diff/10001/user/src/com/google/gwt/i18n/rebind/format/MessageCatalogFactory.java#newcode44 user/src/com/google/gwt/i18n/rebind/format/MessageCatalogFactory.java:44: interface MessageCatalogContext { On 2011/03/03 01:07:39, rjrjr wrote: Since this is nested, how about just calling it Context? I think the normal case for someone using it this is just to use auto-import in their IDE, so the source is likely to jus t have Context, which seems likely to conflict with other uses and less understandable. If you still would prefer shortening the name, I am happy to do it. http://gwt-code-reviews.appspot.com/1355802/diff/10001/user/src/com/google/gwt/i18n/rebind/format/PropertyCatalogFactory.java File user/src/com/google/gwt/i18n/rebind/format/PropertyCatalogFactory.java (right): http://gwt-code-reviews.appspot.com/1355802/diff/10001/user/src/com/google/gwt/i18n/rebind/format/PropertyCatalogFactory.java#newcode219 user/src/com/google/gwt/i18n/rebind/format/PropertyCatalogFactory.java:219: String fileName) throws MessageProcessingException { On 2011/03/03 01:07:39, rjrjr wrote: not thrown Done. http://gwt-code-reviews.appspot.com/1355802/diff/10001/user/src/com/google/gwt/i18n/server/MessageFormVisitor.java File user/src/com/google/gwt/i18n/server/MessageFormVisitor.java (right): http://gwt-code-reviews.appspot.com/1355802/diff/10001/user/src/com/google/gwt/i18n/server/MessageFormVisitor.java#newcode54 user/src/com/google/gwt/i18n/server/MessageFormVisitor.java:54: * /ul Yes, just failed to delete it when I added it there. http://gwt-code-reviews.appspot.com/1355802/diff/10001/user/src/com/google/gwt/i18n/server/MessageFormVisitor.java#newcode63 user/src/com/google/gwt/i18n/server/MessageFormVisitor.java:63: * {@link #processDefaultMessage(MessageStyle, String)}. On 2011/03/03 01:07:39, rjrjr wrote: You're talking about the default message, but it's not used in this interface at all. Done. http://gwt-code-reviews.appspot.com/1355802/diff/10001/user/src/com/google/gwt/i18n/server/MessageInterfaceVisitor.java File user/src/com/google/gwt/i18n/server/MessageInterfaceVisitor.java (right): http://gwt-code-reviews.appspot.com/1355802/diff/10001/user/src/com/google/gwt/i18n/server/MessageInterfaceVisitor.java#newcode27 user/src/com/google/gwt/i18n/server/MessageInterfaceVisitor.java:27: * {@code mv = miv.visitMessage(msg, msgTrans);} On 2011/03/03 01:07:39, rjrjr wrote: {@code} is redundant with pre If you show the types of these visitors (declare them), it would be easier to see what the types are. e.g. {@link MessageVisitor} mv = miv.visitMessage(msg, msgTrans); Done. http://gwt-code-reviews.appspot.com/1355802/diff/10001/user/src/com/google/gwt/i18n/server/MessageInterfaceVisitor.java#newcode62 user/src/com/google/gwt/i18n/server/MessageInterfaceVisitor.java:62: * {@code miv.endClass(msgIntf);} On 2011/03/03 01:07:39, rjrjr wrote: Don't forget to close that pre section Done. I still think the MessageInterfaceVisitor adds noise, not value. Look at this from AbstractLocalizableImplCreator.generateToMsgCatFactory(), which uses MessageCatalogWriter, which has the only implementation of this interface. catWriter = msgCatFactory.getWriter(ctx, catalogName); msgIntf.accept(catWriter.visitClass()); As a client of the writer I have to know about visitors and the accept method, where those could easily be implementation details. It's not as easy to understand as: catWriter = msgCatFactory.getWriter(ctx, catalogName); catWriter.write(msgIntf); That removes the ability to visit multiple classes with the same visitor (admittedly not used at present). How about retaining the existing API, but providing this as a convenience method? Where the write method would be implemented something like: void write(MessageInterface msgIntf) { writer.println(# Messages
[gwt-contrib] Re: Decentralize JClassLiterals. (issue1375801)
I looked through the patch and don't see any issues with the refactoring, but is there another place I can go to read a bit more about ClassLiteralHolder fields? http://gwt-code-reviews.appspot.com/1375801/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java File dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java (right): http://gwt-code-reviews.appspot.com/1375801/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java#newcode236 dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java:236: private JField resolveClassLiteralField(JClassLiteral classLiteral) { Tracing back this method to JProgramgetLiteralClass(), it looks like most of this code was just transplanted from JClassLiteral and JProgram, so this isn't really a comment about your change. I'm struggling to convert this into what is being done at a high level to the AST. Could you add a comment with a brief template of what the Java representation of this new addition would look like? I see what currently winds up in compiled code in pretty mode is: var _3Ljava_lang_String_2_classLit = new Class_0 but that is after several passes of normalization. The field is turned into a static, and I haven't found any class literal constructors with arguments in the samples I've compiled. http://gwt-code-reviews.appspot.com/1375801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Decentralize JClassLiterals. (issue1375801)
The doc's a bit scant http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/ClassLiteralHolder.java But there's actually not much more to it than that. Class literals are implemented as references to static fields... those fields have to live somewhere in the AST, and ClassLiteralHolder is where we stick them. At one point I thought about trying to put each class literal into the class it represented, but then we'd still need somewhere to stick array types and primitive types. http://gwt-code-reviews.appspot.com/1375801/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java File dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java (right): http://gwt-code-reviews.appspot.com/1375801/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java#newcode236 dev/core/src/com/google/gwt/dev/jjs/impl/ImplementClassLiteralsAsFields.java:236: private JField resolveClassLiteralField(JClassLiteral classLiteral) { Yes, let me go back and add comments and generated code examples at various spots. Will re-ping when I've done so. If you do a draft compile, you should get more useful output. In my tests, I threw in an Object.getClass().toString() call to force at least some of the fields to be setup. Essentially, these are all calls to the static factory methods in our emulation of java.lang.Class. http://gwt-code-reviews.appspot.com/1375801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Reformatting pass with updated gwt-format.xml Eclipse formatter before persistent unit cache patch (issue1368802)
http://gwt-code-reviews.appspot.com/1368802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Reformatting pass with updated gwt-format.xml Eclipse formatter before persistent unit cache patch (issue1368802)
The diff is bigger now because the max line length is changed to 100 chars, but the wrapping of method invocations doesn't change as much. http://gwt-code-reviews.appspot.com/1368802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding a constructor overload to CellTable that takes a loading indicator widget. For legacy sup... (issue1371805)
I replaced the 11k loading indicator with a 404 byte one. It reduces code size by about 14k. http://gwt-code-reviews.appspot.com/1371805/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9796 committed - Adding David Nouls to CLA-SIGNERS. CLA signed online.
Revision: 9796 Author: jlaba...@google.com Date: Thu Mar 3 09:08:08 2011 Log: Adding David Nouls to CLA-SIGNERS. CLA signed online. http://code.google.com/p/google-web-toolkit/source/detail?r=9796 Modified: /CLA-SIGNERS === --- /CLA-SIGNERSTue Mar 1 08:29:47 2011 +++ /CLA-SIGNERSThu Mar 3 09:08:08 2011 @@ -5,6 +5,7 @@ alex.tkachman (Alexander Tkachman) btay...@rackspace.com (Bryan Taylor) dannydaemo...@gmail.com (Daniel Valenzuela) +david.no...@gmail.com (David Nouls) fredsa (Fred Sauer) gfo...@gmail.com (Fotos Georgiadis) h...@bouwkamp.com (Hilbrand Bouwkamp) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding a constructor overload to CellTable that takes a loading indicator widget. For legacy sup... (issue1371805)
http://gwt-code-reviews.appspot.com/1371805/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors