GWT MyConstants extends Constants not loading
Hello, I have a question about Contants in GWT. When Im changing my properties file the new values are not imported. What Im doing wrong? Thanks in advanced Here my Configuration import com.google.gwt.i18n.client.Constants; public interface MyConstants extends Constants { String targetVersion(); String server(); String port(); String loglevel(); String pathtoServer(); } In my Entry Class Im loading the class * Entry point classes define codeonModuleLoad()/code. */ public class TestWeb implements EntryPoint { /** * The message displayed to the user when the server cannot be reached or * returns an error. */ MyConstants myConstants = (MyConstants) GWT.create(MyConstants.class); ListString targetVersionArray =new ArrayListString(); String configServer=; String configPort=; String logging=; String pathServer=; MyContants.properties is placed under Class Client. -- 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/d/optout.
Logging GWT with Tomcat
Hello, Im just beginning to use GWT and Tomcat and I have a question about logging. Perhaps you can help me Snippet from my XML file: inherits name=com.google.gwt.logging.Logging/ set-property name=gwt.logging.logLevel value=SEVERE/ set-property name=gwt.logging.enabled value=TRUE/ set-property name=gwt.logging.popupHandler value=DISABLED / In my Java Code I have something like that: public Logger logger = Logger.getLogger(API-Logger); logger.log(Level.INFO,Info Logging ); When I check the Tomcat logs I can for example found info logging in the catalina log What Im doing wrong if I want only to print the errors? Thanks in advanced Javier -- 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/d/optout.
Re: GWT Developer Plugin no longer works with Chrome on Linux
For some reason this Chrome message has just popped up for me today. I already had to downgrade Firefox to be able to continue using the development plugin there. I've been developing with GWT on Linux/Chrome for a long time and I'm quite shocked that Google would stop supporting the plugin... for their own browser! Does this mean GWT itself is on its way to be dropped by Google? J. On Thursday, May 22, 2014 6:15:10 AM UTC-4, Abel Barbosa wrote: Hi. I've been developing some web applications with GWT. Yesterday I updated my Google Chrome on Linux Ubuntu and now I get the following message when trying to use Development Mode: Sorry, the GWT Developer Plugin no longer works with Chrome on Linux Is this lack of support final? The message seems to state that. Why did this happen? Am I no longer able to use development mode on Linux (Firefox doesn't have an GWT Developer Plugin since the 24 version - currently on version 29)? Am I missing the obvious alternative besides using an older browser? Thank you. -- 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/d/optout.
jdoExamples in Eclipse
Hi there: I'm starting developing with *gwt *and *app engine*. I'm using ubuntu 12.10 and Eclipse 3.8. Have installed the SDK from the Eclipse's *Install New Software* utility. After import the JdoExamples through the GDT pulldown list using* Import App Engine Sample Apps*, the Run As Web Application does not work. I try to run with ant, setting the target as shown in the attached image. However, I obtain the error: datanucleusenhance: [enhance] DataNucleus Enhancer (version 1.1.4) : Enhancement of classes [enhance] Encountered a problem: Unexpected exception [enhance] Please see the logs [/tmp/enhance547656897607079187.log] for further information. BUILD FAILED There is not much information in the web about it, and I cannot find the log in the place pointed -I even doubt that there are permissions to create a file in that location. Can anyone give me a hand with this, please? Thanks in advance and regards, JC -- 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. attachment: JdoExamplesAntTargets.png
GWT FIXEDWIDTHGRID Multiple Row Selection
Hello, I'm trying to make a multiple row selection in a fixedwidthgrid does anybody knows how to do this? when I try it only selects one row, the first one, Thanks, Javier -- 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/-/sqn13q9nP1UJ. 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: Sending HTML as JSON with RequestBuilder
This way I'm sending html with JSON without problems: public final class HtmlJSONWrapper extends JavaScriptObject { public static native HtmlJSONWrapper create(String jsonStr) /*-{ return JSON.parse(jsonStr); }-*/; public static native HtmlJSONWrapper create() /*-{ return {} }-*/; public final native String getContent() /*-{ return this.htmlContent; }-*/; public final native void setContent(String value) /*-{ this.htmlContent = value; }-*/; public String toJSONString() { return new JSONObject(this).toString(); } } ... HtmlJSONWrapper htmlWrapper = HtmlJSONWrapper.create(); htmlWrapper.setContent(richTextArea.getHTML()); ... RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url); builder.setHeader(Content-Type, application/json); try { Request response = builder.sendRequest(htmlWrapper.toJSONString(), requestCallback); } catch (RequestException e) { logger.log(Level.SEVERE, e.getMessage(), e); } On Tuesday, November 27, 2012 6:10:11 AM UTC+1, Milan Cvejic wrote: Hi, I am trying to send HTML string to server using RequestBuilder with JSON but without any success. Everything works well when in HTML there are no double quotes or other JSON charachters. So I am trying something like this RichTextArea area = new RichTextArea(); String htmlToSend = area.getHTML(); JSONObject requestParams = new JSONObject(); requestParams.put(some_key, new JSONString(htmlToSend)); Unfortunately that string is not encoded properly to be safe to send with json So if value retuned from area.getHTML() contains double quotes like this: pa href=http://www.denic.de/de/domains/recht/index.html; target=_blankwww.denic.de/de/domains/recht/index.html/a/p request param looks like {some_key:pa href=http://www.denic.de/de/domains/recht/index.html; target=_blankwww.denic.de/de/domains/recht/index.html/a/p} JSONString method toString() on the other hand is calling JsonUtils.escapeValue(value) so that string should be escaped. And If I call escapeValue from JsonUtils by myself i get string encoded but end up with two double quotes at the beginning and the end of that string.. Any help is welcome, Thanks, Milan -- 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/-/u4bBMjFE3a4J. 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: Sending HTML as JSON with RequestBuilder
I think it's not related but with Internet Explorer 8 I'm having a JSON problem with code that runs on other browsers, it says that 'JSON is undefined' On Tuesday, November 27, 2012 10:15:39 AM UTC+1, Thomas Broyer wrote: On Tuesday, November 27, 2012 9:18:16 AM UTC+1, Jose Javier García Zornoza wrote: This way I'm sending html with JSON without problems: public final class HtmlJSONWrapper extends JavaScriptObject { public static native HtmlJSONWrapper create(String jsonStr) /*-{ return JSON.parse(jsonStr); You can use com.google.gwt.core.client.JsonUtils instead of JSNI here. But I don't understand why it's not working in Milan's case: it *should* work, there are unit-tests checking that it works: https://code.google.com/p/google-web-toolkit/source/browse/tags/2.5.0/user/test/com/google/gwt/json/client/JSONTest.java#187 -- 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/-/ZV0hnd2KKSUJ. 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.
FixedWidthGrid Click Event Row
Hello I'm trying to add CLICK ROW EVENT to FixedWidthGrid but I have no any result, dou you have any idea? 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/-/IoSDkJ_47LYJ. 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 Browser Dev-Plugin
I am having the same error with IE version 8. Under which folder to you put the file you download? On Friday, May 25, 2012 11:27:05 AM UTC-5, razor wrote: just get it straight from SVN. http://google-web-toolkit.googlecode.com/svn-history/trunk/plugins/ie/prebuilt/ It just looks like the latest build hasn't been copied to the dl-ssl server. On May 22, 5:15 am, Fabio safesfa...@gmail.com wrote: Hi All, I get an error 404 while downloading GWT Dev Plugin for IE9. (https:// dl-ssl.google.com/tag/s/appguid%3D%7B9a5e649a- ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT %2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin %3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe) 404. That’s an error. The requested URL /tag/s/appguid%3D%7B9a5e649a- ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT %2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin %3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe was not found on this server. That’s all we know. Thank u very much for your help! Fabio On Friday, May 25, 2012 11:27:05 AM UTC-5, razor wrote: just get it straight from SVN. http://google-web-toolkit.googlecode.com/svn-history/trunk/plugins/ie/prebuilt/ It just looks like the latest build hasn't been copied to the dl-ssl server. On May 22, 5:15 am, Fabio safesfa...@gmail.com wrote: Hi All, I get an error 404 while downloading GWT Dev Plugin for IE9. (https:// dl-ssl.google.com/tag/s/appguid%3D%7B9a5e649a- ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT %2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin %3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe) 404. That’s an error. The requested URL /tag/s/appguid%3D%7B9a5e649a- ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT %2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin %3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe was not found on this server. That’s all we know. Thank u very much for your help! Fabio On Friday, May 25, 2012 11:27:05 AM UTC-5, razor wrote: just get it straight from SVN. http://google-web-toolkit.googlecode.com/svn-history/trunk/plugins/ie/prebuilt/ It just looks like the latest build hasn't been copied to the dl-ssl server. On May 22, 5:15 am, Fabio safesfa...@gmail.com wrote: Hi All, I get an error 404 while downloading GWT Dev Plugin for IE9. (https:// dl-ssl.google.com/tag/s/appguid%3D%7B9a5e649a- ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT %2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin %3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe) 404. That’s an error. The requested URL /tag/s/appguid%3D%7B9a5e649a- ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT %2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin %3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe was not found on this server. That’s all we know. Thank u very much for your help! Fabio -- 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/-/qSM0xg9Kl6EJ. 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 Browser Dev-Plugin
On Tuesday, May 22, 2012 4:15:26 AM UTC-5, Fabio wrote: Hi All, I get an error 404 while downloading GWT Dev Plugin for IE9. (https:// dl-ssl.google.com/tag/s/appguid%3D%7B9a5e649a- ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT %2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadminhttp://dl-ssl.google.com/tag/s/appguid%3D%7B9a5e649a-ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT%2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin %3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe) 404. That’s an error. The requested URL /tag/s/appguid%3D%7B9a5e649a- ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT %2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin %3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe was not found on this server. That’s all we know. Thank u very much for your help! Fabio -- 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/-/RKImgEiB8v4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Question GWT-APACHE-SOAP SERVER debug
Hi folks! The fact is this... I have my own page made it in GWT , in another machine is running an APACHE. When the client (GWT) want to exchange some static data (images, etc) apache server is the responsible for do that. If some (SOAP) CGI request is made, The module FCGI-BIN in apache will catch that and re direct this message to a SOAP SERVER. If I want to debug my GWT page, I would need to do the same but instead of APACHE using the GWT dev. server. Is there any way to do this? Redirect to a local FCGI-BIN? How can I do this? 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.
Why widgets arent more flexible? inner widget, inner html, etc..
Hi, im using uibinder and im been force to create a lot of new widgets that supports inner widgets mixed with html. Im extending HTMLPanel to create Paragraph Anchor widgets. Is a bad practice? Is there any cons? Thx in advice! example: package com.banana.client.view.widget.components; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.dom.client.HasAllMouseHandlers; import com.google.gwt.event.dom.client.HasClickHandlers; import com.google.gwt.event.dom.client.MouseDownEvent; import com.google.gwt.event.dom.client.MouseDownHandler; import com.google.gwt.event.dom.client.MouseMoveEvent; import com.google.gwt.event.dom.client.MouseMoveHandler; import com.google.gwt.event.dom.client.MouseOutEvent; import com.google.gwt.event.dom.client.MouseOutHandler; import com.google.gwt.event.dom.client.MouseOverEvent; import com.google.gwt.event.dom.client.MouseOverHandler; import com.google.gwt.event.dom.client.MouseUpEvent; import com.google.gwt.event.dom.client.MouseUpHandler; import com.google.gwt.event.dom.client.MouseWheelEvent; import com.google.gwt.event.dom.client.MouseWheelHandler; import com.google.gwt.event.shared.HandlerRegistration; import com.google.gwt.safehtml.shared.SafeHtml; import com.google.gwt.user.client.ui.HTMLPanel; /** * This widget is to create p elements in a page. * * @author Javier Arnáiz, javier[at]bananacampus.com */ public class Paragraph extends HTMLPanel implements HasClickHandlers, HasAllMouseHandlers{ public Paragraph(String html) { super(p, html); } public Paragraph(SafeHtml safehtml){ super(p, safehtml.asString()); } public Paragraph(){ super(p, ); } public String getHTML() { return getElement().getInnerHTML(); } public void setHTML(String html) { getElement().setInnerHTML(html); } public String getText() { return getElement().getInnerText(); } public void setText(String text) { getElement().setInnerText(text); } @Override public HandlerRegistration addClickHandler(ClickHandler handler) { return addDomHandler(handler, ClickEvent.getType()); } @Override public HandlerRegistration addMouseDownHandler(MouseDownHandler handler) { return addDomHandler(handler, MouseDownEvent.getType()); } @Override public HandlerRegistration addMouseUpHandler(MouseUpHandler handler) { return addDomHandler(handler, MouseUpEvent.getType()); } @Override public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) { return addDomHandler(handler, MouseOutEvent.getType()); } @Override public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) { return addDomHandler(handler, MouseOverEvent.getType()); } @Override public HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler) { return addDomHandler(handler, MouseMoveEvent.getType()); } @Override public HandlerRegistration addMouseWheelHandler(MouseWheelHandler handler) { return addDomHandler(handler, MouseWheelEvent.getType()); } /* public void setVisible(boolean visible) { super.setVisible(visible); } */ } -- You received 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: Why widgets arent more flexible? inner widget, inner html, etc..
thanks for the answer Tomasz, but my question is more theoretical. In practice my custom widgets that extends from HTMLPanel works fine, but i dont know if exists some caveat or contraindication? why all widgets dont works in this way? thx! On 11 oct, 17:20, Tomasz Gawel tomaszga...@op.pl wrote: hi, look at this thread:http://groups.google.com/group/google-web-toolkit/browse_thread/threa... if you want to create custom widget that treats its node's content in the way HTMLPanel does you probably need to write ElementParser. in this case look at this post:http://cafebab3.blogspot.com/2010/01/non-intrusive-gwt-2-mod-2nd-part... -- You received 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: Detecting ONPASTE on a richtextbox? (possible?)
im in the same problem. some links that works good in textarea widgets but not in richtext :(: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/09a3527707d22be0?fwc=1 related issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=4030 same question: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b49f9c7c1e5bea45/949c4a83fd799109?lnk=gstq=richtextarea+onpaste#949c4a83fd799109 On 4 sep, 21:01, darkflame darkfl...@gmail.com wrote: Is it possible to detect aonpasteevent in a richtextbox? I followed this method here for a textbox;http://groups.google.com/group/google-web-toolkit/browse_thread/threa... (basicly just extending a richtextbox instead) Nothing seems to fire though in Chrome. -- You received 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.
sevaral bugs with cssresource (try not to repeat known issues)
Hi, @if user.agent I try to make conditional if with user.agent in cssresources, i make this example and it doesn' work in ie7 : @if user.agent ie7{ .cssname{ font-style: bold; } } however when I write ie6 before ie7 (as in this example code), it works properly for ie7: @if user.agent ie6 ie7{ .cssname{ font-style: bold; } } I was trying with other user.agent too like firefox, chrome... And it only works with user.agent safari gecko1_8 but not for others. There is no repported problem, so I don't know what's happened. any idea? Another cuestion: to solve this problem I use a class that correctly detect the user.agent of my browser and i use this code: @if (com.banana.client.resources.css.CssAgentDetector.isIE6_7()){ .cssname{ font-style: bold; } } but the code above doesn't work: the error says there are two parenthesis which are expected to be closed. And i do a workaround: @if (com.banana.client.resources.css.CssAgentDetector.isIE6_7())){ .cssname{ font-style: bold; } } the extra parentheses is necesary to make it works properly, i dont know why, the css parser is buggy? thx in advice! -- You received 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: sevaral bugs with cssresource (try not to repeat known issues)
Thanks Jens, im watching the http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/rebind/UserAgentPropertyGenerator.java... therefore the best solution for me is create a static class, why about this problem? thx! On 26 sep, 16:51, Jens jens.nehlme...@gmail.com wrote: I think you can only use the user agent values that are defined by GWT which can be found in http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/... But the naming scheme is maybe a bit unlucky. Correct my if I am wrong but I think: - ie6 means IE6 and IE7 - safari means any browser that uses the WebKit rendering engine (Safari, Chrome, ...) - gecko1_8 means any browser that uses the Gecko rendering engine (Firefox, Camino, ...) So I don't think there is anything buggy.. you just have to choose the correct user.agent value. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Bean validation with overlay types
I'm trying to use bean validation with my model which consists of overlay types. An example of what I'm trying to do is the following: public class MyClass extends JavaScriptObject { @Size(min=10) public final native String getTitle() /-{ return this[title]; }-/; } However, when validation occurs I'm getting a NoClassDefFoundError because the overlay can not be initialized. That makes sense to me as new operations cannot be used with overlay types. I have also tryed creating a java interface implemented by the the overlay and use the interface in the GwtValidator instead of the overlay. but that doesn't seem to work neither. Does bean validation support overlay types? Has someone managed to implement validation with overlay types? 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.
Building gwt to use bean validation errors
I'm trying to evaluate bean validation for my project. For that purpose I checked out gwt and tools trunk and build gwt from source. The problem is that when using the builded gwt I receive plenty or errors. I would like to know if someone has managed to use bean validation in a project or whether I'm doing something wrong. In case it may be useful, the first errors I see are: [ERROR] [noah] - Errors in 'file:/C:/Workspace/Workspaces/workspace- sts-2.5.0.RELEASE/noah/src/main/java/com/amindea/noah/client/handler/ TaskHandler.java' [ERROR] [noah] - Line 97: No source code is available for type javax.validation.Validator; did you forget to inherit a required module? [ERROR] [noah] - Line 98: No source code is available for type javax.validation.ConstraintViolationT; did you forget to inherit a required module? [ERROR] [noah] - Errors in 'file:/C:/Workspace/Workspaces/workspace- sts-2.5.0.RELEASE/noah/src/main/java/com/amindea/noah/client/model/ validation/NoahValidatorFactory.java' [ERROR] [noah] - Line 19: No source code is available for type javax.validation.Validator; did you forget to inherit a required module? [ERROR] [noah] - Errors in 'jar:file:/C:/Workspace/Frameworks/google- web-toolkit/build/staging/gwt-0.0.0/gwt-user.jar!/com/google/gwt/dom/ client/DOMImplWebkit.java' [ERROR] [noah] - Line 44: The method setDraggable(Element, String) of type DOMImplWebkit must override or implement a supertype method [ERROR] [noah] - Line 45: The method setDraggable(Element, String) is undefined for the type DOMImplStandardBase [ERROR] [noah] - Errors in 'jar:file:/C:/Workspace/Frameworks/google- web-toolkit/build/staging/gwt-0.0.0/gwt-user.jar!/com/google/gwt/ editor/client/EditorDriver.java' [ERROR] [noah] - Line 97: No source code is available for type javax.validation.ConstraintViolationT; did you forget to inherit a required module? [ERROR] [noah] - Errors in 'jar:file:/C:/Workspace/Frameworks/google- web-toolkit/build/staging/gwt-0.0.0/gwt-user.jar!/com/google/gwt/ editor/client/impl/AbstractEditorContext.java' [ERROR] [noah] - Line 92: The method addSubDelegate(AbstractEditorDelegate, String, Editorcapture#16-of ? ) is undefined for the type AbstractEditorDelegateT,capture#15-of ? [ERROR] [noah] - Line 93: The method getEditorChain() is undefined for the type AbstractEditorDelegateT,capture#17-of ? [ERROR] [noah] - Line 129: The method accept(EditorVisitor) is undefined for the type AbstractEditorDelegatecapture#23- of ?,capture#24-of ? [ERROR] [noah] - Errors in 'jar:file:/C:/Workspace/Frameworks/google- web-toolkit/build/staging/gwt-0.0.0/gwt-user.jar!/com/google/gwt/ editor/client/impl/BaseEditorDriver.java' [ERROR] [noah] - Line 67: No source code is available for type javax.validation.ConstraintViolationT; did you forget to inherit a required module? [ERROR] [noah] - Line 82: The method initialize(String, T, E, DelegateMap) in the type AbstractEditorDelegateT,E is not applicable for the arguments (String, E) [ERROR] [noah] - Errors in 'jar:file:/C:/Workspace/Frameworks/google- web-toolkit/build/staging/gwt-0.0.0/gwt-user.jar!/com/google/gwt/ editor/client/impl/DirtCollector.java' [ERROR] [noah] - Line 38: The method isDirty() is undefined for the type AbstractEditorDelegateT,capture#3-of ? [ERROR] [noah] - Errors in 'jar:file:/C:/Workspace/Frameworks/google- web-toolkit/build/staging/gwt-0.0.0/gwt-user.jar!/com/google/gwt/ editor/client/impl/ErrorCollector.java' [ERROR] [noah] - Line 48: The method getErrors() is undefined for the type AbstractEditorDelegatecapture#5-of ?,capture#6-of ? [ERROR] [noah] - Errors in 'jar:file:/C:/Workspace/Frameworks/google- web-toolkit/build/staging/gwt-0.0.0/gwt-user.jar!/com/google/gwt/ editor/client/impl/Initializer.java' [ERROR] [noah] - Line 45: The method getEditorChain() is undefined for the type AbstractEditorDelegateQ,capture#7-of ? [ERROR] [noah] - Errors in 'jar:file:/C:/Workspace/Frameworks/google- web-toolkit/build/staging/gwt-0.0.0/gwt-user.jar!/com/google/gwt/ editor/client/impl/Refresher.java' [ERROR] [noah] - Line 35: The method setDirty(boolean) is undefined for the type AbstractEditorDelegateQ,capture#5-of ? [ERROR] [noah] - Errors in 'jar:file:/C:/Workspace/Frameworks/google- web-toolkit/build/staging/gwt-0.0.0/gwt-user.jar!/com/google/gwt/ editor/client/impl/SimpleViolation.java' [ERROR] [noah] - Line 40: No source code is available for type javax.validation.ConstraintViolationT; did you forget to inherit a required module? [ERROR] [noah] - Line 112: The method of(EditorDrivercapture#8-of ? , DelegateMap.KeyMethod) is undefined for the type DelegateMap [ERROR] [noah] -
Re: Building gwt to use bean validation errors
Thanks. I need to include the validation-api-1.0.0.GA-sources.jar. There are still other errors but now my app launches. On 17 mayo, 00:40, Jeff Larsen larse...@gmail.com wrote: you'll notice in the path trunk\build\dist\gwt-0.0.0.zip\gwt-0.0.0\ there exist 2 jar files: validation-api-1.0.0*.jar Add those to your classpath, and that should solve the problems. -- You received 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.1 vs GWT 2.2 and this forum
I agree that Thomas is very supportive but I miss more participation from other GWT members. If you look to the group information you can see that the GWT member (appart from Thomas) who has published more messages in the last month is David (Chandler) with 16. The GWT team is free to participate or not in the forum, but I believe that an active community is really important for a technology to be successful. Compared to other programming groups, GWT has a reduced number of messages per day (maybe 20-30?). Despite of that, I see many interesting questions not being answered. That is just my opinion. Regards On 29 abr, 09:14, nino ekambi jazzmatad...@googlemail.com wrote: Well that s not true :) Thomas Broyer is everywhere in this forum. He might not be officially from the GWT Team. But he s contributor. Did you had any issue that could not be answered ? 2011/4/29 Javier javierferre...@gmail.com In my honest opinion the participation of the GWT team in this forum is dissapointing. Some more attention would be appreciated. On 29 abr, 00:24, David Chandler drfibona...@google.com wrote: We announced the 2.2 RC here, but evidently posted the 2.2 release announcement only on the blog: http://googlewebtoolkit.blogspot.com/2011/02/google-plugin-for-eclips... I'll announce here when 2.3 is available and update the sticky post. Thanks, /dmc On Thu, Apr 28, 2011 at 4:02 PM, pohl pohl.longs...@gmail.com wrote: GWT 2.2 has been out for a while now, and I haven't seen an announcement for it here. The old announcement for GWT 2.1 is still pinned to the top of the page. It still looks like a lot of libraries haven't released jars that work with 2.2 yet, either. Is 2.2 just a release candidate? Did someone forget to announce 2.2 here? Has this forum been abandoned by the GWT team? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w:http://code.google.com/ b:http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platformshttp://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Using DataProviders vs manual SetRowData
If you update several items in a ListDataProvider (say items with indexes 3 and 42) all other items between (4 to 41) will be re- rendered by the display if they are in the visible range. This means creating all the HTML and all the DOM elements for those items although they have not changed. If instead you update those items manually using setRowData twice for items 3 and 42 only those two items would be touched and re-rendered. Looking for performance, setRowData seems the way to go. I would like to know any other considerations/opinions regarding this. 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: Using DataProviders vs manual SetRowData
In fact I'm surprised that CellWidgets do not have a straight way to add or remove individual rows. You can use setRowData, but that means replacing all items starting from the index of the row you want to add or remove. Correct me if I'm wrong but if for instance you add a row at the begining of a cell list or table using setRowData the whole table/list would be redrawn. While that should not be a problem with static data, I do not think that is the optimal behaviour in tables/ lists where data can change frecuently. On 28 abr, 18:25, Javier javierferre...@gmail.com wrote: If you update several items in a ListDataProvider (say items with indexes 3 and 42) all other items between (4 to 41) will be re- rendered by the display if they are in the visible range. This means creating all the HTML and all the DOM elements for those items although they have not changed. If instead you update those items manually using setRowData twice for items 3 and 42 only those two items would be touched and re-rendered. Looking for performance, setRowData seems the way to go. I would like to know any other considerations/opinions regarding this. 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: GWT 2.1 vs GWT 2.2 and this forum
In my honest opinion the participation of the GWT team in this forum is dissapointing. Some more attention would be appreciated. On 29 abr, 00:24, David Chandler drfibona...@google.com wrote: We announced the 2.2 RC here, but evidently posted the 2.2 release announcement only on the blog:http://googlewebtoolkit.blogspot.com/2011/02/google-plugin-for-eclips... I'll announce here when 2.3 is available and update the sticky post. Thanks, /dmc On Thu, Apr 28, 2011 at 4:02 PM, pohl pohl.longs...@gmail.com wrote: GWT 2.2 has been out for a while now, and I haven't seen an announcement for it here. The old announcement for GWT 2.1 is still pinned to the top of the page. It still looks like a lot of libraries haven't released jars that work with 2.2 yet, either. Is 2.2 just a release candidate? Did someone forget to announce 2.2 here? Has this forum been abandoned by the GWT team? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w:http://code.google.com/ b:http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
W3C DOM Compatibility
Looking to the W3C DOM Compatibility - CSS Object Model View (http:// www.quirksmode.org/dom/w3c_cssom.html) I see that only some properties/ methods are supported in GWT. I would like to know if there is a criteria to determine which of the methods/properties are supported and which are not. In my particular case I need to use Document's elementFromPoint method, supported in all browsers but not available in GWT. I could code it myself in a JSNI method but thinking in code maintenance and browser abstraction I think this should be part of GWT DOM model. Should I open an issue/request for this? 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.
pointer-events: send mouse event to element underneath
In my application I use a widget as a helper/proxy in drag operations. When the user is dragging, the widget is absolute positioned on top of the rest of the elements and is moved along with the mouse to indicate the drop position. Now I would like to make that widget 'transparent' to mouse activity, such that mouse events go to the underlying element. CSS has pointer-events property (http://www.w3.org/TR/SVG/ interact.html#PointerEventsProperty) to control if a mouse event should be sent to the element directly underneath the mouse or passed through to an element underneath it. However it is not compatible for all browsers. I would like to know if there is a way to achieve this in GWT. Thanks a lot -- You received 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.
Cell List bound to selection issue?
I'm not sure if this is the expected behaviour or it is a bug. When using a CellList with a MultiSelectionModel and a BOUND_TO_SELECTION keyboard policy: - You can not select multiple cells (when using CTRL + click). - Click events update the selection despite of any EventTranslator / CellPreviewHandler. IMO, the correct behaviout should be: - On a key navigation event, put the navigated cell as the one selected - On a different event, use the EventTranslator / CellPreviewHandler and allow multiple selection Does this make sense? Many 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.
Cell List: add non-data rows
I need to add the following functionallity to a Cell List: - Grouping. Add a header for each group of rows. - Drop indicator. Add a placeholder to indicate that the drop is valid. My initial thought was to create a custom CellList and add extra rows (divs) for the group headers and drop placeholders as needed. The problem is that AbstractHasData works on a 1 to 1 relation between data items and rows. Adding extra divs for headers or placeholders messes-up the HasDataPresenter. I would like to know if someone has tryed to do something similar or has any recommendation on how I can achieve this. Many 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: customize CellTable css style
I think you need to create your implementation of CellTable.Style. Something similar to: interface MyCellTableResources extends Resources { @Source(MyCellTableStyle.STYLE) MyCellTableStyle cellListStyle(); } interface MyCellTableStyle extends CellTable.Style { String STYLE = cell-table-style.css; ... } On 12 abr, 10:06, mariyan nenchev nenchev.mari...@gmail.com wrote: Hi, I tried to customize gwt CellTable with no success. Am I missing something? Here is what i did: 1) create custom resource interface: public interface CellTableResource extends Resources { public CellTable.Resources INSTANCE = GWT.create(CellTableResource.class); /** * The styles used in this widget. */ @NotStrict @Source(com/company/public/com/company/gbb/css/CellTable.css) CellTable.Style cellTableStyle(); } 2) create css file in src/main/resources/com/cayetano/public/com/cayetano/gbb/css/CellTable.css (note: there are no images for gwt-image attribute, but still compiles with no errors). .cellTable { border: none; } .firstColumn { } @sprite .footer { gwt-image: 'cellTableFooterBackground'; background-color: #fffbd6; border: none; text-align: center; color: black; font-size: 11px; font-weight: bold; font-family: Tahoma; } @sprite .header { gwt-image: 'cellTableHeaderBackground'; background-color: #fffbd6; border: none; padding: 0px 10px; text-align: center; color: black; font-size: 11px; font-weight: bold; font-family: Tahoma; } .cell { background-color: #fffbd6; padding: 4px 10px; border: none; text-align: center; color: black; font-size: 11px; font-weight: bold; font-family: Tahoma; } .firstColumnFooter { border-left: 0px; } .firstColumnHeader { border-left: 0px; } .evenRow { background-color: #fffbd6; } .oddRow { background-color: black; } .hoveredRow { background-color: #fffbd6; } @sprite .selectedRow { gwt-image: 'cellTableSelectedBackground'; background-color: #fffbd6; border: none; text-align: center; color: black; font-size: 11px; font-weight: bold; font-family: Tahoma; } .cellTableLastColumnHeader{} .cellTableHeader{} .cellTableLoading{} .cellTableSortedHeaderDescending{} .cellTableFirstColumn{} .cellTableFirstColumnHeader{} .cellTableFooter{} .cellTableKeyboardSelectedRowCell{} .cellTableWidget{} .cellTableSelectedRow{} .cellTableLastColumn{} .cellTableLastColumnFooter{} .cellTableSortableHeader{} .cellTableKeyboardSelectedRow{} .cellTableKeyboardSelectedCell{} .cellTableHoveredRowCell{} .cellTableCell{} .cellTableEvenRowCell{} .cellTableFirstColumnFooter{} .cellTableOddRow{} .cellTableEvenRow{} .cellTableSelectedRowCell{} .cellTableSortedHeaderAscending{} .cellTableOddRowCell{} .cellTableHoveredRow{} 3) create cell table with overridden resources CellTableTick historyTable = new CellTableUpDownBetView.Tick(5, CellTableResource.INSTANCE); Result: Default css style is not shown, in fact no style is shown. Could you help please? Regards. -- You received 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: mouseover is fired twice within the scope of the same cell
The cell is composed of different HTML elements (div, span, label, etc). I suppose different elements are firing a onMouseOver. Can you try debugging the event target element? On 9 abr, 01:40, Christian Goudreau goudreau.christ...@gmail.com wrote: It's not even for that... lol Anyway, even with a deffered it happen. On Fri, Apr 8, 2011 at 7:35 PM, Christian Goudreau goudreau.christ...@gmail.com wrote: Ok no, it's not because of the text... it's fired the first time when the cell is white... then a second time when the cell is turning blue. On Fri, Apr 8, 2011 at 7:33 PM, Christian Goudreau goudreau.christ...@gmail.com wrote: Here's a little snippet of the code: if (click.equals(event.getType())) { onEnterKeyDown(context, parent, value, event, valueUpdater); } else if (mouseover.equals(event.getType())) { onMouseOver(context.getIndex(), event); } else if (mouseout.equals(event.getType())) { onMouseOut(context.getIndex(), event); } Well, when I first enter the cell with my mouse, onMouseOver is called, then when I move inside the same cell and mouse over the texte, onmouseover is called a second time. Someone have an idea how to fix this ? -- Christian Goudreau www.arcbees.com -- Christian Goudreau www.arcbees.com -- Christian Goudreauwww.arcbees.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Cell widgets selection and EventTranslators
I want to select a cell on mouse down event instead of click. This is how selection works in windows explorer (among others) and is very useful if for instance you want to start a drag operation inmediatelly after the mouse down. Creating a custom EventTranslator is great as it allows me to select the action to perform depending on the event type. However when doing multiple selection the action I return is ignored unless it is a click event. Said with different words, the DefaultSelectionEventManager only takes into consideration the Action returned by the translator if the event is a click event. IMO the correct behaviour would be that the EventManager performs the action returned by the translator no matter the event type. In fact this is the behaviour for a single-selection model but not for a multi- selection model. A'm I missing something? Many 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: Cell widgets selection and EventTranslators
Issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=6245 Thanks On 8 abr, 15:23, John LaBanca jlaba...@google.com wrote: It appears that you are correct. Can you create an issue to track this? Thanks, John LaBanca jlaba...@google.com On Fri, Apr 8, 2011 at 7:57 AM, Javier javierferre...@gmail.com wrote: I want to select a cell on mouse down event instead of click. This is how selection works in windows explorer (among others) and is very useful if for instance you want to start a drag operation inmediatelly after the mouse down. Creating a custom EventTranslator is great as it allows me to select the action to perform depending on the event type. However when doing multiple selection the action I return is ignored unless it is a click event. Said with different words, the DefaultSelectionEventManager only takes into consideration the Action returned by the translator if the event is a click event. IMO the correct behaviour would be that the EventManager performs the action returned by the translator no matter the event type. In fact this is the behaviour for a single-selection model but not for a multi- selection model. A'm I missing something? Many thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Rendering labels within text fields
Are you positioning the elements? z-index only works on positioned elements (position:absolute, position:relative, or position:fixed) On 30 mar, 04:42, David Pinn dp...@byandlarge.net wrote: I'm trying to render labels inside text fields. When the user begins typing, the labels fade away and become invisible.To accomplish this, I'm giving the TextBox widgets 'background: none; z-index: 10'; and I'm rendering the labels behind them with 'background: #fff; z-index: 1'. Just incidentally, I got the idea for this fromhttp://www.zurb.com/article/271/making-forms-convert-through-awesome- The problem: when I click on a field, if the click happens to land on the label, as opposed to an empty space beside the label, the click event does not fire and the field does not receive focus. Do you have any idea why this might be happening? Know how to fix it? Alternatively, do you know of a library that might obviate my coding this up? -- You received 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: Rendering labels within text fields
You are welcome. Could you post your solution here? I was willing to do something similar and your approach can be of great help. On 30 mar, 23:35, David Pinn dp...@byandlarge.net wrote: Hey! it worked. Thanks again. On Mar 31, 5:36 am, Javier javierferre...@gmail.com wrote: Are you positioning the elements? z-index only works on positioned elements (position:absolute, position:relative, or position:fixed) On 30 mar, 04:42, David Pinn dp...@byandlarge.net wrote: I'm trying to render labels inside text fields. When the user begins typing, the labels fade away and become invisible.To accomplish this, I'm giving the TextBox widgets 'background: none; z-index: 10'; and I'm rendering the labels behind them with 'background: #fff; z-index: 1'. Just incidentally, I got the idea for this fromhttp://www.zurb.com/article/271/making-forms-convert-through-awesome- The problem: when I click on a field, if the click happens to land on the label, as opposed to an empty space beside the label, the click event does not fire and the field does not receive focus. Do you have any idea why this might be happening? Know how to fix it? Alternatively, do you know of a library that might obviate my coding this up? -- You received 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: JavaScriptObject array for Java Objects
Anyone? So far I'm pushing Java POJO's into JSO arrays with no problems but would like to make sure that this is safe. Many thanks. On 27 mar, 18:25, Javier javierferre...@gmail.com wrote: In my app I use JsArray extensively to store my overlays. I use java.util.List to store my client-side Java POJOs. For performance reasons and to unify the way I access my model I planned to eliminate the Lists and use only JSO wrappers. Given a wrapper around a native array that can store any Java Object: public class JsArrayObjectT extends JavaScriptObject { protected JsArrayObject() {} public final native T get(int index) /*-{ return this[index]; }-*/; public final native void push(T value) /*-{ this[this.length] = value; }-*/; } Is it safe to store Java Objects this way? The doc says that when you pass a Java Object into JavaScript the result is an opaque value accessible through special syntax. This sounds confussing to me. For instance if I push an Integer and try to get it an exception will be thrown because something different than an Object was found (at least in dev mode). The same happens with the rest of Java primitive Wrappers. Apart from the problems with Java primitive Wrappers, are there other concerns to be aware? Many 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.
JavaScriptObject array for Java Objects
In my app I use JsArray extensively to store my overlays. I use java.util.List to store my client-side Java POJOs. For performance reasons and to unify the way I access my model I planned to eliminate the Lists and use only JSO wrappers. Given a wrapper around a native array that can store any Java Object: public class JsArrayObjectT extends JavaScriptObject { protected JsArrayObject() {} public final native T get(int index) /*-{ return this[index]; }-*/; public final native void push(T value) /*-{ this[this.length] = value; }-*/; } Is it safe to store Java Objects this way? The doc says that when you pass a Java Object into JavaScript the result is an opaque value accessible through special syntax. This sounds confussing to me. For instance if I push an Integer and try to get it an exception will be thrown because something different than an Object was found (at least in dev mode). The same happens with the rest of Java primitive Wrappers. Apart from the problems with Java primitive Wrappers, are there other concerns to be aware? Many 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: Clearing CellTable or CellList of all selections programmatically
MultiSelectionModel has a clear method, but with SingleSelectionModel you have to do as in your code. The yellow highlight corresponds to KEYBOARD selection, which is different from normal selection. If you do not need it you can disable it as follows: myList.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED); On 6 mar, 18:14, Frank Mena frank.m...@gmail.com wrote: There does not seem to be an API for clearing a CellTable of selections. I have 2 tables next to each other where the user can select an item from the left table, press a button and that item is removed from that table and added to the right table. Same thing going from right to left. A user needs to select an item from either table and when that table item is selected, I need to be able to clear the other table of any selections. I have tried to kludge it by doing selectionModel.setSelected(selectionModel.getSelectedObject(), false). That does clear the list, but if you try and re-select the same item, it highlights yellow but is not selected. Is there an API to clear CellTable or CellLists? Is there a workaround? Frank -- You received 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.
Group data in Cell Widgets
I'm using a CellList to display a list of projects. Now I need to group the the list according to user selection. For instance, the user can decide to group his projects by date: Does anyone know how can I implement this functionallity? The list can contain up to 1000 rows, so for performance reasons I would like to keep using cell widgets. I have thought of using a CellTree but I really do not need the category to be selectable, nor to expand collapse its content.The other alternative I have thought of is extending CellList. Any help is appreciated. Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Group data in Cell Widgets
I'm using a CellList to display a list of projects. Now I need to group the the list according to user selection. For instance, the user can decide to group his projects by date: http://i56.tinypic.com/2qi4spl.png Does anyone know how can I implement this functionallity? The list can contain up to 1000 rows, so for performance reasons I would like to keep using cell widgets. I have thought of using a CellTree but I really do not need the category to be selectable, nor to expand collapse its content.The other alternative I have thought of is extending CellList. Any help is appreciated. Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
JsDate and DateBox widget
In my overlays I wrap a JavaScript Date object in a JsDate: public final native JsDate getDueDate() /*-{ return this[dueDate]; }-*/; However when I want to use that date in a widget, say a DateBox, I need to set the value as a Java Date. I can create a Java Date from my JsDate and then set the value. Is there a cleaner way of achieving this? Or maybe am I missing something? Thanks a lot -- You received 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: Overlay types in cell widgets
You are right! Giving a ProvidesKey solves the issue. For next releases it would be great if overlay types could define their own hashCode. Thanks a lot, not only for the solution but also for the detailled explanation. On 21 ene, 11:18, Thomas Broyer t.bro...@gmail.com wrote: The $H property comes from the implementation of JavaScriptObject#hashCode() (in com.google.gwt.cire.client.impl.Impl#getHashCode(Object)). In your case, this is due to AbstractEditableCell maintaining a map of value keys to their view data, and your use (I guess) of the default ProvidesKey implementation (SimpleProvidesKey) which directly returns the item. So, when rendering, the EditTextCell calls getViewData, which looks up the key in the map (and thus needs the hashcode of the key, hence the call to hashCode), and the key is your JSO (hence the new $H property). I believe that giving a ProvidesKey implementation (in you case, returning the name property for instance) to the Celltable would solve your issue. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Overlay types in cell widgets
Thanks for answering John, I use JsonRequest to get the data from the server and store it in a List. I'm pretty sure the data is modified in the cell table. In this code from my view I print the data before and after pushing it into de cell table: @UiField(provided = true) CellTableJsTask taskTable; public void setTasks(ListJsTask tasks) { printTasks(BEFORE, tasks); taskTable.setRowData(0, tasks); printTasks(AFTER, tasks); } private void printTasks(String key, ListJsTask tasks) { for(JsTask task : tasks) { GWT.log(key + : + new JSONObject(task).toString()); } } And the output is: 11:10:51.658 [INFO] [noah] BEFORE: {_id:c109384d5fd60017, title:This is a task, version:0} 11:10:51.667 [INFO] [noah] BEFORE: {_id:c009384d5fd60017, title:This is another task, version:0} 11:10:51.689 [INFO] [noah] AFTER: {_id:c109384d5fd60017, title:This is a task, version:0, $H:1} 11:10:51.696 [INFO] [noah] AFTER: {_id:c009384d5fd60017, title:This is another task, version:0, $H:2} where the widget is adding those $H properties. On 20 ene, 04:35, John LaBanca jlaba...@google.com wrote: CellTable doesn't modify the original data, so this is either related to RPC or to our List implementation. Thanks, John LaBanca jlaba...@google.com On Wed, Jan 19, 2011 at 6:37 PM, Javier javierferre...@gmail.com wrote: Hi, My app is using overlay types with JSON received from server. In the view I'm pushing the list of overlay types into a cell table: How do you get them from the server? RPC, RequestFactory, or JsonRequest? public class JsTask extends JavaScriptObject {} taskTable = new CellTableJsTask(); taskTable.setRowData(0, tasks); For my surprise I have found that the widget is adding an extra property to the JavaScriptObject containing it's row index in the table. So, my overlay type that looked like this: {_id:4039344d5fd60017, title:Nuevo titulillo, version:0} Does it look like this on the server or on the client after the request from the server? Now looks: {_id:4039344d5fd60017, title:Nuevo titulillo, version:0, $H:6} I don't think this is a nice behaviour. In my particular case the overlay is a domain object so it should not have unexpected properties. Is this behaviour documented somewhere? What do you think is the best way to solve this issue? Am I forced to clone all my domain objects before using them in my views? Many 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.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-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: Overlay types in cell widgets
I have checked that the issue happens when you add a custom column to the table. For instance: // Create name column. ColumnContact, String nameColumn = new ColumnContact, String(new EditTextCell()) { public String getValue(Contact object) { return object.getName(); } }; More details here: http://stackoverflow.com/questions/4753898/gwt-cell-widgets-with-overlay-types-issues On 20 ene, 11:25, Javier javierferre...@gmail.com wrote: Thanks for answering John, I use JsonRequest to get the data from the server and store it in a List. I'm pretty sure the data is modified in the cell table. In this code from my view I print the data before and after pushing it into de cell table: @UiField(provided = true) CellTableJsTask taskTable; public void setTasks(ListJsTask tasks) { printTasks(BEFORE, tasks); taskTable.setRowData(0, tasks); printTasks(AFTER, tasks); } private void printTasks(String key, ListJsTask tasks) { for(JsTask task : tasks) { GWT.log(key + : + new JSONObject(task).toString()); } } And the output is: 11:10:51.658 [INFO] [noah] BEFORE: {_id:c109384d5fd60017, title:This is a task, version:0} 11:10:51.667 [INFO] [noah] BEFORE: {_id:c009384d5fd60017, title:This is another task, version:0} 11:10:51.689 [INFO] [noah] AFTER: {_id:c109384d5fd60017, title:This is a task, version:0, $H:1} 11:10:51.696 [INFO] [noah] AFTER: {_id:c009384d5fd60017, title:This is another task, version:0, $H:2} where the widget is adding those $H properties. On 20 ene, 04:35, John LaBanca jlaba...@google.com wrote: CellTable doesn't modify the original data, so this is either related to RPC or to our List implementation. Thanks, John LaBanca jlaba...@google.com On Wed, Jan 19, 2011 at 6:37 PM, Javier javierferre...@gmail.com wrote: Hi, My app is using overlay types with JSON received from server. In the view I'm pushing the list of overlay types into a cell table: How do you get them from the server? RPC, RequestFactory, or JsonRequest? public class JsTask extends JavaScriptObject {} taskTable = new CellTableJsTask(); taskTable.setRowData(0, tasks); For my surprise I have found that the widget is adding an extra property to the JavaScriptObject containing it's row index in the table. So, my overlay type that looked like this: {_id:4039344d5fd60017, title:Nuevo titulillo, version:0} Does it look like this on the server or on the client after the request from the server? Now looks: {_id:4039344d5fd60017, title:Nuevo titulillo, version:0, $H:6} I don't think this is a nice behaviour. In my particular case the overlay is a domain object so it should not have unexpected properties. Is this behaviour documented somewhere? What do you think is the best way to solve this issue? Am I forced to clone all my domain objects before using them in my views? Many 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.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-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.
Overlay types in cell widgets
Hi, My app is using overlay types with JSON received from server. In the view I'm pushing the list of overlay types into a cell table: public class JsTask extends JavaScriptObject {} taskTable = new CellTableJsTask(); taskTable.setRowData(0, tasks); For my surprise I have found that the widget is adding an extra property to the JavaScriptObject containing it's row index in the table. So, my overlay type that looked like this: {_id:4039344d5fd60017, title:Nuevo titulillo, version:0} Now looks: {_id:4039344d5fd60017, title:Nuevo titulillo, version:0, $H:6} I don't think this is a nice behaviour. In my particular case the overlay is a domain object so it should not have unexpected properties. Is this behaviour documented somewhere? What do you think is the best way to solve this issue? Am I forced to clone all my domain objects before using them in my views? Many 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.
Overlay deep copy
What is the best way to make a deep clone/copy of an overlay, assuming that the overlay can contain arrays and nested overlays? 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: Overlay types implementing server side model interfaces
Any hints on this topics? I read on another post (http://groups.google.com/group/google-web- toolkit/browse_thread/thread/483ba17ccc5eb639/4b5bac6a2c69f309? hl=enlnk=gstq=Overlay+types+implementing+server+side +model#4b5bac6a2c69f309) that there's work in progress to add a lightweight collections module to GWT: compiles to much lighter weight JS code than java.util.* collections and are still usable in a JVM (unlike JsArray). -- You received 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: PureGWT Showcase Preview Part II
A minor thing: Modal Window Center's title says Exit on Esc but pressing Escape does not close the window. El 04/11/10 15:14, Vagner Araujo escribió: Hello friends, Soon we will be releasing more specific information about the PureGWT. For now, our goal is to demonstrate how the environment works. All I can say right now is that the PureGWT is under development. The showcase is simply a way of showing what is being developed. For example, the ScrollPanel has its scrollbar totally independent of browser and operating system. thanks for your reply. ;-) thanks, -- *Vagner Araujo O PLANETA É O MEU PAÍS, E A CIÊNCIA É A MINHA RELIGIÃO ! INDO AO INFINITO E ALÉM... !!* ** * * *puregwt-logo2.png http://showcase.jdukes.com/* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received 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.
Installing GWT Eclipse plugin, version 1.1.0
Hello there: our current project uses GWT 1.7.1 and, for a variety of reasons, we don't want to upgrade to 2.0.0 yet. I'd like to setup our current development environment on a new machine; I'm at the point where I need to install the GWT eclipse plugin, but when I go to the update site (http://dl.google.com/eclipse/ plugin/3.5) the GWT SDK has been magically upgraded from 1.7.1 to 2.0.0. How can I install the previous GWT plugin for Eclipse (I believe version 1.1.0) that uses the 1.7.1 GWT SDK? Are previous versions of the GWT plugin being archived anywhere? Ideally I don't want to have to download a separate GWT bundle distribution on the side and then have to tweak Eclipse to point to it (given that I was able to seamlessly install it in the past via the site update). If it's helpful in anyway, I'm using Galileo 3.5.1. Thanks in advanced for any 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-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: Installing GWT Eclipse plugin, version 1.1.0
Rajeev, thanks for your reply. You can use the Google Plugin for Eclipse 1.2 with GWT 1.7 - they are compatible. If this is the case, I don't care at all about which GPE version is exposed via the update site, so long as it works with GWT 1.7.1. So GPE 1.2 will work for me. So, you can install the latest plugin from the update side BUT exclude the installation of the SDK. This is my problem. I want to be able to install the GWT 1.7.1 SDK via the update site on a brand new Eclipse installation, which doesn't have any GWT SDKs. Currently there is no mechanism for selecting the GWT SDK to be installed: the update site currently forces you to pick GWT 2.0.0. Downloading the whole GWT distro just to tell Eclipse to use that particular SDK sounds pretty silly, specially when I was able to do it seamlessly via the update site two months ago. If I understand correctly, there is no real reason for disabling the GWT 1.7.x SDK in the update site (as it could be used with the latest GPE, so this combination wouldn't produce an invalid environment). Could please confirm if this is correct? Thanks again. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT as part of repository or not?
I recommend you put it in your VCS. Having it in the repository does not impact anyone negatively and makes everybody's life easier. If you must, set up your project so that you can override the default version by changing a per-developer setting or an environment variable and you're good to go, but this should be for experimentation only. You should dictate an approved version and everyone should be using that; otherwise someone will commit code that uses newer features not available in previous versions and, generally, chaos will take over your project. rjcarr escribió: You list good pros and cons so you'll have to just decide which is the stronger argument for your situation. Since our project is developed in mixed environments, and the developer base isn't very big, it made sense for us to go with your second option (although we use property files not environment variables). However, I can see justification in checking it in. Good luck! On Nov 21, 3:22 pm, jbdhl jbirksd...@gmail.com wrote: I can't decide where we should place GWT itself for a project with multiple developers: 1) In the svn repository as part of the project. Pros: * The developers GWT version will always match what is being used in the project * No potential problems with GWT binaries being located differently for different developers. All scripts can just refer to the same relative path(s). Cons: * It's kind of ugly to commit third-party stuff into the project repository 2) Each developer download their own GWT version and let an environment variable, GWT_ROOT, point to it. Pros: * No third party stuff in project repository Const: * Possible conflicts if developers use different GWT versions * Possible problems with developers different placements of GWT. What would you suggest? -- You received 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=. -- You received 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: Maven + GWT 1.7.1
It seems that the 1.7.1 release has been published to the Maven central repo. Unfortunately, the jar gwt-dev-1.7.1-mac.jar was left out, so if you're on a Mac your build will break. Hope this jar gets published soon... --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Browser refresh button
Hi there: there's plenty of documentation regarding the handling of the browser's back button with GWT's History tracking. I understand the concept of mapping a String token to a specific application state. Does GWT provide a mechanism to notify the application whenever the user clicks the browser's refresh button? (ie the equivalent to History.addValueChangeHandler() for the back button). Is there a recommended strategy for handling the browser's refresh button in the context of a GWT app? I'm curious to learn how are your applications currently dealing with this. Thanks in advance for any comments and suggestions. Javier. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Hibernate GWT
Hello folks: I've posted this question to the Hibernate user's forum, but in the absence of replies, I am posting it here as well, in the hopes that some of you may shed some light. Please accept my apologies if this is the second time you see this post. I'm about to engage in an enterprise project whose front-end is to be built with GWT. I've had some Hibernate experience from past projects and really like the ORM mechanism used by Hibernate for marshalling/ unmarshalling from a database. Now, as some of you know, domain entities need to be transferred over the wire for GWT's consumption: entities that have been instrumented with persistence information will fail at the client side, as GWT cannot handle these objects. So I've done some research and I've come across two common solutions to this problem: 1) Using a framework called Gilead; 2) Replicating the domain model hierarchy with a second class hierarchy used exclusively for data transfer (aka Data Transfer Objects representing the persistent domain objects). None of these solutions are good in my current situation: 1) Gilead intrudes into the design of an application by forcing the entities to inherit from “LightEntity” and forcing RemoteServiceServlet descendants to extend “PersistentRemoteService”. Our design cannot allow this, as both of these type of objects already inherit from a different hierarchy. 2) Our domain model is composed of 30 classes, some of which have quite a few getters/setters. Replicating this domain model sounds like trip to maintenance nightmare street, not to mention the amount of extra code that we'll need to map things back-and-forth. So even though I know (from experience) that Hibernate will make me a lot more productive accessing the database than the alternative (ie hand-coding with JDBC), all this productivity goes down the drain if I now have to deal with recreating the objects in order to properly talk to the client layer. So now my question is, can I get away with the following: 1) make every single persistent entity to always load everything eagerly by default (ie lazy=”false”) and make lazy loading the exception to the rule (ie when fetching lists of things); 2) use a stateless Session-per-request approach, so that every time I need something from the db a brand new persistence context is initialized. I understand that I'll be giving up caching and hence, taking a performance hit, what I'd like to know is, how bad is this hit? is this an acceptable compromise in my case? Is this approach still better than going back to manual JDBC days? Please advise if this is a horrible approach and if there is something I should know before I put a rope around my neck. Thanks in advance for any ideas, comments or suggestions. --~--~-~--~~~---~--~~ You received 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: Getting a simple GWT project to gwt-compile in maven2
After comparing your pom.xml with the pom in one of my working projects, I found some differences; the following is what I have that you don't: 1)In the maven-war-plugin section (notice the missing “/” before war): configuration warSourceDirectorywar/warSourceDirectory /configuration 2) gwt-maven-plugin section: plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId version1.1/version configuration runTarget//runTarget modulecom.foo.YourGwtModuleNameHere/module /configuration executions execution goals goalcompile/goal /goals /execution /executions /plugin 3) maven-eclipse-plugin (to keep your eclipse configuration after adding more dependencies in Maven): plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.7/version configuration downloadSourcestrue/downloadSources downloadJavadocsfalse/downloadJavadocs useProjectReferencesfalse/useProjectReferences additionalBuildcommands buildcommandcom.google.gwt.eclipse.core.gwtProjectValidator/ buildcommand buildcommandcom.google.gdt.eclipse.core.webAppProjectValidator/ buildcommand /additionalBuildcommands additionalProjectnatures projectnaturecom.google.gwt.eclipse.core.gwtNature/ projectnature projectnaturecom.google.gdt.eclipse.core.webAppNature/ projectnature /additionalProjectnatures classpathContainers classpathContainercom.google.gwt.eclipse.core.GWT_CONTAINER/ GWT/classpathContainer classpathContainerorg.eclipse.jdt.launching.JRE_CONTAINER/ classpathContainer /classpathContainers /configuration /plugin I'd recommend you to take out the “goaltest/goal” from the maven- gwt-plugin, unless you need to run GWTTestCase extensions. Hope it helps. --~--~-~--~~~---~--~~ You received 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: BUG in 1.5.3 and DecoratedPanel, Standard theme and IE7
The documentation is for GWT 1.4... so 1.4 != 1.5 != 1.6 However, here's is the documentation for 1.5 (which is not updated). http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=FAQ_ChangeLocationGWTApplicationFiles Cheers, On Apr 16, 4:17 am, Thomas Broyer t.bro...@gmail.com wrote: On 16 avr, 04:13, Javier Mena javim...@gmail.com wrote: When compiling a project that uses a DecoratedTabPanel with standard theme and the project folder is renamed, and using and index outside the folder, it doesn't render well in IE. Found in GWT Release (e.g. 1.5.3, 1.6 RC): 1.5.3 Encountered on OS / Browser (e.g. WinXP, IE6-7, FF3): IE7 Detailed description (please be as specific as possible): According to documentation: http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.h... If want I can relocate the module to any directory I want. 1.6 != 1.5 Seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=2547 (fixed in 1.6 by no longer using AlphaImageLoader in the three packaged themes, seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=3278) --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
How do I change the location of my cache/nocache HTML files
Hi, I'm trying to relocate the nocache files, but it doesn't work. See http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/16d306b481911fec/f5d5c4becaf016a5?lnk=gstq=javimena#f5d5c4becaf016a5 Where can I find an updated information for GWT 1.5? 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: How do I change the location of my cache/nocache HTML files
Ok. Thanks. But the documentation is not updated... it's for 1.3 and 1.4. Not for 1.5. Cheers, On Apr 16, 11:27 am, Thomas Broyer t.bro...@gmail.com wrote: On 16 avr, 16:56, Javier Mena javim...@gmail.com wrote: Hi, I'm trying to relocate the nocache files, but it doesn't work. Seehttp://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... Where can I find an updated information for GWT 1.5? Issue 3278, which I pointed out in the thread you link to, proposes a workaround:http://code.google.com/p/google-web-toolkit/issues/detail?id=3278 Or you could apply the patch to your GWT 1.5 install (simplest thing: copy the theme into your app, apply the same changes as those made in GWT 1.6, add the new IE6-specific images, and then use your modified theme instead of the one from GWT 1.5). Anyway, the page you were looking for:http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5t=FAQ_... --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Uses of generator to proxying a service call
Hi, I need to check, that everytime I call a service, the user is logged in the application. To do this I make a call to a function called isLoggedIn(). I need to do before every call to every service (except for a single function that is used to check the service) so I've been thinking in using generator. For example, interface FooServ { @doNotRewrite public boolean check(); public void doXXX(); } interface FooServAsync { public void check(AsyncCallbackBoolean); public void doXXX(AsyncCallback ac); } And I need a wrapper the a class similar to this to be generated: class FooServAsyncProxy implements FooServAsync { FooServAsync realService; FooServAsyncProxy() { // ** I THINK THIS LINE IS PROBLEMATIC this.realService = GWT.create(FooServ.class); } public void check(AsyncCallbackBoolean ac) { realService.check(ac); } public void doXXX(AsyncCallback ac) { if (checker.isUserLoggedIn()) { realService.doXXX(ac) } else { ac.onFailure(new LoginException(user not logged in)); } } } 1. can I call GWT.create in the generated code? 2. what are the missing details of this approach? 3. do I need a new interface for the replacement? Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---