Re: Gwt module sometime not loaded, Only after clicking refresh button it work ?
Hi Boris, Thanks for the suggestion. I changed the sequence of executing scripts in my html page. Old sequence. Script 1: Detect browser language and set meta element. Script 2: Loads Google Analytics module Script 3: Loads the compiled CTA module (nocache.js) New sequence Script 1: Loads Google Analytics module Script 2: Detect browser language and set meta element. Script 3: Loads the compiled CTA module (nocache.js) Looks like this solved the problem for me. Cheers Dennis On Jan 7, 5:46 pm, Boris Lenzinger boris.lenzin...@gmail.com wrote: Hi, Have you tried to set some breakpoints using Firebug ? it could help you to understand what's going on. Boris 2011/1/7 cyclingthealps denniswegew...@googlemail.com Hi I am also having this problem. Does not make a difference if I use Chrome FF or IE. Using gwt 2.1 as well. I really would like to know as well what to do to solve this. Cheers Dennis On Jan 7, 7:41 am, Sudhakar sudhakar.ferna...@gmail.com wrote: I am also experiencing the same issue.I am using Chrome browser in Ubuntu 10.10 On Fri, 2011-01-07 at 12:06 +0530, suersh babu wrote: Hi, I am using gwt 2.1, After uploading my application to production server, some time I see my gwt module not loaded, only After clicking refresh button it get loaded. Kindly can any one tell me what could be the reason, I am very interested in this. -- Regards Suresh Babu G -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit +unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Eclipse heap space during build
Hi Filipe, I disabled ALL validation on my projet but Eclipse continue to make Javascript validator on /myprojectname and then run to heap space. Why Eclipse ignore my settings on the project? Thanks! On 13 Gen, 00:27, bond daniele.re...@gmail.com wrote: yes Alan, I've Windows 7 64bit; maybe is better use Eclipse 64it. However I think the problem can be solved with suggest of Filipe. Thanks! Daniele On 12 Gen, 20:06, a...@mechnicality.com a...@mechnicality.com wrote: On 1/12/2011 10:32 AM, bond wrote: Hi, this is my eclipse.ini -startup plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar --launcher.library plugins/ org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms1024m -Xmx1024m My machine has 6GB of RAM but if I set Xmx over 1024mb eclipse doesn't start with error JVM Error. You are using 32 bit eclipse - have you considered using 64 bit? I assume you have windows64. However, that may not be your problem. Alan My project is a gwt project and use also axis2 so I can't remove the gwt part! The error during building is An internal error occurred during: Building workspace. Java heap space Thanks very much! On 12 Gen, 17:30, a...@mechnicality.coma...@mechnicality.com wrote: And another thought. If you don't need the GWT project, just close it. On 1/12/2011 8:12 AM, bond wrote: Hi, I've a gwt projet and I converted to facet project in order to use Axis2. When I compile the project all works fine, but when I reopen the project Eclipse go to heap space during building workspace and in particular analysing the folder where there are the compiled files of gwt. I think that Eclipse go to heap space because analize all the file compiled by gwt; there is some solution to the problem? Thanks very much Best regards -- Alan Chaney CTO and Founder, Mechnicality, Inc.www.mechnicality.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problem with serverside code
Hello I've extended my project with this tutorial to save Data on the server (I've done another project, I used it only to see how it works): http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html But if I add a FileWriter object in the class DataServiceImpl, I get this errormessage: java.io.FileWriter is not supported by Google App Engine's Java runtime environment This class is in the package com.html5.server. I thought classes in the server package could use all Java classes. Do I have to define anywhere which package the server package is so I can use this class? thank you for your help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Detect CSS3 and HTML5 features supported by the browser with GwtModernizr
Hello, The first release of GwtModernizr is out. GwtModernizr is a clone of the js Modernizr (http://www.modernizr.com/) library entirely writed in GWT. It allows you to detect within your GWT code if the browser offers native support for a number of CSS3 and HTML5 features. More info at http://code.google.com/p/gwtmodernizr/ Enjoy, Julien -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JsArrayMixed module?
Hi Thomas, yes, but i noticed it happened with eclipse on. Turning it off and launching ant from command line again has worked fine. I didn't upgrade the GWT plugins as I didn't get any notification (usually it is on the bottom left), after that it has started to work fine yet thanks Julio On Jan 12, 8:20 pm, Thomas Broyer t.bro...@gmail.com wrote: Are you 100% sure your build.xml references a GWT 2.1 SDK? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Dev plugin for firefox 3.7
Er, isn't r9525 a fix for the Chrome-dev issue with V8's Crankshaft? You probably meant to link to r9526http://code.google.com/p/google-web-toolkit/source/detail?r=9526? ;-) (also s/download the crx out of svn/download the xpi out of svn/) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
app engine
Can't see my stored data in deployment server, I'm using google app engine for my application i'm storing some data using PersistenceManager In develop mode all is fine, I can retrieve my stored data and disply it in client In deployment server the same application not display anything to the user. What's wrong here ?? ... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: table.getInnerHTML() not giving appropriate results
Yes, CellTable (and other cell widgets, a.k.a. Data Presentation Widgets in the docs) build an HTML string and uses innerHTML for best performances (well, actually, CellBrowser does use inner widgets, but it uses CellLists for each tree level for best performances). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: responsibility and decision to choose and provide appropriate Views for an Activity ?
IMO, if you can split the decision out of the activity (and into the ActivityMapper or an intermediate layer), do it! (separation of concerns FTW) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory No fire
In fact I expected RequestFactory to behave somehow like GWT-RPC My view ( probably wrong ) Your RequestFactory expose Interfaces to entities ( in my cas a single entity Person ) The Entity Person is a description of some data ( fields of SQL table for short ) The Person class is also used for the server side methods ( findAllPersons etc.. ) my getStr() The PersonProxy interface is a representaion of Person for the client side The PersonRequest interface is used to acces Entities then if I have public class Person { public static getStr() { return whatever } } and @service(Person.class) public interface PersonRequest extends RequestContext { RequestString getStr(); } I expect factory.personRequest().getStr().fire(new ReceiverString() { to return my string But I must be wrong ! Thanks to reply such naives questions Patrick - Original Message - From: Thomas Broyer To: google-web-toolkit@googlegroups.com Sent: Wednesday, January 12, 2011 10:35 PM Subject: Re: RequestFactory No fire On Wednesday, January 12, 2011 5:13:35 PM UTC+1, coelho wrote: I've built a simple sketch to test Request Factory ( as I didn't find any tutorial or example simple enough grab the all thing ) I've just implemented a getStr() method that retuens a String in an entity Person When I fire the method I don't get any reply nor error Here's the code ( no error in eclipse , compiled with manen ) I get the Fire alert when the button is clicked , nothing else ? Patrick AppRF factory = null; public void onModuleLoad() { factory = GWT.create(AppRF .class); if (factory == null) { Window.alert(No factory); } factory.initialize(new SimpleEventBus()); PersonProxy person = factory.personRequest().create(PersonProxy.class); A RequestContext (as returned by your personRequest() method) is a kind of builder for a request. Here, you're creating one such context, creating a PersonProxy within it, and throwing the RequestContext away, which makes the PersonProxy unusable (you can mutate it, but nothing else, including adding it to another proxy or sending it to the server, because it is attached to a context that you no longer have a reference to). //factory.personRequest().persist().using(person).fire(); final Button sendButton = new Button( Send ); final Button fireButton = new Button( Fire ); RootPanel.get(sendButtonContainer).add(sendButton); RootPanel.get(sendButtonContainer).add(fireButton); fireButton.addClickHandler (new ClickHandler() { public void onClick( ClickEvent sender) { //lh.setText(Handle = + sqlBox.getHandle()); Window.alert(Fire); factory.personRequest().getStr().fire(new ReceiverString() { I don't know what you expect from this code, but this is just asking for a String to the server, without any reference to a PersonProxy (or similar server-side entity). I don't realy like plugging my own writings in (I highly prefer when others do it for me ;-) ), but maybe my recent post on RequestFactory will help you understand the big picture(and you'll later re-read the GWT official doc with a fresh eye): http://tbroyer.posterous.com/gwt-211-requestfactory -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -- Aucun virus trouvé dans ce message. Analyse effectuée par AVG - www.avg.fr Version: 10.0.1191 / Base de données virale: 1435/3374 - Date: 11/01/2011 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Trying to get htmlunit to run. Keep getting Did you forget to inherit the required module. I can't find a .gwt.xml to inherit from.
Hello Thomas, Thank you for your time, really. I've moved the htmlunit lines to the server side and it seems to work? However, I see the following warnings. Should I be concerned? http://www.mwmechanics.net/Screenshot_server_side.png Thank you very much!!! On Jan 12, 5:58 pm, Thomas Broyer t.bro...@gmail.com wrote: HtmlUnit cannot be used client-side (i.e. in your browser). If you want to display a page in your browser, then, well, display it: use a link (Anchor widget) or wrap it in an iframe (Frame or NamedFrame widget) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: change the generated project template
Thanks for the suggestions. I think I'll just create my template project, and copy, import it then. This maven plugin seemed a bit overkill just for this, and I couldn't even uninstall it. I had to delete its files manually. I'm pretty sure I won't install it again. I found something in the eclipse plugin development help though. And I think it is possible to create a plugin just for that. Maybe I'll check it out later, when I'll have time. On Jan 12, 2:47 pm, zixzigma zixzi...@gmail.com wrote: another option is to clean up the Eclipse-plugin generated project, as you have been doing, but only once more, and then check-it in a version control system, eg subversion or git. you can checkout the clean version every time you need to start fresh. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Sending Embeddable object to the server
Maybe. But I gave up, after turned out, that I can't persist the object even if I manage to pass it to the server. I got various errors, while I was trying to make it work with JPA or JDO. Now I've found Objectify which sounds promising. Well I'll see. As for now, I'm delaying the client-server communication problem. Thanks for your time though. On Jan 13, 10:50 am, Y2i yur...@gmail.com wrote: actually I was using simple gwt-rpc to send the object to the server. May be your @Embeddable was enhanced by the JPA provider in a way that made it incompatible with GWT-RPC? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: what cleanup is necessary if a widget creates multiple child elements
No, nothing special. Only if you create things in onAttach/onLoad you might need to clean them up in onDetach/onUnload, but mainly so you don't have duplicates when re-attaching the widget later. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Relocating instance methods transparently for the client
I'm not aware of such a trick; i.e. you have to replace your InstanceRequest with Request and add the MyEntityProxy as an argument. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory No fire
On Thursday, January 13, 2011 11:32:42 AM UTC+1, coelho wrote: public class Person { public static getStr() { return whatever } } and @service(Person.class) public interface PersonRequest extends RequestContext { RequestString getStr(); } I expect factory.personRequest().getStr().fire(new ReceiverString() { to return my string Yes, it should work! (because getStr() is a static method of Person, and whether or not there exists a PersonProxy) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Server Log
Yes, but what about RPC-exceptions, that actually don't arrive anywhere? (I think that is the case, where I'm stuck, but I have no access to the deployed production webapp, and I'm told, that the logs show nothing...) I mean, if I actually arrive in the correct function on the server, yes, then I could just do the logging as I'm used to. I just think, I changed the return-value of an existing function and somehow there is a problem somewhere, that I don't arrive in that function anymore, or that the answer doesn't arrive back. If I look at the firebug console, I see that my post-request fails, but I surrounded the whole method, which is in question with try{..}catch() {log} and still nothing... Which makes me think, I never arrive in that method, and something goes wrong earlier... Or later, I don't know... But I would need a stacktrace to be logged like method bla doesn't support correct return type - TargetInvocationExcaption: Stacktrace in such a case. But I don't know how to log those things. In development mode, yes, then I see any stacktrace like this. But unfortunately there it works and I need to know what goes wrong with the deployed version, and then there is no log at all (even though it says check server log) Is there any way to configure log4j to log those exceptions? On Jan 12, 11:23 pm, SVR svr...@gmail.com wrote: You could catch and throw the same way you would do in any java appln. On Wed, Jan 12, 2011 at 5:16 PM, pete superp...@geekcity.de wrote: Hallo, is there a way to show stacktraces of UnexpectedExceptions after the webapp is deployed? I have logging enabled in general, if I manually use my logger, like LOG.debug(blah), I can see my logs... If RPC fails, I just get an unexpected exception saying the call failed on the server, see server logs for details, however, there is no stacktrace or exception logging anywhere, not even in System.out, etc. How can I enable this? Or where does GWT save those server logs mentioned? Is it possible to configure log4j to log those exceptions? Help would really be appreciated, since googling hasn't really shown up anything I could use... Regards, Peter -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
setwidth and setCellWidth of the VerticalPanel
Hi I need to make the width of the VerticalPanel constant. I have tried setwidth and setCellWidth, but both seem not working well. For example, VerticalPanel vp = new VerticalPanel(); vp.setCellWidth(this, 400px); Label textlabel = new textlabel(); textlabel.add(text); -- vp.add(textlabel); If the text is a string containing various spaces, then the width is able to be kept because the wrap is on. Otherwise, if the text is a string without space longer than 400px, the string would not wrap. How can I make the width constant independent of the string? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Unable to display html file in Frame container.
I developed a diagnostic app interface using GWT. (Akin to a car diagnostic device on steroids). Now need to allow subject matter experts to easily add/modify/maintain help-tips via separately developed Html files. I can select display web sites in a Frame container, but yet unable to get an html file to display in Frame. Believe problem is how html file is addressed. Simple test cases in development mode don't display anything yet, using GWT 2.0.3: // 1.) test.html was located in BaseUrl dir String xxx = GWT.getModuleBaseURL() + test.html; frame = new Frame(xxx); // 2.) Hardcoded url: frame = new Frame(http://127.0.0.1:/com.mycompany.project.test.html;); // 3.) Put test.html at top of C drive: frame = new Frame(http://127.0.0.1:/C:/test.html;); Where am I missing the boat, or maybe you have a simple example ? Thankyou in advance. Barry -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Multi-Module Project and Servlet Mappings
Dear all, I have a project which consists of multiple modules. Basically, it's four separate GWT applications which share some common code. There's a separate module for each of the four applications, plus a 'core' module for the common functionality. Now my problem: The common functionality includes server-side RPC endpoints. I have defined the servlet paths for those endpoints in the .gwt.xml file of my core module as servlet path='/endpointA' class=.../ servlet path='/endpointB' class=.../ and so on. Now - when I inherit the core module in my app modules, GWT insists that the endpoints are mapped to /AppName/endpointA rather than just /endpointA So far so good. But as a result, I need to provide 4 servlet mappings in my web.xml, each pointing to the same service impl class. E.g. something like this: servlet servlet-nameendpointAservlet-name servlet-classmy.gwtapp.server.EndpointAServiceImpl/servlet-class /servlet servlet-mapping servlet-nameendpointA/servlet-name url-pattern/AppOne/endpointA/url-pattern url-pattern/AppTwo/endpointA/url-pattern url-pattern/AppThree/endpointA/url-pattern url-pattern/AppFour/endpointA/url-pattern /servlet-mapping Ok, it's not a showstopper. But I can't believe there's no better way to share servlets across modules than by repeating the mappings for each module? Any advice appreciated! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
War structure for multi-module app has changed magically
Using GWT 2.1.1 and Eclipse Helios SR1/mac (but this behavior has been around since 1.6 --- it's just now become a problem, though). I have an app that has several modules, each in its own source-directory system (and each as a separate Eclipse project, for that matter). It used to be that each module was compiled to its own subdirectory of the war directory. In fact, this still seems to be the default behavior. A few days ago, however, GWT started munging all the modules together into the main application's module directory. That is, instead of war +mainAppModule +supportModule0 +supportModule1 ... I now have a single mainAppModule diretory that contains everything that used to be in three separate subdirectories. There are name conflicts with some of the HTML files, so this single-directory structure is a problem. I can't for the life of me figure out what I did to make GWT start behaving differently, but I really want to go back to the original one-directory-per-module structure. (All of the module elements, by they way, have rename-to attributes, but I didn't change any of that so I don't *think* that's the issue.) Anyway, if anybody could either tell me how to force GWT to use the multi-directory organization of the war, I'd really appreciate it. I'm hoping that there's some simple flag or XML attribute that I've just missed when I perused the docs. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: change the generated project template
In the New Web Application Project wizard, a new option has been added to Generate GWT project sample code. The option is selected by default, but when de-selected, it will generate an empty project with the selected Google SDK's setup on the project. This additional feature will be available in the next version of the GPE. - Jaime Wren On Jan 11, 7:35 pm, JaySicks jaysi...@gmail.com wrote: Hello, I'm using eclipse, with the google plugin, and every time I create a new web app project, it generates a lot of code, which I have to delete before I can start working. Of course at first its good to have a working application, right after I create the project, but after a few times, it gets annoying. So, I was wondering, if there is a way to change the generated project structure, when I create the GWT application.. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: War structure for multi-module app has changed magically
Y2i; Thanks for the reply. I haven't played with UI binder yet, so I don't want to waste your time in this approach until I do some homework. And, no I don't play with the modules' rename-to attributes. Without going down this path yet, I should note that I would like to get html file paths from server via callback messages. E.g. After getting results from diagnostic A, get the current list of relevant html files associated with diagnostic A from server. So, without asking you to solve 'my' problem, It would be interesting to know if the UI binder or rename schemes might yield a solution where path names would not be fixed at compile time. thanks again - Barry. On Wed, Jan 12, 2011 at 10:11 PM, Y2i yur...@gmail.com wrote: Did you play with the modules' rename-to attributes? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Using multiple views in one place
Has anyone tried using multiple views in one Place then having separate activities for each one? This scenario occurred to me when I wanted to save work on having to repeat the same header for multiple Places in my application. It was done using one view as a container, acting like a frame for a header view and a body view so that every time my app would move from one place to another, the activity code would just get the root view then replace the child widget in the body with the view I wanted to show thus keeping the header view in place without having to repeat it all over different views if I didn't use this technique. It works fine, except that I am bothered by the fact that I have a Place and Activity for the header view separate from the others which is doesn't quite fit the essence of Activities and Places as I understand them. Ideally, there should be only one Place and Activity for each page in my application. It just so happens that in order to save coding for sections of a place that are repeated over many places, I have to define a separate Place and Activity class for it. Perhaps there could be a new concept that will cover this gray area that would make it easier explain separately defined repeating sections of a Place. - Owen -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to create flow chart using smart gwt 2.2 ?
I want to create a application using in smart gwt. This application should capable of make flow charts and diagram.It should also capable of copy diagrams delete diagrams. Diagrams will cricle, rectangle, arrow etc. By using tese diagram One can Draw the folw charts and other structure. Is there any support or API available in smart gwt for this purpose. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1.1 runtime error
Solved, I had gwt-bikeshed.jar in my WEB-INF/lib. I removed it and now all works fine. Thanks! On 12 Gen, 10:32, bond daniele.re...@gmail.com wrote: Hi, I've a strange error with my project made with gwt 2.1.1. When I run it in development mode all works fine; but if I compile the project and then run it I've this error: One or more exceptions caught, see full set in UmbrellaException#getCauses - Unknown.Ep(Unknown source:0) Unknown.jp(Unknown source:0) Unknown.vp(Unknown source:0) Unknown.lp(Unknown source:0) Unknown.fk(Unknown source:0) Unknown.ek(Unknown source:0) Unknown.lk(Unknown source:0) Unknown.vk(Unknown source:0) Unknown.Bk(Unknown source:0) Unknown.sX(Unknown source:0) Unknown.JW(Unknown source:0) Unknown.PW(Unknown source:0) Unknown.$Uf(Unknown source:0) Unknown.Pyf(Unknown source:0) Unknown.kVf(Unknown source:0) Unknown.oVf(Unknown source:0) Unknown.dKd(Unknown source:0) Unknown.tZ(Unknown source:0) Unknown.h$(Unknown source:0) Unknown.anonymous(Unknown source:0) Unknown.tn(Unknown source:0) Unknown.wn(Unknown source:0) Unknown.anonymous(Unknown source:0) Unknown.anonymous(Unknown source:0) I can't find the error!! Any suggestion? Thanks very much -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Using APT to generate Classes under Eclipse
Can anybody help me use my custom made annotation processor (for GWT Request Factory) under Eclipse? I have developed an eclipse plugin with a custom annotation and its processor (using java6processors). I export it to a jar file and add it to my classpath as well as to my apt processor (under the compiler apt option), but nothing happens. I am a bit clueless as how to debug it (Messager doesn't output anything) and there is very little doc on the web. I saw a few processors out there, eg with GUIT or with GWT- APT. If someone knowledgeable and kind enough can help me out... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using APT to generate Classes under Eclipse
Hi sorry for the trouble, it is working now, just a wrong setting on my side. On Jan 13, 2:14 pm, Thomas Lefort lefortho...@gmail.com wrote: Can anybody help me use my custom made annotation processor (for GWT Request Factory) under Eclipse? I have developed an eclipse plugin with a custom annotation and its processor (using java6processors). I export it to a jar file and add it to my classpath as well as to my apt processor (under the compiler apt option), but nothing happens. I am a bit clueless as how to debug it (Messager doesn't output anything) and there is very little doc on the web. I saw a few processors out there, eg with GUIT or with GWT- APT. If someone knowledgeable and kind enough can help me out... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Overriding Entrypoint on Inheritance?
Dear all, I'm trying to create a project with two modules, where one module 'extends' the other. The basic use case is that both modules are GWT apps. One just has the basic feature set, and the other one adds advanced features. The problem, now, is that both have an entrypoint defined in the .gwt.xml. I realised that when I launch the extended module, both EntryPoints get called. Is it possible to 'override' the entrypoint of the base module in the extended module? So that only the entrypoint in the extended module gets called? Or am I missing something and do I have to arrange my project entirely different? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory No fire
I tried to catch the fire exception any but there is none Should I get error messages if the servlet is not loaded ? Here is the mapping of the servlet Any Idea ? I'm just rtying to do a trivial sketch 1 ) load the servlet and communicate with it ( I intend to use hibernate to call a static findAllPerson as a second step ) servlet servlet-nameappRf/servlet-name servlet-classmetro.test.arch232.client.AppRF/servlet-class /servlet servlet-mapping servlet-nameappRf/servlet-name url-pattern/gwtRequest/url-pattern /servlet-mapping - Original Message - From: Thomas Broyer To: google-web-toolkit@googlegroups.com Sent: Thursday, January 13, 2011 12:06 PM Subject: Re: RequestFactory No fire On Thursday, January 13, 2011 11:32:42 AM UTC+1, coelho wrote: public class Person { public static getStr() { return whatever } } and @service(Person.class) public interface PersonRequest extends RequestContext { RequestString getStr(); } I expect factory.personRequest().getStr().fire(new ReceiverString() { to return my string Yes, it should work! (because getStr() is a static method of Person, and whether or not there exists a PersonProxy) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -- Aucun virus trouvé dans ce message. Analyse effectuée par AVG - www.avg.fr Version: 10.0.1191 / Base de données virale: 1435/3376 - Date: 12/01/2011 --=_Part_327_576096.1294916780091-- -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Visualization NoClassDefFoundError
Hi there, Im trying to create an OrgChart via GWT Visualizations, however i keep getting this error when i try create it! i Have the JAR files in both the buildpath and the war/web-inf/lib and still having no such luck! Does anyone use this package and know why this might be happening? Thanks, Ross --Error I am recieving Uncaught exception escaped : java.lang.NoClassDefFoundError com/google/gwt/visualization/client/visualizations/OrgChart See the Development console log for details. Register a GWT.setUncaughtExceptionHandler(..) for custom uncaught exception handling. -- Code that is creating it public OrgChart createChart(){ OrgChart chart = new OrgChart(); chart.draw(createTable()); return chart; } private AbstractDataTable createTable() { com.google.gwt.visualization.client.DataTable data = com.google.gwt.visualization.client.DataTable.create(); data.addColumn(ColumnType.STRING, Req); data.addColumn(ColumnType.STRING, Parent); data.addColumn(ColumnType.STRING, ToolTip); data.addRows(list.size()); data.setValue(0,0, req); for(int i = 0;ilist.size();i++){ data.setValue(i,0,list.get(i).getReq_title()); } return data; } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Tomcat vhost - Servlets not available
Hey, i deployed a gwt-application in tomcat 6.0.18 without any problems. I pointed a url to the ip-adress and deployed the application unter webapps/myfolder, so that the app was reachable unter http://mydomain/myfolder. It worked fine. But since im using a vhost in tomcat i got a problem. Every time when gwt tries a callback i get the message: Requested resource not found. I did not make any changes in the web.xml. I added the host like the following in the server.xml: ... !-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. -- Host name=srv2.tudom.de appBase=tudom unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host !-- VIRTUAL HOST INJECTION POINT -- /Engine The code is deployed into the folder tudom. The .html works fine, but my callbacks dont work. A snippet from my web.xml: servlet servlet-nameStartService/servlet-name servlet-classtudom.start.server.StartServiceImpl/servlet-class /servlet servlet-mapping servlet-nameStartService/servlet-name url-pattern/tudom.start.Start/StartService/url-pattern /servlet-mapping When im changing the URL-Pattern to url-pattern/tudom.start.Start/StartService/url-pattern the Servlet gets reachable, but this doesnt interest GWT, cause it still tries to load /tudom.start.Start/StartService. Could everyone help me? Im now searching some hours and cant find anything. Hope you can help me. Greetings -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Server Log
true, I don't see the ability to configure server side log anywhere. I would try this: Enable gwt.logging.firebugHandler and see atleast the umbrella exception... On Thu, Jan 13, 2011 at 6:32 AM, pete superp...@geekcity.de wrote: Yes, but what about RPC-exceptions, that actually don't arrive anywhere? (I think that is the case, where I'm stuck, but I have no access to the deployed production webapp, and I'm told, that the logs show nothing...) I mean, if I actually arrive in the correct function on the server, yes, then I could just do the logging as I'm used to. I just think, I changed the return-value of an existing function and somehow there is a problem somewhere, that I don't arrive in that function anymore, or that the answer doesn't arrive back. If I look at the firebug console, I see that my post-request fails, but I surrounded the whole method, which is in question with try{..}catch() {log} and still nothing... Which makes me think, I never arrive in that method, and something goes wrong earlier... Or later, I don't know... But I would need a stacktrace to be logged like method bla doesn't support correct return type - TargetInvocationExcaption: Stacktrace in such a case. But I don't know how to log those things. In development mode, yes, then I see any stacktrace like this. But unfortunately there it works and I need to know what goes wrong with the deployed version, and then there is no log at all (even though it says check server log) Is there any way to configure log4j to log those exceptions? On Jan 12, 11:23 pm, SVR svr...@gmail.com wrote: You could catch and throw the same way you would do in any java appln. On Wed, Jan 12, 2011 at 5:16 PM, pete superp...@geekcity.de wrote: Hallo, is there a way to show stacktraces of UnexpectedExceptions after the webapp is deployed? I have logging enabled in general, if I manually use my logger, like LOG.debug(blah), I can see my logs... If RPC fails, I just get an unexpected exception saying the call failed on the server, see server logs for details, however, there is no stacktrace or exception logging anywhere, not even in System.out, etc. How can I enable this? Or where does GWT save those server logs mentioned? Is it possible to configure log4j to log those exceptions? Help would really be appreciated, since googling hasn't really shown up anything I could use... Regards, Peter -- You received 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 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem with serverside code
In a standard rutime environment, yes, but not on App Engine. Maybe yo don't need to run in the AppEngine sandbox, so you can disable AppEngine in your projects' properties (IIRC, you'll probably have to delete a bunch a JARs from your war/WEB-INF/lib after the change) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Detect CSS3 and HTML5 features supported by the browser with GwtModernizr
How about using deferred binding? (you already use it but in a very limited way) in other words, splitting Modernizr's code into property-providers (and with fixed values when possible: i.e. almost nothing is supported in user.agent=ie6, history.pushState is supported in user.agent=ie8, etc.), combined with soft-permutations to avoid permutation explosion (at least in the number of generated files; I haven't ever used soft permutations so I don't really know how it all works) This would allow users of your library to do the NativeVideoPlayerWidget vs. FlashVideoPlayerWidget, or NativeDateBox vs. DateBox choice using deferred binding rather than if/else branches. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Tomcat vhost - Servlets not available
Please help me. ;) On 13 Jan., 15:55, Johannes Stein johannes.st...@googlemail.com wrote: Hey, i deployed a gwt-application in tomcat 6.0.18 without any problems. I pointed a url to the ip-adress and deployed the application unter webapps/myfolder, so that the app was reachable unterhttp://mydomain/myfolder. It worked fine. But since im using a vhost in tomcat i got a problem. Every time when gwt tries a callback i get the message: Requested resource not found. I did not make any changes in the web.xml. I added the host like the following in the server.xml: ... !-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. -- Host name=srv2.tudom.de appBase=tudom unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host !-- VIRTUAL HOST INJECTION POINT -- /Engine The code is deployed into the folder tudom. The .html works fine, but my callbacks dont work. A snippet from my web.xml: servlet servlet-nameStartService/servlet-name servlet-classtudom.start.server.StartServiceImpl/servlet-class /servlet servlet-mapping servlet-nameStartService/servlet-name url-pattern/tudom.start.Start/StartService/url-pattern /servlet-mapping When im changing the URL-Pattern to url-pattern/tudom.start.Start/StartService/url-pattern the Servlet gets reachable, but this doesnt interest GWT, cause it still tries to load /tudom.start.Start/StartService. Could everyone help me? Im now searching some hours and cant find anything. Hope you can help me. Greetings -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Dev plugin for firefox 3.7
Yep, yep, and yep. I'm going to blame my inability to communicate sensibly on cabin fever from being ice-bound here in Atlanta all week. On Thu, Jan 13, 2011 at 5:04 AM, Thomas Broyer t.bro...@gmail.com wrote: Er, isn't r9525 a fix for the Chrome-dev issue with V8's Crankshaft? You probably meant to link to r9526http://code.google.com/p/google-web-toolkit/source/detail?r=9526? ;-) (also s/download the crx out of svn/download the xpi out of svn/) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: setwidth and setCellWidth of the VerticalPanel
VerticalPanel is implemented using a table, which means that it will always auto expand to fit its contents. If you want to ensure that it is 400px, wrap each child content in a FlowPanel and set the width of the FlowPanel to 400px and overflow to hidden (or scroll). Thanks, John LaBanca jlaba...@google.com On Thu, Jan 13, 2011 at 6:31 AM, Leung leung1_2...@yahoo.com wrote: Hi I need to make the width of the VerticalPanel constant. I have tried setwidth and setCellWidth, but both seem not working well. For example, VerticalPanel vp = new VerticalPanel(); vp.setCellWidth(this, 400px); Label textlabel = new textlabel(); textlabel.add(text); -- vp.add(textlabel); If the text is a string containing various spaces, then the width is able to be kept because the wrap is on. Otherwise, if the text is a string without space longer than 400px, the string would not wrap. How can I make the width constant independent of the string? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Dev plugin for firefox 3.7
Tried to build it from a fresh update, and after a while, the build process has failed with this: g++ -m64 -o build/Linux_x86_64-gcc3-ff40/libgwt_dev_ff40.so build/ Linux_x86_64-gcc3-ff40/ExternalWrapper.o build/Linux_x86_64-gcc3-ff40/ ModuleOOPHM.o build/Linux_x86_64-gcc3-ff40/FFSessionHandler.o build/ Linux_x86_64-gcc3-ff40/JavaObject.o build/Linux_x86_64-gcc3-ff40/ JSRunner.o build/Linux_x86_64-gcc3-ff40/Preferences.o build/ Linux_x86_64-gcc3-ff40/XpcomDebug.o ../common/libcommon64.a -shared - m64 -L/home/csillag/local/lib/firefox-4.0b10pre -L../../plugin-sdks/ gecko-sdks/gecko-2.0.0/Linux_x86_64-gcc3/lib -Wl,-rpath-link,../../ plugin-sdks/gecko-sdks/gecko-2.0.0/Linux_x86_64-gcc3/lib -lxpcomglue_s -lxpcom -lnspr4 -lmozalloc /usr/bin/ld: cannot find -lxpcomglue_s collect2: ld returned 1 exit status make: *** [build/Linux_x86_64-gcc3-ff40/libgwt_dev_ff40.so] Error 1 .. BTW, checking out the contents of plugin-sdks, there really is no xpcomglue stuff for gecko-2.0.0. What am I missing here? Thank you, again: Kristof Csillag On jan. 13, 00:02, Chris Conroy con...@google.com wrote: I just committed r9525http://code.google.com/p/google-web-toolkit/source/detail?r=9525 which updates the xpcom plugin to support Gecko 2.0 (Firefox 4) on Linux. You need to use at least Firefox 4 beta 9 for it to work. The xulrunner SDK for mac is unavailable, and we'll follow on later with an update to the Windows build. Feel free to download the crx out of svn if you want to give it a spin on Linux. It should be backwards compatible with 3.0-3.6. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help with generics or inheritance with RequestFactory
Thanks for your help! I like this better than my current workaround (having a setter for each proxy). On Jan 10, 8:56 pm, Y2i yur...@gmail.com wrote: It looks like the feature request was accepted: http://code.google.com/p/google-web-toolkit/issues/detail?id=5367 This is an workaround, but it's how I'm planning to deal with thepolymorphismuntil it's fully supported by the request factory. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Dev plugin for firefox 3.7
You just need to update your plugin-sdks directory. i added the 2.0 stuff earlier this week On Thu, Jan 13, 2011 at 11:10 AM, csillag csillag.kris...@gmail.com wrote: Tried to build it from a fresh update, and after a while, the build process has failed with this: g++ -m64 -o build/Linux_x86_64-gcc3-ff40/libgwt_dev_ff40.so build/ Linux_x86_64-gcc3-ff40/ExternalWrapper.o build/Linux_x86_64-gcc3-ff40/ ModuleOOPHM.o build/Linux_x86_64-gcc3-ff40/FFSessionHandler.o build/ Linux_x86_64-gcc3-ff40/JavaObject.o build/Linux_x86_64-gcc3-ff40/ JSRunner.o build/Linux_x86_64-gcc3-ff40/Preferences.o build/ Linux_x86_64-gcc3-ff40/XpcomDebug.o ../common/libcommon64.a -shared - m64 -L/home/csillag/local/lib/firefox-4.0b10pre -L../../plugin-sdks/ gecko-sdks/gecko-2.0.0/Linux_x86_64-gcc3/lib -Wl,-rpath-link,../../ plugin-sdks/gecko-sdks/gecko-2.0.0/Linux_x86_64-gcc3/lib -lxpcomglue_s -lxpcom -lnspr4 -lmozalloc /usr/bin/ld: cannot find -lxpcomglue_s collect2: ld returned 1 exit status make: *** [build/Linux_x86_64-gcc3-ff40/libgwt_dev_ff40.so] Error 1 .. BTW, checking out the contents of plugin-sdks, there really is no xpcomglue stuff for gecko-2.0.0. What am I missing here? Thank you, again: Kristof Csillag On jan. 13, 00:02, Chris Conroy con...@google.com wrote: I just committed r9525 http://code.google.com/p/google-web-toolkit/source/detail?r=9525 which updates the xpcom plugin to support Gecko 2.0 (Firefox 4) on Linux. You need to use at least Firefox 4 beta 9 for it to work. The xulrunner SDK for mac is unavailable, and we'll follow on later with an update to the Windows build. Feel free to download the crx out of svn if you want to give it a spin on Linux. It should be backwards compatible with 3.0-3.6. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Relocating instance methods transparently for the client
Thanks for looking at this Thomas! And thanks to GWT team who made refactoring of a web app so easy :-) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: table.getInnerHTML() not giving appropriate results
Thanks ton Thomas! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Overriding Entrypoint on Inheritance?
All entry points are called: http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules Do you need 2 entry points? If you want to use a base module as a separate app, you can create a third module, move the entry point from the base module there and inherit the base module from the third module. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Dev plugin for firefox 3.7
On jan. 13, 17:34, Chris Conroy con...@google.com wrote: You just need to update your plugin-sdks directory. i added the 2.0 stuff earlier this week Of course I did update it before compiling. It's at 9528. Kristof -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT throwing java.lang.UnsatisfiedLinkError when trying to make http requests using URL encoding
You cannot use the *.client.* classes on the server (there might be a few exceptions, but it's the general idea that things that can run server-side are in a *.shared.* or *.server.* package). This includes the URL class. The UnsatisfiedLinkError is due to the notation used by GWT for JSNI: they are 'native' methods (i.e. things a JVM expects to find in a DLL or equivalent). In your case, have a look at the java.net.URLEncoder class. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: cell widgets vs editors
Yes: wrap your CellTable in a HasDataEditor. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Using browser specific selectors in CssResource
Hi Is it possible to use browser specific selectors like I used in this following statement in the CssResource's css file : button::-moz-focus-inner, button:focus::-moz-focus-inner { border: 0; padding: 0; } The compiler is stripping this declaration from the result. Is it possible to tell the compiler that it shouldn't get stripped ? Maybe I can use literal function with this selector in some magic way ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Dev plugin for firefox 3.7
sigh, you're right. svn is acting up. looking into it... On Thu, Jan 13, 2011 at 12:07 PM, csillag csillag.kris...@gmail.com wrote: On jan. 13, 17:34, Chris Conroy con...@google.com wrote: You just need to update your plugin-sdks directory. i added the 2.0 stuff earlier this week Of course I did update it before compiling. It's at 9528. Kristof -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Window 7 IE8 Drop Down List Boxes open problem
Any chance anyone else has this problem? On Dec 15 2010, 12:46 pm, skippy al.leh...@fisglobal.com wrote: This is atill a problem. However, it is in IE8 on Windows 7. On Nov 3, 7:29 am, skippy al.leh...@fisglobal.com wrote: @UiField ListBox groupListBox; loadGroupListBox(workingLists, groupListBox); private void loadGroupListBox(ArrayListListBoxItem itemList, ListBox listBox) { for (int i = 0; i itemList.size(); ++i) { ListBoxItem item = itemList.get(i); listBox.addItem(item.getDesc(), item.getCode()); } } On Nov 1, 6:27 am, Nathan Wells nwwe...@gmail.com wrote: Do you have a snippet of code that can reproduce this problem? this sounds like a browser issue to me. On Oct 28, 6:20 am, skippy al.leh...@fisglobal.com wrote: In this configuration, the drop down list boxes open with the top out of the top of the browser and no scrollBar. GWT 2.0.4 Has anyone else seen this? Any chanse for a 2.0.5 fix? Thanks- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.1 MVP with DockLayoutPanel
Hi all, I'm having problems with the new MVP framework and using DockLayoutPanel or SplitLayoutPanel. If I switch my code to use RootPanel and DockPanel then it will work, but if my views are using a DLP or a SLP inside a RLP then it simply does not render the centre pane. Any tips ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Can I build a graphic widget on server side and send it to the client?
Hi all. I'm using GWT 2.0 In my application I have to render on the browser an html form with a lot of input widgets such as textfield, checkbox, and so on. The exact composition of such widgets is stored in a database; in other words I don't know how the form must look like a-priori, but I need to build it dynamically based on what's stored in the db. I'm trying to follow this approach: the client send and RPC request to the server side of the application through a method that returns a VerticalPanel, like this: public class MyServiceImpl extends RemoteServiceServlet implements MyService { public VerticalPanel getMyForm() { VerticalPanel pan = new VerticalPanel(); ... pan.add( new TextBox(...) ) ... return pan; } } This approach leads me to this error at compilation-time: [ERROR] com.google.gwt.user.client.ui.VerticalPanel is not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' or 'java.io.Serializable' nor does it have a custom field serializer (reached via com.google.gwt.user.client.ui.VerticalPanel) [ERROR] com.google.gwt.user.client.ui.VerticalPanel has no available instantiable subtypes. (reached via com.google.gwt.user.client.ui.VerticalPanel) How can I workaround this problem, or what approach should I follow ? Thank you Jack -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No Log messages at level INFO in eclipse.
Hi! When i try to send a log message at level INFO in Eclipse it does not show up. When i set the -logLevel parameter to TRACE or lower INFO messages show up. What's going wrong here? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: cell widgets vs editors
I have the same question. I would like to combine both concepts by having a celltable that implements Editor. Is it possible? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Can I build a graphic widget on server side and send it to the client?
Widgets are client side things only, so you can't really create them on the server and send them across the wire. The simplest solution I can think of would be to take the data in the DB that you are reading, package it up all nicely in some kind of data object, and ship it to the client. The client would then inspect the data to figure out what it needs to build. -Ben On Jan 13, 10:48 am, Jack giacomo.gali...@gmail.com wrote: Hi all. I'm using GWT 2.0 In my application I have to render on the browser an html form with a lot of input widgets such as textfield, checkbox, and so on. The exact composition of such widgets is stored in a database; in other words I don't know how the form must look like a-priori, but I need to build it dynamically based on what's stored in the db. I'm trying to follow this approach: the client send and RPC request to the server side of the application through a method that returns a VerticalPanel, like this: public class MyServiceImpl extends RemoteServiceServlet implements MyService { public VerticalPanel getMyForm() { VerticalPanel pan = new VerticalPanel(); ... pan.add( new TextBox(...) ) ... return pan; } } This approach leads me to this error at compilation-time: [ERROR] com.google.gwt.user.client.ui.VerticalPanel is not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' or 'java.io.Serializable' nor does it have a custom field serializer (reached via com.google.gwt.user.client.ui.VerticalPanel) [ERROR] com.google.gwt.user.client.ui.VerticalPanel has no available instantiable subtypes. (reached via com.google.gwt.user.client.ui.VerticalPanel) How can I workaround this problem, or what approach should I follow ? Thank you Jack -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Window 7 IE8 Drop Down List Boxes open problem
I am running IE8 / Windows 7 and have not had any issues with the GWT combo boxes. -Ben On Jan 13, 1:49 pm, skippy al.leh...@fisglobal.com wrote: Any chance anyone else has this problem? On Dec 15 2010, 12:46 pm, skippy al.leh...@fisglobal.com wrote: This is atill a problem. However, it is in IE8 on Windows 7. On Nov 3, 7:29 am, skippy al.leh...@fisglobal.com wrote: @UiField ListBox groupListBox; loadGroupListBox(workingLists, groupListBox); private void loadGroupListBox(ArrayListListBoxItem itemList, ListBox listBox) { for (int i = 0; i itemList.size(); ++i) { ListBoxItem item = itemList.get(i); listBox.addItem(item.getDesc(), item.getCode()); } } On Nov 1, 6:27 am, Nathan Wells nwwe...@gmail.com wrote: Do you have a snippet of code that can reproduce this problem? this sounds like a browser issue to me. On Oct 28, 6:20 am, skippy al.leh...@fisglobal.com wrote: In this configuration, the drop down list boxes open with the top out of the top of the browser and no scrollBar. GWT 2.0.4 Has anyone else seen this? Any chanse for a 2.0.5 fix? Thanks- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1 MVP with DockLayoutPanel
make sure you include height=100% g:DockLayoutPanel height=100% http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b1afc93f1de4a1a9/3aae5daeee660c9f?lnk=gstq=docklayoutpanel+zixzigma#3aae5daeee660c9f -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1 MVP with DockLayoutPanel
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/29d35978188355af/7ffde8325859911d?lnk=gstq=docklayoutpanel+zixzigma#7ffde8325859911d -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
IE 8 and status code error 12030 - 12152
We are intermittently getting the StatusCodeException in our GWT application. Only happens in IE and so far all version of IE shows the problem. I have searched all over and did not find a thread on GWT with this issue. Here are all the status code listed on this site. http://support.microsoft.com/kb/193625. I know that the error is not what the status code error thrown by IE since other browsers don't have this issue. I get status code 12152 mostly but also seen others like 12030, 12031. When using HTTPWatch, it seems that the request wen nowhere. Please reply to the post if you know how to fix this in GWT or what the root cause of this. Thank you! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
cannot show an icon right next to a link, when having vertical list of link + icons
I want to show an icon right next to a link. However after spending a lot of time, could not make it work. public interface Resources extends ClientBundle { @Source(homeIcon.png) ImageResource myIcon(); } and UiBinder: on the top ui:with field='res' type='package.of.Resources'/ and the link with icon next to it: g:FlowPanel g:InlineHyperlink . g:InlineHyperlink text=Home targetHistoryToken=home / g:Image resource='{res.homeIcon}' / g:InlineHyperlink . /g:FlowPanel the above markup would create a vertical list (similar to ul li ) the problem s that the image is shown on a line of its own, not next to the hyperlink. I believe this makes sense because they are inside a FlowPanel and this is how FlowPanel lays out its items. however, i tried to wrap the pair (home link and home icon) in a container, but couldnt get the behaviour expected. does anyone have any idea how I can get this to show correctly ? what I want is this: HomeLink Home Icon Link#2 Icon#2 Link#3 Icon#3 a vertical list, each line having two items Link + Icon preferably without using flextable, html table. thank you -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT External JARs and use on the Client Side
Hi All, Have a quick question. We're currently trying to use some classes from an external jar but am running into an error at run time: [ERROR] [test] - Line 34: No source code is available for type CLASS; did you forget to inherit a required module? This error seems to be firing from every place the class is used except on the server side. The class itself is fairly simple, implements Serializable and only has String, Integer attributes w/ the associated getters / setters. Is there a particular reason that the class is not allowed on the the client side? Is there some config / interface that's not setup / implemented? Any information / help would be much appreciated. Thanks! Ryan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: cannot show an icon right next to a link, when having vertical list of link + icons
there was a typo, myIcon(); is infact homeIcon(); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: setwidth and setCellWidth of the VerticalPanel
Hi John, Thanks for you reply. Just for learning purpose, how can you tell from the document that the VerticalPanel will always auto fit the child content and the FlowPanel wont? In general, how can I tell which panel or widget does auto fit the child widget and which doesnt? Thanks Ming --- On Thu, 1/13/11, John LaBanca jlaba...@google.com wrote: From: John LaBanca jlaba...@google.com Subject: Re: setwidth and setCellWidth of the VerticalPanel To: google-web-toolkit@googlegroups.com Date: Thursday, January 13, 2011, 11:48 PM VerticalPanel is implemented using a table, which means that it will always auto expand to fit its contents. If you want to ensure that it is 400px, wrap each child content in a FlowPanel and set the width of the FlowPanel to 400px and overflow to hidden (or scroll). Thanks, John LaBanca jlaba...@google.com On Thu, Jan 13, 2011 at 6:31 AM, Leung leung1_2...@yahoo.com wrote: Hi I need to make the width of the VerticalPanel constant. I have tried setwidth and setCellWidth, but both seem not working well. For example, VerticalPanel vp = new VerticalPanel(); vp.setCellWidth(this, 400px); Label textlabel = new textlabel(); textlabel.add(text); -- vp.add(textlabel); If the text is a string containing various spaces, then the width is able to be kept because the wrap is on. Otherwise, if the text is a string without space longer than 400px, the string would not wrap. How can I make the width constant independent of the string? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Can I build a graphic widget on server side and send it to the client?
You could also try to generate the needed HTML on your server and send it to your client. On your client you could put that HTML into a custom Widget via setInnerHTML. This custom Widget can overwrite onBrowserEvent if you need some basic event handling for your generated HTML. We did something like this for generating questionnaires on the server (questionnaires are defined through xml and stored in a db) and intercepting events whenever a user interacts with a checkbox/ radiobutton/textbox. We primarily did this because of IE's poor performance. If you use any other browser then I would also send some sort of custom data object to the client and use this object to build the UI. On 13 Jan., 17:48, Jack giacomo.gali...@gmail.com wrote: Hi all. I'm using GWT 2.0 In my application I have to render on the browser an html form with a lot of input widgets such as textfield, checkbox, and so on. The exact composition of such widgets is stored in a database; in other words I don't know how the form must look like a-priori, but I need to build it dynamically based on what's stored in the db. I'm trying to follow this approach: the client send and RPC request to the server side of the application through a method that returns a VerticalPanel, like this: public class MyServiceImpl extends RemoteServiceServlet implements MyService { public VerticalPanel getMyForm() { VerticalPanel pan = new VerticalPanel(); ... pan.add( new TextBox(...) ) ... return pan; } } This approach leads me to this error at compilation-time: [ERROR] com.google.gwt.user.client.ui.VerticalPanel is not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' or 'java.io.Serializable' nor does it have a custom field serializer (reached via com.google.gwt.user.client.ui.VerticalPanel) [ERROR] com.google.gwt.user.client.ui.VerticalPanel has no available instantiable subtypes. (reached via com.google.gwt.user.client.ui.VerticalPanel) How can I workaround this problem, or what approach should I follow ? Thank you Jack -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: cannot show an icon right next to a link, when having vertical list of link + icons
ui:style ui:field=style .floatLeft{ float:left; } ui:style g:FlowPanel g:InlineHyperlink . * g:FlowPanel addStyleName={style.floatLeft}* g:InlineHyperlink text=Home targetHistoryToken=home / g:Image resource='{res.homeIcon}' / * /g:FlowPanel * g:InlineHyperlink . /g:FlowPanel Probably a better design decision would be to make a custom widget for your inline hyperilnk and for your imageResource. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: cannot show an icon right next to a link, when having vertical list of link + icons
Thank you, sorry, I believe I did not ask the right question. didnt provide the context in which these are going to be used. this list, is going to be a roll-over list, meaning upon hovering the background changes. this can be done in css, and I am getting it to work with css inside uibinder. (no need for onHover events etc) however, whith using CSS Float, they are shown next to eachother, but upon hover, the entire container contaning that line is not filled. for example, Home homeIcon the space after the Icon is not filled. considering these links are in a container, like a box, upon hover of elements the entire width should be highlighted, but with float, the area to the right of Icon is not highlighted. I believe I have to try trial and error with CSS to get them to work. in the meantime, one GWT related question: given the ClientBundle and UiBinder below public interface Resources extends ClientBundle { @Source(homeIcon.png) ImageResource myIcon(); } ui:with field='res' type='package.of.Resources'/ with : g:Image resource='{res.homeIcon}' / I can get the image, but is it possible to use this image as a css background ? for example .icon { background-image:url(res.homeIcon); } there is an element : ui:image field= src=/path/to/image but the path must be explicitly specified. how can I use ClientBundle, but still use the image in CSS background- image instead of g:Image resource='{res.homeIcon}' / Thank You -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT External JARs and use on the Client Side
The GWT compiler requires the Java source for any class you want to use on the client side, as part of its job is to translate that Java code to JavaScript. -Ben On Jan 13, 3:20 pm, Ryan Rathsam rrath...@gmail.com wrote: Hi All, Have a quick question. We're currently trying to use some classes from an external jar but am running into an error at run time: [ERROR] [test] - Line 34: No source code is available for type CLASS; did you forget to inherit a required module? This error seems to be firing from every place the class is used except on the server side. The class itself is fairly simple, implements Serializable and only has String, Integer attributes w/ the associated getters / setters. Is there a particular reason that the class is not allowed on the the client side? Is there some config / interface that's not setup / implemented? Any information / help would be much appreciated. Thanks! Ryan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: cannot show an icon right next to a link, when having vertical list of link + icons
I got it to work. I used an HTMLPanel, and wrapped my g:image in html anchor a. therefore it appears to be a link and my css selectors for a:hover, applies to it, and the background color is highlighted upon hover. Thank You.. still would appreciate some tips on using images defined in the clientbundle, inside CSS ui:with field='res' type='package.of.Resources'/ can we do something similar to this ? .homeIcon { background-image:'res.homeIcon'; } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT throwing java.lang.UnsatisfiedLinkError when trying to make http requests using URL encoding
... or HttpURLConnection http://download.oracle.com/javase/6/docs/api/java/net/HttpURLConnection.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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
New logging api error with firebug lite
Hi, I guess I am doing something wrong: Log traces does not appear in Firebug Lite (ie8) but they are appearing in chrome console. Any idea? Ramon. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Server Log
I actually found out how I can solve at least my case, I just extended RemoteServiceServlet (which I had done anyway with a GuiceRemoteServiceServlet). There in the catch clause of public String processCall(String payload){...} I just added my Log command, not it works and I see the RPC exceptions... Thanks anyway for the replies :-) On Jan 13, 10:22 am, SVR svr...@gmail.com wrote: true, I don't see the ability to configure server side log anywhere. I would try this: Enable gwt.logging.firebugHandler and see atleast the umbrella exception... On Thu, Jan 13, 2011 at 6:32 AM, pete superp...@geekcity.de wrote: Yes, but what about RPC-exceptions, that actually don't arrive anywhere? (I think that is the case, where I'm stuck, but I have no access to the deployed production webapp, and I'm told, that the logs show nothing...) I mean, if I actually arrive in the correct function on the server, yes, then I could just do the logging as I'm used to. I just think, I changed the return-value of an existing function and somehow there is a problem somewhere, that I don't arrive in that function anymore, or that the answer doesn't arrive back. If I look at the firebug console, I see that my post-request fails, but I surrounded the whole method, which is in question with try{..}catch() {log} and still nothing... Which makes me think, I never arrive in that method, and something goes wrong earlier... Or later, I don't know... But I would need a stacktrace to be logged like method bla doesn't support correct return type - TargetInvocationExcaption: Stacktrace in such a case. But I don't know how to log those things. In development mode, yes, then I see any stacktrace like this. But unfortunately there it works and I need to know what goes wrong with the deployed version, and then there is no log at all (even though it says check server log) Is there any way to configure log4j to log those exceptions? On Jan 12, 11:23 pm, SVR svr...@gmail.com wrote: You could catch and throw the same way you would do in any java appln. On Wed, Jan 12, 2011 at 5:16 PM, pete superp...@geekcity.de wrote: Hallo, is there a way to show stacktraces of UnexpectedExceptions after the webapp is deployed? I have logging enabled in general, if I manually use my logger, like LOG.debug(blah), I can see my logs... If RPC fails, I just get an unexpected exception saying the call failed on the server, see server logs for details, however, there is no stacktrace or exception logging anywhere, not even in System.out, etc. How can I enable this? Or where does GWT save those server logs mentioned? Is it possible to configure log4j to log those exceptions? Help would really be appreciated, since googling hasn't really shown up anything I could use... Regards, Peter -- You received 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 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Dev plugin for firefox 3.7
On jan. 13, 21:33, Chris Conroy con...@google.com wrote: I had been using the sdk provided dynamic libraries for building, and looks like codesite wasn't happy with the 200+ meg files. http://code.google.com/p/google-web-toolkit/source/detail?r=9535adds the stripped versions of the missing libraries. OK, now it builds, installs and runs OK! (Testing with Minefield 4.0 b10pre ) Thank you for your help on this! Now I can finally debug my stuff. Kristof -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Visualization NoClassDefFoundError
Is it possible that you didn't inherit from com.google.gwt.visualization.Visualization module? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to handle com.google.apphosting.api.ApiProxy.CapabilityDisabledException
Hi all. It would be nice if I could catch CapabilityDisabledException on the client in the RPC calls onFailure callback methods but it appears it isn't possible; seems like the exception can only be declared in server code so I came up with another solution and would like your feedback. I am thinking about defining a custom exception derived from Throwable and, sharing it between the client and server. I'd catch CapabilityDisabledException in my RPC methods and in response I would throw my custom throwable exception back to the client. In my client's RPC onFailure callback methods I would catch my custom exception in the following manner: @Override public void onFailure(Throwable caught) { try{ throw caught; }catch (MyCapabilityDisabledException e) { *=== catch it here** * // direct the user to a view which explains that the db is not available and to try again later } }catch(IncompatibleRemoteServiceException e){ }catch (InvocationException e){ }catch (Throwable e) { Window.alert(Severe error!); } } What do you think, do you like the solution or do you have a better one that you have implemented and successfully tested and used? Thanks in advance for your feedback. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Multi-Module Project and Servlet Mappings
What if you remove servlet/ from *.gwt.xml and configure servlets only from web.xml? The xml reference says that *The servlet element applies only to GWT's embedded server server-side debugging feature.* *NOTE: as of GWT 1.6, this tag does no longer loads servlets in development mode, instead you must configure a WEB-INF/web.xml in your war directory to load any servlets needed.* http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to handle com.google.apphosting.api.ApiProxy.CapabilityDisabledException
This will work fine. Just two notes: MyCapabilityDisabledException can extend Exception, it does not have to extend Throwable. You can also use if(caught instanceof MyCapabilityDisabledException) instead of re-throwing caught in onFailure() -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Multi-Module Project and Servlet Mappings
Already doing that. None of the *.gwt.xml files have servlet/ elements in them. On 1/13/11 4:42 PM, Y2i wrote: What if you remove servlet/ from *.gwt.xml and configure servlets only from web.xml? The xml reference says that *The servlet element applies only to GWT's embedded server server-side debugging feature.* /*NOTE: as of GWT 1.6, this tag does no longer loads servlets in development mode, instead you must configure a WEB-INF/web.xml in your war directory to load any servlets needed.*/ http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
is it possible to develop custom reusable widgets using UiBinder ?
is it possible to develop custom reusable widgets using UiBinder ? or this is only possible within the Java code as outlined here [1] ? [1] http://code.google.com/webtoolkit/doc/latest/DevGuideUiCustomWidgets.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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: setwidth and setCellWidth of the VerticalPanel
It extends CellPanel, which says that its widgets are contained in the cells of a table, but you'd have to know to look at the super class and you'd have to be familiar with how tables handle their contents. So, we should update the JavaDoc to explain better how table based panels work in practice. Thanks, John LaBanca jlaba...@google.com On Thu, Jan 13, 2011 at 4:36 PM, Leung leung1_2...@yahoo.com wrote: Hi John, Thanks for you reply. Just for learning purpose, how can you tell from the document that the VerticalPanel will always auto fit the child content and the FlowPanel wont? In general, how can I tell which panel or widget does auto fit the child widget and which doesnt? Thanks Ming --- On *Thu, 1/13/11, John LaBanca jlaba...@google.com* wrote: From: John LaBanca jlaba...@google.com Subject: Re: setwidth and setCellWidth of the VerticalPanel To: google-web-toolkit@googlegroups.com Date: Thursday, January 13, 2011, 11:48 PM VerticalPanel is implemented using a table, which means that it will always auto expand to fit its contents. If you want to ensure that it is 400px, wrap each child content in a FlowPanel and set the width of the FlowPanel to 400px and overflow to hidden (or scroll). Thanks, John LaBanca jlaba...@google.comhttp://us.mc342.mail.yahoo.com/mc/compose?to=jlaba...@google.com On Thu, Jan 13, 2011 at 6:31 AM, Leung leung1_2...@yahoo.comhttp://us.mc342.mail.yahoo.com/mc/compose?to=leung1_2...@yahoo.com wrote: Hi I need to make the width of the VerticalPanel constant. I have tried setwidth and setCellWidth, but both seem not working well. For example, VerticalPanel vp = new VerticalPanel(); vp.setCellWidth(this, 400px); Label textlabel = new textlabel(); textlabel.add(text); -- vp.add(textlabel); If the text is a string containing various spaces, then the width is able to be kept because the wrap is on. Otherwise, if the text is a string without space longer than 400px, the string would not wrap. How can I make the width constant independent of the string? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.comhttp://us.mc342.mail.yahoo.com/mc/compose?to=google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comhttp://us.mc342.mail.yahoo.com/mc/compose?to=google-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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
how to inject ClientBundle using GIN to avoid GWT.create
given we have a client bundle: public interface MyResource extends ClientBundle {} in our widget: public class MyWidget extends Composite { MyResource resource = GWT.create(MyResource.class); // resource.myresource how can we inject ClientBundle, so that we can do away with GWT.create for example: private final MyResource resource; @Inject public MyWidget(MyResource resource){ this.resource = resource; } when I try this, I get exceptions. do I need to declare any bindings in gin module config ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Speed of UI tests with WebDriver
We're starting to make pretty heavy use of UI tests via WebDriver (using Cucumber and Capybara). The major stumbling block has been the speed under which they run. Running locally, with the gwt.codesvr parameter, the tests take the better part of an hour which means no one will run them locally. On the CI server, they take about half an hour but they run against a deployed version of the app so it requires the app to be deployed each time they're run. Does anyone have any suggestions on speeding the tests up? I'm about to investigate a couple of options: 1) While working on a feature, we run the UI tests specifically for that feature only using the gwt.codesvr parameter. When finished, we can do a full GWT compile, then run all the UI tests locally without the gwt.codesvr parameter. 2) Try running the UI tests on the CI server using hosted mode. If this works, it removes the need to deploy the app first. This has another benefit. Right now, we reset the data before each test using an API. If it works in hosted mode, we could simplify this by just replacing the local .bin datastore file before each test. And maybe even have a series of them with different test data for different scenarios. Would appreciate any and all opinions on this along with other suggestions. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to inject ClientBundle using GIN to avoid GWT.create
This will work as long as the class into which you're injecting the ClientBundle is itself instantiated via GIN. For more info, see http://turbomanage.wordpress.com/2009/10/02/gwt-easy-i18n-with-gin/ HTH, /dmc On Thu, Jan 13, 2011 at 9:54 PM, zixzigma zixzi...@gmail.com wrote: given we have a client bundle: public interface MyResource extends ClientBundle {} in our widget: public class MyWidget extends Composite { MyResource resource = GWT.create(MyResource.class); // resource.myresource how can we inject ClientBundle, so that we can do away with GWT.create for example: private final MyResource resource; @Inject public MyWidget(MyResource resource){ this.resource = resource; } when I try this, I get exceptions. do I need to declare any bindings in gin module config ? -- You received 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. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to handle com.google.apphosting.api.ApiProxy.CapabilityDisabledException
On Thu, Jan 13, 2011 at 8:26 PM, Y2i yur...@gmail.com wrote: This will work fine. I was hoping that would be the case. :) Just two notes: MyCapabilityDisabledException can extend Exception, it does not have to extend Throwable. You can also use if(caught instanceof MyCapabilityDisabledException) instead of re-throwing caught in onFailure() Points well taken and thank you for your feedback. Jeff -- You received 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. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: is it possible to develop custom reusable widgets using UiBinder ?
Yes and no. You can create you custom widgets with UiBinder but you have to resort to mostly relying Composite and HTMLPanel and backing code until Google ramps up UiBinder. Then, once you components are built, you can reuse the them just like any other GWT widget in UiBinder by providing its namespace and import declaration such as: ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui xmlns:dp=urn:import:com.google.gwt.user.datepicker.client *xmlns:my='urn:import:lmv.com.client.members'* Any composite in the lmv.com.client.members package will now be able to be referenced with the *my* tag. That's pretty powerful juju if you ask me and the beauty of a component based framework like GWT. Jeff On Thu, Jan 13, 2011 at 9:29 PM, zixzigma zixzi...@gmail.com wrote: is it possible to develop custom reusable widgets using UiBinder ? or this is only possible within the Java code as outlined here [1] ? [1] http://code.google.com/webtoolkit/doc/latest/DevGuideUiCustomWidgets.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-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. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: is it possible to develop custom reusable widgets using UiBinder ?
It is possible, very convenient and easy to import them to WindowBuilder. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT throwing java.lang.UnsatisfiedLinkError when trying to make http requests using URL encoding
Oh ok. Got the problem. Thanks a lot guys :) On 14 January 2011 04:24, Y2i yur...@gmail.com wrote: ... or HttpURLConnection http://download.oracle.com/javase/6/docs/api/java/net/HttpURLConnection.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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
The web.xml file does not exist WEB-INF /FareScore/war -Google Web App Problem
Guys, I created a new GWT project,I am getting this error. The web.xml file does not exist WEB-INF /FareScore/war -Google Web App Problem Please Help Regards, Sudhakar -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
problem applying CSS classes defined in ClientBundle
I am trying to use CSS classes defined in a ClientBundle to set the style for my widget. Unfortunately, the style is not applied. I use the very same ClientBundle to display an icon, and it works. I have put the style.css file within the same directory as MyResources.java clientbundle, they are in the same package(com.myapp.client.ui.xxx). this style.css is not included in main html file and is not in webapp directory. do I need to put this css file in a webapp folder ? below is the code: public interface MyResources extends ClientBundle { @Source(style.css) Style style(); @Source(home.png) ImageResource homeIcon(); public interface Style extends CssResource { String homeLink(); } } style.css: .homeLink { color:red; font-size:20px; font-weight:bold; background-color:green; } MyWidget: public class MyWidget extends Composite { FlowPanel panel = new FlowPanel(); private final AppResources resources; @Inject public RolloverListWidget(MyResources resources) { initWidget(panel); this.resources = resources; Hyperlink homeLink = new InlineHyperlink(Home, home); homeLink.setStyleName(this.resources.style().homeLink()); // link is NOT styled : ( // I tried addStyleNames, etc // still didnt work Image homeIcon = new Image(this.resources.homeIcon()); // I can see the icon panel.add(homeLink); panel.add(homeIcon); } } what I am doing wrong ? do you know how I can correctly style homeLink using ClientBundle technique ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: is it possible to develop custom reusable widgets using UiBinder ?
I was thinking pure Java code might have been better, because everything would be encapsulated in single file, and properties can be set programmatically. when developing re-usable components with UiBinder, do you find yourself using MVP ? for example having a - Wdiget Interface - WidgetImpl java code - WidgetImpl.ui.xml uibinder file - and a WidgetPresenter ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: The web.xml file does not exist WEB-INF /FareScore/war -Google Web App Problem
do you have a web.xml file in your webapp/WEB-INF directory ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: The web.xml file does not exist WEB-INF /FareScore/war -Google Web App Problem
no i couldnt find any On Thu, 2011-01-13 at 21:10 -0800, zixzigma wrote: do you have a web.xml file in your webapp/WEB-INF directory ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: The web.xml file does not exist WEB-INF /FareScore/war -Google Web App Problem
you need to create one: if you use GWT Eclipse file, it creates one for you. here is GWT tutorial on a sample app : http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Default page to serve -- welcome-file-list welcome-fileStockWatcher.html/welcome-file /welcome-file-list !-- Servlets -- servlet servlet-namestockPriceServiceImpl/servlet-name servlet- classcom.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl/ servlet-class /servlet servlet-mapping servlet-namestockPriceServiceImpl/servlet-name url-pattern/stockwatcher/stockPrices/url-pattern /servlet-mapping /web-app -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: is it possible to develop custom reusable widgets using UiBinder ?
I use Widget Widget.Presenter (nested interface) WidgetImpl WidgetImpl.ui.xml WidgetImpl does not look nice, but at least it's consistent with the MVP pattern. Having Widget.Presenter nested is also not necessary. Even though the MVP-based WidgetImpl's are re-usable, I'm not embedding them into other UiBinders. They are created by Gin and plugged into AcceptsOneWidget's in Activity.start() -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: problem applying CSS classes defined in ClientBundle
You might have forgotten to call ensureInjected() on your style (the one that extends CssResource) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Speed of UI tests with WebDriver
This might not suit your team well, but the ability to run plain JUnit is one of the major reasons I moved to the MVP pattern: http://code.google.com/webtoolkit/articles/mvp-architecture.html#testing -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: change the generated project template
Cool, thanks. On Jan 13, 8:07 am, Jaime Wren jw...@google.com wrote: In the New Web Application Project wizard, a new option has been added to Generate GWT project sample code. The option is selected by default, but when de-selected, it will generate an empty project with the selected Google SDK's setup on the project. This additional feature will be available in the next version of the GPE. - Jaime Wren On Jan 11, 7:35 pm, JaySicks jaysi...@gmail.com wrote: Hello, I'm using eclipse, with the google plugin, and every time I create a new web app project, it generates a lot of code, which I have to delete before I can start working. Of course at first its good to have a working application, right after I create the project, but after a few times, it gets annoying. So, I was wondering, if there is a way to change the generated project structure, when I create the GWT application.. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Server Log
The correct way is to override doUnexpectedFailure(Throwable e)http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/server/rpc/AbstractRemoteServiceServlet.html#doUnexpectedFailure(java.lang.Throwable)in your custom RPC Servlet. That way you won't have to change GWT's code. --Sri On 14 January 2011 04:31, pete superp...@geekcity.de wrote: I actually found out how I can solve at least my case, I just extended RemoteServiceServlet (which I had done anyway with a GuiceRemoteServiceServlet). There in the catch clause of public String processCall(String payload){...} I just added my Log command, not it works and I see the RPC exceptions... Thanks anyway for the replies :-) On Jan 13, 10:22 am, SVR svr...@gmail.com wrote: true, I don't see the ability to configure server side log anywhere. I would try this: Enable gwt.logging.firebugHandler and see atleast the umbrella exception... On Thu, Jan 13, 2011 at 6:32 AM, pete superp...@geekcity.de wrote: Yes, but what about RPC-exceptions, that actually don't arrive anywhere? (I think that is the case, where I'm stuck, but I have no access to the deployed production webapp, and I'm told, that the logs show nothing...) I mean, if I actually arrive in the correct function on the server, yes, then I could just do the logging as I'm used to. I just think, I changed the return-value of an existing function and somehow there is a problem somewhere, that I don't arrive in that function anymore, or that the answer doesn't arrive back. If I look at the firebug console, I see that my post-request fails, but I surrounded the whole method, which is in question with try{..}catch() {log} and still nothing... Which makes me think, I never arrive in that method, and something goes wrong earlier... Or later, I don't know... But I would need a stacktrace to be logged like method bla doesn't support correct return type - TargetInvocationExcaption: Stacktrace in such a case. But I don't know how to log those things. In development mode, yes, then I see any stacktrace like this. But unfortunately there it works and I need to know what goes wrong with the deployed version, and then there is no log at all (even though it says check server log) Is there any way to configure log4j to log those exceptions? On Jan 12, 11:23 pm, SVR svr...@gmail.com wrote: You could catch and throw the same way you would do in any java appln. On Wed, Jan 12, 2011 at 5:16 PM, pete superp...@geekcity.de wrote: Hallo, is there a way to show stacktraces of UnexpectedExceptions after the webapp is deployed? I have logging enabled in general, if I manually use my logger, like LOG.debug(blah), I can see my logs... If RPC fails, I just get an unexpected exception saying the call failed on the server, see server logs for details, however, there is no stacktrace or exception logging anywhere, not even in System.out, etc. How can I enable this? Or where does GWT save those server logs mentioned? Is it possible to configure log4j to log those exceptions? Help would really be appreciated, since googling hasn't really shown up anything I could use... Regards, Peter -- You received 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 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@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 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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,
Re: is it possible to develop custom reusable widgets using UiBinder ?
I don't think there is any advantage to having everything in a single file. In fact it sort of goes against the grain of Java development if you think about it. At least that's the way I see it. Besides, complex composites might use composition, using other widgets and composits. Surely these can't be all in the same file also. Regarding MVP, no, I don't really use it but I do use parts of its supporting infrastructure such as GWTEvents, the SimpleEventBus, etc. I also pay close attention to widget lifecycles which is critical to successful implementations of widgets that get attached, detached and reattached and so on and so on. I guess I just haven't been won over by MVP yet. I find most of the MVP frameworks I've looked at quite verbose and way too complex for something that needn't be. Most of what I have seen seems to be code that should really be hidden deep in the bowels of a framework's internal packaging and not exposed as a public api. I want to write applications and right now I just don't see how MVP can make that any easier for me. Jeff On Fri, Jan 14, 2011 at 12:07 AM, zixzigma zixzi...@gmail.com wrote: I was thinking pure Java code might have been better, because everything would be encapsulated in single file, and properties can be set programmatically. when developing re-usable components with UiBinder, do you find yourself using MVP ? for example having a - Wdiget Interface - WidgetImpl java code - WidgetImpl.ui.xml uibinder file - and a WidgetPresenter ? -- You received 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. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: is it possible to develop custom reusable widgets using UiBinder ?
Thank you very much for sharing your experience. on this comment, I also pay close attention to widget lifecycles which is critical to successful implementations of widgets that get attached, detached and reattached and so on and so on. why widget lifecycle is important ? why is it important when they are attached/detached ? and how can you monitor it ? (logging your java code or viewing resulting html markup gwt creates ?) how can you tell in what state a widget is: attached/detached ? what are the states ? only attached and detached ? Thank You -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No handlers matched this URL / The requested URL was not found on this server.
I've been working on a simple project to learn GWT/GAE using the eclipse 3.6 plugin. Everything was working, then my computer went down, and when I restored the project I started getting this error: The requested URL code/project/query/code was not found on this server. The log shows the message No handlers matched this URL. I have the @RemoteServiceRelativePath in the Service.java file set the same as before as well as the web.xml file. I've been searching this group and several other site, and haven't been able to find an answer. Has anyone run into this issue before? Am I missing something I should edit in a different file? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.