Re: UiBinder and CSS located locally
Gwt access css file from relative location. Place your css file,uibinder, ui.xml file in same directory. It picks up the style from inline style sheet within the ui.xml file. Access the style property using styleName={style.sample}. //example ?xml version=1.0 encoding=UTF-8? ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' ui:style src=xyz.css / g:DockLayoutPanel unit='EM' g:west size='10' g:HTMLPanel styleName={style.sample} ul liListItem/li liListItem1/li liListItem2/li /ul /g:HTMLPanel /g:west /g:DockLayoutPanel /ui:UiBinder S. Abraham www.DataStoreGwt.com Persist objects directly in GAE On Oct 12, 1:29 am, SigmaBlu sigmabl...@gmail.com wrote: Is there a way to link a css file to the ui.xml file? For example, I am able to link it by doing the following: ui:style src=xyz.css / The css is located within the same directory as my UiBinder Class and my ui.xml file; so it picks up that css in its root directory. Lets say that the source of my css file is located..here C:\Program Files\Users\MyUserName\Desktop\Poject\CSS\xyz.css How can i let the ui.xml file know that its source (ui:style src=xyz.css /) is located in the above directory (C:\Program Files \Users\MyUserName\Desktop\Poject\CSS\xyz.css)? Regards, Sigma -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Uncaught exception escaped
Hi, Ok, How can i change it, please? On 11 oct, 18:20, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: It seems rows is null. 2011/10/11 SCK guyedj...@gmail.com Hi, This is the line 42 : for (MyUser myUser : rows) 42 for (MyUser myUser : rows){ 43 this.setText(i, 0, myUser.getId()); 44 this.setText(i, 1, myUser.getUsername()); 45 this.setText(i, 2, myUser.getNumberOfHits()); 46 i++; 47 } this.input = input; } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.- Masquer le texte des messages précédents - - Afficher le texte des messages précédents - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
the style write in ui.xml does not work
i write a style class in ui.xml: .test{ color:red; } then,i set a button's className as test: btn.setStyleName(test,true); now,in the browser the button''s text is not red. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: the style write in ui.xml does not work
have you followed this way?? http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Programmatic_access -- Sarjith On Wed, Oct 12, 2011 at 1:01 PM, wahaha il...@yahoo.com.cn wrote: i write a style class in ui.xml: .test{ color:red; } then,i set a button's className as test: btn.setStyleName(test,true); now,in the browser the button''s text is not red. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Full page in GWT or just parts?
Thanks for the feedback. The main problem will be Search Engine. You will have to rely on htmlunit to fix it (generates static version of webpages). The search engine result isn't important. What do you main by htmlUnit to fix it? you can still optimize it by including the javascript content inside your html/jsp/php page. You can use code splitting to improve it too. What do you mean by putting javascript in the html page directly? Isn't gwt bootstrapping already directly contained in html and in control of loading all the resources as such that you have to wait till gwt performed all the bootstrapping through his own js files... But it can be a lost of time if all these points are not thought before starting. In my case it concerns 3 existing gwt app's that contains code splitting and MVPC. I am setting up new html pages to change the look and feel. These app's should be one but the code splitting isn't optimal yet such that the left over becomes too big. See issue 6612 about this: (http://code.google.com/p/google-web- toolkit/issues/detail?id=6612) The advantage of having a full page gwt is also that these applications can more easily integrated later on. We released our website in full gwt (http://www.weecod.com), so it is Thanks for the link, it gives me a good example about a full page gwt app. I think I go for the full page gwt app. If it get's too slow, it's easy to change it. - Ed -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: the style write in ui.xml does not work
ok,thanks,now i have made a mistake that we can not access style rules directly in java code,we must use cssResource interface. but there is another question: interface MyStyle extends CssResource { String enabled(); String disabled(); } if the class name in ui.xml is a-b-c,then how should we write the method name? On Oct 12, 3:46 pm, Sarjith Pullithodi sarji...@gmail.com wrote: have you followed this way?? http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Pr... -- Sarjith On Wed, Oct 12, 2011 at 1:01 PM, wahaha il...@yahoo.com.cn wrote: i write a style class in ui.xml: .test{ color:red; } then,i set a button's className as test: btn.setStyleName(test,true); now,in the browser the button''s text is not red. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory / collections
On Wednesday, October 12, 2011 10:25:27 AM UTC+2, David Sanders wrote: I'm having a very similar issue where my new bars are not being persisted on the server. When I examine the list from within its setter on the server, I can see that the new bar objects are in the list but the fields are all null, even though I set them explicitly on the client. Is there something that I'm missing here? Yes, your looking at the list at the wrong time. Look at it from your persist() (or whatever it's called) method. BTW, when I try to debug RF with the dumpPayload flag it shows the payload but in an unreadable format - is there a way to set it to become readable? It's JSON, so you can easily pretty-print it (or you can look at it from your browser's developer tools, most of which show JSON in treeviews). At the top-level, O stands for operation (setters to be called on domain objects) and I for invocations (service method calls). Within O you'll find a list of proxies, with P being their properties being set. Everything is obfuscated though; you'll find the mapping either in the DeobfuscatorBuilder that the annotation processor (wherever you told it to output the source –defaults to .apt_generated in Eclipse for instance–), or in the RF implementation generated by the GWT compilation (in the -gen folder –yes, you have to recompile, or re-run DevMode, with the -gen option–). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/zhBr1pI9uCgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Full page in GWT or just parts?
The main problem will be Search Engine. You will have to rely on htmlunit to fix it (generates static version of webpages). The search engine result isn't important. What do you main by htmlUnit to fix it? HtmlUnit is a tool that embed a browser (firefox) and can execute javascript code to produce an html output. It allows you to write website in Javascript/Ajax and give something to parse to search engine which are not able to parse javascript http://code.google.com/intl/fr-FR/web/ajaxcrawling/docs/getting-started.html http://code.google.com/intl/fr-FR/web/ajaxcrawling/docs/html-snapshot.html you can still optimize it by including the javascript content inside your html/jsp/php page. You can use code splitting to improve it too. What do you mean by putting javascript in the html page directly? Isn't gwt bootstrapping already directly contained in html and in control of loading all the resources as such that you have to wait till gwt performed all the bootstrapping through his own js files... It is only to avoid an extra round trip. A typical scenario is : 1 - Client - Get HTML index Page (with scipt src=module.nocache.js ... inside) (Connection 1) 2 - Client parse the html page and get the Javascript (module.nocache.js) (Connection 2) 3 - Client parse and execute the javascript (bootstrap) 4 - Client detects browser version and retrieve correct module from server (EAZKJ23A123131.cache.js) (Connection 3) 5 - Your module will certainly need to get some data to display from the server with an RPC request (Connection 4) You can optimize two connection from this scenario : Step 1 : Instead of referencing an external javascript (module.nocache.js), directly include the js content in you html page (easy to do with jsp) Step 5 : All data dedicated to the first page can directy be included inside the html page too. You can then read those informations with JSON instead of doing a new RPC call. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Full page in GWT or just parts?
Nice. Thanks, - Ed On Wed, Oct 12, 2011 at 12:35 PM, Nicolas Antoniazzi nicolas.antonia...@gmail.com wrote: The main problem will be Search Engine. You will have to rely on htmlunit to fix it (generates static version of webpages). The search engine result isn't important. What do you main by htmlUnit to fix it? HtmlUnit is a tool that embed a browser (firefox) and can execute javascript code to produce an html output. It allows you to write website in Javascript/Ajax and give something to parse to search engine which are not able to parse javascript http://code.google.com/intl/fr-FR/web/ajaxcrawling/docs/getting-started.html http://code.google.com/intl/fr-FR/web/ajaxcrawling/docs/html-snapshot.html you can still optimize it by including the javascript content inside your html/jsp/php page. You can use code splitting to improve it too. What do you mean by putting javascript in the html page directly? Isn't gwt bootstrapping already directly contained in html and in control of loading all the resources as such that you have to wait till gwt performed all the bootstrapping through his own js files... It is only to avoid an extra round trip. A typical scenario is : 1 - Client - Get HTML index Page (with scipt src=module.nocache.js ... inside) (Connection 1) 2 - Client parse the html page and get the Javascript (module.nocache.js) (Connection 2) 3 - Client parse and execute the javascript (bootstrap) 4 - Client detects browser version and retrieve correct module from server (EAZKJ23A123131.cache.js) (Connection 3) 5 - Your module will certainly need to get some data to display from the server with an RPC request (Connection 4) You can optimize two connection from this scenario : Step 1 : Instead of referencing an external javascript (module.nocache.js), directly include the js content in you html page (easy to do with jsp) Step 5 : All data dedicated to the first page can directy be included inside the html page too. You can then read those informations with JSON instead of doing a new RPC call. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Gwt localization
Hi everyone, How can I set the DatePicker's locale to it_IT without adding support to it_IT in Module.gwt.xml? My application is so big that if I add support for another locale, the resulting war would be too big to deploy it to appengine. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/3rPa2ZhSorgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 designer installation problem in eclipse 3.6
Hi, Sorry to bother for this issue, but I just cannot resolve this problem... I am trying to install the GWT designer plugin in eclipse 3.6 (eclipse IDE for Java EE), but the GWT designer does not show up after installation in eclipse. I am using mac OS (snow leopard). I have verified with the FAQ's for the GWT designer and my eclipse- preferences does not show the 'windowbuilder' preference page even. I just don't have a clue on how to resolve this issue Please let me know if you need me to cut and paste the log. Thanks, -bhabs -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Binder problem in ui.xml file?
Compile gwt application, I got the error show[Error] Element may only contain a single child element, but found g:FlowPanel ui:field='flow1'and g:FlowPanel ui:field='flow2'. Element g:center. Advance thanks. ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' g:DockLayoutPanel ui:field=dock g:north size=25 g:FlowPanel g:Button ui:field=saveHome/ g:Button /g:FlowPanel /g:north g:center g:FlowPanel ui:field=flow1 g:Button ui:field=button1print/ g:Button /g:FlowPanel g:FlowPanel ui:field=flow2 g:TextArea ui:field=textArea / g:TextArea ui:field=textArea1 / /g:FlowPanel /g:center /g:DockLayoutPanel /ui:UiBinder -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 am working with GWT and GXT (2.3). I am able to run my GWT application in Firefox and Safari. But When i ran it in Chrome it's not working properly . I think plugin problem in Google Chrome Browser. I am using ubuntu 11.04 . Please help me any one of you. Thanks . -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hi
What's the error? and what version of GWT are you use? 2011/10/12 prasad korrapati korrapatipras...@gmail.com I am working with GWT and GXT (2.3). I am able to run my GWT application in Firefox and Safari. But When i ran it in Chrome it's not working properly . I think plugin problem in Google Chrome Browser. I am using ubuntu 11.04 . Please help me any one of you. Thanks . -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Binder problem in ui.xml file?
The error said that you have two elements in g:center. You must put only one. 2011/10/12 David Fernando fernando33...@gmail.com Compile gwt application, I got the error show[Error] Element may only contain a single child element, but found g:FlowPanel ui:field='flow1'and g:FlowPanel ui:field='flow2'. Element g:center. Advance thanks. ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' g:DockLayoutPanel ui:field=dock g:north size=25 g:FlowPanel g:Button ui:field=saveHome/ g:Button /g:FlowPanel /g:north g:center g:FlowPanel ui:field=flow1 g:Button ui:field=button1print/ g:Button /g:FlowPanel g:FlowPanel ui:field=flow2 g:TextArea ui:field=textArea / g:TextArea ui:field=textArea1 / /g:FlowPanel /g:center /g:DockLayoutPanel /ui:UiBinder -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to remove a row from Flex Table
First count the number of rows in FlexTable using getRowCount() method. Remove specific row from flex table using removeRow( int row). Ex: int count = myFlexTable.getRowCount(); for (int i = 0; i count; i++) { myFlexTable.removeRow(i); } S. Abraham www.DataStoreGwt.com Persist objects directly in App Engine On Oct 11, 3:01 pm, vikky vikky2...@gmail.com wrote: Hi , I am using a Flex Table in which i want to Add and Remove the row, Add functionality working properly but in case of Remove, when i tried to remove more then one row from the table it thrown an exception IndexOutOfBound Please do the needful. Regards, Vikas verma -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: 10 MB increase of the size of the web app directory with the generated JS files
In gwt 2.4.0 is having more additional functionality. Gwt 2.0 had gwt- dev.jar, gwt-servlet.jar, gwt-user.jar, gwt-api-checker.jar, gwt-soyc- vis.jar, gwt-servlet-deps.jar only. But gwt 2.4.0 is having more number of jars ( mainly requestfactory jars ). S. Abraham www.DataStoreGwt.com Persist objects directly in GAE On Oct 12, 4:56 pm, haluk halu...@gmail.com wrote: The size of my web app directory under the war file that contains the generated JavaScript files was 2 MB when I was using the GWT version 2.0, but recently increased to 12 MB when I switched to GWT version 2.4. The only external module that I included is local storage library (gwt- html5-storage.jar) that was necessary in order to get the Local Storage working with ie8. The rest is the standard GWT 2.4 stuff. Am I doing something wrong, or is it normal with GWT 2.4? Is there any way of reducing the size of this web app directory as I am not using any of the remote RPC or serialization modules? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: 10 MB increase of the size of the web app directory with the generated JS files
Don't worry. It's because of the additional jars. Thanks Ashwin Sent from my iPhone On Oct 12, 2011, at 5:26 PM, haluk halu...@gmail.com wrote: The size of my web app directory under the war file that contains the generated JavaScript files was 2 MB when I was using the GWT version 2.0, but recently increased to 12 MB when I switched to GWT version 2.4. The only external module that I included is local storage library (gwt- html5-storage.jar) that was necessary in order to get the Local Storage working with ie8. The rest is the standard GWT 2.4 stuff. Am I doing something wrong, or is it normal with GWT 2.4? Is there any way of reducing the size of this web app directory as I am not using any of the remote RPC or serialization modules? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to remove a row from Flex Table
On 12/10/11 13:31, Sudhakar Abraham wrote: First count the number of rows in FlexTable using getRowCount() method. Remove specific row from flex table using removeRow( int row). Ex: int count = myFlexTable.getRowCount(); for (int i = 0; i count; i++) { myFlexTable.removeRow(i); } S. Abraham www.DataStoreGwt.com Persist objects directly in App Engine That code won't work. You'll probably get an IndexOutOfBoundsException. The first time through the loop, you will remove row 0. What was originally row 1 will then be row 0, and what was originally row 2 will be row 1 etc. So on the second time through the loop, you remove row 1, but that is the row that was originally row 2. So the row that was originally row 1 would never be deleted. When you get far enough through removing rows, you'll get an exception. To delete all the rows one at a time (rather than calling myFlexTable.removeAllRows()), try something like this: int count = myFlexTable.getRowCount(); for (int i = count-1; i=0 ; i--) { myFlexTable.removeRow(i); } or else something like this: int count = myFlexTable.getRowCount(); for (int i = 0; i count; i++) { myFlexTable.removeRow(0); } Paul -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Multiple Entry Points GWT Designer, how to choose..
Yes, there is no need for a ticket. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cX4Xg0EUYNIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
how to add custom token in URL (using Activities and Places )
Hi, I am working on Activities and Places for one of our App. I am not sure how to add the functionality for eg: 1. http://lhost/?page=App1 (this can be done with Place and Actiivity) and I have done it 2. http://lhost/?page=App1 param1=abcparam=2 How to append the params in Activities and Places and all the params are dynamic in place, please help me by providing a soluation or sample. tha nks in advance Sri -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Full page in GWT or just parts?
I think GWT is best utilized in a full page scenario because of code sharing of re-usable components. If you go the other route and just embed GWT code in different host pages (i.e. application with multiple entry points) you lose the benefits of javascript code re-use of reusable components because every entrypoint will have its own module.nocache.js file which has to be transferred to the client. If you create a re-usable component (let's say a CellTable component) which is used in different places (in both entry points) the same code will be part of the module.nocache.js file and thus downloaded two times. It probably doesn't make a big difference for small web-sites where some parts are done with GWT but for complex apps where you might re-use a lot of components it might be an issue. However in case you go with the one host page (one entry point) solution you will probably not use any of the your backend's flow controls (MVC) but it will solely act as a data-backend. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cuYO25r6uJ8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Full page in GWT or just parts?
@Uemit: I agree but not completely as your comment aren't suited for larger app's (in my case). Don't forget that the current code splitting isn't perfect such that the left-over fragment can become rather large, as in my case. As such, that the simple login screen results with a big initial load, whereas if I split it from the core application part, it becomes very small. This is important as you don't want the user to wait too long for the login screen to appear. But of course I would like to make it as one gwt app, but this currently results in bad results. Apart from the code reuse, for me at this moment it's all about resource management that GWT performs well as explained above. - Ed On Oct 12, 3:28 pm, Uemit uemit.se...@gmail.com wrote: I think GWT is best utilized in a full page scenario because of code sharing of re-usable components. If you go the other route and just embed GWT code in different host pages (i.e. application with multiple entry points) you lose the benefits of javascript code re-use of reusable components because every entrypoint will have its own module.nocache.js file which has to be transferred to the client. If you create a re-usable component (let's say a CellTable component) which is used in different places (in both entry points) the same code will be part of the module.nocache.js file and thus downloaded two times. It probably doesn't make a big difference for small web-sites where some parts are done with GWT but for complex apps where you might re-use a lot of components it might be an issue. However in case you go with the one host page (one entry point) solution you will probably not use any of the your backend's flow controls (MVC) but it will solely act as a data-backend. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Use header mouse events to resize table columns
Hi, I am working on a table header that captures mouse events in order to resize the table columns. It is woking property, as long as I do not move the mouse to fast and don't leave the header area. So I took a look at the SplitLayoutPanel to see how this has been solved there. The SplitLayoutPanel uses a full screen div (a glass panel). So far so good, but as soon as I try the same approach, I stop receiving events. Looking at the dom, the only difference I see is that the divs in the split layout panel have different zIndex values that my header haves, but I am not sure if this is my problem and where the zindex is being set in the split layout panel. Could someone provide me some directions on how to do the glass panel magic and still receive the events? brgds Papick -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to wait until all the modules are loaded to show the page?
You can put your whole page in a hidden div and then when the module is loaded show the page. On Oct 11, 2:27 pm, Raymond Cidad raym...@globalsolutioncorp.com wrote: Hello my friends. I'm trying to find the way to show a progress bar (like gmail), so when a browser try to access the service, IT DOESN'T SHOW THE HMTL FIRST (I MEAN, THE IMAGES, FOOTER, ETC), AND THEN LOAD THE MODULE. I WANT THE WHOLE THING LOAD AT THE SAME TIME? Any ideas? thanks yall. rcm -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
select language or country from a drop down list
Hi all, I am building an application where the user needs to specify the name of a work of art, like a poem or song, and I need him to specify its language. I want to make it possible that he can choose the language from a drop-down list, and I also want to know the three character code of the ISO-639-2 standard for the language he selects so that I can store it in my database (like Eng for English, Ger for German etc.). Is there a standard way I can select language in gwt using a drop down menu and mapping them to the ISO standard code? I also want to do the same thing for selecting countries through a drop-down menu and mapping them to their ISO-3166 code (FR for France, DE for Germany etc.). Thanks a lot, Gerasimos -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: select language or country from a drop down list
What you want sounds like what I do with com.google.gwt.user.client.ui.ListBox. Look at addItem(java.lang.String item, java.lang.String value). The item is what the user sees (the language) while value contains what you're interested in (the country code). On Oct 12, 9:44 am, gerry gtzoga...@gmail.com wrote: Hi all, I am building an application where the user needs to specify the name of a work of art, like a poem or song, and I need him to specify its language. I want to make it possible that he can choose the language from a drop-down list, and I also want to know the three character code of the ISO-639-2 standard for the language he selects so that I can store it in my database (like Eng for English, Ger for German etc.). Is there a standard way I can select language in gwt using a drop down menu and mapping them to the ISO standard code? I also want to do the same thing for selecting countries through a drop-down menu and mapping them to their ISO-3166 code (FR for France, DE for Germany etc.). Thanks a lot, Gerasimos -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: 10 MB increase of the size of the web app directory with the generated JS files
Thanks a lot guys, much appreciated. Does that size have any direct effect on the initial load up time of my application though, if you excuse my ignorance? On Oct 12, 3:43 pm, Ashwin Desikan ashwin.desi...@gmail.com wrote: Don't worry. It's because of the additional jars. Thanks Ashwin Sent from my iPhone On Oct 12, 2011, at 5:26 PM, haluk halu...@gmail.com wrote: The size of my web app directory under the war file that contains the generated JavaScript files was 2 MB when I was using the GWT version 2.0, but recently increased to 12 MB when I switched to GWT version 2.4. The only external module that I included is local storage library (gwt- html5-storage.jar) that was necessary in order to get the Local Storage working with ie8. The rest is the standard GWT 2.4 stuff. Am I doing something wrong, or is it normal with GWT 2.4? Is there any way of reducing the size of this web app directory as I am not using any of the remote RPC or serialization modules? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: select language or country from a drop down list
Hi Thad, Thanks for your reply. In your suggestion I will have to type all the countries and their codes myself, while I was hoping I could do it in a more automated way, like I could do if I could use the java.util.Locale package (method static String[] getISOCountries() for example) which is not supported by GWT. But it seems I can't do anything simpler than what you suggest. Thanks. On 12 Οκτ, 17:10, Thad thad.humphr...@gmail.com wrote: What you want sounds like what I do with com.google.gwt.user.client.ui.ListBox. Look at addItem(java.lang.String item, java.lang.String value). The item is what the user sees (the language) while value contains what you're interested in (the country code). On Oct 12, 9:44 am, gerry gtzoga...@gmail.com wrote: Hi all, I am building an application where the user needs to specify the name of a work of art, like a poem or song, and I need him to specify its language. I want to make it possible that he can choose the language from a drop-down list, and I also want to know the three character code of the ISO-639-2 standard for the language he selects so that I can store it in my database (like Eng for English, Ger for German etc.). Is there a standard way I can select language in gwt using a drop down menu and mapping them to the ISO standard code? I also want to do the same thing for selecting countries through a drop-down menu and mapping them to their ISO-3166 code (FR for France, DE for Germany etc.). Thanks a lot, Gerasimos -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
not injecting an entityManger @PersistenceContext
Hi, I'm trying to integrate an EJB-Project (which is connected to a database by hibernate) into my GWT (in more detail move from CDI-Weld implementation to GWT). I created a new ejb-project only containing my entities and their clients. Within my GWT-project I reference to my ejb-project and included the compiled class-files into WEB-INF/classes as described everywhere. From my ServerServiceImpl the entity are reached, my stateless-class is called, but the entityManager remains null as I try to reach my database. my code: ServiceImpl: private Product product; @EJB(name = Product ) public void setProduct(Product product) { this.product = product; } public DatabaseBuilderServiceImpl() { } public boolean createDefaultDatabaseEntries() { boolean returnvalue = false; returnvalue = product.createTestEntry(); return returnvalue; my Interface: public interface Product { ListProductEntity findAll(); ProductEntity getProductBy(String productSymbol); ListOptionEntity getOptionsBy(ProductEntity currentProduct); ListVariantEntity getVariantsBy(ProductEntity currentProduct); boolean createTestEntry(); } my stateless-bean: @Stateless(name = Product) @Local(Product.class) public class ProductHome extends HomeBaseProductEntity implements Serializable, Product { @PersistenceContext(unitName=sung.app.kylintv.ejb) protected EntityManager entityManager; @EJB protected Option sessionOption; /** * @return List of available products */ @SuppressWarnings(unchecked) @TransactionAttribute(REQUIRED) public ListProductEntity findAll() { return entityManager.createQuery(SELECT p FROM ProductEntity p ORDER BY p.id).getResultList(); } @TransactionAttribute(REQUIRED) public ProductEntity getProductBy(String productSymbol) { return (ProductEntity) entityManager.createQuery(SELECT p FROM ProductEntity p WHERE p.name = :productSymbol ORDER BY p.id).setParameter(productSymbol, productSymbol).getSingleResult(); } @SuppressWarnings(unchecked) @TransactionAttribute(REQUIRED) public ListOptionEntity getOptionsBy(ProductEntity currentProduct) { return entityManager.createQuery(SELECT p FROM OptionEntity p WHERE p.product = :currentProduct ORDER BY p.id).setParameter(currentProduct, currentProduct).getResultList(); } } the function inside my bean is reached, the entityManager is null. How can I ensure the PersistenceInjection? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: not injecting an entityManger @PersistenceContext
Can you share the stackt trace? 2011/10/12 Norman Klingspor norman.klings...@googlemail.com Hi, I'm trying to integrate an EJB-Project (which is connected to a database by hibernate) into my GWT (in more detail move from CDI-Weld implementation to GWT). I created a new ejb-project only containing my entities and their clients. Within my GWT-project I reference to my ejb-project and included the compiled class-files into WEB-INF/classes as described everywhere. From my ServerServiceImpl the entity are reached, my stateless-class is called, but the entityManager remains null as I try to reach my database. my code: ServiceImpl: private Product product; @EJB(name = Product ) public void setProduct(Product product) { this.product = product; } public DatabaseBuilderServiceImpl() { } public boolean createDefaultDatabaseEntries() { boolean returnvalue = false; returnvalue = product.createTestEntry(); return returnvalue; my Interface: public interface Product { ListProductEntity findAll(); ProductEntity getProductBy(String productSymbol); ListOptionEntity getOptionsBy(ProductEntity currentProduct); ListVariantEntity getVariantsBy(ProductEntity currentProduct); boolean createTestEntry(); } my stateless-bean: @Stateless(name = Product) @Local(Product.class) public class ProductHome extends HomeBaseProductEntity implements Serializable, Product { @PersistenceContext(unitName=sung.app.kylintv.ejb) protected EntityManager entityManager; @EJB protected Option sessionOption; /** * @return List of available products */ @SuppressWarnings(unchecked) @TransactionAttribute(REQUIRED) public ListProductEntity findAll() { return entityManager.createQuery(SELECT p FROM ProductEntity p ORDER BY p.id).getResultList(); } @TransactionAttribute(REQUIRED) public ProductEntity getProductBy(String productSymbol) { return (ProductEntity) entityManager.createQuery(SELECT p FROM ProductEntity p WHERE p.name = :productSymbol ORDER BY p.id).setParameter(productSymbol, productSymbol).getSingleResult(); } @SuppressWarnings(unchecked) @TransactionAttribute(REQUIRED) public ListOptionEntity getOptionsBy(ProductEntity currentProduct) { return entityManager.createQuery(SELECT p FROM OptionEntity p WHERE p.product = :currentProduct ORDER BY p.id).setParameter(currentProduct, currentProduct).getResultList(); } } the function inside my bean is reached, the entityManager is null. How can I ensure the PersistenceInjection? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: not injecting an entityManger @PersistenceContext
oh, of course. This is the stacktrace: 2011-10-12 15:36:07,163 ERROR [org.apache.catalina.core.ContainerBase. [jboss.web].[localhost].[/kylintv.gwt]] (http-0.0.0.0-8080-1) Exception while dispatching incoming RPC call: com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract boolean sung.app.kylintv.gwt.client.DatabaseBuilderService.createDefaultDatabaseEntries()' threw an unexpected exception: javax.ejb.EJBException: java.lang.NullPointerException at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) [:] at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) [:] at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) [:] at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) [:] at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) [:] at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [: 1.0.0.Final] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [: 1.0.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 324) [:6.1.0.Final] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 242) [:6.1.0.Final] at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java: 67) [:6.1.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 274) [:6.1.0.Final] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 242) [:6.1.0.Final] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 275) [:6.1.0.Final] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 161) [:6.1.0.Final] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java: 181) [:6.1.0.Final] at org.jboss.modcluster.catalina.CatalinaContext $RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final] at org.jboss.modcluster.catalina.CatalinaContext $RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java: 88) [:6.1.0.Final] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java: 100) [:6.1.0.Final] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 159) [:6.1.0.Final] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) [:6.1.0.Final] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java: 158) [:6.1.0.Final] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) [:6.1.0.Final] at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java: 53) [:6.1.0.Final] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 362) [:6.1.0.Final] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 877) [:6.1.0.Final] at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:654) [: 6.1.0.Final] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 951) [:6.1.0.Final] at java.lang.Thread.run(Thread.java:662) [:1.6.0_25] Caused by: javax.ejb.EJBException: java.lang.NullPointerException at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java: 183) [:0.0.2] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java: 251) [:0.0.2] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(CMTTxInterceptor.java: 349) [:0.0.2] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java: 209) [:0.0.2] at org.jboss.ejb3.tx2.aop.CMTTxInterceptorWrapper.invoke(CMTTxInterceptorWrapper.java: 52) [:0.0.2] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java: 102) [jboss-aop.jar:2.2.2.GA] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java: 76) [:1.0.0.GA] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java: 102) [jboss-aop.jar:2.2.2.GA] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42) [:1.0.4] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java: 102) [jboss-aop.jar:2.2.2.GA] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java: 182) [:1.7.21] at
Re: not injecting an entityManger @PersistenceContext
the real function called starts like this: @TransactionAttribute(REQUIRED) public boolean createTestEntry() { try { System.out.println(TEST creating Data BEGIN); ProductEntity currentProduct = new ProductEntity(); // fill FIRST product currentProduct.setName(bo_product_europe_basic_name); currentProduct.setDescription(bo_product_europe_basic_description); entityManager.persist(currentProduct); on first call for the entityManager the function fails. On 12 Okt., 17:11, Norman Klingspor norman.klings...@googlemail.com wrote: oh, of course. This is the stacktrace: 2011-10-12 15:36:07,163 ERROR [org.apache.catalina.core.ContainerBase. [jboss.web].[localhost].[/kylintv.gwt]] (http-0.0.0.0-8080-1) Exception while dispatching incoming RPC call: com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract boolean sung.app.kylintv.gwt.client.DatabaseBuilderService.createDefaultDatabaseEnt ries()' threw an unexpected exception: javax.ejb.EJBException: java.lang.NullPointerException at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) [:] at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) [:] at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java: 208) [:] at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java: 248) [:] at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.java: 62) [:] at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [: 1.0.0.Final] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [: 1.0.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio nFilterChain.java: 324) [:6.1.0.Final] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC hain.java: 242) [:6.1.0.Final] at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationP ropagationFilter.java: 67) [:6.1.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio nFilterChain.java: 274) [:6.1.0.Final] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC hain.java: 242) [:6.1.0.Final] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j ava: 275) [:6.1.0.Final] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j ava: 161) [:6.1.0.Final] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoc iationValve.java: 181) [:6.1.0.Final] at org.jboss.modcluster.catalina.CatalinaContext $RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final] at org.jboss.modcluster.catalina.CatalinaContext $RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java : 88) [:6.1.0.Final] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(Secu rityContextEstablishmentValve.java: 100) [:6.1.0.Final] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 159) [:6.1.0.Final] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) [:6.1.0.Final] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnect ionValve.java: 158) [:6.1.0.Final] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav a: 109) [:6.1.0.Final] at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke (ActiveRequestResponseCacheValve.java: 53) [:6.1.0.Final] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 362) [:6.1.0.Final] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 877) [:6.1.0.Final] at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:654) [: 6.1.0.Final] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 951) [:6.1.0.Final] at java.lang.Thread.run(Thread.java:662) [:1.6.0_25] Caused by: javax.ejb.EJBException: java.lang.NullPointerException at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterc eptor.java: 183) [:0.0.2] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.jav a: 251) [:0.0.2] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(CMTTxInterceptor.java: 349) [:0.0.2] at
Re: select language or country from a drop down list
What you can do is to write a small java application to generate the list for you, using the static Locale class methods as you mention below . You can create json, text or xml and import it into your drop down list. This will save you a lot of tedious typing. On 10/12/2011 7:39 AM, gerry wrote: Hi Thad, Thanks for your reply. In your suggestion I will have to type all the countries and their codes myself, while I was hoping I could do it in a more automated way, like I could do if I could use the java.util.Locale package (method static String[] getISOCountries() for example) which is not supported by GWT. But it seems I can't do anything simpler than what you suggest. HTH Alan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 Mode Hangs
On Oct 5, 5:34 pm, Dennis Haupt d.haup...@googlemail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 05.10.2011 23:08, schrieb Steve: I am trying to load a GWT project to run in development mode within Eclipse. It worked fine for a while, but now it's stuck. In the Development Mode tab, I get the message Development mode is loading... and Waiting for launch URLs. This remains indefinitely until I finally shut down the process. When I change the logging level to DEBUG I see that it goes to Loading modules and then sticks on the lone module in my project. It is a very small project, literally just 3 small panels. When I build the WAR and deploy it within JBoss, it runs fine. But when I try to debug, it just hangs. Anybody have any idea of where I can try to look to figure out what's happening? Thanks in advance! run it in debug mode (java debugger), wait for it to get stuck, press pause and look at the threads. you should see what they are doing. a simple thread dump might also help - -- Thanks. I did this and the threads are this: UnitCacheLoader (Running) GWT Update Checker (Running) Code server listener (Running) So it looks like it's trying to go somewhere and check for updates and is getting stuck. Is there any way to turn this off? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
DataGrid border styling
all I have just implemented the dataGrid but there is no line border around it. I have the following css, but it does not show up.. Is there another style that I need to implement? @def selectionBorderWidth 2px; .dataGridWidget { border: 1px solid #88b0f2; } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Activities and Places
Hi, I am working on Activities and Places for one of our App. I am not sure how to add the functionality for eg: 1. http://lhost/?page=App1 (this can be done with Place and Actiivity) and I have done it 2. http://lhost/?page=App1 param1=abcparam=2 How to append the params in Activities and Places and all the params are dynamic in place, please help me by providing a soluation or sample. thanks in advance Sri -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
ListBox CSS with GWT Clean Theme
Hi Everyone, I recently started using the newer Clean theme for GWT. I prefer it to the standard theme but don't like the way that ListBox looks. Is there any way that i can get the ListBox styles from the Standard theme? I looked in the generated CSS file but the ListBox style is empty. Thanks, -Mark -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: 10 MB increase of the size of the web app directory with the generated JS files
Check the WEB-INF/deploy subfolder. If you don't care about remote logging (client sending logs to server) and stack-trace deobfuscation, you can safely delete it altogether. ...and you can pass the -deploy option to the compiler to output the files elsewhere. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dP9qWkSTxukJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: not injecting an entityManger @PersistenceContext
What version of Jboss are you use? 2011/10/12 Norman Klingspor norman.klings...@googlemail.com oh, of course. This is the stacktrace: 2011-10-12 15:36:07,163 ERROR [org.apache.catalina.core.ContainerBase. [jboss.web].[localhost].[/kylintv.gwt]] (http-0.0.0.0-8080-1) Exception while dispatching incoming RPC call: com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract boolean sung.app.kylintv.gwt.client.DatabaseBuilderService.createDefaultDatabaseEntries()' threw an unexpected exception: javax.ejb.EJBException: java.lang.NullPointerException at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) [:] at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) [:] at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) [:] at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) [:] at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) [:] at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [: 1.0.0.Final] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [: 1.0.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 324) [:6.1.0.Final] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 242) [:6.1.0.Final] at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java: 67) [:6.1.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 274) [:6.1.0.Final] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 242) [:6.1.0.Final] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 275) [:6.1.0.Final] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 161) [:6.1.0.Final] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java: 181) [:6.1.0.Final] at org.jboss.modcluster.catalina.CatalinaContext $RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final] at org.jboss.modcluster.catalina.CatalinaContext $RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java: 88) [:6.1.0.Final] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java: 100) [:6.1.0.Final] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 159) [:6.1.0.Final] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) [:6.1.0.Final] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java: 158) [:6.1.0.Final] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) [:6.1.0.Final] at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java: 53) [:6.1.0.Final] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 362) [:6.1.0.Final] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 877) [:6.1.0.Final] at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:654) [: 6.1.0.Final] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 951) [:6.1.0.Final] at java.lang.Thread.run(Thread.java:662) [:1.6.0_25] Caused by: javax.ejb.EJBException: java.lang.NullPointerException at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java: 183) [:0.0.2] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java: 251) [:0.0.2] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(CMTTxInterceptor.java: 349) [:0.0.2] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java: 209) [:0.0.2] at org.jboss.ejb3.tx2.aop.CMTTxInterceptorWrapper.invoke(CMTTxInterceptorWrapper.java: 52) [:0.0.2] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java: 102) [jboss-aop.jar:2.2.2.GA] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java: 76) [:1.0.0.GA] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java: 102) [jboss-aop.jar:2.2.2.GA] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42) [:1.0.4] at
GWT HTML5 Audio - problem changing src midstream
When I attempt to change the source file destination of the underlying Audio object, nothing happens; in fact, the controls actually disappear. In order to change the source, I am listening for an event on our EventBus. When I receive a new source file, I do the following: audio.setSrc(sourceUrl); audio.load(); // to reset the audio object audio.play(); The source URL is valid, but the Audio player doesn't seem to be able to handle this use case. Has anyone ran into this as well? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: not injecting an entityManger @PersistenceContext
I'm running jBoss 6.1.0.Final. On 12 Okt., 17:57, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: What version of Jboss are you use? 2011/10/12 Norman Klingspor norman.klings...@googlemail.com oh, of course. This is the stacktrace: 2011-10-12 15:36:07,163 ERROR [org.apache.catalina.core.ContainerBase. [jboss.web].[localhost].[/kylintv.gwt]] (http-0.0.0.0-8080-1) Exception while dispatching incoming RPC call: com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract boolean sung.app.kylintv.gwt.client.DatabaseBuilderService.createDefaultDatabaseEnt ries()' threw an unexpected exception: javax.ejb.EJBException: java.lang.NullPointerException at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) [:] at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) [:] at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java: 208) [:] at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java: 248) [:] at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.java: 62) [:] at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [: 1.0.0.Final] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [: 1.0.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio nFilterChain.java: 324) [:6.1.0.Final] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC hain.java: 242) [:6.1.0.Final] at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationP ropagationFilter.java: 67) [:6.1.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio nFilterChain.java: 274) [:6.1.0.Final] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC hain.java: 242) [:6.1.0.Final] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j ava: 275) [:6.1.0.Final] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j ava: 161) [:6.1.0.Final] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoc iationValve.java: 181) [:6.1.0.Final] at org.jboss.modcluster.catalina.CatalinaContext $RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final] at org.jboss.modcluster.catalina.CatalinaContext $RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java : 88) [:6.1.0.Final] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(Secu rityContextEstablishmentValve.java: 100) [:6.1.0.Final] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 159) [:6.1.0.Final] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) [:6.1.0.Final] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnect ionValve.java: 158) [:6.1.0.Final] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav a: 109) [:6.1.0.Final] at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke (ActiveRequestResponseCacheValve.java: 53) [:6.1.0.Final] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 362) [:6.1.0.Final] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 877) [:6.1.0.Final] at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:654) [: 6.1.0.Final] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 951) [:6.1.0.Final] at java.lang.Thread.run(Thread.java:662) [:1.6.0_25] Caused by: javax.ejb.EJBException: java.lang.NullPointerException at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterc eptor.java: 183) [:0.0.2] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.jav a: 251) [:0.0.2] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(CMTTxInterceptor.java: 349) [:0.0.2] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java: 209) [:0.0.2] at org.jboss.ejb3.tx2.aop.CMTTxInterceptorWrapper.invoke(CMTTxInterceptorWrapp er.java: 52) [:0.0.2] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java: 102) [jboss-aop.jar:2.2.2.GA] at
Re: 10 MB increase of the size of the web app directory with the generated JS files
Thank you kindly for the valuable information Thomas, really appreciated... On Oct 12, 6:46 pm, Thomas Broyer t.bro...@gmail.com wrote: Check the WEB-INF/deploy subfolder. If you don't care about remote logging (client sending logs to server) and stack-trace deobfuscation, you can safely delete it altogether. ...and you can pass the -deploy option to the compiler to output the files elsewhere. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RPC fails with 404 after upgrade to 2.4
I've got an old maven-based GWT project that is working with GWT 2.0.3 and gwt-maven-plugin 1.2, but when I try to upgrade to GWT 2.4 and gwt- maven-plugin 2.4, all of the service calls fail with a 404 error. Is there some other change I must make? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: RPC fails with 404 after upgrade to 2.4
404 error?. Do the project compile? 2011/10/12 wytten dale.wyttenb...@gmail.com I've got an old maven-based GWT project that is working with GWT 2.0.3 and gwt-maven-plugin 1.2, but when I try to upgrade to GWT 2.4 and gwt- maven-plugin 2.4, all of the service calls fail with a 404 error. Is there some other change I must make? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Parsing Large XML files
I am trying to parse a string that i received using an RPC call, it works for small xml strings, but crashes when hits large string, any ideas? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT - MegaMenu
Hi, I am trying to implement MegaMenu using GWT, any samples/examples are available. Thanks Sri -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Unknown tag with, or is not appropriate as a top level element Element
any ideas? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/I7fUWEX__6wJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
fileupload does not work with files larger than around 15kb: ACCESS DENIED!
Hi all, I am currently working on an gwt application where the client needs to upload some files on the server so they can undergo some further processing. I found the Servlet shown below in some Tutorial that, invoked by the client, should allow me to upload a file to the server. Interestingly, this works for small files (text and binary) a far as they are not larger than something around 15 kb. Otherwise, I get an error looking like this: access denied (java.io.FilePermission /var/folders/iw/iwDgjwOcEVqjzDb6t18ytnj1v9w/- Tmp-/upload_78b21457_132f972f394__8000_0010.tmp write) Help would be much apreciated! Thanks in advance! Best Regards, Uli PS: And here comes the code: public class FileUploadServlet extends HttpServlet implements Servlet { private static final long serialVersionUID = 8305367618713715640L; protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/plain); FileItem uploadItem = getFileItem(request); if (uploadItem == null) { response.getWriter().write(NO-SCRIPT-DATA); return; } byte[] fileContents = uploadItem.get(); //TODO: add code to process file contents here. We will just printit. System.out.println(new String(fileContents)); response.getWriter().write(new String(fileContents)); } private FileItem getFileItem(HttpServletRequest request) { FileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload upload = new ServletFileUpload(factory); try { System.out.println(request); List items = upload.parseRequest(request); System.out.println(FILE READ ###); Iterator it = items.iterator(); while (it.hasNext()) { FileItem item = (FileItem) it.next(); if (!item.isFormField() uploadFormElement.equals(item.getFieldName())) { return item; } } } catch (FileUploadException e) { return null; } return null; } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: RPC fails with 404 after upgrade to 2.4
Yes, the project compiles and loads in chrome when I 'Launch default browser' but any subsequent async call fails with a 404 error. The request URI that fails is unchanged and matches the servlet- mapping in web.xml exactly: /org.wyttenbach.dale.projection.ProjectionApplication/ DocumentRemoteService On Oct 12, 1:15 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: 404 error?. Do the project compile? 2011/10/12 wytten dale.wyttenb...@gmail.com I've got an old maven-based GWT project that is working with GWT 2.0.3 and gwt-maven-plugin 1.2, but when I try to upgrade to GWT 2.4 and gwt- maven-plugin 2.4, all of the service calls fail with a 404 error. Is there some other change I must make? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Places - How to customize the place name? And what's the best way to use AP with Gin?
Hi, I've now completely moved to Activities and Places. Works quite nice. But now I want to make things look more pretty and a bit more efficient. Short about the website: It's a pretty simple Homepage. That means: We have a menu (for changing places). And a content panel that switches its activity when the place changes. Nothing special... The first thing is: In my URL bar there's always the class name of the place. I think it must be possible to use a custom name?! How can I do this? Second: Google says that we should make our Activities a Singleton, 'cause DOM Manipulation is bad ;) I've done that. My app still works perferctly. Now I want to know if I could make Place a Singleton, too? A place is a really small object, I know. But why should I recreate it, if I don't have to?! So, are there any disadvantages saying Gin to take my Place as Singleton? (Third question: What do you think is the best way of dealing with Activities and Places together with MVP? Actually I just moved my Presenter Code into the Activity classes. Is there anything bad about it?) Thanks :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Full page in GWT or just parts?
@Uemit you can write one module to be used in all pages and use code splitting feature to download only what is needed by the particular page. i do that this way. another habit i worked out over years using gwt is to use onModuleLoad method only to register js callbacks. how does the module behave on particular page is then scripted in javascript. however i had to slightly enhance bootstraping script :). generally my pattern is to write whole client logic with gwt (using code splitting and merging modules as much as possible) an then slighlty script it on page to customize its behaviour. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Places - How to customize the place name? And what's the best way to use AP with Gin?
Hi, 1.) The url hash fragment (everything after #) is by default defined as prefix:token. The prefix can be changed by using the @Prefix annotation on your PlaceTokenizers. If you do not use the @Prefix annotation the places class name will be used by default (thats what you currently have). Keep in mind that the names you provide with the help of the @Prefix annotation must be unique. 2.) You should make your views singleton as they are expensive to construct because of DOM operations. An activity is a pretty lightweight class you its fine if you recreate it. But of course you could make them also singleton. 3.) I think places can't be singletons but I am not quite sure about it. My first thought ist that PlaceController stores the current place and when you call PlaceController.goTo(newPlace) the new place will be compared to the current one using equals(). If they are equal nothing will happen. If you have singletons and you switch between totally different places everything will be fine but if you want to switch between same places with different internal states you got a problem because they will always be equal. For each place you only have one singleton instance thus you only have one state. You can't have a current state and a new state for the same place instance (e.g. you are at PlaceA(null) and you want to switch to PlaceA(stateValue)). Places are pretty small and easy classes, so just create new ones as you need them. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0_6lTEXigtEJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Places - How to customize the place name? And what's the best way to use AP with Gin?
Thanks for your reply :) Yeah sure, my Views are already Singleton (maybe someone could tell me what's the difference using Gin @Singleton or .in(Singleton.class) ?!) And my Presenters/Activities are Singleton, too. After reading your thoughts, I'd say, that my Places could be Singleton, too. 'Cause my menu doesn't allow switching from Place A to Place A, but they're so small. I think I'll leave them as separate Objects 'til someone says that it's safe in all cases. Can you tell me 'how' to use these Place tokens? Are they meant to be some kind of variables? (like x.html?var=value)? If that's true, I hope that Google implemented some methods to easily safe and restore variables and values... On 12 Okt., 23:34, Jens jens.nehlme...@gmail.com wrote: Hi, 1.) The url hash fragment (everything after #) is by default defined as prefix:token. The prefix can be changed by using the @Prefix annotation on your PlaceTokenizers. If you do not use the @Prefix annotation the places class name will be used by default (thats what you currently have). Keep in mind that the names you provide with the help of the @Prefix annotation must be unique. 2.) You should make your views singleton as they are expensive to construct because of DOM operations. An activity is a pretty lightweight class you its fine if you recreate it. But of course you could make them also singleton. 3.) I think places can't be singletons but I am not quite sure about it. My first thought ist that PlaceController stores the current place and when you call PlaceController.goTo(newPlace) the new place will be compared to the current one using equals(). If they are equal nothing will happen. If you have singletons and you switch between totally different places everything will be fine but if you want to switch between same places with different internal states you got a problem because they will always be equal. For each place you only have one singleton instance thus you only have one state. You can't have a current state and a new state for the same place instance (e.g. you are at PlaceA(null) and you want to switch to PlaceA(stateValue)). Places are pretty small and easy classes, so just create new ones as you need them. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Full page in GWT or just parts?
@Thomas Thanks for the feedback. I use the same pattern as you describe. I have many commons modules that every application include if required. - Ed On Wed, Oct 12, 2011 at 10:57 PM, Tomasz Gawel tomaszga...@op.pl wrote: @Uemit you can write one module to be used in all pages and use code splitting feature to download only what is needed by the particular page. i do that this way. another habit i worked out over years using gwt is to use onModuleLoad method only to register js callbacks. how does the module behave on particular page is then scripted in javascript. however i had to slightly enhance bootstraping script :). generally my pattern is to write whole client logic with gwt (using code splitting and merging modules as much as possible) an then slighlty script it on page to customize its behaviour. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UiBinder and CSS located locally
*Sudhakar,* * * *Thanks for your quick reply. I already know that you can access this with in your package hierarchy. * *Unfortunately, I don't have any idea how i can reference this locally on my machine and out of the package.* * * *Regards,* *Sigma* On Wed, Oct 12, 2011 at 2:02 AM, Sudhakar Abraham s.abra...@datastoregwt.com wrote: Gwt access css file from relative location. Place your css file,uibinder, ui.xml file in same directory. It picks up the style from inline style sheet within the ui.xml file. Access the style property using styleName={style.sample}. //example ?xml version=1.0 encoding=UTF-8? ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' ui:style src=xyz.css / g:DockLayoutPanel unit='EM' g:west size='10' g:HTMLPanel styleName={style.sample} ul liListItem/li liListItem1/li liListItem2/li /ul /g:HTMLPanel /g:west /g:DockLayoutPanel /ui:UiBinder S. Abraham www.DataStoreGwt.com Persist objects directly in GAE On Oct 12, 1:29 am, SigmaBlu sigmabl...@gmail.com wrote: Is there a way to link a css file to the ui.xml file? For example, I am able to link it by doing the following: ui:style src=xyz.css / The css is located within the same directory as my UiBinder Class and my ui.xml file; so it picks up that css in its root directory. Lets say that the source of my css file is located..here C:\Program Files\Users\MyUserName\Desktop\Poject\CSS\xyz.css How can i let the ui.xml file know that its source (ui:style src=xyz.css /) is located in the above directory (C:\Program Files \Users\MyUserName\Desktop\Poject\CSS\xyz.css)? Regards, Sigma -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problem with GWT in eclipse helios.
Dear All, I have homework i need to deploy to GWT. For this i use my gmail account ofcourse. But when i want to sign in i get an Invalid Token page. I already tried everything. :( Any ideas ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Convert Java bean Object to JSON in GWT 2.4
Hi Guys!, I'm working in a Project with GWT 2.4 + Smart GWT 2.5. I need convert my Java beans in JSON string. I tried with some library without success (gwtprojsonserializer, gwtjsonizer and the AutoBean framework of GWT). Anyone know of a library that works for this?.. Let me know!. Thanks!. Gere. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Unable to suppress header sorting in DataGrid using GWT 2.4
I am trying to add a button to a DataGrid header by extending Header and I've been able to do that and detect the click event just fine. My problem is that the underlying AbstractCellTable code is firing ColumnSortEvents for every click in the header and there is no simple way to stop that behavior outside of not making that column sortable or completely overriding AbstractCellTable#onBrowserEvent2, neither of which I want to do. Has anyone else ran into this issue? Thanks, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Convert Java bean Object to JSON in GWT 2.4
As to JSON: Have you tried Google GSON library ? http://code.google.com/p/google-gson/ And second question: Do you really need JSON? RequestFactory does not suit your case? http://code.google.com/intl/pl/webtoolkit/doc/latest/DevGuideRequestFactory.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Places - How to customize the place name? And what's the best way to use AP with Gin?
While the prefix identifies the place, the token stores the internal state of that place. How to convert a place state into a string token is up to the developer by implementing the getToken() method of PlaceTokenizer. If a MyPlace has two state variables s1 and s2 you could create tokens like #MyPlace:s1=1s2=test or #MyPlace:s1:1,s2:test ... (its really up to you). With some more complex customization you can also achieve hash fragments like #/myplace/1/test which look more like a typical url (a good example would be the current URL in your browser as the new Google Groups website is done with GWT). Well and the reverse way is also up to the developer. If someone visits your site via www.domain.com/#MyPlace:s1=1s2=test you have to create a place based on the token (thats done in PlaceTokenizer.getPlace()). So you would split the token into its parts and construct a place new MyPlace(1, test). The Activity could then use the state information 1 and test to configure the view or to preselect something, etc. So basically its somehow like URL parameters but its much more customizable as everything happens inside the hash fragment of the URL. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/u64rpvMSTX8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Convert Java bean Object to JSON in GWT 2.4
here's another nice project http://code.google.com/p/piriti/ to use on the client side On Wed, Oct 12, 2011 at 7:38 PM, Tomasz Gawel tomaszga...@op.pl wrote: As to JSON: Have you tried Google GSON library ? http://code.google.com/p/google-gson/ And second question: Do you really need JSON? RequestFactory does not suit your case? http://code.google.com/intl/pl/webtoolkit/doc/latest/DevGuideRequestFactory.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Adding external jar to client side
to include external gwt library in jar: 1. library jar should have gwt.xml inside it with arbitrary name identyfing the lib. for example file named YourLibrary.gwt.xml with contents as below: module inherits name='com.google.gwt.user.User'/ /module 2. gwt.xml file in project that uses it should inherit it with: inherits name=your.jndi.path.package.YourLibrary/ !-- note the name is the same as gwt.xml in jar and package the jndi path to where it exists -- 3. make sure your has the library jar in classpath (in eclipse set it in porject properties or pass it to javac when compiling). it should work ;) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Adding external jar to client side
sorry in point 3 not javac but java -cp gwt-dev.jar:your-lib.jar com.google.gwt.dev.Compiler (replace : with ; on win) as its not compiled with javac :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Thoughts on Adding Widgets
Posted a similar question before but could not get any concrete answer for this . Now the problem is back to haunt me again . Would appreciate any help on this , especially with 2.4 GWT APi avilaible , just want to check back with you guys If this is even possible . Basically what I want to do is replace the text typed by a user with Widgets . Think of it as a Rich text area where atomically a word if spelt wrong we get suggestions on the word and the word gets replaced with the right one . I want to do something except that the word should get replaced with a Widget ( which can be vertical , horizontal Panel etc) . I don't have to implement this in a text area , i could do this in any widget . Thinking of Flow Panel to implement this but my thoughts do not cross anywhere beyond the flow Panel . Suggestion Team ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 Designer fails under Eclipse 3.7 with latest update
I get the stack trace whilst trying to access the Design view. I am running Eclipse 3.7.1 under Linux Ubuntu 10.04. !ENTRY org.eclipse.wb.core 4 4 !MESSAGE Designer [2.4.2.r37x201109270347]: 4107 (Unable to load native library.). gwt-ll !STACK 0 org.eclipse.wb.internal.core.utils.exception.DesignerException: 4107 (Unable to load native library.). gwt-ll at com.google.gdt.eclipse.designer.GwtExceptionRewriter.rewrite(GwtExceptionRewriter.java: 74) at org.eclipse.wb.internal.core.utils.exception.DesignerExceptionUtils.rewriteException(DesignerExceptionUtils.java: 225) at org.eclipse.wb.internal.core.editor.DesignPage.showExceptionOnDesignPane(DesignPage.java: 472) at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java: 414) at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java: 381) at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java: 377) at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java: 46) at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java: 34) at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java: 87) at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite $3.widgetSelected(ExceptionComposite.java:129) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java: 240) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java: 3588) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java: 2696) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java: 332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java: 667) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java: 149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java: 123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java: 196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java: 110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java: 79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 43) at java.lang.reflect.Method.invoke(Method.java:616) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) Caused by: java.lang.UnsatisfiedLinkError: no gwt-ll in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681) at java.lang.Runtime.loadLibrary0(Runtime.java:840) at java.lang.System.loadLibrary(System.java:1047) at com.google.gdt.eclipse.designer.moz.BrowserShellLinux.init(BrowserShellLinux.java: 86) at com.google.gdt.eclipse.designer.moz.BrowserShellLinux32.init(BrowserShellLinux32.java: 42) at com.google.gdt.eclipse.designer.moz.BrowserShellFactory.create(BrowserShellFactory.java: 30) at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.createBrowserShell(HostedModeSupport.java: 311) at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.init(HostedModeSupport.java: 88) at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupportFactory.create(HostedModeSupportFactory.java: 33) at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.getHostedModeSupport(GwtState.java: 939) at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize0(GwtState.java: 228) at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize(GwtState.java: 204) at com.google.gdt.eclipse.designer.parser.ParseFactory.getClassLoader(ParseFactory.java: 430) at org.eclipse.wb.internal.core.parser.AbstractParseFactory.initializeClassLoader(AbstractParseFactory.java: 732) at
Re: Binder problem in ui.xml file?
Wrap both in g:HTMLPanel g:center g:HTMLPanel Flow/ Flow.../ /g:HTMLPanel /g:center -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dInUljgXhtAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: PlaceHistoryHandler for URL with multiple args
Adding an example to this piece: MyPlace extends AppPlace { int param1; public MyPlace(String token){ this.param1 = getInt(pid, token); //if url is #my-place?pid=12tid=4 int var = getInt(tid, token) .. } ... } Probably a better way of doing all of this but wanted to update this example to link to in another gwt question -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/USBmGMFC3DQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Activities and Places
Thank you for posting the same question twice: try this link: https://groups.google.com/d/topic/google-web-toolkit/PzlyZ3Gjazg/discussion -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/F5bEX5D3z5IJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Activities and Places
Thanks... On Thu, Oct 13, 2011 at 7:02 AM, Ashton Thomas ash...@acrinta.com wrote: Thank you for posting the same question twice: try this link: https://groups.google.com/d/topic/google-web-toolkit/PzlyZ3Gjazg/discussion -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/F5bEX5D3z5IJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: PlaceHistoryHandler for URL with multiple args
Hi Thomas, Thanks for putting this, but how do u register the tokens specific can you given up a n entire example along with Activities and Place eg: http://localhost:/book:id=1id=2 http://localhost/search?author:name=50publisher=MIThttp://localhost/author:name=50publish=MIT Meaning in the above the example you suggested how to parse the token, but how do you register this token for each place. how to achieve different parameters for each of the place, pls suggest ur thoughts, Thanks in advance Sri. On Thu, Oct 13, 2011 at 7:01 AM, Ashton Thomas ash...@acrinta.com wrote: Adding an example to this piece: MyPlace extends AppPlace { int param1; public MyPlace(String token){ this.param1 = getInt(pid, token); //if url is #my-place?pid=12tid=4 int var = getInt(tid, token) .. } ... } Probably a better way of doing all of this but wanted to update this example to link to in another gwt question -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/USBmGMFC3DQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: PlaceHistoryHandler for URL with multiple args
Not exactly sure what you are looking for but I think you want to look at the PlaceHistoryMapper: public class AppPlaceHistoryMapper implements PlaceHistoryMapper{ public Place getPlace(String token) { if(token.startsWith(something)){ //assume SomethingPlace has params //so the token is actually something?p1=2p2=12 //this would just route anything starting with something //to the SomethingPlace //the constructor should handle parsing the actual param values return new SomethingPlace(token); }else if(token.startsWith(something-else)){ return new SomethingElsePlace(token); } return null; } public String getToken(Place place) { if(place instanceof AppPlace){ return ((AppPlace)place).getToken(); } return null; } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bU7NvTR9cqoJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Server Side serial port access in GWT with RXTX
I've been looking around for a succinct answer on this one, but I have been reading conflicting comments. I want to use the RXTX package on the Server-Side only to access my serial port (I realize there are access restrictions on the client side anyway). Some say that you can just put the .jar into the war/blah/lib directory, others say that you can reference from an external server like Tomcat (yeah, I don't know what that means yet). At present I am getting the is not supported by Google App Engine's Java runtime environment for my server side implementation of the Serial Port Access service I am creating. Can anyone in the ether help a rookie to GWT? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Server Side serial port access in GWT with RXTX
Remove any appengine jars from your app since you won't be needing anything from that for this. And if you're using eclipse or something like that to build/run it, remove it from your project there too. On Oct 12, 8:53 pm, Steve Struebing steve.strueb...@gmail.com wrote: I've been looking around for a succinct answer on this one, but I have been reading conflicting comments. I want to use the RXTX package on the Server-Side only to access my serial port (I realize there are access restrictions on the client side anyway). Some say that you can just put the .jar into the war/blah/lib directory, others say that you can reference from an external server like Tomcat (yeah, I don't know what that means yet). At present I am getting the is not supported by Google App Engine's Java runtime environment for my server side implementation of the Serial Port Access service I am creating. Can anyone in the ether help a rookie to GWT? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: fileupload does not work with files larger than around 15kb: ACCESS DENIED!
Does whatever user you're running your web app in have write access to that directory? It could be for smaller files it's just loading those into memory directly instead of a temp file. On Oct 12, 2:14 pm, m...@grayout.de m...@grayout.de wrote: Hi all, I am currently working on an gwt application where the client needs to upload some files on the server so they can undergo some further processing. I found the Servlet shown below in some Tutorial that, invoked by the client, should allow me to upload a file to the server. Interestingly, this works for small files (text and binary) a far as they are not larger than something around 15 kb. Otherwise, I get an error looking like this: access denied (java.io.FilePermission /var/folders/iw/iwDgjwOcEVqjzDb6t18ytnj1v9w/- Tmp-/upload_78b21457_132f972f394__8000_0010.tmp write) Help would be much apreciated! Thanks in advance! Best Regards, Uli PS: And here comes the code: public class FileUploadServlet extends HttpServlet implements Servlet { private static final long serialVersionUID = 8305367618713715640L; protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/plain); FileItem uploadItem = getFileItem(request); if (uploadItem == null) { response.getWriter().write(NO-SCRIPT-DATA); return; } byte[] fileContents = uploadItem.get(); //TODO: add code to process file contents here. We will just printit. System.out.println(new String(fileContents)); response.getWriter().write(new String(fileContents)); } private FileItem getFileItem(HttpServletRequest request) { FileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload upload = new ServletFileUpload(factory); try { System.out.println(request); List items = upload.parseRequest(request); System.out.println(FILE READ ###); Iterator it = items.iterator(); while (it.hasNext()) { FileItem item = (FileItem) it.next(); if (!item.isFormField() uploadFormElement.equals(item.getFieldName())) { return item; } } } catch (FileUploadException e) { return null; } return null; } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: PlaceHistoryHandler for URL with multiple args
public abstract class AbstractBasePlace extends Place { private static final Logger logger = Logger.getLogger(AbstractBasePlace.class.getName()); private static final String VALIDATE_TOKENS_MESSAGE_PREFIX = Missing token(s): ; private String url; private MapString, String params = new HashMapString, String(); /** * * @param token *will be parsed to extract the parameters passed as part of url */ protected AbstractBasePlace(String... tokens) { if (tokens.length % 2 != 0) { logger.warning(Invalid arguments received! + Must be name,value,name,value ... Ignoring arguments!); return; } StringBuilder stringBuilder = new StringBuilder(); for (int i = 0; i tokens.length; i++) { final String paramName = tokens[i++]; final String paramValue = tokens[i]; // build params map params.put(paramName, paramValue); // build url stringBuilder.append(paramName + = + paramValue + ); } url = stringBuilder.toString(); } protected AbstractBasePlace(String url) { if (url == null || url.isEmpty()) { logger.warning(Url empty, no-op); return; } this.url = url; ListString list = Arrays.asList(url.split()); if (list == null || list.size() 1) { logger.warning(Token empty, no-op); return; } for (String listItem : list) { ListString nvPair = Arrays.asList(listItem.split(=)); if (nvPair == null || nvPair.size() != 2) { logger.warning(Invalid paramters); continue; } params.put(nvPair.get(0), nvPair.get(1)); } } /** * Checks whether 'this' is constructed with the required parameters. The * list of required params must be passed as argument. * * @param requiredLiterals */ protected void validate(String... paramNames) { StringBuffer message = new StringBuffer(VALIDATE_TOKENS_MESSAGE_PREFIX); for (String name : paramNames) { if (!params.containsKey(name)) message.append(name + ); } // if something is added to the string show if (!message.toString().equals(VALIDATE_TOKENS_MESSAGE_PREFIX)) { logger.warning(message.toString()); // Status.failure(message.toString()); } } public String getUrl() { return url; } public String getParameter(String name) { return params.get(name); } public boolean hasParameter(String name) { return params.containsKey(name); } } All your places can extend this class and you can use 2 constructors depending upon the context: 1. Use this if you are constructing the place, to be used with placecontroller. 2. Use this for constructing place within PlaceTokenizer. And when ever you want a param, just call place.hasParam() and place.getParam() Hope this helps. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ZlJGC2wqNyAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
rss feed
hi , can somebody tell me how to add rss feed in a portlet. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: PlaceHistoryHandler for URL with multiple args
// place and placetokenizer for your reference public class AgencyPlace extends AbstractBasePlace { public AgencyPlace(String token) { super(token); } @Prefix(agency-place) public static class Tokenizer implements PlaceTokenizerAgencyPlace { @Override public AgencyPlace getPlace(String token) { return new AgencyPlace(token); } @Override public String getToken(AgencyPlace place) { return place.getUrl(); } } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/hjAnTz5FYk0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: rss feed
Hi, what portlet api are you using? if I may, I think you need the XSD and the rss feed link so that you may be able to parse data from your portlet. I suggest you create first your parser api (or you can search for any parser via google - theres a lot of open source java api you can use for this) - this is for you to retrieve data from the RSS feed then use that data in your own portlet. On Thu, Oct 13, 2011 at 1:29 PM, yashujn yashssha...@gmail.com wrote: hi , can somebody tell me how to add rss feed in a portlet. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Alvin P. Reyes*, Oracle Certified Professional, Java Programmer Oracle Certified Professional, Java Web Component Developer Oracle Certified Professional, Java Business Component Developer Software Engineer Blog: http://requestandresponse.wordpress.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: rss feed
hi, thnks for ur quick response and valuable suggestion.. one more thing i want to clear tht .like in igoogle cnn portelt is their in which they used cnn rss feed for different news i just want to create a portlet like thatis it possible with that api i m sorry to ask u silly question but i dnt have any dea abt it.. thnks On Oct 13, 10:34 am, Alvin Reyes alvin.jay.p.re...@gmail.com wrote: Hi, what portlet api are you using? if I may, I think you need the XSD and the rss feed link so that you may be able to parse data from your portlet. I suggest you create first your parser api (or you can search for any parser via google - theres a lot of open source java api you can use for this) - this is for you to retrieve data from the RSS feed then use that data in your own portlet. On Thu, Oct 13, 2011 at 1:29 PM, yashujn yashssha...@gmail.com wrote: hi , can somebody tell me how to add rss feed in a portlet. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Alvin P. Reyes*, Oracle Certified Professional, Java Programmer Oracle Certified Professional, Java Web Component Developer Oracle Certified Professional, Java Business Component Developer Software Engineer Blog:http://requestandresponse.wordpress.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Add HasEnabled to SuggestBox (issue1567803)
Thanks for taking this over Stephen. Could you extend SuggestBoxTest to cover it? Also, have you looked at the behavior manually? Does it actually work as expected? In particular I'm wondering what happens if the user tabs into the box. http://gwt-code-reviews.appspot.com/1567803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add HasEnabled to SuggestBox (issue1567803)
Reviewers: rjrjr, Message: Thanks for taking this over Stephen. Could you extend SuggestBoxTest to cover it? Also, have you looked at the behavior manually? Does it actually work as expected? In particular I'm wondering what happens if the user tabs into the box. All good ideas, I'll look in to it. Please review this at http://gwt-code-reviews.appspot.com/1567803/ Affected files: M user/src/com/google/gwt/user/client/ui/SuggestBox.java Index: user/src/com/google/gwt/user/client/ui/SuggestBox.java diff --git a/user/src/com/google/gwt/user/client/ui/SuggestBox.java b/user/src/com/google/gwt/user/client/ui/SuggestBox.java index 7a1f4318e11d09ea7350c09b9da62c6fb2b1dc8b..d74b1fea77167d676519f5c7162038eea7f2a8cb 100644 --- a/user/src/com/google/gwt/user/client/ui/SuggestBox.java +++ b/user/src/com/google/gwt/user/client/ui/SuggestBox.java @@ -105,7 +105,7 @@ import java.util.List; */ @SuppressWarnings(deprecation) public class SuggestBox extends Composite implements HasText, HasFocus, -HasAnimation, SourcesClickEvents, SourcesChangeEvents, +HasAnimation, HasEnabled, SourcesClickEvents, SourcesChangeEvents, SourcesKeyboardEvents, FiresSuggestionEvents, HasAllKeyHandlers, HasValueString, HasSelectionHandlersSuggestion, IsEditorLeafValueEditorString { @@ -923,6 +923,15 @@ public class SuggestBox extends Composite implements HasText, HasFocus, } /** + * Gets whether this widget is enabled. + * + * @return codetrue/code if the widget is enabled + */ + public boolean isEnabled() { +return box.isEnabled(); + } + + /** * Check if the {@link DefaultSuggestionDisplay} is showing. Note that this * method only has a meaningful return value when the * {@link DefaultSuggestionDisplay} is used. @@ -1012,6 +1021,16 @@ public class SuggestBox extends Composite implements HasText, HasFocus, this.selectsFirstItem = selectsFirstItem; } + /** + * Sets whether this widget is enabled. + * + * @param enabled codetrue/code to enable the widget, codefalse/code + * to disable it + */ + public void setEnabled(boolean enabled) { +box.setEnabled(enabled); + } + public void setFocus(boolean focused) { box.setFocus(focused); } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Added a getter for the ResettableEventBus object. (issue1569803)
Thanks for the patch. Please be sure to run ant test (which will tell you that you need to put this method in alphabetical order). And please extend ActivityManagerTest, particularly checking that the returned bus actually is reset as expected. http://gwt-code-reviews.appspot.com/1569803/diff/1/user/src/com/google/gwt/activity/shared/ActivityManager.java File user/src/com/google/gwt/activity/shared/ActivityManager.java (right): http://gwt-code-reviews.appspot.com/1569803/diff/1/user/src/com/google/gwt/activity/shared/ActivityManager.java#newcode265 user/src/com/google/gwt/activity/shared/ActivityManager.java:265: * the current activity is stopped, so activities will rarely need to hold on the bit after ... is stopped doesn't make a lot of sense here. http://gwt-code-reviews.appspot.com/1569803/diff/1/user/src/com/google/gwt/activity/shared/ActivityManager.java#newcode272 user/src/com/google/gwt/activity/shared/ActivityManager.java:272: public EventBus getActivityEventBus() { How about getActiveEventBus http://gwt-code-reviews.appspot.com/1569803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Improves Dev Mode reporting of JavaScriptException to include method (issue1570803)
Reviewers: tobyr, Description: Improves Dev Mode reporting of JavaScriptException to include method name and args. Review by: to...@google.com Please review this at http://gwt-code-reviews.appspot.com/1570803/ Affected files: M dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java M dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java M user/src/com/google/gwt/core/client/JavaScriptException.java Index: dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java === --- dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java (revision 10696) +++ dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java (working copy) @@ -241,8 +241,8 @@ // JSException exceptionValue = returnValue.getValue().toString(); } -RuntimeException exception = ModuleSpace.createJavaScriptException( -ccl, exceptionValue); +RuntimeException exception = ModuleSpace.createJavaScriptException(ccl, +exceptionValue, methodName + ( + args + ), return value: + returnJsValue); // reset the stack trace to here to minimize GWT infrastructure in // the stack trace exception.fillInStackTrace(); Index: dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java === --- dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java (revision 10696) +++ dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java (working copy) @@ -61,13 +61,23 @@ */ protected static RuntimeException createJavaScriptException(ClassLoader cl, Object exception) { +return createJavaScriptException(cl, exception, ); + } + + /** + * Create a JavaScriptException object. This must be done reflectively, since + * this class will have been loaded from a ClassLoader other than the + * session's thread. + */ + protected static RuntimeException createJavaScriptException(ClassLoader cl, + Object exception, String message) { Exception caught; try { Class? javaScriptExceptionClass = Class.forName( com.google.gwt.core.client.JavaScriptException, true, cl); Constructor? ctor = javaScriptExceptionClass.getDeclaredConstructor( - Object.class); - return (RuntimeException) ctor.newInstance(new Object[] {exception}); + Object.class, String.class); + return (RuntimeException) ctor.newInstance(new Object[] {message, exception}); } catch (InstantiationException e) { caught = e; } catch (IllegalAccessException e) { Index: user/src/com/google/gwt/core/client/JavaScriptException.java === --- user/src/com/google/gwt/core/client/JavaScriptException.java (revision 10696) +++ user/src/com/google/gwt/core/client/JavaScriptException.java (working copy) @@ -82,7 +82,7 @@ * The original description of the JavaScript exception this class wraps, * initialized as codee.message/code. */ - private String description; + private String description = ; /** * The underlying exception this class wraps. @@ -104,7 +104,18 @@ * @param e the object caught in JavaScript that triggered the exception */ public JavaScriptException(Object e) { +this(e, ); + } + + /** + * @param e the object caught in JavaScript that triggered the exception + * @param description to include in getMessage(), e.g. at the top of a stack + * trace + */ + public JavaScriptException(Object e, String description) { this.e = e; +this.description = description; + /* * In Development Mode, JavaScriptExceptions are created exactly when the * native method returns and their stack traces are fixed-up by the @@ -117,7 +128,7 @@ StackTraceCreator.createStackTrace(this); } } - + public JavaScriptException(String name, String description) { this.message = JavaScript + name + exception: + description; this.name = name; @@ -177,8 +188,8 @@ private void init() { name = getName(e); -description = getDescription(e); -message = ( + name + ): + description + getProperties(e); +description = description + : + getDescription(e); +message = ( + name + ) + getProperties(e) + description; } } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fixed a typo in exclude NonTckTest flag, that was causing the TCK results count to be wrong. (issue1571803)
Reviewers: rjrjr, Description: Fixed a typo in exclude NonTckTest flag, that was causing the TCK results count to be wrong. Format the METHOD_FILTER and improved variable names in TckTestSuiteWrapper. [JSR 303 TCK Result] 151 of 257 (58.75%) Pass with 32 Failures and 7 Errors. Please review this at http://gwt-code-reviews.appspot.com/1571803/ Affected files: M user/test/org/hibernate/jsr303/tck/util/TckTestSuiteWrapper.java M user/test/org/hibernate/jsr303/tck/util/client/NonTckTest.java Index: user/test/org/hibernate/jsr303/tck/util/TckTestSuiteWrapper.java === --- user/test/org/hibernate/jsr303/tck/util/TckTestSuiteWrapper.java (revision 10697) +++ user/test/org/hibernate/jsr303/tck/util/TckTestSuiteWrapper.java (working copy) @@ -56,11 +56,12 @@ private static final PredicateMethod EXCLUDE_NON_TCK_TEST = createHasProperty(NonTckTest.EXCLUDE); @SuppressWarnings(unchecked) - private static final PredicateMethod METHOD_FILTER = and( - or(INCLUDE_NOT_SUPPORTED, not(HAS_NOT_SUPPORTED)), - or(INCLUDE_TEST_NOT_COMPATIBLE, not(HAS_TEST_NOT_COMPATIBLE)), - not(and(EXCLUDE_NON_TCK_TEST, HAS_NON_TCK_TEST)), - or(INCLUDE_FAILING, not(HAS_FAILING)) + private static final PredicateMethod METHOD_FILTER = + and( + or(INCLUDE_NOT_SUPPORTED, not(HAS_NOT_SUPPORTED)), + or(INCLUDE_TEST_NOT_COMPATIBLE, not(HAS_TEST_NOT_COMPATIBLE)), + or(INCLUDE_FAILING, not(HAS_FAILING)), + not(and(EXCLUDE_NON_TCK_TEST, HAS_NON_TCK_TEST)) ); public static PredicateMethod createHasAnnotationPredicate( @@ -75,9 +76,9 @@ private static T PredicateT createHasProperty(final String property) { return new PredicateT() { - public boolean apply(T arg0) { -String include = System.getProperty(property); -return Boolean.parseBoolean(include); + public boolean apply(T notUsed) { +String value = System.getProperty(property); +return Boolean.parseBoolean(value); } }; } Index: user/test/org/hibernate/jsr303/tck/util/client/NonTckTest.java === --- user/test/org/hibernate/jsr303/tck/util/client/NonTckTest.java (revision 10697) +++ user/test/org/hibernate/jsr303/tck/util/client/NonTckTest.java (working copy) @@ -37,5 +37,5 @@ * property {@value} is set to true the {@link TckTestSuiteWrapper} will not * run the tests annotated {@link Failing}. */ - String EXCLUDE = com.google.gwt.sample.validationtck.util.NotTckTest.exclude; + String EXCLUDE = com.google.gwt.sample.validationtck.util.NonTckTest.exclude; } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixed a typo in exclude NonTckTest flag, that was causing the TCK results count to be wrong. (issue1571803)
LGTM Oopsie. http://gwt-code-reviews.appspot.com/1571803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Added a getter for the ResettableEventBus object. (issue1569803)
On 2011/10/12 21:47:29, maximilian.ruppaner wrote: LGTM http://gwt-code-reviews.appspot.com/1569803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add HasEnabled to SuggestBox (issue1567803)
http://gwt-code-reviews.appspot.com/1567803/diff/4001/user/src/com/google/gwt/user/client/ui/SuggestBox.java File user/src/com/google/gwt/user/client/ui/SuggestBox.java (left): http://gwt-code-reviews.appspot.com/1567803/diff/4001/user/src/com/google/gwt/user/client/ui/SuggestBox.java#oldcode576 user/src/com/google/gwt/user/client/ui/SuggestBox.java:576: } This method was flagged as unused, so I removed it. Perhaps it was overriding an old method in MenuBar? It is no longer there if so. Tests still pass. http://gwt-code-reviews.appspot.com/1567803/diff/4001/user/src/com/google/gwt/user/client/ui/SuggestBox.java#oldcode621 user/src/com/google/gwt/user/client/ui/SuggestBox.java:621: @SuppressWarnings(hiding) Not sure what this was for, but it had a warning it was unneeded. http://gwt-code-reviews.appspot.com/1567803/diff/4001/user/src/com/google/gwt/user/client/ui/SuggestBox.java File user/src/com/google/gwt/user/client/ui/SuggestBox.java (right): http://gwt-code-reviews.appspot.com/1567803/diff/4001/user/src/com/google/gwt/user/client/ui/SuggestBox.java#newcode1023 user/src/com/google/gwt/user/client/ui/SuggestBox.java:1023: display.hideSuggestions(); Actually trying this was a good idea; I made a sample that enabled/disabled the box every 2 seconds, and if you were in the box when it was disabled, the suggestion list stayed put. So this fixes that. I added a few more elements on the page and tabbed around while it was both enabled and disabled and didn't see any issues. When disabled, it's not in the tab order. When re-enabled, it's back in the tab order. http://gwt-code-reviews.appspot.com/1567803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Improves Dev Mode reporting of JavaScriptException to include method (issue1570803)
Ready for review Mr. Toby. http://gwt-code-reviews.appspot.com/1570803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Improves Dev Mode reporting of JavaScriptException to include method (issue1570803)
http://gwt-code-reviews.appspot.com/1570803/diff/1/dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java File dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java (right): http://gwt-code-reviews.appspot.com/1570803/diff/1/dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java#newcode245 dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java:245: exceptionValue, methodName + ( + args + ), return value: + returnJsValue); Do you want Arrays.toString(args) instead of args? http://gwt-code-reviews.appspot.com/1570803/diff/1/dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java File dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java (right): http://gwt-code-reviews.appspot.com/1570803/diff/1/dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java#newcode60 dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java:60: * session's thread. Rather than duping the doc, something like: Equivalent to {@link #createJavaScriptException(ClassLoader,Object,String) createJavaScriptException(cl, exception, )} http://gwt-code-reviews.appspot.com/1570803/diff/1/user/src/com/google/gwt/core/client/JavaScriptException.java File user/src/com/google/gwt/core/client/JavaScriptException.java (right): http://gwt-code-reviews.appspot.com/1570803/diff/1/user/src/com/google/gwt/core/client/JavaScriptException.java#newcode191 user/src/com/google/gwt/core/client/JavaScriptException.java:191: description = description + : + getDescription(e); I'm a little confused by what's going on here, since you seem to be overloading the meaning of description. http://gwt-code-reviews.appspot.com/1570803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Improves Dev Mode reporting of JavaScriptException to include method (issue1570803)
http://gwt-code-reviews.appspot.com/1570803/diff/1/dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java File dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java (right): http://gwt-code-reviews.appspot.com/1570803/diff/1/dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java#newcode245 dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java:245: exceptionValue, methodName + ( + args + ), return value: + returnJsValue); Oops, no doubt. Thanks. On 2011/10/13 00:02:19, tobyr wrote: Do you want Arrays.toString(args) instead of args? http://gwt-code-reviews.appspot.com/1570803/diff/1/dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java File dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java (right): http://gwt-code-reviews.appspot.com/1570803/diff/1/dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java#newcode60 dev/core/src/com/google/gwt/dev/shell/ModuleSpace.java:60: * session's thread. On 2011/10/13 00:02:19, tobyr wrote: Rather than duping the doc, something like: Equivalent to {@link #createJavaScriptException(ClassLoader,Object,String) createJavaScriptException(cl, exception, )} Done. http://gwt-code-reviews.appspot.com/1570803/diff/1/user/src/com/google/gwt/core/client/JavaScriptException.java File user/src/com/google/gwt/core/client/JavaScriptException.java (right): http://gwt-code-reviews.appspot.com/1570803/diff/1/user/src/com/google/gwt/core/client/JavaScriptException.java#newcode191 user/src/com/google/gwt/core/client/JavaScriptException.java:191: description = description + : + getDescription(e); Description now defaults to , and a manual description can be passed in to the constructor. getDescription(Object) is a static method that gets info out of an exception or one or two other kinds of objects. The init call here ensures that we see both the optional description and the summary of e. I'll doc it, or rename the static method to clear things up. On 2011/10/13 00:02:19, tobyr wrote: I'm a little confused by what's going on here, since you seem to be overloading the meaning of description. http://gwt-code-reviews.appspot.com/1570803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Include non-client side types in dependencies (issue1569804)
Reviewers: zundel, Message: This is just a spike, but client-side code now gets successfully recompiled if its binary-only annotations go-away/appear/change. A few notes: All of the getResourceAsStream calls (especially for the made up simple/qualified refs that come out of JDT) took up a lot of time if done repeatedly, so I had to introduce a Ref cache so only look them up once. Should probably only get the context class loader once as well. Was thinking it might be nicer to have a NULL Ref, at least for the ref cache it would make distinguishing between has not been checked yet and no ref was found. Right now I do a map.containsKey then another get. I can work on polishing this but wanted to get a draft out to see if you had any comments on the approach. Please review this at http://gwt-code-reviews.appspot.com/1569804/ Affected files: M dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java M dev/core/src/com/google/gwt/dev/javac/Dependencies.java Index: dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java diff --git a/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java b/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java index c3598acd7e4821d5c2eb2c6976613b7d53e45414..7a3c88b6aef9bd761c24cd69cb27e13fc8b4bd7d 100644 --- a/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java +++ b/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java @@ -16,6 +16,7 @@ package com.google.gwt.dev.javac; import com.google.gwt.core.ext.TreeLogger; +import com.google.gwt.dev.javac.Dependencies.Ref; import com.google.gwt.dev.javac.JdtCompiler.AdditionalTypeProviderDelegate; import com.google.gwt.dev.javac.JdtCompiler.UnitProcessor; import com.google.gwt.dev.jjs.CorrelationFactory.DummyCorrelationFactory; @@ -249,8 +250,9 @@ public class CompilationStateBuilder { builders.clear(); // Resolve all newly built unit deps against the global classes. +MapString, Ref refCache = new HashMapString, Ref(); for (CompilationUnit unit : newlyBuiltUnits) { - unit.getDependencies().resolve(allValidClasses); + unit.getDependencies().resolve(refCache, allValidClasses); } /* @@ -261,7 +263,7 @@ public class CompilationStateBuilder { cachedUnits.entrySet().iterator(); it.hasNext();) { EntryCompilationUnitBuilder, CompilationUnit entry = it.next(); CompilationUnit unit = entry.getValue(); - boolean isValid = unit.getDependencies().validate(logger, allValidClasses); + boolean isValid = unit.getDependencies().validate(logger, refCache, allValidClasses); if (isValid unit.isError()) { // See if the unit has classes that can't provide a // NameEnvironmentAnswer Index: dev/core/src/com/google/gwt/dev/javac/Dependencies.java diff --git a/dev/core/src/com/google/gwt/dev/javac/Dependencies.java b/dev/core/src/com/google/gwt/dev/javac/Dependencies.java index faa6ef31ee79e137a943190c821f375c7d9509b5..ce2f00277eab3f5ff8af073ef4aad969f43fb9d5 100644 --- a/dev/core/src/com/google/gwt/dev/javac/Dependencies.java +++ b/dev/core/src/com/google/gwt/dev/javac/Dependencies.java @@ -17,9 +17,12 @@ package com.google.gwt.dev.javac; import com.google.gwt.core.ext.TreeLogger; import com.google.gwt.dev.util.StringInterner; +import com.google.gwt.dev.util.Util; import com.google.gwt.dev.util.collect.HashMap; import com.google.gwt.dev.util.collect.Lists; +import com.google.gwt.util.tools.Utility; +import java.io.InputStream; import java.io.Serializable; import java.util.List; import java.util.Map; @@ -107,18 +110,18 @@ class Dependencies implements Serializable { * Resolves unqualified dependencies against the global list of all valid * classes. Must be called before {@link #validate(String, Map, Map)}. */ - void resolve(MapString, CompiledClass allValidClasses) { + void resolve(MapString, Ref refCache, MapString, CompiledClass allValidClasses) { for (EntryString, Ref entry : qualified.entrySet()) { - CompiledClass cc = allValidClasses.get(entry.getKey()); - if (cc != null) { -entry.setValue(new Ref(cc)); + Ref ref = findCompiledClassOrAnnotation(refCache, allValidClasses, entry.getKey()); + if (ref != null) { +entry.setValue(ref); } } for (EntryString, Ref entry : simple.entrySet()) { - CompiledClass cc = findBySimpleName(entry.getKey(), allValidClasses); - if (cc != null) { -entry.setValue(new Ref(cc)); + Ref ref = findBySimpleName(refCache, entry.getKey(), allValidClasses); + if (ref != null) { +entry.setValue(ref); } } } @@ -129,15 +132,15 @@ class Dependencies implements Serializable { * * @return codetrue/code if all of my dependencies are valid */ - boolean validate(TreeLogger logger, MapString, CompiledClass allValidClasses)
[gwt-contrib] Re: Improves Dev Mode reporting of JavaScriptException to include method (issue1570803)
http://gwt-code-reviews.appspot.com/1570803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Improves Dev Mode reporting of JavaScriptException to include method (issue1570803)
LGTM http://gwt-code-reviews.appspot.com/1570803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add HasEnabled to SuggestBox (issue1567803)
I published a demo here: http://sh-hello.appspot.com/ http://gwt-code-reviews.appspot.com/1567803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors