get scroll event from iframe
there seems to be no way in GWT to get the iframe scrollEvent. I tried (com.google.gwt.dom.client.IFrameElement)frame.addDomHandler(newScrollHandler() { @Override public void onScroll(ScrollEvent event) { // do something } }, ScrollEvent.getType()); but the event does not fire when scrolling inside the iframe, you can get Document document = iframe.getContentDocument(); but it does not have methods for adding listeners. there is no method for returning the contentWindow like in javascript. any one knows any way to get the iframe scroll event? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: drag and drop group
based on html5 spec, the way to disallow a drop is to return true inside dragover function dragOver(ev) { return true; } but in GWT, the dragover hander has a void return type. there is no way to return anything. panel1.addBitlessDomHandler(new DragOverHandler() { @Override public void onDragOver(DragOverEvent event) { // can not return anything. } }, DragOverEvent.getType()); It is quite possible, GWT implementation simply messed this one up. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: drag and drop group
conceptually, of course that is what you want to do. I tried disallow the drop from inside the onDragEnter and onDragOver events, but don't see any api to set the drag icon to disabled mode. I played with event.getDataTransfer().setDragImage(...), but it has no effect. On Wednesday, May 22, 2013 3:45:39 AM UTC-7, Jens wrote: Haven't used GWT Drag and Drop yet but can't you just skip the code in your drag or drop handler if your group condition isn't true? -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: drag and drop group
you mean no body has done this before? On Thursday, May 16, 2013 11:23:02 AM UTC-7, bhomass wrote: I have been using GWT native Dnd successfully. Now I have a need to create Dnd group. This means if Widget A and panel B are in the same group, I want to allow user to drag A into B. C and D forms another group. So, A can not be dropped onto D, only C can. and likewise, C can not be dropped into B. Anyone knows how to implement this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
drag and drop group
I have been using GWT native Dnd successfully. Now I have a need to create Dnd group. This means if Widget A and panel B are in the same group, I want to allow user to drag A into B. C and D forms another group. So, A can not be dropped onto D, only C can. and likewise, C can not be dropped into B. Anyone knows how to implement this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
any one tried GWT with SPDY?
do you still leave the RPC mechanism exception implement SPDY somehow? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
datePicker show current date after setValue
I called setValue(dueDate) on the datePicker. it apparently sets the new date value ok, but does not reload the calendar page of the new date. It stays on the page with today's date. which method do I use to get it to update its page to show the current date? -- 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/-/xT-iR4nGVL4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: datePicker show current date after setValue
ha, that's an easy one. maybe that's why gwt team never bothered with a method to do it. I still think a parameter setting is a better idea. thanks! On Friday, January 4, 2013 6:38:05 AM UTC-8, Thomas Broyer wrote: setCurrentMonthhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/datepicker/client/DatePicker.html#setCurrentMonth(java.util.Date) ? On Friday, January 4, 2013 9:01:12 AM UTC+1, bhomass wrote: I called setValue(dueDate) on the datePicker. it apparently sets the new date value ok, but does not reload the calendar page of the new date. It stays on the page with today's date. which method do I use to get it to update its page to show the current date? -- 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/-/nX4Aqdmk3DUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
LI element with a clickhandler
I read up on this post https://groups.google.com/forum/?fromgroups=#!topic/Google-Web-Toolkit/Zg5XQc9aCaI for the whole day I am stuck on this issue, this article seems right on the topic, but the code was abbreviated to the point I can not get it working. class MyList extends Widget implements HasClickHandlers { public MyList() { // TODO: build your DOM tree here setElement(ulElement); } public HandlerRegistration addClickHandler(ClickHandler handler) { addDomHandler(handler, ClickEvent.getType()); } // Helper method, not strictly necessary but very helpful // You could either return a LIElement or the index of the item in the list as an int public int getItemFromEvent(DomEvent? event) { // TODO: see my previous message about how to implement it // see also the code for HTMLTable.getCellForEvent } } so where do I actually add the clickhandler? I tried this.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { int a = 0; } }); the compiler does not complain but this handler does not respond to mouse clicks. I tried anchorLink.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { int a = 0; } }); where anchorLink is an anchorElement, the compiler complains addClickHandler is not a method of anchorLink. Can someone help me complete the posted sample code. -- 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/-/2CaQ-KByHl0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: can not get multiple matches using regex
in that case, what is the point of matchResult.getGroupCount()? it is always 1. -- 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/-/CKHqfZJu3NMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
tie css to a global class
I know how to declare .css and .html for a local template. but sometimes, you need to cascade a css statement to from one higher up. For example, if you have a class .small-widget in one template, which must behave a certain way if you declare .scroll-mode in the body element. .scroll-mode .small-widget { font: .; } You wouldn't want to declare .scroll-mode in your local template style interface, because the class name would no longer match that declared in the body element. How to accomplish 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/-/N86qQu2jT9AJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
can not get multiple matches using regex
I am using GWT Regex RegExp regExp = RegExp.compile(\\b + searchWord + \\b, gi); MatchResult matcher = regExp.exec(input); this only returns the first match. why is that? I already set the global option. any one knows how to get multiple match return? -- 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/-/WqWI381-Id4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: preview in case of iframe
thanks, I figured as much. The two documents are independent DOM structures and while the preview is global, it is only global within one DOM structure. I got what I want w/o preview, using *addDomHandler. **as long as you have the handle to components in both frames, this works quite fine.* * * -- 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/-/cTnkUh9OZYwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
preview in case of iframe
I have been struggling with this for the whole day and can't crack the nut. I know how things work when you call Event.addNativePreviewHandler(handler) to trigger event preview. The preview is meant to be a global concept so that anything events happening else where would get previewed. However, if an iframe is added into the picture, the previewer is apparently not so global. things happening inside the iframe does not trigger DOM.preview(evt), and therefore does not get previewed. I suppose this makes sense, that the iframe has an independent DOM structure from the parent. Does any one know of a way to bridge the two so that the two parts together still behaves truly in a GLOBAL way? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
slow passing json back
I have been carefully studying my code to see what is taking so long to load a page. It turns out it took 4.5 secs to pass back 19k characters (in javascript) using the gwt rpc. Is this considered an enormous amount of javascript code? anything I can do to speed up the transmission? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
classloader can not load class from annotation
I am integrating a mvp4g into java Play. I am running into an unexpected error, related to Thread based context classloader. When the code gets to TypeOracleMediator, line 750 in the resolveAnnotationValue method, try { return Class.forName(valueType.getClassName(), false, Thread.currentThread().getContextClassLoader()); } catch (ClassNotFoundException e) { logger.log(TreeLogger.ERROR, Annotation error: cannot resolve + valueType.getClassName(), e); return null; } } I get a ClassNotFoundException. I double checked the returned classloader and verified that the classpath does not include the project classes directory. How can I fix this problem? I don't see a way to add a classpath into the classloader (it is a subclass or URLClassLoader). Should I simply create a new URLClassLoader with the classes dir added as an url path? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
TypeOracleMediator help
I am using java Play with mvp4g and found out they don't work together. neither group is able to provide help, because each one is unfamiliar with the other. I think the GWT group is best equipped to provide some insight into this, because it has to do with TypeOracleMediator's use of Thread based ContextClassLoader. Let's try this wo getting into Play too much. Play has the ability to incorporate different modules. One of these modules contributed by an author is the gwt module. I tested out two projects, with and wo the use of Play. case 1, wo Play, the code processes right thru and found presenter and views represented using mvp4g annotation. the relevant code in gwt2.4 is TypeOracleMediator line 750, inside resolveAnnotationValue() method try { return Class.forName(valueType.getClassName(), false, Thread.currentThread().getContextClassLoader()); } catch (ClassNotFoundException e) { logger.log(TreeLogger.ERROR, Annotation error: cannot resolve + valueType.getClassName(), e); return null; } so, wo Play framework, this call resolves a presenter or view class and returns a good value. case 2. same code with Play framework, the call ends with ClassNotFoundException and returns null. I checked in both cases, the thread is a daemon thread tie to the browser request. Why should there be such a difference? anyone has an idea how to proceed? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
play fails to compile after injecting mvp4g
I have used mvp4g successfully before. Now I am trying to get it to work inside Play. There is no compilation error inside eclipse, but fails either when I run it or compiling it. the error dump is long, here is a partial listing java.lang.ClassNotFoundException: client.presenter.UserCreatePresenter at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(Ty peOracleMediator.java:727) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(Ty peOracleMediator.java:666) at com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOrac leMediator.java:469) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOra cleMediator.java:625) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOr acleMediator.java:640) at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethod(TypeOracleM ediator.java:980) at com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMe diator.java:839) at com.google.gwt.dev.javac.TypeOracleMediator.addNewTypes(TypeOracleMed iator.java:411) at com.google.gwt.dev.javac.TypeOracleMediatorFromSource.addNewUnits(Typ eOracleMediatorFromSource.java:54) at com.google.gwt.dev.javac.CompilationState.assimilateUnits(Compilation State.java:165) at com.google.gwt.dev.javac.CompilationState.init(CompilationState.jav a:82) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(Compilat ionStateBuilder.java:392) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(Compilatio nStateBuilder.java:275) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:3 25) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 512) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 495) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 407) at com.google.gwt.dev.Compiler.run(Compiler.java:215) at com.google.gwt.dev.Compiler.run(Compiler.java:187) at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(Compile TaskRunner.java:81) at com.google.gwt.dev.Compiler.main(Compiler.java:166) [ERROR] Annotation error: expected class java.lang.Class, got null Resolving client.presenter.RootPresenter Found type 'client.presenter.RootPresenter' [ERROR] Annotation error: cannot resolve client.view.RootView java.lang.ClassNotFoundException: client.view.RootView at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(Ty peOracleMediator.java:727) at com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOrac leMediator.java:469) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOra cleMediator.java:625) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOr acleMediator.java:640) at com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMe diator.java:786) at com.google.gwt.dev.javac.TypeOracleMediator.addNewTypes(TypeOracleMed iator.java:411) at com.google.gwt.dev.javac.TypeOracleMediatorFromSource.addNewUnits(Typ eOracleMediatorFromSource.java:54) at com.google.gwt.dev.javac.CompilationState.assimilateUnits(Compilation State.java:165) at com.google.gwt.dev.javac.CompilationState.init(CompilationState.jav a:82) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(Compilat ionStateBuilder.java:392) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(Compilatio nStateBuilder.java:275) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:3 25) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 512) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 495) at
spurious blur event after update to 2.3
I used the CellEditor.startEdit() feature on a tab header. after upgrade to GWT 2.3, I am getting unexplained blur events which continuous stops editing. for example, right after I start edit mode (by double clicking the header), there is a blur event. I used the code to ignore that. then after every key stroke, another blur event, there are others whose origin is not at all clear. Any one knows what could be causing this and how to prevent 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.
mvp complex model
usually, the model in mvp is the DTO, in case the model is complex, for example, when the validation of user input is elaborate, do you put the validation methods in the DTO, or the presenter, or another group of dedicated model behavior classes? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 compilation to javascript
In pure javascript, an instance of a object does not repeat the function code, in the same way java is. when gwt compiles java into javascript, is the same efficiency built into the javascript? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
$doc.body.createTextRange
I know there is a javascript function for document.body.createTextRange( ) when I try $doc.body.createTextRange() in a native method in GWT, it says body.createTextRange is not a function why is that? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
deserialization error when DTO is nested
I have a composite pattern DTO, where an DTO instance may contain a child list of the same type. first this app runs fine when in hosted mode, but get deserialization error when in deployed mode using tomcat. I can leave the nested structure in the DTO class as long as I don't actually populate the child list. but as soon as I populate the child list the deserialization error shows up. again, works find in hosted mode, fails in deployed mode if child list is populated. I did a thorough search on the web, no one reported a similar problem. and I made absolutely sure I have a zero argument constructor. any ideas from any one? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: remove old javascript file
I understand that. assuming you are calling the module.nocache.js the bootstrap code. my last question is HOW to make it not cacheable. I know about using meta tag to mark a page uncacheable, but how do you make one .js uncacheable? On Jul 21, 6:48 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, the bootstrap code should never be cached. Assume you are deploying a new version. The bootstrap code refers the browser/locale specific JS using an own strong name. If you cache the bootstrap file, it may happen that old bootstrap code refers to old strong named file which are no more existing. Stefan Bachert http::/gwtworld.de due to recent cases, I am sorry, I won't do free personal support. inquiries for professional GWT support are welcome. On 20 Jul., 23:13, bhomass bhom...@gmail.com wrote: I found a number of conflicting comments concerning this. And, even if they are in sync, I have questions on how to set cache control. 1. you stated - *Never Cache* - The bootstrap module- name.nocache.js, and your host html/jsp page falls under this category. The browser should never cache. but the first reference above says (2) Changing occasionally (public / equal for all users) Examples: index.html, mymodule.nocache.js which sounds like you should cache for short time. I am unsure how I would set the cache control for the module.nocache.js. The js file is cotained in the app.hmtl. do I set meta http-equiv=Cache-Control content=no-store in the header of that page? should I use no-store or no-cache? 2. you stated - *Cache for sometime* - Every other file falls under this category. In general, you should use ClientBundle so that files don't end in this category. GWT generated js/html files will never come under this category. You can choose to set an expires header ranging from a few hours to a few days, depending on how frequently you change your code. I can be sure whether you are saying to use client bundle so that nothing ever get cached for sometime. if so, why do you also specify set an expires header ranging from a few hours to a few days? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: remove old javascript file
I found a number of conflicting comments concerning this. And, even if they are in sync, I have questions on how to set cache control. 1. you stated - *Never Cache* - The bootstrap module- name.nocache.js, and your host html/jsp page falls under this category. The browser should never cache. but the first reference above says (2) Changing occasionally (public / equal for all users) Examples: index.html, mymodule.nocache.js which sounds like you should cache for short time. I am unsure how I would set the cache control for the module.nocache.js. The js file is cotained in the app.hmtl. do I set meta http-equiv=Cache-Control content=no-store in the header of that page? should I use no-store or no-cache? 2. you stated - *Cache for sometime* - Every other file falls under this category. In general, you should use ClientBundle so that files don't end in this category. GWT generated js/html files will never come under this category. You can choose to set an expires header ranging from a few hours to a few days, depending on how frequently you change your code. I can be sure whether you are saying to use client bundle so that nothing ever get cached for sometime. if so, why do you also specify set an expires header ranging from a few hours to a few days? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: remove old javascript file
I don't understand something. according to you, none of the generated js would fall under cache for sometimes. That means all the js files except nocache.js would be cached forever. and GWT takes care that new file names will be generated when this type filed change. By this logic, there could never be any stale js problem. yet, I see in repeated cases, where someone's browser displays old app design, and clearing browser cache brings up the latest. How can that be? On Jun 26, 6:44 pm, André Severo Meira andrex1...@gmail.com wrote: Nice! 2010/6/26 bhomass bhom...@gmail.com do you mean to set a limited cache lifetime or to not cache at all? I do normally want the javascript files to be cached for performance purposes. On Jun 17, 10:02 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: No, you can't do that. But if you set appropriate cache headers, there is never a need to delete old files. --Sri On 18 June 2010 06:10, bhomass bhom...@gmail.com wrote: is there any way to programmatically get user browser to delete all its cached javascript files in order to push down new ones? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
call average inside eval()
I am using a native method to call eval() on a valid javascript statement. private String[] evalscript(String javascript, String format){ return evalJavascript(javascript, format).toString().split(,); } private native Object evalJavascript(String javascript, String format)/*-{ result = eval(javascript); return result; } This works generally. But I also need to use custom javascript functions like average()l function average() { var items = average.arguments.length var sum = 0 for (i = 0; i items;i++) { sum += average.arguments[i] } return (sum/items) } I can put this average() as another native method inside the same class. but I can't figure out how to get eval to look it up. do I have to spell out the whole gwt naming convention th...@myclass::average()(); ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: remove old javascript file
do you mean to set a limited cache lifetime or to not cache at all? I do normally want the javascript files to be cached for performance purposes. On Jun 17, 10:02 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: No, you can't do that. But if you set appropriate cache headers, there is never a need to delete old files. --Sri On 18 June 2010 06:10, bhomass bhom...@gmail.com wrote: is there any way to programmatically get user browser to delete all its cached javascript files in order to push down new ones? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
remove old javascript file
is there any way to programmatically get user browser to delete all its cached javascript files in order to push down new ones? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: invalid httpsession from getThreadLocalRequest
from a browser. it worked for me all along too. but all of a sudden this problems started. and when I resubmit by pressing the bottom again, the same program works. I am wondering if there is some tricky timing problem that someone has seen before. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
invalid httpsession from getThreadLocalRequest
when I use getThreadLocalRequest().getSession() in a servlet implementation to handle rpc, I get a IllegalStateException when I call httpsession.setAttribute(...) anyone knows why? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: invalid httpsession from getThreadLocalRequest
I am not running on the appengine, just my eclipse IDE. anything I have to do for that? On Feb 25, 8:15 pm, gao zhenyu program.c...@gmail.com wrote: you need add sessions-enabledtrue/sessions-enabled to yourappengine-web.xml file in WEB-INF directory. look this:http://code.google.com/appengine/docs/java/config/appconfig.html#Enab... 2010/2/26 bhomass bhom...@gmail.com when I use getThreadLocalRequest().getSession() in a servlet implementation to handle rpc, I get a IllegalStateException when I call httpsession.setAttribute(...) anyone knows why? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
custom runtime exception got translated to StatusCodeException
I got my server side code to throw custom exceptions for a long time and have a lot of working code to copy from. this time, I throw a ExpiredSessionException, it got translated to StatusCodeException. and on the client side, caught.getMessage() is this huge html fragment, starting with Http Error: 500. the whole message is too big to display in the error dialog and is unsuitable for users. the only difference I can detect is 1. the ExpiredSessionException is not a declared exception, 2. it is throw during the service() call, instead of in one the rpc methods. I am not sure what is the cause for loosing my original Exception. how can I get gwt to throw my own exception and not the StatusCodeException? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
service implementation for GWT best practice
On Ray Ryan's presentation, there is no sample code for implementation of the ContactsService. The code structure would look something like public class ContactsServiceImpl implements RTSService { @Override public T extends Response T execute(ActionT action) { // TODO Auto-generated method stub return null; } } I am wondering how do you use one execute to implement server side functions for all the possible actions? do you use a factory method to identify the action class and send the request off to different utility classes to process? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Convenience callback method
I am trying out the rpc structure given in the seminar. I get an error 20:42:08.171 [ERROR] [rts] com.jcalc.webclient.client.spreadsheet.rpc.action.GetRecords is not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' or 'java.io.Serializable' nor does it have a custom field serializer (reached via com.jcalc.webclient.client.rpc.ActionT) 20:42:08.187 [ERROR] [rts] Deferred binding failed for 'com.jcalc.webclient.client.spreadsheet.rpc.RecordService'; expect subsequent failures any one else seen this type of error? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Convenience callback method
I think I found what I was looking for abstract class GotDetails implements AsyncCallbackGetDetailsResponse { public void onFailure(Throwable oops) { /* default appwide failure handling */ } public void onSuccess(GetDetailsResponse result) { got(result.getDetails()); } public abstract void got(ArrayListContactDetail details); } got() was called inside onSuccess() Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Convenience callback method
Sri thanks for the pointer. the article lays out the project structure with all the classes, but I don't see where you can download the code. Is that intended? or do we only have the fragments on the page? in which case, why the project structure? Bruce -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Convenience callback method
could some one point out an avenue for finding answers to this question. I am sure if google is provide these design guides, they should have communication channels for Q/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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Convenience callback method
I went thru Ray Ryan's talk on Best Practice for Arch. GWT App. I am not able to figure how and who eventually called the convenience method new GotDetails(){ public void got(ArrayListConteactDetails details){ render... } } can someone who followed the talk shed some lights? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
overcome native browser behavior to ensure visible when focused
I have a conflicting behavior in an editable grid. when I have focus on a editable cell, I may need to scroll away to another cell and come back, but I don't want the editing cell to loose focus. So I captured the onBlur event and force the cell to remain in focus. But when I call the focus() method on the cell's text field, the browser forces the grid view to scroll back and display that editing cell. is there any way to defeat this browser behavior? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: event for detecting DOM.createElement() is completed
createElement is synchronous/blocking; it doesn't return before completion, so there's no need for an event. You might need to attach the widget (or at least its element) to the document though to have its size computed so you can later adjust it. I attached the new Element to its container using appendChild (newElement) and checked for its height right afterwards, but the height is always 0. I used newElement.getClientHeight(), is that correct? does the layout happen right after the appendChild()? or is there a way to detect when the layout is completed? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
multiple criteria for selector
I am using the gwt css selector fly((com.google.gwt.user.client.Element) parentElement).select (attachedSelector); where attachedSelector right now is attached, attachedMaster, attachedTemplate what I want to get is the elements with any of the above classnames. But none was returned. I also tried with the comma in between, same null result. what is the right way to select among multiple css class names? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
event for detecting DOM.createElement() is completed
I need to know when a widget is finished rendering in order to adjust its size. I see a javascript method element.addEventListener(eventType, handler, capture); can someone tell me what eventType I can use to detect the completion of DOM.createElement()? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
instanceof Element check fails in FF
I have this statement NodeListNode childNodes = tdElement.getChildNodes(); for (int i=0; ichildNodes.getLength(); i++){ Node childNode = childNodes.getItem(i); if (childNode instanceof Element !#text.equals (childNode.getNodeName())){ dosomething(); } } but the #text nodes get thru the if (childNode instanceof Element) check. I have to add if (childNode instanceof Element !#text.equals (childNode.getNodeName()) to fix it. I am sure #text is not an element, and this problem does not occur in IE, only in FF. anyone else knows about this anomaly? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.
Re: float exception message to client fix does not work
I apologize. It works. the mistake was else where. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
float exception message to client fix does not work
I tried technique stated in http://astithas.blogspot.com/2007/08/case-of-disappeared-exception-message.html but it does not work. I still get the same old see server log for details. any one with experience on 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 -~--~~~~--~~--~--~---
change css rules dynamically
I found there is a way to change css rules using javascript. http://twelvestone.com/forum_thread/view/31411. is there a way to do this using gwt? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
TextBoxImpl, find cursor position when clicking inside a selection range
when using a TextBoxImpl, you can get the cursor position and selection length correctly, except when you highlight some text, then click inside the highlighted area. In which case you consistently get cursor position of 0. this means, there is no way to programmatically determine where the cursor is any more, even though visually the cursor lands right where you last clicked (in the middle of the previously selected text range). any one have any solutions to this problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email 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: float error message to client via InvocationException
I am really surprised there is no taker for this posting. I thought this would be a real common 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 -~--~~~~--~~--~--~---
float error message to client via InvocationException
I tried to display the server exception message on the client using throw new InvocationException(ex.getMessage()); but, on the client, it always come out as check the server log! How do I get the client side to display the real server exception message? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Something other than a Java object was returned from JSNI method when getting colspan
I have some very simple code String colspan = tdElement.getAttribute(colspan); it continually crash with Something other than a Java object was returned from JSNI method. also crashes with rowspan, but ok with some other attribute like id when I get its parent tr, then getting colspan and rowspan is no problem. this is on IE6. is this a known 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: Something other than a Java object was returned from JSNI method when getting colspan
I already try the fix public final native String getAttribute(Element element, String name) /*-{ return element.getAttribute(name, 2)|| ; }-*/; but the same exception. did I do something wrong in doing the fix? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
write html into a text field
I have the need to store content which is actual valid html text. and I am inputting such text using text fields written in GWT. It seems GWT is not able to distinguish what is literal text and what is in the original page content. after I enter a html fragment like table into the text field, the page layout becomes distorted. the browser started to interpret my content as though it is part of the html page. how are you suppose to capture valid html text into a form field? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
can sink key events on canvas
I am able to get context menu and mouse events but not key events from gwt canvas. anyone know why? sinkEvents(Event.ONCONTEXTMENU | Event.MOUSEEVENTS | Event.KEYEVENTS); public void onBrowserEvent(Event event) { System.out.println(event +event.getType()); if (DOM.eventGetType(event) == Event.ONCONTEXTMENU) { // this works } else if (DOM.eventGetType(event) == Event.ONKEYPRESS) { // never get anything } else { super.onBrowserEvent(event); // get all the mouse events } } I also tried sinking Event.ONKEYPRESS. same result. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: dom manipulation works in IE but not in FF
having some text nodes aren't so bad. the thing is after reading two text nodes, it does not see the table node at all. why should that be? for supplementary information, this is GWT 1.5.3 and I am talking about deployed mode. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
om.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser.
suddenly I get this error on deployment. everything works fine running out of eclipse. it also says (Could not locate requested method 'registerProject(java.lang.String, java.lang.String)' in interface 'com.jcalc.webclient.client.RegisterProjectService' ). I checked out that interface, there is nothing wrong. how do you go about debugging this error? I did add gwt-log since last deployment. can that cause this error? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: dom manipulation works in IE but not in FF
it fails for both of the form nodes in this doc. will you mind try it out in FF like you did before? you get two #text nodes when you do formelement.getChildNodes(), where the right answer is one table element. TABLE border=0 cellpadding=0 cellspacing=0 height=100% width=100% TBODY TR TD align=left cellpadding=0 cellspacing=0 valign=top width=600 LINK href=stylesheet.css rel=stylesheet / !-- SCRIPT language=javascript src=checkjs.js/-- BR/ table tr td FORM id=TopSalesSearchForm TABLE align=center border=0 cellpadding=0 cellspacing=0 width=98% TBODY TR TD width=40 IMG height=35 src=images/searchprefix.gif width=36 / /TD TD background=images/searchbg.gif class=font3 width=100% sales number:INPUT class=unnamed1 name=searchName /INPUT class=button name=search onclick=submitMe('search');return false; type=submit value=Submit Query / /TD /TR /TBODY /TABLE /FORM / td /tr tr td FORM id=EditSalesForm TABLE align=center border=0 cellpadding=4 cellspacing=1 class=t2 width=98% TBODY TR class=t3 height=27 TD width=30 Seq Number /TD TD align=middle width=40 Serial Number /TD TD align=middle width=130 Created On /TD TD align=middle width=130 Client /TD TD align=middle width=200 Created By /TD TD align=middle width=50 Spec /TD TD align=middle width=50 Total Units /TD TD align=middle width=100 Apparent Total /TD TD align=middle width=100 Grand Total /TD /TR TR class=t4 height=27 TD align=middle width=30 1 /TD TD align=middle width=40 A href=SaleItemView.doNP98787/A /TD TD align=middle width=130 Nicole Kidman /TD TD align=middle width=130 04-09-2008 /TD TD width=200 Good /TD TD align=middle width=50 65 /TD TD align=right width=50 $89.00 /TD TD align=right width=100 $4,800.00 /TD TD align=right width=100 $9,000.00 /TD /TR TR class=t1 height=27 TD align=middle width=30 2 /TD TD align=middle width=40 A href=SaleItemView.doHY90s/A /TD TD align=middle width=130 Woody Allen /TD TD align=middle width=130 3-23-2009 /TD TD width=200 Great /TD TD align=middle width=50 87 /TD TD align=right width=50 $29.00 /TD TD align=right width=100 $1,300.00 /TD TD align=right width=100 $4,030.00 /TD /TR TR class=t4 height=27 TD align=middle width=30 3 /TD TD align=middle width=40 A href=SaleItemView.doLO98d/A /TD TD align=middle width=130 Russell Crow /TD TD align=middle width=130 1-21-2004 /TD TD width=200 Nice /TD TD align=middle width=50 76 /TD TD align=right width=50 $32.00 /TD TD align=right width=100 $3,100.00 /TD TD align=right width=100 $6,120.00 /TD /TR /TBODY /TABLE /FORM / td /tr /table /TD /TR /TBODY /TABLE --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: dom manipulation works in IE but not in FF
this is one serious bug. no one knows anything about it? I checked it out using gwt-log. in FF, even though currentForm.getInnerHTML() returns the right element, currentForm.getChildNodes() returns two non-existent #text. is this a known problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
use of this inside native event handler
I know that when calling a java function inside a native function, you should add this. in the front. but if this is inside event handler, this. becomes the element who received the event, and there is this ambiguity. e.g. private native void addClickListener(Element imgElement)/*-{ imgElement.onclick = function() { this.style.border = '1px solid blue'; th...@com.jcalc.webclient.client.webpage.canvaseditor::highlight(Lcom/ google/gwt/user/client/Element;)(this); }; }-*/; as you can see, the first this. in this.style.border = '1px solid blue'; meant imgElement. but the next one in the line below is meant to refer the this java class. how would I refer to this class instance? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
dom manipulation works in IE but not in FF
I am doing an operation in which I remove a form but keep all its children. Element parent = (Element) currentForm.getParentElement(); NodeListNode formChildren = currentForm.getChildNodes(); // for (int i = 0; i formChildren.getLength(); i++) { parent.insertBefore(formChildren.getItem(i), currentForm); } parent.removeChild(currentForm); this code works in hosted browser. it works after compilation in IE, but failes in FF. FF removes the whole thing. there is nothing left after removing the form. how would one go about debugging something like this? is this a known cross browser problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
element.getStyle().setProperty(borderStyle, none); wipes out all style attributes
In my app, I need to dynamically set borders to some elements then remove them. to clear the border, I tried element.getStyle().setProperty(borderStyle, none); element.getStyle().setProperty(borderWidth, 0px); DOM.setStyleAttribute(element, borderWidth, 0px); it does clear the border, but also wipes out all other style attributes. for example, I have float:left inside some div's, and I meant to keep them. funny thing is when I add the border, DOM.setStyleAttribute(element, borderStyle, solid); DOM.setStyleAttribute(element, borderWidth, 1px); DOM.setStyleAttribute(element, borderColor, blue); it leaves the float setting alone, it is only when I remove the border, the float gets taken out. how can I do this right? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: element.getStyle().setProperty(borderStyle, none); wipes out all style attributes
not a problem. my dumb mistake! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
launch another browser instance
is there a way to click a button and launch another browser instance? I am not talking about the hosted mode browser. let's say the app is done and compiled. this can be done in native javascript. but is there a gwt api 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: launch another browser instance
I did window.open. it can load the url, but 1. carries over css from mother page 2. seems to be embedded inside the mother page, 3. not giving me the other browser features like menu, address box, etc. I want a real browser instance. Burce On Jun 22, 1:05 pm, gscholt gsch...@gmail.com wrote: On Jun 22, 8:29 pm, bhomass bhom...@gmail.com wrote: is there a way to click a button and launch another browser instance? I am not talking about the hosted mode browser. let's say the app is done and compiled. this can be done in native javascript. but is there a gwt api for this? Do you mean Window.open() ? Gert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: launch another browser instance
I did window.open. it can load the url, but 1. carries over css from mother page 2. seems to be embedded inside the mother page, 3. not giving me the other browser features like menu, address box, etc. I want a real browser instance. Burce On Jun 22, 1:05 pm, gscholt gsch...@gmail.com wrote: On Jun 22, 8:29 pm, bhomass bhom...@gmail.com wrote: is there a way to click a button and launch another browser instance? I am not talking about the hosted mode browser. let's say the app is done and compiled. this can be done in native javascript. but is there a gwt api for this? Do you mean Window.open() ? Gert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: $doc.selection is undefined in GWT
found the answer. FF uses $wnd.getSelection().getRangeAt(0) thanks for all the help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
detect browser window closing
which event should I capture to detect that the user is closing the browser window? this is issue warning if there are any dirty documents in one of the editors. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: $doc.selection is undefined in GWT
Thanks for the clarification. I am sure I am close now. but still get an error. my code is private native Element getSelectedTextParent() /*-{ var range = null; if($wnd.document.selection){ range = $wnd.document.selection.createRange(); } else if ($wnd.getSelection) { range = $wnd.getSelection().createRange(); } else if ($wnd.document.getSelection) { range = $wnd.document.getSelection().createRange(); } return range.parentElement(); //return $doc.selection.createRange().parentElement(); }-*/; I am getting $wnd.getSelection().createRange is not a function in FireFox. it seems $wnd.getSelection() is ok, but can not createRange()? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: war file for GWT 1.5
thanks. that clarifies quite a lot, but not everything. first I assume it would be ok for me to add any servlet context to the path and create the WEB-INF directory accordingly. for the static files, in hosted mode the url is http://localhost:/com.jcalc.webclient.Explorer/index.html do I keep the com.jcalc.webclient.Explorer directory for deployment? also, port 8080 is the default port in my development machine, I just thought I keep it as is while I am testing out the deployment code. is that ok? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: war file for GWT 1.5
thanks. that clarifies quite a lot, but not everything. first I assume it would be ok for me to add any servlet context to the path and create the WEB-INF directory accordingly. for the static files, in hosted mode the url is http://localhost:/com.jcalc.webclient.Explorer/index.html do I keep the com.jcalc.webclient.Explorer directory for deployment? also, port 8080 is the default port in my development machine, I just thought I keep it as is while I am testing out the deployment code. is that ok? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
war file for GWT 1.5
I have worked with servlet apps on Tomcat for a long time, and I thought I know all about war files. But I am confused about how GWT 1.5 generates a www directory and a tomcat directory. so if I zip up all my java classes and put them under the WEB-INF/classes directory under tomcat's webapps/Root, where do I put all the static files from the www directory? aren't they suppose to go the webapps/Root also? would it be ok if I put them under some other context different from Root? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: war file for GWT 1.5
I am experimenting by copying all the files under Tomcat_home/ webapps/ROOT/. the web.xml under ROOT/WEB-INF is ?xml version=1.0 encoding=UTF-8? web-app filter filter-nameHibernateSessionRequestFilter/filter-name filter-classcom.jcalc.webcore.HibernateSessionRequestFilter/ filter-class /filter servlet servlet-nameshell/servlet-name servlet-classcom.google.gwt.dev.shell.GWTShellServlet/servlet- class /servlet filter-mapping filter-nameHibernateSessionRequestFilter/filter-name url-pattern/*/url-pattern /filter-mapping servlet-mapping servlet-nameshell/servlet-name url-pattern/*/url-pattern /servlet-mapping /web-app I am getting Jun 5, 2009 2:44:10 PM org.apache.catalina.core.ApplicationContext log SEVERE: Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/ -- Parent Classloader: org.apache.catalina.loader.standardclassloa...@54172f com.google.gwt.dev.shell.GWTShellServlet java.lang.ClassNotFoundException: com.google.gwt.dev.shell.GWTShellServlet but the gwt-dev-windows.jar is right there under /ROOT/WEB-INF/lib why wouldn't tomcat find it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: war file for GWT 1.5
I am experimenting by copying all the files under Tomcat_home/ webapps/ROOT/. the web.xml under ROOT/WEB-INF is ?xml version=1.0 encoding=UTF-8? web-app filter filter-nameHibernateSessionRequestFilter/filter-name filter-classcom.jcalc.webcore.HibernateSessionRequestFilter/ filter-class /filter servlet servlet-nameshell/servlet-name servlet-classcom.google.gwt.dev.shell.GWTShellServlet/servlet- class /servlet filter-mapping filter-nameHibernateSessionRequestFilter/filter-name url-pattern/*/url-pattern /filter-mapping servlet-mapping servlet-nameshell/servlet-name url-pattern/*/url-pattern /servlet-mapping /web-app I am getting Jun 5, 2009 2:44:10 PM org.apache.catalina.core.ApplicationContext log SEVERE: Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/ -- Parent Classloader: org.apache.catalina.loader.standardclassloa...@54172f com.google.gwt.dev.shell.GWTShellServlet java.lang.ClassNotFoundException: com.google.gwt.dev.shell.GWTShellServlet but the gwt-dev-windows.jar is right there under /ROOT/WEB-INF/lib why wouldn't tomcat find it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: war file for GWT 1.5
btw, is it ok to use the default port 8080? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email 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: $doc.selection is undefined in GWT
I looked up some cross browser code. but I am getting different results if (document.getSelection) { var range = document.getSelection().createRange();; } else if (document.selection document.selection.createRange) { var range = document.selection.createRange(); } else { var str = Sorry, this is not possible with your browser.; } I use the range to get the parent Element, range.parentElement(); originally (using $doc), I get back a div, now I am getting back the BODY element. document.selection does not seem to be equivalent to $doc.selection, even though it removes the browser incompatibility. any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
$doc.selection is undefined in GWT
I have a native method which uses $doc.selection.createRange() I am not sure why the $ before doc. I simply copied it from some sample code. this method works find when in hosted mode. but after compile and called directly from a browser I get the $doc.selection is undefined error. any one knows what's wrong with this? sorry if this is second posting. I posted this question a few days ago, but it does not come up in search. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
$doc.selection is undefined
I have a native method which uses $doc.selection.createRange() I am not sure why the $ before doc. I simply copied it from some sample code. this method works find when in hosted mode. but after compile and called directly from a browser I get the $doc.selection is undefined error. any ideas? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---