Re: is ZK better than GWT..?
ZK annonces that their approach is a server side centric. Conceptually speaking GWT and ZK are really two different approaches. Main argument for using ZK WAS they have a declarative approach to build the UI. This gap is now obsolote since GWT has the UIBinder. To my point of view the main advantages using GWT are : - its capabality to deal with several browser specific behavior (and more over to let the user add browser specific behavior via deferred binding). - its client side approach : your server can support load more easily - its more natural for Programmers who came from Swing/AWT/SWT/GTK... On the contrary the learning curve is may be stronger On Aug 1, 10:08 am, Sebastian Rothbucher sebastian.rothbuc...@clarities.de wrote: HI akhil, ZK does not have a 2nd compilation step into JS (and can thus use all of Java on both sides). However, you have ongoing client-server communication (speed!), you don't have the optimizations google offers for your and from what I remember from using ZK, the framework is by far not as straightforward: with GWT, you add a widget to a root panel and just program the UI; with ZK, you have binding declarations, event / update issues, ... At least I (but it may be me) had much more trouble and many more problems to solve before the ZK logic was in place (e.g. augment table contents). Finally, you re-use the best practices long established in traditional UI programming and this is where RIA also aims for when using GWT. So for a quick and optimized entry into the subject of RIA - and also for quickly implementing larger stuff with a stable framework, I'd use GWT. I've been using it for a while now and it turned out to be a very solid ground. (Maybe ZK would have done the same when I'd have followed it further - all starting issues can surely be solved there as well; however, I've never regretted choosing GWT). Hope this helps - best Regards Sebastian On 31 Jul., 12:37, matthieu vidal m...@matthieu-vidal.com wrote: Regarding the ZK license and the community arround it, I don't think. On 31 juil, 07:41, akhil shastri.ak...@gmail.com wrote: pls help me to decide isZK ZK better than GWT..? Regards, Akhil -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How does Google earn money from GWT?
Surely one way could be via appengine. no? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How does Google earn money from GWT?
Creating GWT helps to make web apps better and encourages more things to be web based. Anything that encourages a move to the web will naturally increase both search and advertising opportunities, and that's where they make money. Joyce wrote: During my GWT presentation, I was being asked this question which I could not answer. It goes, How does Google earn money from 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Development time for GWT apps versus 'traditional' MVC with JSP
I think speed will pick up as we move along, because we are both more webapp developers than desktop app developers and certainly for me it took some time to grasp the concept of the event bus, and registering and catching events. So, as Sebastian suggested, the paradigm shift took some time and effort. Secondly, it took time to think about and implement security and to become familiar with UIBinder. We're on a pretty tight schedule and in my view we haven't reserved enough time to get to know the new technology and to learn about third party solutions that can ease development. I don't know any of the solutions (incubatir, bikeshed) Subro mentions. Thanks for sharing your thoughts, J -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
JSONP: Overlays with Optional Attributes (HostedModeException's), How?
I'm attempting to perform JSONP (cross domain ajax), just like in this great article (thanks) http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays-with-jsonprequestbuilder/ The json response has optional attributes, it could be... {error: yay} or {response: 53} The optional attributes are causing my JavaScript Overlay's + JSNI grief... If I get don't get {error: yay} and I invoke getResponse() public final native int getResponse()/*-{ return this.response; }-*/; it throws... com.google.gwt.dev.shell.HostedModeException: Something other than a double was returned from JSNI method '@com.acme.client.Blah::getResponse()': JS value of type undefined, expected int Summary + Questions 1. The JSONP response is doing nothing wrong - it's is perfectly valid response. Some attributes are optional and Overlays seem to deals with them poorly. 2. According to the GWT doco, these HostedModeException only occur in Dev mode, and never thrown in production mode. So what happens when running in Production Mode? 3. Are there alternatives to wrapping the JSNI+JSON objects? Can I do something in JSNI that will handle the undefined attribute happily? Advice welcome, thanks for reading :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DockPanelLayout Displays nothing at all
Hi Andreas, How are you? I may be really lost here, but I can't find the RootLayoutPanel that you're talking about. in which package can I find it ? Or is it a property of some kind ? Thank you very much, Jose. On Aug 1, 9:30 pm, andreas horst.andrea...@googlemail.com wrote: Hey Jose, I'm not really sure but I remember there were a few messages around here regarding the *LayoutPanel widgets. Try adding your UI to RootLayoutPanel instead of RootPanel. Regards, Andreas On 2 Aug., 02:33, Jose Luis Estrella Campaña jlecamp...@gmail.com wrote: Hello everyone ! I've been developing this application using UIBinders and I'm very frustrated because when I use DockPanelLayout as my Layout Panel I can't get it to display anything at all. I realize I must be missing something. but I don't know what it is... Here are my code Snippets: public class GroupsFrontEnd implements EntryPoint { public void onModuleLoad() { RootPanel.get().add(new Application()); }} --- --- - public class Application extends Composite { private static ApplicationUiBinder uiBinder = GWT .create(ApplicationUiBinder.class); interface ApplicationUiBinder extends UiBinderWidget, Application { } @UiField VerticalPanel content; public Application() { initWidget(uiBinder.createAndBindUi(this)); this.addWidget(new LoginWidget()); } public void addWidget(Widget widget) { content.clear(); content.add(widget); }} --- --- - public class LoginWidget extends Composite { private static LoginWidgetUiBinder uiBinder = GWT .create(LoginWidgetUiBinder.class); interface LoginWidgetUiBinder extends UiBinderWidget, LoginWidget { } @UiField Label loginLabel; @UiField TextBox loginValueBox; @UiField Label passwordLabel; @UiField TextBox passwordValueBox; public LoginWidget() { initWidget(uiBinder.createAndBindUi(this)); loginLabel.setText(login:); passwordLabel.setText(password:); }} --- --- - !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui ui:style .form { float: right; width: 400px; height: 180px; } /ui:style g:DockLayoutPanel unit='PX' g:center size='500' g:HTML p This is where I want to display some Text Content /p /g:HTML /g:center g:east size='300' g:HTMLPanel table tr td g:Label ui:field=loginLabel / /td td g:TextBox ui:field=loginValueBox / /td /tr tr td g:Label ui:field=passwordLabel / /td td g:TextBox ui:field=passwordValueBox / /td /tr /table /g:HTMLPanel /g:east /g:DockLayoutPanel /ui:UiBinder ---
Re: DockPanelLayout Displays nothing at all
Oh Forget about that last message. I found the class, but I'm still a messenger of bad news. The result of using RootLayoutPanel is still the same, I can't get it to display the contents of my Widgets. What am I missing here? On Aug 1, 9:30 pm, andreas horst.andrea...@googlemail.com wrote: Hey Jose, I'm not really sure but I remember there were a few messages around here regarding the *LayoutPanel widgets. Try adding your UI to RootLayoutPanel instead of RootPanel. Regards, Andreas On 2 Aug., 02:33, Jose Luis Estrella Campaña jlecamp...@gmail.com wrote: Hello everyone ! I've been developing this application using UIBinders and I'm very frustrated because when I use DockPanelLayout as my Layout Panel I can't get it to display anything at all. I realize I must be missing something. but I don't know what it is... Here are my code Snippets: public class GroupsFrontEnd implements EntryPoint { public void onModuleLoad() { RootPanel.get().add(new Application()); }} --- --- - public class Application extends Composite { private static ApplicationUiBinder uiBinder = GWT .create(ApplicationUiBinder.class); interface ApplicationUiBinder extends UiBinderWidget, Application { } @UiField VerticalPanel content; public Application() { initWidget(uiBinder.createAndBindUi(this)); this.addWidget(new LoginWidget()); } public void addWidget(Widget widget) { content.clear(); content.add(widget); }} --- --- - public class LoginWidget extends Composite { private static LoginWidgetUiBinder uiBinder = GWT .create(LoginWidgetUiBinder.class); interface LoginWidgetUiBinder extends UiBinderWidget, LoginWidget { } @UiField Label loginLabel; @UiField TextBox loginValueBox; @UiField Label passwordLabel; @UiField TextBox passwordValueBox; public LoginWidget() { initWidget(uiBinder.createAndBindUi(this)); loginLabel.setText(login:); passwordLabel.setText(password:); }} --- --- - !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui ui:style .form { float: right; width: 400px; height: 180px; } /ui:style g:DockLayoutPanel unit='PX' g:center size='500' g:HTML p This is where I want to display some Text Content /p /g:HTML /g:center g:east size='300' g:HTMLPanel table tr td g:Label ui:field=loginLabel / /td td g:TextBox ui:field=loginValueBox / /td /tr tr td g:Label ui:field=passwordLabel / /td td g:TextBox ui:field=passwordValueBox / /td /tr /table /g:HTMLPanel /g:east /g:DockLayoutPanel /ui:UiBinder ---
Re: multi-file selection upload - swfupload can work with gwt?
I think that GMail now is using html5. On 31 jul, 15:26, buz...@gmail.com buz...@gmail.com wrote: There is a project called swfupload-gwt, which embeds multi-file upload capabilities into gwt application. We are using that in several applications, so it is quite stable. Without Flash you can opt for HTML5 upload, which also supports multi- file selection. http://code.google.com/p/swfupload-gwt/ Dmitry On Jul 29, 5:11 am, cy dev cydevelo...@gmail.com wrote: i am working out a multiple file upload module with gwt (which can support multi-file selection). the most available tool i can find is swfupload, however the samples provided seems to work with php platform only. the progress i am working is to create a HTML widget and embed the flash button object, the select dialog prompts and allow multiple selection. however i have no idea how (or if it is possible) to post to server, get status response etc. gmail seems to do the same to embed the flash button for attaching files. can someone share experience about this? any samples? thanks. the object i am embedding is: object id=SWFUpload_0 type=application/x-shockwave-flash data=../ swfupload/swfupload.swf?preventswfcaching=1280303624557 width=270 height=22 class=swfupload param name=wmode value=window / param name=movie value=../swfupload/swfupload.swf? preventswfcaching=1280303624557 / param name=quality value=high / param name=allowScriptAccess value=always / param name=flashvars value=movieName=SWFUpload_0amp;uploadURL= %2Fv250beta3%2Ffeaturesdemo%2Fupload.php%3Fget_name %3Dget_valueamp;useQueryString=falseamp;requeueOnError=falseamp;httpSuccess=123%2C444amp;assumeSuccessTimeout=25amp;params=post_name1%3Dpost_value1%26amp %3Bpost_name2%3Dpost_value2amp;filePostName=Filedataamp;fileTypes=*.*amp;fileTypesDescription=All %20Filesamp;fileSizeLimit=100%20MBamp;fileUploadLimit=10amp;fileQueueLimit=0amp;debugEnabled=trueamp;buttonImageURL= %2Fimages %2Fbutton_270x22.pngamp;buttonWidth=270amp;buttonHeight=22amp;buttonText= %3Cspan%20class%3D%22btnText%22%3ESelect%20Files...%3C%2Fspan %3Eamp;buttonTextTopPadding=3amp;buttonTextLeftPadding=100amp;buttonTextStyle=.btnText %20%7B%20font-size%3A%2010%3B%20font-weight%3A%20bold%3B%20font-family %3A%20MS%20Shell%20Dlg%3B %20%7Damp;buttonAction=-110amp;buttonDisabled=falseamp;buttonCursor=-1 / /object -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: is ZK better than GWT..?
If you asked in ZK forum, I bet the response will be very different. To me, it is all about the application you are aiming. GWT is so- called client-centric. It is great (though the slow compilation really kills me) if you don't need to access a lot of resource from the server. GWT provides nice way to retrieve data from the server, but it turned out to nightmare (at least to me) when the application has huge amount of data to display. On the other hand, ZK is so-called server-side architecture (though it provides nice client-side control). It boosts your productivity a lot if you have to access a lot of server-side resources. The downside is the application won't work if the connection is broken (I know ZK allows some client-side programming but it is JavaScript). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Upload folders and/or Upload Files already on the server
I need users to give me a bunch of images from their computer, which will then be displayed in my application. These images will all be in one folder. Rather than having users upload each image individually, I want to upload them all at once. One idea that I came up with is to have them upload a zip file with the folder and all the images to the blobstore. If I did this, how would I access each individual image? One possible solution that I thought of uploading each image to the blobstore after unzipping the folder. Is this possible? Another idea is to have them upload the entire folder. Again, how would I access each individual image? Any help would be appreciated. Thanks :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Announcement: Chrome Extension for GWT Documentation
Hi. I just wanted to let you know about a Chrome extension for easily accessing the GWT API reference documentation: https://chrome.google.com/extensions/detail/ooehfcnceghcfhnilipfdmfoiaahmopc If you type gwt, gwt20, or gwt21, it will take you straight to the main page of the API reference documenation. Typing any of those followed by the name of a class will take you straight to the documentation for the given class. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.1
Hi @ all. For our webproject I need to know if it is possible to use grouping with the Data Presentation Widget? I haven´t found a documentation about this new Widget so maybe someone of you can help me. Olli -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
AccessControlExeption: Access Denied
I am making an application where users upload a file to my application and I then parse that file. However, when I do so, I get the following exception: com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract boolean com.webapps.rhinestone.client.RhinestoneAdd.readDataLines(java.lang.String,int)' threw an unexpected exception: java.security.AccessControlException: access denied (java.io.FilePermission http:\127.0.0.1:\serve? blob_key=ud9_p4-NuAqHV-db2W_nfQ read) The line of code where the exception is thrown looks like this: BufferedReader reader = new BufferedReader(new FileReader(filename)); Is there any way to access the file? Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Need help on generating session id
Hello Mani, when Firefox generates a session id for one process, it is shared within all the instances of Firefox, as all the instances of Firefox is a single process and not different instances. All the instances of Firefox share a common process area which causes to retain a session id for all instances within that process area. This is same for IE too. Thanks Regards eluminous Chaitu On Sat, Jul 31, 2010 at 5:22 AM, Mani mani.pall...@gmail.com wrote: Hi, when i try to get session id by using following piece of code every time i am getting same session id if i try from same browser (with two instance browsers) like Firefox or IE. getThreadLocalRequest().getSession().getId() Can any one tell me why it is giving same session id. Thanks Mani -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Website for Mobileshttp://www.eluminoustechnologies.com/website_for_mobiles.htm| Organic SEO http://www.eluminoustechnologies.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DockPanelLayout Displays nothing at all
Ok, I solved this problem by Making my Parent Widget a LayoutPanel Widget. Instead of a Basic Panel. Thanks andreas, your initial guidance was the key for this ! See you next time ! Jose On Aug 2, 7:16 am, Jose Luis Estrella Campaña jlecamp...@gmail.com wrote: Oh Forget about that last message. I found the class, but I'm still a messenger of bad news. The result of using RootLayoutPanel is still the same, I can't get it to display the contents of my Widgets. What am I missing here? On Aug 1, 9:30 pm, andreas horst.andrea...@googlemail.com wrote: Hey Jose, I'm not really sure but I remember there were a few messages around here regarding the *LayoutPanel widgets. Try adding your UI to RootLayoutPanel instead of RootPanel. Regards, Andreas On 2 Aug., 02:33, Jose Luis Estrella Campaña jlecamp...@gmail.com wrote: Hello everyone ! I've been developing this application using UIBinders and I'm very frustrated because when I use DockPanelLayout as my Layout Panel I can't get it to display anything at all. I realize I must be missing something. but I don't know what it is... Here are my code Snippets: public class GroupsFrontEnd implements EntryPoint { public void onModuleLoad() { RootPanel.get().add(new Application()); }} --- --- - public class Application extends Composite { private static ApplicationUiBinder uiBinder = GWT .create(ApplicationUiBinder.class); interface ApplicationUiBinder extends UiBinderWidget, Application { } @UiField VerticalPanel content; public Application() { initWidget(uiBinder.createAndBindUi(this)); this.addWidget(new LoginWidget()); } public void addWidget(Widget widget) { content.clear(); content.add(widget); }} --- --- - public class LoginWidget extends Composite { private static LoginWidgetUiBinder uiBinder = GWT .create(LoginWidgetUiBinder.class); interface LoginWidgetUiBinder extends UiBinderWidget, LoginWidget { } @UiField Label loginLabel; @UiField TextBox loginValueBox; @UiField Label passwordLabel; @UiField TextBox passwordValueBox; public LoginWidget() { initWidget(uiBinder.createAndBindUi(this)); loginLabel.setText(login:); passwordLabel.setText(password:); }} --- --- - !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui ui:style .form { float: right; width: 400px; height: 180px; } /ui:style g:DockLayoutPanel unit='PX' g:center size='500' g:HTML p This is where I want to display some Text Content /p /g:HTML /g:center g:east size='300' g:HTMLPanel table tr td g:Label ui:field=loginLabel / /td td g:TextBox ui:field=loginValueBox / /td /tr tr td g:Label ui:field=passwordLabel / /td td g:TextBox ui:field=passwordValueBox /
CSS and panel alignment
Hi, In the host html file, I have a div to specify the location to load the widget which is a vertical panel. I add 2 horizontal panel to it. I want the first one to be left alignment. The second one is right alignment. Should I define it from the div tag of the host file? Or should I define it on the panel constructor using this.setHorizontalAlignment(align)? I have tried to use this.setHorizontalAlignment(align) but the alignment not so right. Both panel's components are aligning to the left. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CSS and panel alignment
On Mon, Aug 2, 2010 at 1:34 PM, Leung leung1_2...@yahoo.com wrote: Hi, In the host html file, I have a div to specify the location to load the widget which is a vertical panel. I add 2 horizontal panel to it. I want the first one to be left alignment. The second one is right alignment. Should I define it from the div tag of the host file? Or should I define it on the panel constructor using this.setHorizontalAlignment(align)? I have tried to use this.setHorizontalAlignment(align) but the alignment not so right. Both panel's components are aligning to the left. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. Hi, I would advise using something along the lines of firebug or the Chrome developer plugin. Most likely you will see that the style you are trying to set is not being applied correctly. To me it sounds a lot like the problem is that the things you are adding are tables not div's (vertical and horizontal panels are mostly tables) so you might be setting the table alignment to left and right but the cell contents is not following this alignment. Using things like docklayoutpannel and layoutpannel will give you div's that will make your life a lot easier as they will let the children inherit these settings just like you expect them to do. Regards, Rob -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How does Google earn money from GWT?
During my GWT presentation, I was being asked this question which I could not answer. It goes, How does Google earn money from GWT? AdWords is a small product at Google. You may have heard of it. And it's recently been--the user interface of that has been revamped from the ground up as a GWT application. -Ray Ryan http://extgwt-mvp4g-gae.blogspot.com/2009/10/gwt-app-architecture-best-practices.html AdWords is Google's flagship advertising product and main source of revenue. Google's total advertising revenues were USD$23 billion in 2009. -http://en.wikipedia.org/wiki/AdWords Shawn -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How does Google earn money from GWT?
GWT is a tool that google uses for his products. GWT is not intended to make money, but it is a necessary tool to develop other apps that make Google earn more money. By making it open-source, google reduces the ammount of money spent on the GWT, since more people can contribute to the project (writing code, finding bugs, creating new features). Also, Google improve his visibility accross the developer community (this group has 23401 members, which is quite a big community). -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: is ZK better than GWT..?
You can mix both approachs (client-centric and server-centric). If you have huge calculations there is no sense to do that in the client (the client will always be slow to perform calculations then your server). I saw a video on youtube past year that some guys make the first calculation on the client, if it take to long, the next calculation is done in the server and they just set the HTML returned from the server. I think GWT approach is better because you have clear definition of what is in the client and what is the server and if someone make something wrong you know where to look. People new to web programming have a lot of problems with this client/server separation (I need to teach how HTTP works to a co-worker so her could understand what is going on with GWT). Another plus, is that if you don't use GWT-RPC to make your server calls, your entire client application is server-agnostict so you can use any backend without recompiling your app. I am writing a JSON-RPC library for this purpose because I need to integrate .NET server with GWT client. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JSONP: Overlays with Optional Attributes (HostedModeException's), How?
I had almost the same problem, what I did was: Added a function that return true if the error is set, false otherwise: public final native boolean hasError() /*-{ if (this.error) return true; else return false; }-*/; The i first check if hasError is true, if it is i throw an Exception in my code, if not, i check the response. Hope it helps. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Joseph Favara/HQ/Corp/OAI is out of the office.
I will be out of the office starting 08/02/2010 and will not return until 08/09/2010. I will respond to your message when I return. If this is urgnet please contact Narayanan Pillai at 105986 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Mobile Phone permutation strategy suggestions wanted
Thanks. I think I can still get away with using GWT as long as I don't use any of the built-in layout panels, widgets, etc. I'll let you guys know how it goes. On Aug 1, 3:29 am, Sebastian Rothbucher sebastian.rothbuc...@clarities.de wrote: Hi Falcon, when turning off JavaScript is criterion, using GWT will become virtually impossible: all of the client-side logic with GWT is JS only, so running it on e.g. current blackberries will be a hard job... It's supposed to work quite well on andorid or iPhone (the webkit- enabled phones - probably on the Blackberry 6 as well then), but I guess it will become hard without JS. Hope this helps - best Regards Sebastian On 29 Jul., 23:36, Falcon msu.fal...@gmail.com wrote: Hey all. I'm going to be using GWT for some mobile phone web applications. My company primarily makes Java desktop applications and wants web versions of several of those applications. There's another group here that's already using GWT for web apps but they're not concerned with mobile phone browsers, so it's best if we use GWT since most developers at our company are familiar with Java and GWT's already in- use in the company, even if we end up ignoring several features in cases where we need mobile phone support. I'm using progressive enhancement (meaning the pages need to work with JavaScript turned off), and we really can't use most of the built-in layout or widgets because of our platform targets and the fact that JavaScript support may be non-existent or sketchy. I'm fine with building new widgets that work in everything we're targeting and do as much as they can without JavaScript while having nice behaviors added on with JS. The same widgets should work very well in full-featured browsers as well since we'll just be layering behavior on top of them. However, I'm wondering what to do about the permutations. For the desktop environment, having permutations such as IE6, IE78, Firefox, Safari, Chrome (or even, say, Webkit, Gecko, and various flavors of IE) make complete sense, but as quickly as the mobile space is moving that doesn't make as much sense to me. I understand the benefits of deferred binding, and agree that it's crazy awesome that you can get download sizes so small and run-times so snappy when compiling to each platform, but I'm not sure how plausible that is when we're needing to support things like Blackberry 4.6, 4.7, 5.0, NetFront, the various Nokia Webkit flavors that aren't quite as fully featured as iPhone/ Android's version of Webkit, etc. Object/feature detection seems like a much better call when you're faced with that many flavors of browsers. Would it make sense to do permutations for the more modern browsers, then do a catch-all for everything else and still use object/feature detection in that path? Using object/feature detection for our permutations would probably be a nightmare, as once you start testing for, say, 100 different features that way then GWT is having to do an astronomical number of compiles to allow for all of the different combinations of features. Also, while the desktop ecosystem is somewhat stable, the mobile ecosystem is currently refreshing much more quickly. I don't want to walk us into a situation where we're having to touch our apps every 6-8 months when the new crops of phones come out. I guess we could still get benefit from everything else GWT does (the wonderful compilation, minification, etc.) and still use object/ feature detection throughout the app and just not even worry about deferred binding/bootstrapping, but I thought I would ask the GWT group for your thoughts as some of you may have had to consider this problem before and may be able to offer some insight. Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT applications in clustered environment
We have a GWT application that needs to be deployed on a clustered environment with 2 nodes with session persistence. We are seeing an issue: when node 1 sets something in the session, and node 2 tries to access, it gets a null. The session variable is of java.lang.Long type which is Serializable. Anyone has deployed a GWT app in a clustered env. ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Jetty binding other IP
Hello all, I need to change the 127.0.0.1 of the Jetty binding IP on startup of GWT Eclipse Plugin, to test my app on a different IP. Any idea? Regards. -- []'s, Ronaldo Rigoni http://www.ronaldorigoni.com.br SCJA, SCJP Ministério da Educação - CESPE -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Possible problem with GWT URL mechanism and cache
Ittai, The server bundled with the Eclipse plugin is Jetty, and it should work correctly out of the box (read: no extra configuration on your part). Re-reading your original post, it looks like you might think you are using development mode (stop the debug) but your URL indicates you are actually using production mode. Make sure you launch your development mode session with the ?gwt.codesvr fragment. If you want to refresh your code without using development mode, you want to make sure you run a full GWT compile. On Sun, Aug 1, 2010 at 5:28 AM, Ittai etai...@gmail.com wrote: Hi Chris, I'm sorry but as I first stated I'm not sure what underlying server I'm using as the problem arises when using the built-in server in the GWT Eclipse plug-in Is this apache? Do you know? If so, do you know where I should look for its htaccess file? Thanks On 30 יולי, 18:56, Chris Conroy con...@google.com wrote: If you use Apache, the following .htaccess should work: Files *.nocache.* ExpiresDefault access /Files Files *.cache.* ExpiresDefault now plus 1 year /Files See the Compiling and Debugging section of the dev guide:http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebu... On Fri, Jul 30, 2010 at 2:35 AM, Ittai etai...@gmail.com wrote: Hi Chris, Thanks for your reply. I did not configure my web-server what so ever. Just used the GWT debug console from inside eclipse (with GWT plug- in). Can you maybe point me to where I can still check these configurations? Thanks, Ittai On Jul 29, 8:38 pm, Chris Conroy con...@google.com wrote: This sounds like you misconfigured your webserver to serve up the .nocache files as cached. On Thu, Jul 29, 2010 at 2:51 AM, Ittai etai...@gmail.com wrote: Hi, I'm encountering a problem, currently on IE8 and Win XP, where I can start up the debug mode on eclipse and enter the URL of my application on IE8: http://localhost:8080/myModule/myModule.html?params and everything will work properly. If I stop the debug, change the code and build the application again, of course new ADE43343.html file are created and when I enter the URL again in IE8 I see in the debug console in eclipse that a 404 message has been sent as the browser requested an incorrect URL. Which on the one hand remained the same(myModule.html), but on the other hand changed (generated html file). Another point to notice is that if I clear the cache of the browser all is well. Now, the issue is that I need this change from version to version (generated file to generated file) to be seemless. I tried adding the following tag to the myModule.html file: META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE but it did not seem to do the trick. Has anyone encountered this? Can you maybe point me to the right direction? Thanks a lot in advance ittai -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- Chris Conroy Software Engineer Google, Atlanta- 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-tool...@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. -- Chris Conroy Software Engineer Google, Atlanta-הסתר טקסט מצוטט- -הראה טקסט מצוטט- -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Chris Conroy Software Engineer Google, Atlanta -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
tablayoutpanel on docklayoutpanel center
looking for tips . i have tablayoutpael in docklayoutpanel's center. any technique to make each tabs appear on the docklayoutpanel header? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
2.1.0M2 observations with IE7 and IE8
Hello, I've done a rough comparison of performance of the new data presentation widgets for different browsers. I focus on CellTable because that is our primary need. The test renders a 20 column table with 100 rows. The timings are purely for rendering - no RPC, etc. Here are my observations. For safari, firefox chrome cell table is much faster than FlexTable and is slightly faster than our home grown table builder. However for ie7 and ie8 cell table is even slower than FlexTable. This is a big surprise. I am curious if this is due to milestone status, not yet optimized for IE browsers? Unfortunately we are stuck with IE for our application (internal users). I am seeking reassurance that this can be addressed by optimizing the new Cell rendering stuff. I am happy to share results of my evaluation to have other ppl reproduce findings, etc. Thanks, Ted -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Jetty binding other IP
Add the following to the Program Arguments section of your launch config: -bindAddress ip address Use 0.0.0.0 to bind to all valid addresses. On Mon, Aug 2, 2010 at 10:00 AM, Ronaldo Rigoni ... rrig...@gmail.comwrote: Hello all, I need to change the 127.0.0.1 of the Jetty binding IP on startup of GWT Eclipse Plugin, to test my app on a different IP. Any idea? Regards. -- []'s, Ronaldo Rigoni http://www.ronaldorigoni.com.br SCJA, SCJP Ministério da Educação - CESPE -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT applications in clustered environment
Well it has nothing to do with GWT, look on the faq for your container. 2010/8/2 Ameya Kulkarni amey...@gmail.com We have a GWT application that needs to be deployed on a clustered environment with 2 nodes with session persistence. We are seeing an issue: when node 1 sets something in the session, and node 2 tries to access, it gets a null. The session variable is of java.lang.Long type which is Serializable. Anyone has deployed a GWT app in a clustered env. ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Ecryption best practices (server side, client side, password handling)?
Stefan has allready made some very good comments so I'm not going to repeat them. Some more additional thoughts. Regarding encrypting the data in the database. If a user does not trust you (yourself and any of the people that have access to your server) to look at his data in the database, why would he trust you when you make the claim that his data is encrypted in the database? Furthermore, encrypting the data precludes providing any form of application level support to your users. Unless your service is exactly providing extremely secure storage of confidential data, I dont' see any reason for encrypting the data in the database and in that case you should find some security experts to assist you. This of course does not mean that you should not take precautions against data being accessed by unauthorized people or data being disclosed. But that falls under traditional secure server deployment. I'm afraid that there is no easy and proven solution to protect the confidentiality and integrity of Internet based communication without https. The SSL//TLS protocols have been scrutinized by security experts. Unless you are such an expert, don't think that you can come up with something that is solid enough. I personally would not trust any security measure that has not been published and analysed by the security and encryption community. Danny www.cellamea.eu On 1 aug, 17:06, Stefan Bachert stefanbach...@yahoo.de wrote: Hi Sven, i did have similar thought in the past. Encrypting the database base would solve any Datenschutz data protection topic since the application provider would not be able to even read the data of his customers. However, I do not see any easy solution, yet. Just encrypting any database data would destroy any orderings on indexes. It would work when only using equivalence, but this is a hard limit. The point of encryption should be the server. When you doing encryption on client side you must offer the encryption and decryption algo, too. So it is likely to loose more than to win. (And it is difficult to implement encryption without having an integral data type as it is the case with javascript). To hash the password on client side is equivalent as to put the password in clear to the database. You loose security when doing so. Any attacker would just send the encrypted password, may be to a similar service using the same approach! Any attacker could substitude the browser and code when he has a legal access to the service. So he can get the encryption algo and apply it to other users. The only thing which is under your control is the server. Stefan Bachert http::/gwtworld.de Inquiries for professional GWT support are welcome. I am sorry, I won't do free personal support. On 31 Jul., 19:07, Sven sven.ti...@googlemail.com wrote: Dear group, I want to extend a GWT/GAE application by offering the option to encrypt information entered by the user on client side in the database. The goal is to increase trust when storing potentially sensitive data, e.g. to prevent that people who have access to the DB (like me) have read access to the stored information. For client-side encryption using GWT I found this post:http://www.mooreds.com/wordpress/archives/000529 However, others do not even recommend to compute password hashs on the client and propose to do that on the server:http://www.owasp.org/index.php/Hashing_Javahttp://stackoverflow.com/q.. From user's perspective, I would not be comfortable with transmitting my data unencrypted to the server (even using HTTPS), as the server- side may for example log my information (and my password!). Especially for the password-part I would feel unconfortable, as many people tend to reuse their passwords (please no discussion about this :-)). Currently, I see two options: a) Encrypt and decrypt the information on the client using JS/GWT. Pro: The password never leaves the browser, the unencrypted information never leaves the browser. Con: Depending on the size of the data the encryption/decryption may be slow; if loaded via HTTP, the JS code may be compromised, etc. b) Encrypt and decrypt the information on the server. Pro: Fast. Con: The information is transmitted unencrypted. What would be your recommendation? In case of server-side encryption, would it make sense to hash the password on client side and to use the hash to encrypt/decrypt? Or would that be a no-go? What happens if the user forgets his/her password? All data lost, I guess? I have no deep practical experience with cryptography, so I would appreciate any suggestions or pointers to resources in the web. My goal is not to have a bullet proof solution for highly sensitive information, but it should be an improvement compared to the current implementation (no HTTPs, no encryption). Thanks Sven PS: x-post Google App Engine for Java, Google Web Toolkit -- You
GWT VECTOR GRAPHICS
Hello i need to make ipc graphic and i have been using gwt- visualization but have a lot of issues and a would like to aske another componenet can help me? thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
web 2.0 diagrammer visualization toolkits
Hi All, Can you please list of web 2.0 diagrammer visualization toolkits that you are aware of? And please list out the advantages as well. Thanks, Chandra -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Browser Event Propagation
Hi, I'm currently trying to set up a contextual menu on my gwt app, that is open a MenuBar in a PopupPanel on right-click. Using event.preventDefault() seems to stop the event propagation in my browser (Firefox 3.6) : my menu is displayed, not the browser one. I'm wondering if this behaviour was browser-specific ? I can't help but thinking that the event propagation may be different on another browser. I couldn't find a clear answer in the doc, but maybe I missed something. Thanks for reading this post ! Mathieu AGAR -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Development Mode Arguments
Hi all, I want to use Development Mode with -port 80 -no server arguments but when I reopen Eclipse this arguments removing. And I write time and again. I'm tired of this bug. Have anyone face this problem? Is there any solution? or Am I do Wrong things? I tried it with ; Eclipse 3.6 Google plugin for 3.6 Eclipse 3.5 Google plugin for 3.5 Cheers! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How does Google earn money from GWT?
Same could be said about Android, Chrome, Chrome OS, Apps... As the Internet gets better and better, more people uses it in larger extentions of time. Then google makes more money in ads and search. On Aug 2, 3:03 am, Paul Robinson ukcue...@gmail.com wrote: Creating GWT helps to make web apps better and encourages more things to be web based. Anything that encourages a move to the web will naturally increase both search and advertising opportunities, and that's where they make money. Joyce wrote: During my GWT presentation, I was being asked this question which I could not answer. It goes, How does Google earn money from 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Ecryption best practices (server side, client side, password handling)?
A lot of databases provide encryption so that you can prevent sys admins from seeing the data without being authenticated to the DB itself. Oracle provides it natively, where MySql is a combination of 3rd party software. If you are really paranoid MySql provides AES encrypt/decrypt functions. http://www.hotscripts.com/forums/database/54910-encrypting-mysql-database.html Like Danny said, no point in reinventing the wheel, just use SSL. Right now SSL is still justified by the simple fact that it would take more expensive hardware to break the encryption than any data would be worth that they may extract in most cases. For authentication, I would highly recommend using container managed security though with a JDBC realm. Most give you the option for choosing the hash type for the password. On Aug 2, 10:20 am, Danny Goovaerts danny.goovae...@gmail.com wrote: Stefan has allready made some very good comments so I'm not going to repeat them. Some more additional thoughts. Regarding encrypting the data in the database. If a user does not trust you (yourself and any of the people that have access to your server) to look at his data in the database, why would he trust you when you make the claim that his data is encrypted in the database? Furthermore, encrypting the data precludes providing any form of application level support to your users. Unless your service is exactly providing extremely secure storage of confidential data, I dont' see any reason for encrypting the data in the database and in that case you should find some security experts to assist you. This of course does not mean that you should not take precautions against data being accessed by unauthorized people or data being disclosed. But that falls under traditional secure server deployment. I'm afraid that there is no easy and proven solution to protect the confidentiality and integrity of Internet based communication without https. The SSL//TLS protocols have been scrutinized by security experts. Unless you are such an expert, don't think that you can come up with something that is solid enough. I personally would not trust any security measure that has not been published and analysed by the security and encryption community. Dannywww.cellamea.eu On 1 aug, 17:06, Stefan Bachert stefanbach...@yahoo.de wrote: Hi Sven, i did have similar thought in the past. Encrypting the database base would solve any Datenschutz data protection topic since the application provider would not be able to even read the data of his customers. However, I do not see any easy solution, yet. Just encrypting any database data would destroy any orderings on indexes. It would work when only using equivalence, but this is a hard limit. The point of encryption should be the server. When you doing encryption on client side you must offer the encryption and decryption algo, too. So it is likely to loose more than to win. (And it is difficult to implement encryption without having an integral data type as it is the case with javascript). To hash the password on client side is equivalent as to put the password in clear to the database. You loose security when doing so. Any attacker would just send the encrypted password, may be to a similar service using the same approach! Any attacker could substitude the browser and code when he has a legal access to the service. So he can get the encryption algo and apply it to other users. The only thing which is under your control is the server. Stefan Bachert http::/gwtworld.de Inquiries for professional GWT support are welcome. I am sorry, I won't do free personal support. On 31 Jul., 19:07, Sven sven.ti...@googlemail.com wrote: Dear group, I want to extend a GWT/GAE application by offering the option to encrypt information entered by the user on client side in the database. The goal is to increase trust when storing potentially sensitive data, e.g. to prevent that people who have access to the DB (like me) have read access to the stored information. For client-side encryption using GWT I found this post:http://www.mooreds.com/wordpress/archives/000529 However, others do not even recommend to compute password hashs on the client and propose to do that on the server:http://www.owasp.org/index.php/Hashing_Javahttp://stackoverflow.com/q.. From user's perspective, I would not be comfortable with transmitting my data unencrypted to the server (even using HTTPS), as the server- side may for example log my information (and my password!). Especially for the password-part I would feel unconfortable, as many people tend to reuse their passwords (please no discussion about this :-)). Currently, I see two options: a) Encrypt and decrypt the information on the client using JS/GWT. Pro: The password never leaves the browser, the unencrypted information never leaves the browser. Con:
Set Padding/Margin for Textbox in DockLayoutPanel?
I just want to set the padding or margin of my elements in a DockLayoutPanel. My UiBinder: ui:style .item { height: 100%; margin: 5px; } /ui:style g:DockLayoutPanel unit='PX' g:center g:Tree ui:field=treeTasks/g:Tree /g:center g:south size=25 g:TextBox addStyleNames={style.item} ui:field=textTask width=100% placeholder=Enter task.../g:TextBox /g:south /g:DockLayoutPanel I've tried every arrangement that I can think of from changing padding to margin and putting the style on g:south or even on my DockLayoutPanel. I really just want some visual space between the borders of my Textbox and the DockLayoutPanel. What am I doing wrong? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SerializationException with GWT 2.0.4 and iCal4J
Hey Bernhard, Not having a default constructor would defiantly cause a problem. Why don't you use java.util.Date? You could also create your own Date class and just pull the information you need. Also, I would recommend using GWT's IsSerializable instead of Serializable, and put all classes passed between the client and server in the shared package. Although these aren't necessary, I think it follow the GWT standards. Tom On Aug 1, 8:14 am, bernhard unger.bernh...@googlemail.com wrote: Hallo all, I am using GWT 2.0.4 and try to implement a service that handles with iCal4J calendar objects. (http://wiki.modularity.net.au/ical4j/index.php?title=Main_Page) However, when I invoke the RPC service a SerializationException is thrown: com.google.gwt.user.client.rpc.SerializationException: Type 'net.fortuna.ical4j.model.DateTime' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized. I already read the suggestion from article http://code.google.com/ intl/de/webtoolkit/articles/using_gwt_with_hibernate.html and made a CalendarDTO object for the transfer. (Additionally I read tons of post for the SerializationException problem, without finding a solution). Here is my structure of the service: package mydomain.de.client /** * The client side stub for the RPC service. */ @RemoteServiceRelativePath(calendar) public interface CalendarService extends RemoteService { public CalendarDTO getCalendarEvent();} /** * The async counterpart of codeCalendarService/code. */ public interface CalendarServiceAsync { void getCalendarEvent(AsyncCallbackCalendarDTO callback);} --- package mydomain.client.dto /* The data transfer object used on the client (GWT) side */ public class CalendarDTO implements Serializable { private static final long serialVersionUID = 1L; private Date date; private String name; private String uid; public CalendarDTO() {}; public CalendarDTO(Date date, String name, String uid) { this.date = date; this.name = name; this.uid = uid; } ... setter and getter} - package mydomain.domain /* The domain class for the calendar */ public class MyCalendar implements Serializable { private static final long serialVersionUID = 9054803484652745548L; private Date eventDate; private String eventName; private String uid; public MyCalendar() {}; public MyCalendar(CalendarDTO calendarDTO) { eventDate = calendarDTO.getDate(); eventName = calendarDTO.getName(); uid = calendarDTO.getUid(); } ... getter and setter ...} - package mydomain.server /** * The server side implementation of the RPC service. */ //@SuppressWarnings(serial) public class CalendarServiceImpl extends RemoteServiceServlet implements CalendarService { private static final long serialVersionUID = -7306504057898287672L; . public CalendarDTO getCalendarEvent() { MyCalendar myCalendar = new MyCalendar(); setMyCalendar(myCalendar); // Do iCal4J stuff CalendarDTO calendarDTO = new CalendarDTO(); calendarDTO.setDate(myCalendar.getEventDate()); calendarDTO.setName(myCalendar.getEventName()); calendarDTO.setUid(myCalendar.getUid()); return calendarDTO; } - For my understanding the server code should be decoupled by the Data Transfer Objects CalendarDTO, but the serialization exception is still thrown. I already did a look in the implementation class of net.fortuna.ical4j.model.DateTime one of its superclass (Iso8601) does not have a default constructor. Could that be the issue? Is there a workaround for this problem available? Any suggestions are highly appreciated. Thanks regards Bernhard -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Where can I put a File to be read/write from RPC Servlet ?
H, Well that indeed seems to be the problem, however I've solved my problem by embedding SQLite inside my ear file. had to go in a different direction because I was wasting a lot of time. SO, I haven't looked any further as of why I wasn't able to read the file. Thanks anyways, and let me know If you find the answer. Oh, and yeah, it seems that the framework won't allow that kind of read. Best Regards, Jose. On Aug 2, 12:17 am, Sripathi Krishnan sripathi.krish...@gmail.com wrote: Do you have google app engine enabled? It is a setting in Eclipse. Google App Engine doesn't allow you to read from the file system - and perhaps that may be your issue. --Sri 2010/7/28 Jose Luis Estrella Campaña jlecamp...@gmail.com Katharina, Hi, and... No, I have not solved it. apparently the file and/or directory restrictions are ok, at least according to what I have seen, I wonder If there's a problem with the permissions a non-administrator user has in Windows vista, but otherwise the file seems to be ok. Frankly I don't know what else to do. Help me Katharina, Sincerely, Jose On Jul 28, 7:47 am, Katharina Probst kpro...@google.com wrote: Did you get this solved? It doesn't look to me like it has anything to do with GWT, but it's purely a file permission thing. Have you set the file permissions on your file properly? Is your server-side directory somehow read-restricted? On Tue, Jul 27, 2010 at 4:25 PM, Jose Luis Estrella Campaña jlecamp...@gmail.com wrote: Hello sir ! I have already tried all the ways I mentioned previously, including the ones you suggested, but the problem remains. It is obviously according to the stack trace launched by the Exception some sort of File permission error. I would like to know what can I do about it ? can you help me a little further, I'm lost. Good luck, Jose. On Jul 27, 3:02 pm, skippy a...@2lehmans.com wrote: I would have tried your last example. It look like a access problem to the file. follow the access denied message. See what that get you. Sorry, I know how it does. On Jul 27, 2:36 pm, Jose Luis Estrella Campaña jlecamp...@gmail.com wrote: Hi skippy ! I have tried your suggestion but unfortunately it did not work :( I changed the java APIs I used this time but the result is the same: ... try { File f = new File(xml/users.xml); FileReader reader = new FileReader(f); BufferedReader buffer = new BufferedReader(reader); buffer.readLine(); // Read a line of text System.out.println(buffer.readLine()); } The generated exception is: Caused by: java.security.AccessControlException: access denied (java.io.FilePermission \users.xml read) also, If I try it like this: /xml/users.xml with the forward slash a the beginning it goes for the root of the system which is C:/ and it still does not work, which I find weird because that's outside the application's context, right ? Anyways, please help me Skippy. Sincerely, Jose. On Jul 27, 2:13 pm, skippy a...@2lehmans.com wrote: If that does not work, ping me again and I will provide a code sample. On Jul 27, 2:09 pm, skippy a...@2lehmans.com wrote: I would put the file in the WEB-INF/XML/ change the path to the file to xml/users.xml or /xml/user.xml On Jul 27, 1:57 pm, Jose Luis Estrella Campaña jlecamp...@gmail.com wrote: Hello dane ! You're right in assuming something it's not working. Here's the thing... I need to read from the xml file so I can perform some operations on it and then save it again, here's the code I'm trying to get to work: import public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService { public String greetServer(String input) throws IllegalArgumentException { FileInputStream fin; try { fin = new FileInputStream (users.xml); System.out.println( new DataInputStream(fin).readLine() ); fin.close(); } catch (IOException e) { System.err.println (Unable to read from file); System.exit(-1); } return success reading file; } } And here's the exception I'm getting: Unable to read from file .
Re: AccessControlExeption: Access Denied
Hey GKotta, What are you doing before the new FileReader? Are you saving the file somehow? More code would help, however, make sure the file has read permissions. You can also check out the following link for getting the results of a file upload. http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/FileUpload.html If you use AppEngine, checkout http://code.google.com/appengine/docs/java/blobstore/overview.html http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/blobstore/BlobstoreInputStream.html Tom On Aug 2, 12:14 am, GKotta guruko...@gmail.com wrote: I am making an application where users upload a file to my application and I then parse that file. However, when I do so, I get the following exception: com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract boolean com.webapps.rhinestone.client.RhinestoneAdd.readDataLines(java.lang.String,int)' threw an unexpected exception: java.security.AccessControlException: access denied (java.io.FilePermission http:\127.0.0.1:\serve? blob_key=ud9_p4-NuAqHV-db2W_nfQ read) The line of code where the exception is thrown looks like this: BufferedReader reader = new BufferedReader(new FileReader(filename)); Is there any way to access the file? Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT evaluation: How to realize this specific app scenario? (v.2)
Hey Alessandro, I'm not a GWT expert, but hopefully this will help. Your right about the look of the URL, and that would be one way to do it. Your GWT entry-point (http://base-url/) would process the token, which is everything after the #. So if you had #comp1;comp2;comp3; then your entry-point class would instantiate whatever it needs to and display the correct components. That should answer your second question as well, if I understood it correctly. The entry-point class listens on the base URL, and can call different servlets. Technically, you can have however many servlets you want to process the Ajax request. There are some other options too. 1. A GWT app can have multiple entry points. So http://baseurl/comp1/ and http://baseurl/comp2/ can be completely different entry points in the same project. 2. You could have multiple GWT instances running. In other words, you can have separate GWT projects for different components or apps. Tom On Aug 2, 3:02 am, A.Augustini alessandro.august...@googlemail.com wrote: Really no brief suggestions to these basic topics here??? I'd really appreciate any helping hints. Best regards, Alessandro On 30 Jul., 19:54, A.Augustini alessandro.august...@googlemail.com wrote: @Sebastian: Thank you very much for the quick response. The link to the Gears binding for GWT was very helpful and just what I was looking for. Concerning the issue with the bookmarkable URLs (traditional vs. Ajax-ified URLs), I'm still not quite sure if I totally understood the History mechanism for my scenario: Suppose the AdminConsole's main screen is a 'HorizontalSplitPanel showing a 'VerticalPanel with multiple available web sites links to the left and a corresp. web site details subpanel to the right. Clicking one such 'Hyperlink' should kick off the download of the corresp. site details and display them on the right subpanel. My intention is to have workable URLs as close as possible to * http://{base-url}/{site-name}/index.html (index.html suppressible) * http://{base-url}/{site-name}/{page-name}.html (.html suppress.) * http://{base-url}/{site-name}/{comp1}/{comp2}/.../{compN}.html where only {base-url} is a priori known (i.e. static). 1. Having N dynamically specified site names, what would the Ajax-ified bookmarkable URLs of these 'Hyperlinks' look like? Perhaps something comparable to http://{base-url}.html#{site-name};{comp1};...;{compN};{sid}; ?? 2. And, what Servlets would be listening to which URL(s) in this scenario? Is it a 2-sevlets scenario: an AppControllerServlet listening to http://{base-url}; and serving traditional requests, and a GWT-RPC-Servlet for the Ajax-based requests, listening to another (?) url pattern? -- Or would just one servlet suffice? Thank you all very much for any constructive help in advance. Best regards, Alessandro Following the examples, I guess sth. similar to: http://app-base-url/mysite-001.html#state1 On 30 Jul., 15:54, Sebastian Rothbucher sebastian.rothbuc...@clarities.de wrote: Hi Alessandro, GWT features a history mechanism which could solve the first question:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g... orhttp://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCodin... provide info on that: rather than using a file path, you'd use # (an identifier after a hash). Many AJAX apps work that way to prevent reloads GWT is quite powerful concerning internationalization using property files (you delcare an interface and provide a property file and bind it together using the GWT class) Concerning in-place editing, there is surely a way; Google wave is implemented in GWT and also features rich editing features. Finally, there is a gears binding for GWT (http://code.google.com/p/ gwt-google-apis/) which you can use for offline storage (modern browser or plugin required). Hope this helps... Sebastian On 30 Jul., 13:41, A.Augustini alessandro.august...@googlemail.com wrote: [**Republished to get rid of ugly line-break cluttering**] Dear GWT Community members: As GWT newbie I'm currently evaluating GWT for some potential future projects. After reading available introductory materials, I'm now wondering if GWT is the appropriate candidate for my specific app scenario. Obviously there are 2 basic GWT app dev styles: (1) desktop-app setup: one GWT module on one almost empty carrier HTML page. (2) traditional-web setup: several traditional HTML pages with some GWT widgets. Supposing this is correct: What would be the ideal GWT app architecture for the following, more hybrid scenerio? Say we've to build a kind of Mini Online Site Builder with some simple CMS functionality and basically consisting of 2 main requirements for 2 available enduser roles:
AccessControlExeption: Access Denied
Thanks for your answer. I am uploading the file to the blobstore and the url is (in this case) http:\127.0.0.1:\serve?blob_key=ud9_p4-NuAqHV-db2W_nfQ. Before the line BufferedReader reader = new BufferedReader(new FileReader(filename)); I set String filename to http:\127.0.0.1:\serve?blob_key=ud9_p4- NuAqHV-db2W_nfQ How do you make sure your file has read permissions? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Jetty binding other IP
Take a look at http://code.google.com/p/google-web-toolkit/issues/detail?id=4322 and http://www.devcomments.com/Connecting-to-embedded-Jetty-from-other-host-than-localhost-at147452.htm XP On Aug 2, 10:00 am, Ronaldo Rigoni ... rrig...@gmail.com wrote: Hello all, I need to change the 127.0.0.1 of the Jetty binding IP on startup of GWT Eclipse Plugin, to test my app on a different IP. Any idea? Regards. -- []'s, Ronaldo Rigonihttp://www.ronaldorigoni.com.br SCJA, SCJP Ministério da Educação - CESPE -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: IncompatibleRemoteServiceException caused by different RPC Protocol Versions (server: 5, client 6)
I'm still struggling with this error. Can anyone provide any insight? I've looked at the code in ClientSerializationStreamReader and ServerSerializationStreamReader, and it looks like they should be in sync in regards to RPC version numbers. I'm at a loss as to what is causing the issue. On Jul 29, 12:42 pm, Jason482 jason...@gmail.com wrote: I'm getting pretty much the same error, except in reverse: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. ( Expecting version 6 from server, got 5. ) Have you been able to get around this using 2.1.0.M2? On Jul 21, 6:54 am, macgyver chrisi.kl...@web.de wrote: Hi folks, i just upgraded one of my projects from 2.0.4 to 2.1.0.M2. The whole reason was to use the new Data Presentation Widgets, which indeed are very cool and working. On the other hand I went into problems on my RPC calls. It seems like the protocol for this has changed: from version 5 up to 6. While debugging I got deeper into the GWT code and so found the corresponding lines. As you can see in the stack trace below, the exception text tells me to reload the browser, but this does'nt help. May anyone know why the server (on jetty) is still using version 5? Or is there another way to force the server/client to use a specific version? I would be very glad if anybody can tell. [WARN] dispatchService: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. ( Expecting version 5 from client, got 6. ) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java: 432) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:236) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 186) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java: 49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 395) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:488)- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Where can I put a File to be read/write from RPC Servlet ?
You are using appengine? Have your tried using the Blobstore? http://www.google.com/url?sa=Dq=http://code.google.com/appengine/docs/java/blobstore/overview.htmlusg=AFQjCNGCcnwak-j5mdj2dxGi2AmmtX0YUw Tom On Aug 2, 11:20 am, Jose Luis Estrella Campaña jlecamp...@gmail.com wrote: H, Well that indeed seems to be the problem, however I've solved my problem by embedding SQLite inside my ear file. had to go in a different direction because I was wasting a lot of time. SO, I haven't looked any further as of why I wasn't able to read the file. Thanks anyways, and let me know If you find the answer. Oh, and yeah, it seems that the framework won't allow that kind of read. Best Regards, Jose. On Aug 2, 12:17 am, Sripathi Krishnan sripathi.krish...@gmail.com wrote: Do you have google app engine enabled? It is a setting in Eclipse. Google App Engine doesn't allow you to read from the file system - and perhaps that may be your issue. --Sri 2010/7/28 Jose Luis Estrella Campaña jlecamp...@gmail.com Katharina, Hi, and... No, I have not solved it. apparently the file and/or directory restrictions are ok, at least according to what I have seen, I wonder If there's a problem with the permissions a non-administrator user has in Windows vista, but otherwise the file seems to be ok. Frankly I don't know what else to do. Help me Katharina, Sincerely, Jose On Jul 28, 7:47 am, Katharina Probst kpro...@google.com wrote: Did you get this solved? It doesn't look to me like it has anything to do with GWT, but it's purely a file permission thing. Have you set the file permissions on your file properly? Is your server-side directory somehow read-restricted? On Tue, Jul 27, 2010 at 4:25 PM, Jose Luis Estrella Campaña jlecamp...@gmail.com wrote: Hello sir ! I have already tried all the ways I mentioned previously, including the ones you suggested, but the problem remains. It is obviously according to the stack trace launched by the Exception some sort of File permission error. I would like to know what can I do about it ? can you help me a little further, I'm lost. Good luck, Jose. On Jul 27, 3:02 pm, skippy a...@2lehmans.com wrote: I would have tried your last example. It look like a access problem to the file. follow the access denied message. See what that get you. Sorry, I know how it does. On Jul 27, 2:36 pm, Jose Luis Estrella Campaña jlecamp...@gmail.com wrote: Hi skippy ! I have tried your suggestion but unfortunately it did not work :( I changed the java APIs I used this time but the result is the same: ... try { File f = new File(xml/users.xml); FileReader reader = new FileReader(f); BufferedReader buffer = new BufferedReader(reader); buffer.readLine(); // Read a line of text System.out.println(buffer.readLine()); } The generated exception is: Caused by: java.security.AccessControlException: access denied (java.io.FilePermission \users.xml read) also, If I try it like this: /xml/users.xml with the forward slash a the beginning it goes for the root of the system which is C:/ and it still does not work, which I find weird because that's outside the application's context, right ? Anyways, please help me Skippy. Sincerely, Jose. On Jul 27, 2:13 pm, skippy a...@2lehmans.com wrote: If that does not work, ping me again and I will provide a code sample. On Jul 27, 2:09 pm, skippy a...@2lehmans.com wrote: I would put the file in the WEB-INF/XML/ change the path to the file to xml/users.xml or /xml/user.xml On Jul 27, 1:57 pm, Jose Luis Estrella Campaña jlecamp...@gmail.com wrote: Hello dane ! You're right in assuming something it's not working. Here's the thing... I need to read from the xml file so I can perform some operations on it and then save it again, here's the code I'm trying to get to work: import public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService { public String greetServer(String input) throws IllegalArgumentException { FileInputStream fin; try { fin = new FileInputStream (users.xml); System.out.println( new DataInputStream(fin).readLine() );
Re: How to use external jars and java.awt on server side
Where is the jar located? If needs to be in war/WEB-INF/lib. Can you use a an InputStream instead of a BufferedImage? Tom On Aug 1, 8:51 am, nacho vela.igna...@gmail.com wrote: If the lib is not supported by app engine you will need to deploy into another server, for example a Tomcat. On 30 jul, 19:24, RhinestoneMaster guruko...@gmail.com wrote: We're trying to convert a pdf to an image using a software called JPedal. This software is in an external jar. Our development environment is in eclipse. If we include the BufferedImage class in our code, we get this compiler error: java.awt.image.BufferedImage is not supported by Google App Engine's Java runtime environment. Also, after adding the JPedal jars to the eclipse library our code looks like this: String url=C:/2007NissanTowingGuide.pdf; /**instance of PdfDecoder to convert PDF into image From JPedal*/ PdfDecoder decode_pdf = new PdfDecoder(true); /**set mappings for non-embedded fonts to use*/ PdfDecoder.setFontReplacements(decode_pdf); /**open the PDF file - can also be a URL or a byte array*/ try { decode_pdf.openPdfFile(url); /**get page 1 as an image*/ //page range if you want to extract all pages with a loop //int start = 1, end = decode_pdf.getPageCount(); //BufferedImage img=decode_pdf.getPageAsImage(1); /**close the pdf file*/ decode_pdf.closePdfFile(); //RenderedImage rendImage = img; // Save as JPEG File file = new File(yimage.jpg); //ImageIO.write(rendImage, jpg, file); System.out.println(It worked); } catch (PdfException e) { e.printStackTrace(); } and we get the following exception: java.lang.NoClassDefFoundError: org/jpedal/exception/PdfException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(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) at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java: 428) at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java: 339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 51) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:349) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542)
Re: AccessControlExeption: Access Denied
AppEngine is strict on read and write access of files. If its already in the blobstore, why don't you try something like this, BufferedReader reader = new BufferedReader(new InputStreamReader(new BlobStoreInputStream(blob_key))); Tom On Aug 2, 11:54 am, GKotta guruko...@gmail.com wrote: Thanks for your answer. I am uploading the file to the blobstore and the url is (in this case) http:\127.0.0.1:\serve?blob_key=ud9_p4-NuAqHV-db2W_nfQ. Before the line BufferedReader reader = new BufferedReader(new FileReader(filename)); I set String filename to http:\127.0.0.1:\serve?blob_key=ud9_p4- NuAqHV-db2W_nfQ How do you make sure your file has read permissions? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How does Google earn money from GWT?
I hate stupid spammy sites like yours that steal content and load their site with ads. Here's the original source of the IO session http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html which has a link to the downloadable PDF as well : http://dl.google.com/io/2009/pres/Th_0200_GoogleWebToolkitArchitecture-BestPracticesForArchitectingYourGWTApp.pdf On Mon, Aug 2, 2010 at 8:13 AM, Shawn Brown big.coffee.lo...@gmail.comwrote: During my GWT presentation, I was being asked this question which I could not answer. It goes, How does Google earn money from GWT? AdWords is a small product at Google. You may have heard of it. And it's recently been--the user interface of that has been revamped from the ground up as a GWT application. -Ray Ryan http://extgwt-mvp4g-gae.blogspot.com/2009/10/gwt-app-architecture-best-practices.html AdWords is Google's flagship advertising product and main source of revenue. Google's total advertising revenues were USD$23 billion in 2009. -http://en.wikipedia.org/wiki/AdWords Shawn -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CSS and panel alignment
--- On Mon, 8/2/10, Rob Coops rco...@gmail.com wrote: From: Rob Coops rco...@gmail.com Subject: Re: CSS and panel alignment To: google-web-toolkit@googlegroups.com Date: Monday, August 2, 2010, 7:41 PM On Mon, Aug 2, 2010 at 1:34 PM, Leung leung1_2...@yahoo.com wrote: Hi, In the host html file, I have a div to specify the location to load the widget which is a vertical panel. I add 2 horizontal panel to it. I want the first one to be left alignment. The second one is right alignment. Should I define it from the div tag of the host file? Or should I define it on the panel constructor using this.setHorizontalAlignment(align)? I have tried to use this.setHorizontalAlignment(align) but the alignment not so right. Both panel's components are aligning to the left. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. Hi, I would advise using something along the lines of firebug or the Chrome developer plugin. Most likely you will see that the style you are trying to set is not being applied correctly. To me it sounds a lot like the problem is that the things you are adding are tables not div's (vertical and horizontal panels are mostly tables) so you might be setting the table alignment to left and right but the cell contents is not following this alignment. Using things like docklayoutpannel and layoutpannel will give you div's that will make your life a lot easier as they will let the children inherit these settings just like you expect them to do. Regards, Rob -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. Hi Rob, Thank you very much for your reply. Yes, you are correct. I put the div within the tr of the table, but I have not specified the align of the table. I expect that it would leave it to the panels but it doesnt. Is there any secure way to be sure that the align will be overrided by the panel/widget if necessary? Thanks Ming -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problem with UTF-8
I have a problem with Swedish letters coded in Java files as when I make a Label with Swedish letters, Label myLabel = new Label(här är något på Svenska); the Swedish letters changes to strange characters in the HTML file. I am using Eclipse.I made sure that: the html file has meta http-equiv=content-type content=text/html; charset=UTF-8 the text file properties are UTF-8 the project properties are UTF-8 the edit set encoding are UTF-8 Anybody facing the same problem or have a solution... thanx! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
ANT task for a web project using GWT
I am trying to integrate couple of GWT 2.0 modules into a web project and wanted to integrate the build process of the modules with that of the project. What are the ANT task options that GWT provides? If not, then are there any other 3rd party tools? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Browser Event Propagation
(You can also use event.returnValue = false, at least for IE.) On Aug 2, 3:50 pm, Falcon msu.fal...@gmail.com wrote: In browsers that don't support the W3C event model, you'll need to return false instead. (Also, to be clear, event.preventDefault() prevents the default browser action from happening, e.g. following a link that was clicked. event.stopPropagation() is what stops the event from bubbling through the DOM tree.) On Aug 2, 9:43 am, magat mathieu.a...@gmail.com wrote: Hi, I'm currently trying to set up a contextual menu on my gwt app, that is open a MenuBar in a PopupPanel on right-click. Using event.preventDefault() seems to stop the event propagation in my browser (Firefox 3.6) : my menu is displayed, not the browser one. I'm wondering if this behaviour was browser-specific ? I can't help but thinking that the event propagation may be different on another browser. I couldn't find a clear answer in the doc, but maybe I missed something. Thanks for reading this post ! Mathieu AGAR -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: tablayoutpanel on docklayoutpanel center
are you trying to get something like http://www.smartclient.com/smartgwt/showcase/#main where you click on menu on left and it keeps adding tabs near the top? or are you really wanting to create a menu dynamically in the header? If its the latter couldnt you use a DeckPanel in the center and create a Menu widget in the north of docklayoutpanel that is built and modified depending on new panels in the DeckPanel? hope that makes sense. Kind Regards David On Aug 2, 5:14 pm, asianCoolz second.co...@gmail.com wrote: looking for tips . i have tablayoutpael in docklayoutpanel's center. any technique to make each tabs appear on the docklayoutpanel header? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ANT task for a web project using GWT
There are no provided ANT tasks, however it is not that difficult to write your own ANT macros to do what you want. Unfortunately I can't provide you with my macro, but this should be enough to get you started: macrodef name=gwtCompile attribute name=module / attribute name=dir default=${builddir} / attribute name=output default=. / sequential java classname=com.google.gwt.dev.Compiler fork=true dir=@{dir} failonerror=true classpath path refid=gwt.classpath / path location=@{dir} / /classpath jvmarg value=-Xms${gwt.jvm.xms} / jvmarg value=-Xmx${gwt.jvm.xmx} / arg line=-localWorkers ${gwt.localWorkers} -style @{style} -war / arg value=quot;@{output}quot; / arg line=@{module} / /java /sequential /macrodef this is an extreamly over-simplified version of my macro and will need some work if you have any generators in your project because the GWT compiler wants them as class files. My version of the macro also exposes a lot more of the other compiler options. On Aug 2, 2:01 pm, Kady kaushika...@gmail.com wrote: I am trying to integrate couple of GWT 2.0 modules into a web project and wanted to integrate the build process of the modules with that of the project. What are the ANT task options that GWT provides? If not, then are there any other 3rd party tools? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Browser Event Propagation
event.preventDefault works in both firefox and IE if you use the modern GWT event handling(handler registration method) instead of the DOM event handling (pre 1.6). On Aug 2, 3:04 pm, Falcon msu.fal...@gmail.com wrote: (You can also use event.returnValue = false, at least for IE.) On Aug 2, 3:50 pm, Falcon msu.fal...@gmail.com wrote: In browsers that don't support the W3C event model, you'll need to return false instead. (Also, to be clear, event.preventDefault() prevents the default browser action from happening, e.g. following a link that was clicked. event.stopPropagation() is what stops the event from bubbling through the DOM tree.) On Aug 2, 9:43 am, magat mathieu.a...@gmail.com wrote: Hi, I'm currently trying to set up a contextual menu on my gwt app, that is open a MenuBar in a PopupPanel on right-click. Using event.preventDefault() seems to stop the event propagation in my browser (Firefox 3.6) : my menu is displayed, not the browser one. I'm wondering if this behaviour was browser-specific ? I can't help but thinking that the event propagation may be different on another browser. I couldn't find a clear answer in the doc, but maybe I missed something. Thanks for reading this post ! Mathieu AGAR -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How does Google earn money from GWT?
@Frank A I hate stupid spammy sites like yours that steal content and load their site with ads. Here's the original source of the IO session Me too. Didn't have the proper original link. Sorry about that. Please don't accuse me though without knowing the facts first. But I do hate those sites too so your are off the hook. http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html http://dl.google.com/io/2009/pres/Th_0200_GoogleWebToolkitArchitecture-BestPracticesForArchitectingYourGWTApp.pdf -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ClassNotFoundError
I should also add that I have imported the following classes from the same package as BlobstoreInputStream and they work. import com.google.appengine.api.blobstore.BlobKey; import com.google.appengine.api.blobstore.BlobstoreService; import com.google.appengine.api.blobstore.BlobstoreServiceFactory; -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Issues with GWT + GAE
I'm not sure whether I should ask it here or in the GAE group.. I'm trying to launch an application that uses GWT and GAE. I'm using Maven and Netbeans. First I was launching the app with mvn gwt:run. It worked well until I started to use the GAE apis in my code (It does make sense, since the gwt plugin for Maven doesn't do anything with GAE as far as I know). After some research, I found out that now I need to run the app with mvn gae:run, this way I'm invoking the GAE plugin, which will set up the GAE environment for me. First issue: After that, I noticed the GWT compiler started to compile my java classes to Javascript. That didn't happen before when I wasn't using GAE. Do I really have to run the JS compiler in order to run the app with GAE? Anyway, after the compilation finished I received this message: The server is running at http://localhost:8080/ So I tried to open this URL on the browser and received this message: GWT module 'crystalpoll' may need to be (re)compiled After more research, I found a forum post saying that it's missing the ?gwt.codesrv url parameter, so I copied it from the URL I used to access before and now I have: http://localhost:8080/CrystalPoll.html?gwt.codesvr=127.0.0.1:9997 But it gives me: Plugin failed to connect to hosted mode server at 127.0.0.1:9997 Any ideas? -- Magno Machado Paulo http://blog.magnomachado.com.br http://code.google.com/p/emballo/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JSONP: Overlays with Optional Attributes (HostedModeException's), How?
Thanks André, Indeed, you are correct that Production Mode can detect a problem when attempting to parse out a null value. This I already knew :) The problem lies a little deeper... Hopefully others can help me with this plase :) 1) This HostedModeException is very annoying. Null (or in JavaScript terms 'undefined') is a valid value for my JavaScript/JSON attributes. I want a way where if the darn thing is undefined return null... don't throw a HostedModeException - I also tried in jsni if(this.attribute){ return this.attribute; } else { return undefined } but the exception is still thrown. 2) There is no documentation about how this will behave in production? Will it just return null? I don't know how I can ensure consistency between dev and production modes :'( Thanks for reading :) 2010/8/2 André Moraes andr...@gmail.com 2. According to the GWT doco, these HostedModeException only occur in Dev mode, and never thrown in production mode. So what happens when running in Production Mode? This is because in production mode you are running only JavaScript and javascript don't do typecheck. In dev mode the error happens because it must convert the returned value (undefined in this case) to a valid Java type (int in this case). Here is all the code for my class: -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Error on execution
Hi! I'm still trying to build my project, and after several searches, i found a really nice project. After the adjustments, the system show a error message (attached). How i solve this? Thanks for all! :D -- Diego Venuzka -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. attachment: imagem3.GIF
Re: JSONP: Overlays with Optional Attributes (HostedModeException's), How?
1) This HostedModeException is very annoying. Null (or in JavaScript terms 'undefined') is a valid value for my JavaScript/JSON attributes. I want a way where if the darn thing is undefined return null... don't throw a HostedModeException - I also tried in jsni if(this.attribute){ return this.attribute; } else { return undefined } but the exception is still thrown. in your Jsni instead of if (this.attribute) { return this.attribute; } else { return undefined; } try if (this.attribute) { return this.attribute; } else { return null; } In javascript, null and undefined are two differente things. When something is null, this means that an variable is defined and its value is null; If something is undefined that means there is no variable with that name. the statment: if (this.attribute) works because when in a boolean context, undefined is evaluated to false. Just like C where 0 is false and everything else is true. To solve the int problem, try to change the return type to Object and then check if the returned value is null. There is no way to return null in java if the return type of a method is a primitive int; I belive that since you are returning null from JSNI, the HostedMode will be smart enough to cast javascript null to java null. :) 2) There is no documentation about how this will behave in production? Will it just return null? I don't know how I can ensure consistency between dev and production modes :'( In production mode the javascript rules applies, so this probably will trigger an error in your browser. When using JSNI method is necessary to think in two different worlds (java and javascript). Check this link, maybe will help with the javascript type system: http://www.java2s.com/Tutorial/JavaScript/0100__Number-Data-Type/PrimitiveTypes.htm Hope it helps. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Error on execution (correct)
Hi! I'm still trying to build my project, and after several searches, i found a really nice project, and i will use it to build my system. After the adjustments, the system show this error message: *GWT module br.com.site.sistema.Main may need to be (re)compiled. * How i solve this? :S Thanks for all! :D -- Diego Venuzka -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JSONP: Overlays with Optional Attributes (HostedModeException's), How?
Thank's again André :) I've made some progress. you'r suggestion to use Integer and not primitive int was bang on the mark! :) Unfornately autoboxing was masking some of my problems - but now I have learnt the error's of my ways :) Now I am happily using Integer with and without null values... public final native Integer getCode()/*-{ return this.code; }-*/; HOWEVER, Double double won't work. Double works with null but not a valid javascript Number... and vice-a-vera with double. I've looked at all the documentation... going crazy to tell you the truth over such a small simple issue.. but your helps been great THANK YOU! :) --AH 2010/8/3 André Moraes andr...@gmail.com 1) This HostedModeException is very annoying. Null (or in JavaScript terms 'undefined') is a valid value for my JavaScript/JSON attributes. I want a way where if the darn thing is undefined return null... don't throw a HostedModeException - I also tried in jsni if(this.attribute){ return this.attribute; } else { return undefined } but the exception is still thrown. in your Jsni instead of if (this.attribute) { return this.attribute; } else { return undefined; } try if (this.attribute) { return this.attribute; } else { return null; } In javascript, null and undefined are two differente things. When something is null, this means that an variable is defined and its value is null; If something is undefined that means there is no variable with that name. the statment: if (this.attribute) works because when in a boolean context, undefined is evaluated to false. Just like C where 0 is false and everything else is true. To solve the int problem, try to change the return type to Object and then check if the returned value is null. There is no way to return null in java if the return type of a method is a primitive int; I belive that since you are returning null from JSNI, the HostedMode will be smart enough to cast javascript null to java null. :) 2) There is no documentation about how this will behave in production? Will it just return null? I don't know how I can ensure consistency between dev and production modes :'( In production mode the javascript rules applies, so this probably will trigger an error in your browser. When using JSNI method is necessary to think in two different worlds (java and javascript). Check this link, maybe will help with the javascript type system: http://www.java2s.com/Tutorial/JavaScript/0100__Number-Data-Type/PrimitiveTypes.htm Hope it helps. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SerializationException with GWT 2.0.4 and iCal4J
Hello Tom, thanks for your answer. I use Java Date class in my data transfer objects classes on the client side (GWT side) of the code, and I already tried IsSerializable instead of Serialisazable. iCal4J is an external library for iCalendar objcets @see (http:// wiki.modularity.net.au/ical4j/index.php?title=Main_Page), therefore I must use it on the server side of the code, no possibility for changing it. However, to avoid issues I use data transfer objects on the client side having GWT compatible POJO design like described in article http://code.google.com/intl/de/webtoolkit/articles/ using_gwt_with_hibernate.html. The only package where I use iCal4J objects is in package mydomain.server which implements the iCal4J services. So, its still not clear to me why the SerializationException is thrown when I call the service. Bernhard On 2 Aug., 20:12, Thomas Dvornik amp...@gmail.com wrote: Hey Bernhard, Not having a default constructor would defiantly cause a problem. Why don't you use java.util.Date? You could also create your own Date class and just pull the information you need. Also, I would recommend using GWT's IsSerializable instead of Serializable, and put all classes passed between the client and server in the shared package. Although these aren't necessary, I think it follow the GWT standards. Tom On Aug 1, 8:14 am, bernhard unger.bernh...@googlemail.com wrote: Hallo all, I am using GWT 2.0.4 and try to implement a service that handles with iCal4J calendar objects. (http://wiki.modularity.net.au/ical4j/index.php?title=Main_Page) However, when I invoke the RPC service a SerializationException is thrown: com.google.gwt.user.client.rpc.SerializationException: Type 'net.fortuna.ical4j.model.DateTime' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized. I already read the suggestion from article http://code.google.com/ intl/de/webtoolkit/articles/using_gwt_with_hibernate.html and made a CalendarDTO object for the transfer. (Additionally I read tons of post for the SerializationException problem, without finding a solution). Here is my structure of the service: package mydomain.de.client /** * The client side stub for the RPC service. */ @RemoteServiceRelativePath(calendar) public interface CalendarService extends RemoteService { public CalendarDTO getCalendarEvent();} /** * The async counterpart of codeCalendarService/code. */ public interface CalendarServiceAsync { void getCalendarEvent(AsyncCallbackCalendarDTO callback);} --- package mydomain.client.dto /* The data transfer object used on the client (GWT) side */ public class CalendarDTO implements Serializable { private static final long serialVersionUID = 1L; private Date date; private String name; private String uid; public CalendarDTO() {}; public CalendarDTO(Date date, String name, String uid) { this.date = date; this.name = name; this.uid = uid; } ... setter and getter} - package mydomain.domain /* The domain class for the calendar */ public class MyCalendar implements Serializable { private static final long serialVersionUID = 9054803484652745548L; private Date eventDate; private String eventName; private String uid; public MyCalendar() {}; public MyCalendar(CalendarDTO calendarDTO) { eventDate = calendarDTO.getDate(); eventName = calendarDTO.getName(); uid = calendarDTO.getUid(); } ... getter and setter ...} - package mydomain.server /** * The server side implementation of the RPC service. */ //@SuppressWarnings(serial) public class CalendarServiceImpl extends RemoteServiceServlet implements CalendarService { private static final long serialVersionUID = -7306504057898287672L; . public CalendarDTO getCalendarEvent() { MyCalendar myCalendar = new MyCalendar(); setMyCalendar(myCalendar); // Do iCal4J stuff CalendarDTO calendarDTO = new CalendarDTO(); calendarDTO.setDate(myCalendar.getEventDate()); calendarDTO.setName(myCalendar.getEventName()); calendarDTO.setUid(myCalendar.getUid()); return calendarDTO; } - For my
Re: [gwt-contrib] Re: Make GWT template javascript suitable for XHTML
The best way would be to upload a patch to http:// gwt-code-reviews.appspot.com/ . That makes it much easier to understand the diffs. Le 1 août 2010 11:07, Henri hfman...@gmail.com a écrit : I updated function computeScriptBase() in IFrameTemplate.js to work with DOM javascript functions instead of document.write, which seems to work, and would like you to look at it. How can I send this file to you? On Jul 23, 3:17 pm, Joel Webber j...@google.com wrote: We've tried to get rid of the document.write() tricks before, but with no success. There's always some squirrely case that crops on (especially on IE) that's forced us to put them back in. There are also a couple of specific corner cases that rely on document.write(), which would need to be preserved: 1. computeScriptBase() uses it to find the current script element, so it can compute the base url from which it was loaded. 2. It's used to determine when script injection (i.e., script tags referenced in the .gwt.xml file) is done. The above two cases are probably impossible to solve without document.write(), though I'm certainly open to ideas. Assuming that's correct, it would mean you'd have to remove automatic script base detection and disable script injection. As much as I'd like to do that, we can't do so without breaking many existing apps. If you really must have XHTML support (something I've never found any actual utility in personally), then probably the better approach would be to design a different linker for it that explicitly removes the above features. Le 22 juillet 2010 05:28, Henri hfman...@gmail.com a écrit : Hello, Currently the template javascript files IFrameTemplate.js, SingleScriptTemplate.js, and XSTemplate.js in com/google/gwt/core/ linker and HostedModeTemplate.js in com/google/gwt/core/ext/linker/ impl use document.write to manipulate the HTML page. This is not allowed in XHTML. I changed IFrameTemplate.js so it now uses equivalent DOM statements instead and that is working. XHTML documents are useful since one can use embedded SVG and MathML. If you are interested I can send the modified IFrameTemplate.js to you to check out if I did it the right way. Then we can update the other template javascript files. Hope to hear from you! Kind regards, Henri Manson -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Enhancement for issue 4870 (issue732801)
LGTM with a nit. http://gwt-code-reviews.appspot.com/732801/diff/1/2 File user/src/com/google/gwt/user/client/rpc/StatusCodeException.java (right): http://gwt-code-reviews.appspot.com/732801/diff/1/2#newcode47 user/src/com/google/gwt/user/client/rpc/StatusCodeException.java:47: /** the formatting of this comment start is off. http://gwt-code-reviews.appspot.com/732801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Enhancement for issue 4870 (issue732801)
http://gwt-code-reviews.appspot.com/732801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Enhancement for issue 4870 (issue732801)
lgtm http://gwt-code-reviews.appspot.com/732801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: First pass at keyboard navigation (currently only for CellTable) (issue710802)
http://gwt-code-reviews.appspot.com/710802/diff/1/9 File user/src/com/google/gwt/user/cellview/client/CellTable.java (right): http://gwt-code-reviews.appspot.com/710802/diff/1/9#newcode527 user/src/com/google/gwt/user/cellview/client/CellTable.java:527: focusable.focus(); I think we should only focus on user initiated events. If we focus on the table on initialization, it may steal focus from another widget, such as a search box. http://gwt-code-reviews.appspot.com/710802/diff/1/9#newcode757 user/src/com/google/gwt/user/cellview/client/CellTable.java:757: view.setFocus(); SGTM http://gwt-code-reviews.appspot.com/710802/diff/1/12 File user/src/com/google/gwt/user/cellview/client/PagingListViewPresenter.java (right): http://gwt-code-reviews.appspot.com/710802/diff/1/12#newcode486 user/src/com/google/gwt/user/cellview/client/PagingListViewPresenter.java:486: view.setFocus(); I missed that in the JavaDoc comment on setFocus(). Even though this is all package protected, the method name is a little misleading. Can we rename it to resetFocus()? http://gwt-code-reviews.appspot.com/710802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Enhancement for issue 4870 (issue711802)
Reviewers: zundel, Description: Enhancement for issue 4870 Please review this at http://gwt-code-reviews.appspot.com/711802/show Affected files: M user/src/com/google/gwt/user/client/rpc/StatusCodeException.java Index: user/src/com/google/gwt/user/client/rpc/StatusCodeException.java === --- user/src/com/google/gwt/user/client/rpc/StatusCodeException.java (revision 8450) +++ user/src/com/google/gwt/user/client/rpc/StatusCodeException.java (working copy) @@ -23,16 +23,25 @@ */ public class StatusCodeException extends InvocationException { private final int statusCode; + private final String encodedResponse; /** * Construct an exception with the given status code and description. * * @param statusCode the HTTP status code to report - * @param message a message to report + * @param encodedResponse the HTTP response message to report */ - public StatusCodeException(int statusCode, String message) { -super(message); + public StatusCodeException(int statusCode, String encodedResponse) { +super(statusCode + + encodedResponse); this.statusCode = statusCode; +this.encodedResponse = encodedResponse; + } + + /** + * Returns the response message associated with the failed request. + */ + public String getEncodedResponse() { +return encodedResponse; } /** @@ -41,5 +50,4 @@ public int getStatusCode() { return statusCode; } -} - +} \ No newline at end of file -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Enhancement for issue 4870 (issue711802)
lgtm http://gwt-code-reviews.appspot.com/711802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: First pass at keyboard navigation (currently only for CellTable) (issue710802)
http://gwt-code-reviews.appspot.com/710802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Add a file check to handle edge cases like broken symbolic links when scanning directories for r... (issue711803)
Reviewers: scottb, Description: Add a file check to handle edge cases like broken symbolic links when scanning directories for resources. Review by: sco...@google.com Please review this at http://gwt-code-reviews.appspot.com/711803/show Affected files: M dev/core/src/com/google/gwt/dev/resource/impl/DirectoryClassPathEntry.java M dev/core/src/com/google/gwt/dev/resource/impl/FileResource.java Index: dev/core/src/com/google/gwt/dev/resource/impl/DirectoryClassPathEntry.java === --- dev/core/src/com/google/gwt/dev/resource/impl/DirectoryClassPathEntry.java (revision 8450) +++ dev/core/src/com/google/gwt/dev/resource/impl/DirectoryClassPathEntry.java (working copy) @@ -81,7 +81,7 @@ private void descendToFindResources(TreeLogger logger, PathPrefixSet pathPrefixSet, MapAbstractResource, PathPrefix resources, File dir, String dirPath) { -assert (dir.isDirectory()); +assert (dir.isDirectory()) : dir.toString() + is not a directory; // Assert: this directory is included in the path prefix set. @@ -99,7 +99,7 @@ Messages.NOT_DESCENDING_INTO_DIR.log(logger, child.getAbsolutePath(), null); } - } else { + } else if (child.isFile()) { PathPrefix prefix = null; if ((prefix = pathPrefixSet.includesResource(childPath)) != null) { Messages.INCLUDING_FILE.log(logger, childPath, null); @@ -108,6 +108,8 @@ } else { Messages.EXCLUDING_FILE.log(logger, childPath, null); } + } else { +Messages.EXCLUDING_FILE.log(logger, childPath, null); } } } Index: dev/core/src/com/google/gwt/dev/resource/impl/FileResource.java === --- dev/core/src/com/google/gwt/dev/resource/impl/FileResource.java (revision 8450) +++ dev/core/src/com/google/gwt/dev/resource/impl/FileResource.java (working copy) @@ -31,7 +31,7 @@ public FileResource(DirectoryClassPathEntry classPathEntry, String abstractPathName, File file) { -assert (file.isFile()); +assert (file.isFile()) : file.toString() + is not a file.; this.classPathEntry = classPathEntry; this.abstractPathName = abstractPathName; this.file = file; -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: First pass at keyboard navigation (currently only for CellTable) (issue710802)
LGTM http://gwt-code-reviews.appspot.com/710802/diff/1013/10009 File user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java (right): http://gwt-code-reviews.appspot.com/710802/diff/1013/10009#newcode536 user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java:536: Extra space. http://gwt-code-reviews.appspot.com/710802/diff/1013/10009#newcode564 user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java:564: System.out.println(keyboardOpen); Remove SOP http://gwt-code-reviews.appspot.com/710802/diff/1013/10009#newcode566 user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java:566: //if (isOpen()) { Remove comments or add a TODO. http://gwt-code-reviews.appspot.com/710802/diff/1013/10009#newcode572 user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java:572: System.out.println(keyboardUp); Remove SOP http://gwt-code-reviews.appspot.com/710802/diff/1013/10009#newcode575 user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java:575: if (prev == keyboardSelectedElement) { Add a TODO to move focus to the parent node. http://gwt-code-reviews.appspot.com/710802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: First pass at keyboard navigation (currently only for CellTable) (issue710802)
Actually CellTreeNodeView is still work in progress and won't be submitted as part of the current CL. Sorry for the confusion. On Mon, Aug 2, 2010 at 12:14 PM, jlaba...@google.com wrote: LGTM http://gwt-code-reviews.appspot.com/710802/diff/1013/10009 File user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java (right): http://gwt-code-reviews.appspot.com/710802/diff/1013/10009#newcode536 user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java:536: Extra space. http://gwt-code-reviews.appspot.com/710802/diff/1013/10009#newcode564 user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java:564: System.out.println(keyboardOpen); Remove SOP http://gwt-code-reviews.appspot.com/710802/diff/1013/10009#newcode566 user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java:566: //if (isOpen()) { Remove comments or add a TODO. http://gwt-code-reviews.appspot.com/710802/diff/1013/10009#newcode572 user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java:572: System.out.println(keyboardUp); Remove SOP http://gwt-code-reviews.appspot.com/710802/diff/1013/10009#newcode575 user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java:575: if (prev == keyboardSelectedElement) { Add a TODO to move focus to the parent node. http://gwt-code-reviews.appspot.com/710802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Remove 1.6isms from RequestFactory, and fix DynaTableRf (id's (issue721804)
Reviewers: bobv, Description: Remove 1.6isms from RequestFactory, and fix DynaTableRf (id's still must be Long, and at the moment it actually counts). Review by: robertvaw...@google.com Please review this at http://gwt-code-reviews.appspot.com/721804/show Affected files: M samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/domain/Person.java M user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java M user/test/com/google/gwt/valuestore/client/RequestFactoryTest.java Index: samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/domain/Person.java === --- samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/domain/Person.java (revision 8450) +++ samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/domain/Person.java (working copy) @@ -19,20 +19,24 @@ * Hold relevant data for Person. */ public abstract class Person { + private static Long serial = 1L; private String description = DESC; private String name; + + private final Long id; public Person() { +id = serial++; } public String getDescription() { return description; } - public String getId() { -return name; + public Long getId() { +return id; } public String getName() { Index: user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java === --- user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java (revision 8450) +++ user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java (working copy) @@ -94,7 +94,6 @@ return rtn; } - @Override public String decodeAndInvokeRequest(String encodedRequest) throws Exception { try { return processJsonRequest(encodedRequest).toString(); @@ -524,7 +523,6 @@ return !BLACK_LIST.contains(p.getName()); } - @Override public void setOperationRegistry(OperationRegistry operationRegistry) { this.operationRegistry = operationRegistry; } Index: user/test/com/google/gwt/valuestore/client/RequestFactoryTest.java === --- user/test/com/google/gwt/valuestore/client/RequestFactoryTest.java (revision 8450) +++ user/test/com/google/gwt/valuestore/client/RequestFactoryTest.java (working copy) @@ -40,10 +40,9 @@ delayTestFinish(5000); req.simpleFooRequest().findSimpleFooById(999L).fire( new ReceiverSimpleFooRecord() { - @Override public void onSuccess(SimpleFooRecord response, SetSyncResult syncResult) { -assertEquals((int) 42, (int) response.getIntId()); +assertEquals(42, (int) response.getIntId()); assertEquals(GWT, response.getUserName()); assertEquals(8L, (long) response.getLongField()); assertEquals(com.google.gwt.valuestore.shared.SimpleEnum.FOO, -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Remove 1.6isms from RequestFactory, and fix DynaTableRf (id's (issue721804)
LGTM. http://gwt-code-reviews.appspot.com/721804/diff/1/2 File samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/domain/Person.java (right): http://gwt-code-reviews.appspot.com/721804/diff/1/2#newcode31 samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/domain/Person.java:31: id = serial++; This seems kind of non-deterministic. I'll follow up in my next patch to you with a change to to pass this in as a constructor argument from where the Person objects are created. http://gwt-code-reviews.appspot.com/721804/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding support for non-propagating events in Cell based widgets. In modern browsers, we make the... (issue720801)
http://gwt-code-reviews.appspot.com/720801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Change the way we include the User Auth files, keeping more of them (issue721803)
LGTM The problem with this approach is that it's so hugely prescriptive — there is one and only one way to deal with user auth in RequestFactory. I think it will do to get the conversation started in M3, but we'll need to find something more flexible before we ship. http://gwt-code-reviews.appspot.com/721803/diff/1/7 File bikeshed/src/com/google/gwt/sample/expenses/server/domain/GaeUserInformation.java (right): http://gwt-code-reviews.appspot.com/721803/diff/1/7#newcode72 bikeshed/src/com/google/gwt/sample/expenses/server/domain/GaeUserInformation.java:72: // Does not work - ID is based on the user This should be JavaDoc (and a little bit more descriptive) http://gwt-code-reviews.appspot.com/721803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Clean up JdtCompiler by moving out test-only code. (issue731801)
LGTM http://gwt-code-reviews.appspot.com/731801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Removes the unnecessary ErrorCompilationUnit. (issue730801)
LGTM http://gwt-code-reviews.appspot.com/730801/diff/2001/3003 File dev/core/src/com/google/gwt/dev/javac/CompilationUnitImpl.java (right): http://gwt-code-reviews.appspot.com/730801/diff/2001/3003#newcode74 dev/core/src/com/google/gwt/dev/javac/CompilationUnitImpl.java:74: return hasErrors; Nit: it's a little weird that the getter doesn't match the field name. Maybe use hasErrors for both? It would also then match the JDT's CompilationResult, which has a hasErrors() method. http://gwt-code-reviews.appspot.com/730801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Support for custom MenuItem, MenuItemSeparator and MenuBar. (issue702803)
Actually, one tweak if you don't mind. http://gwt-code-reviews.appspot.com/702803/diff/1/3 File user/src/com/google/gwt/uibinder/elementparsers/MenuBarParser.java (right): http://gwt-code-reviews.appspot.com/702803/diff/1/3#newcode36 user/src/com/google/gwt/uibinder/elementparsers/MenuBarParser.java:36: if (elem.hasAttribute(vertical)) { If you add a check here that the class being parsed is actually MenuBar, we'll be a bit friendlier to its subclasses as well. http://gwt-code-reviews.appspot.com/702803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Change the way we include the User Auth files, keeping more of them (issue721803)
On 2010/08/02 17:32:43, Ray Ryan wrote: LGTM The problem with this approach is that it's so hugely prescriptive —nbsp;there is one and only one way to deal with user auth in RequestFactory. I think it will do to get the conversation started in M3, but we'll need to find something more flexible before we ship. Can you tell me more about what you mean here? This CL shouldn't actually have changed anything as far as the ability to configure the User services - the only change is that the base implementation is now checked into GWT rather than generated. In order to use a different authentication method, you would still extend the UserInformation class, and use the web.xml file to indicate that the app should use your class instead. You still have the ability to write your own widgets that use getUserInformationRequest (rather than (or in addition to) using the LoginWidget. Am I missing something else that you had in mind? http://gwt-code-reviews.appspot.com/721803/diff/1/7 File bikeshed/src/com/google/gwt/sample/expenses/server/domain/GaeUserInformation.java (right): http://gwt-code-reviews.appspot.com/721803/diff/1/7#newcode72 bikeshed/src/com/google/gwt/sample/expenses/server/domain/GaeUserInformation.java:72: // Does not work - ID is based on the user This should be JavaDoc (and a little bit more descriptive) Done http://gwt-code-reviews.appspot.com/721803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Change the way we include the User Auth files, keeping more of them (issue721803)
http://gwt-code-reviews.appspot.com/721803/diff/1/7 File bikeshed/src/com/google/gwt/sample/expenses/server/domain/GaeUserInformation.java (right): http://gwt-code-reviews.appspot.com/721803/diff/1/7#newcode72 bikeshed/src/com/google/gwt/sample/expenses/server/domain/GaeUserInformation.java:72: // Does not work - ID is based on the user On 2010/08/02 17:32:43, Ray Ryan wrote: This should be JavaDoc (and a little bit more descriptive) Done. http://gwt-code-reviews.appspot.com/721803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Finish modernizing the DynaTableRF sample to use an event-based application model. (issue733802)
Reviewers: Ray Ryan, Description: Finish modernizing the DynaTableRF sample to use an event-based application model. Patch by: bobv Review by: rjrjr Please review this at http://gwt-code-reviews.appspot.com/733802/show Affected files: M samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/CalendarProvider.java M samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DayCheckBox.java M samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DayFilterWidget.java M samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DayFilterWidget.ui.xml D samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DynaTableDataProvider.java M samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DynaTableRf.java M samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DynaTableRf.ui.xml M samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DynaTableWidget.java M samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DynaTableWidget.ui.xml A samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/NavBar.java M samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/SchoolCalendarWidget.java A samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/events/FilterChangeEvent.java A samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/events/FilterChangeHandler.java A samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/events/NavigationEvent.java A samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/events/NavigationEventHandler.java A samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/events/RequestRowDataEvent.java A samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/events/RequestRowDataHandler.java A samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/events/RowDataEvent.java A samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/events/RowDataHandler.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Change the way we include the User Auth files, keeping more of them (issue721803)
On 2010/08/02 17:55:43, unnurg wrote: http://gwt-code-reviews.appspot.com/721803/diff/1/7 File bikeshed/src/com/google/gwt/sample/expenses/server/domain/GaeUserInformation.java (right): http://gwt-code-reviews.appspot.com/721803/diff/1/7#newcode72 bikeshed/src/com/google/gwt/sample/expenses/server/domain/GaeUserInformation.java:72: // Does not work - ID is based on the user On 2010/08/02 17:32:43, Ray Ryan wrote: This should be JavaDoc (and a little bit more descriptive) Done. Spoke to Ray offline and the objection he had was to having the getUserInformationRequest() function in the RequestFactory interface, rather than having it explicitly added in the FooRequestFactory interface. This was easy to change, so just went ahead and did it in this change - patch being uploaded now... http://gwt-code-reviews.appspot.com/721803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add the ability to change the size of a widget in the (issue719802)
http://gwt-code-reviews.appspot.com/719802/diff/1/2 File user/src/com/google/gwt/user/client/ui/DockLayoutPanel.java (right): http://gwt-code-reviews.appspot.com/719802/diff/1/2#newcode315 user/src/com/google/gwt/user/client/ui/DockLayoutPanel.java:315: public void setWidgetSize(Widget widget, int size) { This needs to be a double (all units except PX can be non-integral). http://gwt-code-reviews.appspot.com/719802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Change the way we include the User Auth files, keeping more of them (issue721803)
On 2010/08/02 18:10:21, unnurg wrote: On 2010/08/02 17:55:43, unnurg wrote: http://gwt-code-reviews.appspot.com/721803/diff/1/7 File bikeshed/src/com/google/gwt/sample/expenses/server/domain/GaeUserInformation.java (right): http://gwt-code-reviews.appspot.com/721803/diff/1/7#newcode72 bikeshed/src/com/google/gwt/sample/expenses/server/domain/GaeUserInformation.java:72: // Does not work - ID is based on the user On 2010/08/02 17:32:43, Ray Ryan wrote: This should be JavaDoc (and a little bit more descriptive) Done. Spoke to Ray offline and the objection he had was to having the getUserInformationRequest() function in the RequestFactory interface, rather than having it explicitly added in the FooRequestFactory interface. This was easy to change, so just went ahead and did it in this change - patch being uploaded now... Actually - that may have been a lie - debugging now... http://gwt-code-reviews.appspot.com/721803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Change the way we include the User Auth files, keeping more of them (issue721803)
http://gwt-code-reviews.appspot.com/721803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Change the way we include the User Auth files, keeping more of them (issue721803)
On 2010/08/02 18:14:47, unnurg wrote: On 2010/08/02 18:10:21, unnurg wrote: On 2010/08/02 17:55:43, unnurg wrote: http://gwt-code-reviews.appspot.com/721803/diff/1/7 File bikeshed/src/com/google/gwt/sample/expenses/server/domain/GaeUserInformation.java (right): http://gwt-code-reviews.appspot.com/721803/diff/1/7#newcode72 bikeshed/src/com/google/gwt/sample/expenses/server/domain/GaeUserInformation.java:72: // Does not work - ID is based on the user On 2010/08/02 17:32:43, Ray Ryan wrote: This should be JavaDoc (and a little bit more descriptive) Done. Spoke to Ray offline and the objection he had was to having the getUserInformationRequest() function in the RequestFactory interface, rather than having it explicitly added in the FooRequestFactory interface. This was easy to change, so just went ahead and did it in this change - patch being uploaded now... Actually - that may have been a lie - debugging now... Nope - it was the truth - it seems the issue I was seeing was due to old generated files somehow - a clean build seems to work fine. http://gwt-code-reviews.appspot.com/721803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Finish modernizing the DynaTableRF sample to use an event-based application model. (issue733802)
http://gwt-code-reviews.appspot.com/733802/diff/1/3 File samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DayCheckBox.java (right): http://gwt-code-reviews.appspot.com/733802/diff/1/3#newcode38 samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DayCheckBox.java:38: Note that in a real app we would need to think about a way to de-register when detached. http://gwt-code-reviews.appspot.com/733802/diff/1/5 File samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DayFilterWidget.ui.xml (right): http://gwt-code-reviews.appspot.com/733802/diff/1/5#newcode16 samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DayFilterWidget.ui.xml:16: ui:with type=com.google.gwt.event.shared.HandlerManager field=eventBus/ui:with This is still hacky. It would be better to put a @UiFactory method in DayFilterWidget: @UiFactory DayCheckBox makeCheckBox If that's not practical, then I withdraw my objection to DynaTableEventBus.get(), especially if you do something like: /** * Instantiate a DayCheckBox using the default event bus * at {...@link DynaTableEventBus#get}. A production app * would be better off using a dependency injection * framework, like a * href=http://code.google.com/p/google-gin/;Google GIN/a */ public DayCheckBox() { DayCheckBox(DynaTableEventBus.get()); } public DayCheckBox(HandlerManager eventBus) { this.eventBus = eventBus; } http://gwt-code-reviews.appspot.com/733802/diff/1/8 File samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DynaTableRf.ui.xml (right): http://gwt-code-reviews.appspot.com/733802/diff/1/8#newcode18 samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DynaTableRf.ui.xml:18: ui:with type=com.google.gwt.event.shared.HandlerManager field=eventBus / Another spot to prefer @UiFactory or @UiField(provided=true) http://gwt-code-reviews.appspot.com/733802/diff/1/16 File samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/events/NavigationEventHandler.java (right): http://gwt-code-reviews.appspot.com/733802/diff/1/16#newcode23 samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/events/NavigationEventHandler.java:23: public interface NavigationEventHandler extends EventHandler { Style nit, I really prefer handlers to be declared inside the appropriate event. I find it much more readable, especially for those new to our event system. So this would be NavigationEvent.Handler http://gwt-code-reviews.appspot.com/733802/diff/1/17 File samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/events/RequestRowDataEvent.java (right): http://gwt-code-reviews.appspot.com/733802/diff/1/17#newcode21 samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/events/RequestRowDataEvent.java:21: * A request for data to be fetched from the server. I wouldn't normally do this kind of thing over the event bus. Rather, the requestfactory itself would be injected into the data provider. http://gwt-code-reviews.appspot.com/733802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Change the way we include the User Auth files, keeping more of them (issue721803)
LGTM On Mon, Aug 2, 2010 at 11:26 AM, unn...@google.com wrote: On 2010/08/02 18:14:47, unnurg wrote: On 2010/08/02 18:10:21, unnurg wrote: On 2010/08/02 17:55:43, unnurg wrote: http://gwt-code-reviews.appspot.com/721803/diff/1/7 File bikeshed/src/com/google/gwt/sample/expenses/server/domain/GaeUserInformation.java (right): http://gwt-code-reviews.appspot.com/721803/diff/1/7#newcode72 bikeshed/src/com/google/gwt/sample/expenses/server/domain/GaeUserInformation.java:72: // Does not work - ID is based on the user On 2010/08/02 17:32:43, Ray Ryan wrote: This should be JavaDoc (and a little bit more descriptive) Done. Spoke to Ray offline and the objection he had was to having the getUserInformationRequest() function in the RequestFactory interface, rather than having it explicitly added in the FooRequestFactory interface. This was easy to change, so just went ahead and did it in this change - patch being uploaded now... Actually - that may have been a lie - debugging now... Nope - it was the truth - it seems the issue I was seeing was due to old generated files somehow - a clean build seems to work fine. http://gwt-code-reviews.appspot.com/721803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Enhancement for issue 4870 (issue732801)
I didn't realize issue 4870 existed or I would have commented on it long ago. In our world, we like to set the HTTP response code to a non-SC_OK response when the RPC service throws an Exception. This way we can easily grep our access.log for failed responses. An the Exception might be whatever class of exceptions our RPC services are allowed to throw. Custom Exceptions like ValidationException, InvalidSessionException, ResourceUnavailableException. Whatever. GWT's RPC mechanisms make this impossible for two different reasons: 1) Legacy RPC ignores the response.setStatus(non-SC_OK) by re- setting it in RPCServletUtils.writeResponse() 2) deRPC doesn't reset the response.setStatus(non-SC_OK ) (which is good!) but its client-side code sees that the response is non-SC_OK and throws a StatusCodeException, making it impossible to get the Exception my code threw. (deRPC also just doesn't work in compiled mode, but that's not relevant to this thread). I posted about this back in March, and received no reply (http:// groups.google.com/group/google-web-toolkit-contributors/browse_thread/ thread/631b8c3177930913/688dd476a8d0e359?lnk=gstq=Eric +Ridge#688dd476a8d0e359). What I think is a better solution is for the server-side to *not* reset the response status, and for the client-side to examine the encodedResponse when the status is not SC_OK. If the encodedResponse is an exception, it should decode it and throw it (rather than throwing a StatusCodeException). Otherwise, it should do what this changeset does. Even in this case it's not ideal because I can't seem to find a way to decode the encodedResponse back into an Object. Anyways, if this area is receiving some attention now, please consider the above. Thanks! eric On Aug 2, 9:21 am, drfibona...@google.com wrote: Reviewers: zundel, Description:Enhancementfor issue4870 Please review this athttp://gwt-code-reviews.appspot.com/732801/show Affected files: M user/src/com/google/gwt/user/client/rpc/StatusCodeException.java Index: user/src/com/google/gwt/user/client/rpc/StatusCodeException.java === --- user/src/com/google/gwt/user/client/rpc/StatusCodeException.java (revision 8450) +++ user/src/com/google/gwt/user/client/rpc/StatusCodeException.java (working copy) @@ -23,23 +23,31 @@ */ public class StatusCodeException extends InvocationException { private final int statusCode; + private final String encodedResponse; /** * Construct an exception with the given status code and description. * * @param statusCode the HTTP status code to report - * @param message a message to report + * @param encodedResponse the HTTP response message to report */ - public StatusCodeException(int statusCode, String message) { - super(message); + public StatusCodeException(int statusCode, String encodedResponse) { + super(statusCode + + encodedResponse); this.statusCode = statusCode; + this.encodedResponse = encodedResponse; } /** + * Returns the response message associated with the failed request. + */ + public String getEncodedResponse() { + return encodedResponse; + } + +/** * Returns the status code associated with the failed request. */ public int getStatusCode() { return statusCode; } -} - +} \ No newline at end of file -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] SpeedTracerLogger: Don't throw exceptions on missed events. Instead, try to recover gracefully. (issue674805)
Reviewers: zundel, Description: SpeedTracerLogger: Don't throw exceptions on missed events. Instead, try to recover gracefully. Review by: zun...@google.com Please review this at http://gwt-code-reviews.appspot.com/674805/show Affected files: M dev/core/src/com/google/gwt/dev/util/log/speedtracer/SpeedTracerLogger.java Index: dev/core/src/com/google/gwt/dev/util/log/speedtracer/SpeedTracerLogger.java === --- dev/core/src/com/google/gwt/dev/util/log/speedtracer/SpeedTracerLogger.java (revision 8450) +++ dev/core/src/com/google/gwt/dev/util/log/speedtracer/SpeedTracerLogger.java (working copy) @@ -82,7 +82,7 @@ /** * @param data key/value pairs to add to JSON object. */ -public void addData(String[] data) { +public void addData(String ...data) { if (data != null) { assert (data.length % 2 == 0); this.data = Lists.addAll(this.data, data); @@ -296,26 +296,21 @@ assert (endTimeNanos = currentEvent.startTimeNanos); currentEvent.durationNanos = endTimeNanos - currentEvent.startTimeNanos; -ListEvent missedEvents = Lists.create(); - -// TODO(zundel): Why not just assert in this case? while (currentEvent.type != type !threadPendingEvents.isEmpty()) { // Missed a closing end for one or more frames! Try to sync back up. - missedEvents = Lists.add(missedEvents, currentEvent); + currentEvent.addData(Missed, This event was closed without an explicit call to SpeedTracerLogger.end()); currentEvent = threadPendingEvents.pop(); + assert (endTimeNanos = currentEvent.startTimeNanos); currentEvent.durationNanos = endTimeNanos - currentEvent.startTimeNanos; } + +if (threadPendingEvents.isEmpty() currentEvent.type != type) { + currentEvent.addData(Missed, Fell off the end of the threadPending events); +} + currentEvent.addData(data); if (threadPendingEvents.isEmpty()) { eventsToWrite.add(currentEvent); -} -if (missedEvents.size() 0) { - StringBuilder sb = new StringBuilder(); - sb.append(SpeedTracerLogger missing end() calls for the following events: ); - for (Event event : missedEvents) { -sb.append(event.type.getName()); - } - throw new IllegalStateException(sb.toString()); } } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: SpeedTracerLogger: Don't throw exceptions on missed events. Instead, try to recover gracefully. (issue674805)
http://gwt-code-reviews.appspot.com/674805/diff/1/2 File dev/core/src/com/google/gwt/dev/util/log/speedtracer/SpeedTracerLogger.java (right): http://gwt-code-reviews.appspot.com/674805/diff/1/2#newcode310 dev/core/src/com/google/gwt/dev/util/log/speedtracer/SpeedTracerLogger.java:310: This is no worse than before, and certainly it is not throwing exceptions which I am sure causes grief, but I want to publicly note that it isn't guaranteed to safely unwind the stack. (I've been using the logger to nest events of the same type) http://gwt-code-reviews.appspot.com/674805/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Change the way we include the User Auth files, keeping more of them (issue721803)
http://gwt-code-reviews.appspot.com/721803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Put in a new fix for DevMode logging that uses bytecode rewriting rather than swapping out (issue725801)
LGTM http://gwt-code-reviews.appspot.com/725801/diff/12001/13006 File dev/core/src/com/google/gwt/dev/shell/rewrite/UseMirroredClasses.java (right): http://gwt-code-reviews.appspot.com/725801/diff/12001/13006#newcode43 dev/core/src/com/google/gwt/dev/shell/rewrite/UseMirroredClasses.java:43: { Make this is a static initialization block static { ... } http://gwt-code-reviews.appspot.com/725801/diff/12001/13006#newcode48 dev/core/src/com/google/gwt/dev/shell/rewrite/UseMirroredClasses.java:48: com/google/gwt/logging/impl/DevModeLoggingFixes.getName); For compile time safety IDE refactoring, you could get the class+method name from, say: DevModeLoggingFixes.class.getName().replace(., /) + .getName http://gwt-code-reviews.appspot.com/725801/diff/12001/13012 File user/src/com/google/gwt/logging/client/LogConfiguration.java (right): http://gwt-code-reviews.appspot.com/725801/diff/12001/13012#newcode63 user/src/com/google/gwt/logging/client/LogConfiguration.java:63: root.setUseParentHandlers(false); A quick comments here as to why we need to set this to false would be good http://gwt-code-reviews.appspot.com/725801/diff/12001/13013 File user/src/com/google/gwt/logging/impl/DevModeLoggingFixes.java (right): http://gwt-code-reviews.appspot.com/725801/diff/12001/13013#newcode25 user/src/com/google/gwt/logging/impl/DevModeLoggingFixes.java:25: * This class is used by the byte code rewriting which happens in DevMode only. Add link to the rewriting class for reference, or an @see javadoc if you prefer tiny nit, smaller than a nit below: prefix which - prefix, which http://gwt-code-reviews.appspot.com/725801/diff/12001/13013#newcode36 user/src/com/google/gwt/logging/impl/DevModeLoggingFixes.java:36: * Replaces all logger.getName() calls Also mention in the javadoc what the rewrite does. http://gwt-code-reviews.appspot.com/725801/diff/12001/13013#newcode39 user/src/com/google/gwt/logging/impl/DevModeLoggingFixes.java:39: return logger.getName().replace(GWT.getUniqueThreadId() + ., ); delegate to removeLoggerPrefix() http://gwt-code-reviews.appspot.com/725801/diff/12001/13013#newcode73 user/src/com/google/gwt/logging/impl/DevModeLoggingFixes.java:73: return name.replace(getLoggerPrefix(), ); We could potentially replace additional occurrences of the prefix in the user's logger name, although admittedly unlikely. You could use a regex with a '^' anchor, or a simple substring() based on length of the prefix. http://gwt-code-reviews.appspot.com/725801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Made the error messages thrown in case of GWTTestCase timeouts more informative, as requested in (issue734801)
Reviewers: mmendez, Description: Made the error messages thrown in case of GWTTestCase timeouts more informative, as requested in http://code.google.com/p/google-web-toolkit/issues/detail?id=4099 Patch by: amitmanjhi Review by: mmendez Please review this at http://gwt-code-reviews.appspot.com/734801/show Affected files: M user/src/com/google/gwt/junit/JUnitShell.java Index: user/src/com/google/gwt/junit/JUnitShell.java === --- user/src/com/google/gwt/junit/JUnitShell.java (revision 8450) +++ user/src/com/google/gwt/junit/JUnitShell.java (working copy) @@ -1015,7 +1015,8 @@ + testBatchingMethodTimeoutMillis + ms.\n We have no results from:\n + messageQueue.getWorkingClients(currentTestInfo) -+ Actual time elapsed: + elapsed + seconds.\n); ++ Actual time elapsed: + elapsed + seconds.\n ++ Try increasing this timeout using the '-testMethodTimeout number' option\n); } } else if (testBeginTimeout currentTimeMillis) { double elapsed = (currentTimeMillis - testBeginTime) / 1000.0; @@ -1023,7 +1024,9 @@ The browser did not contact the server within + baseTestBeginTimeoutMillis + ms.\n + messageQueue.getUnretrievedClients(currentTestInfo) - + \n Actual time elapsed: + elapsed + seconds.\n); + + \n Actual time elapsed: + elapsed + seconds.\n + + Try increasing this timeout using the '-testBeginTimeout number' option\n + + The default value of number is 1, i.e., the server waits 1 minute or 60 seconds.\n); } // Check that we haven't lost communication with a remote host. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Clean up JdtCompiler by moving out test-only code. (issue731801)
I'm going to have to abandon this change. Turns out the api-checker tool uses this API. :( http://gwt-code-reviews.appspot.com/731801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors