Re: CellTable, possible to addRow() instead of addColumn() in some way ?
Hello, I'm also looking for a similar solution. Let me know if you make any progress on this. Thanks, Sandeepa -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
weird effect with UmbrellaExceptions in GWTTestCase?
I noticed a weird effect if an UmbrellaException is thrown inside a GWTTestCase. The test does not fail but hangs until timeout. Can someone confirm this behavior? my code to test this: public void test() { SetThrowable exceptions = new HashSetThrowable(); exceptions.add(new NullPointerException(test)); throw new UmbrellaException(exceptions); } The problem occurs in devMode and webMode, so I think its a problem with the 'communication' between the GWTTestCase and JUnit. Other exceptions seem to get forwarded to junit as expected and let the test fail. I use gwt 2.1.1 in eclipse 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.
GWT generating i18n properties
Hi We have a number of Constants and Messages interfaces in our project which use the @Generate annotation. Up until recently GWT was generating the .properties files for each locale without any problems. However it seems that this isn't working any more. We have recently upgraded to GWT 2.1, I don't know whether anything is different now i.e. whether you need to explicitly set these properties files to be generated in the compile? We're using the GWT Maven plugin 2.1. Any ideas would be appreciated. Thanks Phill -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 generating i18n properties
Apologies for answering my own question, but it seems that this is to do with the extraParam configuration parameter added to the Maven GWT plugin in 2.1. http://mojo.codehaus.org/gwt-maven-plugin/compile-mojo.html#extraParam I added this to the project configuration, and the 'extra' directory was included in the output with the generated .properties files. Thanks Phill On Feb 21, 9:32 am, Phill Sacre phillip.sa...@gmail.com wrote: Hi We have a number of Constants and Messages interfaces in our project which use the @Generate annotation. Up until recently GWT was generating the .properties files for each locale without any problems. However it seems that this isn't working any more. We have recently upgraded to GWT 2.1, I don't know whether anything is different now i.e. whether you need to explicitly set these properties files to be generated in the compile? We're using the GWT Maven plugin 2.1. Any ideas would be appreciated. Thanks Phill -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Panels and content problem
Hi Guys! I think I lost and I don't understand what's happening. So, I need some help. My application is based on a dockLayoutPanel and in WEST is loaded an tree which is the menu. If the user clicks on the element of the menu into CENTER a new user interface based on SimplePanel is loaded. If the content is a TablayoutPanel (every tab is a SimplePanel) the content of the particular tabs doesn't show. I don't know why. I can see in the source code the content is changing in every click but I can't see the changes on the browser. On other hand there is no special CSS rules. I'm appreciating your kind help in advance! András -- - - -- Csanyi Andras (Sayusi Ando) -- http://sayusi.hu -- http://facebook.com/andras.csanyi -- Trust in God and keep your gunpowder dry! - Cromwell -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to make a TextArea auto-growing...?
On Fri, Feb 18, 2011 at 8:15 PM, Andy pula...@gmail.com wrote: I'm refactoring the code into gwt-traction right now, but noticing that GQuery no longer has this static method: public static String curCSS(Element elem, String name, boolean force) Use $(elem).cur(name, force); I should be close once I find its replacement. On Feb 18, 11:44 am, Andy pula...@gmail.com wrote: We have a good implementation of both an auto-sizing TextArea (vertical) and an auto-sizing TextBox (horizontal) that automatically adjust to the CSS specified for the box (accommodating different fonts, line-height, padding, etc). I've been meaning to share it for a while and will do it this weekend. It's currently dependent on GQuery.curCSS to get the computed styles. I was hoping to remove that dependency before adding it to our gwt- traction library but since we use GQuery in other places, it hasn't been a priority for me. I'll try to remove that, but the first version may require GQuery. I should be able to have it up by Monday. Hopefully you can wait that long. I'll update this thread when it's available. Cheers, Andy On Feb 18, 6:38 am, Carlo Alberto Degli Atti lordk...@gmail.com wrote: Hi, I've looked around but I haven't found any solution, so I post it here: how can I make a TextArea that expands its height depending on the text inside? Thanks CA -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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.
Getting absolute path of web app
Hi, When I was running on Windows, the ./ directory would be tomcat_home/webapps/my_app but now I'm running on ubuntu it just refers to my tomcat home directory. Is there a way of getting the absolute path of my web app so I can make it a bit more platform independant? Thanks, Jon -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 absolute path of web app
you obtain it from your servlet context: i.e. getServletContext().getRealPath(/WEB-INF) from within your servlet On 21 Feb., 11:30, Jon Britton mankillseveryth...@googlemail.com wrote: Hi, When I was running on Windows, the ./ directory would be tomcat_home/webapps/my_app but now I'm running on ubuntu it just refers to my tomcat home directory. Is there a way of getting the absolute path of my web app so I can make it a bit more platform independant? Thanks, Jon -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 absolute path of web app
*sry for doublepost* i.e. servletContext().getRealPath(/); from within your servlet On 21 Feb., 11:30, Jon Britton mankillseveryth...@googlemail.com wrote: Hi, When I was running on Windows, the ./ directory would be tomcat_home/webapps/my_app but now I'm running on ubuntu it just refers to my tomcat home directory. Is there a way of getting the absolute path of my web app so I can make it a bit more platform independant? Thanks, Jon -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: exception translation
With concurrency I mean something like this: http://en.wikipedia.org/wiki/Optimistic_concurrency_control I am not setting the error code by myself. The thing is that GWT is shomewhere translating the original exception created through hibernate (concurrency detected) to the excetion postet above. In this step the error code is set automatically. Because of the fact that the ServletException is an unchecked exception GWT has to make a translation to a standard exception (in this case InvocationException/StatusCodeException). So I think I should modify this translation machanism - but does anybody know how to do this? Is there any better way of doing that? I really appreciate your help! On 17 Feb., 18:15, Thomas Broyer t.bro...@gmail.com wrote: I'm not sure what you mean by concurrency here, but how about returning a 409 (Conflict) status code instead of 500? http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.10 500 means internal server error, i.e. something the client cannot do anything about. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RequestFactory url-mapping
Hi , this this my implementation: interface MyFactory extends RequestFactory{ @Service(value = UserServiceImpl.class, locator=...) interface UserRF extends RequestContext{ RequestBoolean login(String uname, String pwd); } UserRF userRequestFactory(); interface DataRF extends RequestContext{ RequestString getData(Long id); ... } DataRF dataRequestFactory(); } i want to put UserRF DataRF through different Servlet-Filters, what should i do for this. per default everything will be mapped to /gwtRequest thanx for your help khiem -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory url-mapping
You can't. You can however make 2 RequestFactory interfaces (or instantiate your single interface twice) and initialize them with different RequestTransport. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: exception translation
GWT needs to wrap any exception to make it serializable and prevent the server from answering a 500 http status code. that is, GWT moves exception handling from HTTP layer to each own and the exception is handled on the client, which first tries to parse the exception and rethrows it, thats how RPC handles it. however, you can give your implementation of RemoteServiceServlet and handle, maybe some special exceptions, your way, and even return them to the client if you want without having RPC stack to handle them On 21 Feb., 12:37, klemensr klem...@reinthaler.info wrote: With concurrency I mean something like this:http://en.wikipedia.org/wiki/Optimistic_concurrency_control I am not setting the error code by myself. The thing is that GWT is shomewhere translating the original exception created through hibernate (concurrency detected) to the excetion postet above. In this step the error code is set automatically. Because of the fact that the ServletException is an unchecked exception GWT has to make a translation to a standard exception (in this case InvocationException/StatusCodeException). So I think I should modify this translation machanism - but does anybody know how to do this? Is there any better way of doing that? I really appreciate your help! On 17 Feb., 18:15, Thomas Broyer t.bro...@gmail.com wrote: I'm not sure what you mean by concurrency here, but how about returning a 409 (Conflict) status code instead of 500? http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.10 500 means internal server error, i.e. something the client cannot do anything about. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to make a TextArea auto-growing...?
I just confirmed it's in there: jar tvf gwt-traction-1.2.jar | grep AutoSizingTextArea.class 4333 Fri Feb 18 17:35:22 EST 2011 com/tractionsoftware/gwt/user/ client/ui/AutoSizingTextArea.class Did you add this to your .gwt.xml? inherits name='com.tractionsoftware.gwt.user.AutoSizingTextArea'/ Are you getting this error in DevMode or trying to compile? On Feb 20, 4:46 pm, Deepak Singh deepaksingh...@gmail.com wrote: Hi, I am having gwt-traction-1.2.jar, gwtquery latest jars. final AutoSizingTextArea contactText = new AutoSizingTextArea(new TextAreaWithSelection(), 40, 600); contactText.addStyleName(small); The above code gives NoClassDefinitionFound for AutoSizingTextArea. I make sure that i have correct jars added to the build path. Thanks Deepak On Sun, Feb 20, 2011 at 8:30 PM, Carlo Alberto Degli Atti lordk...@gmail.com wrote: Hey guys, thank you very much for your contributions! I've quickly given a look to gwt-traction from Andy, it seems really interesting.. @Brandon I tried it with chrome, but the TextArea doesn't expand vertically... (I'm reading now that @Jeff already noted it) Thank u everybody! CA On Feb 20, 5:04 am, Brandon Donnelson branflake2...@gmail.com wrote: Nice link, they do it better I think than I did. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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.
CellTree remove Nodes on the fly breaks the tree in IE
I have recently used GWT CellTree widget to populate an XML data in my project, The tree allows user to add, edit, move up/down tree nodes and finally update the actual XML file, I have managed to implement this functionality by storing ListDataProvider instances which are used in the tree. if user removes a node I remove it from both corresponding data provider instance and XML tree. Then it updates the list dynamically and reflects the changes in the tree. I used this approach because I did not find any other alternative way to do dynamic tree manipulation in GWT cell tree. but I encountered a problem with node removal functionality in IE (7 8). after removing a node and try to collapse or open any node in the tree GWT throws a runtime 'firstChild' is null or not an object error and cannot do any operation on the tree after that. Can anyone faced this problem? please let me know if there are any workaround found, I am using GWT 2.1.1 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.
The operation order (req.getOperations()) of EntityProxy and ValueProxy on the server side
In short, the value (proxy) is not updated before entity (proxy) on the server side. So, the value is not updated correctly. Detail: Say I have entity E with a property V which uses ValueProxy. The Entity E is fetched and updated like this: private void edit(RequestContext requestContext) { editorDriver = GWT.create(Driver.class); editorDriver.initialize(requests_factory, my_account_editor); if (requestContext == null) { fetchAndEdit(); return; } editorDriver.edit(edit_response, requestContext); } void fetchAndEdit() { RequestMyEntityProxy fetch_request= requests_factory.MyEntityRequest().getMyEntity(); fetch_request.with(editorDriver.getPaths()); fetch_request.to(new ReceiverMyEntityProxy() { @Override public void onSuccess(MyEntityProxy response) { edit_response= response; MyEntityProxyRequest edit_request= requests_factory.MyEntityRequest(); edit(edit_request); // the function is see below edit_request.persist().using(edit_response); } }).fire(); } This works fine until I update them on the server side by calling editorDriver.flush().fire(...). The payload Json (as in com.google.gwt.requestfactory.shared.impl.AbstractRequestContext::doFire()) looks like this: { I: [ { O: banana.TestRequestFactory$MyEnityRequest::persist, P: [ { S: IjUi, T: banana.MyEntityProxy } ] } ], O: [ { O: UPDATE, S: IjUi, T: banana.MyEntityProxy, V: MA==, P: { test_value: { R: 1, C: 1, T: banana.MyValueProxy }, test_string: m@m1, } }, { O: PERSIST, R: 1, C: 1, T: banana.MyValueProxy, P: { foo: 1, } } ] } You see the problem?! MyEntityProxy is updated first!! MyValueProxy is updated after Entity is saved to the database. So we lost the updated value from the client side! The corresponding code on the server side is in com.google.gwt.requestfactory.server.SimpleRequestProcessor::processOperationMessages(final RequestState state, RequestMessage req). the req message corresponds to the JSON string. How is the dependency/order handled here? - Tom -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory Entity validation.
I'm also wondering about this. Another example would be if you want to use the User-bean for creation of users - as well as editing (different constraints). I guess there's no way to do this today? One possible way to implement this could perhaps be to allow annotations on the methods in the (extensions of) RequestContext. E.g: @ValidationGroup(value={group1, group2}) /Lars On Feb 7, 3:11 pm, Lazo Apostolovski lazo.apostolov...@gmail.com wrote: Hello group. I use GWT RequestFactory and Hibernate validation to make syntactic validation. I have one object who need to be validated, but in different cases I need validation on different fields. Short example: class User { @NotNull private String name; @NotNull private String nickName; } In one case I want to load User by name, and want to perform syntactic validation only by name field. In other case validation need to be performed by nickname. Is there any way to use Validating Groups? any other solution? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: GPE auto-complete only partially working for UiBinder tags
I can't make it default and filed a bug. http://code.google.com/p/google-web-toolkit/issues/detail?id=6039 You should be able to go to Window Preferences General Editors File Associations and in the list on the right, choose *.ui.xml and choose between UiBinder Template Editor and WindowBuilder Editor, but it's not there. I tried clicking Add... and adding *.ui.xml as a new type, but it throws an assertion error in the Eclipse log. On Feb 20, 4:21 pm, Filipe Sousa nat...@gmail.com wrote: Thanks for the tip Thomas. By the way, do you know if there is any way to make it default? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Web Application .launch configuration on a Mac adds -d32 -xstartOnFirstThread to VM ARGS
Using GWT 2.1.1 and latest Google Web Toolkit plugin in Eclipse 3.6. I have a Run Configuration - Web Application that keeps adding options - d32 -xstartOnFirstThread to the VM ARS in my run target. If I try to remove those arguments and save it, then re-open Run Configurations I see them put back. I'd like to find out why it keeps adding both of these arguments - I do not use SWT, so there should be no reason for startOnFirstThread. I run a 64-bit machine with 64-bit Eclipse, so it should not be adding -d32 argument either. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
UiBinder PushButton states styling issues
Hey guys, I'm trying to style all the PushButton states but I'm having some issues understanding how to style each separate state when I use a custom class. ui:style .loginButton { background-color: green; } .loginButton-up-hovering { background-color: blue; } /ui:style g:HTMLPanel g:PushButton styleName='{style.loginButton}' text='My PushButton' /g:PushButton /g:HTMLPanel This is the code I'm using to style the button and my problem is that the .loginButton style class gets obfuscated to .GBS5M0VBIF and .GBS5M0VBIF-up-hovering while hovering, and my .loginButton-up- hovering class gets obfuscated to .GBS5M0VBJF so it won't get applied to the button. How can I tell GWT which class to use when hovering when using custom style class? Any help is greatly appreciated! Thank you! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: migrate GWT 2.1.1 to 2.2 error
Hi Alex, Just to confirm ... I had the same problem and your suggested fix to add gwt-dev to the pom fixed it for me. Cheers, Jason On Feb 15, 6:34 pm, F. Lancer flance...@gmail.com wrote: Hi, Brice. Try to add 'gwt-dev-2.2.0.jar' to your project and rebuild. pom.xml: dependency groupIdcom.google.gwt/groupId artifactIdgwt-dev/artifactId version2.2.0/version typejar/type scopecompile/scope /dependency You will have [WARNING] Don't declare gwt-dev as a project dependency. This may introduce complex dependency conflicts but you project will be built.Probably :) Regards, Alex. On Feb 15, 8:46 am, Brice Beaumesnil skalim...@gmail.com wrote: Hello, i just try GWT 2.2 on my project, i just change my POM file to use version 2.2 and when i try to compile i have this error : Loading inherited module 'com.google.gwt.user.User' [INFO] Loading inherited module 'com.google.gwt.user.RemoteService' [INFO] [ERROR] Unexpected error while processing XML [INFO] java.lang.NoClassDefFoundError: com/google/gwt/core/ext/GeneratorExt [INFO] at java.lang.ClassLoader.defineClass1(Native Method) [INFO] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) [INFO] at java.lang.ClassLoader.defineClass(ClassLoader.java:616) [INFO] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [INFO] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) [INFO] at java.net.URLClassLoader.access$000(URLClassLoader.java:58) [INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:197) [INFO] at java.security.AccessController.doPrivileged(Native Method) [INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) [INFO] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [INFO] at com.google.gwt.dev.cfg.ModuleDefSchema$ClassAttrCvt.convertToArg(ModuleDefS chema.java:778) [INFO] at com.google.gwt.dev.util.xml.HandlerArgs.convertToArg(HandlerArgs.java:64) [INFO] at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:22 1) [INFO] at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectivePa rser.java:274) ... Idid'nt have any problem with older version of GWT. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Clear Center of a DockLayoutPanel
I am new in the world of GWT and I haven't used UIBinder yet. But when I use DockPanelLayout and center must be replaced, the solution I found on the Internet is overloading DockLayoutPanel and rewriting the add method. Hope this is useful for you. public class DockLayoutPanelReplaceable extends DockLayoutPanel { @Override public void add(Widget widget) { if (getCenter() != null) { remove(getCenter()); } super.add(widget); } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Module organization and loading
Hi, I'm pretty new to GWT and I'm already using it to develop an application. I was reading on what are modules and how to organize the code using modules and most of what I red was about modules as reusable components, and that given the way modules are all flattened into one single JS file (don't know if I understood this part right or if I'm mixing it up) it makes no difference to divide the code into modules. That is, apart from the fact that the code gets to be more organized. So, I have a project where I need to create a CCG game inside the browser, the application is made up of three or four pages: index/ about, lobby, statistics and game area. I was thinking about creating one HTML file and one module for each of these four areas. How will that affect the way JS files are created and how do I get to communicate between the modules so that, for example, login is centralized and every module is able to direct the user to the login page is needed. I'm still trying to understand how to proceed with GWT and would like to ask for some comments on my idea. I'll also be using PHP and maybe the yii framework as the server component, don't know if that is going to affect my module's development. Regards, Sérgio Lopes -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Ganymede Eclipse Older GWT Plugin link needed
download the older versions of gwt file from the web and then install it offline. I did it . On Feb 18, 9:47 am, Mulder udpa...@gmail.com wrote: If I try to install the latest version of the GWT eclipse plugin for Ganymede, it fails to download. Is there a way I can get to the older versions of the plugin from the update site? Note: the plugin has worked since last year when I downloaded fromhttp://dl.google.com/eclipse/plugin/3.4 My PC crashed few months ago, and reinstalling the plugin now (which is much newer that what I had installed earlier) fails to download and install. So I want to get to older versions of GWT plugin. 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.
Need help with how to handle system events like the system sleeping/waking
I have written an app that works fine, but when the user PC sleeps due to power settings and the channel times out, I have to refresh the browser to restart the app. I would like to find a handler that will do something just before the system sleeps and do something else as the system wakes up again. I'm looking for a window or browser handler with onSleep() and onWake() methods or something like that. Anybody know where I can 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.
Which html element is (+/-) element in the CellTree? How can I edit it's id?
Hello all, In the application I'm working on, that is build using gwt-2.1.1, there is CellTree presentation widget that creates a structure of folders containing subfolders in the application.Thefore a rootFolder may contain one or more folders and each subfolder may contain one or more subfolders. It's much like the example provided in http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTree where Friends collection has another collection of grouped by initial letter contacts, but with more depth. The '+' element on the left of a folder in the application represents (as expected from CellTree) that the folder contains subfolders and holds an onClick event that allows the parent folder to be expanded and subfolders to be displayed. But which is the '+' element (plusElement) in the code and how is that created? Can I make use of my own style class and add my own html id in this element by using plusElement.getElement().setId() or plusElement.getElement().setAttribute(class,myCSSClass) ? The getElement() method is contained in the com.google.gwt.user.client.ui package, in the UIObject Class. Thanks in advance, Anastasia -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Where is it advisable to put JPA mapped Entity classes?
Hello group, I am sorry for cross-posting. I am only responding to suggestions. I will appreciate if someone can provide help about GWT/JPA on this thread: http://groups.google.com/group/google-appengine/browse_thread/thread/f1644415185bcacf# Kind regards -- Odeyemi 'Kayode O. B.Sc(Hons) Econs, Application Developer Systems Engineer (Sun Certified Professional), Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer Website: http://sinati.com http://www.sinati.com Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde, http://www.google.com/profiles/dreyemi Skype:drecute -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: SAXParseException when using SafeHtml Template
Valid XML requires there to be a single root element. That is why it works when you wrap the two elements in a block. Richard On Feb 19, 6:13 pm, zixzigma zixzi...@gmail.com wrote: Thank you Ryan, it Worked !!! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Server Push
Hi Nate/(Robert?) Very interesting project. On 2/20/2011 4:39 PM, Robert Lockwood wrote: This project is to provide a web page GUI to control sensors that connect to other (PC104) computers. The whole system, everything, will be on a LAN on our research aircraft and will not connect to the web. I know that this is a bit unusual. This provides a universal GUI that is not required to be displayed only on our clunky FAA certified flat screen display (the display is OK but the mouse and keyboard are difficult to use). Hmm - just to clarify - you want to be able to display on devices other than the FAA screen. Do you have complete control over what device upon which your GUI is being displayed? My reason for asking is that there's a lot of overhead involved in learning about/developing/installing a web server and web client applications and your use case is so far from how such applications are normally used that it might be worth considering alternatives. For example, you could write an RIAA application in Java/Swing which would reverse the normal server/client approach. Your main application could be the client and you could generate requests from the RIAA app. You could use standard java networking (which is much simpler than messing about with browser serialization) and implement a text book threaded pooling loop in less than 100 lines of code. You could actually use other display toolkits - for example, GTK or WxWidgets if you'd prefer to write in C++. Or you could stick with Java and use an applet - still a perfectly viable technology and one that works well when you are not trying to interface to every possible version and brand of web browser. These solutions may be a better fit for your application than GWT. As this is the GWT list, if you wish to pursue this line of discussion its probably best to contact me off list. HTH Regards Alan The main program with will be running at the same time as whatever server we install on the same machine and will take care of servicing the other two or three PC104s each of which will control one or two sensors, mostly imaging radiometers. The web page will have buttons for the user, some kind of status log, a canvas, and probably popups to enable entry of text or numbers. I expect it to be rather simple as it is only an interface to the controller application providing commands to the controller and receiving status messages. Commands allow the user to turn cameras on and off etc. and to monitor operation. After initialization of everything there won't be much activity. I expect that the headless PC104s that control the sensors will boot and initialize without user input and then wait to connect to the master controller. Thanks for your reply. On Sun, Feb 20, 2011 at 3:07 PM, Alan Chaney a...@mechnicality.com mailto:a...@mechnicality.com wrote: Nate, See comments below: On 2/20/2011 11:02 AM, Nate wrote: I just started with GWT and Eclipse and am new to Java as well - but learning. I'm trying to code some proof of concept apps for our larger project. My model is that the GWT will start about at the same time that my main application starts. A GWT application is a way of creating a Javascript web page intended for AJAX operation - it starts when you enter a URL in a browser and the page is fetched from the server (or reloaded from a local cached version). Specifically speaking, your code execution is triggered by the browser onload event for the body tag. The user will establish a connection at some point. Only one user will connect at any time. To what? You mean only one client will connect to your server app. at one time? Thats a very unusual setup for a web server. Also, see above - the 'user' will establish a connection by opening the URL. The main application will enqueue status messages for delivery to the server side when requested where they will be enqueued until requested by the client. Its not clear to me what you mean by main application - is this your business layer? Normally, you run web apps inside a servlet container, which responds to HTTP requests from the client (which may or may not be XHR) and then transfers a result page/data, which may be HTML, XML, JSON or binary depending upon the request type. Typically these apps have two or three layers - search google for web application architecture I had thought to use a timer to send the requests but now see that it is possible to for the server to push the data (Strings). If you mean real server push to the client, that requires something like WebSockets (not widely supported, yet) or Comet (not supported on all servers). These generally require 'long running' TCP requests (similar to XMPP). See:
Re: The operation order (req.getOperations()) of EntityProxy and ValueProxy on the server side
On Sunday, February 20, 2011 11:41:28 AM UTC+1, Tom Fishman wrote: The payload Json (as in com.google.gwt.requestfactory.shared.impl.AbstractRequestContext::doFire()) looks like this: { I: [ { O: banana.TestRequestFactory$MyEnityRequest::persist, P: [ { S: IjUi, T: banana.MyEntityProxy } ] } ], O: [ { O: UPDATE, S: IjUi, T: banana.MyEntityProxy, V: MA==, P: { test_value: { R: 1, C: 1, T: banana.MyValueProxy }, test_string: m@m1, } }, { O: PERSIST, R: 1, C: 1, T: banana.MyValueProxy, P: { foo: 1, } } ] } You see the problem?! MyEntityProxy is updated first!! That's right. MyValueProxy is updated after Entity is saved to the database. That's wrong. Because all operations are applied before invocations are processed. The corresponding code on the server side is in com.google.gwt.requestfactory.server.SimpleRequestProcessor::processOperationMessages(final RequestState state, RequestMessage req). the req message corresponds to the JSON string. How is the dependency/order handled here? First, all domain objects are retrieved by ID (as is the case for your banana.MyEntityProxy, because O:UPDATE) or created (as is the case for your banana.MyValueProxy, because O:PERSIST), then properties are set, in order (which means that an empty MyValue is given to MyEntity#setTest_value, before its setFoo is called). This is because on the client side, you .edit()ed the entity before you .edit()ed the value. But the persist() method is called after all domain objects have been updated, so you should see the foo=1 in the MyValue object. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: SAXParseException when using SafeHtml Template
GWT 2.2 uses an (sort-of) HTML parser instead of XML parser; does it work better there? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UiBinder PushButton states styling issues
You can add @external .loginButton; inside your ui:style definition. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: best practice for callbacks
Use unique click handlers. Then each clickhandler knows where it came from, so to speak, and can use a unique callback to update the appropriate widgets. Alternatively, you could pass an enum of some kind to a common click handler, and case through the possibilities in the callback. To me, thats significantly less elegant, but it would still work. -Ben On Feb 19, 9:20 am, frank t3devt...@googlemail.com wrote: Hi, I have the following Problem. From many different methods (e.g. a Clickhandlers) I call the same async service on the server. In the callback I don´t have access on the variables of my calling method, which I need, to decide, who called the service. (for example to update different UI-Widgets) Is there a better way as using kind of global variable? Thanks 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.
How to add https channel in GWT
Hi all, I want to add https channel in GWT when use gwt-maven-plugin, but I found it is hard to success in GWT Development Mode. here is my pom.xml, I only view some key part plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId version2.1.0-1/version executions execution goals goalcompile/goal goaltest/goal /goals /execution /executions configuration runTarget/login/runTarget hostedWebapp${webappDirectory}/hostedWebapp i18nMessagesBundlecom.ihealthy.webport.gwt.client.Messages/ i18nMessagesBundle port8080/port /configuration /plugin plugin groupIdorg.mortbay.jetty/groupId artifactIdjetty-maven-plugin/artifactId version7.3.0.v20110203/version configuration webApp${basedir}/target/${content.path}.war/webApp webAppConfig contextPath/${content.path}/contextPath /webAppConfig scanIntervalSeconds10/scanIntervalSeconds stopKeyfoo/stopKey stopPort/stopPort jettyConfigsrc/test/resources/jetty/jetty.xml/jettyConfig /configuration executions execution idstart-jetty/id phasepre-integration-test/phase goals goalrun/goal /goals configuration scanIntervalSeconds0/scanIntervalSeconds daemontrue/daemon /configuration /execution execution idstop-jetty/id phasepost-integration-test/phase goals goalstop/goal /goals /execution /executions /plugin here is jetty.xml Configure id=ServerA class=org.eclipse.jetty.server.Server Set name=connectors Array type=org.eclipse.jetty.server.Connector Item New class=org.eclipse.jetty.server.ssl.SslSocketConnector Set name=Port8443/Set Set name=maxIdleTime3/Set Set name=keystoretarget/test-classes/keystore/Set Set name=passwordmszhwa/Set Set name=keyPasswordmszhwa/Set Set name=truststoretarget/test-classes/keystore/Set Set name=trustPasswordmszhwa/Set /New /Item Item New class=org.eclipse.jetty.server.nio.SelectChannelConnector Set name=Port8080/Set Set name=maxIdleTime3/Set /New /Item /Array /Set /Configure Here is security configure file: beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:security=http://www.springframework.org/schema/security; xsi:schemaLocation=http://www.springframework.org/schema/beans
JSNI and Generic Types
Hi everyone I am trying to implement a custom HighlightEventHandler for a GWT wrapper for a third party visualization library and I run into some problems concerning JSNI and generic types. Let me try to explain. I want to implement a CustomHighlightHandler for my wrapper. GWT already has a HighlightHandler interface which uses a generic type to allow customization. So I am going to extends these interfaces to implement my custom highlight handler. The main classes/interfaces look like this: CustomHighlingtHandler: public interface CustomHighlightHandler extends HighlightHandlerCustomHighlightEvent{ } CustomHighlightEvent: public class CustomHighlightEvent extends HighlightEventMyCustomDTO { protected HighlightGeneEvent(MyCustomDTO highlighted) { super(highlighted); } } So in my wrapper I have to wire the events with my third party visualization library. I have to use JSNI to do that and here I run into problems: I use following JSNI code to wire up the EventHandler: public final native void sinkNativeEvent(HasHandlers view) /*-{ var callback_func = function(data) { var dataDTO = @mycustomnamespace.model.MyCustomDTO::new(Ljava/lang/String)(data; @mycustomnamespace.event.CustomHighlightEvent::fire(TS;TV;)(view,dataDTO); } this.api_addEventHandler(callback_func); } So if I use the inherited static fire function from gwt's HighlightEvent the compiler complains that the JSNI call has non valid parameters . So it seems that Generic types are not supported by JSNI. Is that right? A workaround for that problem is to define an additional static fire function in my CustomHighlightEvent which have non generic types as function parameters and use that in the JSNI: add this function to CustomHighlightEvent: public static void fire(HasHighlightHandlersMyCustomDTO source,MyCustomDTO data) { CustomHighlightEvent event = new CustomHighlightEvent(data); source.fireEvent(event); } and in the JSNI I can then use following call: @mycustomnamespace.event.CustomHighlightEvent::fire(Lcom/google/gwt/event/logical/shared/HasHighlightHandlers;Lmycustomnamespace.model.MyCustomDTO;)(view,data); I am not sure if thats the best workaround or what's the best approach for this? thanks in advance Uemit -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Master-details with GWT
Thank you for your suggestion Jeff. I was talking about the UI implementation of master-details. If I'm not wrong, this is what I could be: when a row on CellTable gets selected - get Master record from DataProvider - retreive related Details records from datastore -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory Entity validation.
I make a workaround to support validating by groups. Because RequestFactory validation, validate each received object separately, validation groups have to be transported separated from payload. The workaround: In the client code I create one helper object called, ValidationHelper. This object have static methods and fields. With calling static method addGroups() I define sequence from validation groups, that will be used for validating all object transfered by payload. I override configureRequestBuilder() and send() methods in DefaultRequestTransport, and I make to add all validation group sequence to be added in the request header. On the server code I get this header from request, split groups to get group class name, and I use reflection to get proper group instances. I provide this groups in ServiceLayerDecorator class and get them every time when validate() method is called. Here is the example of how this thing work. https://gist.github.com/837364 Cheers. On Sun, Feb 20, 2011 at 11:22 AM, Lars lars...@gmail.com wrote: I'm also wondering about this. Another example would be if you want to use the User-bean for creation of users - as well as editing (different constraints). I guess there's no way to do this today? One possible way to implement this could perhaps be to allow annotations on the methods in the (extensions of) RequestContext. E.g: @ValidationGroup(value={group1, group2}) /Lars On Feb 7, 3:11 pm, Lazo Apostolovski lazo.apostolov...@gmail.com wrote: Hello group. I use GWT RequestFactory and Hibernate validation to make syntactic validation. I have one object who need to be validated, but in different cases I need validation on different fields. Short example: class User { @NotNull private String name; @NotNull private String nickName; } In one case I want to load User by name, and want to perform syntactic validation only by name field. In other case validation need to be performed by nickname. Is there any way to use Validating Groups? any other solution? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Designer 2.2 error with gwt-maven project
I deleted gwt-dev directory altogether in m2 local repo but still the error persists. I also tried setting up new eclipse workspace and imported the project into it as maven project and noticed gwt dev getting downloaded (may be downloaded internally by gwt-maven-plugin as you said earlier?) and again the error comes up even after deleting the gwt dev directory again. btw, is this a bug in GPE or GWT maven plugin (if so is it logged?) and would be happy to know when we can expect a fix for this? as a temp workaround, am creating ui templates/owner java code in separate (non maven) project and copying it over to my gwt maven project, but its annoying as you can see. anyways thanks much again for your suggestions, Hari On Feb 20, 11:51 pm, Philippe Beaudoin philippe.beaud...@gmail.com wrote: Maybe try deleting all the releted dependencies from your local .m2 repo? In my case I deleted gwt-dev 2.1 and verified that it was not re-downloaded. Do the same with gin et al. Cheers, Philippe -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problem with updating to gwt 2.2
Hello I having problems with updating to gwt 2.2. I have downloaded and referenced: gin-1.0-r170.jar guice-3.0-rc2.jar guice-servlet-3.0-rc2.jar gwtp-all-0.6-20110217.132630-1.jar also dereferenced the old libraries, for guice, gin and gwpt. When i try to compile my project i get the following: Resolving javax.inject.Named Found type 'javax.inject.Named' [WARN] Ignoring unresolvable annotation type javax.inject.Qualifier Resolving javax.inject.Singleton Found type 'javax.inject.Singleton' [WARN] Ignoring unresolvable annotation type javax.inject.Scope java.lang.NoClassDefFoundError: javax/inject/Provider at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) 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) . . Caused by: java.lang.ClassNotFoundException: javax.inject.Provider 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) . . When i try to Run the project i get: 19:05:26.873 [ERROR] [rem] Failed to create an instance of 'com.myapp.client.Rem' via deferred binding java.lang.RuntimeException: Deferred binding failed for 'com.myapp.client.gin.MyGinjector' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at com.google.gwt.core.client.GWT.create(GWT.java:98) at com.myapp.client.Rem.init(Rem.java:13) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 465) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 375) . . Any idéa or solution to this promlem ? Regards /Filip -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to add https channel in GWT
You'll have to run Jetty using jetty:run and then launch GWT's DevMode with gwt:run in -noserver mode (add noServertrue/noServer to the configuration, or pass -Dgwt.noserver=true on the command line). ...or you can use GWT trunk to be able to launch GWT's DevMode with SSL enabled: http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/core/src/com/google/gwt/dev/shell/jetty/README-SSL.txt -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Master-details with GWT
Yes, that's how. If the total amount of child records for all parents isn't that many you can prefetch them all. In the onSuccess method where you receive the Parent record create a set of parent keys based on the result set you received back and send the set collection up to the server via RPC where you can issue either a query using 'in' or individual gets for each element in the set. In the onSuccess method of this second RPC call you can then propagate your parent cell table. Jeff On Mon, Feb 21, 2011 at 12:08 PM, csaffi csaff...@gmail.com wrote: Thank you for your suggestion Jeff. I was talking about the UI implementation of master-details. If I'm not wrong, this is what I could be: when a row on CellTable gets selected - get Master record from DataProvider - retreive related Details records from datastore -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/ follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: JSNI and Generic Types
Don't forget that generics in Java are implemented by type erasure, they're only syntacctic sugar. You have to use the erased types in the JSNI (i.e. Ljava/lang/Object;Lcom/google/gwt/event/logical/shared/HasHighlightHandlers;here I guess), or defined your own method as you did. I seem to remeber you could also use '*' as a wildcard when there's no overload for the method. But doesn't the Google Plugin for Eclipse auto-complete the JSNI reference for you with the appropriate argument declaration? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Serious Bug or some Type Erasure I don't understand ???
Use case: Register an event (2nd snippet) using extending classes AEntity, BEntity, CEntity Refresh a specific table - create one event and fire it (1st snippet) === the three handlers of AEntity, BEntity, CEntity are fired. Why ? Expected Case: If BEntity is refreshed - only BEntity handler should fire. CellTable refresh code: @UiHandler(fRefresh) protected void refresh(ClickEvent clickEvent) { MsgPopup.getInstance().msgSending(); SelectEntitiesEventT event = new SelectEntitiesEventT(new GenericCallbackListT() { public void onSuccess(ListT result) { System.out.println(result); MsgPopup.getInstance().msgLoading(); fDataProvider.setList(result); MsgPopup.getInstance().clearMessage(); }; }); EventBusInstance.getInstance().fireEvent(event); } Event registering - Specific classes extend this class: SelectEntitiesEvent.register(new SelectEntitiesEvent.HandlerT() { @Override public void onSelectEntities(SelectEntitiesEventT event) { service.selectEntities(event.getCallback()); } }); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Problem trying to use JSNI to eval() a JSON string
I finally figured this out (a while ago) and thought I would post the solution in case anybody else has the same problem. It turns out I needed to add an inherit line to my app.gwt.xml file, as follows: !-- Inherit the JSON parsing stuff.-- inherits name='com.google.gwt.json.JSON'/ By doing that it made the JSONParser and related classes available on the client side. I couldn't find that documented anywhere, but stumbled upon it on my own. Happy Apping! Glenn On Jan 17, 1:03 am, Glenn Simon glenncochransi...@gmail.com wrote: Thanks for trying to help, guys, but after modifying and checking the string with JsonUtils, trying com.google.gwt.json.client.JSONParser (tells me the code is unavailable and fails to load my app), and reading Google docs 'til my eyes hurt I can't for the life of me figure out how to make JSON work in my app. I know I'm doing something wrong but I can't figure out what it is. I just want a way of getting some formatted string data from the server to the client in push mode using the Channel. I can get what looks like a JSON string to the client in push mode, but can't find any tools that work to help me parse the JSON string once it is at the client. I'll try switching to XML. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Split points for method having return type other than void
Hi, How to set code splitting for entire body of methods with return type other than void as void onSuccess() will not allow to return anything? public Object myMethod() { // Object object = new Object(); // method body return object; } After we code split point as, public Object myMethod() { GWT.runAsync(new RunAsyncCallback() { @Override public void onSuccess() { // Object object = new Object(); // method body return object; } @Override public void onFailure(Throwable reason) { } }); } This will give error as onSuccess has void return type. Regards Deepak -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Split points for method having return type other than void
Have you tried Void? (with a capital V) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Server Push
Thanks, Alan, I'll do that. On Mon, Feb 21, 2011 at 7:44 AM, Alan Chaney a...@mechnicality.com wrote: Hi Nate/(Robert?) Very interesting project. On 2/20/2011 4:39 PM, Robert Lockwood wrote: This project is to provide a web page GUI to control sensors that connect to other (PC104) computers. The whole system, everything, will be on a LAN on our research aircraft and will not connect to the web. I know that this is a bit unusual. This provides a universal GUI that is not required to be displayed only on our clunky FAA certified flat screen display (the display is OK but the mouse and keyboard are difficult to use). Hmm - just to clarify - you want to be able to display on devices other than the FAA screen. Do you have complete control over what device upon which your GUI is being displayed? My reason for asking is that there's a lot of overhead involved in learning about/developing/installing a web server and web client applications and your use case is so far from how such applications are normally used that it might be worth considering alternatives. For example, you could write an RIAA application in Java/Swing which would reverse the normal server/client approach. Your main application could be the client and you could generate requests from the RIAA app. You could use standard java networking (which is much simpler than messing about with browser serialization) and implement a text book threaded pooling loop in less than 100 lines of code. You could actually use other display toolkits - for example, GTK or WxWidgets if you'd prefer to write in C++. Or you could stick with Java and use an applet - still a perfectly viable technology and one that works well when you are not trying to interface to every possible version and brand of web browser. These solutions may be a better fit for your application than GWT. As this is the GWT list, if you wish to pursue this line of discussion its probably best to contact me off list. HTH Regards Alan The main program with will be running at the same time as whatever server we install on the same machine and will take care of servicing the other two or three PC104s each of which will control one or two sensors, mostly imaging radiometers. The web page will have buttons for the user, some kind of status log, a canvas, and probably popups to enable entry of text or numbers. I expect it to be rather simple as it is only an interface to the controller application providing commands to the controller and receiving status messages. Commands allow the user to turn cameras on and off etc. and to monitor operation. After initialization of everything there won't be much activity. I expect that the headless PC104s that control the sensors will boot and initialize without user input and then wait to connect to the master controller. Thanks for your reply. On Sun, Feb 20, 2011 at 3:07 PM, Alan Chaney a...@mechnicality.comwrote: Nate, See comments below: On 2/20/2011 11:02 AM, Nate wrote: I just started with GWT and Eclipse and am new to Java as well - but learning. I'm trying to code some proof of concept apps for our larger project. My model is that the GWT will start about at the same time that my main application starts. A GWT application is a way of creating a Javascript web page intended for AJAX operation - it starts when you enter a URL in a browser and the page is fetched from the server (or reloaded from a local cached version). Specifically speaking, your code execution is triggered by the browser onload event for the body tag. The user will establish a connection at some point. Only one user will connect at any time. To what? You mean only one client will connect to your server app. at one time? Thats a very unusual setup for a web server. Also, see above - the 'user' will establish a connection by opening the URL. The main application will enqueue status messages for delivery to the server side when requested where they will be enqueued until requested by the client. Its not clear to me what you mean by main application - is this your business layer? Normally, you run web apps inside a servlet container, which responds to HTTP requests from the client (which may or may not be XHR) and then transfers a result page/data, which may be HTML, XML, JSON or binary depending upon the request type. Typically these apps have two or three layers - search google for web application architecture I had thought to use a timer to send the requests but now see that it is possible to for the server to push the data (Strings). If you mean real server push to the client, that requires something like WebSockets (not widely supported, yet) or Comet (not supported on all servers). These generally require 'long running' TCP requests (similar to XMPP). See: http://en.wikipedia.org/wiki/Comet_%28programming%29
Re: Split points for method having return type other than void
You cannot return something from an async call like that. The work will be done asynchronously, and the main program has presumably gone on its merry way while the async things are being done. If some object needs that result, a simple solution would be to pass the object into the async method, and call a method on it with the result when its ready. -Ben On Feb 21, 1:08 pm, Deepak Singh deepaksingh...@gmail.com wrote: Hi, How to set code splitting for entire body of methods with return type other than void as void onSuccess() will not allow to return anything? public Object myMethod() { // Object object = new Object(); // method body return object; } After we code split point as, public Object myMethod() { GWT.runAsync(new RunAsyncCallback() { @Override public void onSuccess() { // Object object = new Object(); // method body return object; } @Override public void onFailure(Throwable reason) { } }); } This will give error as onSuccess has void return type. Regards Deepak -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Serious Bug or some Type Erasure I don't understand ???
It seems like you are using a singleton event bus. I would assume all three entities are registered with that bus to handle the SelectEntitiesEvent. If thats the case, then I don't see why all three wouldn't have their listeners triggered. The event they registered for did get fired. -Ben On Feb 21, 12:52 pm, Riyaz Mansoor riyaz.mans...@gmail.com wrote: Use case: Register an event (2nd snippet) using extending classes AEntity, BEntity, CEntity Refresh a specific table - create one event and fire it (1st snippet) === the three handlers of AEntity, BEntity, CEntity are fired. Why ? Expected Case: If BEntity is refreshed - only BEntity handler should fire. CellTable refresh code: @UiHandler(fRefresh) protected void refresh(ClickEvent clickEvent) { MsgPopup.getInstance().msgSending(); SelectEntitiesEventT event = new SelectEntitiesEventT(new GenericCallbackListT() { public void onSuccess(ListT result) { System.out.println(result); MsgPopup.getInstance().msgLoading(); fDataProvider.setList(result); MsgPopup.getInstance().clearMessage(); }; }); EventBusInstance.getInstance().fireEvent(event); } Event registering - Specific classes extend this class: SelectEntitiesEvent.register(new SelectEntitiesEvent.HandlerT() { @Override public void onSelectEntities(SelectEntitiesEventT event) { service.selectEntities(event.getCallback()); } }); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
TabLayoutPanel + dynamic tab content + DialogBox = ?
So... I've got a TabLayoutPanel I'm trying to embed in a DialogBox, where the contents of the tabs are generated at runtime. I've seen the discussion about making sure DOCTYPE is right and that I'm pulling in CSS for the tabs. I've actually got another similar instance of TabLayoutPanel working fine as part of my main (LayoutPanel based) layout, but if I pop up a DialogBox with a TabLayoutPanel in it, I'm missing the actual tab content (the tabs themselves show up fine, styled just like my working instance.) If I explicitly set the height of the TabLayoutPanel to something, I can see the content fine. My problem is all my tab content is dynamically generated, and ideally I'd like to see the TabLayoutPanel (and the containing DialogBox) resize itself. Lots of gnashing of teeth today over this. And so, it occurs to me that DialogBox isn't descended from a LayoutPanel and I'm wondering if TabLayoutPanel is really destined to work in a DialogBox at all when resizing might be concerned... TabPanel is deprecated, and there's no LayoutDialogBox or anything around so I'm wondering how best to proceed. Is there a clean recipe for adding a bunch of content to a TabLayoutPanel and then explicitly getting it to resize itself (and it's non-Layout derived enclosures?). I tried adding all my panel contents and then just calling TabLayoutPanel.OnResize(), but didn't get anything different. Or is my best bet going back to TabPanel and wait for the day that blocks a GWT upgrade? Thoughts or insights appreciated... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Serious Bug or some Type Erasure I don't understand ???
After re-reading your post, I think I see the issue. While you didn't post code for the three derived entities, I assume you are using different type parameters for your SelectEntitiesEvent, and relying on that to keep the events distinct. I do not believe that works either in Java or in the translated JavaScript. As you mention, generics in Java work on erasure, which means they don't really exist at runtime. You would have to make them separate classes in order for the event bus to treat them as distinct. http://en.wikipedia.org/wiki/Generics_in_Java#Type_erasure -Ben On Feb 21, 2:29 pm, Ben Imp benlee...@gmail.com wrote: It seems like you are using a singleton event bus. I would assume all three entities are registered with that bus to handle the SelectEntitiesEvent. If thats the case, then I don't see why all three wouldn't have their listeners triggered. The event they registered for did get fired. -Ben On Feb 21, 12:52 pm, Riyaz Mansoor riyaz.mans...@gmail.com wrote: Use case: Register an event (2nd snippet) using extending classes AEntity, BEntity, CEntity Refresh a specific table - create one event and fire it (1st snippet) === the three handlers of AEntity, BEntity, CEntity are fired. Why ? Expected Case: If BEntity is refreshed - only BEntity handler should fire. CellTable refresh code: @UiHandler(fRefresh) protected void refresh(ClickEvent clickEvent) { MsgPopup.getInstance().msgSending(); SelectEntitiesEventT event = new SelectEntitiesEventT(new GenericCallbackListT() { public void onSuccess(ListT result) { System.out.println(result); MsgPopup.getInstance().msgLoading(); fDataProvider.setList(result); MsgPopup.getInstance().clearMessage(); }; }); EventBusInstance.getInstance().fireEvent(event); } Event registering - Specific classes extend this class: SelectEntitiesEvent.register(new SelectEntitiesEvent.HandlerT() { @Override public void onSelectEntities(SelectEntitiesEventT event) { service.selectEntities(event.getCallback()); } }); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
NotificationMole to display text with anchors (like GMAIL)
Hi Is it possible for the NotificationMole to display an anchor (like GMAIL) out of the box so that when the user clicks on it – an action can occur (via the ClickHandler)? Currently looking at the notificationMole – it displays the text in a span and I have tried to do put the text to be displayed in a Label and the Anchor for the action in a FlowPanel and to get the innerHtml from the element but this does not work and all I see is the raw HTML being displayed. Before I re-create the notifcation mole that supports composites I just want to check if I have missed something? Thanks in Advance, Ian. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Split points for method having return type other than void
@Phillipe, Void? Could you pls tell about this. It is also not recognised by program. @Ben So if i put some lines of the method body within onSucces() then will the code split for this portion of method be succesful? On Tue, Feb 22, 2011 at 1:51 AM, Ben Imp benlee...@gmail.com wrote: You cannot return something from an async call like that. The work will be done asynchronously, and the main program has presumably gone on its merry way while the async things are being done. If some object needs that result, a simple solution would be to pass the object into the async method, and call a method on it with the result when its ready. -Ben On Feb 21, 1:08 pm, Deepak Singh deepaksingh...@gmail.com wrote: Hi, How to set code splitting for entire body of methods with return type other than void as void onSuccess() will not allow to return anything? public Object myMethod() { // Object object = new Object(); // method body return object; } After we code split point as, public Object myMethod() { GWT.runAsync(new RunAsyncCallback() { @Override public void onSuccess() { // Object object = new Object(); // method body return object; } @Override public void onFailure(Throwable reason) { } }); } This will give error as onSuccess has void return type. Regards Deepak -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT application listings
Thanks... great link. Appreciate it Philippe! On Feb 20, 2:36 am, Philippe Beaudoin philippe.beaud...@gmail.com wrote: I don't know of any such site. This question on Quora might be a good starting point:http://www.quora.com/What-web-applications-use-Google-Web-Toolkit-(GWT) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Split points for method having return type other than void
The code split would likely still work, depending on how you reference things. Try it and see. -Ben On Feb 21, 2:51 pm, Deepak Singh deepaksingh...@gmail.com wrote: @Phillipe, Void? Could you pls tell about this. It is also not recognised by program. @Ben So if i put some lines of the method body within onSucces() then will the code split for this portion of method be succesful? On Tue, Feb 22, 2011 at 1:51 AM, Ben Imp benlee...@gmail.com wrote: You cannot return something from an async call like that. The work will be done asynchronously, and the main program has presumably gone on its merry way while the async things are being done. If some object needs that result, a simple solution would be to pass the object into the async method, and call a method on it with the result when its ready. -Ben On Feb 21, 1:08 pm, Deepak Singh deepaksingh...@gmail.com wrote: Hi, How to set code splitting for entire body of methods with return type other than void as void onSuccess() will not allow to return anything? public Object myMethod() { // Object object = new Object(); // method body return object; } After we code split point as, public Object myMethod() { GWT.runAsync(new RunAsyncCallback() { @Override public void onSuccess() { // Object object = new Object(); // method body return object; } @Override public void onFailure(Throwable reason) { } }); } This will give error as onSuccess has void return type. Regards Deepak -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory JPA: Does the table has to has a field called Version?
Hi David, When I´m trying the objectifyDao from you list widget project, Eclipse warns me already for an unsafe type cast in this code: clazz = (ClassT) ((ParameterizedType) getClass() .getGenericSuperclass()).getActualTypeArguments()[0]; When trying to run my application I get the following error: [ERROR] Unexpected error java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType at apps.youngster.mole.server.service.ObjectifyDao.init(ObjectifyDao.java:49) Do you have any idea what can cause this? I can´t find any obvious difference with your code... 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: RequestFactory JPA: Does the table has to has a field called Version?
Hi David, When I´m trying to use your objectifyDao from the list widget project, Eclipse warns me already for an unsafe type cast in this code: clazz = (ClassT) ((ParameterizedType) getClass() .getGenericSuperclass()).getActualTypeArguments()[0]; When trying to run my application I get the following error: [ERROR] Unexpected error java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType at apps.youngster.mole.server.service.ObjectifyDao.init(ObjectifyDao.java:49) Do you have any idea what can cause this? I can´t find any obvious difference with your code... 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: JSNI and Generic Types
@Thomas: Thanks for the quick response. The Google Plugin for Eclipse actually does suggest/autocomplete to @mycustomnamespace.event.CustomHighlightEvent::fire(*TS;TV;* )(view,dataDTO); I assume it does so because I call the static fire method of the HighlightEvent class which looks like this: public static V,S extends HasHighlightHandlershttp://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/event/logical/shared/HasHighlightHandlers.htmlV HasHandlershttp://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/event/shared/HasHandlers.html void *fire*(S source,V highlighted) The compiler complains that I have to use valid parameters for JSNI.(haven't tried in production mode tough). If I change the parameters of the static fire method manually to the actual types that I use (* Lcom/google/gwt/event/logical/shared/HasHighlightHandlers;Lmycustomnamespace.model.MyCustomDTO; *) GPE marks the line with an error (can't find method *fire *with the specific parameters). To be honest I haven't tried to run the code regardless of the GPE error. I will try tomorrow and report my findings. So if I understand it correctly. In JSNI methods I have to replace any references to generic types with the actual types. GWT/Java compiler replaced the generics with the coresponding types during compile time and because JSNI is basically something like compiled code, it doesn't know what to do with the generic types? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Deferred Binding, Gin in library/widget ?
Sorry for the thread bump: So I was thinking a little bit more about this problem. Both GIN and deferred binding respectively allow for customization of the widget's datasource during compile time. With gin I have a litte bit more flexibility (creating factory, singleton, etc)? For my personal taste the nicer/cleaner approach seems to be to use deferred binding to configure it. Is it actually possible to allow both? Configuration by either deferred binding or gin? And I still don't know how to solve the problem wiith the non-default constructor with either gin or deferred binding. In case of gin I might use a Factory but I am not sure if there is not a better approach. thanks in advance Uemit -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
anyone having problem with Editor's driver returning duplicates of the fields included via getPath() method?
For some reason I am getting duplicate values from myEditorDriver.getPath(). It would list most of the fields twice. I say most fields because I am having problem trying to see why the sub-editor is not picking up the fields in the embeddable object and it happens that the field that holds the embeddable object is only listed once. Not sure if they are related, but it will definitely save me from hitting my head against the wall trying to find out at least why other fields are listed twice first if anyone has the answer already. Thanks in advance, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Which html element is (+/-) element in the CellTree? How can I edit it's id?
It this what you are looking for? http://groups.google.com/group/google-web-toolkit/browse_thread/thread/144b025bfa3421c3 2011/2/21 Anastasia akaprave...@gmail.com: Hello all, In the application I'm working on, that is build using gwt-2.1.1, there is CellTree presentation widget that creates a structure of folders containing subfolders in the application.Thefore a rootFolder may contain one or more folders and each subfolder may contain one or more subfolders. It's much like the example provided in http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTree where Friends collection has another collection of grouped by initial letter contacts, but with more depth. The '+' element on the left of a folder in the application represents (as expected from CellTree) that the folder contains subfolders and holds an onClick event that allows the parent folder to be expanded and subfolders to be displayed. But which is the '+' element (plusElement) in the code and how is that created? Can I make use of my own style class and add my own html id in this element by using plusElement.getElement().setId() or plusElement.getElement().setAttribute(class,myCSSClass) ? The getElement() method is contained in the com.google.gwt.user.client.ui package, in the UIObject Class. Thanks in advance, Anastasia -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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.
RequestFactory and ServiceLocator
Hi, I am working on a simple RequestFactory with ServiceLocator example, but I keep getting server-side errors. My POIRequest is annotated with a ServiceLocator as follows: @Service(value = POIService.class, locator = POIServiceLocator.class) But the service locator is never being instantiated. Any hints? brgds, Papick -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory and ServiceLocator
Are your service methods instance methods on POIService? are they returning Request? (as opposed to InstanceRequest?,?) as declared on POIRequest? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory and ServiceLocator
On 22 Feb., 00:53, Thomas Broyer t.bro...@gmail.com wrote: Are your service methods instance methods on POIService? are they returning Request? (as opposed to InstanceRequest?,?) as declared on POIRequest? Yes, they are. It is a simple spring-backend: @Transactional(propagation = Propagation.REQUIRED) public interface POIService { @Transactional(readOnly = true) Long countPOIs(); @Transactional(readOnly = true) ListPOIEntity findAllPOIs(); void persist(POIEntity e); void remove(POIEntity e); @Transactional(readOnly = true) POIEntity find(Long id); } The impl: @Component public class POIServiceBean implements POIService { private POIDao dao; @Autowired(required = true) public void setDao(POIDao dao) { this.dao = dao; } @Override public Long countPOIs() { return dao.count(); } @Override public ListPOIEntity findAllPOIs() { return dao.readAll(); } @Override public POIEntity find(Long id) { return dao.readByPrimaryKey(id); } @Override public void persist(POIEntity e) { dao.save(e); } @Override public void remove(POIEntity e) { dao.delete(e); } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Panels and content problem
I think you have to set the width and height of the TabLayoutPanel to 100% because you put a layout-based Widget (TabLayoutPanel) into a non-layout based widget (SimplePanel). I think in the near future GWT will provide a SimpleLayoutPanel (there is already some code in svn trunk). You can also try something like this: g:center g:LayoutPanel ui:field=layoutContentPanel/ /g:center and in your code: public void setWidgetToCenter(Widget w) { layoutContentPanel.clear(); if(w != null) { layoutContentPanel.add(w); //stretch widget to fill the whole area layoutContentPanel.setWidgetTopBottom(w, 0, Unit.PX, 0, Unit.PX); layoutContentPanel.setWidgetLeftRight(w, 0, Unit.PX, 0, Unit.PX); } } Or if you need it in more places in your app just create you own SimpleLayoutPanel (hope it works, haven't tested it): public MySimpleLayoutPanel extends ResizeComposite implements HasOneWidget { LayoutPanel layoutPanel; public MySimpleLayoutPanel() { layoutPanel = new LayoutPanel(); this.initWidget(layoutPanel); } public void setWidget(Widget w) { layoutPanel.clear(); if(w != null) { layoutPanel.add(w); //stretch widget to fill the whole area layoutPanel.setWidgetTopBottom(w, 0, Unit.PX, 0, Unit.PX); layoutPanel.setWidgetLeftRight(w, 0, Unit.PX, 0, Unit.PX); } } public Widget getWidget() { // } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Serious Bug or some Type Erasure I don't understand ???
Yes, this is what I was relying on. But then, does it mean I have to hand code all different events for all my entities? There must be a shorter way to do this. If all my entities have a ListT l = selectEntities() service method, triggered by event SelectEntitiesEventT any ideas ? On Feb 22, 1:44 am, Ben Imp benlee...@gmail.com wrote: After re-reading your post, I think I see the issue. While you didn't post code for the three derived entities, I assume you are using different type parameters for your SelectEntitiesEvent, and relying on that to keep the events distinct. I do not believe that works either in Java or in the translated JavaScript. As you mention, generics in Java work on erasure, which means they don't really exist at runtime. You would have to make them separate classes in order for the event bus to treat them as distinct. http://en.wikipedia.org/wiki/Generics_in_Java#Type_erasure -Ben On Feb 21, 2:29 pm, Ben Imp benlee...@gmail.com wrote: It seems like you are using a singleton event bus. I would assume all three entities are registered with that bus to handle the SelectEntitiesEvent. If thats the case, then I don't see why all three wouldn't have their listeners triggered. The event they registered for did get fired. -Ben On Feb 21, 12:52 pm, Riyaz Mansoor riyaz.mans...@gmail.com wrote: Use case: Register an event (2nd snippet) using extending classes AEntity, BEntity, CEntity Refresh a specific table - create one event and fire it (1st snippet) === the three handlers of AEntity, BEntity, CEntity are fired. Why ? Expected Case: If BEntity is refreshed - only BEntity handler should fire. CellTable refresh code: @UiHandler(fRefresh) protected void refresh(ClickEvent clickEvent) { MsgPopup.getInstance().msgSending(); SelectEntitiesEventT event = new SelectEntitiesEventT(new GenericCallbackListT() { public void onSuccess(ListT result) { System.out.println(result); MsgPopup.getInstance().msgLoading(); fDataProvider.setList(result); MsgPopup.getInstance().clearMessage(); }; }); EventBusInstance.getInstance().fireEvent(event); } Event registering - Specific classes extend this class: SelectEntitiesEvent.register(new SelectEntitiesEvent.HandlerT() { @Override public void onSelectEntities(SelectEntitiesEventT event) { service.selectEntities(event.getCallback()); } }); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Serious Bug or some Type Erasure I don't understand ???
Also, here is my GenericEvent. public class SelectEntitiesEventT extends AbstractEntity extends GwtEventSelectEntitiesEvent.HandlerT { public interface HandlerT extends AbstractEntity extends EventHandler { public void onSelectEntities(SelectEntitiesEventT event); } public static TypeHandler? TYPE = new TypeHandler?(); public static HandlerRegistration register(Handler? handler) { return EventBusInstance.getInstance().addHandler(TYPE, handler); } private AsyncCallbackListT fCallback; public SelectEntitiesEvent(AsyncCallbackListT callback) { assert (callback != null); fCallback = callback; } public final AsyncCallbackListT getCallback() { return fCallback; } @SuppressWarnings({ unchecked, rawtypes }) @Override public TypeHandlerT getAssociatedType() { return (Type) TYPE; } @Override protected void dispatch(HandlerT handler) { handler.onSelectEntities(this); } } On Feb 22, 1:44 am, Ben Imp benlee...@gmail.com wrote: After re-reading your post, I think I see the issue. While you didn't post code for the three derived entities, I assume you are using different type parameters for your SelectEntitiesEvent, and relying on that to keep the events distinct. I do not believe that works either in Java or in the translated JavaScript. As you mention, generics in Java work on erasure, which means they don't really exist at runtime. You would have to make them separate classes in order for the event bus to treat them as distinct. http://en.wikipedia.org/wiki/Generics_in_Java#Type_erasure -Ben On Feb 21, 2:29 pm, Ben Imp benlee...@gmail.com wrote: It seems like you are using a singleton event bus. I would assume all three entities are registered with that bus to handle the SelectEntitiesEvent. If thats the case, then I don't see why all three wouldn't have their listeners triggered. The event they registered for did get fired. -Ben On Feb 21, 12:52 pm, Riyaz Mansoor riyaz.mans...@gmail.com wrote: Use case: Register an event (2nd snippet) using extending classes AEntity, BEntity, CEntity Refresh a specific table - create one event and fire it (1st snippet) === the three handlers of AEntity, BEntity, CEntity are fired. Why ? Expected Case: If BEntity is refreshed - only BEntity handler should fire. CellTable refresh code: @UiHandler(fRefresh) protected void refresh(ClickEvent clickEvent) { MsgPopup.getInstance().msgSending(); SelectEntitiesEventT event = new SelectEntitiesEventT(new GenericCallbackListT() { public void onSuccess(ListT result) { System.out.println(result); MsgPopup.getInstance().msgLoading(); fDataProvider.setList(result); MsgPopup.getInstance().clearMessage(); }; }); EventBusInstance.getInstance().fireEvent(event); } Event registering - Specific classes extend this class: SelectEntitiesEvent.register(new SelectEntitiesEvent.HandlerT() { @Override public void onSelectEntities(SelectEntitiesEventT event) { service.selectEntities(event.getCallback()); } }); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Ganymede Eclipse Plugin for GWT 2.2 Errors
When I do install software, I get following message: Cannot complete the request. See the details. Unsatisfied dependency: [com.google.gdt.eclipse.suite.e34.feature.feature.group 2.2.0.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wb.core.xml.feature.feature.group/0.9.0 Unsatisfied dependency: [com.google.gwt.eclipse.sdkbundle.e34.feature.2.2.0.feature.group 2.2.0.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/com.google.gdt.eclipse.suite.e34.feature.feature.group/2.2.0 Unsatisfied dependency: [com.google.appengine.eclipse.sdkbundle.e34.feature.1.4.2.feature.group 1.4.2.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/com.google.gdt.eclipse.suite.e34.feature.feature.group/2.2.0 Unsatisfied dependency: [com.google.gdt.eclipse.suite.e34.feature.feature.group 2.2.0.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wb.core.xml.feature.feature.group/0.9.0 I cannot update eclipse, and need to downgrade GWT. I need the older version GWT download plugin link. Pl advise -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Ganymede Eclipse Older GWT Plugin link needed
I get the following error- Cannot complete the request. See the details. Unsatisfied dependency: [com.google.gdt.eclipse.suite.e34.feature.feature.group 2.2.0.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wb.core.xml.feature.feature.group/0.9.0 Unsatisfied dependency: [com.google.gwt.eclipse.sdkbundle.e34.feature.2.2.0.feature.group 2.2.0.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/com.google.gdt.eclipse.suite.e34.feature.feature.group/2.2.0 Unsatisfied dependency: [com.google.appengine.eclipse.sdkbundle.e34.feature.1.4.2.feature.group 1.4.2.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/com.google.gdt.eclipse.suite.e34.feature.feature.group/2.2.0 Unsatisfied dependency: [com.google.gdt.eclipse.suite.e34.feature.feature.group 2.2.0.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wb.core.xml.feature.feature.group/0.9.0 I need the GWT older versions download link. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UiBinder problem with IsWidget
Can you share a little more on what exactly is happening? The error message/stack trace (so as to see exactly what is complaining), the inheritance of your MapWidget interface, and maybe how it should be bound to a real class (through a replace-with or generate-with, or through a line or two in your Gin module)? From what you are describing it doesn't sound like a UiBinder issue, but rooted instead in how the type is created/made available. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Ganymede Eclipse Older GWT Plugin link needed
That's exactly what I need to do. Where did you download the older eclipse plugin from/? On Sun, Feb 20, 2011 at 10:49 PM, QiCheng sanqi...@gmail.com wrote: download the older versions of gwt file from the web and then install it offline. I did it . On Feb 18, 9:47 am, Mulder udpa...@gmail.com wrote: If I try to install the latest version of the GWT eclipse plugin for Ganymede, it fails to download. Is there a way I can get to the older versions of the plugin from the update site? Note: the plugin has worked since last year when I downloaded fromhttp://dl.google.com/eclipse/plugin/3.4 My PC crashed few months ago, and reinstalling the plugin now (which is much newer that what I had installed earlier) fails to download and install. So I want to get to older versions of GWT plugin. 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. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: weird effect with UmbrellaExceptions in GWTTestCase?
FWIW I've seen this happen a variable will always blow an exception (NPE in my case). At the time, it appeared that the compiler was deciding that it wasn't worth it to call any of the code, so no 'error happened!' or 'test finished' message ever occurred at all, and from your example, I think this could be likely. Have you tried adding a throws to the method decl? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: The operation order (req.getOperations()) of EntityProxy and ValueProxy on the server side
I got it. So, this is a design question. For example: // Object corresponding to ValueProxy // but it is not a JDO object ( NOT persistable ) DateObjectValue { int year; int month; // the following functions are called after the entity is updated setYear(..) // value proxy function setMonth()// value proxy function } // this is the only JDO object ( persistable ) Entity { @Persistent Date date; SetDate(DateObjectValue v) // entity proxy function { date= CONVERT_TO_DATE_WHICH_IS_CALLED_AT_WRONG_TIME(v);// I was assuming this conversion is converting the updated value (proxy )object. } void persist()// entity proxy function { PMF.persist(this); } } Obviously, my design doesn't fit RequestFactory's assumption for the CONVERT_TO_DATE_WHICH_IS_CALLED_AT_WRONG_TIME(..). The reason I convert ValueProxy to date here is to have Value proxy connect with GWT Editor on the client side smoothly which display Year/ Month/Day. I guess the better design is to change the editor, so it accept Date, but display with Year/Month/Day. Right? Any better solution? -Tom On Feb 21, 7:50 am, Thomas Broyer t.bro...@gmail.com wrote: On Sunday, February 20, 2011 11:41:28 AM UTC+1, Tom Fishman wrote: The payload Json (as in com.google.gwt.requestfactory.shared.impl.AbstractRequestContext::doFire()) looks like this: { I: [ { O: banana.TestRequestFactory$MyEnityRequest::persist, P: [ { S: IjUi, T: banana.MyEntityProxy } ] } ], O: [ { O: UPDATE, S: IjUi, T: banana.MyEntityProxy, V: MA==, P: { test_value: { R: 1, C: 1, T: banana.MyValueProxy }, test_string: m@m1, } }, { O: PERSIST, R: 1, C: 1, T: banana.MyValueProxy, P: { foo: 1, } } ] } You see the problem?! MyEntityProxy is updated first!! That's right. MyValueProxy is updated after Entity is saved to the database. That's wrong. Because all operations are applied before invocations are processed. The corresponding code on the server side is in com.google.gwt.requestfactory.server.SimpleRequestProcessor::processOperati onMessages(final RequestState state, RequestMessage req). the req message corresponds to the JSON string. How is the dependency/order handled here? First, all domain objects are retrieved by ID (as is the case for your banana.MyEntityProxy, because O:UPDATE) or created (as is the case for your banana.MyValueProxy, because O:PERSIST), then properties are set, in order (which means that an empty MyValue is given to MyEntity#setTest_value, before its setFoo is called). This is because on the client side, you .edit()ed the entity before you .edit()ed the value. But the persist() method is called after all domain objects have been updated, so you should see the foo=1 in the MyValue object. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Celltable w/ selectionModel and ActionCells
I haven't played with this a whole bunch but have you looked at handlesSelection? I was under the impression that by setting this to false you indicate that a particular cell type is not allowed to determine selection state? Like if you have a checkboxcell it can be the only cell that determines whether or not the row is selected. On Feb 11, 2:09 pm, Henry H. djhenr...@gmail.com wrote: yeah, i had the feeling i have to ditch the selectionModel. thanks for your help... On Feb 11, 6:28 am, Thomas Visser thomas.vis...@gmail.com wrote: This is not possible. In your case, the click event is always also given to the SelectionModel. See line 971 in CellTable (http://www.google.com/codesearch/p? hl=en#A1edwVHBClQ/user/src/com/google/gwt/user/cellview/client/ CellTable.javaq=CellTable%20package:http://google-web-toolkit %5C.googlecode%5C.comsa=Ncd=1ct=rc): if (selectionModel != null click.equals(eventType) ! handlesSelection) { selectionModel.setSelected(value, true); } As you can see, if you could make the handlesSelection boolean true, the selectionModel will not be updated. This boolean is true if one (or more) cell(s) declare(s) to handle the selection. ActionCell does not do that. What you can do is create your own cell, make it handle the selection, and use it for all the columns that you want to be clickable. On Feb 11, 1:42 am, Henry H. djhenr...@gmail.com wrote: hi, i have a celltable with a selectionModel but also a column of actioncells. the selectionModel and actioncells both handle click events, but when i click the action cell, it also triggers the selectionmodel click handler. is it possible to prevent this? Or do i have to nix the selectionModel and go with clickable cells on the row? 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 to add https channel in GWT
Thanks Broyer, I use the first way, and success. On Feb 22, 2:36 am, Thomas Broyer t.bro...@gmail.com wrote: You'll have to run Jetty using jetty:run and then launch GWT's DevMode with gwt:run in -noserver mode (add noServertrue/noServer to the configuration, or pass -Dgwt.noserver=true on the command line). ...or you can use GWT trunk to be able to launch GWT's DevMode with SSL enabled:http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/c... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 Tree Indentation PLEASE HELP!!
Hi there, I have spent some time trying to figure this one out however I have not been able to get anywhere. I would love it if some one could tell me how to do this... I am using a CellTree and am using custom CSS styling using my own Resource classes. However I need to remove the indentation which is provided by the tree by default. According to me the indentation is due div *style=padding-left:16px;* class=GOVGIRRJFdiv onclick= style=position:relative*;padding-left:16px;* class=GOVGIRRJF GOVGIRRLFdiv style=position:absolute;display:none;/divdiv class=GOVGIRRMF Child node/div/div/div This inline style needs to be changed... please tell me how this can be done? Thanks, t -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory and ServiceLocator
I just saw that I did not post the log: 22.02.2011 01:07:47 de.oio.gwt.hellorequestfactory.server.backend.entities.POIEntity SCHWERWIEGEND: There is no findPOIEntity method in type de.oio.gwt.hellorequestfactory.server.backend.entities.POIEntity that returns de.oio.gwt.hellorequestfactory.server.backend.entities.POIEntity 22.02.2011 01:07:47 com.google.gwt.requestfactory.server.ServiceLayerDecorator die SCHWERWIEGEND: The type de.oio.gwt.hellorequestfactory.shared.POIProxy did not pass RequestFactory validation Somehow it is always searching for the static methods in the entity. The documentation states that there are different method signatures, depending where I am putting the methods. But the documentation only lists Entity vs. Locator, so I suppose that I have to use the Locator ones. I tried POIEntity find( Long id) POIEntity findPOIEntity(Long id) POIEntity find( Class? extends POIEntitty clazz, Long id) but none of them worked. Since a ServiceBean could be delivering instances for different Entities, It is my hope that findPOIEntity(Long id) is the right one. I am Stuck here, please help. brgds, Papick G. Taboada -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Report ValidationExceptions at compile time for constrained methods (issue1354807)
Reviewers: rchandia, Description: Report ValidationExceptions at compile time for constrained methods that do not follow the JavaBean naming convention. [JSR 303 TCK Result] 94 of 257 (36.58%) Pass with 33 Failures and 13 Errors. Please review this at http://gwt-code-reviews.appspot.com/1354807/show Affected files: M user/src/com/google/gwt/validation/rebind/BeanHelper.java M user/test/com/google/gwt/validation/tck/ValidationGwtSuite.java A user/test/org/hibernate/jsr303/tck/tests/validation/TckCompileTest.gwt.xml A user/test/org/hibernate/jsr303/tck/tests/validation/TckCompileTestValidatorFactory.java M user/test/org/hibernate/jsr303/tck/tests/validation/TckTest.gwt.xml A user/test/org/hibernate/jsr303/tck/tests/validation/ValidateCompileTest.java M user/test/org/hibernate/jsr303/tck/tests/validation/ValidateGwtTest.java A user/test/org/hibernate/jsr303/tck/util/TckGeneratorTestUtils.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Enhancing GWT's CheckBox and RadioButton with bidi support. (issue1352809)
Reviewers: jlabanca, Description: Enhancing GWT's CheckBox and RadioButton with bidi support. Please review this at http://gwt-code-reviews.appspot.com/1352809/show Affected files: M user/src/com/google/gwt/user/client/ui/CheckBox.java M user/src/com/google/gwt/user/client/ui/RadioButton.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Change the DevModeOptions page to use the xs linker due to recent Chrome extension permissions c... (issue1356803)
Aha. That's exactly what I ran into recently, regarding my attempts to use DevMode inside a Chrome Extension (see my recent post). Glad to hear it's been spotted and considered a bug in Chromium. http://code.google.com/p/chromium/issues/detail?id=72407#c10 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Report ValidationExceptions at compile time for constrained methods (issue1354807)
http://gwt-code-reviews.appspot.com/1354807/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Comment on DistributedBuilds in google-web-toolkit
Comment by ms.fus...@gmail.com: workDir work -perms 0 java -cp ... com.google.gwt.dev.CompilePerms com.google.gwt.sample.hello.Hello \ -workDir work -perms 1 java -cp ... com.google.gwt.dev.CompilePerms com.google.gwt.sample.hello.Hello \ -workDir work -perms 2 java -cp ... com.google.gwt.dev.CompilePerms com.google.gwt.sample.hello.Hello \ -workDir work -perms 3 java -cp ... com.google.gwt.dev.CompilePerms com.google.gwt.sample.hello.Hello \ -workDir work -perms 4 java -cp ... com.google.gwt.dev.CompilePerms com.google.gwt.sample.hello.Hello \ -workDir work -perms 5 For more information: http://code.google.com/p/google-web-toolkit/wiki/DistributedBuilds -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Comment on DistributedBuilds in google-web-toolkit
Comment by ms.fus...@gmail.com: java -cp ... com.google.gwt.dev.Link com.google.gwt.sample.hello.Hello \ -workDir work -war www -extra aux For more information: http://code.google.com/p/google-web-toolkit/wiki/DistributedBuilds -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Comment on DistributedBuilds in google-web-toolkit
Comment by ms.fus...@gmail.com: java -cp ... com.google.gwt.dev.Link com.google.gwt.sample.hello.Hello \ -workDir work -war www -extra aux For more information: http://code.google.com/p/google-web-toolkit/wiki/DistributedBuilds -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Report ValidationExceptions at compile time for constrained methods (issue1354807)
http://gwt-code-reviews.appspot.com/1354807/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors