Re: Widget does not display
You need to load your GWT application into the empty div you've created for it. Try: RootPanel.get(tutorial).add(hpanel); On Saturday, November 3, 2012 12:55:28 PM UTC-4, CiprianR wrote: I am having problems with the widget display. This is my code: public void onModuleLoad() { HorizontalPanel hpanel = new HorizontalPanel(); final Button button = new Button(Click); button.addClickHandler(new ClickHandler(){ @Override public void onClick(ClickEvent clickEvent) { symbolBox.setValue(clicked,true); } }); hpanel.add(symbolBox); hpanel.add(button); RootPanel.get().add(hpanel); } and this is the html: body h1Tutorial/h1 div id=tutorial/div !-- OPTIONAL: include this if you want history support -- iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe !-- RECOMMENDED if your web app will not function without JavaScript enabled -- noscript div style=width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif Your web browser must have JavaScript enabled in order for this application to display correctly. /div /noscript /body and this is the result: https://lh4.googleusercontent.com/-yZnCAtSrvE4/UJVMbY29u2I/AAc/dFS9MbgqFr8/s1600/wrong.png Please help!! PS: I am using jdeveloper 11.1.2.2 with gwt 2.5 rc -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ZH6lt32bFMAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 app crashes in run-time when RequestContext interface is used in client code
I have the same problem with GWT 2.5 and Oracle JDK 7 ... did you ever resolve the issue? The weird part is that this isn't my first RF-based project, yet I didn't run into this issue with the other projects. Thanks On Tuesday, October 11, 2011 6:49:10 PM UTC-4, expert wrote: I've been fighting with this issue for 3 days and I guess this forum is my last resort. I ran out of ideas why it doesn't work :( I'm using GWT 2.4.0 and JDK 1.6. I was going through this http://goo.gl/mmFuQ tutorial and got stuck with crashing GWT app. The app crashes if I mention com.google.web.bindery.requestfactory.shared.RequestContext interface in my client code. I'm not even using it. I just have unused method that takes RequestContext as parameter. I tried referencing RequestFactory - same exception. So I suspect I'm missing something related to RequestFactory package. I added -logLevel DEBUG to GWT compiler and here is what I have: --- DEBUG: Rebinding com.vsezavtra.courierApp.client.ManagerShell.ManagerShellUiBinder. DEBUG: Checking rule generate-with class='com.google.web.bindery.requestfactory.gwt.rebind.RequestFactoryGenerator'/ . ERROR: Errors in 'jar:file:/C:/work/externals/gwt/gwt-user.jar!/ com/google/web/bindery/requestfactory/shared/Receiver.java'. ERROR: Unable to find type 'com.vsezavtra.courierApp.client.ManagerShell.ManagerShellUiBinder'. ERROR: Line 26: The import javax.validation.ConstraintViolation cannot be resolved. ERROR: Line 79: ConstraintViolation cannot be resolved to a type. ERROR: Line 81: ConstraintViolation cannot be resolved to a type. ERROR: Hint: Previous compiler errors may have made this type unavailable. ERROR: Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly. ERROR: Deferred binding failed for 'com.vsezavtra.courierApp.client.ManagerShell.ManagerShellUiBinder'; expect subsequent failures. ERROR: Unable to load module entry point class com.vsezavtra.courierApp.client.courierApp (see associated exception for details). java.lang.RuntimeException: Deferred binding failed for 'com.vsezavtra.courierApp.client.ManagerShell $ManagerShellUiBinder' (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:97) at com.vsezavtra.courierApp.client.ManagerShell.clinit(ManagerShell.java: 15) at com.vsezavtra.courierApp.client.courierApp.onModuleLoad(courierApp.java: 10) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 200) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 525) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 363) at java.lang.Thread.run(Thread.java:662) Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java: 595) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 455) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) at com.google.gwt.core.client.GWT.create(GWT.java:97) at com.vsezavtra.courierApp.client.ManagerShell.clinit(ManagerShell.java: 15) at com.vsezavtra.courierApp.client.courierApp.onModuleLoad(courierApp.java: 10) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 200) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 525) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 363) at java.lang.Thread.run(Thread.java:662) ERROR: Failed to load module 'courierApp' from user agent 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/ 14.0.835.202 Safari/535.1' at localhost:10695.
Re: GWT app crashes in run-time when RequestContext interface is used in client code
I thought they were ... I'm using Maven and didn't notice they were only in the test scope. Problem solved (and with the same solution ruslan got from StackOverflow). Thanks! On Wednesday, August 29, 2012 9:23:12 AM UTC-4, Thomas Broyer wrote: On Wednesday, August 29, 2012 3:20:28 PM UTC+2, Steve Moyer wrote: I have the same problem with GWT 2.5 and Oracle JDK 7 ... did you ever resolve the issue? The weird part is that this isn't my first RF-based project, yet I didn't run into this issue with the other projects. Are validation-api and validation-api-src on your classpath? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/e4r6GDLWe58J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Is there a trick to dragging a PushButton?
I have a PushButton widget with an up-face image that I'd like to respond to clicks as well as allowing the button to be dragged to another application. If I create the Image used for the up-face without including it in the PushButton, it drags with the correct drag image and drag data. If I put the same Image on the face of a PushButton, it can no longer be dragged. If I move the DragStartHandler to the PushButton, it still can't be dragged. I'm guessing that perhaps the way the PushButton processes click events might stop the propagation of the event before I get a DragStartEvent, but right now I'm pretty lost. Thanks, smoyer -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/iH5svRu2PuYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Work with guava-gwt 12.0
We're also using Collect from guava-gwt but if you want Maven to download and manage the dependency for you, then it shouldn't be scoped as provided in the pom.xml file. Try changing the scope to compile (or removing it since compile is the 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.
Re: GWT project sturcture
On Jun 7, 10:14 pm, Rohan rohanghatpa...@gmail.com wrote: Hello all, I am new to GWT and just completed the Stock watcher application. I am excited about the possibilities of using GWT at my work place but I have a few questions regarding structuring a complete website on this platform. How do structure a website having multiple pages? You shouldn't be thinking in terms of pages ... you're web application will have one host page and the browser never needs to reload the page once the bootstrap has launched your application. For example If I have a website with three web pages doing 3 different things: Page 1.Browsing list of items for sale Page 2.Entering/editing an order for an item Page 3.Viewing monthly/quartely reports You have three Activities and they seem to be three Places as well ... the navigation between them will involve changing the Activities/ Places. Is there a recommended way to structure this app? I did go through thishttps://developers.google.com/web-toolkit/doc/latest/DevGuideOrganizi... Should I create a module per functionality? or do I, can I or should I use single module inheriting three different modules with entry point? Module structure is independent of the final compiled application ... you will probably include several modules in your *.gwt.xml file so adding more of your own isn't a problem. Also would each module be in its own package?(I did find that its recommended I put each module in the root package) com.google.gwt.sample PageMain.gwt.xml com.google.sample.page1 Page1.gwt.xml com.google.sample.page2 Page2.gwt.xml com.google.sample.page3 Page3.gwt.xml or com.google.gwt.sample PageMain.gwt.xml Page1.gwt.xml Page2.gwt.xml Page3.gwt.xml Also should I have entrypoints in each and then just just redirect from one page to another ? If so how will my PageMain.gwt.xml module look like ? What entrypoint class will it have and how do I tell it to redirect to a particular module? You want your finished application to use a single EntryPoint, but you can have others (often useful for development/testing). I apologize if these questions sound basic but I am having trouble visualizing a project structure for website using GWT modules. May be some one can post an actual multi-page project structure I can look at? Thanks, Rohan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Creating menus using though UiBinder
Your code works fine for me with the exception of the ClickHandler you defined for item1. MenuItems don't have click handlers, they have Command objects (and this is the error I saw in hosted mode). Commenting out the ClickHandler code is all it took (I also changed the class name and package so it would fit into my test project, but that shouldn't impact how it works). So I guess I'm wondering how you instantiated your testMenu (classes should start with a capital letter). smoyer On May 14, 3:07 am, Robert Quinn quinn.rob...@gmail.com wrote: I don't have an editor in front of me, so here's a shot in the dark: try putting the nested MenuBar directly under the outer MenuBar instead of under a MenuItem. On May 11, 1:48 am, chakresh chakr...@gmail.com wrote: Hi, I am trying to create menus using UiBinder. my ui.xml goes like !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' g:MenuBar vertical='true' ui:field='mainMenu' g:MenuItem ui:field='item1'Item 1/g:MenuItem g:MenuItem ui:field='item2'Item 2/g:MenuItem g:MenuItem ui:field='sub' enabled='false' Submenu g:MenuBar vertical='true' ui:field='subMenu' / /g:MenuItem /g:MenuBar /ui:UiBinder and java file goes like package com.cadence.ams.client.ui; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.uibinder.client.UiHandler; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.HasText; import com.google.gwt.user.client.ui.Widget; import com.google.gwt.user.client.ui.MenuBar; import com.google.gwt.user.client.ui.MenuItem; public class testMenu extends Composite { private static testMenuUiBinder uiBinder = GWT .create(testMenuUiBinder.class); interface testMenuUiBinder extends UiBinderWidget, testMenu { } public testMenu() { initWidget(uiBinder.createAndBindUi(this)); } @UiField MenuBar mainMenu; @UiField MenuItem item1; @UiField MenuItem item2; @UiField MenuBar subMenu; @UiField MenuItem sub; @UiHandler(item1) void onClick(ClickEvent e) { Window.alert(item1!); } } And while compiling I am getting error. [ERROR] The prefix g for element g:MenuBar is not bound. [ERROR] Error parsing XML (line 1): The prefix g for element g:MenuBar is not bound. I searched for internet and google group but could not get the solution. I am very new to GWT, in case of any stupid mistake also do let me know. Help will be very much appreciated. Thanks, Chakresh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: private static final EntityManagerFactory emfInstance = Persistence.createEntityManagerFactory(transactions-optional);
Can you include the code for the class this is in? You can't do this in client code, and in server code, you'll need to make sure your persistence.xml file is found (my most common mistake). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to make parent window read only and background color to gray when dialogbox open
Or if you're using UiBinder, try something like: g:DialogBox autoHide=false glassEnabled=true modal=true ui:field=dialog /g:DialogBox -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 with a non-java server
My application is served by CouchDB (as what they call a couchapp) and also communicates back to the CouchDB server for back-end persistence and certain queries. You could easily serve a GWT application with a Node.js server too. You can serve as many applications as you want from a single port as long as you have unique URLs for everything the server provides. Good luck and welcome to GWT. smoyer -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Upload base64
What on the server is accepting the image you want to send it? I think it's dangerous to be writing into your war folder so you should have a work directory somewhere else. And if the servlet can write the image there, you can also let the servlet read the image when you want to access it. smoyer -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using a widget / module / entry point from another separate project
That's not quite how it works ... your first project should produce a JAR file that includes both the compiled classes AND the source files. You'll include this library in your second project and GWT will compile IT ALL from scratch in the second project. smoyer -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 to compile to javascript...
I understood what you were trying to do and in many cases I applaud the idea. But I was also curious as to which link you suggesting since I've had a few issues like this but I use Maven. And I hadn't even considered the fact that our browsing history would also affect what we were shown. Thanks for the link (and I guess we should assume he's found a solution to his problem since we seem to be the only ones talking here). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 to compile to javascript...
@Jim You shouldn't rely on the search results staying in the same order. Unfortunately, this post now outranks the link you tried to provide. Can you add a link directly to the intended post? @Blaze The short answer is that you probably need the validator-api AND a validation provider on your classpath. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 + Vector Drawing Tools
Why not use SVG? ... Most vendors now render it natively so it's fast and you can attach events to the images or elements of the images easily. Take a look at lib-gwt-svg (not that SVG images can be complex, and the library supports that complexity so it appears like you'd have to learn a lot to start. The examples show how simple you can make it though). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Ideas on how to make CellTree with tri-state checkboxes that affect checked-state of parent/children
I like the idea of providing a visual indicator that only some of the parent's children are checked, but I think every application I've seen leaves the parent unchecked if any child is unchecked. I would recommend looking at some of the UI/UX experts opinions on this instead of asking us coders. Steve Krug (http://www.sensible.com/) and Jakob Nielson (http://www.useit.com/) would be good starting points. Their recommendations are based on studies and data ... pay attention to them. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: tinymce vs. ckeditor?
I have a similar interest ... but have been looking at wrapping the Aloha editor (http://alohaeditor.org/) in a GWT widget. The advantage of RickTextEditor is that you can do whatever you want to with it. The hard part of writing one of these editors is getting the tag nesting to work properly - especially when unformating sections of text. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT: Google Map in firefox only randomly working
A 304 HTTP status code is supposed to tell the browser that it can reuse its cached versions of those resources. I think shift-reload still forces the new ones to be obtained but you have to ask why the browser is sending ETag information for resources it apparently doesn't have. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Digest e-mails
Well ... the digest e-mails suddenly restarted yesterday. I hadn't received any since January 20th, but I've gotten 6 in the last 12 hours. Welcome back ;) On Jan 26, 3:42 pm, Steve Moyer smoye...@gmail.com wrote: I still haven't managed to restart them ... does anyone have 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.
Re: hard time to get GWTTestCase to work
Actually when the error says the compilation unit is not found, it means that the test runner isn't finding your compiled class. If you look at the Source tab of your Java Build Path, I'll bet that you have the Allow output folders for source folders checkbox checked. Unchecking this will cause all compilation units to be put into targets/classes (your test classes are currently in target/test- classes and the test runner can't find them). There are other ways to solve this problems but this is the simplest. It has the undesired (I assume) side affect of including the test classes in your output jar or war, so you have to exclude them during packaging. The second alternative is to make sure the target/test-classes folder is on your classpath during testing. On Jan 30, 10:43 am, salk31 sal...@gmail.com wrote: Sorry, I'm afraid I don't use maven On Jan 30, 7:31 am, tanteanni tantea...@hotmail.com wrote: thx, the problem is how to fix it. i have a maven project generated by webappcreator from google. i thought unit tests with gwttestcase should work out of the box? with sources not in classpath do you mean the eclipse way of sources (knowing were to look in debugging session, debugging normal tests is working fine)? Or do you mean the gwt-sources (declared in gwt.xml)? (i put all tests in same packages as the OUTs - that should be enough for gwt to find the sources?!) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Digest e-mails
I still haven't managed to restart them ... does anyone have 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.
Digest e-mails
I stopped receiving digest e-mails on January 20th and wondered whether anyone else noticed this? Perhaps I've somehow unsubscribed? My membership still says I'm signed up for the digests so I'm wondering if anyone else has noticed this problem? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Gwt Scheduler / TimeLine / Gantt charts
The documentation makes it look like it's based on GXT ... I gave up on anything that required GXT or SmartGWT some time ago. smoyer -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 gui with no servlet container
Yes ... my application is being served from CouchDB and there is no back-end code (since I make XMLHttpRequests directly to CouchDB using JSON). I've got another small application that works off-line (using HTML5 Application Caching) and stores all it's data on the user's computer using LocalStorage (and a bit of SessionStorage for maps that are built when the application loads). Welcome to the group and good luck! On Jan 5, 9:18 am, Jens jens.nehlme...@gmail.com wrote: Just compile your app and deploy its host html page + compiled javascript/images to any web server you want. Thats not a problem at all. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Overlapping or overlaying images, while keeping handlers independent
Are you sure they're inheriting handlers? I think the mouse enters the region of both images and so their handlers are activated. If you have two images that don't completely overlap and you enter an area that isn't overlapped, only one handler is called right? Unfortunately, I think you'll have to consolidate these into a single handler and you'll have to somehow figure out the z-order of the images, then chain to the appropriate handler. I think I'd try to wrap the Image in a FocusPanel (since only one element can have focus at a time) and then use a focus handler to beat this problem ... it's probably easier than trying to recreate the logic the browser used to render the Images with the proper z-order. Good luck (and an interesting problem). smoyer -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: One type for all
RequestFactory is nice if you have access to the backend I'm using AutoBeans (which were designed for RequestFactory) to marshall and unmarshall my model classes on the client side without having access to the server side. I don't have a JEE server or even a servlet container as I'm using CouchDB. My models are interfaces annotated as EJB3 POJOs but also annotated with validations. And I'm exporting them from CouchDB to an RDBMS using Hibernate. So I have models that are used for the client side, a NoSQL and an RDBMS. Think it through ... you'll get there too! smoyer On Dec 11, 6:23 am, Ed post2edb...@gmail.com wrote: I don't think there is a perfect solution currently. It all depends on your situation. The RequestFactory is nice if you have access to the backend, as this mechanism requires a further integration between the backend and frontend. But not everybody has access to this part of the backend but merely the web layer backend on top of the backend that handles all the front-end communication. However RequestFactory is very efficient. If you only want parts of the domain object (DO) to be transfered to the front-end (like in my case), you need to create DTO and convert DTO - DO which costs time to fine tune all and is fragile (make sure you test it well). I use Dozer, but had to make my own dozer branch due to bugs and extra requirements. I understood that Java 7 would offer extra DTO functionality, no idea what the current status of this is. - Ed On Dec 10, 2:50 pm, Thomas Broyer t.bro...@gmail.com wrote: This is (partly) what RequestFactory tries to solve (vs. GWT-RPC): you no longer use your server-side classes on the client-side, so you don't have the issues of your entities having to be translatable by the GWT compiler. If you work with JSON (using things like Jackson or GSON on the server-side), you can use AutoBeans on the client-side (you can also use them on the server-side, btw) to easily parse and manipulate the objects (at least a bit more easily than with JsonUtils.safeEval() and JS Overlay Types). But if you only add annotations to your classes, there's no reason you couldn't use them on the client-side too; you just have to make sure you have the source code for the annotations on the classpath too. Just a suggestion; AutoBean and RequestFactory are not a silver-bullet, and JSOs and GWT-RPC are still viable choices (FYI, Google Groups uses GWT-RPC). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Inserting Widgets and simple text into panel
Try: flowPanel.add(w1); flowPanel.add(w2); flowPanel.getElement.setInnerText(flowPanel.getInnerHTML() + largeText); This might be dangerous in some instances, but the widgets should be well-formed HTML, so adding your text to the end should work. Good luck! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Is there a way to force FormPanel to use a PUT method?
This is allowed in HTML5 and is required with my back-end's REST API. In theory, you should be able to just setMethod(PUT); even though only POST and GET are enumerated as methods, but that seems to be trapped as an error. Thanks! smoyer -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: StackLayoutPanel Behaving Strangely
Could it be a '' to end your opening UiBinder tag? smoyer On Dec 15, 3:11 am, Nirmal nirmaljpa...@gmail.com wrote: When using a *LayoutPanel inside a non-LayoutPanel; you need to explicitly set size of the LayoutPanel. Regards, Nirmal -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Row ids in PagingScrollTable
I've successfully implemented a PagingScrollTable (from the GWT- Incubator project) in our application but need to mark each row with an identifier. My initial attempt was to place an additional column at the end of the table and set its maximum width to zero, but that never completely disappears ... it does suit the purpose of allowing me to determine the record(s) that was/were selected. Is there some way of assigning an identifier to a row ... perhaps even using an id attribute on the tr element? Thanks, smoyer -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ImageBundle and IE7
I just had this exact problem ... I made toolbar buttons by styling an image and giving it an onClick behavior but IE7 behaved exactly as you have described. For me, the solution required three parts: 1) Use DataResource instead of ImageResource as described above. 2) Use resource instead of URL in the Image tag like this: Before: g:Image url={res.arrowRefreshIcon.getURL} styleName={res.css.tool} title=Refresh the log list now ui:field=refresh / After: g:Image resource={res.arrowRefreshIcon} styleName={res.css.tool} title=Refresh the log list now ui:field=refresh /-- 3) Encapsulate the image into a container (a div element in my case) that was styled instead of the Image itself (so that the 16x16 icons were clipped at the edges. Steps one and two together seem to have solved the problem with IE7 squishing the entire image bundle into the 16x16 square on the button's face. Once IE7 was properly positioning and sizing the image, the padding around the image allowed the other images in the bundle to become visible. In order to eliminate this, I had to move the padding around the button to an outer container. Basically, the clipping has to be the image size, so no margins or padding seem to be possible. I'm no IE7 expert but this does seem to fix the issue. Hope it works for you. On Nov 22, 10:36 am, Frédéric MINATCHY frederic.minat...@gmail.com wrote: Thank you to all of you... I tried to use @sprite during the week end and it was OK... But now I have an other kind of problem on IE6/7... It seems that they cannot execute RPC fonction... I will write an other mail about it... 2010/11/16 Thomas Broyer t.bro...@gmail.com On 16 nov, 00:32, Frédéric MINATCHY frederic.minat...@gmail.com wrote: Hello... As I said before I used the ImageResource in my code like this : public interface UsersAdministrationImagesResources extends ClientBundle { public static UsersAdministrationImagesResources INSTANCE = GWT.create(UsersAdministrationImagesResources.class); @Source(user_add.png) ImageResource addUserImage(); @Source(user_delete.png) ImageResource deleteUserImage(); @Source(user_edit.png) ImageResource editUserImage(); I get the images by using GWT.create(UsersAdministrationImagesResources.class). And then on Internet Explorer 7 some images ont gwt and smartgwt component are not correctly displayed. On the gwt button all the image resources are shown (whereas only one should be shown) As Dave wrote, ImageResource generates data: URLs for those browsers that supports it (everyone except IE6/7) and a sprite image (see http://css-tricks.com/css-sprites) otherwise; so what you see really is the intended behavior. and on the smartgwt elements a white square is shown. I don't know what SmartGWT (or rather, SmartClient) does. What is the difference with @sprite and Image bundle? @sprite will generate the appropriate CSS properties whichever technique is used: background: url(data:) for all browsers but IE6/7, and a bunch of properties for IE6/7 (background-image, background-position, width and height; see link above). Using an Image widget with an ImageResource does exactly the same as @sprite does at the CssResource level. See http://code.google.com/intl/fr-FR/webtoolkit/doc/latest/DevGuideClien... and http://code.google.com/intl/fr-FR/webtoolkit/doc/latest/DevGuideClien... How can I choose to use explicitly one of them? Thank you for clues... I hope they will help me to find a correct solution. But if you have another idea do not hesitate. regards. Fred 2010/11/15 Thomas Broyer t.bro...@gmail.com On 15 nov, 11:38, Frédéric MINATCHY frederic.minat...@gmail.com wrote: Thank you for your advise... But is there a way to make it work with all browser?? ImageResource really is designed to work with either the Image widget or a @sprite in a CssResource. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message
Re: Opening a new Window with a Widget in GWT
I've been wondering the same thing ... though it certainly seems like the accepted practice is to use the PopupPanel and DialogPanel. In fact, I can't remember seeing a GWT application that used more than one browser instance or tab. In theory, you can style the GWT panels to look more like separate windows, but the way they're implemented, you can't drag them off the main window (which can be confusing to a user). smoyer On Nov 12, 5:05 pm, trippledes majid_amman_la...@hotmail.com wrote: Hi all, Before you start shooting me down i have checked for answers and i have googled till my fingers bled but i havent been able to find a simple, concise answer. So im asking again for all those that might have this problem. Question: how to open a new window with a formpanel in side. Context: i have an app that lists lots of items, i want someone to edit an entry, i want a new window to open so they can edit properties then hit save. A standard thing you find in a lot of applications. Architecture: I have one client module called UI, it has a dozen classes that draw widgets and fill a main area when selected from a menu. I have a single html page called UI.html which has the tag in the head. Thats it. Options Ive Seen 1. Call Window.Open() but you need to define a html file. I dont have one. I can create an empty one but how do you inject a widget in to it ? 2. use jsni $wnd to create a new window and get a reference to it. But how do i inject a form panel into it ?? 3. use a popuppanel/dialog panel. They look sucky - plus if opening a window through JS is quite simple i would expect it to be in gwt. Maybe im miss understanding how to use GWT i dont know. Any help would be appreciated even if its to correct my application/ thinking of GWT Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Eclipse setup, javax.validation missing and jsp syntax highlighting
I'm assuming that neither of you are using Maven as this library is included at http://repo1.maven.org/maven2/javax/validation/validation-api/1.0.0.GA/, so you'll need to download it and manually add it to your classpath. Hope this helps! smoyer On Nov 19, 7:54 am, -sowdri- sow...@gmail.com wrote: Even I'm facing the same problem. FILE: /Expenses/src/com/google/gwt/sample/expenses/server/domain/ Employee.java /* these imports fails */ import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; ... I've been trying to make things work for a long time. Any help is 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: newbie trying to use htmlunit gwt 2.1 to test greet example
You aren't finding any buttons because HTML doesn't have a button tag. Use one of the methods described under Finding a specific element at this page: http://htmlunit.sourceforge.net/gettingStarted.html. I generally find myself needing xpath sooner or later. smoyer On Nov 6, 4:45 am, Ray Tayek rta...@ca.rr.com wrote: hi, i am trying to use htmlunit to test the greeting service that gets generated in eclipse when you make a new web application project. i am trying to find the send button in the project. i tried some of the suggestions athttp://htmlunit.sourceforge.net/faq.html#AJAXDoesNotWork, but all of my tests fail (please see below) i can not find any buttons and some tests get a bunch of css warnings. if i run this test on the real app that i want to test i get similar results with *no* warnings. this real app uses htmlunit 2.8, while the greet service uses whatever came with gwt 2.1. so i am sorta confused. what should i try next? any pointers will be appreciated. thanks package p; import org.junit.*; import static org.junit.Assert.*; import com.gargoylesoftware.htmlunit.*; import com.gargoylesoftware.htmlunit.html.*; public class SimpleTestCase { @Test public void testVanilla() throws Exception { System.out.println(testVanilla); final WebClient webClient = new WebClient(); final HtmlPage page = webClient.getPage(http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997;); final DomNodeListHtmlElement buttons = page.getElementsByTagName(button); assertTrue(buttons.size() 0); } @Test public void testNicelyResynchronizingAjaxController() throws Exception { System.out.println(testNicelyResynchronizingAjaxController); final WebClient webClient = new WebClient(); webClient.setAjaxController(new NicelyResynchronizingAjaxController()); final HtmlPage page = webClient.getPage(http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997;); final DomNodeListHtmlElement buttons = page.getElementsByTagName(button); assertTrue(buttons.size() 0); } @Test public void testwaitForBackgroundJavaScript() throws Exception { System.out.println(testwaitForBackgroundJavaScript); final WebClient webClient = new WebClient(); final HtmlPage page = webClient.getPage(http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997;); webClient.waitForBackgroundJavaScript(1); final DomNodeListHtmlElement buttons = page.getElementsByTagName(button); assertTrue(buttons.size() 0);} @Test public void testwaitForBackgroundJavaScriptStartingBefore() throws Exception { System.out.println(testwaitForBackgroundJavaScriptStartingBefore); final WebClient webClient = new WebClient(); final HtmlPage page = webClient.getPage(http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997;); webClient.waitForBackgroundJavaScript(1); final DomNodeListHtmlElement buttons = page.getElementsByTagName(button); assertTrue(buttons.size() 0); } @Test public void testWait() throws Exception { System.out.println(testWait); final WebClient webClient = new WebClient(); final HtmlPage page = webClient.getPage(http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997;); Thread.sleep(1); final DomNodeListHtmlElement buttons = page.getElementsByTagName(button); assertTrue(buttons.size() 0); } @Test public void testWaitForCondition() throws Exception { final WebClient webClient = new WebClient(); final HtmlPage page = webClient.getPage(http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997;); DomNodeListHtmlElement buttons = page.getElementsByTagName(button); for (int i = 0; i 20; i++) { buttons = page.getElementsByTagName(button); System.out.println(buttons.size()); if (buttons.size() 0) { break;} synchronized (page) { page.wait(1000);} } assertTrue(buttons.size() 0); } } //console output testVanilla Nov 5, 2010 3:23:10 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify WARNING: Expected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at 'http://127.0.0.1:/reasx/reasx.nocache.js', but got 'application/x-javascript'. testNicelyResynchronizingAjaxController Nov 5, 2010 3:23:10 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify WARNING: Expected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at 'http://127.0.0.1:/reasx/reasx.nocache.js', but got 'application/x-javascript'. testwaitForBackgroundJavaScript Nov 5, 2010 3:23:10 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify WARNING: Expected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at 'http://127.0.0.1:/reasx/reasx.nocache.js', but got 'application/x-javascript'. Nov 5, 2010 3:23:10 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error WARNING: CSS error: null [488:24] Error in expression. Invalid token =. Was
Re: Getting started problems
You probably want to ignore the proxy for the whole loopback network so try 127.0.0.0/8 (which obviously includes localhost. I'm running Eclipse 3.5 on Ubuntu 10.04 and using the Maven plugin to start my hosted mode environment and it's commonly using 127.0.1.1. Hope this helps a bit. smoyer On Nov 24, 12:02 am, Lee Sailer lee.sai...@gmail.com wrote: Well, I started fresh on another Mac. It is working fine there. This is not feeling so urgent any more. Still be interesting to figure out what I did wrong before. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DockLayoutPanel can not show center element using uibinder
Have you declared that you want standards mode in the DOCTYPE of the host HTML page? I also vaguely remember having better success when the center panel was the last thing added (but perhaps this was before Uibinder). In any case, I've gotten into the habit of always putting the center panel last. smoyer On Nov 10, 2:40 pm, Plutarco plutarco.gonza...@gmail.com wrote: I have the same issue: g:DockLayoutPanel unit='EM' ui:field='dockLayout' g:north size='5' g:LabelTop/g:Label /g:north g:center g:LabelBody/g:Label /g:center g:west size='10' g:HTML ul liSidebar/li liSidebar/li liSidebar/li /ul /g:HTML /g:west /g:DockLayoutPanel I can´t see Body and Sidebar. After check my source-html if a remove overflow:hidden its works!.. How can I change this property? Yes, Im using RootLayoutPanel. thank you On 10 nov, 08:57, zixzigma zixzi...@gmail.com wrote: i think, in your onModuleLoad method, RootPanel.get().add( new ExpensesShell() ); change RootPanel to RootLayoutPanel. please report back if it works. 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: can't import into eclipse using mojo.codehaus.org gwt-maven-plugin 2.1.0
I found the same two issues you describe ... and I would classify them as problems with the archetype as opposed to problems with the gwt- maven-plugin's goals. Since I generally build my projects from scratch (it's not hard but there are a lot of moving parts until you get it done correctly), I don't tend to see these issues. Of course, now the default project structure has changed and I have a bit of learning to do myself! Hang in there! smoyer On Nov 9, 10:48 am, cri chuck.irvine...@gmail.com wrote: Upon further experimentation, I'm under the impression that version 2.1 of the gwt-maven-plugin described athttp://mojo.codehaus.org/gwt-maven-plugin/ is not really ready for general use. I found at least two configuration defects in it. My recollection is a little vague regarding the specific problems. One had to do with an incorrect package specification having to do with Message class generation. The other was a missing classpath entry for some generated classes, one of which was Messages.java I think. I don't think that there has been a general announcement that this plugin is really ready for use. I'll be holding off using it for a while and just stick with standard gwt generated projects. I did get quite a way with the plugin and it is looking pretty promising. On Nov 9, 8:31 am, gopinath.in@gmail.com gopinath.in@gmail.com wrote: I am getting this problem when I am running mvn gwt:run commandline option. According tohttp://jira.codehaus.org/browse/MGWT-49, this has been fixed but when we run from commandline the problem is coming. So, I suspect this is problem with the repository. On Nov 9, 6:56 pm, gopinath.in@gmail.com gopinath.in@gmail.com wrote: I am also getting the same issue. I am not able get started with gwt, gae using spring roo. I am blocked. Here is the debug output. Settings\Gopinath\.m2\repository\com\google\appengine\appengine-java- sdk\1.3.7\appengine-java-sdk-1.3.7\lib\appengine-tools-api.jar;C: \Documents and Settings\Gopinath\.m2\repository\com\google\appengine \appengine-java-sdk\1.3.7\appengine-java-sdk-1.3.7\lib\impl\appengine- local-runtime.jar com.google.gwt.dev.DevMode -war C:\temp\petclinic \target\extrack-0.1.0.BUILD-SNAPSHOT -gen C:\temp\petclinic\target \.generated -logLevel INFO -port -startupUrl / ApplicationScaffold.html -server com.google.appengine.tools.development.gwt.AppEngineLauncher org.springsource.roo.extrack.ApplicationScaffold ]] failed with status 1 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 203) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 140) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif ecycleModuleBuilder.java: 84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif ecycleModuleBuilder.java: 59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Li fecycleStarter.java: 183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStart er.java: 161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168) at org.apache.maven.cli.MavenCli.main(MavenCli.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j ava: 290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java: 230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher .java: 409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 352)Causedby:org.codehaus.mojo.gwt.shell.ForkedProcessExecutionException: Command [[ C:\Program Files\Java\jdk1.6.0_02\jre\bin\java -javaagent:C:\Documents and Settings\Gopinath/.m2/repository/com/google/appengine/appengine- java-sdk/1.3.7/appengine-java-sdk-1.3.7/lib/agent/appengine-agent.jar - Xmx1024m -classpath C:\temp\petclinic\src\main\java;C:\temp\petclinic \src\main\aspect;C:\temp\petclinic\src\main\resources;C:\temp\petclinic \target\extrack-0.1.0.BUILD-SNAPSHOT\WEB-INF\classes;C:\Documents and
Re: GWT as a Desktop App (no browser !)
Without a browser is a bit nebulous ... but I'll tell you what I'm doing and you can judge for yourself whether it meets your requirements. If you create the proper manifest, a web-application can be stored on the user's hard-drive and run while off-line. I use Mozilla's Prism as the non-browser ... it looks just like the application in a web browser but has no navigation controls. Once you've got an off-line application running, you'll also need to store the data locally. This is only a little bit harder thanks to HTML5. Use the localstorage calls in the Javascript engine to allow storage to the local hard- drive. Note that this storage is a map controlled by the browser, so you can do rudimentary indexing if you're smart about picking your keys, but you do NOT have complete access to the local hard drive and the total amount of storage allocated is limited by Prism (but can be expanded by the user). Here's a link to get you started with both off-line application caching and localstorage: http://www.w3.org/TR/offline-webapps/ Hope this helps! smoyer On Oct 24, 12:50 pm, Be-noix benoitscher...@gmail.com wrote: QT is pretty easy to use and has WebKit in it, with the full support of javascript. You can compile your app for Win, Linux, OSX, ... Ben On 23 oct, 10:10, Stefan Bachert stefanbach...@yahoo.de wrote: Hi matt, this requirement are somewhat strange. Anyway, I would rather for a possibility to modify an open source browser in such a way, that he is only allowed to open one URL (an this automatically). Maybe remove URL entry and set the initial url to your site. This is in the end no GWT question Stefan Bacherthttp://gwtworld.de On 22 Okt., 22:52, mattlf matthieu.lab...@gmail.com wrote: Hi I need to create a Desktop App. It can not be a browser App as this App should be the only App available. Is it possible for a GWT App to run outside the browser (on a different runtime) as a standalone Desktop App (packaed with a runtime?) I came accross GWT running on top of AIR but it seems esoteric Thank you for your help matt -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Composite Library
That's actually a pretty simple prospect ... you need your class files, plus their source code and the *.gwt.xml module descriptor. I use Maven as my build system so I originally followed the guide at http://mojo.codehaus.org/gwt-maven-plugin/user-guide/library.html. But it also serves well as a generic description of the process. I also vaguely remember seeing instructions on the GWT site, but I couldn't find it as fast. Hope this helps! smoyer On Oct 28, 10:23 am, StrongSteve swe.sta...@gmail.com wrote: Hello, Can anyone provide a sample project or a link to a tutorial describing how to create a JAR-file containing self created composites and how to use this JAR-file in another GWT project? Thanks in Advance! Greetings Stefan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory + Rest/JSON?
I've been using RequestBuilder to access REST/JSON services since GWT version 1.7.0. Back then, you had to extend RequestBuilder as it was limited to POST and GET (to be compatible with Apple's then non- compliance Safari browser). With both GWT 2.0.3 and GWT 2.0.4, I've been using GWT's included XHR methods (DELETE, GET, HEAD, POST and PUT) and haven't felt the need to extend RequestBuilder just to get a couple more methods (that I don't use) in the name of full REST compliance. I'm using JavaScript Overlays both for the creation and reception of my entity objects. I have to say that I'm quite pleased with this arrangement. Using CouchDB as a back-end, I can serve my GWT application as a CouchApp and use the same database to serve and store my entities (documents). To use a JavaEE server, I load my set-up my entities as EJB3 JPA objects, use Hibernate to get them from an RDBMS, convert them to JSON in the web server and provide them to the front- end in the exact same format as a document store (like CouchDB) would. The only gotcha that I've found (and it cost me a lot of time) is with the use of the PUT method while running GWTTestCases. Don't bother trying! Every other method works, but PUT needs to be fixed (and I haven't quite found it yet). See http://code.google.com/p/google-web-toolkit/issues/detail?id=4719q=PUT%20GwtTestCasecolspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars for a description of this problem. As I was attempting to test my modules before they were integrated, this really hampered my integration testing. For acceptance testing, you can load your application up on HTMLUnit or JWebUnit and everything seems to work fine. You also have to be aware that JSONP is possible with GWT, but it's really not REST. Technically, you can only do GET methods (since the browser thinks it retrieving a page resource) and while you can fool it with a method override, that can be dicey. I'd recommend only using JSONP for retrieval of data from third-party sites (it's tempting to use JSONP to circumvent SOP ... don't do it). Wow ... that was a bit long-winded, but I think it's safe to say that REST/JSON with GWT is no longer the bleeding edge. Hope this helps, Steve Moyer -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory + Rest/JSON?
Has it ever been? ... I meant that you could pretty much do your REST/JSON with the RequestBuilder as shipped in GWT 2.x. Prior versions needed extra code around what was shipped. smoyer On Oct 13, 7:32 pm, Thomas Broyer t.bro...@gmail.com wrote: On 14 oct, 00:59, Steve Moyer smoye...@gmail.com wrote: I've been using RequestBuilder to access REST/JSON services since GWT version 1.7.0. [...] Wow ... that was a bit long-winded, but I think it's safe to say that REST/JSON with GWT is no longer the bleeding edge. Has it ever been?! I've been using the exact same approach since GWT 1.5.0 (with Spring Webscripts on the server side though; well, at the time they were Alfresco Web Scripts, not Spring Webscripts, and given that we haven't upgraded/updated the backend, they're still not Spring Webscripts, to be exact) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to generate the drop down options onModuleLoad
The compiled HTML and JavaScript runs in the browser, so you need to make a GWT-RPC or XMLHTTPRequest call to the server for the list contents. Hang in there ... once you get over the hump it makes a lot more sense! Try using the GWT plugin and Eclipse ... when you generate a new project there is a greeting service that shows how the client-server communication is done. Good luck! smoyer On Wed, Sep 29, 2010 at 3:16 AM, Rahul jainrahul...@gmail.com wrote: please respond its really urgent On Sep 28, 6:55 pm, Rahul jainrahul...@gmail.com wrote: Hello, Presently am working on GWT to build an front end for my SaaS based application and facing a little difficulty with generating a drop down list. What I have to do is based on the type of user logged in I have to populate a drop down list onModuleLoad so the list of options are always fetched from the server. Could anyone please suggest me the procedure for the same. Since am new to GWT and as far as i have read GWT complies the java code into html and javascript which is runs on the server so the compiled code generates the html which is static but i need a dynamic html. At server am using PHP and want to get the same result as we use to get the same result from GWT as generated by smarty templates. Please suggest how should i proceed -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Sent from my iBerry MacPhone -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to generate the drop down options onModuleLoad
Well ... if you were using plain-old HTML, you'd have a page reload of some sort to update the drop-down lists right? An XHR is way less expensive than that. I generally load cargo data with one or a few XHR requests right after the application loads, but for really dynamic DDLs or SuggestBoxes, you don't have a choice. If you're doing something simple like the first DDL has 10 options and the second DDL has 10 options that change depending on the first DDL's value, you just load all 110 values into the browser and write the logic to deal with changing the lists (enabling/disabling controls, changing focus, etc) in GWT. smoyer On Wed, Sep 29, 2010 at 10:50 AM, Rahul Jain jainrahul...@gmail.com wrote: Thanks Steve for ur response. i tought about this but this wont help me with my project because most of the fields present in the form are dynamic ones so sending a XHR request for field would be very expensive. could u please suggest any another way around. On Wed, Sep 29, 2010 at 4:48 PM, Steve Moyer smoye...@gmail.com wrote: The compiled HTML and JavaScript runs in the browser, so you need to make a GWT-RPC or XMLHTTPRequest call to the server for the list contents. Hang in there ... once you get over the hump it makes a lot more sense! Try using the GWT plugin and Eclipse ... when you generate a new project there is a greeting service that shows how the client-server communication is done. Good luck! smoyer On Wed, Sep 29, 2010 at 3:16 AM, Rahul jainrahul...@gmail.com wrote: please respond its really urgent On Sep 28, 6:55 pm, Rahul jainrahul...@gmail.com wrote: Hello, Presently am working on GWT to build an front end for my SaaS based application and facing a little difficulty with generating a drop down list. What I have to do is based on the type of user logged in I have to populate a drop down list onModuleLoad so the list of options are always fetched from the server. Could anyone please suggest me the procedure for the same. Since am new to GWT and as far as i have read GWT complies the java code into html and javascript which is runs on the server so the compiled code generates the html which is static but i need a dynamic html. At server am using PHP and want to get the same result as we use to get the same result from GWT as generated by smarty templates. Please suggest how should i proceed -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Sent from my iBerry MacPhone -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Rahul Jain +919990481340 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Sent from my iBerry MacPhone -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.