Including a .jar working in Tomcat but no in builtin Jetty
Hi everyone, I'm using Mongodb + GWT RPC. I'm getting a NoClassDefFoundError error when in Hosted jetty server. But when I compile the app and place it on my tomcat server it works (I copy-paste the.war/ content). As advised in the GWT doc I did the folowing config : - I copied the mongo.jar in my WEB-INF/lib - I added it in the java build path - jars On a side note, I'm using the reload server everytime I make changes to my server side code. Am I missing something ? Please tell me if I shall give more details on my problem if its not clear enough. Many thanks everyone, Ludovit -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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\GAE With Java Video Course Need Urgently
Hi, check these links. There are some good video tutorials out there. http://www.rushstart.net/google-web-toolkit.html On Jan 11, 4:37 pm, Mohamed El Shall mohamed.s.elshall2...@gmail.com wrote: Hi : am Really in a bad need of GWT\GAE with Java Video Course Links So please if any one could even help i would be so grateful for him/her and thanks previously for every thing :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Getting CellBrowser width, (re)position and re-size panel
CellBrowser is a RequiresResize panel (see http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html ), it doesn't have an intrinsic size and grow with its content; instead it should be given explicit dimensions (possibly automatically by a ProvidesResize parent widget) and it fits its content inside the given area. In your case, it means either not using CellBrowser, or accepting that it has a fixed size. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-iQIvIxNZMgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Hyperlink with PlaceHistoryMapper
If I were you, I'd use the PlaceHistoryMapper to build the token out of the target Place; and I would even use an Anchor with ClickHandler and PlaceController.goTo instead of an Hyperlink. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/hjb3wrZI7mMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: UI handling doubt in MVP
On Friday, January 13, 2012 9:05:22 AM UTC+1, Qrunk wrote: Hi , Im a bit confused as in what does UI handling is meant in http://code.google.com/webtoolkit/articles/mvp-architecture.html, which is to be handled by the presenter. First: skip directly to the part 2 article. Say I have a case where when I change my combo box , I want a UI widget(Text Box ) to be disabled. Now here there are two things: 1. I have to check through the data which I clicked inside the combo Box, which I believe should make my event to be handled by the presenter as my UI shouldn't be aware of my data part(Models) my UI shouldn't be aware of my data part is an anti-pattern; it implies too much abstractions, and leads to over-engineered and hard to maintain code. 2. As i want to make an UI related change in my page, this event should be handled by the View class. Because it's related to your presentation logic, it should go through to the presenter. interface Presenter { void onSelectedXxxChanged(Xxx selectedItem); } interface View { void setYyyEnabled(boolean enabled); } Then in your presenter: @Override public void onSelectedXxxChanged(Xxx selectedItem) { boolean enabled = shouldEnableYyy(selectedItem); // your logic view.setYyyEnabled(enabled); } And in your view: @UiField ValueListBoxXxx combo; @UiFied TextBox yyy; @UiHandler('combo) void onComboValueChanged(ValueChangeEventXxx event) { presenter.onSelectedXxxChanged(event.getValue()); } @Override public void setYyyEnabled(boolean enabled) { yyy.setEnabled(enabled); } Please let me know where and how should I delegate the event to event handlers on selection of the combo box item. Should it be handled within Presenter, which cant happen because the presenter doesn't has any knowledge of the View component(in our case the Text Box that is to be disabled) or it should be handled within the View class, but this shouldn't happen as the View should be unaware of the Data part.and want some inputs on Request factory also http://tbroyer.posterous.com/gwt-211-requestfactory-part-ii Whether you use RF or not doesn't change anything (using the Editor framework though blurs the line between presenter and view). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8pmXcn2aXWYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 GWT Window Builder plugin (Eclipse)
Hi, I have some problem with GWT WindowBuilder that I have published the details through Stackoverflow: http://stackoverflow.com/q/8836214/785349 Cheers. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable height shrinks upon paging
I agree. I think the number of rows should stay the same and when needed, set the left over cells to empty. Unfortunately, they probably had a good reason to remove the rows instead. I'm guessing rendering is faster the way it is now. On Jan 13, 11:06 am, Raziel raziel...@gmail.com wrote: The behaviour of a CellTable when paging is to show the loading indicator (nothing if no indicator is configured) and then fill the new retrieved data. Whereas this sounds reasonably correct, I find it to be a problem the fact that the grid will momentarily shrink in height to accommodate only the loading indicator (or all the way up to the header if there's no indicator set). I understand it is a feature of this grid to take as much space as it is required by its content. However, I think the better behaviour would for the height not to resize while showing the loading indicator (if that's at all possible), or at least that when we turn off the indicator - setLoadingIndicator(null) - the current page is not wiped out but right before replacing it with the new data. The latter would prevent that momentary flickering when paging, just like you can see the grid behave in the GWT Showcase:http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable Note that the Showcase doesn't present that flickering because the data is hardcoded in the provider (i.e. it's not asynchronously fetched). I've debugged and taken a look at the underlying implementation and it's not that easy to follow. I see there are a few loading states (loaded, loading, partially loaded), but not exactly sure about how to modify the logic to achieve what I want without breaking something else. So I'm wondering if somebody can give me some pointers about how to go ahead and extend the CellTable to make it work the way I describe (at least setting the indicator to null to indicate that the current page will be removed when the new one is passed). Also, does anybody know if this feature would be added soon to the celltable? I cannot imagine that this flickering is a desired effect, hence I'm also wondering if I should log a ticket? 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.
How to handel Day Light Saving in GWT2.0
Hi, Can any one have word of wisdom on this. My case is like ..I am saving user DOB in PST format, I need to show the DOB in requested client timezone. Can I converse it in serverside ,does the Http request gives the locale based on the client location or it only it gives default locale as per the prefered language set.Like if it is english ? Or i have to explicitly define a js variable and send the offset to server and compare there. Appreciate any enlightenment on this. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Create local application?
Hi, is it possible to create a local application which does not need any server or anything, so i have just a simple javascript/html/file combination that i can give to someboy and it works? I tried to compile the gwt sample application and tried to just open the .html file in the war folder, but the button is not shown. Thank you 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.
Create local application?
Files loaded from the file system are treated as different origins, so communication between the host page and the *.cache.html does work. Try with the xsiframe linker. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/3LXg600dsvoJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Including a .jar working in Tomcat but no in builtin Jetty
Here's an update : I just tested a random .jar and it works fine. So I guess that there my problem is something more then including correctly the mongo.jar (which I guess is included correcly). Just to be sure here is the signle line of code that throws the error and the error it self : Mongo m = new Mongo(); SEVERE: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String com.lma.test.client.GreetingService.greetServer(java.lang.String) throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.NoClassDefFoundError: java.net.InetSocketAddress is a restricted class. Please see the Google App Engine developer's guide for more details. Many thanks for any hints :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Create local application?
You could also look into AIR or Titanium for more stand alone functionlities. 2012/1/14 Jan janpu...@googlemail.com Hi, is it possible to create a local application which does not need any server or anything, so i have just a simple javascript/html/file combination that i can give to someboy and it works? I tried to compile the gwt sample application and tried to just open the .html file in the war folder, but the button is not shown. Thank you 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. -- GWT API for non Java based platforms http://www.emitrom.com/ http://code.google.com/p/gwt4air/ http://gwt4touch.appspot.com/ http://gwt4flex.appspot.com/ http://gwt4touch.appspot.com/ http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Create local application?
On 1/14/2012 10:52 PM, Jan wrote: Hi, is it possible to create a local application which does not need any server or anything, so i have just a simple javascript/html/file combination that i can give to someboy and it works? I tried to compile the gwt sample application and tried to just open the .html file in the war folder, but the button is not shown. Thank you very much! Hi, you should load the war folder into a servlet container like Tomcat for it to work. If you just need to create something stand-alone you better use JQuery instead. Cheers. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: History onValueChange() not called when application is loaded?
On 1/13/2012 8:48 PM, hbf wrote: Dear all, I am following the instructions for History management http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html but even though I register my history handler in onModuleLoad(), it does not fire when I load my application with a fragment in the URL. It does fire, however, when I manually change the fragment in the browser URL field. Does anybody have any idea what I might be doing wrong? Thanks, Kaspar This happened to my application before, maybe you can try implementing the interface instead of History.addValueChangeHandler Like this: public class MainEntryPoint implements EntryPoint, ValueChangeHandler { // stuff @Override public void onValueChange(ValueChangeEvent event) { // do your stuff } } Cheers. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Create local application?
I dont see why JQuery should be better then GWT for this case. I ve done some stand alone GWT apps in the past and it works perfect, Like Thomas said try the xframe linker. 2012/1/14 Xybrek xyb...@gmail.com On 1/14/2012 10:52 PM, Jan wrote: Hi, is it possible to create a local application which does not need any server or anything, so i have just a simple javascript/html/file combination that i can give to someboy and it works? I tried to compile the gwt sample application and tried to just open the .html file in the war folder, but the button is not shown. Thank you very much! Hi, you should load the war folder into a servlet container like Tomcat for it to work. If you just need to create something stand-alone you better use JQuery instead. Cheers. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@**googlegroups.comgoogle-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=enhttp://groups.google.com/group/google-web-toolkit?hl=en **. -- GWT API for non Java based platforms http://www.emitrom.com/ http://code.google.com/p/gwt4air/ http://gwt4touch.appspot.com/ http://gwt4flex.appspot.com/ http://gwt4touch.appspot.com/ http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
MVC and Code Splitting
In my application there are many views and controllers, however not all are needed at once, mostly the view that is loaded depends on the URL fragment(s). In what way or pattern a Controller and View be wrapped in a GWT.runAsync so that only controllers and views needed are loaded? I just need to get some ideas on how I will implement this. In my case, I have a home-grown MVC. My application parse the Url fragment and then show() the appropriate view. In which the parameter of the show() function is a key String that will then be used to get the views that are stored in a HashMap. Everything, the Controllers, Models and Views are instantiated during onModuleLoad() Any ideas? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
SplitLayoutPanel and deferred resizing
I've been trying to figure out how to get resize events when the SplitLayoutPanel's splitter is moved. This question has been asked many times before, such as here: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/c069010b007dc9de/4e715fa1b3f28325?lnk=gstq=splitlayoutpanel#4e715fa1b3f28325 and http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2a42a7efb61c9622/14557f3076a2eb16?lnk=gstq=splitlayoutpanel#14557f3076a2eb16 I think the answer may be given here, which states the sizing is deferred: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/972bddc22564228c/f6d821760b78d717?lnk=gstq=splitlayoutpanel#f6d821760b78d717 So, now the question is, how does one handle deferred sizing? Where can one get the resize event (or whatever the equivelant is)? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Including a .jar working in Tomcat but no in builtin Jetty
On Saturday, January 14, 2012 7:05:12 PM UTC+1, Martones wrote: exception: java.lang.NoClassDefFoundError: java.net.InetSocketAddress is a restricted class. Please see the Google App Engine developer's guide for more details. Disable AppEngine for your project. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0B92-UC4B7QJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: MVC and Code Splitting
On Saturday, January 14, 2012 8:12:44 PM UTC+1, Xybrek wrote: In my application there are many views and controllers, however not all are needed at once, mostly the view that is loaded depends on the URL fragment(s). In what way or pattern a Controller and View be wrapped in a GWT.runAsync so that only controllers and views needed are loaded? I just need to get some ideas on how I will implement this. In my case, I have a home-grown MVC. My application parse the Url fragment and then show() the appropriate view. In which the parameter of the show() function is a key String that will then be used to get the views that are stored in a HashMap. Everything, the Controllers, Models and Views are instantiated during onModuleLoad() Any ideas? Start by lazy instantiating your components, then throwing runAsync in will become much easier. If you have interfaces, you could try AsyncProxy instead; but if you want lazy-loading, start by architecturing your app around that pattern. Before: // in onModuleLoad map.put(foo, createFoo()); map.put(bar, createBar()); // then retrieving the objects: return map.get(key); After: //when retrieving the objects Object o = map.get(key); if (o == null) { if (foo.equals(key)) { o = createFoo(); } else if (bar.equals(key)) { o = createBar(); } map.put(key, o); } return o; Adding runAsync would mean changing the getViewFromToken from synchronous to asynchronous, with a RunAsyncCallback as an additional argument. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/aSVUUp_8tRMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 Developer Plugin for Firefox 9
Thanks Alan. On Dec 22 2011, 7:30 pm, Alan Leung acle...@google.com wrote: I have both 32 and 64 bit linux compiled. http://www.mediafire.com/?5tak1zzo6a3yvn0 Still working on mac and windows. -Alan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Including a .jar working in Tomcat but no in builtin Jetty
Hi Thomas, many thanks it works ! Although I got this warning now : Server class 'com.google.gwt.dev.shell.jetty.JDBCUnloader' could not be found in the web app, but was found on the system classpath Which I suppose is not a problem since once my app will be deployed on the server the class will be there. Thanks again ! On 14 jan, 21:04, Thomas Broyer t.bro...@gmail.com wrote: On Saturday, January 14, 2012 7:05:12 PM UTC+1, Martones wrote: exception: java.lang.NoClassDefFoundError: java.net.InetSocketAddress is a restricted class. Please see the Google App Engine developer's guide for more details. Disable AppEngine for your project. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 is Math.Random emulated? and how good is it?
Thanks, I'll try that other one and see if it helps. My Application/Doddle is here: http://www.darkflame.co.uk//Modoodler/Modoodler.html If anyone is interested. Hitting Run Commandsd on the default settings shows the bias. On Jan 11, 3:21 pm, Chi Hoang c...@chi.ca wrote: java.lang.Math.random() calls the native javascript Math.random(). However, java.util.Random implements the random number algorithm specified in the spec for that class - you can try using that if java.lang.Math.random() is not random enough On Jan 11, 6:19 am, Kevin Jordan ke...@kjordan.net wrote: All GWT's emulation does is natively call the javascript Math.random(). On Jan 11, 3:02 am, darkflame darkfl...@gmail.com wrote: I have been playing about drawing fractals in GWT using canvas and the ¨ chaos game¨ method. However when picking large amounts of random numbers I seem to be getting a bias. That is, the randomness doesn't seem evenly distributed. I have read many sources online that say that Javas normal Math.Random() is flawed for this stuff, and some alternatives are offered. However as GWTś Math.Random is merely an emulation, I wondered if it suffered the same flaws or not. Does anyone use alternative methods? This is all rather new too me, so if anyone has any pointers it would be helpfull. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: TabLayoutPanel inside HeaderPanel - tab body doesn't show
I've applied the patch from the code review referenced in comment 3 on issue 7065, and it didn't fix the bug. I verified that the DeckLayoutPanel.onLoad() method implementation added by the patch gets called, but the tab body is still not rendered when the TabLayoutPanel is contained in a HeaderPanel. Even worse, applying the full patch from http://gwt-code-reviews.appspot.com/1601804/ (which also changes Layout/LayoutImpl/LayoutImplIE6) causes IE7 to render a blank page - using dev tools to inspect the DOM shows that the elements are there but with size 0x0. I very well might be doing something wrong (this is my first time building GWT from source) but it doesn't look like the patch addresses the issue. JLS On Jan 4, 5:14 am, Thomas Broyer t.bro...@gmail.com wrote: Seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=7065 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 RequestFactory ValidationTool must be run for the RequestFactory type
I'm still stuck on this. Some projects I've ported to 2.4 now work, but others still just won't budge. I have tried all the additional steps, but my *DeobfuscatorBuilder.java just won't appear in those projects (event thought the .apt_generated folder does, and is replaced if I change the name). I have noticed some (though not all) of those projects are now giving me the error build.properties does not exist, which may or may not be related. I'm frustrated to the point I'm considering ditching GWT altogether; I haven't been able to proceed with any GWT development since the 2.4 upgrade. Like the man said, I'm good, really I am, but I just can't figure this one out, and it really shouldn't be this hard. Thanks for the breaking change. Evan On Dec 14 2011, 12:12 pm, dparish dpar...@gmail.com wrote: I had the same problem. There are two other possible reasons you see this: 1. Your java compliance level in the project is set to 1.5 2. Your classes are already compiled. I don't know why, but touching the my RequestContext classes had NO affect until I deleted the classes that were compiled before I added annotations. Now it all works just fine. Attention Google: This stuff is w tooo complicated. I'm good. really I am, but this is just misdirection at it's worst. On Nov 20, 5:47 pm, oerten25 ozgur.er...@gmail.com wrote: I've been getting the same error and tried the things mentioned in the discussion without any luck. Finally i realised that i don't have the apt_generated folder. So i changed the generated source directory option to something other than apt_generated in Annotation Processing setting. That fixed it. On Oct 2, 11:29 pm, TULC evan.a.te...@gmail.com wrote: I just get the sameerroras posted by Eric at the beginning of the thread, but I have copied/pasted the full dump below. Thomas, I'm not sure what you mean about the .apt_generated being in my build path? Thanks for the help, guys... Evan Console: log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.Js pRuntimeContext). log4j:WARN Please initialize the log4j system properly. log4j:WARN Seehttp://logging.apache.org/log4j/1.2/faq.html#noconfig for more in fo. 03/10/2011 8:24:49 AM com.google.web.bindery.requestfactory.server.RequestFactor yServlet doPost SEVERE: Unexpectederror java.lang.RuntimeException: TheRequestFactoryValidationToolmustberunfor th e com.google.gwt.sample.dynatablerf.shared.DynaTableRequestFactory RequestFactor y type at com.google.web.bindery.requestfactory.vm.impl.Deobfuscator $Builder.load(Deob fuscator.java:59) at com.google.web.bindery.requestfactory.server.ResolverServiceLayer.updateDeo b fuscator(ResolverServiceLayer.java:43) at com.google.web.bindery.requestfactory.server.ResolverServiceLayer.resolveRe q uestFactory(ResolverServiceLayer.java:176) at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveR e questFactory(ServiceLayerDecorator.java:172) at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveR e questFactory(ServiceLayerDecorator.java:172) at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveR e questFactory(ServiceLayerDecorator.java:172) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l .java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.web.bindery.requestfactory.server.ServiceLayerCache.getOrCache(S e rviceLayerCache.java:233) at com.google.web.bindery.requestfactory.server.ServiceLayerCache.resolveReque s tFactory(ServiceLayerCache.java:198) at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process ( SimpleRequestProcessor.java:207) at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process ( SimpleRequestProcessor.java:127) at com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(R e questFactoryServlet.java:133) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler .java:1097) at com.google.gwt.sample.dynatablerf.server.SchoolCalendarService.doFilter(Sch o olCalendarService.java:89) at org.mortbay.jetty.servlet.ServletHandler
Using Background Images in CSS with sprite
Hi there, I'm a GWT Beginner and started a simple GWT project using the Eclipse GWT Plugin / GWTP setup. My first goal is to create a page with a basic design. I want to include teasertext_bg.png in to the CSS in MainView.ui.xml. But somehow it doesn't work. Can somebody tell me what I'm doing wrong? GWT Version is: 2.4.0 Resources.java public interface Resources extends ClientBundle { @Source(logo.png) public ImageResource logo(); @Source(teasertext_bg.png) @ImageOptions(repeatStyle=RepeatStyle.Horizontal) public ImageResource teasertext_bg(); @Source(main.css) Style style(); public interface Style extends CssResource { String branding_2(); } } MainView.ui.xml !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat' ui:generateKeys='com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator' ui:generateLocales='default' ui:with type=com.acolsolutions.gwt.homepage.client.place.NameTokens field=nameTokens / ui:with field='res' type='com.acolsolutions.gwt.homepage.client.resources.Resources' / ui:style /* MAIN CONTAINER */ .main { width: 710px; margin: 0 auto; position: relative; } .branding { margin-top: 5px; margin-bottom: 10px; border-bottom: 1px dotted gray; margin-bottom: 10px; } @sprite .branding_2 { background: #273262; gwt-image: teasertext_bg; color: white; padding: 7px 20px 5px 20px; margin: 0 0 1px 0; border-top-right-radius: 10px; border-top-left-radius: 10px; } .branding blockquote { font-weight: bold; } /ui:style g:HTMLPanel addStyleNames={style.main} g:HTMLPanel addStyleNames={style.branding} g:Image resource='{res.logo}'/ /g:HTMLPanel g:HTMLPanel addStyleNames={Resources.style.branding_2} blockquotepIT Beratung/p/blockquote /g:HTMLPanel g:SimplePanel ui:field=pageContent /g:SimplePanel /g:HTMLPanel /ui:UiBinder Thanks, Chris -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 Developer Plugin for Firefox 9
Download works fine for me, it's just a normal mediafire dl so I'm not sure what problem everyone is having. Maybe turn off various ad/script blockers and try again? Download page after refresh should look something like this: http://dl.dropbox.com/u/28001/gwt-mf.png On Jan 13, 8:51 am, WileE tomc...@gmail.com wrote: I'm having the same problem. What's the trick to get this thing? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
AssertionError running in dev mode with -noserver in Tomcat
When I try to start my server I get an assertion error from GWT 2.4.0 (and JDK 6_30): Caused by: java.lang.AssertionError at com.google.gwt.dev.resource.impl.PathPrefixSet.assertValidAbstractResourcePathName(PathPrefixSet.java: 292) at com.google.gwt.dev.resource.impl.PathPrefixSet.includesResource(PathPrefixSet.java: 239) at com.google.gwt.dev.resource.impl.ZipFileClassPathEntry.computeApplicableResources(ZipFileClassPathEntry.java: 188) at com.google.gwt.dev.resource.impl.ZipFileClassPathEntry.findApplicableResources(ZipFileClassPathEntry.java: 128) at com.google.gwt.dev.resource.impl.ClassPathEntry.findApplicableResources(ClassPathEntry.java: 54) at com.google.gwt.dev.resource.impl.ResourceOracleImpl.refresh(ResourceOracleImpl.java: 264) at com.google.gwt.dev.cfg.ModuleDef.doRefresh(ModuleDef.java:572) at com.google.gwt.dev.cfg.ModuleDef.getAllPublicFiles(ModuleDef.java:332) at com.google.gwt.core.ext.linker.impl.StandardLinkerContext.getArtifactsForPublicResources(StandardLinkerContext.java: 246) at com.google.gwt.dev.DevModeBase.link(DevModeBase.java:974) at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:396) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1094) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811) at com.google.gwt.dev.DevMode.main(DevMode.java:311) I have things working great in production mode. And if I turn off assertions, everything comes up and works fine. However, for dev testing, I need assertions on. My configuration: running it: com.google.gwt.dev.DevMode -logLevel SPAM -war tomcat/ webapps/foo -logdir logs -noserver -startupUrl https://localhost:8443/settings/foo.html com.foo.web.core.WebCore Tomcat: 6.0.35 com.foo.web.core.WebCore.gwt.xml: ?xml version=1.0 encoding=UTF-8? !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 1.6.4// EN http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro- source/core/src/gwt-module.dtd module rename-to='WebCore' !-- Inherit the core Web Toolkit stuff.-- inherits name='com.google.gwt.user.User'/ inherits name='com.foo.basegwt.BaseGWT'/ source path=client/ source path=shared/ !-- Specify the app entry point class. -- entry-point class='com.foo.web.core.client.CoreUI'/ /module BaseGWT.gwt.xml: ?xml version=1.0 encoding=UTF-8? !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 1.6.4// EN http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro- source/core/src/gwt-module.dtd module rename-to='BaseGWT' !-- Inherit the core Web Toolkit stuff.-- inherits name='com.google.gwt.user.User'/ /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.
Problem creating Editor
Hello, I´m trying to create a simple app using editors and requestfactory, but when I try to declare for the first time the editor (articuloEditor = new ArticuloEditor();) I get the following error: [ERROR] [tecmovin] - Line 48: No source code is available for type com.test.tecmovin.widgets.ArticuloEditor; did you forget to inherit a required module? The import import com.test.tecmovin.widgets.ArticuloEditor; is on the class that calls the editor. Any Help? I'm relying on the DynaTableRF Sample code. Here is the code for the Editor: public class ArticuloEditor extends Composite implements EditorArticuloProxy { interface Binder extends UiBinderWidget, ArticuloEditor { } public ArticuloEditor() { initWidget(GWT.Binder create(Binder.class).createAndBindUi(this)); } @UiField ValueBoxEditorDecoratorString id; @UiField ValueBoxEditorDecoratorString titulo; @UiField ValueBoxEditorDecoratorString autor; } !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui xmlns:e='urn:import:com.google.gwt.editor.ui.client' ui:style .important { font-weight: bold; } .editField { display: inline; width: fieldWidth; } .rightAlign { text-align: right; } /ui:style g:HTMLPanel div class={style.rightAlign} ID: e:ValueBoxEditorDecorator ui:field=id stylePrimaryName={style.editField} e:valuebox g:TextBox stylePrimaryName={style.editField} / /e:valuebox /e:ValueBoxEditorDecorator br / AUTOR: e:ValueBoxEditorDecorator ui:field=autor stylePrimaryName={style.editField} e:valuebox g:TextBox stylePrimaryName={style.editField} / /e:valuebox /e:ValueBoxEditorDecorator br / TITULO: e:ValueBoxEditorDecorator ui:field=titulo stylePrimaryName={style.editField} e:valuebox g:TextArea stylePrimaryName={style.editField} / /e:valuebox /e:ValueBoxEditorDecorator br / /div /g:HTMLPanel /ui:UiBinder And the code for the class that creates and calls the editor: public class PersonEditorWorkflow { interface Binder extends UiBinderDialogBox, PersonEditorWorkflow { Binder BINDER = GWT.create(Binder.class); } interface Driver extends RequestFactoryEditorDriverArticuloProxy, ArticuloEditor { } @UiField HTMLPanel contents; @UiField DialogBox dialog; @UiField(provided = true) ArticuloEditor articuloEditor; private Driver editorDriver; private ArticuloProxy articulo; private TestRequestFactory requestFactory; public PersonEditorWorkflow(TestRequestFactory requestFactory, ArticuloProxy articulo) { this.requestFactory=requestFactory; this.articulo=articulo; articuloEditor = new ArticuloEditor(); //HERE IS THE ERROR Binder.BINDER.createAndBindUi(this); } . . . . .. } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: UI handling doubt in MVP
thanks for the prompt replies . I think I got the perfect answers -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/OBx_8uKSmc4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: UI handling doubt in MVP
Hi, Using the Editor framework though blurs the line between presenter and view Can you please elaborate this and would be very useful if you do that using an example. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/R-vhs0sBxYsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.