Re: Unit testing of generators
Actually I was referring to if I needed to use GWT trunk to be able to use RealJavaResource, because it causes some problems. But I came across the problem you mentioned shortly after and your answer proved very helpful, thank you. I now put my testing code into a different eclipse project to avoid the aforementioned problems with the GWT compiler. It works, but I'm curious if there is a better way to manage your testing code in GWT - e.g. exclude it from the compiler to avoid problems like the one above? Thanks, Tobias -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
java.util.ConcurrentModificationException after installing GWT 2.2
After installing GWT 2.2.0 I keep getting the following error when trying to start my app in Dev Mode: init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: library-inclusion-in-manifest: Compiling 2 source files to C:\Development\IcsContinuity\Webinterface \build\web\WEB-INF\classes compile: compile-jsps: debug-connect-gwt-shell-hosted: GWT4NB https://gwt4nb.dev.java.net GWT installation directory: C:\opt\gwt\gwt-2.2.0 init: debug-connect-gwt-shell-hosted-15: init: debug-connect-gwt-shell-hosted-16: init: debug-connect-gwt-shell-hosted-17: init: debug-connect-gwt-shell-hosted-20: Waiting for the output from the GWT dev mode... Waiting for the output from the GWT dev mode... Waiting for the output from the GWT dev mode... Browsing: http://127.0.0.1:/Portal.html?Obj=98895029.13@team128Act=894.1256@0001?gwt.codesvr=127.0.0.1:9997 java.util.ConcurrentModificationException java.util.ConcurrentModificationException at java.util.LinkedHashMap $LinkedHashIterator.nextEntry(LinkedHashMap.java:373) at java.util.LinkedHashMap $ValueIterator.next(LinkedHashMap.java:388) at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:386) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java: 1086) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800) at com.google.gwt.dev.DevMode.main(DevMode.java:304) BUILD SUCCESSFUL (total time: 38 seconds) I'm using NetBeans 6.9.1, GWT 2.2, SmartGWT 2.4, Firefox 3.6.15 on Vista Business x64 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Using one Activity on two different places, with different funtionallity
Hello! I'am new to gwt and would like some help regardning Activities and Places. I got two different pages (places) where I would like to use the same activity class. However, the functionallity should be different in the two different places. For example, one of the place should show an add button and the other place shold show a remove button. How do I decide which buttons that should show in the different places? Thanks for any advice! Alex -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: RequestFactoryServlet mapping question
You can map the servlet twice to make it available at two distinct URLs (a single servlet, two servlet-mappings) ...or you could change your app/admin app to use ../gwtRequest instead of gwtRequest: construct a DefaultRequestTransporthttp://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/requestfactory/client/DefaultRequestTransport.html, set its request URL accordingly and pass it to RequestFactory#initialize()http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/requestfactory/shared/RequestFactory.html#initialize(com.google.gwt.event.shared.EventBus, com.google.gwt.requestfactory.shared.RequestTransport) (by default, the initialize()http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/requestfactory/shared/RequestFactory.html#initialize(com.google.gwt.event.shared.EventBus)overload without RequestTransport instantiates a DefaultRequestTransport with its default request URL). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: RequestFactoryServlet mapping question
Thanks a lot Thomas! You are so helpful, unbelievable! Right now i chose to map it to two URLs and it works perfect! It's the easiest solution! You are really into the RequestFactory stuff! Keep up the good work! On Mar 9, 10:12 am, Thomas Broyer t.bro...@gmail.com wrote: You can map the servlet twice to make it available at two distinct URLs (a single servlet, two servlet-mappings) ...or you could change your app/admin app to use ../gwtRequest instead of gwtRequest: construct a DefaultRequestTransporthttp://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/g..., set its request URL accordingly and pass it to RequestFactory#initialize()http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/g..., com.google.gwt.requestfactory.shared.RequestTransport) (by default, the initialize()http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/g...)overload without RequestTransport instantiates a DefaultRequestTransport with its default request URL). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using one Activity on two different places, with different funtionallity
You must define 2 places. In one place put the add button in the other place put the remove button. 2011/3/9 Alex alec.lin...@gmail.com Hello! I'am new to gwt and would like some help regardning Activities and Places. I got two different pages (places) where I would like to use the same activity class. However, the functionallity should be different in the two different places. For example, one of the place should show an add button and the other place shold show a remove button. How do I decide which buttons that should show in the different places? Thanks for any advice! Alex -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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.
Button click event handling in a FlexTalbe using MVP (GWT 2.2)
Hello, I am having some trouble with handling button click event when the button is a widget of a FlexTable utilizing MVP framework. Getting a selected row of the FlexTable is well explained as tutorial source code, but button click event is not. The buttons are created dynamically when the FlexTable is loaded. I am not quite sure how I can link those buttons with the event handler. When using MVP framework, In MyView.java, public class MyView extends Composite implements MyPrensenter.Display { private FlexTable containerTable; private FlexTable contentsTable; public MyView() { ... containerTable.setWidget(1,0, contentsTable); } public HasClickedHandlers getList() { return contentsTable; } public void setData(ListString data) { contentsTable.removeAllRows(); for(int i=0; idata.size(); ++i) { contentsTable.setWidget(i, 0, new data.get(i)); // get some data as text contentsTable.setWidget(i, 1, new Button(Edit); } } } setData(ListString) sets table by querying database when the MyView is created. By having HasClickedHandlers getList(), click event for contentsTable is handled. But I am not fully clear how the event handler can be defined for the buttons of contentsTable. I am pretty sure that I can handle those buttons of FlexTable while using MVP. But I think I need some help with this. Help will be greatly appreciated. Thanks :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: java.util.ConcurrentModificationException after installing GWT 2.2
Is SmartGWT compatible with GWT 2.2? See http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/3171958b76f90ddb Juan 2011/3/9 tdk kloe...@ics.de After installing GWT 2.2.0 I keep getting the following error when trying to start my app in Dev Mode: init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: library-inclusion-in-manifest: Compiling 2 source files to C:\Development\IcsContinuity\Webinterface \build\web\WEB-INF\classes compile: compile-jsps: debug-connect-gwt-shell-hosted: GWT4NB https://gwt4nb.dev.java.net GWT installation directory: C:\opt\gwt\gwt-2.2.0 init: debug-connect-gwt-shell-hosted-15: init: debug-connect-gwt-shell-hosted-16: init: debug-connect-gwt-shell-hosted-17: init: debug-connect-gwt-shell-hosted-20: Waiting for the output from the GWT dev mode... Waiting for the output from the GWT dev mode... Waiting for the output from the GWT dev mode... Browsing: http://127.0.0.1:/Portal.html?Obj=98895029.13@team128Act=894.1256@0001?gwt.codesvr=127.0.0.1:9997 java.util.ConcurrentModificationException java.util.ConcurrentModificationException at java.util.LinkedHashMap $LinkedHashIterator.nextEntry(LinkedHashMap.java:373) at java.util.LinkedHashMap $ValueIterator.next(LinkedHashMap.java:388) at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:386) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java: 1086) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800) at com.google.gwt.dev.DevMode.main(DevMode.java:304) BUILD SUCCESSFUL (total time: 38 seconds) I'm using NetBeans 6.9.1, GWT 2.2, SmartGWT 2.4, Firefox 3.6.15 on Vista Business x64 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Button click event handling in a FlexTalbe using MVP (GWT 2.2)
Add the handler for every button. I don't understand your problem Juan 2011/3/9 seongjoo seongjoo@gmail.com Hello, I am having some trouble with handling button click event when the button is a widget of a FlexTable utilizing MVP framework. Getting a selected row of the FlexTable is well explained as tutorial source code, but button click event is not. The buttons are created dynamically when the FlexTable is loaded. I am not quite sure how I can link those buttons with the event handler. When using MVP framework, In MyView.java, public class MyView extends Composite implements MyPrensenter.Display { private FlexTable containerTable; private FlexTable contentsTable; public MyView() { ... containerTable.setWidget(1,0, contentsTable); } public HasClickedHandlers getList() { return contentsTable; } public void setData(ListString data) { contentsTable.removeAllRows(); for(int i=0; idata.size(); ++i) { contentsTable.setWidget(i, 0, new data.get(i)); // get some data as text contentsTable.setWidget(i, 1, new Button(Edit); } } } setData(ListString) sets table by querying database when the MyView is created. By having HasClickedHandlers getList(), click event for contentsTable is handled. But I am not fully clear how the event handler can be defined for the buttons of contentsTable. I am pretty sure that I can handle those buttons of FlexTable while using MVP. But I think I need some help with this. Help will be greatly appreciated. Thanks :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: CellTable enter edit mode on focus of cell?
On 18 Jan., 18:28, piehole peter.hay...@parivedasolutions.com wrote: 2. Is there any way to useTABand SHIFT-TABto navigate between columns instead of LEFT-ARROW and RIGHT-ARROW?CellTableseems to be hardcoded to use left and right arrows and difficult to extend. Does anybody have a solution for this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Button click event handling in a FlexTalbe using MVP (GWT 2.2)
Easiest way would be to define a doEdit(String data) method in your presenter interface (or in an extra delegate interface) and pass the presenter/the delegate interface to your view (via setData or an extra method) setData would then do something like: final String data = data.get(i); Button editButton = new Button(Edit); editButton.addClickHandler(new ClickHandler() { delegate.doEdit(data); }); contentsTable.setWidget(i, 1, editButton); So you are basically forwarding your click events to the presenter/delegate. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
DropDown Button
hello everyone, there a way to create a button in gwt like gmail more actions button without using external library? Thx, hope you can help me. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Disabling certain dates in datepicker failing
Thank you the solution worked. It disables the date in the datepicker. However the user can still enter the date manually in textbox. I handled it by displaying a error message conditionally on addValueChangeHandler. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Code changes not reflected on browser refresh
Hi- I'm using Eclipse 3.5.2 under Ubuntu with Google Web Toolkit SDK 2.2.0, and Google App Engine Java SDK 1.4.2. Recently I worked through the StockWatcher example, found at http://code.google.com/webtoolkit/tools/gwtdesigner/tutorials/stockwatcher.html It used to work such that I could make changes to the java code in the project (for example, in StockWatcher.java) while the development server was running, then refresh my browser (pointed to http://localhost:), and the changes in my code would immediately be reflected on the page. However, something has changed. I have no idea what, or why. Now, if I refresh my browser the code changes are not reflected on the page that comes up. I have to recompile the entire project by clicking on the red G icon labeled GWT Compile Project in the toolbar, which takes a long time, then restart the development server, in order for my changes to become visible in the browser (upon refresh). This is true for both Firefox and Chrome. I've tried a bunch of things to fix this... Project-Build Automatically is checked, and I even tried reinstalling the GWT plugin for eclipse. If I make a change to an HTML file instead., for example StockWatcher.html, the changes are reflected in the browser upon refresh, as normal. Please help! Recompiling the entire project every time is very annoying. Thanks. Andrew -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 processing of Set-Cookie Response header
Hi, I'm working on an app that is using a GWT UI but accessing an existing WADL resource using a request builder and ResponseCallback. On the initial login call to the service the remote server returns a JSessionId cookie as a Set-Cookie header parameter. In normal circumstances (ie if I access the server by making a Get from a browser directly) this cookie is visible. In GWT the cookie has disappeared. I've replicated the problem using a Jersey servlet and returning a selection of Response headers and cookies. Without fail I am unable to see any header with the name 'Set-Cookie' and by extension any cookies. This is true whether I try to access them through response.getHeaders() or Cookies.getCookie(). All other response headers are present as expected, which leads me to the conclusion that the 'Set-Cookie' header is being deliberately stripped from the response. Does this sound correct, was there a deliberate decision taken at some point to strip this header? If so, why? If not, then what is causing this behaviour. It's a major problem, as the sessionId from that cookie is needed for all subsequent calls to the server for authentication... Thanks Steve -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Installing GWT to eclipse 3.6 (helios)
I'm trying install GWT SDK and GWT designer. The installation getting aborted in between. Approximately after downloading about 50% of the contents. I'm exactly following the steps provided in the GWT site. I tried downloading the archive file and installing through that. In that case as well it is informing that some file are missing. Is there any one who can help me? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Run external exe in gwt server-side
Hi, it's possible to run external exe or vbs file from server side code in gwt web application ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Question/Challenge with CSS Style vs DialogBox
Thank you for reading this, In short, I have a challenge with a Style called element.style and a Dialog Box, the box is square and I would like it wider, as I change some styles of the panel which I put in as widget, the inside Panel grows, but the Dialog Box is stubborn and stays square in his size and the panel becomes partly invisible. My level is Java beginner. I following the lecture of Essential GWT and his MVP model (see ISBN 0-321-70514-9) My code according the some examples from the book and mixer of my own thoughts what I hope this is right way to do. // My DialogBox final DialogBox simpleQueryBox = new DialogBox(); simpleQueryBox.setText(Simple Query); simpleQueryBox.setGlassEnabled(true); simpleQueryBox.setAnimationEnabled(true); // the MVP like form. // constructor of SimpleQueryPresenter, gets a instance of DialogBox (so my presenter of this popup box can close himself, sorry for the mesh), string params, the View(page buildup), and a callback which returns an SQL query string as result). final SimpleQueryPresenter simpleQueryPresenter = new SimpleQueryPresenter(simpleQueryBox, params, new SimpleQueryView(), this.getEnvironment(),new SimpleCallbackString(){ @Override public void goBack(String result) { // TODO Auto-generated method stub // not important yet. } }); // put them together. simpleQueryBox.setWidget(simpleQueryPresenter.getDisplay().asWidget()); After that an Handler tells the simpleQueryBox to appear and the SimpleQuery handler tells him to hide, simple it works. BUT,I want it the box being wider, and I cannot figure out why, I see this in my Mozilla Firebug trace tool an style which I cannot find or overlook. I read a lot, but I mis it somewhere. A style called element.style element.style { clip: rect(auto, auto, auto, auto); left: 607px; overflow: visible; position: absolute; top: 218px; visibility: visible; } I know and tried, if I get rid of the clip in the style element (I can turn it of in Firebug to experiment), everything is all right. But it seems and I am surprised because I'm new to css that this element.style is dynamic, but firebug claims it comes from the stylesheet which is locate directly in the war folder root. It isn't there, ok for me it is strange yet. My question: a. Can I get rid of only this clip setting in the element.style? b. I doing it wrong and should do it otherwise, please advise. Thank you for your time effort spend to help me. Kind regards Michel. PS Sorry have to mention..Google GWT rocks ! :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Question/Challenge with CSS Style vs DialogBox
Seems I should read forums better. My apologies.. Problem solved, should remove some default css styles like: .gwt-DialogBox { width: 350px; } See Post http://groups.google.com/group/google-web-toolkit/browse_thread/thread/9c5043675ae86300/7838b03dbfedae8d?lnk=gstq=DialogBox#7838b03dbfedae8d Grz Michel. Begin forwarded message: From: Michel Pikkaart mic...@pikkaart.net Date: 9 Mar 2011 10:27:08 GMT+01:00 To: Google Web Toolkit google-web-toolkit@googlegroups.com Subject: Question/Challenge with CSS Style vs DialogBox Thank you for reading this, In short, I have a challenge with a Style called element.style and a Dialog Box, the box is square and I would like it wider, as I change some styles of the panel which I put in as widget, the inside Panel grows, but the Dialog Box is stubborn and stays square in his size and the panel becomes partly invisible. My level is Java beginner. I following the lecture of Essential GWT and his MVP model (see ISBN 0-321-70514-9) My code according the some examples from the book and mixer of my own thoughts what I hope this is right way to do. // My DialogBox final DialogBox simpleQueryBox = new DialogBox(); simpleQueryBox.setText(Simple Query); simpleQueryBox.setGlassEnabled(true); simpleQueryBox.setAnimationEnabled(true); // the MVP like form. // constructor of SimpleQueryPresenter, gets a instance of DialogBox (so my presenter of this popup box can close himself, sorry for the mesh), string params, the View(page buildup), and a callback which returns an SQL query string as result). final SimpleQueryPresenter simpleQueryPresenter = new SimpleQueryPresenter(simpleQueryBox, params, new SimpleQueryView(), this.getEnvironment(),new SimpleCallbackString(){ @Override public void goBack(String result) { // TODO Auto-generated method stub // not important yet. } }); // put them together. simpleQueryBox.setWidget(simpleQueryPresenter.getDisplay().asWidget()); After that an Handler tells the simpleQueryBox to appear and the SimpleQuery handler tells him to hide, simple it works. BUT,I want it the box being wider, and I cannot figure out why, I see this in my Mozilla Firebug trace tool an style which I cannot find or overlook. I read a lot, but I mis it somewhere. A style called element.style element.style { clip: rect(auto, auto, auto, auto); left: 607px; overflow: visible; position: absolute; top: 218px; visibility: visible; } I know and tried, if I get rid of the clip in the style element (I can turn it of in Firebug to experiment), everything is all right. But it seems and I am surprised because I'm new to css that this element.style is dynamic, but firebug claims it comes from the stylesheet which is locate directly in the war folder root. It isn't there, ok for me it is strange yet. My question: a. Can I get rid of only this clip setting in the element.style? b. I doing it wrong and should do it otherwise, please advise. Thank you for your time effort spend to help me. Kind regards Michel. PS Sorry have to mention..Google GWT rocks ! :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
java.io.IOException: Stream closed after Session timeout
Hi, we have a special problem with a GWT app running on Tomcat. The problem occurs, after the session has been invalidated and user tries to make a call. We get this exception: SEVERE: Exception while dispatching incoming RPC call java.io.IOException: Stream closed at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java: 325) at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java: 193) at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8(RPCServletUtils.java: 183) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.readContent(AbstractRemoteServiceServlet.java: 179) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 215) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) We can reproduce this problem very simple by invalidating the session via Tomcat manager, so we are sure that this occurs after the session has been invalidated. This problem occurs just on our test enviroment - Tomcat 6.0.26 on Red Hat 4.1.2-46. On Windows XP or Mac OS we cannot reproduce this problem (the session-timeout is handled correctly and the user is redirested to the login page). Tomcat version and configurations are the same for all enviroments. We tried to set maxKeepAliveRequests=1 on Tomcat, but didn't work neither. Thanks for any help or suggestion. A. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Run external exe in gwt server-side
Compiled GWT code runs clientside, on the serverside (which can be anything from python, java, php, ...) you can run almost anything if you have the permissions to do so and if it's supported on that platform. -- Jan Vladimir Mostert BEngSci MyCee Technologies On Wed, Mar 9, 2011 at 1:32 PM, trudi1990 stefano.corrice...@gmail.comwrote: Hi, it's possible to run external exe or vbs file from server side code in gwt web application ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT processing of Set-Cookie Response header
Does this happen in dev mode? There seem to be some issues with it http://code.google.com/p/google-web-toolkit/issues/detail?id=4181 http://code.google.com/p/google-web-toolkit/issues/detail?id=4181 http://code.google.com/p/google-web-toolkit/issues/list?can=2q=cookie -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
External Tomcat in hosted mode
I'm working on a project that's currently using: GWT - 2.0.4 Spring - 3.0.5 Hibernate - 3.3.1 Maven - 2.2.1 Google Plug in for Eclipse 3.6(HELIOS) - 2.2.0 I'm having a lot of troubles using the embedded jetty on this project. I already tried many workarounds but nothing worked. So now I'm trying to use an external Tomcat in hosted mode but I'm also facing some issues. The GWT documentation about this is not very clear, and it talks about using ant to build the project, which we do not currently use. Is it possible to do this, while maintaining the ability to debug the code in Eclipse? If so, how can I do it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
javax.naming.InitialContext is not supported by Google App Engine's Java runtime environment
Hi, as the subject described, I've got this issue in my code as follow: InitialContext ctx = new InitialContext(); Does anyone gets familiar with this problem? Hope to see the solution soon, 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.
Possible to use RequestFactory with a non-java server?
Hi, Is it possible to use RequestFactory with a non-java server (maybe by creating a custom requestfactory transport?). Was request factory designed with this in mind. I'm looking to map it to a restful json service. Many thanks, fturtle -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Code split of client bundle
It's kinda impossible to provide help with the description of the problem you gave. So in general I suggest you read again the documentation for code splitting: http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html Also you should produce a compile report as mentioned here (-compileReport flag): http://code.google.com/webtoolkit/doc/latest/DevGuideCompileReport.html ... and try to figure out which code pulls in your DTOs before the split point(s). If you have no split points then everything (including resources / bundles) is in the initial download. Also keep in mind that code and resources you don't reference / use are eliminated by the compiler. If the above doesn't answer your question please be more specific. -fotos -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Editor Framework for large set of properties
If the properties you are retrieving via RequestFactory are getters/setters on EntityProxy/ValueProxy interfaces then you can use RequestFactoryEditorDriver. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Code changes not reflected on browser refresh
You need to point your browser at http://localhost:?gwt.codesvr=127.0.0.1:9997 (assuming you are running with the default settings). This URL also shows up in the DevMode tab when it starts up in Eclipse for you to copy paste or launch your browser. On Wed, Mar 9, 2011 at 3:23 AM, Andrew apik...@gmail.com wrote: Hi- I'm using Eclipse 3.5.2 under Ubuntu with Google Web Toolkit SDK 2.2.0, and Google App Engine Java SDK 1.4.2. Recently I worked through the StockWatcher example, found at http://code.google.com/webtoolkit/tools/gwtdesigner/tutorials/stockwatcher.html It used to work such that I could make changes to the java code in the project (for example, in StockWatcher.java) while the development server was running, then refresh my browser (pointed to http://localhost:), and the changes in my code would immediately be reflected on the page. However, something has changed. I have no idea what, or why. Now, if I refresh my browser the code changes are not reflected on the page that comes up. I have to recompile the entire project by clicking on the red G icon labeled GWT Compile Project in the toolbar, which takes a long time, then restart the development server, in order for my changes to become visible in the browser (upon refresh). This is true for both Firefox and Chrome. I've tried a bunch of things to fix this... Project-Build Automatically is checked, and I even tried reinstalling the GWT plugin for eclipse. If I make a change to an HTML file instead., for example StockWatcher.html, the changes are reflected in the browser upon refresh, as normal. Please help! Recompiling the entire project every time is very annoying. Thanks. Andrew -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Issue with ValueListBox
ValueListBox automatically adds any value passed to setValue() to the list of acceptable values, so you probably have some setValue(null) somewhere, or it might rather be that you don't have a setValue() anywhere, so the ValueListBox tries to select the default value (null) in the list, and adds it to the list of acceptable values as a consequence. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Printing; controlling top and bottom page margins
On 03/08/2011 05:39 PM, Rob Tanner wrote: Hi, Found a great little class to enable me to print the contents of panels. Here's the URL: http://gwt-commons-sandbox.googlecode.com /svn/branches/freller/gwt-commons/src/org/gwtcommons/user/ client/Print.java I'm printing the contents of a HorizontalPanel() that contains an HTML() object that contains the text of a policy that the user is required to agree to follow. There is no requirement that they keep a hard copy, but I've added a print in case they do. The printed output is identical to the panel but the problem I have is that the full HTML() object is longer than a single letter size page (it's displayed inside a ScrollPanel() in the browser) so the text that overflows on to the second page of the printout appears about a quarter of an inch down from the physical top of the paper. Is there any way I can control the top and bottom margins on the multiple printed pages? Thanks, Rob Tanner Linfield College Hi Rob: The browser gets to decide how to format the page. You can try various CSS media tricks. I'm assuming you've seen at least http://www.w3.org/TR/CSS2/media.html If not, that's a good place to examine the print media type. You can probably do something with the requirement text by enclosing it in a div with small text and narrow margins, combined with a set of instructions to the user that explain how to set the margins. There will inevitably be annoying edge cases. Generate a PDF if you want complete control of the page layout. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Issue with ValueListBox
Having an issue with ValueListBox in GWT 2.1. I'm probably just doing something wrong! I build a ValueListBox: storeListBox = new ValueListBoxStores(new RendererStores() { @Override public String render(Stores object) { return object.getStoreName(); } @Override public void render(Stores object, Appendable appendable) throws IOException { } }); Then, later on to populate, I apply a list of Stores objects -- storeListBox.setAcceptableValues(app.getStoresList()); Everything if fine, except this -- I can see when I look at the Stores list, it has 3 elements in the list. However, the render method is getting invoked FOUR times, and the fourth time is getting null passed in as the object. I can clearly see that there are only three elements in the list and that the null invokation is after it has done all the objects in the list. I can condition the return on object not being null, but I need to return something from the render method and that is getting added erroneously to the ValueList. What am I doing wrong? Thanks in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
MySQL server in development mode
I added a mysql server to the default GWT application. I put the mysql connector jar in the lib folder under WEBINF, and also added it to the build path. I ran the web application in development mode and it worked fine. But then I restarted the server (from the eclipse development pane), and I started getting errors saying that the server cannot find a driver for jdbc:mysql connection! Can you please help me? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RequestFactory + Hibernate + MySql + OrphanRemoval = not working.
Hi All, have simple case: @RooJavaBean @RooToString @RooEntity public class Contact { @OneToMany(cascade=CascadeType.ALL, fetch = FetchType.EAGER, mappedBy=contact, orphanRemoval=true) private ListPhone phoneList = new ArrayListPhone(); } @RooJavaBean @RooToString @RooEntity public class Phone{ private String phone; @ManyToOne(optional = false) private Contact contact; } I want to remove Phone items from DB table as soon as I'm removing them from Contact.phoneList so I found I can use 'orphanRemoval=true'. All works fine, until I'm adding 'orphanRemoval=true' to annotations... After that, I have no errors, but any changes to entities not persisting at all... :/ MySql 5.5.8 Hibernate 3.6.1 (3.6.0 also tested with same results) Ideas? Thx! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT eclipse plugin doesn't recognize bundle resources on classpath
Hey All, I just reinstalled the gwt eclipse plugin so I could start experimenting with the uibinder and what we like to do is separate out our static resources from our java files. In the standard maven way we put these resources in our src/main/resource folder which works great, is on our classpath, and has no problems during the compile. When I install the gwt eclipse plugin I always have issues with it giving me error messages because it can't find the static resources. Is there any way that the plugin can be enhanced to support the project's classpath, not just the current package? EX: This gives me the error message Resource file tabbed-neutral.css is missing (expected at com/intuit/uilibrary/public/css/disclosure) in eclipse but works fine every where else. @NotStrict @Source(com/intuit/uilibrary/public/css/disclosure/tabbed- neutral.css) public TabbedDisclosureCss css(); Thanks, Brett -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: MySQL server in development mode
Is classpath error problem. Show the .classpath file Juan 2011/3/9 Erel Segal erel...@gmail.com I added a mysql server to the default GWT application. I put the mysql connector jar in the lib folder under WEBINF, and also added it to the build path. I ran the web application in development mode and it worked fine. But then I restarted the server (from the eclipse development pane), and I started getting errors saying that the server cannot find a driver for jdbc:mysql connection! Can you please help me? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: External Tomcat in hosted mode
Try download an emtpy eclipse and configure it again. And use the plugin for GWT 2.0.4, no for GWT 2.2.0. It woks. Juan 2011/3/9 Eduardo Palma eduardo.palma...@gmail.com I'm working on a project that's currently using: GWT - 2.0.4 Spring - 3.0.5 Hibernate - 3.3.1 Maven - 2.2.1 Google Plug in for Eclipse 3.6(HELIOS) - 2.2.0 I'm having a lot of troubles using the embedded jetty on this project. I already tried many workarounds but nothing worked. So now I'm trying to use an external Tomcat in hosted mode but I'm also facing some issues. The GWT documentation about this is not very clear, and it talks about using ant to build the project, which we do not currently use. Is it possible to do this, while maintaining the ability to debug the code in Eclipse? If so, how can I do it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT-Designer bug ?
Are you using Maven? This looks like a Maven-related issue we have seen before. Have you tried the latest GWT Designer build? http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html On Mar 8, 5:44 pm, khiem nguyen khi...@googlemail.com wrote: sorry Version: Helios Service Release 2 Build id: 20110218-0911 gpe: 3.6 gwt-design 2.2 gwt 2.2.0 jdk 1.6.0_24 linux 2.6.35.11-83.fc14.x86_64 (same problem on OSX 10.6.6, jdk 1.6 with the same gwt+ eclipse + gpe + gwt-design version) Full context stack trace: java.lang.NullPointerException at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.getSharedClass Loader(HostedModeSupport.java:184) at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.createClassLoa ders(HostedModeSupport.java:92) at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.init(HostedM odeSupport.java:62) at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupportFactory.create( HostedModeSupportFactory.java:22) at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.getHostedMod eSupport(GwtState.java:1195) at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize0( GwtState.java:243) at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize(G wtState.java:219) at com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createGWTSt ate(UiBinderContext.java:373) at com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createProje ctClassLoader(UiBinderContext.java:246) at org.eclipse.wb.internal.core.xml.model.EditorContext.createClassLoader(Edit orContext.java:146) at com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createClass Loader(UiBinderContext.java:229) at org.eclipse.wb.internal.core.xml.model.EditorContext.initialize(EditorConte xt.java:100) at com.google.gdt.eclipse.designer.uibinder.parser.UiBinderParser.parse(UiBind erParser.java:89) at com.google.gdt.eclipse.designer.uibinder.editor.UiBinderDesignPage.parse(Ui BinderDesignPage.java:93) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF(X mlDesignPage.java:408) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.access$2(XmlDesignPag e.java:400) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage$7$1.run(XmlDesignPage .java:374) at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179) at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150) at org.eclipse.swt.widgets.Display.syncExec(Display.java:4282) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage$7.run(XmlDesignPage.j ava:371) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.ja va:464) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.j ava:507) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF_w ithProgress(XmlDesignPage.java:392) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF(X mlDesignPage.java:345) at org.eclipse.wb.internal.core.xml.editor.UndoManager.refreshDesignerEditor(U ndoManager.java:229) at org.eclipse.wb.internal.core.xml.editor.UndoManager.activate(UndoManager.ja va:85) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.setActive(XmlDesignPa ge.java:164) at org.eclipse.wb.internal.core.xml.editor.AbstractXmlEditor.pageChange(Abstra ctXmlEditor.java:314) at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPar t.java:290) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234) 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.Widget.sendEvent(Widget.java:1282) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1061) at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2743) at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1429) at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:257) 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:3540) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332 ) at
Re: RequestFactory + Hibernate + MySql + OrphanRemoval = not working.
Where are you this? Post the code Juan 2011/3/9 Vasily vasiliy.ru...@gmail.com Hi All, have simple case: @RooJavaBean @RooToString @RooEntity public class Contact { @OneToMany(cascade=CascadeType.ALL, fetch = FetchType.EAGER, mappedBy=contact, orphanRemoval=true) private ListPhone phoneList = new ArrayListPhone(); } @RooJavaBean @RooToString @RooEntity public class Phone{ private String phone; @ManyToOne(optional = false) private Contact contact; } I want to remove Phone items from DB table as soon as I'm removing them from Contact.phoneList so I found I can use 'orphanRemoval=true'. All works fine, until I'm adding 'orphanRemoval=true' to annotations... After that, I have no errors, but any changes to entities not persisting at all... :/ MySql 5.5.8 Hibernate 3.6.1 (3.6.0 also tested with same results) Ideas? Thx! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 + Hibernate + MySql + OrphanRemoval = not working.
Sorry my english... Where are you do the operation? Paste the code Juan 2011/3/9 Juan Pablo Gardella gardellajuanpa...@gmail.com Where are you this? Post the code Juan 2011/3/9 Vasily vasiliy.ru...@gmail.com Hi All, have simple case: @RooJavaBean @RooToString @RooEntity public class Contact { @OneToMany(cascade=CascadeType.ALL, fetch = FetchType.EAGER, mappedBy=contact, orphanRemoval=true) private ListPhone phoneList = new ArrayListPhone(); } @RooJavaBean @RooToString @RooEntity public class Phone{ private String phone; @ManyToOne(optional = false) private Contact contact; } I want to remove Phone items from DB table as soon as I'm removing them from Contact.phoneList so I found I can use 'orphanRemoval=true'. All works fine, until I'm adding 'orphanRemoval=true' to annotations... After that, I have no errors, but any changes to entities not persisting at all... :/ MySql 5.5.8 Hibernate 3.6.1 (3.6.0 also tested with same results) Ideas? Thx! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: External Tomcat in hosted mode
here's a good description: http://code.google.com/eclipse/docs/faq.html#gwt_with_maven On Mar 9, 3:34 pm, Eduardo Palma eduardo.palma...@gmail.com wrote: I'm working on a project that's currently using: GWT - 2.0.4 Spring - 3.0.5 Hibernate - 3.3.1 Maven - 2.2.1 Google Plug in for Eclipse 3.6(HELIOS) - 2.2.0 I'm having a lot of troubles using the embedded jetty on this project. I already tried many workarounds but nothing worked. So now I'm trying to use an external Tomcat in hosted mode but I'm also facing some issues. The GWT documentation about this is not very clear, and it talks about using ant to build the project, which we do not currently use. Is it possible to do this, while maintaining the ability to debug the code in Eclipse? If so, how can I do it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Possible to use RequestFactory with a non-java server?
It's theoretically possible because RF is JSON-based, but hasn't been done yet to my knowledge. /dmc On Wed, Mar 9, 2011 at 10:00 AM, fturtle funkingb...@gmail.com wrote: Hi, Is it possible to use RequestFactory with a non-java server (maybe by creating a custom requestfactory transport?). Was request factory designed with this in mind. I'm looking to map it to a restful json service. Many thanks, fturtle -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Datagrid Json
Hi, this is the possibility to use json object inside celltable ? I hope in a response. Thx, -- Marco -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Editor Framework for large set of properties
I have some properties which are getters and setters. But i also have a map of properties which are to be shown on the UI. Is there anyway to use the editor driver to connect the map of properties to the UI fields. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Editor Framework for large set of properties
You can probably have an EditorMapK, V, but you'd have to either make it a LeafValueEditorMapK, V (probably not what you want: this means the Editor framework gives you the map for you to edit it) or some sort of MapEditor extending CompositeEditor (have a look at how ListEditor works). Note that you cannot (as of today) send Maps over RequestFactory though. You could convert them to/from a ListEntry and then use the ListEditor though. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Possible to use RequestFactory with a non-java server?
hey fturtle, please take a look at restygwt. it works very well for us :) andi (vom fon) On 09.03.2011, at 16:00, fturtle funkingb...@gmail.com wrote: Hi, Is it possible to use RequestFactory with a non-java server (maybe by creating a custom requestfactory transport?). Was request factory designed with this in mind. I'm looking to map it to a restful json service. Many thanks, fturtle -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Issue with ValueListBox
On Mar 9, 11:27 am, Thomas Broyer t.bro...@gmail.com wrote: ValueListBox automatically adds any value passed to setValue() to the list of acceptable values, so you probably have some setValue(null) somewhere, or it might rather be that you don't have a setValue() anywhere, so the ValueListBox tries to select the default value (null) in the list, and adds it to the list of acceptable values as a consequence. Thanks, that was it! For anyone who gets to this post by a search, Thomas was correct -- the problem was that I had not set a value, but added acceptible values. So since it had no value, it added null to the list. I resolved it by setting the value PRIOR to setting the acceptible values, like this -- storeListBox.setValue(currentStore); storeListBox.setAcceptableValues(app.getStoresList()); And that resolved the issue. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT-Designer bug ?
yes, i'm using maven. will try the latest beta thanx On Wed, Mar 9, 2011 at 5:15 PM, Eric Clayberg clayb...@google.com wrote: Are you using Maven? This looks like a Maven-related issue we have seen before. Have you tried the latest GWT Designer build? http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html On Mar 8, 5:44 pm, khiem nguyen khi...@googlemail.com wrote: sorry Version: Helios Service Release 2 Build id: 20110218-0911 gpe: 3.6 gwt-design 2.2 gwt 2.2.0 jdk 1.6.0_24 linux 2.6.35.11-83.fc14.x86_64 (same problem on OSX 10.6.6, jdk 1.6 with the same gwt+ eclipse + gpe + gwt-design version) Full context stack trace: java.lang.NullPointerException at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.getSharedClass Loader(HostedModeSupport.java:184) at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.createClassLoa ders(HostedModeSupport.java:92) at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.init(HostedM odeSupport.java:62) at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupportFactory.create( HostedModeSupportFactory.java:22) at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.getHostedMod eSupport(GwtState.java:1195) at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize0( GwtState.java:243) at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize(G wtState.java:219) at com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createGWTSt ate(UiBinderContext.java:373) at com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createProje ctClassLoader(UiBinderContext.java:246) at org.eclipse.wb.internal.core.xml.model.EditorContext.createClassLoader(Edit orContext.java:146) at com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createClass Loader(UiBinderContext.java:229) at org.eclipse.wb.internal.core.xml.model.EditorContext.initialize(EditorConte xt.java:100) at com.google.gdt.eclipse.designer.uibinder.parser.UiBinderParser.parse(UiBind erParser.java:89) at com.google.gdt.eclipse.designer.uibinder.editor.UiBinderDesignPage.parse(Ui BinderDesignPage.java:93) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF(X mlDesignPage.java:408) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.access$2(XmlDesignPag e.java:400) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage$7$1.run(XmlDesignPage .java:374) at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179) at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150) at org.eclipse.swt.widgets.Display.syncExec(Display.java:4282) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage$7.run(XmlDesignPage.j ava:371) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.ja va:464) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.j ava:507) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF_w ithProgress(XmlDesignPage.java:392) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF(X mlDesignPage.java:345) at org.eclipse.wb.internal.core.xml.editor.UndoManager.refreshDesignerEditor(U ndoManager.java:229) at org.eclipse.wb.internal.core.xml.editor.UndoManager.activate(UndoManager.ja va:85) at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.setActive(XmlDesignPa ge.java:164) at org.eclipse.wb.internal.core.xml.editor.AbstractXmlEditor.pageChange(Abstra ctXmlEditor.java:314) at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPar t.java:290) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234) 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.Widget.sendEvent(Widget.java:1282) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1061) at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2743) at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1429) at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:257) 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:3540) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at
Re: RequestFactory + Hibernate + MySql + OrphanRemoval = not working.
That's fine Juan... Actually, I'm editing Contact with Editor framework via RequestFactoryEditorDriver... List of phones are edited by my custom editor on the base of ListEditor: public class PhoneEditor extends Composite implements IsEditorListEditorPhoneProxy, PhoneEditView { ... @Override public void deleteClicked(PhoneNumEditView view) { int index=listEditor.getEditors().indexOf(view); if(index!=-1){ PhoneNumProxy proxy=listEditor.getList().get(index); listEditor.getList().remove(index); } } ... } When delete btn clicked, I simply remove phone item from ListEditor. When 'Save' btn clicked I just simply persisting Contact, so Editor framework do all it's magic by mapping UI dat to object... Again, all things stop working when I'm adding 'orphanRemoval=true' to Contact annotation... Without that, I can add, edit phones in the list and it works perfectly... On Mar 9, 7:58 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Sorry my english... Where are you do the operation? Paste the code Juan 2011/3/9 Juan Pablo Gardella gardellajuanpa...@gmail.com Where are you this? Post the code Juan 2011/3/9 Vasily vasiliy.ru...@gmail.com Hi All, have simple case: @RooJavaBean @RooToString @RooEntity public class Contact { @OneToMany(cascade=CascadeType.ALL, fetch = FetchType.EAGER, mappedBy=contact, orphanRemoval=true) private ListPhone phoneList = new ArrayListPhone(); } @RooJavaBean @RooToString @RooEntity public class Phone{ private String phone; @ManyToOne(optional = false) private Contact contact; } I want to remove Phone items from DB table as soon as I'm removing them from Contact.phoneList so I found I can use 'orphanRemoval=true'. All works fine, until I'm adding 'orphanRemoval=true' to annotations... After that, I have no errors, but any changes to entities not persisting at all... :/ MySql 5.5.8 Hibernate 3.6.1 (3.6.0 also tested with same results) Ideas? Thx! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Generic EntityLocator
We have created a BaseEntity with the following fields, - primary key - version - date I have created an ApplicationEntityLocator to get the getID, getVersion, find(Entity) instead of writing them on each entity object. public class EntityLocator extends LocatorBaseEntity, Long { @Override public BaseEntity create(Class? extends BaseEntity clazz) { try { return clazz.newInstance(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } return null; } @Override public BaseEntity find(Class? extends BaseEntity clazz, Long id) { return null; } @Override public ClassBaseEntity getDomainType() { return BaseEntity.class; } @Override public Long getId(BaseEntity domainObject) { return domainObject.getPrimaryKey(); } @Override public ClassLong getIdType() { return Long.class; } @Override public Object getVersion(BaseEntity domainObject) { return domainObject.getEntityVersion(); } } I am not sure of how to use the existing Spring service layer to implement the find method on the EntityLocator. How do i locate the service implementation from inside EntityLocator, can i do the following in the find method HttpServletRequest request = RequestFactoryServlet.getThreadLocalRequest(); ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(request.getSession() .getServletContext()); context.getBean(clazz).find(id); is this a good approach? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 Testing Window.alert
Is it possible to test whether a Window.alert has been launched using Junit GWTTEstCase?? If this is not possible how can I know if a window.alert has been raised?? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 + Hibernate + MySql + OrphanRemoval = not working.
orphanRemoval is an entirely ORM-specific thing. It marks child entity to be removed when it's no longer referenced from the parent entity, e.g. when you remove the child entity from the corresponding collection of the parent entity. Perhaps don't remove because you have a reference in Contact to the phone that you want remove. Try do a Test. Juan 2011/3/9 Vasily vasiliy.ru...@gmail.com That's fine Juan... Actually, I'm editing Contact with Editor framework via RequestFactoryEditorDriver... List of phones are edited by my custom editor on the base of ListEditor: public class PhoneEditor extends Composite implements IsEditorListEditorPhoneProxy, PhoneEditView { ... @Override public void deleteClicked(PhoneNumEditView view) { int index=listEditor.getEditors().indexOf(view); if(index!=-1){ PhoneNumProxy proxy=listEditor.getList().get(index); listEditor.getList().remove(index); } } ... } When delete btn clicked, I simply remove phone item from ListEditor. When 'Save' btn clicked I just simply persisting Contact, so Editor framework do all it's magic by mapping UI dat to object... Again, all things stop working when I'm adding 'orphanRemoval=true' to Contact annotation... Without that, I can add, edit phones in the list and it works perfectly... On Mar 9, 7:58 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Sorry my english... Where are you do the operation? Paste the code Juan 2011/3/9 Juan Pablo Gardella gardellajuanpa...@gmail.com Where are you this? Post the code Juan 2011/3/9 Vasily vasiliy.ru...@gmail.com Hi All, have simple case: @RooJavaBean @RooToString @RooEntity public class Contact { @OneToMany(cascade=CascadeType.ALL, fetch = FetchType.EAGER, mappedBy=contact, orphanRemoval=true) private ListPhone phoneList = new ArrayListPhone(); } @RooJavaBean @RooToString @RooEntity public class Phone{ private String phone; @ManyToOne(optional = false) private Contact contact; } I want to remove Phone items from DB table as soon as I'm removing them from Contact.phoneList so I found I can use 'orphanRemoval=true'. All works fine, until I'm adding 'orphanRemoval=true' to annotations... After that, I have no errors, but any changes to entities not persisting at all... :/ MySql 5.5.8 Hibernate 3.6.1 (3.6.0 also tested with same results) Ideas? Thx! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Installing GWT to eclipse 3.6 (helios)
What's the update site you're trying to install from? On Mar 9, 2:42 am, Rajeshwar Mitra mitra.rajesh...@gmail.com wrote: I'm trying install GWT SDK and GWT designer. The installation getting aborted in between. Approximately after downloading about 50% of the contents. I'm exactly following the steps provided in the GWT site. I tried downloading the archive file and installing through that. In that case as well it is informing that some file are missing. Is there any one who can help me? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 + Hibernate + MySql + OrphanRemoval = not working.
Ok, I've got an exception... 2011-03-09 22:29:17,230 [btpool0-2] DEBUG org.springframework.orm.jpa.JpaTransactionManager - Initiating transaction rollback after commit exception org.springframework.orm.jpa.JpaSystemException: org.hibernate.HibernateException: A collection with cascade=all- delete-orphan was no longer referenced by the owning entity instance: com.happycoders.server.domain.Contact.phoneList; nested exception is javax.persistence.PersistenceException: org.hibernate.HibernateException: A collection with cascade=all- delete-orphan was no longer referenced by the owning entity instance: com.happycoders.server.domain.Contact.phoneList at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java: 311) at org.springframework.orm.jpa.DefaultJpaDialect.translateExceptionIfPossible(DefaultJpaDialect.java: 120) at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java: 471) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java: 754) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java: 723) at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java: 393) at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc $afterReturning $org_springframework_transaction_aspectj_AbstractTransactionAspect $3$2a73e96c(AbstractTransactionAspect.aj:78) at com.happycoders.server.domain.Contact_Roo_Entity.ajc$interMethod $com_happycoders_server_domain_Contact_Roo_Entity $com_happycoders_server_domain_Contact$persist(Contact_Roo_Entity.aj: 56) at com.happycoders.server.domain.Contact.persist(Contact.java:1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.requestfactory.server.ReflectiveServiceLayer.invoke(ReflectiveServiceLayer.java: 164) at com.google.gwt.requestfactory.server.ServiceLayerDecorator.invoke(ServiceLayerDecorator.java: 89) at com.google.gwt.requestfactory.server.ServiceLayerDecorator.invoke(ServiceLayerDecorator.java: 89) at com.google.gwt.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java: 440) at com.google.gwt.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java: 218) at com.google.gwt.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java: 125) at com.google.gwt.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java: 118) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1097) at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java: 113) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 76) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1088) at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java: 77) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 76) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1088) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java: 88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 76) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1088) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java: 49) at
Re: Code changes not reflected on browser refresh
Thank you! This fixed it. I had been using that URL in the past, which is why I said it used to work... but for one reason or another, I switched to using just http://localhost: for another app where that URL worked, and didn't realize I had to go back to the long URL for this one. On Wed, Mar 9, 2011 at 11:15 AM, Chris Conroy con...@google.com wrote: You need to point your browser at http://localhost:?gwt.codesvr=127.0.0.1:9997 (assuming you are running with the default settings). This URL also shows up in the DevMode tab when it starts up in Eclipse for you to copy paste or launch your browser. On Wed, Mar 9, 2011 at 3:23 AM, Andrew apik...@gmail.com wrote: Hi- I'm using Eclipse 3.5.2 under Ubuntu with Google Web Toolkit SDK 2.2.0, and Google App Engine Java SDK 1.4.2. Recently I worked through the StockWatcher example, found at http://code.google.com/webtoolkit/tools/gwtdesigner/tutorials/stockwatcher.html It used to work such that I could make changes to the java code in the project (for example, in StockWatcher.java) while the development server was running, then refresh my browser (pointed to http://localhost:), and the changes in my code would immediately be reflected on the page. However, something has changed. I have no idea what, or why. Now, if I refresh my browser the code changes are not reflected on the page that comes up. I have to recompile the entire project by clicking on the red G icon labeled GWT Compile Project in the toolbar, which takes a long time, then restart the development server, in order for my changes to become visible in the browser (upon refresh). This is true for both Firefox and Chrome. I've tried a bunch of things to fix this... Project-Build Automatically is checked, and I even tried reinstalling the GWT plugin for eclipse. If I make a change to an HTML file instead., for example StockWatcher.html, the changes are reflected in the browser upon refresh, as normal. Please help! Recompiling the entire project every time is very annoying. Thanks. Andrew -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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.
Where to find latest GWT IE developer plugin for offline installation?
Hi, Could someone share a URL where I can get the latest GWT IE developer plugin? However, I need one that can be installed into IE on a machine that's disconnected from the Internet. Thanks, Yaakov. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: RequestFactoryEditorDriver example?
Hi All, public class Contact { @OneToMany(cascade=CascadeType.ALL, fetch = FetchType.EAGER,mappedBy=contact, orphanRemoval=true) private ListPhone phoneList = new ArrayListPhone(); } public class Phone { @ManyToOne(optional = false) private Contact contact; } I've got an exception during persist of Contact entity after edit with RequestFactoryEditorDriver: org.springframework.orm.jpa.JpaSystemException: org.hibernate.HibernateException: A collection with cascade=all- delete-orphan was no longer referenced by the owning entity instance: server.domain.Contact.phoneList; nested exception is javax.persistence.PersistenceException: org.hibernate.HibernateException: A collection with cascade=all- delete-orphan was no longer referenced by the owning entity instance: server.domain.Contact.phoneList It seems, somewhere (in Editor framework?) a new collection of phone's creating then used during persist()... That cause an original collection to become unreferenced cause that exception. Could anybody suggest a workaround? Thx! On Mar 6, 12:44 am, Thomas Broyer t.bro...@gmail.com wrote: On Saturday, March 5, 2011 4:56:42 PM UTC+1, Vasily wrote: 2. User may add/edit/remove phones, so I wrote my own editor... The second step is not required; it entirely depends how persisting the ContactProxy works (whether it would persist a new Phone or the Phone has to be persisted on its own). C'est bon :) I want Phones to be persisted by edit activity for ContactProxy... cause I'm trying to implement following use cases: 1. User edit fields of ContactProxy... 2. User edit list of PhoneProxy for current ContactProxy... It means he's able to add/remove/edit phones... 3. User click 'Save' and all changes persisting in DB. It means I want 'Save' to be like a transaction... I defenitely don't want to persist phones on it's own. Here is some code. I have ContactProxy{ some_fields ListPhoneProxy phoneList; } Also have an edit activity edit view for ContactProxy. ContactView{ some_contact_proxy_fields PhoneListEditor phoneListEditor; Button saveBtn; } ListEditor seems to provide a good boilerplate code to manage UI of list items, so, I've implemented PhoneListEditor on the base of ListEditor. PhoneListEditor implements ValueAwareEditorListPhoneNumProxy, LeafValueEditorListPhoneNumProxy{ VerticalPanel container = new VerticalPanel(); public interface Driver extends RequestFactoryEditorDriverListPhoneProxy, ListEditorPhoneProxy, PhoneEditView {} I thought you were saying you're editing the ContactProxy, so why do you have another Driver for the phoneList property? Also, I don't understand why PhoneListEditor isn't just a IsEditorListEditorPhoneProxy, PhoneEditView (your PhoneProxy and PhoneNumProxy seem to be interchangeable, is this a copy/paste bug?) private ListEditorPhoneProxy, PhoneEditView listEditor; private ListPhoneNumProxy displayedList; PhoneListEditor(){ initWidget(container); listEditor= ListEditor.of(new PhoneEditorSource()); driver = GWT.Driver create(Driver.class); driver.initialize(eventBus, factory, listEditor); driver.display(new ArrayListPhoneProxy()); displayedList=listEditor.getList(); } public void addClicked() { PhoneRequest rq=factory.phoneRequest(); PhoneProxy proxy=rq.create(PhoneProxy.class); rq.persist().using(proxy); displayedList.add(proxy); You're creating a new PhoneRequest to create() and persist() a PhoneProxy (that you never actually persist, as you never fire() the Request, and don't even keep a reference to it) public ListPhoneNumProxy getValue() { return new ArrayListPhoneProxy(displayedList); } public void setValue(ListPhoneNumProxy value) { for (PhoneNumProxy itemValue : value) { displayedList.add(itemValue); } } public void flush() { driver.flush(); } } It seems to work ok when I start edit activity... I'm creating editor driver for ContactProxy, editing proxy with save request... editorDriver = view.createEditorDriver(); editorDriver.edit(getProxy(), createSaveRequest(getProxy())); ... so, all Contact data list of phones displayed properly... The problem occured when I try to save a new phone... I see what flush() in AbstractRequestFactory called twice... One time for ContactProxy second - for PhoneProxy... For PhoneProxy I've got a java.lang.Throwable: edit() was called with a null Request which is true... for ContactProxy I'm callind edit(...) manually with my own save request, but for PhoneProxy I don't now how to do that as edit() should be called by RFED, right? No, you're display()ing the ListPhoneProxy in a distinct RFED (and display(proxy) is equivalent to edit(proxy, null)) I'm planning to implement all those bells whistles with validation later... so I'm trying to use RFED... but,
Re: Editor Framework for large set of properties
Thanks Thomas. I am returning a ListParameterProxy from the RequestFactory. Is it the correct that ListEditor can only have homogeneous children widget types? The requirement for me is to use different widget types based on the Parameter types. ( could be text field, checkbox and so on). We have already got the UI part done using UIBinder. I am really confused how to use the Editor approach to bind the values in to the UI now. ( The dynatablerf FavoritesWidget uses the ListEditor approach, and i dont think i can use it in this scenario ) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CellTable Refreshing Issues With Safari
Hey, I am having a problem adding rows to a CellTable in Safari. It seems that Safari doesn't render the content of the CellTable occasionally. That is, the ListDataProvider table has data, but it's not being reflected in the cell table widget. Refreshing the page sometimes solves this issue. In general it works ~60% of the time. Here's the code I am using to add the data (variable named data): tableData.add(data); cellTable.setRowCount(tableData.size(), true); where tableData is defined like so in the constructor: tableData = dataProvider.getList(); The type of tableData is just a List. This seems to work without a problem in Firefox 3.6.15 and Chrome 10.0.648.127, and seems to be broken in Safari 5.0.3. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Netbeans plugin
Hi Andras, Yes, I am using it. Rad -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 - full version
For evaluation, is the full version available for download anywhere? I can only find the Eclipse plug-in from the download site. 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.
2.2.0 - EditTextCell - How to reset previous value
I am having trouble retreiving the previous value of the the cell and placing it back on the actual table in the panel/ I am trying to capture when user enters a blank. I am posting an alert message but I am not able to retrieve and display the original value. I see options to do this in the TextInputCell. The text cell will actually shrink (I am using a CellTable with just one column). When I select that row again, the field will then expand with no value. If I then select another row, it will finally show the original value. There is no way for me to get ahold of the ViewData to replace the text value for this Cell? Here is a snapshot of my code: docName.setFieldUpdater(new FieldUpdaterMyDocument, String() { public void update(int index, MyDocument myDocumentToBeUpdated, final String changeValueFromScreen) { //Check if old and new are different before updating to DB if (! myDocumentToBeUpdated.getDisplayName().equals(changeValueFromScreen)) { if (changeValueFromScreen.trim().equals()) { docScrollPanel.remove(cellTable); Window.alert(Document name can not be blank.); //trying to refresh the list and the table in the panel retrieveDocsFromService(null); docScrollPanel.add(cellTable); docScrollPanel.remove(cellTable); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 using activemq with GWT
Hi, I am using activemq inside a GWT project. I follwed the steps give in http://code.google.com/p/gwt-activemq/.. But when I run the GWT project I get the following error: [ERROR] javax.servlet.ServletContext log: unavailable java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) Can anyone help me? Ramya -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 download zipped plugin site
Hi - I have tried multiple times to download from this site: http://code.google.com/eclipse/docs/install-from-zip.html to install the GWT plugin for Eclipse 3.5 (Galileo). I keep getting a timeout error. I'm using Firefox via a proxy server which works fine for all other downloads. I don't have this issue with any of the other plugin downloads I've tried. Please let me know. We're trying to evaluate Sencha's EXT GWT set up and one of the downloads is this plugin so we can start development. Thanks Archana -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Overriding JSNI methods causes crash ?
Hi all, I am experiencing problems when using GWT / JSNI : For tests, let's have a parent class with a JSNI method such as public class TestParent { public native void show()/*-{ $doc.write(PARENT JSNI); }-*/; } and a child class overriding the parent JSNI method, such as public class TestChild extends TestParent { @Override public void show() { super.show(); RootPanel.get().add(new HTML(TestChild.show)); } } and a basic EntryPoint : public class Helloworld implements EntryPoint { public void onModuleLoad() { TestChild t = new TestChild(); t.show(); } } When calling the TestChild .show() method, we could assume getting the result : PARENT JSNI + TestChild.show And in fact, we get the following result : On Google Chrome 11 in development mode with GWT plugin : PARENT JSNI and an error in the GWT plugin Development mode tab : [DEBUG] [helloworld] - Rebinding com.google.gwt.user.client.impl.WindowImpl [DEBUG] [helloworld] - Checking rule replace-with class='com.google.gwt.user.client.impl.WindowImplIE'/ [ERROR] [helloworld] - Error while executing the JavaScript provider for property 'user.agent' [ERROR] [helloworld] - Unable to get value of property 'user.agent' [ERROR] [helloworld] - Deferred binding failed for 'com.google.gwt.user.client.impl.WindowImpl'; expect subsequent failures [ERROR] [helloworld] - Unable to load module entry point class fr.helloworld.client.Helloworld (see associated exception for details) [ERROR] [helloworld] - Failed to load module 'helloworld' from user agent 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.0 Safari/534.24' at localhost: This error stops any further instruction in the application. On Firefox 3.6 in development mode with GWT plugin: PARENT JSNI + TestChild.show (fine) but the browser is redirected to http://127.0.0.1:/helloworld/hosted.html?helloworld and keeps loading forever When building the GWT project, the result are also different : Chrome : correct , works fine Firefox 3.6 : correct text displayed but the browser is redirected to helloworld/ F0E90C8F76FAE58BAB597BFF7095D19A.cache.html (compiled version for firefox user agent) and keeps loading forever. I encountered the problem on a real application, and of course the compiled application was unable to run correctly. Should I conclude that developer should never try to override JSNI methods ? Should we guess that it is a GWT compiler bug ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Designer - full version
The eclipse version isnt the full version? On 9 Mar 2011 22:00, Eve ng8...@gmail.com wrote: For evaluation, is the full version available for download anywhere? I can only find the Eclipse plug-in from the download site. 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: Netbeans plugin
I was clearing my head abnd reinstall again and its working fine. On 8 Mar 2011 17:39, khiem nguyen khi...@googlemail.com wrote: there's one, works with normal AsyncService , just go to preference-plugins... u'll find it. but i dont think u can use GWT-Designer. if u u maven, it doesnt matter which ide u're using On Tue, Mar 8, 2011 at 3:27 PM, András Csányi sayusi.a...@gmail.com wrote: Hi all! Does anybody use the GWT Netbeans plugin? Thanks in advance! András -- - - -- Csanyi Andras (Sayusi Ando) -- http://sayusi.hu -- http://facebook.com/andras.csanyi -- Trust in God and keep your gunpowder dry! - Cromwell -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactoryEditorDriver example?
I don't know JPA/JDO much, but wouldn't implementing the setPhoneList as a clear/addAll fix it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Designer - full version
You can install GWT Designer from the Updates sites found here... http://code.google.com/webtoolkit/tools/download-gwtdesigner.html On Mar 9, 1:02 pm, András Csányi sayusi.a...@gmail.com wrote: The eclipse version isnt the full version? On 9 Mar 2011 22:00, Eve ng8...@gmail.com wrote: For evaluation, is the full version available for download anywhere? I can only find the Eclipse plug-in from the download site. 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: RequestFactoryEditorDriver example?
Yes, thank you! I already found a description of that exception and can confirm, what modifying of setter for phoneList as you described solving the issue. Thanks for your time! On Mar 10, 12:08 am, Thomas Broyer t.bro...@gmail.com wrote: I don't know JPA/JDO much, but wouldn't implementing the setPhoneList as a clear/addAll fix it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Unable to run GWTP app after migration to 2.2
I'm having the same issue :s On Feb 21, 9:18 pm, Karthik karthik...@gmail.com wrote: I need a solution to the following problem : I am running eclispe 3.6, GWT 2.2, Guice 3.0 rc2, gin 10 r137 and gwt- p 0.5, the code compiles fine but when I try to run the app i end up with the following error : 13:40:24.062 [ERROR] [gwtphplacesample] Failed to create an instance of 'com.gwtplatform.samples.hplace.client.Gwtphplacesample' via deferred binding java.lang.RuntimeException: Deferred binding failed for 'com.gwtplatform.samples.hplace.client.gin.ClientGinjector' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at com.google.gwt.core.client.GWT.create(GWT.java:98) at com.gwtplatform.samples.hplace.client.Gwtphplacesample.lt;initgt; (Gwtphplacesample.java:29) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 465) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 375) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler .java: 183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan nelServer.java: 510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : 352) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: com/google/inject/ assistedinject/FactoryModuleBuilder at com.google.gwt.inject.rebind.GinjectorGeneratorModule.configure(GinjectorGe neratorModule.java: 74) at com.google.inject.AbstractModule.configure(AbstractModule.java: 59) at com.google.inject.spi.Elements $RecordingBinder.install(Elements.java:223) at com.google.inject.spi.Elements.getElements(Elements.java:101) at com.google.inject.internal.InjectorShell $Builder.build(InjectorShell.java:132) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCr eator.java: 103) at com.google.inject.Guice.createInjector(Guice.java:95) at com.google.inject.Guice.createInjector(Guice.java:72) at com.google.inject.Guice.createInjector(Guice.java:62) at com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator .java: 66) at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.ja va: 48) at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(Generator ExtWrapper.java: 60) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally (StandardGeneratorContext.java: 662) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 41) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:74) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 259) at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.j ava: 141) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java: 585) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 455) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) at com.google.gwt.core.client.GWT.create(GWT.java:98) at com.gwtplatform.samples.hplace.client.Gwtphplacesample.lt;initgt; (Gwtphplacesample.java:29) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 465) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 375) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler .java: 183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan nelServer.java: 510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : 352) at java.lang.Thread.run(Unknown Source) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Class files in src directory? (Google Eclipse Plugin Debug Mode)
I seem to have run up against a wall and am curious if anyone else out there has seen this behaviour. I perform the following steps: - Get latest from trunk of repository - Refresh Project in Navigator view of Eclipse - Check svn status - no modified files - Project-Clean... (cleans and rebuilds project) - Check svn status - no modified files - Run the application in Debug mode[1] - Check svn status - no modified files - Open link to the application in Browser - Check svn status - no modified files - ...wait until application fully loads... - Check svn status - .class files are littered throughout the /src directory First of all, this doesn't seem to be happening to any of the other developers who are part of the team (and working with the same repository). Furthermore, this doesn't happen when I am running a full deploy (we use ant for deploy build, war is deployed via tomcat)... Both of which lead me to think that it must be something to do with my local Debug configuration. The salient tabs there seem to be: *Arguments * *Program Arguments: * -remoteUI ${gwt_remote_ui_server_port}:${unique_id} -logLevel INFO -codeServerPort 9997 -port -war C:\cygwin\home\euzuro\tt\trunk\StargazerWeb\war com.traveltripper.stargazer.Stargazer * VM arguments: *-Xmx1024M -XX:MaxPermSize=384m -Denv=LOCAL -DconfigBase=classpath:com/traveltripper/config *Classpath * *Bootstrap Entries * JRE System Library *User Entries* **src gwt-dev.jar WEB-INF ProjectName (default classpath) Anyone have any ideas? Infinitely grateful for any guidance. As you can probably guess, I'm not terribly versed at Eclipse so any help is appreciated. Cheers, Erik -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: javax.naming.InitialContext is not supported by Google App Engine's Java runtime environment
A limitation of GAE, bottom of the page indicated JNDI lookup is not supported: http://code.google.com/appengine/docs/java/config/webxml.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: Unable to run GWTP app after migration to 2.2
You need to get GWTP 0.6 for GWT 2.2.0 see: http://groups.google.com/group/gwt-platform/browse_thread/thread/21e40e8d332a667e# Hope this helps. ,boz On Mar 9, 2011, at 3:56 PM, natas wrote: I'm having the same issue :s On Feb 21, 9:18 pm, Karthik karthik...@gmail.com wrote: I need a solution to the following problem : I am running eclispe 3.6, GWT 2.2, Guice 3.0 rc2, gin 10 r137 and gwt- p 0.5, the code compiles fine but when I try to run the app i end up with the following error : 13:40:24.062 [ERROR] [gwtphplacesample] Failed to create an instance of 'com.gwtplatform.samples.hplace.client.Gwtphplacesample' via deferred binding java.lang.RuntimeException: Deferred binding failed for 'com.gwtplatform.samples.hplace.client.gin.ClientGinjector' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at com.google.gwt.core.client.GWT.create(GWT.java:98) at com.gwtplatform.samples.hplace.client.Gwtphplacesample.lt;initgt; (Gwtphplacesample.java:29) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 465) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 375) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler .java: 183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan nelServer.java: 510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : 352) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: com/google/inject/ assistedinject/FactoryModuleBuilder at com.google.gwt.inject.rebind.GinjectorGeneratorModule.configure(GinjectorGe neratorModule.java: 74) at com.google.inject.AbstractModule.configure(AbstractModule.java: 59) at com.google.inject.spi.Elements $RecordingBinder.install(Elements.java:223) at com.google.inject.spi.Elements.getElements(Elements.java:101) at com.google.inject.internal.InjectorShell $Builder.build(InjectorShell.java:132) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCr eator.java: 103) at com.google.inject.Guice.createInjector(Guice.java:95) at com.google.inject.Guice.createInjector(Guice.java:72) at com.google.inject.Guice.createInjector(Guice.java:62) at com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator .java: 66) at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.ja va: 48) at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(Generator ExtWrapper.java: 60) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally (StandardGeneratorContext.java: 662) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 41) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:74) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 259) at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.j ava: 141) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java: 585) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 455) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) at com.google.gwt.core.client.GWT.create(GWT.java:98) at com.gwtplatform.samples.hplace.client.Gwtphplacesample.lt;initgt; (Gwtphplacesample.java:29) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 465) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 375) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler .java: 183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan nelServer.java: 510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : 352) at java.lang.Thread.run(Unknown Source) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to
Re: java.util.ConcurrentModificationException after installing GWT 2.2
Juan, On 9 Mrz., 12:37, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Is SmartGWT compatible with GWT 2.2? Seehttp://groups.google.com/group/google-web-toolkit-contributors/browse... thanx for the link, good point! But, alas, it doesn't apply for my case. I don't get any error as listed and my app actually works with both versions. The error in my OP appears only every now and then. I start my app in Dev Mode and get the error, I restart it, say 3 or 4 times, with the same error, and then, on the next restart it all of a sudden works just fine. Until now, I have not been able to figure out under which circumstances/conditions it either works or doesn't. Being a ConcurrentModificationException it points to a timing problem, which could be caused by tons of things... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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] Re: Comment on BeanValidation in google-web-toolkit
Comment by mail.mic...@googlemail.com: Where is the com.google.gwt.validation package? I cannot find it For more information: http://code.google.com/p/google-web-toolkit/wiki/BeanValidation -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Typo in javadocs
As I remember, there is also a legacy out directory mentioned in javadocs (if not specified, current directory is used instead). I've found out empirically, that extra directory is used now, and nothig gets genereted if it's not specified :) Thomas On 8 Mar, 16:46, Stephen Chenney schen...@google.com wrote: Note also that the GWT programming guide tutorials include an internationalization section that may be affected. Stephen. On Tue, Mar 8, 2011 at 9:26 AM, John Tamplin j...@google.com wrote: On Tue, Mar 8, 2011 at 6:11 AM, T tomek.maty...@gmail.com wrote: This is just a tiny issue, so I don't want to involve issuetracking. I'm dealing with i18n translation, so I decided to generate properties from default locale. I've annotated my constants with @Generate as provided in: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl... Since it's not a class literal (which is fully obvious to me) I did get a ClassNotFounException in AbstractLocalizableImplCreator at gwt compile time, resulting in: Invoking generator com.google.gwt.i18n.rebind.LocalizableGenerator [ERROR] @Generate class com.google.gwt.i18n.rebind.format.Properties not found I've spent one hour looking at it again and again, and I didn't realize that the correct class name was com.google.gwt.i18n.rebind.format.Properties*Format*. It's just to improve documentation. Thanks - I am about to land an update to this area that will change the example, and I will make sure it is correct. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Replacing the testng-5.14.1.jar with testng-5.14.1-nojunit.jar in the gwt-user .classpath file. ... (issue1377803)
Reviewers: fabbott, Description: Replacing the testng-5.14.1.jar with testng-5.14.1-nojunit.jar in the gwt-user .classpath file. The testng-5.14.1.jar was removed to allow GWT to use Junit4. Please review this at http://gwt-code-reviews.appspot.com/1377803/ Affected files: M eclipse/user/.classpath Index: eclipse/user/.classpath === --- eclipse/user/.classpath (revision 9825) +++ eclipse/user/.classpath (working copy) @@ -57,6 +57,6 @@ classpathentry kind=var path=GWT_TOOLS/lib/jboss/test-harness/jboss-test-harness-api-1.0.0-sources.jar/ classpathentry kind=var path=GWT_TOOLS/lib/jboss/test-harness/jboss-test-harness-api-1.0.0.jar sourcepath=/GWT_TOOLS/lib/jboss/test-harness/jboss-test-harness-api-1.0.0-sources.jar/ classpathentry kind=var path=GWT_TOOLS/lib/testng/testng-5.14.1-sources.jar/ - classpathentry kind=var path=GWT_TOOLS/lib/testng/testng-5.14.1.jar sourcepath=/GWT_TOOLS/lib/testng/testng-5.14.1-sources.jar/ + classpathentry kind=var path=GWT_TOOLS/lib/testng/testng-5.14.1-nojunit.jar sourcepath=/GWT_TOOLS/lib/testng/testng-5.14.1-sources.jar/ classpathentry kind=output path=bin/ /classpath -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Replacing the testng-5.14.1.jar with testng-5.14.1-nojunit.jar in the gwt-user .classpath file. ... (issue1377803)
On 2011/03/09 15:23:11, jlabanca wrote: LGTM http://gwt-code-reviews.appspot.com/1377803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Replacing the testng-5.14.1.jar with testng-5.14.1-nojunit.jar in the gwt-user .classpath file. ... (issue1377803)
LGTM, too. Shoulda caught that in my change, sorry. On 2011/03/09 15:26:32, pdr wrote: On 2011/03/09 15:23:11, jlabanca wrote: LGTM http://gwt-code-reviews.appspot.com/1377803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Comment on BeanValidation in google-web-toolkit
It's in svn only. We haven't included it in release jars yet, it's too raw. On Mar 9, 2011 4:47 AM, codesite-nore...@google.com wrote: Comment by mail.mic...@googlemail.com: Where is the com.google.gwt.validation package? I cannot find it For more information: http://code.google.com/p/google-web-toolkit/wiki/BeanValidation -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Adding vertical padding to hborder.png in the new Clean style theme to handle large Buttons/Date... (issue1368808)
Reviewers: pdr, Description: Adding vertical padding to hborder.png in the new Clean style theme to handle large Buttons/DatePickers. Currently, the sprited background images are much too short, so other background sprites will bleed into a button and date picker cells over ~40px tall. Please review this at http://gwt-code-reviews.appspot.com/1368808/ Affected files: M user/src/com/google/gwt/user/theme/clean/public/gwt/clean/clean.css M user/src/com/google/gwt/user/theme/clean/public/gwt/clean/clean_rtl.css Index: user/src/com/google/gwt/user/theme/clean/public/gwt/clean/clean.css === --- user/src/com/google/gwt/user/theme/clean/public/gwt/clean/clean.css (revision 9825) +++ user/src/com/google/gwt/user/theme/clean/public/gwt/clean/clean.css (working copy) @@ -169,7 +169,7 @@ background: white; } .gwt-DialogBox .dialogBottomCenter { - background: url(images/hborder.png) repeat-x 0px -2145px; + background: url(images/hborder.png) repeat-x 0px -2945px; -background: url(images/hborder_ie6.png) repeat-x 0px -2144px; } .gwt-DialogBox .dialogMiddleLeft { @@ -454,10 +454,10 @@ background: #f1f1f1; } .gwt-DecoratedPopupPanel .popupTopCenter { - background: url(images/hborder.png) 0px -2137px repeat-x; + background: url(images/hborder.png) 0px -2937px repeat-x; } .gwt-DecoratedPopupPanel .popupBottomCenter { - background: url(images/hborder.png) repeat-x 0px -2138px; + background: url(images/hborder.png) repeat-x 0px -2938px; -background: url(images/hborder_ie6.png) repeat-x 0px -2138px; } .gwt-DecoratedPopupPanel .popupMiddleLeft { @@ -1143,11 +1143,6 @@ cursor: hand; cursor: pointer; } -.datePickerDayIsToday { - padding: 3px; - color:#fff; - background: url(images/hborder.png) repeat-x 0px -2107px; -} .datePickerDayIsWeekend { background: #f7f7f7; } @@ -1171,7 +1166,7 @@ .datePickerDayIsToday { padding: 3px; color: #fff; - background: url(images/hborder.png) repeat-x 0px -2107px; + background: url(images/hborder.png) repeat-x 0px -2607px; } .datePickerMonthSelector { Index: user/src/com/google/gwt/user/theme/clean/public/gwt/clean/clean_rtl.css === --- user/src/com/google/gwt/user/theme/clean/public/gwt/clean/clean_rtl.css (revision 9825) +++ user/src/com/google/gwt/user/theme/clean/public/gwt/clean/clean_rtl.css (working copy) @@ -169,7 +169,7 @@ background: white; } .gwt-DialogBox .dialogBottomCenter { - background: url(images/hborder.png) repeat-x 0px -2145px; + background: url(images/hborder.png) repeat-x 0px -2945px; -background: url(images/hborder_ie6.png) repeat-x 0px -2144px; } .gwt-DialogBox .dialogMiddleLeft { @@ -454,10 +454,10 @@ background: #f1f1f1; } .gwt-DecoratedPopupPanel .popupTopCenter { - background: url(images/hborder.png) 0px -2137px repeat-x; + background: url(images/hborder.png) 0px -2937px repeat-x; } .gwt-DecoratedPopupPanel .popupBottomCenter { - background: url(images/hborder.png) repeat-x 0px -2138px; + background: url(images/hborder.png) repeat-x 0px -2938px; -background: url(images/hborder_ie6.png) repeat-x 0px -2138px; } .gwt-DecoratedPopupPanel .popupMiddleLeft { @@ -1144,11 +1144,6 @@ cursor: hand; cursor: pointer; } -.datePickerDayIsToday { - padding: 3px; - color:#fff; - background: url(images/hborder.png) repeat-x 0px -2107px; -} .datePickerDayIsWeekend { background: #f7f7f7; } @@ -1172,7 +1167,7 @@ .datePickerDayIsToday { padding: 3px; color: #fff; - background: url(images/hborder.png) repeat-x 0px -2107px; + background: url(images/hborder.png) repeat-x 0px -2607px; } .datePickerMonthSelector { -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9826 committed - Replacing the testng-5.14.1.jar with testng-5.14.1-nojunit.jar in the ...
Revision: 9826 Author: jlaba...@google.com Date: Wed Mar 9 04:56:27 2011 Log: Replacing the testng-5.14.1.jar with testng-5.14.1-nojunit.jar in the gwt-user .classpath file. The testng-5.14.1.jar was removed to allow GWT to use Junit4. Review at http://gwt-code-reviews.appspot.com/1377803 Review by: fabb...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9826 Modified: /trunk/eclipse/user/.classpath === --- /trunk/eclipse/user/.classpath Tue Mar 8 08:22:05 2011 +++ /trunk/eclipse/user/.classpath Wed Mar 9 04:56:27 2011 @@ -57,6 +57,6 @@ classpathentry kind=var path=GWT_TOOLS/lib/jboss/test-harness/jboss-test-harness-api-1.0.0-sources.jar/ classpathentry kind=var path=GWT_TOOLS/lib/jboss/test-harness/jboss-test-harness-api-1.0.0.jar sourcepath=/GWT_TOOLS/lib/jboss/test-harness/jboss-test-harness-api-1.0.0-sources.jar/ classpathentry kind=var path=GWT_TOOLS/lib/testng/testng-5.14.1-sources.jar/ - classpathentry kind=var path=GWT_TOOLS/lib/testng/testng-5.14.1.jar sourcepath=/GWT_TOOLS/lib/testng/testng-5.14.1-sources.jar/ + classpathentry kind=var path=GWT_TOOLS/lib/testng/testng-5.14.1-nojunit.jar sourcepath=/GWT_TOOLS/lib/testng/testng-5.14.1-sources.jar/ classpathentry kind=output path=bin/ /classpath -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9827 committed - Adding changing from junit-4.8.2-dep.jar, which lacks the org.hamcrest...
Revision: 9827 Author: fabb...@google.com Date: Wed Mar 9 08:09:53 2011 Log: Adding changing from junit-4.8.2-dep.jar, which lacks the org.hamcrest dependency, to junit-4.8.2.jar, which has it. http://code.google.com/p/google-web-toolkit/source/detail?r=9827 Added: /tools/lib/junit/README Modified: /tools/lib/junit/junit-4.8.2-src.jar /tools/lib/junit/junit-4.8.2.jar === --- /dev/null +++ /tools/lib/junit/README Wed Mar 9 08:09:53 2011 @@ -0,0 +1,6 @@ +As of junit 4.8, the classes from org.hamcrest are bundled into junit jars. + +But not the source jars. + +So, we extracted the temp.hamcrest.source directory from junit4.8.2.zip, and +added it to junit-4.8.2-src.jar. === --- /tools/lib/junit/junit-4.8.2-src.jarWed Mar 2 13:15:19 2011 +++ /tools/lib/junit/junit-4.8.2-src.jarWed Mar 9 08:09:53 2011 Binary file, no diff available. === --- /tools/lib/junit/junit-4.8.2.jarWed Mar 2 13:15:19 2011 +++ /tools/lib/junit/junit-4.8.2.jarWed Mar 9 08:09:53 2011 Binary file, no diff available. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9828 committed - Fixing ActionCell and ButtonCell clicks outside of the Button element ...
Revision: 9828 Author: gwt.mirror...@gmail.com Date: Wed Mar 9 08:11:17 2011 Log: Fixing ActionCell and ButtonCell clicks outside of the Button element are ignored. Issue: 5641 Author: hekke, jlabanca Review at http://gwt-code-reviews.appspot.com/1371810 Review by: p...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9828 Modified: /trunk/user/src/com/google/gwt/cell/client/ActionCell.java /trunk/user/src/com/google/gwt/cell/client/ButtonCell.java /trunk/user/test/com/google/gwt/cell/client/ActionCellTest.java /trunk/user/test/com/google/gwt/cell/client/ButtonCellTest.java /trunk/user/test/com/google/gwt/cell/client/CellTestBase.java === --- /trunk/user/src/com/google/gwt/cell/client/ActionCell.java Wed Dec 1 05:40:20 2010 +++ /trunk/user/src/com/google/gwt/cell/client/ActionCell.java Wed Mar 9 08:11:17 2011 @@ -16,6 +16,7 @@ package com.google.gwt.cell.client; import com.google.gwt.dom.client.Element; +import com.google.gwt.dom.client.EventTarget; import com.google.gwt.dom.client.NativeEvent; import com.google.gwt.safehtml.shared.SafeHtml; import com.google.gwt.safehtml.shared.SafeHtmlBuilder; @@ -76,7 +77,14 @@ NativeEvent event, ValueUpdaterC valueUpdater) { super.onBrowserEvent(context, parent, value, event, valueUpdater); if (click.equals(event.getType())) { - onEnterKeyDown(context, parent, value, event, valueUpdater); + EventTarget eventTarget = event.getEventTarget(); + if (!Element.is(eventTarget)) { +return; + } + if (parent.getFirstChildElement().isOrHasChild(Element.as(eventTarget))) { +// Ignore clicks that occur outside of the main element. +onEnterKeyDown(context, parent, value, event, valueUpdater); + } } } === --- /trunk/user/src/com/google/gwt/cell/client/ButtonCell.java Wed Dec 1 05:40:20 2010 +++ /trunk/user/src/com/google/gwt/cell/client/ButtonCell.java Wed Mar 9 08:11:17 2011 @@ -16,6 +16,7 @@ package com.google.gwt.cell.client; import com.google.gwt.dom.client.Element; +import com.google.gwt.dom.client.EventTarget; import com.google.gwt.dom.client.NativeEvent; import com.google.gwt.safehtml.shared.SafeHtml; import com.google.gwt.safehtml.shared.SafeHtmlBuilder; @@ -48,7 +49,14 @@ NativeEvent event, ValueUpdaterString valueUpdater) { super.onBrowserEvent(context, parent, value, event, valueUpdater); if (click.equals(event.getType())) { - onEnterKeyDown(context, parent, value, event, valueUpdater); + EventTarget eventTarget = event.getEventTarget(); + if (!Element.is(eventTarget)) { +return; + } + if (parent.getFirstChildElement().isOrHasChild(Element.as(eventTarget))) { +// Ignore clicks that occur outside of the main element. +onEnterKeyDown(context, parent, value, event, valueUpdater); + } } } === --- /trunk/user/test/com/google/gwt/cell/client/ActionCellTest.java Wed Dec 1 05:40:20 2010 +++ /trunk/user/test/com/google/gwt/cell/client/ActionCellTest.java Wed Mar 9 08:11:17 2011 @@ -16,9 +16,7 @@ package com.google.gwt.cell.client; import com.google.gwt.cell.client.ActionCell.Delegate; -import com.google.gwt.cell.client.Cell.Context; import com.google.gwt.dom.client.Document; -import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.NativeEvent; /** @@ -47,13 +45,21 @@ public void testOnBrowserEvent() { MockDelegateString delegate = new MockDelegateString(); ActionCellString cell = new ActionCellString(hello, delegate); -Element parent = Document.get().createDivElement(); -NativeEvent event = Document.get().createClickEvent(0, 0, 0, 0, 0, false, -false, false, false); -Context context = new Context(0, 0, DEFAULT_KEY); -cell.onBrowserEvent(context, parent, test, event, null); +NativeEvent event = Document.get().createClickEvent(0, 0, 0, 0, 0, false, false, false, false); +testOnBrowserEvent(cell, getExpectedInnerHtml(), event, test, null, true); delegate.assertLastObject(test); } + + /** + * Test that events outside of the button element are ignored. + */ + public void testOnBrowserEventOutsideButton() { +MockDelegateString delegate = new MockDelegateString(); +ActionCellString cell = new ActionCellString(hello, delegate); +NativeEvent event = Document.get().createClickEvent(0, 0, 0, 0, 0, false, false, false, false); +testOnBrowserEvent(cell, getExpectedInnerHtml(), event, test, null, false); +delegate.assertLastObject(null); + } @Override protected CellString createCell() { === --- /trunk/user/test/com/google/gwt/cell/client/ButtonCellTest.java Wed Sep 22 12:58:01 2010 +++ /trunk/user/test/com/google/gwt/cell/client/ButtonCellTest.java Wed Mar 9 08:11:17 2011 @@ -24,10 +24,17 @@
[gwt-contrib] Re: Replacing the testng-5.14.1.jar with testng-5.14.1-nojunit.jar in the gwt-user .classpath file. ... (issue1377803)
committed as r9826 http://gwt-code-reviews.appspot.com/1377803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixing ActionCell and ButtonCell clicks outside of the Button element are ignored. (issue1371810)
committed as r9828 http://gwt-code-reviews.appspot.com/1371810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: PatternValidator matches the whole input string. (issue1378801)
LGTM. It is strange that the pattern has to match the whole string. I would have expected for the developer to be in control of that by using ^ and $ as needed. http://gwt-code-reviews.appspot.com/1378801/diff/1/user/src/com/google/gwt/validation/client/constraints/PatternValidator.java File user/src/com/google/gwt/validation/client/constraints/PatternValidator.java (right): http://gwt-code-reviews.appspot.com/1378801/diff/1/user/src/com/google/gwt/validation/client/constraints/PatternValidator.java#newcode53 user/src/com/google/gwt/validation/client/constraints/PatternValidator.java:53: return match.getGroup(0).equals(value); Would it be faster but still correct to compare the lengths? http://gwt-code-reviews.appspot.com/1378801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Handle custom constraint violation messages. (issue1379801)
LGTM. With nit. http://gwt-code-reviews.appspot.com/1379801/diff/1/user/src/com/google/gwt/validation/client/impl/ConstraintValidatorContextImpl.java File user/src/com/google/gwt/validation/client/impl/ConstraintValidatorContextImpl.java (right): http://gwt-code-reviews.appspot.com/1379801/diff/1/user/src/com/google/gwt/validation/client/impl/ConstraintValidatorContextImpl.java#newcode211 user/src/com/google/gwt/validation/client/impl/ConstraintValidatorContextImpl.java:211: messages.add(new MessageAndPath(this.basePath, Indentation. http://gwt-code-reviews.appspot.com/1379801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: SafeHtml Rendering for UiBinder (issue1305801)
This is really great! It pretty much completely removes uibinder out of the security-relevant codebase. http://gwt-code-reviews.appspot.com/1305801/diff/55001/user/src/com/google/gwt/uibinder/elementparsers/HtmlMessageInterpreter.java File user/src/com/google/gwt/uibinder/elementparsers/HtmlMessageInterpreter.java (right): http://gwt-code-reviews.appspot.com/1305801/diff/55001/user/src/com/google/gwt/uibinder/elementparsers/HtmlMessageInterpreter.java#newcode77 user/src/com/google/gwt/uibinder/elementparsers/HtmlMessageInterpreter.java:77: return uiWriter.tokenForSafeHtmlExpression(messages.declareMessage(message)); Methods in Messages interfaces can themselves be declared to return SafeHtml (http://code.google.com/webtoolkit/doc/latest/DevGuideI18nMessages.html#SafeHtmlMessages). I'm wondering if it would work to change MessageWriter#writeDeclaration to emit declarations of Messages methods that return SafeHtml rather than String. And if that's done, would that remove the need to use tokenForSafeHtmlExpression here (in which case that method could be deleted altogether)? http://gwt-code-reviews.appspot.com/1305801/diff/55001/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java File user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java (right): http://gwt-code-reviews.appspot.com/1305801/diff/55001/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode686 user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:686: public String tokenForSafeHtmlExpression(String expression) { This is the one place where potential HTML unsafety could be introduced (if this method were called on an expression that is not in fact a safe constant). The only use in this CL appears to be in HtmlMessageInterpreter; see a question there if it's possible to avoid relying on this method. If so, this method could be removed. http://gwt-code-reviews.appspot.com/1305801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Let the Key for Maps be of type Object. (issue1376803)
LGTM On 2011/03/09 06:05:49, Nick Chalko wrote: http://gwt-code-reviews.appspot.com/1376803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: SafeHtml Rendering for UiBinder (issue1305801)
Makes sense, but let's file a follow up issue on that rather than block this patch. On Mar 9, 2011 9:04 AM, x...@google.com wrote: This is really great! It pretty much completely removes uibinder out of the security-relevant codebase. http://gwt-code-reviews.appspot.com/1305801/diff/55001/user/src/com/google/gwt/uibinder/elementparsers/HtmlMessageInterpreter.java File user/src/com/google/gwt/uibinder/elementparsers/HtmlMessageInterpreter.java (right): http://gwt-code-reviews.appspot.com/1305801/diff/55001/user/src/com/google/gwt/uibinder/elementparsers/HtmlMessageInterpreter.java#newcode77 user/src/com/google/gwt/uibinder/elementparsers/HtmlMessageInterpreter.java:77: return uiWriter.tokenForSafeHtmlExpression(messages.declareMessage(message)); Methods in Messages interfaces can themselves be declared to return SafeHtml ( http://code.google.com/webtoolkit/doc/latest/DevGuideI18nMessages.html#SafeHtmlMessages ). I'm wondering if it would work to change MessageWriter#writeDeclaration to emit declarations of Messages methods that return SafeHtml rather than String. And if that's done, would that remove the need to use tokenForSafeHtmlExpression here (in which case that method could be deleted altogether)? http://gwt-code-reviews.appspot.com/1305801/diff/55001/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java File user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java (right): http://gwt-code-reviews.appspot.com/1305801/diff/55001/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode686 user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:686: public String tokenForSafeHtmlExpression(String expression) { This is the one place where potential HTML unsafety could be introduced (if this method were called on an expression that is not in fact a safe constant). The only use in this CL appears to be in HtmlMessageInterpreter; see a question there if it's possible to avoid relying on this method. If so, this method could be removed. http://gwt-code-reviews.appspot.com/1305801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: SafeHtml Rendering for UiBinder (issue1305801)
On Wed, Mar 9, 2011 at 09:17, Ray Ryan rj...@google.com wrote: Makes sense, but let's file a follow up issue on that rather than block this patch. SGTM. Sorry for not looking at this earlier :/ On Mar 9, 2011 9:04 AM, x...@google.com wrote: This is really great! It pretty much completely removes uibinder out of the security-relevant codebase. http://gwt-code-reviews.appspot.com/1305801/diff/55001/user/src/com/google/gwt/uibinder/elementparsers/HtmlMessageInterpreter.java File user/src/com/google/gwt/uibinder/elementparsers/HtmlMessageInterpreter.java (right): http://gwt-code-reviews.appspot.com/1305801/diff/55001/user/src/com/google/gwt/uibinder/elementparsers/HtmlMessageInterpreter.java#newcode77 user/src/com/google/gwt/uibinder/elementparsers/HtmlMessageInterpreter.java:77: return uiWriter.tokenForSafeHtmlExpression(messages.declareMessage(message)); Methods in Messages interfaces can themselves be declared to return SafeHtml ( http://code.google.com/webtoolkit/doc/latest/DevGuideI18nMessages.html#SafeHtmlMessages ). I'm wondering if it would work to change MessageWriter#writeDeclaration to emit declarations of Messages methods that return SafeHtml rather than String. And if that's done, would that remove the need to use tokenForSafeHtmlExpression here (in which case that method could be deleted altogether)? http://gwt-code-reviews.appspot.com/1305801/diff/55001/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java File user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java (right): http://gwt-code-reviews.appspot.com/1305801/diff/55001/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode686 user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:686: public String tokenForSafeHtmlExpression(String expression) { This is the one place where potential HTML unsafety could be introduced (if this method were called on an expression that is not in fact a safe constant). The only use in this CL appears to be in HtmlMessageInterpreter; see a question there if it's possible to avoid relying on this method. If so, this method could be removed. http://gwt-code-reviews.appspot.com/1305801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Issue 6115: RequestFactory: .with(propertyRefs) not always honored (issue1377804)
Reviewers: rjrjr, bobv, Description: Issue 6115: RequestFactory: .with(propertyRefs) not always honored http://code.google.com/p/google-web-toolkit/issues/detail?id=6115 There are many small changes due to reformats with new formatter rules, sorry for the noise. I've added 2 tests (testPropert*) for the two use cases I identified (that we both faced in our app). In Resolver, I moved the anonymous AutoBeanVisitor in a named inner class. It records each reference property it resolves, and for the case of properties requested by the owner it ensures all requested properties of the reference-type value are resolved too. This behavior is then used in resolveClientClass in the fastpath that prevents endless recursions for object graph cycles. Please review this at http://gwt-code-reviews.appspot.com/1377804/ Affected files: M user/src/com/google/gwt/requestfactory/server/Resolver.java M user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java M user/test/com/google/gwt/requestfactory/server/SimpleFoo.java M user/test/com/google/gwt/requestfactory/shared/SimpleFooRequest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixed validation classifier, added clean plugin to prevent gwt-user from being deployed to GAE, ... (issue1377802)
LGTM http://gwt-code-reviews.appspot.com/1377802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixed validation classifier, added clean plugin to prevent gwt-user from being deployed to GAE, ... (issue1377802)
http://gwt-code-reviews.appspot.com/1377802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding vertical padding to hborder.png in the new Clean style theme to handle large Buttons/Date... (issue1368808)
On 2011/03/09 15:55:18, jlabanca wrote: LGTM http://gwt-code-reviews.appspot.com/1368808/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9829 committed - Let the Key for Maps be of type Object....
Revision: 9829 Author: gwt.mirror...@gmail.com Date: Wed Mar 9 14:11:18 2011 Log: Let the Key for Maps be of type Object. [JSR 303 TCK Result] 110 of 257 (42.80%) Pass with 20 Failures and 9 Errors. Review at http://gwt-code-reviews.appspot.com/1376803 Review by: rchan...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9829 Modified: /trunk/user/src/com/google/gwt/validation/client/impl/GwtValidationContext.java /trunk/user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java /trunk/user/test/org/hibernate/jsr303/tck/tests/validation/PropertyPathGwtTest.java === --- /trunk/user/src/com/google/gwt/validation/client/impl/GwtValidationContext.java Wed Mar 2 06:32:23 2011 +++ /trunk/user/src/com/google/gwt/validation/client/impl/GwtValidationContext.java Wed Mar 9 14:11:18 2011 @@ -102,10 +102,9 @@ /** * Append a keyed node to the path. * - * @param name * @return the new GwtValidationContext. */ - public GwtValidationContextT appendKey(String name, String key) { + public GwtValidationContextT appendKey(String name, Object key) { GwtValidationContextT temp = new GwtValidationContextT(rootBean, beanDescriptor, messageInterpolator, validator, validatedObjects); temp.path = path.appendKey(name, key); === --- /trunk/user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java Wed Mar 2 06:32:23 2011 +++ /trunk/user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java Wed Mar 9 14:11:18 2011 @@ -1182,10 +1182,10 @@ sw.indent(); sw.indent(); -// context.appendKey(myProperty,String.valueOf(entry.getKey())), +// context.appendKey(myProperty,entry.getKey()), sw.print(context.appendKey(\); sw.print(p.getPropertyName()); -sw.println(\,String.valueOf(entry.getKey())),); +sw.println(\,entry.getKey()),); // entry.getValue(), groups)); sw.println(entry.getValue(), groups));); === --- /trunk/user/test/org/hibernate/jsr303/tck/tests/validation/PropertyPathGwtTest.java Mon Feb 7 07:41:58 2011 +++ /trunk/user/test/org/hibernate/jsr303/tck/tests/validation/PropertyPathGwtTest.java Wed Mar 9 14:11:18 2011 @@ -48,7 +48,6 @@ delegate.testPropertyPathWithList(); } - @Failing(issue = 5803) public void testPropertyPathWithMap() { delegate.testPropertyPathWithMap(); } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9830 committed - Updates UiBinder HTML rendering to use SafeHtml. Rather than generati...
Revision: 9830 Author: sbruba...@google.com Date: Wed Mar 9 09:01:28 2011 Log: Updates UiBinder HTML rendering to use SafeHtml. Rather than generating generic HTML strings for HTML objects, the generated binder code creates a SafeHtml template based on the *.ui.xml specs and passes arguments to the template as either String or SafeHtml-wrapped objects, depending on the context. A small size regression is expected as a new SafeHtml template signature and implementation are being generated for each HTML object. However, the safety of the generated HTML provides a clear benefit. Review at http://gwt-code-reviews.appspot.com/1305801 Review by: rj...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9830 Added: /trunk/user/src/com/google/gwt/uibinder/rebind/model/HtmlTemplate.java /trunk/user/src/com/google/gwt/uibinder/rebind/model/HtmlTemplateArgument.java /trunk/user/src/com/google/gwt/uibinder/rebind/model/HtmlTemplates.java /trunk/user/test/com/google/gwt/uibinder/rebind/model/HtmlTemplateTest.java /trunk/user/test/com/google/gwt/uibinder/rebind/model/HtmlTemplatesTest.java Modified: /trunk/user/src/com/google/gwt/uibinder/elementparsers/AttributeMessageInterpreter.java /trunk/user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java /trunk/user/src/com/google/gwt/uibinder/elementparsers/CustomButtonParser.java /trunk/user/src/com/google/gwt/uibinder/elementparsers/DialogBoxParser.java /trunk/user/src/com/google/gwt/uibinder/elementparsers/DomElementParser.java /trunk/user/src/com/google/gwt/uibinder/elementparsers/GridParser.java /trunk/user/src/com/google/gwt/uibinder/elementparsers/HTMLPanelParser.java /trunk/user/src/com/google/gwt/uibinder/elementparsers/HasHTMLParser.java /trunk/user/src/com/google/gwt/uibinder/elementparsers/HtmlMessageInterpreter.java /trunk/user/src/com/google/gwt/uibinder/elementparsers/StackLayoutPanelParser.java /trunk/user/src/com/google/gwt/uibinder/elementparsers/TabLayoutPanelParser.java /trunk/user/src/com/google/gwt/uibinder/elementparsers/TabPanelParser.java /trunk/user/src/com/google/gwt/uibinder/elementparsers/TextInterpreter.java /trunk/user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java /trunk/user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java /trunk/user/src/com/google/gwt/uibinder/rebind/Tokenator.java /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java /trunk/user/src/com/google/gwt/uibinder/rebind/messages/AttributeMessage.java /trunk/user/test/com/google/gwt/uibinder/elementparsers/DialogBoxParserTest.java /trunk/user/test/com/google/gwt/uibinder/elementparsers/GridParserTest.java /trunk/user/test/com/google/gwt/uibinder/elementparsers/MockUiBinderWriter.java /trunk/user/test/com/google/gwt/uibinder/elementparsers/StackLayoutPanelParserTest.java /trunk/user/test/com/google/gwt/uibinder/elementparsers/TabLayoutPanelParserTest.java /trunk/user/test/com/google/gwt/uibinder/elementparsers/TabPanelParserTest.java === --- /dev/null +++ /trunk/user/src/com/google/gwt/uibinder/rebind/model/HtmlTemplate.java Wed Mar 9 09:01:28 2011 @@ -0,0 +1,148 @@ +/* + * Copyright 2011 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.gwt.uibinder.rebind.model; + +import com.google.gwt.uibinder.rebind.IndentedWriter; +import com.google.gwt.uibinder.rebind.Tokenator; +import com.google.gwt.uibinder.rebind.Tokenator.Resolver; + +import java.util.ArrayList; +import java.util.List; + +/** + * An individual SafeHtml template to be written by UiBinder. + */ +public class HtmlTemplate { + private final ListString template = new ArrayListString(); + private final String methodName; + private final ArrayListHtmlTemplateArgument methodArgs = +new ArrayListHtmlTemplateArgument(); + private final HtmlTemplates templates; + + public HtmlTemplate(String html, Tokenator tokenator, HtmlTemplates templates) +throws IllegalArgumentException { +if (html == null) { + throw new IllegalArgumentException(Template html cannot be null); +} +if (tokenator == null) { + throw new IllegalArgumentException(Template tokenator cannot be null); +} +if (templates == null) { + throw new IllegalArgumentException(HtmlTemplates container cannot be null); +} + +
[gwt-contrib] [google-web-toolkit] r9831 committed - Adding vertical padding to hborder.png in the new Clean style theme to...
Revision: 9831 Author: gwt.mirror...@gmail.com Date: Wed Mar 9 14:15:12 2011 Log: Adding vertical padding to hborder.png in the new Clean style theme to handle large Buttons/DatePickers. Currently, the sprited background images are much too short, so other background sprites will bleed into a button and date picker cells over ~40px tall. Review at http://gwt-code-reviews.appspot.com/1368808 Review by: p...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9831 Modified: /trunk/user/src/com/google/gwt/user/theme/clean/public/gwt/clean/clean.css /trunk/user/src/com/google/gwt/user/theme/clean/public/gwt/clean/clean_rtl.css /trunk/user/src/com/google/gwt/user/theme/clean/public/gwt/clean/images/hborder.png === --- /trunk/user/src/com/google/gwt/user/theme/clean/public/gwt/clean/clean.css Mon Feb 28 08:19:11 2011 +++ /trunk/user/src/com/google/gwt/user/theme/clean/public/gwt/clean/clean.css Wed Mar 9 14:15:12 2011 @@ -169,7 +169,7 @@ background: white; } .gwt-DialogBox .dialogBottomCenter { - background: url(images/hborder.png) repeat-x 0px -2145px; + background: url(images/hborder.png) repeat-x 0px -2945px; -background: url(images/hborder_ie6.png) repeat-x 0px -2144px; } .gwt-DialogBox .dialogMiddleLeft { @@ -454,10 +454,10 @@ background: #f1f1f1; } .gwt-DecoratedPopupPanel .popupTopCenter { - background: url(images/hborder.png) 0px -2137px repeat-x; + background: url(images/hborder.png) 0px -2937px repeat-x; } .gwt-DecoratedPopupPanel .popupBottomCenter { - background: url(images/hborder.png) repeat-x 0px -2138px; + background: url(images/hborder.png) repeat-x 0px -2938px; -background: url(images/hborder_ie6.png) repeat-x 0px -2138px; } .gwt-DecoratedPopupPanel .popupMiddleLeft { @@ -1143,11 +1143,6 @@ cursor: hand; cursor: pointer; } -.datePickerDayIsToday { - padding: 3px; - color:#fff; - background: url(images/hborder.png) repeat-x 0px -2107px; -} .datePickerDayIsWeekend { background: #f7f7f7; } @@ -1171,7 +1166,7 @@ .datePickerDayIsToday { padding: 3px; color: #fff; - background: url(images/hborder.png) repeat-x 0px -2107px; + background: url(images/hborder.png) repeat-x 0px -2607px; } .datePickerMonthSelector { === --- /trunk/user/src/com/google/gwt/user/theme/clean/public/gwt/clean/clean_rtl.css Mon Feb 28 08:19:11 2011 +++ /trunk/user/src/com/google/gwt/user/theme/clean/public/gwt/clean/clean_rtl.css Wed Mar 9 14:15:12 2011 @@ -169,7 +169,7 @@ background: white; } .gwt-DialogBox .dialogBottomCenter { - background: url(images/hborder.png) repeat-x 0px -2145px; + background: url(images/hborder.png) repeat-x 0px -2945px; -background: url(images/hborder_ie6.png) repeat-x 0px -2144px; } .gwt-DialogBox .dialogMiddleLeft { @@ -454,10 +454,10 @@ background: #f1f1f1; } .gwt-DecoratedPopupPanel .popupTopCenter { - background: url(images/hborder.png) 0px -2137px repeat-x; + background: url(images/hborder.png) 0px -2937px repeat-x; } .gwt-DecoratedPopupPanel .popupBottomCenter { - background: url(images/hborder.png) repeat-x 0px -2138px; + background: url(images/hborder.png) repeat-x 0px -2938px; -background: url(images/hborder_ie6.png) repeat-x 0px -2138px; } .gwt-DecoratedPopupPanel .popupMiddleLeft { @@ -1144,11 +1144,6 @@ cursor: hand; cursor: pointer; } -.datePickerDayIsToday { - padding: 3px; - color:#fff; - background: url(images/hborder.png) repeat-x 0px -2107px; -} .datePickerDayIsWeekend { background: #f7f7f7; } @@ -1172,7 +1167,7 @@ .datePickerDayIsToday { padding: 3px; color: #fff; - background: url(images/hborder.png) repeat-x 0px -2107px; + background: url(images/hborder.png) repeat-x 0px -2607px; } .datePickerMonthSelector { === --- /trunk/user/src/com/google/gwt/user/theme/clean/public/gwt/clean/images/hborder.png Mon Feb 28 08:19:11 2011 +++ /trunk/user/src/com/google/gwt/user/theme/clean/public/gwt/clean/images/hborder.png Wed Mar 9 09:38:31 2011 Binary file, no diff available. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9832 committed - Fixed validation classifier, added clean plugin to prevent gwt-user fr...
Revision: 9832 Author: drfibona...@google.com Date: Wed Mar 9 09:59:27 2011 Log: Fixed validation classifier, added clean plugin to prevent gwt-user from being deployed to GAE, upgraded to GAE 1.4.2, gwt-maven-plugin 2.2.0 Review at http://gwt-code-reviews.appspot.com/1377802 Review by: rchan...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9832 Modified: /trunk/samples/expenses/pom.xml === --- /trunk/samples/expenses/pom.xml Fri Feb 11 11:12:39 2011 +++ /trunk/samples/expenses/pom.xml Wed Mar 9 09:59:27 2011 @@ -11,8 +11,8 @@ roo.version1.1.0.RELEASE/roo.version spring.version3.0.3.RELEASE/spring.version slf4j.version1.6.1/slf4j.version - gae.version1.4.0/gae.version -gae-test.version1.4.0/gae-test.version + gae.version1.4.2/gae.version +gae-test.version1.4.2/gae-test.version gae.home${user.home}/.m2/repository/com/google/appengine/appengine-java-sdk/${gae.version}/appengine-java-sdk-${gae.version}/gae.home datanucleus.version1.1.5/datanucleus.version /properties @@ -229,7 +229,7 @@ groupIdjavax.validation/groupId artifactIdvalidation-api/artifactId version1.0.0.GA/version -classifiersource/classifier +classifiersources/classifier /dependency dependency groupIdcglib/groupId @@ -437,6 +437,39 @@ /dependencies build plugins + plugin + !-- Don't deploy gwt-user jar to GAE -- + artifactIdmaven-clean-plugin/artifactId + version2.3/version + executions + execution + iddefault-clean/id + phaseclean/phase + goals + goalclean/goal + /goals + /execution + execution + idremove-gwt-client-classes/id + phasepackage/phase + goals + goalclean/goal + /goals + configuration + excludeDefaultDirectoriestrue/excludeDefaultDirectories + filesets + fileset + directory${project.build.directory}/${project.build.finalName}/WEB-INF/lib/directory + includes + includegwt-user*jar/include + /includes + /fileset + /filesets + /configuration + /execution + /executions + /plugin + plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId @@ -617,7 +650,7 @@ plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId -version2.1.0-1/version +version2.2.0/version dependencies dependency groupIdcom.google.gwt/groupId -- http://groups.google.com/group/Google-Web-Toolkit-Contributors