Re: DataGrid progress - who to change default boxs to plain text
i tried overrideing setLoadingIndicator but no help, any help regarding the same public void setLoadingIndicator() { //giving null value here Widget defaultWidget = getLoadingIndicator(); HorizontalPanel hp = new HorizontalPanel(); hp.add(new Label(Please wait loading)); hp.add(defaultWidget); super.setLoadingIndicator(hp); } On Jun 1, 9:15 am, dayanandabv dayananda.veera...@hcl.com wrote: Thank you so much Thomas, it's worked, appriciate your help. One more question, is it possible to have the static aloing with blinking boxes? like override method and static aloing with boxes. On Jun 1, 4:21 am, Thomas Broyer t.bro...@gmail.com wrote: On Friday, June 1, 2012 7:40:20 AM UTC+2, dayanandabv wrote: Hi All, I need to change default boxes which display in progress bar of DataGrid in to plain text - like please wait loading setLoadingIndicator ?http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl...)- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help: GWT Celltable Record (Specific Record Mouseover) ToolTip !!!
The contact instance in getValue() is your row value. So when you make the generated SafeHtml dependent on the contact you have a different tooltip for each row (= contact) in that column. If you want to show a tooltip in every column you have to do this in every Column.getValue(). -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ai0G-oC4BNAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 Compiler Hanging
otth2oskier wippel.roland@... writes: I am now getting the issue with the DevMode as well, and it has no flag to override the update check. On Aug 15, 3:29 pm, Stijn Bienkens stijn.bienk...@... wrote: I have exactly the same issue at work. Using Windows 7 64bit, jdk 6 update 26,gwt2.3 and eclipse indigo 3.7. Same problem here: GWT 2.4.0, Eclipse Indigo, Ubuntu Linux, 64bit machine. Both Compile and DevMode hang. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Authentification With Selenium
Hello , i want to do an Authentification with Selenium with GWT ( authentification af the user ; login pass word ) and i don't know the step that i should follow to do this . best regards Adil 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: Authentification With Selenium
On 4 June 2012 11:20, alaa aadil aadila...@gmail.com wrote: Hello , i want to do an Authentification with Selenium with GWT ( authentification af the user ; login pass word ) and i don't know the step that i should follow to do this . I'm sorry but based on that information what you provide in your email is not possible to decide whether you have issues with gwt or with selenium. If selenium than you should ask your question at selenium mailing list [1] and please provide more information about what you would like to achieve. For example, would you like to use Selenium IDE or you have tests written in programming languages (i.e.: java, c#, python, etc.) [1] - https://groups.google.com/forum/?fromgroups#!forum/selenium-users -- -- 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.
Re: Authentification With Selenium
thanks Csanyi Andras for your reply , what i want to do is : i want to create an application of monitoring with GWT , and the first view of this application should be an Athentification view of the user . when i was searching in the Net , i found that some people suggest to use Selenium to do this Authentification part. i don't know if i can do this witout Selenium , just with GWT ? please, what do you advice me to use ? thanks best regards Adil -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: byte array to Image
Excuse me Agito M, I'm intereseted in this solution. You said that Code on the client side didn't change from what I earlier posted.. What do you mean? How do you call the servlet and how do you process the result and create the image client side? Please, could you possibly post some code to let me understand this? Thanks. Il giorno martedì 27 settembre 2011 12:56:12 UTC+2, AgitoM ha scritto: Decided to deal with the 32kb limit in Internet Explorer 8. (Internet Explorer 9 is not a problem). Dealt with the problem by creating a servlet that outputs the byte array as a image. I'm sending the ID of the image, in this case a map, to the servlet using the GET method. This is the code for the doGet operation for my dedicated ImageServlet: protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(image/png); if(request.getParameter(MapID) != null) { int mapID = Integer.parseInt(request.getParameter(MapID)); byte[] image = null; try { image = wsStub.getMapImage(mapID); } catch (Exception e) { e.printStackTrace(); } OutputStream out = response.getOutputStream(); out.write(image); out.close(); } } On my RPC Servlet side, I simply return this as the URL of the image: (ImageServlet?MapID= + mapID) Code on the client side didn't change from what I earlier posted. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/vy4W1UY8CHkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
XMLHttpRequest getResponse instead of getResponseText to get arraybuffer data
Hi all, I qoute from https://developer.mozilla.org/En/Using_XMLHttpRequest#Handling_binary_data in javascript is possible, using the The XMLHttpRequest Level 2 Specification adds new responseType attributeshttp://www.w3.org/TR/XMLHttpRequest2/#the-responsetype-attributewhich make sending and receiving binary data much easier. Something like this: var xhr = new XMLHttpRequest(); xhr.open(GET, url, true); xhr.requestType = arraybuffer; xhr.onload = function(e) { var arraybuffer = xhr.response; // not responseText /* ... */ } xhr.send(); How to get this in GWT? The class XMLHttpRequest has not a setResponseType(...) method and also has not a getResponse() method to get data, for example, as a byte[] or something similar, but has only a getResponseText() method. Is there a way to solve this? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/LjktBceRc_YJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 performance issue
Could you please provide me the sample example for this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ubpiMGBB0FUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: XMLHttpRequest getResponse instead of getResponseText to get arraybuffer data
On Monday, June 4, 2012 1:03:40 PM UTC+2, Magallo wrote: Hi all, I qoute from https://developer.mozilla.org/En/Using_XMLHttpRequest#Handling_binary_data in javascript is possible, using the The XMLHttpRequest Level 2 Specification adds new responseType attributeshttp://www.w3.org/TR/XMLHttpRequest2/#the-responsetype-attributewhich make sending and receiving binary data much easier. Something like this: var xhr = new XMLHttpRequest(); xhr.open(GET, url, true); xhr.requestType = arraybuffer; xhr.onload = function(e) { var arraybuffer = xhr.response; // not responseText /* ... */ } xhr.send(); How to get this in GWT? Wait for GWT 2.5: http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java?r=10839 ;-) The class XMLHttpRequest has not a setResponseType(...) method and also has not a getResponse() method to get data, for example, as a byte[] or something similar, but has only a getResponseText() method. Is there a way to solve this? XMLHttpRequest is a JavaScriptObject, so it's easy to add those: either subclass XMLHttpRequest and then cast() any XMLHttpRequest to your subclass, or use static native helper methods. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/W64YrQ2d_lMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: XMLHttpRequest getResponse instead of getResponseText to get arraybuffer data
Hi, I tried to use your solution. Looking at Google I/O on youtube (http://www.youtube.com/watch?v=NNmoEOpGJdk) I saw this but I wasn't able to do it. I tried creating this: public class BinaryXMLHttpRequest extends XMLHttpRequest { public native JavaScriptObject getResponse() /*- { return this.response; } -*/; //Set to arraybuffer or blob for binary response public native void setResponseType(String value) /*- { this.responseType = value; } -*/; } then I used this class this way: BinaryXMLHttpRequest binxhr = (BinaryXMLHttpRequest)BinaryXMLHttpRequest.create(); binxhr.open(GET, myservlet_url); binxhr.setResponseType(arraybuffer); binxhr.setOnReadyStateChange(new ReadyStateChangeHandler() { @Override public void onReadyStateChange(XMLHttpRequest xhr) { BinaryXMLHttpRequest binxhr = (BinaryXMLHttpRequest)xhr; if( binxhr.getReadyState() == XMLHttpRequest.DONE ) { binxhr.clearOnReadyStateChange(); binxhr.getResponse(); = what can I do with this? } } }); If you look, at the end I have a binxhr.getResponse(); But this function returna a JavaScriptObject type. What can I do now with this? This is not a byte[] or whatever, so, I don't know in GWT how to manipulate it. Do you have an idea? Il giorno lunedì 4 giugno 2012 13:45:34 UTC+2, Thomas Broyer ha scritto: On Monday, June 4, 2012 1:03:40 PM UTC+2, Magallo wrote: Hi all, I qoute from https://developer.mozilla.org/En/Using_XMLHttpRequest#Handling_binary_data in javascript is possible, using the The XMLHttpRequest Level 2 Specification adds new responseType attributeshttp://www.w3.org/TR/XMLHttpRequest2/#the-responsetype-attributewhich make sending and receiving binary data much easier. Something like this: var xhr = new XMLHttpRequest(); xhr.open(GET, url, true); xhr.requestType = arraybuffer; xhr.onload = function(e) { var arraybuffer = xhr.response; // not responseText /* ... */ } xhr.send(); How to get this in GWT? Wait for GWT 2.5: http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java?r=10839 ;-) The class XMLHttpRequest has not a setResponseType(...) method and also has not a getResponse() method to get data, for example, as a byte[] or something similar, but has only a getResponseText() method. Is there a way to solve this? XMLHttpRequest is a JavaScriptObject, so it's easy to add those: either subclass XMLHttpRequest and then cast() any XMLHttpRequest to your subclass, or use static native helper methods. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8-nDeDPl_0cJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Help: GWT Celltable Record (Specific Record Mouseover) ToolTip !!!
Hi all, Thanks a lot Jens and Rajeshwar , For Helping me, As of now Tooltip is Working fine Regards Laxman On Mon, Jun 4, 2012 at 2:30 PM, Jens jens.nehlme...@gmail.com wrote: The contact instance in getValue() is your row value. So when you make the generated SafeHtml dependent on the contact you have a different tooltip for each row (= contact) in that column. If you want to show a tooltip in every column you have to do this in every Column.getValue(). -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ai0G-oC4BNAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: XMLHttpRequest getResponse instead of getResponseText to get arraybuffer data
On Monday, June 4, 2012 2:53:28 PM UTC+2, Magallo wrote: Hi, I tried to use your solution. Looking at Google I/O on youtube ( http://www.youtube.com/watch?v=NNmoEOpGJdk) I saw this but I wasn't able to do it. I tried creating this: public class BinaryXMLHttpRequest extends XMLHttpRequest { public native JavaScriptObject getResponse() /*- { return this.response; } -*/; //Set to arraybuffer or blob for binary response public native void setResponseType(String value) /*- { this.responseType = value; } -*/; } then I used this class this way: BinaryXMLHttpRequest binxhr = (BinaryXMLHttpRequest)BinaryXMLHttpRequest.create(); binxhr.open(GET, myservlet_url); binxhr.setResponseType(arraybuffer); binxhr.setOnReadyStateChange(new ReadyStateChangeHandler() { @Override public void onReadyStateChange(XMLHttpRequest xhr) { BinaryXMLHttpRequest binxhr = (BinaryXMLHttpRequest)xhr; if( binxhr.getReadyState() == XMLHttpRequest.DONE ) { binxhr.clearOnReadyStateChange(); binxhr.getResponse(); = what can I do with this? } } }); If you look, at the end I have a binxhr.getResponse(); But this function returna a JavaScriptObject type. What can I do now with this? This is not a byte[] or whatever, so, I don't know in GWT how to manipulate it. Do you have an idea? It will be an ArrayBuffer, so you'd have to build a JSO overlay type representing ArrayBuffer and cast() the JSO to your ArrayBuffer. But honestly, it'd be easier to compile GWT from trunk and use the API that's already in there. When 2.5 will be out the doors, simply replace your home-built pre-2.5 GWT with the official 2.5. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/KD4dHE7WMLMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: making Anchor look like a normal link
Just thinking. When right-clicking a Hyperlink, which starts a new instance of the app in a separate window/tab, how would one figure out the user (that is logged in to the original instance)? I assume the new instance starts up (onModuleLoad()) and knows nothing about the instance from which it was started. One idea is to pass the user on the URL, but would that be secure? Is there a standard way to do this? On Sunday, June 3, 2012 6:30:39 PM UTC-7, Thomas Broyer wrote: On Monday, June 4, 2012 12:06:42 AM UTC+2, Mike Dee wrote: And opening a new window is when authentication comes into play. The user hasn't logged into the new instance of the application (opened in the new window). Hence we are back to the original problem. With a regular web app, this wouldn't be a problem. The state of whether the user is logged in is maintained on the server (in session variables). In the case of GWT, the state of whether the user is logged is in maintained on the client. Not necessarily; and if you're doing it that way, then IMO you're either over-secure (at the detriment of UX, which is fine if it's a conscious choice) or you're doing it wrong. First, I find it way easier to handle authentication separate from the GWT app, and just consider the user is logged in when/if it loads the GWT app. That way, you only have to handle the case that the user has been disconnected and tell him to refresh the page in order to re-authenticate. And if you open the app while you're already authenticated (using cookies or whatever, but this is dealt with the server, unknown to the GWT app) then it just works: the GWT app does not know (and does not need to know) whether you just authenticated or you reloaded the page, or went back to the app while your authentication session was still active, or opened the app in another window/tab; it just loads, and you're authenticated. But even if you handle authenticating from within the app, you can very well set a cookie after authentication and check it onModuleLoad (I did it once, it works, in practice, not only theoretically). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/6zb2US25fQoJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: making Anchor look like a normal link
Actually, I think the answer is here: http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ On Monday, June 4, 2012 10:40:53 AM UTC-7, Mike Dee wrote: Just thinking. When right-clicking a Hyperlink, which starts a new instance of the app in a separate window/tab, how would one figure out the user (that is logged in to the original instance)? I assume the new instance starts up (onModuleLoad()) and knows nothing about the instance from which it was started. One idea is to pass the user on the URL, but would that be secure? Is there a standard way to do this? On Sunday, June 3, 2012 6:30:39 PM UTC-7, Thomas Broyer wrote: On Monday, June 4, 2012 12:06:42 AM UTC+2, Mike Dee wrote: And opening a new window is when authentication comes into play. The user hasn't logged into the new instance of the application (opened in the new window). Hence we are back to the original problem. With a regular web app, this wouldn't be a problem. The state of whether the user is logged in is maintained on the server (in session variables). In the case of GWT, the state of whether the user is logged is in maintained on the client. Not necessarily; and if you're doing it that way, then IMO you're either over-secure (at the detriment of UX, which is fine if it's a conscious choice) or you're doing it wrong. First, I find it way easier to handle authentication separate from the GWT app, and just consider the user is logged in when/if it loads the GWT app. That way, you only have to handle the case that the user has been disconnected and tell him to refresh the page in order to re-authenticate. And if you open the app while you're already authenticated (using cookies or whatever, but this is dealt with the server, unknown to the GWT app) then it just works: the GWT app does not know (and does not need to know) whether you just authenticated or you reloaded the page, or went back to the app while your authentication session was still active, or opened the app in another window/tab; it just loads, and you're authenticated. But even if you handle authenticating from within the app, you can very well set a cookie after authentication and check it onModuleLoad (I did it once, it works, in practice, not only theoretically). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/baLXrMk1SrMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Resubmitting RequestFactory request when server side logic requires it
I am having issues when I want to resubmit some requests to the server when the server-side logic indicates it should happen. In particular, here's what happens: 1. The user logins in, which causes an object (SurveyResponseHeader) to be created on the server-side, and sent back to the client. edit is then called on the client side on that object. 2. The user fills in a set of SurveyResponse objects into a list contained by the SurveyResponseHeader object (and a corresponding request is made to save the object on the server). 3. The user submits the survey responses, but the session has timed out on the server. An error code is sent back to the client, and the user is asked to re-authenticate. At this point, I want to resubmit the request that caused the error; it should succeed on the server now because the session has been restarted. However, I can't use the same request object because I'll get the request is already in progress error message. Rather than tell you everything I've tried, I'd like to hear what people think is the right way to accomplish this. I can provide more details if needed, but I want to keep the description simple at least to start. Thanks, Ryan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Adding a DockLayoutPanel to a FlowPanel?
Yeah, I know the subject sounds crazy. I'm working on a larger project (http://code.google.com/p/gerrit/), who's overall GWT UI is based on a top-level flow panel. Now I need to use a DockLayoutPanel for one of the pages. We have a lot of code in place assuming pages add and remove content from the top-level flow panel. Rewriting all of this to use LayoutPanels would be a huge task I hope to avoid. I've tried adding my DockLayoutPanel to the flow panel, and I see the DOM get modified, but nothing shows up in the web view. I assume this just isn't supported? Alternatively, are there any other good methods to have a widget expand vertically? I played around with adding a resize listener to a standard widget, and that worked OK, but the DockLayoutPanel is so much cleaner... Thank you in advance for any discussion and suggestions. Brad -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.5 and beyond
Can you share unofficial gwt2.5 build? Thank you. On Saturday, March 31, 2012 5:56:54 PM UTC+2, Joseph Lust wrote: I use TeamCity to build each GWT trunk commit. For example there were four commits yesterday to the GWT trunk to add ARIA accessibility support. So yes, they're still in the game. Sincerely, Joe -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/nqsk8IIfj9MJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: add timer on panel......
If I recall correctly, System.currentTimeMillis() still works in GWT. In your timer code, this can be called; end_time + start_time - current_time will give you how much time is left. On Tuesday, May 29, 2012 7:59:43 AM UTC-4, Harshal Patil wrote: Hello Can anyone plz help me to create timer and how to add it on the panel? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/eCENtNNtlvwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: 3-tier architecture /gwt
Hi, I have problems to run the project inside eclipse. I add this to the parent pom.xml: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.9/version configuration wtpmanifesttrue/wtpmanifest wtpapplicationxmltrue/wtpapplicationxml manifest${basedir}/src/main/resources/META-INF/MANIFEST.MF /manifest projectNameTemplate [artifactId] /projectNameTemplate wtpversion2.0/wtpversion workspace${workspace.path}/workspace downloadSourcestrue/downloadSources /configuration /plugin So, the project is added as a dependency in the eclipse. With this I can run the *client* module, I change in shared project, refresh the browser and the changes happens. So I can remove in client module the part where use build-helper-maven-plugin to add sources. I don't know why, but in eclipse doesn't found this sources folder. The problem that I facing now is, how I can run the server code too inside eclipse? I want to click on Run - Web application and run in dev mode all modules to test server code too. If run server module fails because don't found entry module: Missing required argument 'module[s]' Google Web Toolkit 2.4.0 DevMode [-noserver] [-port port-number | auto] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logdir directory] [-logLevel level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort port-number | auto] [-server servletContainerLauncher[:args]] [-startupUrl url] [-war dir] [-deploy dir] [-extra dir] [-workDir dir] module[s] And if run client module fail because: [WARN] 404 - POST /app/greet (127.0.0.1) 1395 bytes And in my server module has: servlet-mapping servlet-namegreetServlet/servlet-name url-pattern/app/greet/url-pattern /servlet-mapping Can someone help me to run inside Eclipse? Thanks, Juan 2012/6/1 Juan Pablo Gardella gardellajuanpa...@gmail.com Thanks Thomas, Alexandre! I try with -Dmaven.test.skip but run the test, I didn't know how skip, so I delete the tests :(. Thanks for the tip -Darchetype.test.skip. After that, I can install and use it. Thanks for both!! Juan 2012/6/1 Thomas Broyer t.bro...@gmail.com On Friday, June 1, 2012 9:09:43 AM UTC+2, Alexandre Ardhuin wrote: Hi Juan, Was you triing with the latest version ? Could you try to update gwt-maven-archetypes ( in gwt-maven-archetypes folder : git pull ) and reinstall the plugin ( mvn clean install ) ? The latest version works fine for me. Same here. Alternately, you could just skip tests: mvn clean install -Darchetype.test.skip. archetype:integration-test is very sensible, and the parent POM, being generated/modified by archetype:generate, will *never* have an EOL at EOF. Given that my editors (I use mostly Vim on that project) insist in inserting such an EOL (which is fine the other 99.9% of the time), I have to revert them before launching the tests. I suppose you could have a similar issue depending on your Git configuration used when cloning the repo (core.eol, core.safecrlf, core.autocrlf). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Ty9V4cU780EJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT JSNI Callback
I am trying to implement a callback using JSNI. 1. I don't know if changing this is allowed in the way I do it. 2. I don't know if such an assignment is advisable from the perspective of JSNI functionality 3. The compiler in Eclispe does not seem to grasp that as well and I don't know the right syntax for this.@com.roamtopix.client.StaticFacad.JsCallback::callback.execute(Lcom/google/gwt/core/client/JavaScriptObject;)(jsObject); with callback.execute it says JavaScript parsing: Missing ) after argument list for this.@com.roamtopix.client.StaticFacad.JsCallback::callback::execute(Lcom/google/gwt/core/client/JavaScriptObject;)(jsObject);with callback::execute it says JavaScript parsing: Invalid label public static interface JavaCallback { void execute(JavaScriptObject jsObject); } public static class JsCallback extends JavaScriptObject { public final JavaCallback callback; public JsCallback(JavaCallback callback){ this.callback = callback; init(); } private native void init()/*-{ this.@com.roamtopix.client.StaticFacad.JsCallback::that(Lcom/google/gwt/core/client/JavaScriptObject;)(this); }-*/; private native void that(JavaScriptObject that)/*-{ var fn = function(jsObject) { this.@com.roamtopix.client.StaticFacad.JsCallback::callback.execute(Lcom/google/gwt/core/client/JavaScriptObject;)(jsObject); }; that = $entry(fn); }-*/; } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/O_buDgbx1PYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Help with JavaScriptObject casting issue in Prod Mode.
I am working with a wrapper around the FB JS libs, which is actually running on a iPhone / PhoneGap that is calling the native FB Libs.. I have the following wrapper function that will log me out of FB and call the success function on return public static native void logout (AsyncCallbackJavaScriptObject callback) /*-{ $wnd.FB.logout(function(response){ @com.gwtfb.client.core.FBCore::callbackSuccess(Lcom/google/gwt/user/client/rpc/AsyncCallback;Lcom/google/gwt/core/client/JavaScriptObject;)(callback,response); }); }-*/; The response method is defined below. During execution, the logout function just returns the String OK. From the diagnostics in the method below, obj is of class * java.lang.String* and the callback signature is *protected class LoginStatusCallback implements AsyncCallbackJavaScriptObject * callback.onSuccess (obj); fails with a Class Cast Exception when running in Prod Mode, The try / catch around callback.onSuccess (obj) does get caught and it successfully calls the callback with null as a parameter. it just seems off that the obj correctly identifies itself as an instance of JavaScriptObject but fails on the call.. It works fine hosted mode.. Thank You John Gentilin protected static void callbackSuccess(AsyncCallbackJavaScriptObject callback, JavaScriptObject obj) { m_Log.info(FB call response + obj.toString()); if (obj instanceof JavaScriptObject ) { m_Log.info(obj.getClass().getName()); if(callback != null) { try { m_Log.info(callback.getClass().getName()); callback.onSuccess (obj); } catch(Exception e) { m_Log.info(Exception in callback, calling success with null); callback.onSuccess(null); } } } else { m_Log.info(Other than JavaScript Object returned on callback +obj.getClass().getName()); } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/T_U-9Av-vBgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Add Map support to RequestFactory (issue 6132056)
I finally managed to get time to look at this. I added tests to answer to Alexis's original question and my current patch out for review would not work with his supplied case. Luckily, it was a fairly easy change to addPathsToResolution to have it add the child resolutions without handling the edge case Thomas pointed out. I really Thomas's .keys. and .values. suggestion for disambiguation of a common property name between the key and value types so, unless anyone prefers theMap.e pulling in both the key's E's and values's E's, I'll take a stab at that change. Let me know if there're any other suggestions. Cheers, James On 25 May 2012 22:06, Thomas Broyer t.bro...@gmail.com wrote: AutoBean has no equivalent to these partial loading; just like a POJO has no notion of lazy loading, compared to JPA entities. Le 25 mai 2012 21:06, James Horsley james.hors...@gmail.com a écrit : I read Alexis's email too hastily and hadn't noted he was asking about nested complex types. I'll add some tests to see how it behaves. I'll be interested to dig into what AutoBean's behaviour is here as that's what I based on, mimicked, and leveraged for this patch. On 25 May 2012 19:38, t.bro...@gmail.com wrote: On 2012/05/25 17:09:32, james.horsley wrote: I added tests for complex keys and complex values which're passing so it should do yes. I don't see any change to addPathsToResolution... Also, how would it work? Say I have a MapA,B, A has a reference c to a proxy C, and B has a reference d to a proxy D. What should I pass to Request#with() to get the Ds of B without the Cs of A? with(theMap.d) ? Now what if A and B both have a property e referencing a proxy E, I want B's Es but not A's Es, with(theMap.e) wouldn't work here. I think maybe there should be special subproperties keys and values, so one can say: with(myMap.keys.c, myMap.values.d, myMap.values.e) to get A's Cs, and B's Ds and Es (without A's Es!) http://codereview.appspot.com/**6132056/http://codereview.appspot.com/6132056/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add Map support to RequestFactory (issue 6132056)
Adding the .keys. and .values. disambiguation was much much simpler than I'd thought thanks to the prefix variable being passed down so can have the codereview updated with this change very shortly. On 4 June 2012 13:07, James Horsley james.hors...@gmail.com wrote: I finally managed to get time to look at this. I added tests to answer to Alexis's original question and my current patch out for review would not work with his supplied case. Luckily, it was a fairly easy change to addPathsToResolution to have it add the child resolutions without handling the edge case Thomas pointed out. I really Thomas's .keys. and .values. suggestion for disambiguation of a common property name between the key and value types so, unless anyone prefers theMap.e pulling in both the key's E's and values's E's, I'll take a stab at that change. Let me know if there're any other suggestions. Cheers, James On 25 May 2012 22:06, Thomas Broyer t.bro...@gmail.com wrote: AutoBean has no equivalent to these partial loading; just like a POJO has no notion of lazy loading, compared to JPA entities. Le 25 mai 2012 21:06, James Horsley james.hors...@gmail.com a écrit : I read Alexis's email too hastily and hadn't noted he was asking about nested complex types. I'll add some tests to see how it behaves. I'll be interested to dig into what AutoBean's behaviour is here as that's what I based on, mimicked, and leveraged for this patch. On 25 May 2012 19:38, t.bro...@gmail.com wrote: On 2012/05/25 17:09:32, james.horsley wrote: I added tests for complex keys and complex values which're passing so it should do yes. I don't see any change to addPathsToResolution... Also, how would it work? Say I have a MapA,B, A has a reference c to a proxy C, and B has a reference d to a proxy D. What should I pass to Request#with() to get the Ds of B without the Cs of A? with(theMap.d) ? Now what if A and B both have a property e referencing a proxy E, I want B's Es but not A's Es, with(theMap.e) wouldn't work here. I think maybe there should be special subproperties keys and values, so one can say: with(myMap.keys.c, myMap.values.d, myMap.values.e) to get A's Cs, and B's Ds and Es (without A's Es!) http://codereview.appspot.com/**6132056/http://codereview.appspot.com/6132056/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: MeniItem should use ScheduledCommand instead of Command (issue1698803)
This seems to tick apicheck in the wrong way: $ ant apicheck ... apicheck-nobuild: [java] Found 38 new resources [java] Found 38 new resources [java] com.google.gwt.user.client.ui.MenuBar::addItem(Lcom/google/gwt/safehtml/shared/SafeHtml;Lcom/google/gwt/user/client/Command;) OVERRIDABLE_METHOD_ARGUMENT_TYPE_CHANGE at position 1 from interface com.google.gwt.user.client.Command to interface com.google.gwt.core.client.Scheduler.ScheduledCommand [java] com.google.gwt.user.client.ui.MenuBar::addItem(Ljava/lang/String;Lcom/google/gwt/user/client/Command;) OVERRIDABLE_METHOD_ARGUMENT_TYPE_CHANGE at position 1 from interface com.google.gwt.user.client.Command to interface com.google.gwt.core.client.Scheduler.ScheduledCommand [java] com.google.gwt.user.client.ui.MenuBar::addItem(Ljava/lang/String;ZLcom/google/gwt/user/client/Command;) OVERRIDABLE_METHOD_ARGUMENT_TYPE_CHANGE at position 2 from interface com.google.gwt.user.client.Command to interface com.google.gwt.core.client.Scheduler.ScheduledCommand [java] com.google.gwt.user.client.ui.MenuItem::getCommand() OVERRIDABLE_METHOD_RETURN_TYPE_CHANGE from interface com.google.gwt.user.client.Command to interface com.google.gwt.core.client.Scheduler.ScheduledCommand [java] com.google.gwt.user.client.ui.MenuItem::setCommand(Lcom/google/gwt/user/client/Command;) OVERRIDABLE_METHOD_ARGUMENT_TYPE_CHANGE at position 0 from interface com.google.gwt.user.client.Command to interface com.google.gwt.core.client.Scheduler.ScheduledCommand [java] API compatibility check FAILED BUILD FAILED /usr/local/google/users/rchandia/src/gwt-trunk_Piper/google3/third_party/java_src/gwt/svn/trunk/build.xml:189: Java returned: 1 http://gwt-code-reviews.appspot.com/1698803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] RenderablePanel should use ScheduledCommand instead of Command (issue1728803)
Reviewers: rdayal, Description: RenderablePanel should use ScheduledCommand instead of Command Resubmission of issue 1693804 Thanks Patrick! Please review this at http://gwt-code-reviews.appspot.com/1728803/ Affected files: M user/src/com/google/gwt/user/client/ui/RenderablePanel.java Index: user/src/com/google/gwt/user/client/ui/RenderablePanel.java === --- user/src/com/google/gwt/user/client/ui/RenderablePanel.java (revision 10982) +++ user/src/com/google/gwt/user/client/ui/RenderablePanel.java (working copy) @@ -15,12 +15,12 @@ */ package com.google.gwt.user.client.ui; +import com.google.gwt.core.client.Scheduler.ScheduledCommand; import com.google.gwt.dom.builder.shared.HtmlElementBuilder; import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Element; import com.google.gwt.safehtml.shared.SafeHtml; import com.google.gwt.safehtml.shared.SafeHtmlBuilder; -import com.google.gwt.user.client.Command; /** * EXPERIMENTAL and subject to change. Do not use this in production code. @@ -50,8 +50,8 @@ // TODO(rdcastro): Add setters for these, or maybe have a list instead of a // single callback. - public Command wrapInitializationCallback = null; - public Command detachedInitializationCallback = null; + public ScheduledCommand wrapInitializationCallback = null; + public ScheduledCommand detachedInitializationCallback = null; protected SafeHtml html = null; -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: RenderablePanel should use ScheduledCommand instead of Command (issue1693804)
LGTM Reposting as http://gwt-code-reviews.appspot.com/1728803 http://gwt-code-reviews.appspot.com/1693804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Move Super Dev Mode to the open source repository. (issue1727804)
Reviewers: cromwellian, Description: Move Super Dev Mode to the open source repository. Includes a simple demo target that works with the Hello sample app. I've also made some linker options configurable, as necessary to make this work. Review by: cromwell...@google.com Please review this at http://gwt-code-reviews.appspot.com/1727804/ Affected files: A dev/codeserver/BUILD A dev/codeserver/build.xml A dev/codeserver/java/com/google/gwt/dev/codeserver/AppSpace.java A dev/codeserver/java/com/google/gwt/dev/codeserver/CodeServer.java A dev/codeserver/java/com/google/gwt/dev/codeserver/CompileDir.java A dev/codeserver/java/com/google/gwt/dev/codeserver/CompilerOptionsImpl.java A dev/codeserver/java/com/google/gwt/dev/codeserver/ModuleState.java A dev/codeserver/java/com/google/gwt/dev/codeserver/Modules.java A dev/codeserver/java/com/google/gwt/dev/codeserver/Options.java A dev/codeserver/java/com/google/gwt/dev/codeserver/Recompiler.java A dev/codeserver/java/com/google/gwt/dev/codeserver/SourceHandler.java A dev/codeserver/java/com/google/gwt/dev/codeserver/UnmodifiableCompilerOptions.java A dev/codeserver/java/com/google/gwt/dev/codeserver/WebServer.java A dev/codeserver/java/com/google/gwt/dev/codeserver/computeScriptBase.js A dev/codeserver/java/com/google/gwt/dev/codeserver/dev_mode_on.js A dev/codeserver/java/com/google/gwt/dev/codeserver/frontpage.html A dev/codeserver/java/com/google/gwt/dev/codeserver/modulepage.html M dev/core/src/com/google/gwt/core/linker/CrossSiteIframeLinker.java M samples/hello/src/com/google/gwt/sample/hello/Hello.gwt.xml M user/src/com/google/gwt/core/CrossSiteIframeLinker.gwt.xml -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: RenderablePanel should use ScheduledCommand instead of Command (issue1693804)
Submitted as r11010. http://gwt-code-reviews.appspot.com/1693804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] PopupImplMozilla should not use DeferredCommand (issue1729803)
Reviewers: rdayal, Description: PopupImplMozilla should not use DeferredCommand Repost of issue 1696803. Thanks Patrick! Please review this at http://gwt-code-reviews.appspot.com/1729803/ Affected files: M user/src/com/google/gwt/user/client/ui/impl/PopupImplMozilla.java Index: user/src/com/google/gwt/user/client/ui/impl/PopupImplMozilla.java === --- user/src/com/google/gwt/user/client/ui/impl/PopupImplMozilla.java (revision 10982) +++ user/src/com/google/gwt/user/client/ui/impl/PopupImplMozilla.java (working copy) @@ -15,12 +15,12 @@ */ package com.google.gwt.user.client.ui.impl; +import com.google.gwt.core.client.Scheduler; +import com.google.gwt.core.client.Scheduler.ScheduledCommand; import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.Style.Display; import com.google.gwt.dom.client.Style.Overflow; -import com.google.gwt.user.client.Command; import com.google.gwt.user.client.DOM; -import com.google.gwt.user.client.DeferredCommand; /** * Implementation class used by {@link com.google.gwt.user.client.ui.PopupPanel}. @@ -99,7 +99,7 @@ // 'overflow:auto' after all of the elements on the page have been // rendered, // the PopupPanel becomes the highest element in the stacking order. - DeferredCommand.addCommand(new Command() { + Scheduler.get().scheduleDeferred(new ScheduledCommand() { public void execute() { outerElem.getStyle().setOverflow(Overflow.AUTO); } @@ -125,4 +125,4 @@ popup.getStyle().setDisplay(Display.NONE); popup.getStyle().clearDisplay(); } -} +} \ No newline at end of file -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: PopupImplMozilla should not use DeferredCommand (issue1696803)
LGTM Reposting at http://gwt-code-reviews.appspot.com/1729803 http://gwt-code-reviews.appspot.com/1696803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: PopupImplMozilla should not use DeferredCommand (issue1696803)
Submitted as r11011 http://gwt-code-reviews.appspot.com/1696803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: PopupImplMozilla should not use DeferredCommand (issue1729803)
Submitted as r11011 http://gwt-code-reviews.appspot.com/1729803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] JsonpRequest should not use DeferredCommand (issue1725804)
Reviewers: rdayal, Description: JsonpRequest should not use DeferredCommand Repost of 1694804 Thanks Patrick! Please review this at http://gwt-code-reviews.appspot.com/1725804/ Affected files: M user/src/com/google/gwt/jsonp/client/JsonpRequest.java Index: user/src/com/google/gwt/jsonp/client/JsonpRequest.java === --- user/src/com/google/gwt/jsonp/client/JsonpRequest.java (revision 10982) +++ user/src/com/google/gwt/jsonp/client/JsonpRequest.java (working copy) @@ -16,11 +16,11 @@ package com.google.gwt.jsonp.client; import com.google.gwt.core.client.JavaScriptObject; +import com.google.gwt.core.client.Scheduler; +import com.google.gwt.core.client.Scheduler.ScheduledCommand; import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Node; import com.google.gwt.dom.client.ScriptElement; -import com.google.gwt.user.client.Command; -import com.google.gwt.user.client.DeferredCommand; import com.google.gwt.user.client.Timer; import com.google.gwt.user.client.rpc.AsyncCallback; @@ -319,7 +319,7 @@ * scope of the script itself. Therefore, we need to defer the delete * statement after the callback execution. */ -DeferredCommand.addCommand(new Command() { +Scheduler.get().scheduleDeferred(new ScheduledCommand() { public void execute() { if (!canHaveMultipleRequestsForSameId) { // If there can me multiple requests for a particular ID, then we -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: JsonpRequest should not use DeferredCommand (issue1694804)
LGTM Reposting at http://gwt-code-reviews.appspot.com/1725804 http://gwt-code-reviews.appspot.com/1694804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: JsonpRequest should not use DeferredCommand (issue1694804)
Submitted as r11012 http://gwt-code-reviews.appspot.com/1694804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: JsonpRequest should not use DeferredCommand (issue1725804)
Submitted as r11012 http://gwt-code-reviews.appspot.com/1725804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Move Super Dev Mode to the open source repository. (issue1727804)
LGTM, I didn't review the Java files because I assume they are mostly unchanged since the last time. http://gwt-code-reviews.appspot.com/1727804/diff/1/dev/codeserver/BUILD File dev/codeserver/BUILD (right): http://gwt-code-reviews.appspot.com/1727804/diff/1/dev/codeserver/BUILD#newcode1 dev/codeserver/BUILD:1: # Copyright 2012 Google Inc. All rights reserved. Do we really want the BUILD file in the public repo? http://gwt-code-reviews.appspot.com/1727804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: MeniItem should use ScheduledCommand instead of Command (issue1698803)
Correct, this is a breaking change but should not cause much commotion. Currently, Command is an extension of ScheduledCommand, that should eventually be deprecated and removed from the API. It was changed to this in order to ease the transition from DeferredCommand to Scheduler. The interface change will allow both ScheduledCommands and Commands to be used, making MenuItem more flexible. Anyone passing in a command will not be affected. Anyone retrieving the command to store in a variable that is a Command, will have to cast or change the result to a ScheduledCommand. Is this acceptable, or should I modify the patch? http://gwt-code-reviews.appspot.com/1698803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors