Re: About a multi page web application
o -- 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: About a multi page web application
first of all, TNX to everyone! sorry i didn't replied quicker, but i've been a bit busy and i've got a pause with gwt :) As ping2ravi suggested, i decided to use panels and attach them to the mainPanel. To avoid a single-page-full-code, i made a class for each panel so i can distribuite code, and then i attach an istance of the class i need to the mainPanel. Still i'm not sure the best way to do this as i faced some problems, but i tryed some basic panel switching, and they seems to work. If someone is interested, i'll post how i try to manage the panel switching -- 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.
History and server call.
Hi Guys, I have just implemented a multipage(basically multi url) website using History. It works great using history token. But i need something else from GWT which i am not able to solve. Now when user clicks on something(link/button etc) i add the token to History and my history callbacks get called. Now in history value change handler i do something like this 1) FInd out what page need to be dispalyed(basically identify the panels etc). 2) now each of my panel which can have history implementing hasHistory(my own) interface, which has function recoverPanelFromHistory. 3) In this function, i check if i have client side data cahced for this panel, if yes then load it into panel and display it(basically add to main panel widget tree). 4) But if no cache data found then go to server and get data. one such implementation @Override public boolean recoverPanelFromHistory(MapString, String historyTokens) { String page = historyTokens.get(PAGE_PARAM); boolean returnValue = false; if(home.equalsIgnoreCase(page)) { returnValue = userHomePanel.recoverPanelFromHistory(historyTokens); //and this function will calls its child panels if they support history if(returnValue ) { mainContentPanel.clear(); //clearing the mainPanel view of client mainContentPanel.add(userHomePanel); //and adding the view according to history token value } else { //dont change the browser view and stay at current panel/view/page. This also means child panel can not be recovered and there must be some problem with history tokens provided. } } if(profile.equalsIgnoreCase(page)) { returnValue = prodilePanel.recoverPanelFromHistory(historyTokens); //and this function will calls its child panels if they support history if(returnValue ) { mainContentPanel.clear(); //clearing the mainPanel view of client mainContentPanel.add(profilePanel); //and adding the view according to history token value } else { //dont change the browser view and stay at current panel/view/page. This also means child panel can not be recovered and there must be some problem with history tokens provided. } } return returnValue; } So till now theoretically it sounds good and works good. Problem starts when lets say user lost his Internet connection or call fail at server because of any system level error.. userHomePanel.recoverPanelFromHistory(historyTokens); This function does following things. 1) get the data from cache for this panel 2) if found call loadDataIntoPanel(data) function and load it into panel and return true. 3) else call the server to get data. Now server call is async and I need to return some value from userHomePanel.recoverPanelFromHistory(historyTokens);, so if i return true and call fails at server because of some network problem then ideally i dont want to switch to new view as per this history action but my function has already returned true and mainPanle has already changed the view to new panel. Now i dont want child panels to call parentPanel's method to tell them later that server call was success or failure so that main parent panel can decide whethere i should switch panels/view or not. If child need to know parent then my all panels will be too much dependent on each other and they will be too much crossed chain to each other. If you see gmail it uses such features. If you have loaded ur inbox and then you lost ur internet connection and then u click on any email. Then gmail doesnt take you to single mail viewer page and then tell oh u lost ur connection but it just keep you on inbox view and keep trying and after some time stop trying. How can i achieve such functionality.? Are there any existing libraries to do that or any particular design pattern is there? Thanks, in advance Ravi. -- 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: Odd serialization error
Finally found it! One of the referenced classes had itself a inverse reference back to Translation. It seems like Gilead cannot handle this resulting (at least for complex PKs) in a immensely large tree beeing sent back. I now use @ServerOnly on the inverse which solves the problem. Cheers Simon -- 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: FileUpload for Multiple selection
hi, selecting multiple files at ones is not provided Even if you are attaching a file to mail you have to add it one by one. So files will be submitted whenever we submit the form. and new GWT file upload widget is good to have in its simple and easy to implement as i have switched my traditional fileupload widget to new upload widget. Anyway do search for it and dont forget to post your reply if you find a solution for this. -- Aditya On Tue, Jun 15, 2010 at 4:15 AM, Bruno Lopes bruno.lourenco.lo...@gmail.com wrote: Hey, actually this does not do what I want... What this gwtupload library do I already do it using com.google.gwt.user.client.ui.FileUpload What I would like to do is select multiple files at once, avoid have to select one by one. an ideia ? html 5 ?... On Sun, Jun 13, 2010 at 6:38 PM, Bruno Lopes bruno.lourenco.lo...@gmail.com wrote: THANKS! ;) On Sun, Jun 13, 2010 at 6:24 PM, aditya sanas 007aditya.b...@gmail.comwrote: http://code.google.com/p/gwtupload/ http://code.google.com/p/gwtupload/this will help you probably. -- Aditya On Sun, Jun 13, 2010 at 10:35 PM, Bruno Lopes bruno.lourenco.lo...@gmail.com wrote: How to create a Multiple file selection for upload using ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FileUpload for Multiple selection
I assume a Flash-based solution is no-no...? On Tue, Jun 15, 2010 at 10:01 AM, aditya sanas 007aditya.b...@gmail.comwrote: hi, selecting multiple files at ones is not provided Even if you are attaching a file to mail you have to add it one by one. So files will be submitted whenever we submit the form. and new GWT file upload widget is good to have in its simple and easy to implement as i have switched my traditional fileupload widget to new upload widget. Anyway do search for it and dont forget to post your reply if you find a solution for this. -- Aditya On Tue, Jun 15, 2010 at 4:15 AM, Bruno Lopes bruno.lourenco.lo...@gmail.com wrote: Hey, actually this does not do what I want... What this gwtupload library do I already do it using com.google.gwt.user.client.ui.FileUpload What I would like to do is select multiple files at once, avoid have to select one by one. an ideia ? html 5 ?... On Sun, Jun 13, 2010 at 6:38 PM, Bruno Lopes bruno.lourenco.lo...@gmail.com wrote: THANKS! ;) On Sun, Jun 13, 2010 at 6:24 PM, aditya sanas 007aditya.b...@gmail.comwrote: http://code.google.com/p/gwtupload/ http://code.google.com/p/gwtupload/this will help you probably. -- Aditya On Sun, Jun 13, 2010 at 10:35 PM, Bruno Lopes bruno.lourenco.lo...@gmail.com wrote: How to create a Multiple file selection for upload using ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
exchange image by browser
Hi, I would like to use ClientBundle and ImageResource. But I would like to supply different images (under the same name) by browser. Does anyone have an idea how this could be achieved easily? Stefan Bachert http://gwtworld.de -- 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: Export ListGrid in SmartGWT
Hi Gopal, Please post Smart GWT related questions on the Smart GWT forum : http://forums.smartclient.com/forumdisplay.php?f=14 Thanks, Sanjiv On Mon, Jun 14, 2010 at 4:27 AM, gopal bhalala gopalbhal...@gmail.comwrote: I am using exportData on listGrid...Its working fine if i have only normal fields like text. But I have a problem with date field (without time). My exported data comes with time value (ex. 01/06/10 00:00:00 ) but I use EuropeanShortDate in data source. I need only date value in exported data file. Please suggest us that how I remove time (00:00:00) value and also how I make date field as customized. Below is snippet of my code. Datasource: .. field name=DOB title=DOB type=date useTextField=true textAlign=LEFT dateFormatter=toEuropeanShortDate / .. . Code: (1) DSRequest dsRequestProperties = new DSRequest(); (2) dsRequestProperties.setExportAs( (ExportFormat) EnumUtil.getEnum (ExportFormat.values(), csv)); (3) dsRequestProperties.setExportDisplay(ExportDisplay .DOWNLOAD); (4) cmps.gamesTree.childList.getField (crew_in_date).setType(ListGridFieldType.DATE ); (5) cmps.gamesTree.childList.exportData(dsRequestPrope rties); Thanking you, Gopal Bhalala -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Web Design Guidelines for the Nokia N900 v1.1
Was checking this fantastic guideline for web designing for the most anticipated N900!! This document contains information and guidelines for web developers who want to ensure that their pages work well with the Nokia N900 with Maemo 5 OS. In version 1.1 of the document, information about portrait orientation has been added. Download it here http://bit.ly/9kCTfU -- 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: Dev plugin for firefox 3.7
I'm developing a large WebGL application which is currently only supported by the nightly builds, so the answer to your question is, sadly, no :-) . I really, really want to be able to debug GWT in Firefox, so if necessary I'd be prepared to help with testing/building. Alan On 06/14/2010 02:35 PM, Jim Douglas wrote: Firefox 3.7 is the nightly (Minefield) build; is it possible to switch back to the current released version (3.6.3)? On Jun 14, 1:18 pm, Alan Chaneya...@mechnicality.com wrote: When I try to install the dev plugin on my Ubuntu 10.04 x64 system I get: No suitable plugins were found Seems to me that's because the 'latest' version in the plugin descriptor is set to 3.6. Does anyone know if there is a dev plugin build for 3.7? If not, can I build/modify one myself? TIA Alan -- 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.
UiBinder and child widgets
Hi, I've made a very simple GroupBox widget which works fine. I can add it in java to a panel, set caption and add widgets. But now I want to add it in a UiBinder template file. To enable it to contain HTML, I had to implement the HasHTML interface. Now the following works fine: g:HTMLPanel b:GroupBox caption=hello Hello World /b:GroupBox /g:HTMLPanel Next step; I want to be able to add child widgets from within my template, eg: g:HTMLPanel b:GroupBox caption=buttons g:Button ui:field=btnShowShow/g:Buttonbr/ g:Button ui:field=btnClearClear/g:Button /b:GroupBox /g:HTMLPanel Even though my GroupBox class extends the AbsolutePanel class, which implements the HasWidgets interface, it fails with the following error: Found widget g:Button ui:field='btnShow' in an HTML context Has anybody an idea how I can add child widgets in my UiPanel template? How do I have to implement my container widget? Thanks, Joost -- 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: Error with dispatch No handler is registered
i found da problem... forgot to call the bindHandler method to register the handler :) On Jun 12, 7:51 pm, I~N~S~I insiraw...@gmail.com wrote: Hi All, I'm trying to create a MVP model of GWT Sample app. as soon as the execute method is called in the dispatcher below error gets logged. net.customware.gwt.dispatch.shared.UnsupportedActionException: No handler is registered for com.project.jobbank.shared.rpc.SendQuery 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.MethodAdaptor.invoke(MethodAdaptor.java:105) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur n(BrowserChannel.java: 1713) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann elServer.java: 165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j ava: 91) at net.customware.gwt.dispatch.shared.UnsupportedActionException_FieldSerializ er.instantiate(UnsupportedActionException_FieldSerializer.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur n(BrowserChannel.java: 1713) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann elServer.java: 165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j ava: 91) at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap $.instantiate$(SerializerBase.java) at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBa se.java: 140) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deseria lize(ClientSerializationStreamReader.java: 114) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readO bject(AbstractSerializationStreamReader.java: 61) at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceiv ed(RequestCallbackAdapter.java: 199) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 287) at com.google.gwt.http.client.RequestBuilder $1.onReadyStateChange(RequestBuilder.java:393) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur n(BrowserChannel.java: 1713) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann elServer.java: 165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j ava: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at
Re: 1 layout - 3 browsers - 3 results?
Hi! I guess the point is that you used a FlowPanel which does not stretch its children. I found out that this is also true for AbsolutePanel. Thanks! BTW: I wonder why you use this construct: int parentH = dock.getWidgetContainerElement(this).getOffsetHeight(); Why not simply call: doc.getParent ().gettOffsetHeight(); ? The latter code would also be usable for parents that are no DockLayoutgPanel. Is there a special reason? Magnus On 12 Jun., 15:11, Alejandro D. Garin aga...@gmail.com wrote: Hi Try this: (only tested on mac FF and Safari) http://www.puntosoft.com.ar/gwt/layoutChess/FormTable.java On Sat, Jun 12, 2010 at 12:23 AM, Magnus alpineblas...@googlemail.comwrote: Hi Alejandro, I think you are replying to a post that I cancelled. I did so, because I managed to reproduce this behavior with a minimalistic piece of code so that it was clear that it must be a general issue. I found that here must be a problem in the GWT version that is not fixed yet: http://code.google.com/p/google-web-toolkit/issues/detail?id=4532 But let me come back to your code for centering the chess board: The main prerequisite is that you set (and therefore know) the pixel size of the inner box to 400,400. However, doing the same with a form was not possible for me since I am building on top of your code template. The reason is that I don't know the size of my form. I put all the widgets together in a panel (I tried every type) and add this panel to my DockLayoutPanel. Then it's immediately stretched, so that I cannot retrieve its natural size. But exactly this size is needed to do the centering as you did in your code. How would you do this? Can you help me again? Thank you Magnus -- 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: Layout UI Objects and GWT Themes
Hi, Old widgets uses a 9-box (a table with 3x3 entry). CSS3 allows to similate a 9 box with border images. However, images inccrease download time. And CSS3 allows to apply rounded corner (-o/-moz/-webkit/-border- radius) Without a modern browser you still have to take 9 box. Stefan Bachert http://gwtworld.de On Jun 14, 7:57 pm, lineman78 linema...@gmail.com wrote: Does anyone know if there is a way to theme the new layout-based panels? I.E. TabLayoutPanel to look like DecoratedTabPanel. I know that they limited the amount of style classes involved in the new tab panel, so I cannot figure out a way to retrofit the DecoratedTabPanel styles to the TabLayoutPanel, such as rounded corner tabs. -- 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: Developing wiki platform
Hi, i am using XWiki for gwtworld.de Some stuff is done with GWT-components. However, the general technique is struts. XWiki is ajaxified but does not have a real AJAX or GWT-architecture (XWiki uses anything, GWT, prototype, jquery) Stefan Bachert http://gwtworld.de On Jun 14, 5:48 pm, Thomas Broyer t.bro...@gmail.com wrote: On 14 juin, 12:39, Aditya 007aditya.b...@gmail.com wrote: hi guys, I have developed a web application for education domain which can be used by schools,colleges and universities. We are having GWT on client side which works absolutely fine and has helped to design fancy UI in small period of time. now we have decided to move further by giving some more functionality in my application which is like a WIKI platform for the users of this application. I m planning to design it using GWT and App engine. So people if anyone has idea in your mind or someone has already implemented it can help me your suggestions. XWiki is a Wiki developed with GWT on the client-side:http://www.xwiki.org Disclaimer: I only know of its existence, I never used it, even the demo, or looked at the code (it's LGPL) -- 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.
Problems with jasperreports integration
I am developing one project with GWT 2.0.3 and GXT 2.1.1 and this project is using the gwt-maven-plugin. The project was working until I add the jasperreports 3.7.3 dependencies. After this when I start the project and try to access by browser I get the follow error: java.lang.NoSuchFieldError: reportUnusedDeclaredThrownExceptionIncludeDocCommentReference at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java: 310)at com.google.gwt.dev.javac.JdtCompiler $CompilerImpl.init(JdtCompiler.java:148) at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:466) at com.google.gwt.dev.javac.CompilationStateBuilder $CompileMoreLater.compile(CompilationStateBuilder.java:142) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java: 281)at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java: 182)at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java: 280)at com.google.gwt.dev.DevModeBase $UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:99) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 180)at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 380)at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222)at java.lang.Thread.run(Thread.java:619) If I remove the jasperreports dependencies the project run normally, can somebody help me to solve this problem? 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.
Serialization Problem
Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'org.datanucleus.store.appengine.query.StreamingQueryResult' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = [] Members Class - on client - package com.Users.client; @PersistenceCapable public class Members implements Serializable{ . . . } Entry Point --- Client Class the problem here // Get Persisted Member memberService.getMembers(new AsyncCallbackListMembers() { @Override public void onFailure(Throwable caught) { // TODO Auto-generated method stub } @Override public void onSuccess(ListMembers result) { // TODO Auto-generated method stub adminPanel.add(new Label(get Members )); adminPanel.add(new Label(size +result.size())); for (Members m : result) { adminPanel.add(new Label(m.getMember())); } } }); MembersServiceImpl on Server package com.Users.server; @SuppressWarnings(serial) public class MembersServiceImpl extends RemoteServiceServlet implements MembersService { @SuppressWarnings(unchecked) @Override public ListMembers getMembers() throws NotLoggedInException { // TODO Auto-generated method stub ListMembers returnList = new ArrayListMembers(); PersistenceManager pm = PMF.get().getPersistenceManager(); String query = select from + Members.class.getName(); ListMembers members = (ListMembers) pm.newQuery(query).execute(); for(Members step: members) { returnList.add(step); } return returnList; } } how to Solve 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-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.
GWT with Mave
Hello, I'm Leonardo from Argentina. I want to know if there is a documented process to create a GWT project with Maven and then import it to Eclipse. Thanks! Leo. -- 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.
SuggestBox MultiWordSuggestOracle autocomplete can't create suggestion/display pairs except for default
I have a GWT autocomplete new SuggestBox((new MultiWordSuggestOracle()); For the default suggestions which appears before the user types any prefix, there is a nice method MultiWordSuggestOracle.setDefaultSuggestions(CollectionSuggestion suggestionList) so I can pass a nice list of a Suggestion's which are displayed as html (for example I can create FaceBook style autosuggest with two lines displayed in each item but with a simple replacement text by simply implementing the Suggestion interface). But for suggestions that appear once the user starts typing, the only method seems to be add(String suggestion) where I cannot control how it is displayed at all. Any ideas how I can create a Suggestion with separate (html) display and (simple text) replacement values for the auto-complete as I can for the default? Thx Marc -- 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.
tabPanel with gwt hyperlinks
Hi, i need to advice how can i create a TabPanel with gwt hyperlinks on tabBar header. there should be also posibility of web history. thanks, ivan -- 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.
Does AdSense work with GWT? If so, How?
I'm looking at using this framework for a new project, but I need to have the AdSense functionality. 1 - Does AdSense work with GWT? 2 - If so, how? I see a whole bunch of hacks that 'might' work, but I need something more stable than that. This is really a deal breaker for us...if AdSense does not work with GWT, then we can't use GWT. Thanks for any help! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
DockLayoutPanel inside a ScrollPanel
Hi, I have a layout defined by: - ... - ScrollPanel - DockLayoutPanel - north - west - center - east The problem is that the dock layout panel is cut off from the window; the scroll bars don't appear. I can force the scroll bars to appear by setting the height of both panels to some pixel, but this is obviously not a useful solution. Any hints? -- 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: UiBinder and child widgets
Okay, fixed my problem already ;-) First of all, it seemes that you cannot implement both the HasWidgets and HasHTML interface. Well, you can, but the UiBinder will only accept the first one. This means that if you implement HasWidgets, HasHTML, you can only add child widgets. If you implement HasHTML, HasWidgets, you can only add HTML. This is quite easy to work around. Simply just implement HasWidgets and add all HTML using an HTMLPanel. Then the tricky part: My GroupBox is subclassed from AbsolutePanel, which already implements the HasWidgets interface. It seems though, that I have to declare that interface again in my GroupBox class, else UiBinder won't recognize it! (Is this a bug?) So the solution was simple: add the HasWidgets interface to the GroupBox class declaration and we're done! g:HTMLPanel b:GroupBox caption=hello Hello World /b:GroupBox b:GroupBox caption=buttons g:HTMLPanel g:Button ui:field=btnShowShow/g:Buttonbr/ g:Button ui:field=btnClearClear/g:Button /g:HTMLPanel /b:GroupBox /g:HTMLPanel Works like a charm now! On 15 jun, 15:10, Joost Bloemsma joost.a.bloem...@gmail.com wrote: Hi, I've made a very simple GroupBox widget which works fine. I can add it in java to a panel, set caption and add widgets. But now I want to add it in a UiBinder template file. To enable it to contain HTML, I had to implement the HasHTML interface. Now the following works fine: g:HTMLPanel b:GroupBox caption=hello Hello World /b:GroupBox /g:HTMLPanel Next step; I want to be able to add child widgets from within my template, eg: g:HTMLPanel b:GroupBox caption=buttons g:Button ui:field=btnShowShow/g:Buttonbr/ g:Button ui:field=btnClearClear/g:Button /b:GroupBox /g:HTMLPanel Even though my GroupBox class extends the AbsolutePanel class, which implements the HasWidgets interface, it fails with the following error: Found widget g:Button ui:field='btnShow' in an HTML context Has anybody an idea how I can add child widgets in my UiPanel template? How do I have to implement my container widget? Thanks, Joost -- 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: UiBinder and child widgets
Okay, fixed my problem already ;-) First of all, it seemes that you cannot implement both the HasWidgets and HasHTML interface. Well, you can, but the UiBinder will only accept the first one. This means that if you implement HasWidgets, HasHTML, you can only add child widgets. If you implement HasHTML, HasWidgets, you can only add HTML. This is quite easy to work around. Simply just implement HasWidgets and add all HTML using an HTMLPanel. Then the tricky part: My GroupBox is subclassed from AbsolutePanel, which already implements the HasWidgets interface. It seems though, that I have to declare that interface again in my GroupBox class, else UiBinder won't recognize it! (Is this a bug?) So the solution was simple: add the HasWidgets interface to the GroupBox class declaration and we're done! g:HTMLPanel b:GroupBox caption=hello Hello World /b:GroupBox b:GroupBox caption=buttons g:HTMLPanel g:Button ui:field=btnShowShow/g:Buttonbr/ g:Button ui:field=btnClearClear/g:Button /g:HTMLPanel /b:GroupBox /g:HTMLPanel Works like a charm now! On 15 jun, 15:10, Joost Bloemsma joost.a.bloem...@gmail.com wrote: Hi, I've made a very simple GroupBox widget which works fine. I can add it in java to a panel, set caption and add widgets. But now I want to add it in a UiBinder template file. To enable it to contain HTML, I had to implement the HasHTML interface. Now the following works fine: g:HTMLPanel b:GroupBox caption=hello Hello World /b:GroupBox /g:HTMLPanel Next step; I want to be able to add child widgets from within my template, eg: g:HTMLPanel b:GroupBox caption=buttons g:Button ui:field=btnShowShow/g:Buttonbr/ g:Button ui:field=btnClearClear/g:Button /b:GroupBox /g:HTMLPanel Even though my GroupBox class extends the AbsolutePanel class, which implements the HasWidgets interface, it fails with the following error: Found widget g:Button ui:field='btnShow' in an HTML context Has anybody an idea how I can add child widgets in my UiPanel template? How do I have to implement my container widget? Thanks, Joost -- 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: using gwt for games - svg, canvas or something else?
Hi, the gwt-canvas demo impressed me: http://stud-in.fh-swf.de/Oliver.Zoran/gwt-canvas/ But I cannot see how this relates to standard GWT programming. It seems that there is a separate library that has to be used. How can I be sure that my code will still run with the standard GWT SDK in the future? Are'nt there methods for using canvas with plain GWT? Magnus On 11 Jun., 17:43, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: On 11 June 2010 07:56, Aljosa Mohorovic aljosa.mohoro...@gmail.com wrote: i've found several gwt extensions that have svg or canvas support but i have no idea what to use. i'm trying to create simple games (stuff usually produced in flash) so i was wondering if anybody else tried something like that? what would you recommend? I've been wondering about the same thing. SVG and canvas aren't supported very well yet. The same goes for WebGL. But I'd love to use GWT to create games as the end result would be highly portable *and* it would not require the user to install any plugins. I've been thinking of trying a Java game engine like JMonkeyEngine or JGame but such engines often rely on OpenGL or DirectX (for hardware acceleration) and I'm not sure how that would translate into the JavaScript world. I haven't found any pure JavaScript game engines that looked really usable. The Aves Engine looks very promising but it's still alpha. I too would love to hear other people's opinions on this. Cheers, Hilco -- 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.
Failure creating a timer in ServerImplementation
Hi! I'm writing an application which starts a new timer for each user logging in. I'm storing the timers in a HashMap for easy access. A KeepAlive from Client will get the timer out of the Hashmap and reset it. But when executing Timer t = new Timer(){}, the method crashes. Can somebody tell me why? Heres the Code of my ServerImplementation: if (setConnection(server, DBschemeName, user, passwd) == false) return 0; else { connectedUsers.put(user, passwd); logWarn(Baue Timer); Timer t = new Timer(){ public void run() { logoutUser(user); logWarn(User +user+ logged out due to Timeout!); } }; t.schedule(logoutTime); userLogoutTimers.put(user, t); return 1; } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT with Mave
http://mojo.codehaus.org/gwt-maven-plugin/ I am using this successfully. HTH. Subhro. On Mon, Jun 14, 2010 at 11:42 PM, Leo leonardocr...@gmail.com wrote: Hello, I'm Leonardo from Argentina. I want to know if there is a documented process to create a GWT project with Maven and then import it to Eclipse. Thanks! Leo. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Failure creating a timer in ServerImplementation
A. I guess it's the following: I included com.google.gwt.user.client.Timer instead of java.util.Timer... could this be the reason? On 15 Jun., 16:25, uwi_u uwe.chris...@gad.de wrote: Hi! I'm writing an application which starts a new timer for each user logging in. I'm storing the timers in a HashMap for easy access. A KeepAlive from Client will get the timer out of the Hashmap and reset it. But when executing Timer t = new Timer(){}, the method crashes. Can somebody tell me why? Heres the Code of my ServerImplementation: if (setConnection(server, DBschemeName, user, passwd) == false) return 0; else { connectedUsers.put(user, passwd); logWarn(Baue Timer); Timer t = new Timer(){ public void run() { logoutUser(user); logWarn(User +user+ logged out due to Timeout!); } }; t.schedule(logoutTime); userLogoutTimers.put(user, t); return 1; } -- 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: AOP Framework
I did not thought on having a feature like that. Can be great if you can provide some case study for it. IMHO doing something similar to gin, should not be that difficult. At least when it comes to provide a factory for the intercepted classes. What it struggles me a bit more, is how the methods interception are defined. Since you don't want to modify the classes, I guess you less want to annotated their methods. Maybe a good approach is using Matchers as GIN does. I believe this feature is more in the scope of GIN. In fact they have plans to introduce AOP some day. http://code.google.com/p/google-gin/issues/detail?id=38 I'm developing this 'framework' together with a real application. So, the features are a bit driven for the needs of my application. But an integration with GIN is a must someday I will need to face. On Jun 15, 4:56 am, Carl Pritchett bogusggem...@gmail.com wrote: IMHO it would be great if you didn't have to add an interface to the Interceptable classes, but instead created a binding class (something like a Gin module). Then you could add aspects without changing the target classes. Of course easier said than done. The code looks like: {{{ public class MyClass implements Interceptable { @Intercept(LoggerInterceptor.class) public int add(int a, int b) { } } }}} -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT with Mave
Create your maven project like this.. http://mojo.codehaus.org/gwt-maven-plugin/user-guide/archetype.html http://mojo.codehaus.org/gwt-maven-plugin/user-guide/archetype.htmlThen run the dev mode with the goal 'gwt:run' On Tue, Jun 15, 2010 at 11:57 PM, Subhrajyoti Moitra subhrajyo...@gmail.com wrote: http://mojo.codehaus.org/gwt-maven-plugin/ I am using this successfully. HTH. Subhro. On Mon, Jun 14, 2010 at 11:42 PM, Leo leonardocr...@gmail.com wrote: Hello, I'm Leonardo from Argentina. I want to know if there is a documented process to create a GWT project with Maven and then import it to Eclipse. Thanks! Leo. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: where to define domain objects
The domain object I mentioned needs some further clarification: It's a serializable Data Transfer Object/Bean/POJO that will be transferred across all layers: presentation, business, and persistence. With this in mind, I put the domain package under \client following the approach described in the book of 'Pro Web 2.0 Application Development with GWT' On Jun 13, 11:08 am, Stefan Bachert stefanbach...@yahoo.de wrote: HiDenis, It is absolutely clear where domain object are NOT located, in client and shared. Domain objects have nothing to do in GUI or client for a very simple project I would put it under server. But in general I would put domain objects into a separate project. The reason is, in general there is more than one application possible dealing the same domain objects. In general you have the following kind of objects on the server side which may build an own layer and thatfore projects. Session objects (state of your gui, application dependant, may be persistent) Application objects (application dependant, persistant) Domain objects (application independant, persistant) Stefan Bacherthttp://gwtworld.de On Jun 11, 10:45 pm,Denisdenis.w...@gmail.com wrote: Hello, I am new to use GWT RPC. I am going to define a domain object which will map to a database table and be transported all across the layers from the data persistence to business logics and finally GWT presentation layer. The question is where should I define those domain objects? Inside the existing client/server/shared folders or add a new domain folder? Thanks. Denis -- 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.
GWT 2.1 / Google I/O 2010 - GWT's UI overhaul
in response to: http://www.youtube.com/watch?v=g2XclEOJdIcplaynext_from=TLvideos=3iOGbt6Y2as great work guys!! The GWT is becoming what I hoped it to be back in 2007, a lot of nice cleanups. Actually the code splitting, multiple entry points on one page, and integration with existing javascripts were our biggest concearns and 80% of them ahave been resolved over the years. Still most of the new functionalities suffer from the java-syndrome - too many abstraction layers and plainly frustrating boilerplate. Now I want a graphic UI editor and crawlable gwt code. With UI binder we've done a full circle ... from JSP / Velocity to Swing/Programatic layouts to another form of templates. I want my templates to be renderable / editable by my web designer. This is a must! Also the crawlability is a must, once this is done, PHP can finally rest in peace. Until then, wordpress is the best tool if you want your page to be findable. I don't care how great service you provide, people need to know your page exists before they use 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-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: 1 layout - 3 browsers - 3 results?
On Tue, Jun 15, 2010 at 10:49 AM, Magnus alpineblas...@googlemail.comwrote: BTW: I wonder why you use this construct: int parentH = dock.getWidgetContainerElement(this).getOffsetHeight(); Why not simply call: doc.getParent ().gettOffsetHeight(); ? The latter code would also be usable for parents that are no DockLayoutgPanel. Is there a special reason? Hi Magnus, Because I want to center the widget into the Dock.CENTER layer, and not the whole DockLayoutPanel. Try to make the change and you will see the difference. Glad that the code snippet help you. Alejandro -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT applet problem
Hi, I am wondering what are you talking about. GWT does not has a concept of applets. GWT client does NOT run on a jvm. So please tell us the full story. Stefan Bachert http://gwtworld.de On Jun 14, 4:13 pm, Šobis matej.poklu...@gmail.com wrote: Hello, I have problem with launching applet in GWT. It is about SIP applet, which I launch in my HTML file and then later I call it's functions. This applet needs users certificate approval, which is OK. Problem is, that sometime user doesn't get certificate approval window, because applet doesn't start. So the whole thing is useless. The question is, why applet sometimes launches OK and sometimes not - on the same PC, same JVM, I noticed that in Chrome it works always but in Firefox it's not. Any idea what could be reason for this? best Matej -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT with Mave
Does anyone know an easy way to integrate App Engine with gwt-maven- plugin? The gae-maven-plugin archetypes are way outdated. I think it involves the noserver option, as well as some customization of gwt-maven-plugin (exploded war directory output to server WEB-INF folder??). I am going to try again this weekend if I don't get any responses from this. It'd be so nice to have separate Client/Server/Shared modules! On Jun 15, 9:50 am, Andrew Hughes ahhug...@gmail.com wrote: Create your maven project like this..http://mojo.codehaus.org/gwt-maven-plugin/user-guide/archetype.html http://mojo.codehaus.org/gwt-maven-plugin/user-guide/archetype.htmlThen run the dev mode with the goal 'gwt:run' On Tue, Jun 15, 2010 at 11:57 PM, Subhrajyoti Moitra subhrajyo...@gmail.com wrote: http://mojo.codehaus.org/gwt-maven-plugin/ I am using this successfully. HTH. Subhro. On Mon, Jun 14, 2010 at 11:42 PM, Leo leonardocr...@gmail.com wrote: Hello, I'm Leonardo from Argentina. I want to know if there is a documented process to create a GWT project with Maven and then import it to Eclipse. Thanks! Leo. -- 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%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%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.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Menu having three gradient images.
Hi, GWT could only do what the browser supports. And IE is just poor and a waste of time However, when you know a trick in html, you can put html to a menuItem setHTML() Stefan Bachert http://gwtworld.de On Jun 14, 11:28 am, Sandeep kumar sandeepsrivastav...@gmail.com wrote: Hi, I am facing the problem when i want to construct a menuitem having rounded image[built from 3 seperate gradient image]. In Mozilla, we can write three backgroud image in one class and for one element. But in IE, we cannot. In IE, we can do it by span tag in html. But in GWT, how can i write this. Please help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Layout UI Objects and GWT Themes
Yeah, I am using the webkit and moz border radius for now. I understand that I could use decorated panel inside the tabs, but from what I know you can't tell decorated panel to do just rounded corners on the top. I think what I may do is just use css3 stuff and when it comes to browser selection use that to push a modern browser. I just wish that the GWT themes was fully supported with all the 2.0 stuff including ClientBundle. On Jun 15, 8:05 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, Old widgets uses a 9-box (a table with 3x3 entry). CSS3 allows to similate a 9 box with border images. However, images inccrease download time. And CSS3 allows to apply rounded corner (-o/-moz/-webkit/-border- radius) Without a modern browser you still have to take 9 box. Stefan Bacherthttp://gwtworld.de On Jun 14, 7:57 pm, lineman78 linema...@gmail.com wrote: Does anyone know if there is a way to theme the new layout-based panels? I.E. TabLayoutPanel to look like DecoratedTabPanel. I know that they limited the amount of style classes involved in the new tab panel, so I cannot figure out a way to retrofit the DecoratedTabPanel styles to the TabLayoutPanel, such as rounded corner tabs. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT project with multiple pages
Hi, could you please tell what the benefit of multiple host pages should be? To me it still looks like a misconception because of still sticking with concepts of pre-AJAX era. Stefan Bachert http://gwtworld.de On Jun 13, 1:33 am, Mark mark.java.john...@gmail.com wrote: Hi, There is now a project on Google Code (http://code.google.com/p/gwt- multipage/) for managing multiple host pages. And, tutorials here -http://claudiushauptmann.com/and here -http://uptick.com.au/content/managing-multiple-host-pages. Cheers Mark -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Formpanel and multipart
Thanks Thomas On May 19, 7:23 pm, Thomas Broyer t.bro...@gmail.com wrote: On 19 mai, 07:22,noob_boyacharya@gmail.com wrote: On the server side, how to get the params sent on form submit? getParameterMap() should give me all the form params, correct? No, it only does so when using application/x-www-form-urlencoded. How do I get the file, I am running it on Google App Engine.. Hence I cannot use any disk writing classes. http://code.google.com/appengine/docs/java/blobstore/overview.html#Up... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Rich Text Area Basic Question
Help me on this issue . I am trying to build a Text Area . (Its ok it is a RichText Area, i dont need anything else of a rich text area functionalites ) . Inside the Text area user should see a message saying View Link . The View Link should be built in as soon as the user comes to this page 1. Click on the Link I need to Open a Dialog Box . 2. Also I need to find out out if user has removed this View Link from inside the text area when he enters some details and clicks on Submit . -- 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.
Invoking GWT from outside the war
Hello I am wondering if I can launch a GWT app from an html page wich is outside the GWT war app. In case it is possible, how can I manage to do it? I tried to copy the sample html that launches the GWT app in the project outside it and play a bit with it, but I didn't get far to be honest. Any help will be appreciated ^^ That's the code that DOESN'T work !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head link rel=stylesheet href=css/style.css type=text/css/ meta name=gwt:module content=cat.udl.griho.AnalisiHeuristic.Main=cat.udl.griho.AnalisiHeuristic.Main titleMain/title /head body h1Sample html outside the war/h1 script type=text/javascript src= http://localhost:8084/AnalisiHeuristic/cat.udl.griho.AnalisiHeuristic.Main/cat.udl.griho.AnalisiHeuristic.Main.nocache.js /script /body /html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1 / Google I/O 2010 - GWT's UI overhaul
Thank you, glad we're addressing your concerns. As for crawlability, Google has recently introduced a new scheme to make Ajax (including GWT) apps crawlable. It is documented here: code.google.com/web/ajaxcrawling. Several users have used this scheme successfully in their apps. For GWT apps, HtmlUnit is a good choice to create an HTML snapshot. Thanks! kathrin On Tue, Jun 15, 2010 at 11:17 AM, magnum p.magnow...@gmail.com wrote: in response to: http://www.youtube.com/watch?v=g2XclEOJdIcplaynext_from=TLvideos=3iOGbt6Y2as great work guys!! The GWT is becoming what I hoped it to be back in 2007, a lot of nice cleanups. Actually the code splitting, multiple entry points on one page, and integration with existing javascripts were our biggest concearns and 80% of them ahave been resolved over the years. Still most of the new functionalities suffer from the java-syndrome - too many abstraction layers and plainly frustrating boilerplate. Now I want a graphic UI editor and crawlable gwt code. With UI binder we've done a full circle ... from JSP / Velocity to Swing/Programatic layouts to another form of templates. I want my templates to be renderable / editable by my web designer. This is a must! Also the crawlability is a must, once this is done, PHP can finally rest in peace. Until then, wordpress is the best tool if you want your page to be findable. I don't care how great service you provide, people need to know your page exists before they use 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: retrieving the size of a panel/widget before it is added
Hi, sorry for my late reply. You were totally right. I fixed it with an AbsolutePanel. Magnus On Jun 11, 4:36 pm, Thomas Broyer t.bro...@gmail.com wrote: On 11 juin, 15:37, Magnus alpineblas...@googlemail.com wrote: Hi, what makes the difference? The intermediate panel would be sized when added to the DockLayoutPanel, not the VerticalPanel that you then put inside, that would be *eventually* resized following the constraints/layout of the intermediate panel (not the DockLayoutPanel). And the panels I listed don't resize their child widgets. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT and Spring - with Spring Web MVC or without it?
For operations like file upload which cannot be done with Ajax, GWT provides no server-side facilities. With Spring MVC, you can easily wire up a Spring Controller that handles the file upload request that a GWT client submits to. See: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-multipart Yes, Spring MVC is a page-based framework with both server-side and client-side facilities, and GWT is a component-based mostly client- side only framework that was designed for web applications that execute in a single page, such as Gmail, Google Maps, and Google Wave. However, even an app like Gmail has a login page that is separate from the actual application which submits a form post, then redirects the browser to a separate page that loads the application. Spring MVC is well suited for serving pages like that login page and handling the form post. Additionally, there is great benefit derived from using Spring Core for dependency injection and AOP of your server-side code. All serious Java web applications that I have worked on have significantly more server-side code than client-side code. -Richard On Jun 13, 7:59 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, Spring MVC does not fit to GWT at all. GWT considers the browser to be a thin/rich client, and the server to be the data source/model Spring MVC considers the browser to be an ultra thin client (something like an x-server), and considers the server to be a fat client, where presentation, business logic and persistence live. Spring MVC is an artefact of the pre-AJAX-era. Use GWT for real application (RIA) and use Spring MVC for hyperlinked documents. In a complex website you may switch between real applications and hyperlinked documents, so you will find both in one site. But it makes NO sense to drive GWT with Spring MVC. When you look at Spring Roo and its GWT support, it comes without Spring MVC (Spring Roo can generate Spring MVC controller but without GWT). It is either or Stefan Bacherthttp://gwtworld.de On Jun 8, 5:32 pm, ezamur eza...@gmail.com wrote: Hi all... I am new to GWT - had some contact with it earlier but not enough to say I am confident with it. My task is to investigate this technology and pair it with Spring framework. There are a lot of tutorials explaining how this can be done, but what is bothering me is I can't decide which approach to choose. For example, I've seen one using Spring's MVC (like this one:http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-...), but also other where integration is done without it (e.g.http://code.google.com/p/gwt-spring-starter-app/) I am afraid to miss something important by choosing one of these approaches and possibly lose some of Web MVC functionalities that might be needed later or end up in dead end street using it. I would be grateful if anyone explained me what are the pros and cons of these approaches from practical point of view - is there a need for DispatcherServlet and Controllers while having GWT and its RPC mechanism. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Build file Corresponding to GWT Compilation From Eclipse
I'm curious about what occurs with regard to Ant when eclipse compiles my gwt project. I'm assuming there is a build.xml file that is generated and ant runs some javac process declared within the build.xml to compile the java into javascript. If this is correct, is it possible to view the contents of that file? If not correct, could someone explain further what is actually going on? Thanks, Daniel -- 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 inside a ScrollPanel
You need to set the docklayoutpanel's height and width. 2010/6/14 Elben Shira elbensh...@gmail.com Hi, I have a layout defined by: - ... - ScrollPanel - DockLayoutPanel - north - west - center - east The problem is that the dock layout panel is cut off from the window; the scroll bars don't appear. I can force the scroll bars to appear by setting the height of both panels to some pixel, but this is obviously not a useful solution. Any hints? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT applet problem
Hi, how do you place applet in gwt? You know that applet must be placed for example in html or jsp? I am wandering how do you use it with gwt? If you want to show the applet in gwt app, the easiest way is to embed a frame within the gwt app, which hosts the applet. That way you shouldn't have any problems. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT applet problem
Is it necessary to create a frame for that applet? I think it should be possible to build the applet/param tags with JS and place it basically wherever you need, GWT-widgets including. On Wed, Jun 16, 2010 at 12:49 AM, mariyan nenchev nenchev.mari...@gmail.com wrote: Hi, how do you place applet in gwt? You know that applet must be placed for example in html or jsp? I am wandering how do you use it with gwt? If you want to show the applet in gwt app, the easiest way is to embed a frame within the gwt app, which hosts the applet. That way you shouldn't have any problems. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Safari 5 - (RangeError): Maximum call stack size exceeded
So did you end up rebuilding the GWT itself? Where do I start to apply this patch? On Jun 9, 4:31 pm, dunhamst...@gmail.com dunhamst...@gmail.com wrote: This is occurring for us in the Arrays.mergeSort() code. A reduced testcase (which looks like the binarySearch code) is in the webkit bug tracking system at: https://bugs.webkit.org/show_bug.cgi?id=40355 It appears that in some complex expressions the right shift operator is not evaluating correctly. Assigning the result of the right shift to a temporary variable and then using it appears to make the problem go away. As a temporary fix, we're patching Arrays.java:mergeSort() to assign the result of the right shift to a temporary variable before using it. If you're using binary search you'd need to patch those functions as well. It's a bit of a hack, but it seems to work. I've included our patch below, in case it is helpful to someone. diff --git a/super/com/google/gwt/emul/java/util/Arrays.java b/super/ com/google/ index 89dcc33..b7ba6fa 100644 --- a/super/com/google/gwt/emul/java/util/Arrays.java +++ b/super/com/google/gwt/emul/java/util/Arrays.java @@ -1322,7 +1322,8 @@ public class Arrays { // recursively sort both halves, using the array as temp space int tempLow = low + ofs; int tempHigh = high + ofs; - int tempMid = tempLow + ((tempHigh - tempLow) 1); + int half = length 1; + int tempMid = tempLow + half; mergeSort(array, temp, tempLow, tempMid, -ofs, comp); mergeSort(array, temp, tempMid, tempHigh, -ofs, comp); -- 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: exchange image by browser
I did not try myself, but I think you need conditional css. http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#Conditional_CSS On Jun 15, 11:27 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, I would like to use ClientBundle and ImageResource. But I would like to supply different images (under the same name) by browser. Does anyone have an idea how this could be achieved easily? Stefan Bacherthttp://gwtworld.de -- 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.
how to play embedded videos on GWT
Hi, I am using com.bramosystems.oss.player.flat.client.FlatVideoPlayereclipse-javadoc:%E2%98%82=Padroes/war%5C/WEB-INF%5C/lib%5C/bst-player-api-1.0.jar%3Ccom.bramosystems.oss.player.flat.client(FlatVideoPlayer.class%E2%98%83FlatVideoPlayer .FlatVideoPlayer to play videos but it seems not working on firefox and safari on MAC OS any idea ? -- 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 inside a ScrollPanel
If i'm not mistaken you may be running into essentially the same kind of dilemma I've had to deal with. My site doesn't use a DocLayoutPanel cuz I made this part of my site long before layout panels existed in GWT, but I think some of my divs are the same thing as layout panels. I use css styling; position:absolute along with specific top, right, bottom, left coords to make a panel that takes up all the the remaining width and height left in the page. The internal divs are absolute and set with width and height at 100% and that seems to be enough to create scroll bars if the contents are larger than the container. I do actually have the second inner div with overflow set to auto, but I'm playing with the CSS right now and having that (the overflow css) NOT set doesn't change the scrollbar or anything. I guess I don't need it... So... is my assumption that LayoutPanels have position:absolute and the four directions set to 0px (or whatever value) correct? If so, maybe that panel can gain scrollbars by making inner panels have position:absolute and height:100% as well? I'm not entirely sure, though I'm sure I could figure it out if I played with the css on your site. Or you can just use a DOM inspector on my site at http://subtabs.skystrider.com and see how I accomplish it. hope that helps a little bit :) On Jun 15, 3:25 pm, Gal Dolber gal.dol...@gmail.com wrote: You need to set the docklayoutpanel's height and width. 2010/6/14 Elben Shira elbensh...@gmail.com Hi, I have a layout defined by: - ... - ScrollPanel - DockLayoutPanel - north - west - center - east The problem is that the dock layout panel is cut off from the window; the scroll bars don't appear. I can force the scroll bars to appear by setting the height of both panels to some pixel, but this is obviously not a useful solution. Any hints? -- 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%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.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: exchange image by browser
I personally prefer to keep logic in the application's language. I like to keep CSS for just styling and keep all my logic in JS. Is there a particular reason you can't just use JS to detect which browser is running and then grab the right ImageResource for the job (in this case you then need one ImageResource for each browser)? Of course, you don't have to comply with my own standards and as such you would need to use conditional css as was kindly mentioned by fmod. :) On Jun 15, 7:38 pm, fmod francisco.mode...@gdsoft.eu wrote: I did not try myself, but I think you need conditional css.http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.htm... On Jun 15, 11:27 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, I would like to use ClientBundle and ImageResource. But I would like to supply different images (under the same name) by browser. Does anyone have an idea how this could be achieved easily? Stefan Bacherthttp://gwtworld.de -- 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: History and server call.
Using the event bus may help there. http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html and the two articles http://code.google.com/webtoolkit/articles/mvp-architecture.html On Jun 15, 9:14 am, ping2ravi ping2r...@gmail.com wrote: Hi Guys, I have just implemented a multipage(basically multi url) website using History. It works great using history token. But i need something else from GWT which i am not able to solve. Now when user clicks on something(link/button etc) i add the token to History and my history callbacks get called. Now in history value change handler i do something like this 1) FInd out what page need to be dispalyed(basically identify the panels etc). 2) now each of my panel which can have history implementing hasHistory(my own) interface, which has function recoverPanelFromHistory. 3) In this function, i check if i have client side data cahced for this panel, if yes then load it into panel and display it(basically add to main panel widget tree). 4) But if no cache data found then go to server and get data. one such implementation @Override public boolean recoverPanelFromHistory(MapString, String historyTokens) { String page = historyTokens.get(PAGE_PARAM); boolean returnValue = false; if(home.equalsIgnoreCase(page)) { returnValue = userHomePanel.recoverPanelFromHistory(historyTokens); //and this function will calls its child panels if they support history if(returnValue ) { mainContentPanel.clear(); //clearing the mainPanel view of client mainContentPanel.add(userHomePanel); //and adding the view according to history token value } else { //dont change the browser view and stay at current panel/view/page. This also means child panel can not be recovered and there must be some problem with history tokens provided. } } if(profile.equalsIgnoreCase(page)) { returnValue = prodilePanel.recoverPanelFromHistory(historyTokens); //and this function will calls its child panels if they support history if(returnValue ) { mainContentPanel.clear(); //clearing the mainPanel view of client mainContentPanel.add(profilePanel); //and adding the view according to history token value } else { //dont change the browser view and stay at current panel/view/page. This also means child panel can not be recovered and there must be some problem with history tokens provided. } } return returnValue; } So till now theoretically it sounds good and works good. Problem starts when lets say user lost his Internet connection or call fail at server because of any system level error.. userHomePanel.recoverPanelFromHistory(historyTokens); This function does following things. 1) get the data from cache for this panel 2) if found call loadDataIntoPanel(data) function and load it into panel and return true. 3) else call the server to get data. Now server call is async and I need to return some value from userHomePanel.recoverPanelFromHistory(historyTokens);, so if i return true and call fails at server because of some network problem then ideally i dont want to switch to new view as per this history action but my function has already returned true and mainPanle has already changed the view to new panel. Now i dont want child panels to call parentPanel's method to tell them later that server call was success or failure so that main parent panel can decide whethere i should switch panels/view or not. If child need to know parent then my all panels will be too much dependent on each other and they will be too much crossed chain to each other. If you see gmail it uses such features. If you have loaded ur inbox and then you lost ur internet connection and then u click on any email. Then gmail doesnt take you to single mail viewer page and then tell oh u lost ur connection but it just keep you on inbox view and keep trying and after some time stop trying. How can i achieve such functionality.? Are there any existing libraries to do that or any particular design pattern is there? Thanks, in advance Ravi. -- 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
Re: how to play embedded videos on GWT
You might have to take up that issue with bramosystems, whoever that is, cuz I don't have that package and even if the source was visible we wouldn't be able to change it even if we could find the problem...unless it's open source. On Jun 15, 8:11 pm, Bruno Lopes bruno.lourenco.lo...@gmail.com wrote: Hi, I am using com.bramosystems.oss.player.flat.client.FlatVideoPlayereclipse-javadoc:%E2 %98%82=Padroes/war%5C/WEB-INF%5C/lib%5C/bst-player-api-1.0.jar%3Ccom.bramos ystems.oss.player.flat.client(FlatVideoPlayer.class%E2%98%83FlatVideoPlayer .FlatVideoPlayer to play videos but it seems not working on firefox and safari on MAC OS any idea ? -- 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: History and server call.
Well, I don't know about the event bus and I have yet to watch that GWT best practices video (but I really should!) and I haven't done MVP with GWT, BUT I'm super creative so here's what I would do with your situation! :D I would have an object that is rather more aware of the all recoverPanelFromHistory async actions going on. This object would store a copy of each other object that is performing the recoverPanelFromHistory for a specific panel. (in other words a list of objects that have the method(s) controlling all that async goodness) The code inside recoverPanelFromHistory() that does the async data retrieval from the server would talk back to this object, which is the owner. It tells the Owner that it's finished getting the data (even when it already had the data cached). Every time the owner gets told that one of it's subjects finished getting data it checks to see if that was the last subject to get it's data, and if so it talks to the mainContentPanel and gets it to do it's view change (clear and add). Inside the recoverPanelFromHistory code you can do your repeatedly trying to obtain the data and even if you don't get the data until a day later when the user finally reconnects your code will be able to continue on no prob. Did that make sense? It makes sense in my head, so if it doesn't make perfect sense to you ask me to clarify things and I'll do my best! You'll have to do some refactoring... the code inside recoverPanelFromHistory() that does the depth search through all children and fires recoverPanelFromHistory() on all children and their children you'll want to still happen at the place where you currently call recoverPanelFromHistory() from the top of the tree... BUT you'll want to refactor the code that does the data cache check and then calls the async-data-get out of that method. The depth search of all children will add each child (aka subject) to the Owner object. After the Owner knows about all of it's subjects it then loops through and calls the recoverPanelFromHistory() code which does the data cache check and asyn-data-get goodness. This way the owner doesn't think it's done loading just cuz the first subject added has it's data cached and immediately tells the owner before any other subjects have been added. did that make sense? btw, did I just invent an event bus? cheers! ^_^ On Jun 15, 8:23 pm, fmod francisco.mode...@gdsoft.eu wrote: Using the event bus may help there.http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPr... and the two articleshttp://code.google.com/webtoolkit/articles/mvp-architecture.html On Jun 15, 9:14 am, ping2ravi ping2r...@gmail.com wrote: Hi Guys, I have just implemented a multipage(basically multi url) website using History. It works great using history token. But i need something else from GWT which i am not able to solve. Now when user clicks on something(link/button etc) i add the token to History and my history callbacks get called. Now in history value change handler i do something like this 1) FInd out what page need to be dispalyed(basically identify the panels etc). 2) now each of my panel which can have history implementing hasHistory(my own) interface, which has function recoverPanelFromHistory. 3) In this function, i check if i have client side data cahced for this panel, if yes then load it into panel and display it(basically add to main panel widget tree). 4) But if no cache data found then go to server and get data. one such implementation @Override public boolean recoverPanelFromHistory(MapString, String historyTokens) { String page = historyTokens.get(PAGE_PARAM); boolean returnValue = false; if(home.equalsIgnoreCase(page)) { returnValue = userHomePanel.recoverPanelFromHistory(historyTokens); //and this function will calls its child panels if they support history if(returnValue ) { mainContentPanel.clear(); //clearing the mainPanel view of client mainContentPanel.add(userHomePanel); //and adding the view according to history token value } else { //dont change the browser view and stay at current panel/view/page. This also means child panel can not be recovered and there must be some problem with history tokens provided. } } if(profile.equalsIgnoreCase(page)) { returnValue = prodilePanel.recoverPanelFromHistory(historyTokens); //and this function will calls its child panels if they support history if(returnValue ) {
GWT Print
Hi, I have been using the standard GWT printing methodology but I see that the border lines and the grid lines get missed out in the print. And the final printout only has the texts without any decorations. Can someone suggest a nice GWT Print logic where the grids/scrollTables appear with the borders and all ? Thanks and Regards, Abhiram -- 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: login/logout/remember
What's PersonDTO? Magnus On 3 Jun., 22:36, Bruno Lopes bruno.lourenco.lo...@gmail.com wrote: Then on the server side for the LoginService public LoginResponse login(String username, String password) { LoginPService loginService = ServiceLocator.getLoginService(); PersonDTO personDTO = null; try { personDTO = loginService.getUserByUsername(username); if (personDTO == null){ //.getInstance().info(Utilizador n√£o encontrado: +username); return new LoginResponse(false, false); } else if (!loginService.checkPassword(password)){ //UCCLogger.getInstance().info(Password errada do utilizador: +username); return new LoginResponse(false, false); } } catch (Throwable e) { return new LoginResponse(false, false); } LoginResponse response = new LoginResponse(); response.setLoginSuccess(true); PadroesSession padroesSession = PadroesSession.getInstance(); padroesSession.setRequest(getThreadLocalRequest()); padroesSession.setUser(personDTO); return response; } On Thu, Jun 3, 2010 at 9:33 PM, Bruno Lopes bruno.lourenco.lo...@gmail.comwrote: YES on the server side I have something like this: public class PadroesSession implements Serializable{ private static PadroesSession padroesSession=null; public static PadroesSession getInstance(){ if(padroesSession == null){ padroesSession = new PadroesSession(); return padroesSession; } else { return padroesSession; } } private PadroesSession(){ } private static final String USER_SESSION = userSession; private HttpServletRequest request = null; private HttpSession session = null; public PersonDTO getUser(){ if(null == session) return null; return session.getAttribute(USER_SESSION) != null ? (PersonDTO)session.getAttribute(USER_SESSION) : null; } public HttpSession getSession(){ return session; } public void invalidate(){ if(request!=null) if(request.getSession(false)!= null) request.getSession(false).invalidate(); if(null != session){ session.invalidate(); session = null; } } public void setUser(PersonDTO user){ if(null == user){ if(session!=null) session.removeAttribute(USER_SESSION); return; } if(null != request) this.session = request.getSession(true); if(session!=null) session.setAttribute(USER_SESSION, user); } public String getId(){ return request.getSession(false).getId(); } public HttpServletRequest getRequest() { return request; } public void setRequest(HttpServletRequest request) { this.request = request; } } On Thu, Jun 3, 2010 at 2:45 PM, Magnus alpineblas...@googlemail.comwrote: Hi, thank you for the code! I adopted it to my application. So you authenticate the user via the remote service! But how do you actually store the user context the app is running in? Do you do some session management? Thanks Magnus On Jun 2, 7:15 pm, Bruno Lopes bruno.lourenco.lo...@gmail.com wrote: Hi Alpine Bluster, look at this code: public void onModuleLoad() { this.setLoginPanel(); loginButton = new Button(Login); loginButton.addListener(new ButtonListenerAdapter() { public void onClick(Button button, EventObject e) { userAuthentication(); } }); formPanel.addButton(loginButton); formPanel.setBorder(false); loginPanel.add(formPanel); Element appPanelEl = loginPanel.getElement(); �...@suppresswarnings(unused) KeyMap map = new KeyMap(appPanelEl, new KeyMapConfig() { { setKey(EventObject.ENTER); setKeyListener(new KeyListener() { public void onKey(int key, EventObject e) { loginButton.focus(); } }); } }); RootPanel.get(login_widget).add(loginPanel); } private void userAuthentication() { if (this.userNameField.getValueAsString().equals()) Window.alert(username must not be empty.); else { loginService = GWT.create(LoginService.class); String username = this.userNameField.getValueAsString(); String password = this.passwordField.getValueAsString(); this.loginService.login(username, password, new AsyncCallbackLoginResponse() { public void onFailure(Throwable caught) { Window.alert(server side failure: + caught); } public void onSuccess(LoginResponse result) { if (result.isLoginSuccess()){ Window.Location.replace(./../Main.html); } else Window.alert(username or password invalid.); } }); } } ... FOR
[gwt-contrib] [google-web-toolkit] r8259 committed - Light weight collections gwt-user migration branch.
Revision: 8259 Author: gwt.mirror...@gmail.com Date: Tue Jun 15 12:54:45 2010 Log: Light weight collections gwt-user migration branch. http://code.google.com/p/google-web-toolkit/source/detail?r=8259 Added: /branches/lwc-gwt-migration -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Adds tests to ValueStore, specifically RecordJsoImpl and DeltaValueStore. (issue621801)
Reviewers: Ray Ryan, Description: Adds tests to ValueStore, specifically RecordJsoImpl and DeltaValueStore. Review by: rj...@google.com Please review this at http://gwt-code-reviews.appspot.com/621801/show Affected files: M bikeshed/src/com/google/gwt/valuestore/client/DeltaValueStoreJsonImpl.java M bikeshed/src/com/google/gwt/valuestore/shared/impl/RecordJsoImpl.java A bikeshed/test/com/google/gwt/valuestore/ValueStoreSuite.java A bikeshed/test/com/google/gwt/valuestore/ValueStoreTest.gwt.xml M bikeshed/test/com/google/gwt/valuestore/client/DeltaValueStoreJsonImplTest.java A bikeshed/test/com/google/gwt/valuestore/shared/SimpleFooRecord.java A bikeshed/test/com/google/gwt/valuestore/shared/impl/RecordJsoImplTest.java A bikeshed/test/com/google/gwt/valuestore/shared/impl/SimpleFooRecordImpl.java M bikeshed/war/WEB-INF/web.xml -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adds tests to ValueStore, specifically RecordJsoImpl and DeltaValueStore. (issue621801)
http://gwt-code-reviews.appspot.com/621801/diff/1/10 File bikeshed/war/WEB-INF/web.xml (right): http://gwt-code-reviews.appspot.com/621801/diff/1/10#newcode74 bikeshed/war/WEB-INF/web.xml:74: -- Why have you commented out appstats? http://gwt-code-reviews.appspot.com/621801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors