GWT 2.1 Visual Themes
Hello, is there any recommended way how to build a new GWT Visual Theme based on ClientBundle and CssResource? According to 'Developer's Guide - CSS Style' using 'Including Style sheets in the Module XML file' is now deprecated. The current visual themes for example com.google.gwt.user.theme.standard.Standard are using style sheet reference in module xml file. CssResource based styling is used only for cellview widgets and NotificationMole widget. So in order to build a new visual theme I have to prepare 'deprecated' style module to cover 'old' style widget and prepare set of CssResource interfaces for all 'new' style widgets. Is that correct? It seems a bit inconsistent from my point of view. Is there any vision or roadmap for that, e.g. all widgets will be rewritten to support CssResource or it will stay as is now.. I have a little problem too with CssResource based styling, especially generated class names. An external contractor given the application to prepare a new theme is forced to generate css file, which requires additional conversion from generated to real class names to incorporate it back to the project. I would like to hear your opinion on that. Regards LH -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
SLF4J with GWT dev mode not works?
I am using Spring 3.0.5 with SLF4J. Spring is loaded in the web.xml that is picked up when starting dev mode. Spring then complains that it can't find SLF4J: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory When putting the SLF4J in the WEB-INF/lib folder, it all works well. Other people on the net experience the same. For example: http://forum.springsource.org/showthread.php?t=85121 Strange, as when I use LOG4J, I don't need to do that, and it all works well. Why do I need to put the SLF4J jar in the WEB-INF/lib dir? and why nog LOG4J? I am using maven to manage my dependencies so I don't want to put my dependencies on two places :(... Besides my SLF4J in the lib, the lib is empty. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SLF4J with GWT dev mode not works?
Just noticed that it has a related issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=3496 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: mvn plugin
Stefan, If you add the plugin to your plugin list in the pom, than gwt:compile is automatically added in the phase compile and therefor run upon mvn install. build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId version2.1-20101001.MGWT219/version ... Op 28-11-10 15:25, Stefan Bachert schreef: Hi, I am about to switch to maven. Using gwt-maven-plugin.1.3.2 It looks strange to me that the goal install does not include a gwt:compile. Has someone any idea why? Stefan Bachert http://gwtworld.de -- With kind regards, Geoffrey De Smet -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problem showing NotificationMole
I am trying to use com.google.gwt.user.client.ui.NotificationMole inside a FlowPanel: g:FlowPanel ui:field=layoutContainer styleName={style.layoutContainer} g:FlowPanel ui:field=glassPanel styleName={style.glassPanel} g:FlowPanel g:NotificationMole ui:field=notifier animationDuration=0 message=This is a Notification/g:NotificationMole /g:FlowPanel /g:FlowPanel g:FlowPanel ui:field=contentPanel/g:FlowPanel /g:FlowPanel In my java: public void showNotification(String msgToDisplay){ showGlass(); GWT.log(Showing notifier); notifier.show(first: +msgToDisplay); } However cannot see the mole appear. I can see the divs inserted for the mole... but their properties seem not set (display:none and width:0px) to show. div class=GCVVHNDIH style=display: block; background-color: rgb(0, 0, 0); opacity: 0.25; width: 100%; height: 408px; div div class=GCVVHNDMH div class=GCVVHNDLH style=width: 0px; display: none; div span class=GCVVHNDNHfirst: Making the RPC Call... / span /div /div/div/div/div Am I missing something here?? Regards, Nirmal -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
TabLayoutPanel does not listen to width
Hi all, I'm using a tabLayoutPanel with three tabs. However, the total width is now dynamicly created by the width of the content of the current tab. But, my first and second tabs are not that wide, so the third tab always hangs a bit outside of the tab. How can I set the width of the TabLayoutPanel? I tried several things, but I can't seem to set the width. tabLayoutPanel.setWidth(700px); tabLayoutPanel.setSize(700px, 500px); tabLayoutPanel.setPixelSize(700, 500); with and without tabLayoutPanel.onResize(); uibinder file: g:FlowPanel g:TabLayoutPanel ui:field=tabLayoutPanel barHeight=50 height=600px /g:TabLayoutPanel g:Button ui:field=buttonAdd text={i18n.save} / /g:FlowPanel I'm adding the tabs in java code after binding. tabGeneral = new FlexTable(); . tabLayoutPanel.add(tabGeneral, i18nGeneral.name()); I really like GWT a lot, but I must say that the ui pieces are really quite bad. You can't use certain widgets because it's standard mode (or not) without warnings, setting sizes and other basic stuff doesn't always work, examples often work in java code but not in the uibinder, etc. It would be nice if the widgets themselves were better. It feels like temporary broken, or just beta sourcecode. If you can make such a good java2javascript compiler, why not create proper widgets as well? Thanks! Niels -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem showing NotificationMole
I can make the mole appear by manually setting the properties: public void showNotification(String msgToDisplay){ showGlass(); notifier.show(first: +msgToDisplay); notifier.getElement().getFirstChildElement().getStyle().setDisplay(Display.BLOCK); notifier.getElement().getFirstChildElement().getStyle().setWidth(200, Unit.PX); } But this is what the notificationMole.show() should be doing??? Regards, Nirmal -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help me to get rid of these d... scrollbars!!! :-/
Well, let me add a note, maybe it is of relevance: I center the right panel by setting its margins: I compute the difference between the root panel's width/height and the panel's width/ height and set the margins accordingly. So the whole thing (panel including margins) is as big as the whole browser window. Could this be the reason, e. g. when there is a +/-1 inexactness? Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1 Activities – nesting? YAGNI ? - an exa mple of where you NEED it !
On 30 nov, 06:28, zixzigma zixzi...@gmail.com wrote: Thank you for your comments. So you would have one main activity for each major area with one view and could have multiple widgets that accomplish what your individual activities could? I had thought about this, but my concern is by doing so, we lose the navigation/history/bookmarking. in the case of West Region having West North, West Main and West South, lets say we place three widgets in the West Region, and treat the entire region as a single activity, when we click an item in one of the regions (West Main for example), selection of an item fires an event on eventBus, the widget in West South is listening for this event, and upon receiving, populates itself with contextual data related to item selected in West Main, however since we are not using activities and places, the history token doesnt get updated, and we lose the history which results in poor/broken navigation. more over, since we are not using Activities/Places for these sub- regions (west_north, west_main, west_south), we can not use placeController.go(new place), for communicating events, and have to resort to manually creating event handling (GwtEvent, etc) navigation != business event. If you want navigation, then use places, and in your activitymapper for the west display region, then return a new activity (with the same 3 widgets, just different data on them). Or if you think it could be too resource-consuming (e.g. could lead to many RPC requests just to show the very same information as before, in the sub-regions that didn't change) then you could keep a reference on the current activity (in the activitymapper) and update it with the new place. But for side regions, I wonder why you want it to be part of navigation... when there's a main region, navigation generally is tied to this region, and the rest is either contextual to the main region (i.e. determined by the place) or tied by business events exchanged between the components (or a mix of both). What about apps with multiple panels in the same window whose state should all be saved together in a single URL? GWT 2.1 does not attempt to provide a generic implementation of a composite Place; however, your app could create a CompositePlace, CompositeActivity, and CompositePlace.Tokenizer classes that delegate to the constituent members. In this case, only the composite objects would need to be registered with your app's ActivityMapper and PlaceHistoryMapper. do you have any idea on CompositePlace , its relation to Composite Activity, and how we can map a Composite Place to its corresponding Activities ? Having briefly talked about it with Ray Ryan, the idea is to split the history token in several parts that you then detokenize as if they were inidividual places. The CompositePlace would then (to be generic, adapt to your own needs) model an array of places. I for one don't buy this idea; I haven't yet met an app where I'm not doing something or looking at something, and that's the definition of a place. I'm not looking at something on the left and doing something totally unrelated on the right (that's what a 'composite place' would model). That being said, I'm not working at Google, and I'm not a UX expert; so please consider that as my very own opinion. Yours might of course be different. (and activities and places don't aim at addressing every use case, only the ones that make 90% or more of web apps) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1 Activities – nesting? YAGNI ? - an exa mple of where you NEED it !
On 29 nov, 23:44, zixzigma zixzi...@gmail.com wrote: the article also argued, that having the same size/fixed regions leads to consistent layout. in the case of Fixed WIDTH, that is true. but if your regions have sub-regions, the sizing is no longer the Width, but rather the HEIGHT. our WEST region, can have WEST_NORTH, WEST_MAIN, WEST_SOUTH, and the HEIGHT of these sub-regions might required to be different in different workspaces. in one workspace, WEST_NORTH height could be 100px, while WEST_SOUTH height is 300px, in another workspace, different Height size. having different heights, while maintaining the same width, is STILL CONSISTENT. with the approach suggested in the article posted above, one has to add additional West Regions, to accommodate for the use case described above, resulting in ActivityManagers/Mappers/Code size to grow exponentially ! Your regions are not required to have a fixed size, you're not required to use layout panels either. How about using SimplePanel widgets inside a FlowPanel, without specifying explicit sizes? That would work too. In your case though, I'd probably go with either: - Ashton's proposal - make each workspace it's own GWT app (if they're sufficiently different to deserve it) Or: - do not use activities (you can still use places if you like) - use activities but make your own activity manager (or whatever) to break the limitations and og beyond what's possible with the stock implementations; maybe try to use a main activitymanager to switch between workspaces, and then a set of activitymanager/mapper/regions within each workspace. There are many possibilities, and there are no one-size-fits-all. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help me to get rid of these d... scrollbars!!! :-/
Using the developer tools that come with IE allows you to see what the actual sizes are of each DOM element. When I need to center an element I apply the following css to its containing element: margin-left:auto; margin-right:auto; The above will center its content without having to calculate margin sizes. Jeff On Tue, Nov 30, 2010 at 6:43 AM, Magnus alpineblas...@googlemail.comwrote: Well, let me add a note, maybe it is of relevance: I center the right panel by setting its margins: I compute the difference between the root panel's width/height and the panel's width/ height and set the margins accordingly. So the whole thing (panel including margins) is as big as the whole browser window. Could this be the reason, e. g. when there is a +/-1 inexactness? Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Opening a new Window with a Widget in GWT
I've been wondering the same thing ... though it certainly seems like the accepted practice is to use the PopupPanel and DialogPanel. In fact, I can't remember seeing a GWT application that used more than one browser instance or tab. In theory, you can style the GWT panels to look more like separate windows, but the way they're implemented, you can't drag them off the main window (which can be confusing to a user). smoyer On Nov 12, 5:05 pm, trippledes majid_amman_la...@hotmail.com wrote: Hi all, Before you start shooting me down i have checked for answers and i have googled till my fingers bled but i havent been able to find a simple, concise answer. So im asking again for all those that might have this problem. Question: how to open a new window with a formpanel in side. Context: i have an app that lists lots of items, i want someone to edit an entry, i want a new window to open so they can edit properties then hit save. A standard thing you find in a lot of applications. Architecture: I have one client module called UI, it has a dozen classes that draw widgets and fill a main area when selected from a menu. I have a single html page called UI.html which has the tag in the head. Thats it. Options Ive Seen 1. Call Window.Open() but you need to define a html file. I dont have one. I can create an empty one but how do you inject a widget in to it ? 2. use jsni $wnd to create a new window and get a reference to it. But how do i inject a form panel into it ?? 3. use a popuppanel/dialog panel. They look sucky - plus if opening a window through JS is quite simple i would expect it to be in gwt. Maybe im miss understanding how to use GWT i dont know. Any help would be appreciated even if its to correct my application/ thinking of GWT Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ServiceLayer API and SimpleRequestProcessor Issue
On 29 nov, 18:36, Eugene Goncharov eugene.goncha...@teamdev.com wrote: Dear Team, I'm working on the project right now that is based on the Google technologies stack(GWT, Guice, Google App Engine). My team and I wanted to make the overall project structure in domain-driven design style, so after the latest changes to GWT(the ones that currently in trunk version) I've started to implement our custom ServiceLayer in order to use repositories injected by Guice for the persistence layer. In that custom ServiceLayer implementation I was hoping to be able to avoid static finder methods for persistent entities. Everything goes fine with implementation of ServiceLayer API. BUT I've got a problem with SimpleRequestProcessor and its decodeInvocationArguments method. SimpleRequestProcessor still believes that all Request methods should be static and it causes a java.lang.NullPointerException [...] The question is what is the right way to implement non-static Request methods for persistent entities (like findProject(id))? Maybe you can consider providing some kind of API to switch the RequestProcessor instance? See http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_1_1 and, more specifically, http://code.google.com/p/google-web-toolkit/issues/detail?id=5680 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Large scale application development and MVP tutorial / no Places or Activities
I've used the articles Large scale application development and MVP I and II to model our MVP application. I notice that these tutorials don't use either of the Place or Activity classes made available by GWT. I'm wondering why this is. Does anyone know? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Requestfactory: server side request are static...
On 29 nov, 01:23, Simon Majou si...@majou.org wrote: I think it would be better to move the requests out of the entity in their own class and annotate them just like for the proxy (something like @requestsFor(Entity.class)). Would it be possible? See http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_1_1 and, more specifically, http://code.google.com/p/google-web-toolkit/issues/detail?id=5680 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Simple question about GWT.create() signature
On 29 nov, 10:55, ep eplisc...@googlemail.com wrote: Thomas, in fact it would be really nice if GWT.create() would not require literals, we wanted to use a template method throughout our framework to allow to declare the classes to instantiate, maybe you can provide the issue number so we can vote for it :-) There are many issues re. changing GWT.create specifics. Here are a few: http://code.google.com/p/google-web-toolkit/issues/list?q=gwt.create+literal (and follow the links within the issues themselves!) See also: http://timepedia.blogspot.com/2009/03/relaxing-constraints-on-gwtcreate.html (Ray Cromwell is now working at Google, on GWT) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Deprecated HandlerManager and svn 2.1 branch question
On 29 nov, 17:09, Andy pula...@gmail.com wrote: I'm updating my little gwt-traction library and noticed that it's giving compile warnings when I compile with the 2.1 jar downloaded fromhttp://code.google.com/webtoolkit/download.html I often build from source and looking at the 2.1 branch, it doesn't look deprecated: http://code.google.com/p/google-web-toolkit/source/browse/branches/2 This is the pre-I/O branch. GWT 2.1 is in releases/2.1 (and yes, it's misleading!) Question 1: What svn branch should I build to create the equivalent of the released jars? GWT 2.1.0 is in tags/2.1.0 I understand that HandlerManager is being replaced with SimpleEventBus but there was some discussion in September that it's still OK within Widgets. See herehttp://groups.google.com/group/google-web-toolkit/browse_frm/thread/4... Question 2: Should I just suppress warnings or actually change the HandlerManager in the Viewport code below? http://code.google.com/p/gwt-traction/source/browse/src/com/tractions... If HandlerManager works, you can keep it (as it's still used inside Widget, it's still fully functional). I'd however switch to a SimpleEventBus and see what happens (FYI HandlerManager wraps a SimpleEventBus and adds some behavior specific to handling DOM events, and I think also some things for backwards compatibility) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: .cache.html file size got double after upgrading to GWT 2.1 from 1.7
There's probably something that's not getting pruned by the compiler (dead code eliminated) that was before as a result of modifications you had to make to use 2.1 or perhaps a difference in the compiler in 2.1. I'd use the Story of Your Compile (SOYC) output to check and see what's getting included and see if there's something that's getting sucked in that shouldn't be. On Nov 29, 2:45 pm, Jewel toje...@gmail.com wrote: Hi, We are developing a small application using gwt 1.7.1. The GWT compiler is generating .chache.html file for 6 permutation each one having size around 1 mega bytes. Wen we upgraded the gwt version to 2.1 suddenly we observed that the size of the .cache.html file got increased to 2.8 mega bytes for all the permutations. We are using following libraries, gxt, GwtFacebook, gwt-dnd, gwt-voices, I have searched over this groups but haven't got anyone with same problem. Does anyone have any idea, what the problem can be? We are not getting any clue. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using unchanged CSS class names (no obfuscation or prefixing at all)
I'm probably missing something, but how is this different than using the CssResource.style property in your module's XML and setting the value to pretty? Doing that results in disabling the class name obfuscation. You can also use the @External annotation on individual css classes to do the same if you don't want everything in a CssResource being unobfuscated. On Nov 28, 5:06 am, sinelaw jones.noa...@gmail.com wrote: I've created a patch for CssResources to not change CSS class names at all. Details + motivation are given in the issue here:http://code.google.com/p/google-web-toolkit/issues/detail?id=5659 Also, see at least one case where a developer (other than me) needed such a feature: http://code.google.com/p/google-web-toolkit/issues/detail?id=5659can... Comments welcome, Noam Lewis EntireOne Inc. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Large scale application development and MVP tutorial / no Places or Activities
They introduce the basic concept of MVP approach, but they don't reflect GWT implementation of MVP pattern -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1 Activities – nesting? YAGNI ? - an exa mple of where you NEED it !
Another option would be to look at a 3rd party framework. As Thomas pointed out, the GWT team isn't trying to address every use case, and that's where pulling in other frameworks can help. There's no shame in recognizing that you have a complex use case and using any tools available to help. I haven't tried them, but people often speak favorably about gwt-platform ( http://code.google.com/p/gwt-platform/). Finally, I want to point out that you may not want to affect the history for every interaction in sub-views. It's nice for bookmarking, but would make use of the browser history buttons very frustrating. You may only want to change the history token when the main subject of the activity (the thing typically in the center display) changes. You could always provide a feature to create a reliable link from the current view (like the Google maps Link feature). That might have the same complexity in terms of implementing your view state management, but it's still something to consider for usability. -Brian On Tue, Nov 30, 2010 at 6:57 AM, Thomas Broyer t.bro...@gmail.com wrote: On 29 nov, 23:44, zixzigma zixzi...@gmail.com wrote: the article also argued, that having the same size/fixed regions leads to consistent layout. in the case of Fixed WIDTH, that is true. but if your regions have sub-regions, the sizing is no longer the Width, but rather the HEIGHT. our WEST region, can have WEST_NORTH, WEST_MAIN, WEST_SOUTH, and the HEIGHT of these sub-regions might required to be different in different workspaces. in one workspace, WEST_NORTH height could be 100px, while WEST_SOUTH height is 300px, in another workspace, different Height size. having different heights, while maintaining the same width, is STILL CONSISTENT. with the approach suggested in the article posted above, one has to add additional West Regions, to accommodate for the use case described above, resulting in ActivityManagers/Mappers/Code size to grow exponentially ! Your regions are not required to have a fixed size, you're not required to use layout panels either. How about using SimplePanel widgets inside a FlowPanel, without specifying explicit sizes? That would work too. In your case though, I'd probably go with either: - Ashton's proposal - make each workspace it's own GWT app (if they're sufficiently different to deserve it) Or: - do not use activities (you can still use places if you like) - use activities but make your own activity manager (or whatever) to break the limitations and og beyond what's possible with the stock implementations; maybe try to use a main activitymanager to switch between workspaces, and then a set of activitymanager/mapper/regions within each workspace. There are many possibilities, and there are no one-size-fits-all. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1 Activities – nesting? YAGNI ? - an exa mple of where you NEED it !
I think in the case of the composite activity / composite place, you need to define how closely realted each workspace will be. will there be any overlap between sub/areas of one workspace and a different workspace? You can be careful about how you craft your composite place and how you tokenize it into sections. one section for each area that holds the state. then each sub area widget/activty can cache it's current state and do a really quick check to see if the new section of the composite place for it's area is different from its current state. It would probably take a good deal of organizing a pattern and wrapping your objects in the right way On Nov 30, 6:57 am, Thomas Broyer t.bro...@gmail.com wrote: On 29 nov, 23:44, zixzigma zixzi...@gmail.com wrote: the article also argued, that having the same size/fixed regions leads to consistent layout. in the case of Fixed WIDTH, that is true. but if your regions have sub-regions, the sizing is no longer the Width, but rather the HEIGHT. our WEST region, can have WEST_NORTH, WEST_MAIN, WEST_SOUTH, and the HEIGHT of these sub-regions might required to be different in different workspaces. in one workspace, WEST_NORTH height could be 100px, while WEST_SOUTH height is 300px, in another workspace, different Height size. having different heights, while maintaining the same width, is STILL CONSISTENT. with the approach suggested in the article posted above, one has to add additional West Regions, to accommodate for the use case described above, resulting in ActivityManagers/Mappers/Code size to grow exponentially ! Your regions are not required to have a fixed size, you're not required to use layout panels either. How about using SimplePanel widgets inside a FlowPanel, without specifying explicit sizes? That would work too. In your case though, I'd probably go with either: - Ashton's proposal - make each workspace it's own GWT app (if they're sufficiently different to deserve it) Or: - do not use activities (you can still use places if you like) - use activities but make your own activity manager (or whatever) to break the limitations and og beyond what's possible with the stock implementations; maybe try to use a main activitymanager to switch between workspaces, and then a set of activitymanager/mapper/regions within each workspace. There are many possibilities, and there are no one-size-fits-all. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1 Activities – nesting? YAGNI ? - an exa mple of where you NEED it !
In my opionion if you release a functionality and tell people it's better if you use it, you have to be aware of impacts this new functionality can have on existing code. In my opinion use of DockLayout or TabLayout / Panes is not a rare use case, think about a mail reader. MVP approach is very good, and I think that GWT team did a great job about it, but, given implementation does not consider complex web gui. What I find inacceptable is documentation, the last paragraph, where GWT team says: What about apps with multiple panels in the same window whose state should all be saved together in a single URL? GWT 2.1 does not attempt to provide a generic implementation of a composite Place; however, your app could create a CompositePlace, CompositeActivity, and CompositePlace.Tokenizer classes that delegate to the constituent members. In this case, only the composite objects would need to be registered with your app's ActivityMapper and PlaceHistoryMapper. In my opinion if you speak about CompositePlace you should describe what you are talking about, too easy to say yes, you could create a CompositeActivity, but do it by your own Anyway, I repeat, GWTeam did a great work about MVP and it's very useful having directly inside GWT an pattern implementation for organizing classes about guis, but in my opionion there are a lot of complex gui that difficultly can be migrated to this approach with actual solution -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Child height in SplitLayoutPanel
Hello, I've got a SplitLayoutPanel. In the North cell, I've got a ScrollPanel with a tree on it. I want this ScrollPanel height to be the same of the north cell, so when the tree expand, a scroll appears. The size of this ScrollPanel must changed when the north cell is resized. I've tried with RequireResizes but parent does not send size information... I'm very confused. How to configure SplitLayoutPanel to have cell children resized ? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Starting GWT dev mode within Eclipse causes Maven-managed resources to disappear
On 17 nov, 15:45, Chris crehb...@gmail.com wrote: On Nov 17, 6:03 am, Thomas Broyer t.bro...@gmail.com wrote: Well, if your resources are to be shared with GWT apps only, then how about making a GWT module and putting them in the public path, so the GWT compiler copies them to the output folder? Because we have 5 GWT apps using the same web resources and the point was to avoid duplicating them 5 times in source control. Hence my proposal: use a GWT module with a public folder containing the shared resources, and inherits/ in all of your GWT apps. When compiling a GWT app, everything from the public source will copied to the app output folder (the subfolder in the war folder). It might not be what you wanted though. Or maybe those resources shouldn't be put into that folder to begin with (it has always been the case that the module-name folder is GWT controlled and always cleared by the GWT compiler before it actually generates anything; it might have not always been the case for DevMode but I don't see an issue with DevMode doing the same thing as the compiler). This isn't a GWT compiler issue. Nothing in this folder is generated by the compiler - all that goes to a subdirectory of target/module name. Plus, this didn't happen with previous versions of GPE. It started after upgrading to 1.4.0. I just faced that very same issue, and a coworker too! Eclipse 3.6 SR1 GPE 1.4.0 Maven projects using m2eclipse 0.10.2 with m2eclipse WTP integration. Launching DevMode in -noserver, with src/main/webapp as the war folder, it clears the whole src/main/webapp folder with the exception of the WEB-INF/ folder, and it creates a subfolder where it puts the *.nocache.js, hosted.html and clear.cache.gif. The exact project layout is: - myapp-shared: declares our GWT-RPC interfaces, depends on: - gwt-servlet(scope=provided) for the RemoteService interface - myapp-client: client-only code, depends on: - myapp-shared(scope=provided) for the GWT-RPC interfaces - myapp-shared:sources(scope=provided) so it has access to the Java sources - gwt-user(scope=provided) This is a packagingwar/packaging project, the GWT app is compiled through gwt-maven-plugin at the prepare-package stage (note that because of the packaging and m2eclipse, it happens to be a WTP project, but is not deployed by itself to any server; also, its src/ main/webapp is completely empty) - myapp-server: server-only code, implements the GWT-RPC as RemoteServiceServlet-s, depends on: - myapp-shared, for the GWT-RPC interfaces - gwt-servlet - (several other maven modules) This is a packagingjar/packaging project - myapp: this is the webapp, with packagewar/packaging, depends on - myapp-client(type=war), will be used automatically as an overlay by maven-war-plugin - myapp-server - guice-servlet - (several other maven modules) This is the WTP app that's being deployed (to a Jetty 7.x instance, using the Jetty WTP plugin) I'm launching the myapp-client project as Web Application and selects myapp/src/main/webapp as the war folder (note, myapp, not myapp-client; so that the *.nocache.js is created there, I refresh the folder and WTP automatically publishes the files to the server) Result: the src/main/webapp/myapp is correctly created with the *.nocache.js file, but the rest of src/main/webapp is cleared out, with the exception of src/main/webapp/WEB-INF. it even messes up with SVN, as an svn update (outside Eclipse, I'm not using subclipse) doesn't recover the missing files! As a last resort, you can still use -noserver... As a last resort I can simply copy the resources back into the folder after GPE deletes them and before I load the app in my browser. It just seems broken that GPE is deleting whatever it wants from the build output directory when starting Jetty. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Drag-and-drop solution with GwtQuery
Looks good. I am curious why you made it a plugin for gwtquery? On Nov 29, 8:36 pm, zixzigma zixzi...@gmail.com wrote: WOW this is Fantastic !!! just looked at the demo, CellTable and CellTree are beyond amazing ! THANK YOU !!! i am super excited, going to experiment with the code very soon. Super Great, 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Starting GWT dev mode within Eclipse causes Maven-managed resources to disappear
On 30 nov, 16:42, Thomas Broyer t.bro...@gmail.com wrote: I just faced that very same issue, and a coworker too! Forgot to precise: I'm on Win XP Pro SP3, my coworker is on Ubuntu 10.10; same configuration otherwise (Eclipse, m2eclipse, GPE) Eclipse 3.6 SR1 GPE 1.4.0 Maven projects using m2eclipse 0.10.2 with m2eclipse WTP integration. Launching DevMode in -noserver, with src/main/webapp as the war folder, it clears the whole src/main/webapp folder with the exception of the WEB-INF/ folder, and it creates a subfolder where it puts the *.nocache.js, hosted.html and clear.cache.gif. The exact project layout is: - myapp-shared: declares our GWT-RPC interfaces, depends on: - gwt-servlet(scope=provided) for the RemoteService interface - myapp-client: client-only code, depends on: - myapp-shared(scope=provided) for the GWT-RPC interfaces - myapp-shared:sources(scope=provided) so it has access to the Java sources - gwt-user(scope=provided) This is a packagingwar/packaging project, the GWT app is compiled through gwt-maven-plugin at the prepare-package stage (note that because of the packaging and m2eclipse, it happens to be a WTP project, but is not deployed by itself to any server; also, its src/ main/webapp is completely empty) - myapp-server: server-only code, implements the GWT-RPC as RemoteServiceServlet-s, depends on: - myapp-shared, for the GWT-RPC interfaces - gwt-servlet - (several other maven modules) This is a packagingjar/packaging project - myapp: this is the webapp, with packagewar/packaging, depends on - myapp-client(type=war), will be used automatically as an overlay by maven-war-plugin - myapp-server - guice-servlet - (several other maven modules) This is the WTP app that's being deployed (to a Jetty 7.x instance, using the Jetty WTP plugin) I'm launching the myapp-client project as Web Application and selects myapp/src/main/webapp as the war folder (note, myapp, not myapp-client; so that the *.nocache.js is created there, I refresh the folder and WTP automatically publishes the files to the server) Result: the src/main/webapp/myapp is correctly created with the *.nocache.js file, but the rest of src/main/webapp is cleared out, with the exception of src/main/webapp/WEB-INF. it even messes up with SVN, as an svn update (outside Eclipse, I'm not using subclipse) doesn't recover the missing files! It looks like this only happens if the server is started at the time I launch the DevMode. If it's not, the src/main/webapp/myapp subfolder is correctly created and nothing else is touched (i.e. my index.jsp, myapp.css, etc. are still there in src/main/webapp). I tried using myapp/target/myapp-0.0.1-SNAPSHOT as the war folder for DevMode, but it doesn't work (m2eclipse WTP doesn't seem to publish that folder directly, which is what I expected) (some time passes) ...and now I try back with src/main/webapp as the war folder and it works, with the server started !!! (tried using a full path, and then $ {resource_loc:myapp/src/main/webapp} in the launcher, both work, without deleting anything). And if I stop the server and launch the DevMode, I now have a NullPointerException. I re-start the server, launch the DevMode: exception still there! Restarting Eclipse fixes it. java.lang.RuntimeException: com.google.gwt.dev.shell.remoteui.MessageTransport$RequestException: java.lang.NullPointerException at com.google.gwt.dev.shell.remoteui.ViewerServiceClient.waitForResponseOrThrowUncheckedException(ViewerServiceClient.java: 351) at com.google.gwt.dev.shell.remoteui.ViewerServiceClient.initialize(ViewerServiceClient.java: 256) at com.google.gwt.dev.shell.remoteui.RemoteUI.moduleLoadComplete(RemoteUI.java: 133) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:798) at com.google.gwt.dev.DevMode.main(DevMode.java:282) Caused by: com.google.gwt.dev.shell.remoteui.MessageTransport $RequestException: java.lang.NullPointerException at com.google.gwt.dev.shell.remoteui.MessageTransport.processFailure(MessageTransport.java: 376) at com.google.gwt.dev.shell.remoteui.MessageTransport.processMessage(MessageTransport.java: 401) at com.google.gwt.dev.shell.remoteui.MessageTransport.access $300(MessageTransport.java:44) at com.google.gwt.dev.shell.remoteui.MessageTransport $3.run(MessageTransport.java:314) at java.lang.Thread.run(Thread.java:662) I'm lost. I'm very new to Eclipse WTP (a couple of weeks) and not much less to Maven (5 months), so maybe it's just me; but really, I don't understand why it worked, then deleted everything, then now works again... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options,
Re: Drag-and-drop solution with GwtQuery
First, I started to port the draggable and dropppable plugin of jQuery in GwtQuery. After that, I added an API allowing GWT develloper to have a nice and easy drag and drop solution without know anything about GwtQuery. On Tue, Nov 30, 2010 at 4:51 PM, Paul Stockley pstockl...@gmail.com wrote: Looks good. I am curious why you made it a plugin for gwtquery? On Nov 29, 8:36 pm, zixzigma zixzi...@gmail.com wrote: WOW this is Fantastic !!! just looked at the demo, CellTable and CellTree are beyond amazing ! THANK YOU !!! i am super excited, going to experiment with the code very soon. Super Great, 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel does not listen to width
Yes, the UI widgets are all terrible. Google Closure has much better widgets. On Nov 30, 10:10 am, Baloe nielsba...@gmail.com wrote: Hi all, I'm using a tabLayoutPanel with three tabs. However, the total width is now dynamicly created by the width of the content of the current tab. But, my first and second tabs are not that wide, so the third tab always hangs a bit outside of the tab. How can I set the width of the TabLayoutPanel? I tried several things, but I can't seem to set the width. tabLayoutPanel.setWidth(700px); tabLayoutPanel.setSize(700px, 500px); tabLayoutPanel.setPixelSize(700, 500); with and without tabLayoutPanel.onResize(); uibinder file: g:FlowPanel g:TabLayoutPanel ui:field=tabLayoutPanel barHeight=50 height=600px /g:TabLayoutPanel g:Button ui:field=buttonAdd text={i18n.save} / /g:FlowPanel I'm adding the tabs in java code after binding. tabGeneral = new FlexTable(); . tabLayoutPanel.add(tabGeneral, i18nGeneral.name()); I really like GWT a lot, but I must say that the ui pieces are really quite bad. You can't use certain widgets because it's standard mode (or not) without warnings, setting sizes and other basic stuff doesn't always work, examples often work in java code but not in the uibinder, etc. It would be nice if the widgets themselves were better. It feels like temporary broken, or just beta sourcecode. If you can make such a good java2javascript compiler, why not create proper widgets as well? Thanks! Niels -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Large scale application development and MVP tutorial / no Places or Activities
If you read the API it states that these classes are : Experimental API: This class is still under rapid development, and is very likely to be deleted. Use it at your own risk. On Tue, Nov 30, 2010 at 2:03 PM, cri chuck.irvine...@gmail.com wrote: I've used the articles Large scale application development and MVP I and II to model our MVP application. I notice that these tutorials don't use either of the Place or Activity classes made available by GWT. I'm wondering why this is. Does anyone know? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- John Rellis @johnrellis johnrellis.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
debug in GWT 1.5 in Eclipse
Hi All, I am using GWT 1.5 in eclipse galileo and Ant.But I can not debug gwt widget.Please help me. Thanks, Biswajit -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
What is user agent for google crome
Hi I added google crome plug-in for ie6, what is user agent for crome -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT + MySQL
I am having the same issue.. I am using MySQL on the server side (server source package only) and there is the run-time error of: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver I do have the mysql package (mysql-connector-java.jar) in the eclipse class path (in Project / Properties / Java Build Path) and still it does not work. Does anyone know how to configure correctly? perhaps there are other settings to make... thanks Gabor On Nov 5, 2:23 pm, Ross McKinnon r.mckinno...@googlemail.com wrote: Hi there, I've spent numerous hours this week trying to get my existing GWT application to connect with an existing MySQL database with no luck. I've created my code to connect to the database using JDBC and is kept in the server package to ensure it remains as java code. Also i have included the mySQL jar file in the build path for the project but still get an error java.lang.ClassNotFoundException:com.mysql.jdbc.Driver... I have tried numerous ways of getting the database and have ran out of ideas now so thought I would consult the experts to see if any kind person can lend a hang.. Thanks for any help, Ross -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
External Module RPC
Hello how to make launch and acces GWT-RPC methods in a separete module I mean an application A using a module M and that module M making RPC calls never seen such a thing in a tutorial Thanks Patrick -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Opening a new Window with a Widget in GWT
I tend to agree, the GWT support for windows is a little contrived. We have used dialogs to achieve a window-esque approach. We actually created a couple of applications using SmartGwt that required heavy utilization of windows, such as popping up move-able charts and forms to create users etc. SmartGwt is only suited for large apps IMO though due to its enormous footprint. It is also all JSNI... not sure how people feel about this. Maybe check out some widget libraries like http://www.gwtwindowmanager.org/ http://www.gwtwindowmanager.org/Hope this helps! On Tue, Nov 30, 2010 at 1:15 PM, Steve Moyer smoye...@gmail.com wrote: I've been wondering the same thing ... though it certainly seems like the accepted practice is to use the PopupPanel and DialogPanel. In fact, I can't remember seeing a GWT application that used more than one browser instance or tab. In theory, you can style the GWT panels to look more like separate windows, but the way they're implemented, you can't drag them off the main window (which can be confusing to a user). smoyer On Nov 12, 5:05 pm, trippledes majid_amman_la...@hotmail.com wrote: Hi all, Before you start shooting me down i have checked for answers and i have googled till my fingers bled but i havent been able to find a simple, concise answer. So im asking again for all those that might have this problem. Question: how to open a new window with a formpanel in side. Context: i have an app that lists lots of items, i want someone to edit an entry, i want a new window to open so they can edit properties then hit save. A standard thing you find in a lot of applications. Architecture: I have one client module called UI, it has a dozen classes that draw widgets and fill a main area when selected from a menu. I have a single html page called UI.html which has the tag in the head. Thats it. Options Ive Seen 1. Call Window.Open() but you need to define a html file. I dont have one. I can create an empty one but how do you inject a widget in to it ? 2. use jsni $wnd to create a new window and get a reference to it. But how do i inject a form panel into it ?? 3. use a popuppanel/dialog panel. They look sucky - plus if opening a window through JS is quite simple i would expect it to be in gwt. Maybe im miss understanding how to use GWT i dont know. Any help would be appreciated even if its to correct my application/ thinking of GWT Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- John Rellis @johnrellis johnrellis.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Is it possible to pass the value @def to the literal function in CssResource
Hi In my theme I want to use css3 gradients. Since gradients are not the part of the standard yet I have to use wrap them in the literal function like in the example (for webkit browsers) below : background: literal(-webkit-gradient(linear, left top, left bottom, from(#FFF), to(#EDEDED))); It works fine but I would like define in my CssResource variables gradientColorStart, gradientColorEnd which can be used later in the other styles definitions. Unfortunately code like below does not work : @def gradientColorStart #FFF; @def gradientColorEnd #EDEDED; .someClass { background: literal(-webkit-gradient(linear, left top, left bottom, from(gradientColorStart), to(gradientColorEnd))); } Is there any possibility to use @def inside literal function ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Large scale application development and MVP tutorial / no Places or Activities
There are two reasons for this, actually: 1. The MVP tutorials were written months before Activities and Places became available in GWT 2.1.0. 2. The concepts are somewhat orthogonal, that is, Activity != Presenter. I think some of the reason for the confusion around Activity vs. Presenter has been that the community has different definitions of what is a presenter. In the first version of the gwt-presenter framework (and perhaps Ray Ryan's MVP talk at I/O '09--I'd have to go back and listen to be sure), a presenter was associated with a place, and this is the way many continue to think about presenters. Others take the more narrow view that it's just the biz logic behind a view or widget and is not tied to the concept of a place at all. In the latter concept, an Activity might load a view which consists of multiple sub-views or widgets, each backed by a presenter. Only the Activity itself is mapped to a Place. HTH, /dmc On Tue, Nov 30, 2010 at 9:03 AM, cri chuck.irvine...@gmail.com wrote: I've used the articles Large scale application development and MVP I and II to model our MVP application. I notice that these tutorials don't use either of the Place or Activity classes made available by GWT. I'm wondering why this is. Does anyone know? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT + MySQL
I've used MySQL in just about every GWT app I've written, so it's quite possible to use it. Including during development running Jetty. 1: All JDBC calls MUST come from the server. The client code can NOT see any jar files, ever. 2: You can NOT reference com.mysql.jdbc.Driver, or any other package that comes from a jar file, in any class that will end up in the client. It doesn't matter if that code is only called from the server. Any class that imports anything from a jar file (or from any of the classes that aren't on the client use whitelist) MUST be in the server package. My guess is that you have one or more classes in *.shared that are importing com.mysql.jdbc.Driver. Move those classes to *.server, or move all the MySQL functionality out of them and into classes that are in *.server. Greg On Nov 30, 2:54 am, mgm gabor.mundru...@gmail.com wrote: I am having the same issue.. I am using MySQL on the server side (server source package only) and there is the run-time error of: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver I do have the mysql package (mysql-connector-java.jar) in the eclipse class path (in Project / Properties / Java Build Path) and still it does not work. Does anyone know how to configure correctly? perhaps there are other settings to make... thanks Gabor On Nov 5, 2:23 pm, Ross McKinnon r.mckinno...@googlemail.com wrote: Hi there, I've spent numerous hours this week trying to get my existing GWT application to connect with an existing MySQL database with no luck. I've created my code to connect to the database using JDBC and is kept in the server package to ensure it remains as java code. Also i have included the mySQL jar file in the build path for the project but still get an error java.lang.ClassNotFoundException:com.mysql.jdbc.Driver... I have tried numerous ways of getting the database and have ran out of ideas now so thought I would consult the experts to see if any kind person can lend a hang.. Thanks for any help, Ross -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: mvn plugin
Stefan, That's a strange version of the plugin... Where did you download that version from? Also, does the 2.1 version work for you 100%? Do you run any JRE tests with it and it works? I haven't been able to get it to run JRE tests properly. Thanks, Yaakov. On Nov 30, 4:49 am, Geoffrey De Smet ge0ffrey.s...@gmail.com wrote: Stefan, If you add the plugin to your plugin list in the pom, than gwt:compile is automatically added in the phase compile and therefor run upon mvn install. build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId version2.1-20101001.MGWT219/version ... Op 28-11-10 15:25, Stefan Bachert schreef: Hi, I am about to switch to maven. Using gwt-maven-plugin.1.3.2 It looks strange to me that the goal install does not include a gwt:compile. Has someone any idea why? Stefan Bachert http://gwtworld.de -- With kind regards, Geoffrey De Smet -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel does not listen to width
So, how do we use the Closure widgets w/ a GWT app. Because if I wanted to be writing JavaScript, I wouldn't be using GWT. No? Greg On Nov 30, 6:25 am, Matt H matt2...@gmail.com wrote: Yes, the UI widgets are all terrible. Google Closure has much better widgets. On Nov 30, 10:10 am, Baloe nielsba...@gmail.com wrote: Hi all, I'm using a tabLayoutPanel with three tabs. However, the total width is now dynamicly created by the width of the content of the current tab. But, my first and second tabs are not that wide, so the third tab always hangs a bit outside of the tab. How can I set the width of the TabLayoutPanel? I tried several things, but I can't seem to set the width. tabLayoutPanel.setWidth(700px); tabLayoutPanel.setSize(700px, 500px); tabLayoutPanel.setPixelSize(700, 500); with and without tabLayoutPanel.onResize(); uibinder file: g:FlowPanel g:TabLayoutPanel ui:field=tabLayoutPanel barHeight=50 height=600px /g:TabLayoutPanel g:Button ui:field=buttonAdd text={i18n.save} / /g:FlowPanel I'm adding the tabs in java code after binding. tabGeneral = new FlexTable(); . tabLayoutPanel.add(tabGeneral, i18nGeneral.name()); I really like GWT a lot, but I must say that the ui pieces are really quite bad. You can't use certain widgets because it's standard mode (or not) without warnings, setting sizes and other basic stuff doesn't always work, examples often work in java code but not in the uibinder, etc. It would be nice if the widgets themselves were better. It feels like temporary broken, or just beta sourcecode. If you can make such a good java2javascript compiler, why not create proper widgets as well? Thanks! Niels -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWTTestCase: Unable to access objects returned from a successful RPC call
Stupid question time: Does it work outside of GWTTestCase? Also, have you tried wrapping option 1 with try ... catch (Throwable oops) { oops.stringStackTrace (); }? Greg On Nov 29, 5:08 pm, jtran jtweez...@gmail.com wrote: I've got a project I'm working on where I make an RPC call to the server which calls a webservice on a different domain, gets some XML, parses it, and then returns to me a Java object. Now I'm trying to unit test this and I'm running into a problem where my Java object is not accessible after it's been returned by the server. That is, in my onSuccess(MyJavaObject result) method in my GWTTestCase, I cannot say: result.getSomeData(). Doing this results in something kinda funny...the test just finishes. It doesn't execute any lines of code after that line, and it does not cause the test to fail. Here's a snippet of my code: TestGetSomething.java: public void testGetSomeData() { MyServiceAsync svc = MyService.Util.getInstance(); AsyncCallbackMyJavaObject callback = new AsyncCallbackMyJavaObject () { @Override public void onFailure(Throwable caught) { System.out.println(caught.getMessage()); finishTest(); } @Override public void onSuccess(MyJavaObject result) { assertNotNull(result); System.out.println(result.getSomeData()); // option 1 System.out.println(Foo); // option 2 finishTest(); } }; svc.getSomeData(parameter, callback); } Now if I run this as it's written above, Foo does NOT get printed. However, if I run this without the line marked option 1, then Foo DOES get printed. Is this a limitation to the GWTTestCase, or something that I'm missing? Also, something to note, if MyJavaObject happens to be of type String, I can say System.out.println(result); and it will print the string returned from the server call. Thanks, 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
FlowPanel vs. HorizontalPanel
I have created a FlowPanel that contains 4 ListBoxes and a button. I wanted to put some space between the items, so I added empty HorizontalPanels (with padding: 3px;) as spacers in between each item. FlowPanel responded by placing each item (including each of the HorizontalPanels), on its own line (IOW, it's now acting like a VerticalPanel). If I remove some of the spacers, then the items that don't have spacers between them share a line with each other, and the ones with spacers each go on a separate line. Is this a bug? Is this supposed to happen? How do I fix it? While I'm asking, if you resize the panel that a FlowPanel is in, does it automatically reflow its items? Thanks. Greg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Opening a new Window with a Widget in GWT
I'd create a separate HTML file that hosts the application module (or a different module). You can inspect the URL and/or history token as appropriate to decide what widget to view and any data you may need to preload it with. The trick then is that I assume you'd want to communicate events back to the originating window. I'm not sure how to accomplish that, but I imagine that there's some way to do it. I think you have to decide if you want the widget to be modal or not. If so, you'd be better off using a dialog in the application window and there'd be no need for typical window controls. On the other hand, if it's not modal, a separate window (that the user can then switch between and close individually) may be more appropriate. - Brian On Tue, Nov 30, 2010 at 10:09 AM, John Rellis john.d.rel...@gmail.comwrote: I tend to agree, the GWT support for windows is a little contrived. We have used dialogs to achieve a window-esque approach. We actually created a couple of applications using SmartGwt that required heavy utilization of windows, such as popping up move-able charts and forms to create users etc. SmartGwt is only suited for large apps IMO though due to its enormous footprint. It is also all JSNI... not sure how people feel about this. Maybe check out some widget libraries like http://www.gwtwindowmanager.org/ http://www.gwtwindowmanager.org/Hope this helps! On Tue, Nov 30, 2010 at 1:15 PM, Steve Moyer smoye...@gmail.com wrote: I've been wondering the same thing ... though it certainly seems like the accepted practice is to use the PopupPanel and DialogPanel. In fact, I can't remember seeing a GWT application that used more than one browser instance or tab. In theory, you can style the GWT panels to look more like separate windows, but the way they're implemented, you can't drag them off the main window (which can be confusing to a user). smoyer On Nov 12, 5:05 pm, trippledes majid_amman_la...@hotmail.com wrote: Hi all, Before you start shooting me down i have checked for answers and i have googled till my fingers bled but i havent been able to find a simple, concise answer. So im asking again for all those that might have this problem. Question: how to open a new window with a formpanel in side. Context: i have an app that lists lots of items, i want someone to edit an entry, i want a new window to open so they can edit properties then hit save. A standard thing you find in a lot of applications. Architecture: I have one client module called UI, it has a dozen classes that draw widgets and fill a main area when selected from a menu. I have a single html page called UI.html which has the tag in the head. Thats it. Options Ive Seen 1. Call Window.Open() but you need to define a html file. I dont have one. I can create an empty one but how do you inject a widget in to it ? 2. use jsni $wnd to create a new window and get a reference to it. But how do i inject a form panel into it ?? 3. use a popuppanel/dialog panel. They look sucky - plus if opening a window through JS is quite simple i would expect it to be in gwt. Maybe im miss understanding how to use GWT i dont know. Any help would be appreciated even if its to correct my application/ thinking of GWT Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- John Rellis @johnrellis johnrellis.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Client File IO
Hello Thank for your replies I will describe this more, In many countries here in the middle east there are many blocked sites by the ISP. Now when a website is blocked all of its content is inaccessible including the images and that is why I want the server to fetch the images for me Thank you -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Rest Service Requered Authenticate
Hello, After two days I searched how connect on a url with a authentication user and password but without success, my code is : public class XXX implements EntryPoint { public static final int STATUS_CODE_OK = 200; final DialogBox dialogBox_status = new DialogBox(); public void onModuleLoad() { RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, URL.encode(url)); //That I remove this line or not I've always the same error builder.setHeader(Authorization, Basic + Base64Utils.toBase64(user:password.getBytes())); builder.setUser(user); //I define the user builder.setPassword(password); //I define the password try { Request response = builder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { dialogBox_status.setText(onError); } public void onResponseReceived(Request request, Response response) { if (STATUS_CODE_OK == response.getStatusCode()) { String response_ok = response.getStatusText(); dialogBox_status.setText(response_ok); } else { String response_ko = response.getStatusText(); dialogBox_status.setText(response_ko); } } }); } catch(RequestException e) { dialogBox_status.setText(catch); e.printStackTrace(); } } } } When I compile my program there are an error, my console say : Initializing AppEngine server com.google.gwt.http.client.RequestException: (NS_ERROR_DOM_BAD_URI): Access to restricted URI denied code: 1012 INDEX_SIZE_ERR: 1 DOMSTRING_SIZE_ERR: 2 HIERARCHY_REQUEST_ERR: 3 WRONG_DOCUMENT_ERR: 4 INVALID_CHARACTER_ERR: 5 NO_DATA_ALLOWED_ERR: 6 NO_MODIFICATION_ALLOWED_ERR: 7 NOT_FOUND_ERR: 8 NOT_SUPPORTED_ERR: 9 INUSE_ATTRIBUTE_ERR: 10 INVALID_STATE_ERR: 11 SYNTAX_ERR: 12 INVALID_MODIFICATION_ERR: 13 NAMESPACE_ERR: 14 INVALID_ACCESS_ERR: 15 VALIDATION_ERR: 16 TYPE_MISMATCH_ERR: 17 result: 2152924148 filename: http://127.0.0.1: lineNumber: 98 columnNumber: 0 inner: null data: null at com.google.gwt.http.client.RequestBuilder.doSend(RequestBuilder.java: 403) at com.google.gwt.http.client.RequestBuilder.sendRequest(RequestBuilder.java: 256) at org.OpenCRX.Ossmose.altic.client.OpenCRX_Ossmose_altic.doGet(OpenCRX_Ossmose_altic.java: 111) at org.OpenCRX.Ossmose.altic.client.OpenCRX_Ossmose_altic.onModuleLoad(OpenCRX_Ossmose_altic.java: 46) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Thread.java:619) When I test my url it works fine, I connect with the same user and same password and successfully. Is that my method is correct ? Or had you a different method ? Could you help me please, thank you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Editor framework and DoubleBox
I am trying to use SimpleBeanEditorDriver and DoubleBox to edit a double value field. One issue is editorDriver.flush() will reduce the double value precision to the integer value. How can I fix this? Thanks, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Large scale application development and MVP tutorial / no Places or Activities
+1 I think the community has inferred a linkage between place and presenter that I never meant to imply. The MVP pattern is a lot more generally useful than the place notion — it's all about decoupling view and app logic, a pretty universal concern. IMHO Place is mainly useful for apps that are about navigating around an object graph, like AdWords and most most simple CRUD apps, a much narrower set. A concrete example: Wave made great use of MVP, but never used the place notion because it was too limiting for them. For details see Dan Danilatos's presentation from I/O 2010, which I never get tired of flogging: http://www.google.com/events/io/2010/sessions/gwt-continuous-build-testing.html The activity and place packages in GWT 2.1 are pretty minimal first stabs, kind of rushed out the door. One focus of GWT 2.2 will be improving their flexibility and reducing the boilerplate they require. On Tue, Nov 30, 2010 at 8:40 AM, David Chandler drfibona...@google.comwrote: There are two reasons for this, actually: 1. The MVP tutorials were written months before Activities and Places became available in GWT 2.1.0. 2. The concepts are somewhat orthogonal, that is, Activity != Presenter. I think some of the reason for the confusion around Activity vs. Presenter has been that the community has different definitions of what is a presenter. In the first version of the gwt-presenter framework (and perhaps Ray Ryan's MVP talk at I/O '09--I'd have to go back and listen to be sure), a presenter was associated with a place, and this is the way many continue to think about presenters. Others take the more narrow view that it's just the biz logic behind a view or widget and is not tied to the concept of a place at all. In the latter concept, an Activity might load a view which consists of multiple sub-views or widgets, each backed by a presenter. Only the Activity itself is mapped to a Place. HTH, /dmc On Tue, Nov 30, 2010 at 9:03 AM, cri chuck.irvine...@gmail.com wrote: I've used the articles Large scale application development and MVP I and II to model our MVP application. I notice that these tutorials don't use either of the Place or Activity classes made available by GWT. I'm wondering why this is. Does anyone know? 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. -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FlowPanel vs. HorizontalPanel
On Tue, Nov 30, 2010 at 12:41 PM, Greg Dougherty dougherty.greg...@mayo.edu wrote: I have created a FlowPanel that contains 4 ListBoxes and a button. I wanted to put some space between the items, so I added empty HorizontalPanels (with padding: 3px;) as spacers in between each item. FlowPanel responded by placing each item (including each of the HorizontalPanels), on its own line (IOW, it's now acting like a VerticalPanel). If I remove some of the spacers, then the items that don't have spacers between them share a line with each other, and the ones with spacers each go on a separate line. Is this a bug? Is this supposed to happen? How do I fix it? HorizontalPanel and VerticalPanel are implemented as an HTML table. Tables are block-level elements whereas your form elements are inline elements. Inserting block-level elements (div, p, etc.) cause exactly what you're seeing in terms of wrapping, so there isn't any bug there. That said, you'd probably be better off using CSS to add margins to your form elements. At any rate, inserting empty tables is a pretty heavy-weight and unpredictable way of managing layout. Alternately, if you really want those items to be in a row, just put them inside of a single HorizontalPanel. While I'm asking, if you resize the panel that a FlowPanel is in, does it automatically reflow its items? Yes, items will reflow to the extent possible within the constraints of any explicit widths that may be set. Note that if you put things in a HorizontalPanel as I suggested above, that will not reflow since it renders as an HTML table. -Brian -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What is user agent for google crome
Chrome did not yet exist when GWT was first released; GWT groups all WebKit-based browsers, including Safari and Chrome, under the safari user.agent value. http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/UserAgent.gwt.xml On Nov 30, 12:12 am, Chandu chandu...@gmail.com wrote: Hi I added google crome plug-in for ie6, what is user agent for crome -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Editor framework and DoubleBox
You probably want to avoid DoubleBox until this bug is fixed: http://code.google.com/p/google-web-toolkit/issues/detail?id=5663 On Nov 30, 8:49 am, zhong zhongl...@gmail.com wrote: I am trying to use SimpleBeanEditorDriver and DoubleBox to edit a double value field. One issue is editorDriver.flush() will reduce the double value precision to the integer value. How can I fix this? Thanks, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Large scale application development and MVP tutorial / no Places or Activities
The fact that the Activities and Places documentation is under the heading MVP Framework in the GWT documentation and contains statements like An * activity* in GWT 2.1 is analogous to a presenter in MVP terminology (recently discussed in another thread: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/8cd8e6180fc957f8/03eace027a3bd9d4?lnk=gstq=analogous#03eace027a3bd9d4) doesn't help clear up the confusion. I'd actually say that Thomas Broyer's blog (http://tbroyer.posterous.com/) is required reading along with the MVP Framework docs. -Brian On Tue, Nov 30, 2010 at 11:51 AM, Ray Ryan rj...@google.com wrote: +1 I think the community has inferred a linkage between place and presenter that I never meant to imply. The MVP pattern is a lot more generally useful than the place notion — it's all about decoupling view and app logic, a pretty universal concern. IMHO Place is mainly useful for apps that are about navigating around an object graph, like AdWords and most most simple CRUD apps, a much narrower set. A concrete example: Wave made great use of MVP, but never used the place notion because it was too limiting for them. For details see Dan Danilatos's presentation from I/O 2010, which I never get tired of flogging: http://www.google.com/events/io/2010/sessions/gwt-continuous-build-testing.html The activity and place packages in GWT 2.1 are pretty minimal first stabs, kind of rushed out the door. One focus of GWT 2.2 will be improving their flexibility and reducing the boilerplate they require. On Tue, Nov 30, 2010 at 8:40 AM, David Chandler drfibona...@google.comwrote: There are two reasons for this, actually: 1. The MVP tutorials were written months before Activities and Places became available in GWT 2.1.0. 2. The concepts are somewhat orthogonal, that is, Activity != Presenter. I think some of the reason for the confusion around Activity vs. Presenter has been that the community has different definitions of what is a presenter. In the first version of the gwt-presenter framework (and perhaps Ray Ryan's MVP talk at I/O '09--I'd have to go back and listen to be sure), a presenter was associated with a place, and this is the way many continue to think about presenters. Others take the more narrow view that it's just the biz logic behind a view or widget and is not tied to the concept of a place at all. In the latter concept, an Activity might load a view which consists of multiple sub-views or widgets, each backed by a presenter. Only the Activity itself is mapped to a Place. HTH, /dmc On Tue, Nov 30, 2010 at 9:03 AM, cri chuck.irvine...@gmail.com wrote: I've used the articles Large scale application development and MVP I and II to model our MVP application. I notice that these tutorials don't use either of the Place or Activity classes made available by GWT. I'm wondering why this is. Does anyone know? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.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 http://googlewebtoolkit.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Eclipse setup, javax.validation missing and jsp syntax highlighting
I'm assuming that neither of you are using Maven as this library is included at http://repo1.maven.org/maven2/javax/validation/validation-api/1.0.0.GA/, so you'll need to download it and manually add it to your classpath. Hope this helps! smoyer On Nov 19, 7:54 am, -sowdri- sow...@gmail.com wrote: Even I'm facing the same problem. FILE: /Expenses/src/com/google/gwt/sample/expenses/server/domain/ Employee.java /* these imports fails */ import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; ... I've been trying to make things work for a long time. Any help is appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: .cache.html file size got double after upgrading to GWT 2.1 from 1.7
I tried SOYC and it seems that gxt library is occupying most of the space but dont know how to optimize that. It wasnt a problem in version 1.7.1 of gwt. What make the same code base producing a larger size script at a latter version of gwt? On Nov 30, 9:23 am, jhulford jhulf...@gmail.com wrote: There's probably something that's not getting pruned by the compiler (dead code eliminated) that was before as a result of modifications you had to make to use 2.1 or perhaps a difference in the compiler in 2.1. I'd use the Story of Your Compile (SOYC) output to check and see what's getting included and see if there's something that's getting sucked in that shouldn't be. On Nov 29, 2:45 pm, Jewel toje...@gmail.com wrote: Hi, We are developing a small application using gwt 1.7.1. The GWT compiler is generating .chache.html file for 6 permutation each one having size around 1 mega bytes. Wen we upgraded the gwt version to 2.1 suddenly we observed that the size of the .cache.html file got increased to 2.8 mega bytes for all the permutations. We are using following libraries, gxt, GwtFacebook, gwt-dnd, gwt-voices, I have searched over this groups but haven't got anyone with same problem. Does anyone have any idea, what the problem can be? We are not getting any clue. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: .cache.html file size got double after upgrading to GWT 2.1 from 1.7
Have you changed your GXT jar to one made for 2.0? On Nov 30, 12:28 pm, Jewel toje...@gmail.com wrote: I tried SOYC and it seems that gxt library is occupying most of the space but dont know how to optimize that. It wasnt a problem in version 1.7.1 of gwt. What make the same code base producing a larger size script at a latter version of gwt? On Nov 30, 9:23 am, jhulford jhulf...@gmail.com wrote: There's probably something that's not getting pruned by the compiler (dead code eliminated) that was before as a result of modifications you had to make to use 2.1 or perhaps a difference in the compiler in 2.1. I'd use the Story of Your Compile (SOYC) output to check and see what's getting included and see if there's something that's getting sucked in that shouldn't be. On Nov 29, 2:45 pm, Jewel toje...@gmail.com wrote: Hi, We are developing a small application using gwt 1.7.1. The GWT compiler is generating .chache.html file for 6 permutation each one having size around 1 mega bytes. Wen we upgraded the gwt version to 2.1 suddenly we observed that the size of the .cache.html file got increased to 2.8 mega bytes for all the permutations. We are using following libraries, gxt, GwtFacebook, gwt-dnd, gwt-voices, I have searched over this groups but haven't got anyone with same problem. Does anyone have any idea, what the problem can be? We are not getting any clue. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: .cache.html file size got double after upgrading to GWT 2.1 from 1.7
I tried GXT 2.2.1 which is for GWT 2.0 (not for GWT 2.1) but I also tried compiling it with GWT 2.0, which also produce larger script. http://www.sencha.com/products/gwt/download.php On Nov 30, 1:29 pm, Jeff Larsen larse...@gmail.com wrote: Have you changed your GXT jar to one made for 2.0? On Nov 30, 12:28 pm, Jewel toje...@gmail.com wrote: I tried SOYC and it seems that gxt library is occupying most of the space but dont know how to optimize that. It wasnt a problem in version 1.7.1 of gwt. What make the same code base producing a larger size script at a latter version of gwt? On Nov 30, 9:23 am, jhulford jhulf...@gmail.com wrote: There's probably something that's not getting pruned by the compiler (dead code eliminated) that was before as a result of modifications you had to make to use 2.1 or perhaps a difference in the compiler in 2.1. I'd use the Story of Your Compile (SOYC) output to check and see what's getting included and see if there's something that's getting sucked in that shouldn't be. On Nov 29, 2:45 pm, Jewel toje...@gmail.com wrote: Hi, We are developing a small application using gwt 1.7.1. The GWT compiler is generating .chache.html file for 6 permutation each one having size around 1 mega bytes. Wen we upgraded the gwt version to 2.1 suddenly we observed that the size of the .cache.html file got increased to 2.8 mega bytes for all the permutations. We are using following libraries, gxt, GwtFacebook, gwt-dnd, gwt-voices, I have searched over this groups but haven't got anyone with same problem. Does anyone have any idea, what the problem can be? We are not getting any clue. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Removing old maven repositories in GWT SVN
The GWT SVN repository http://code.google.com/p/google-web-toolkit/source/browse/#svn/ contains Maven repositories from the 2.1.0 release cycle: 2.1.0.M1 2.1.0.M2 2.1.0.M3 2.1.0.RC1 In order to clean up the root of SVN, these will be deleted from SVN during the 2.1.1 release cycle. In addition, the 2.1.0 repo in SVN will be moved underneath a new maven directory. There is no longer a need for it since 2.1.0 is in Maven Central, but it can still serve as a backup. -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FlowPanel vs. HorizontalPanel
Ah, thanks. I tried adding padding to my ListBoxes. That caused the inside of the box to grow, but did not put any space between the borders of the adjacent boxes, which is the behavior I want. I put them in a FlowPanel because I want them to flow, one two or three items per line, depending on what fits. Since they're above a table that the user can grow or shrink, I don't want to manage this by hand. Greg On Nov 30, 12:06 pm, Brian Reilly br...@ireilly.com wrote: On Tue, Nov 30, 2010 at 12:41 PM, Greg Dougherty dougherty.greg...@mayo.edu wrote: I have created a FlowPanel that contains 4 ListBoxes and a button. I wanted to put some space between the items, so I added empty HorizontalPanels (with padding: 3px;) as spacers in between each item. FlowPanel responded by placing each item (including each of the HorizontalPanels), on its own line (IOW, it's now acting like a VerticalPanel). If I remove some of the spacers, then the items that don't have spacers between them share a line with each other, and the ones with spacers each go on a separate line. Is this a bug? Is this supposed to happen? How do I fix it? HorizontalPanel and VerticalPanel are implemented as an HTML table. Tables are block-level elements whereas your form elements are inline elements. Inserting block-level elements (div, p, etc.) cause exactly what you're seeing in terms of wrapping, so there isn't any bug there. That said, you'd probably be better off using CSS to add margins to your form elements. At any rate, inserting empty tables is a pretty heavy-weight and unpredictable way of managing layout. Alternately, if you really want those items to be in a row, just put them inside of a single HorizontalPanel. While I'm asking, if you resize the panel that a FlowPanel is in, does it automatically reflow its items? Yes, items will reflow to the extent possible within the constraints of any explicit widths that may be set. Note that if you put things in a HorizontalPanel as I suggested above, that will not reflow since it renders as an HTML table. -Brian -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FlowPanel vs. HorizontalPanel
Inserting block-level elements (div, p, etc.) cause exactly what you're seeing in terms of wrapping, so there isn't any bug there. So you're saying there's no way to have two elements (say a label and the thing it's labeling) always stay together within an operable FlowPanel, since all the ways of binding them together involve Block Elements? (Or is there a way of sticking two Widgets together (other than a custom widget), that doesn't use a block element?) Greg On Nov 30, 12:06 pm, Brian Reilly br...@ireilly.com wrote: On Tue, Nov 30, 2010 at 12:41 PM, Greg Dougherty dougherty.greg...@mayo.edu wrote: I have created a FlowPanel that contains 4 ListBoxes and a button. I wanted to put some space between the items, so I added empty HorizontalPanels (with padding: 3px;) as spacers in between each item. FlowPanel responded by placing each item (including each of the HorizontalPanels), on its own line (IOW, it's now acting like a VerticalPanel). If I remove some of the spacers, then the items that don't have spacers between them share a line with each other, and the ones with spacers each go on a separate line. Is this a bug? Is this supposed to happen? How do I fix it? HorizontalPanel and VerticalPanel are implemented as an HTML table. Tables are block-level elements whereas your form elements are inline elements. Inserting block-level elements (div, p, etc.) cause exactly what you're seeing in terms of wrapping, so there isn't any bug there. That said, you'd probably be better off using CSS to add margins to your form elements. At any rate, inserting empty tables is a pretty heavy-weight and unpredictable way of managing layout. Alternately, if you really want those items to be in a row, just put them inside of a single HorizontalPanel. While I'm asking, if you resize the panel that a FlowPanel is in, does it automatically reflow its items? Yes, items will reflow to the extent possible within the constraints of any explicit widths that may be set. Note that if you put things in a HorizontalPanel as I suggested above, that will not reflow since it renders as an HTML table. -Brian -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1 Activities – nesting? YAGNI ? - an exa mple of where you NEED it !
Thank you everyone for your wonderful insights. You provided very helpful suggestions and invaluable solutions to deal with the problem i described. I was going to implement some of the solutions offered, but this comment by Ray Ryan, got me very worried and kind of put me off. The activity and place packages in GWT 2.1 are pretty minimal first stabs, kind of rushed out the door. One focus of GWT 2.2 will be improving their flexibility and reducing the boilerplate they require. http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2173bd71a6289c84 I am going to start working on a new project, and I'm afraid based on Ray Ryan's comment, GWT 2.1 MVP is too experimental, and there is a very high risk that GWT 2.2 would be dramatically different than 2.1, leaving me with a lot of boilerplate code to maintain ! I am leaning toward using GWTP, as Brian Reilly suggested. GWTP is more stable and mature than GWT 2.1 MVP, and it comes with many added features. I will keep you updated on this, as I continue with my project. Sincerely, zixzigma -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FlowPanel vs. HorizontalPanel
First, let's separate two concepts. You suggested using a custom widget to bundle two things together. While that may bundle them together from a source code point of view, that custom widget it ultimately rendered as HTML. Therefore, HTML ultimately defines the rules for how your content will be rendered. When composing GWT widgets together to create specific layouts, it's always good to understand at least superficially what the resulting HTML will be (e.g., to know when to use InlineLabel instead of Label). Now, to answer your question... if you have a bunch of inline elements, you can keep them together by wrapping them in a span styled with white-space:nowrap;. If your form elements aren't dynamic and you're using UiBinder, this is pretty easy to do by wrapping everything in an HTMLPanel (which will effectively behave like a FlowPanel, except that you can also mix in HTML with your widgets). If you're doing this all from java, you can still do it, but you have to use HTMLPanel.add() or HTMLPanel.addAndReplaceElement() yourself. As far as I know, GWT doesn't provide any container widgets that render as span elements; all Panel widgets render as divs. If that doesn't work for you, you can look into using block elements and float:left;, but that comes with its own complications (and you also don't get nice text alignment across blocks. -Brian On Tue, Nov 30, 2010 at 2:10 PM, Greg Dougherty dougherty.greg...@mayo.eduwrote: Inserting block-level elements (div, p, etc.) cause exactly what you're seeing in terms of wrapping, so there isn't any bug there. So you're saying there's no way to have two elements (say a label and the thing it's labeling) always stay together within an operable FlowPanel, since all the ways of binding them together involve Block Elements? (Or is there a way of sticking two Widgets together (other than a custom widget), that doesn't use a block element?) Greg On Nov 30, 12:06 pm, Brian Reilly br...@ireilly.com wrote: On Tue, Nov 30, 2010 at 12:41 PM, Greg Dougherty dougherty.greg...@mayo.edu wrote: I have created a FlowPanel that contains 4 ListBoxes and a button. I wanted to put some space between the items, so I added empty HorizontalPanels (with padding: 3px;) as spacers in between each item. FlowPanel responded by placing each item (including each of the HorizontalPanels), on its own line (IOW, it's now acting like a VerticalPanel). If I remove some of the spacers, then the items that don't have spacers between them share a line with each other, and the ones with spacers each go on a separate line. Is this a bug? Is this supposed to happen? How do I fix it? HorizontalPanel and VerticalPanel are implemented as an HTML table. Tables are block-level elements whereas your form elements are inline elements. Inserting block-level elements (div, p, etc.) cause exactly what you're seeing in terms of wrapping, so there isn't any bug there. That said, you'd probably be better off using CSS to add margins to your form elements. At any rate, inserting empty tables is a pretty heavy-weight and unpredictable way of managing layout. Alternately, if you really want those items to be in a row, just put them inside of a single HorizontalPanel. While I'm asking, if you resize the panel that a FlowPanel is in, does it automatically reflow its items? Yes, items will reflow to the extent possible within the constraints of any explicit widths that may be set. Note that if you put things in a HorizontalPanel as I suggested above, that will not reflow since it renders as an HTML table. -Brian -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel does not listen to width
Hi, I have made very good layouts using the gwt layout system. I would recommend to have a look at : http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html Regarding to your UiBinder example, don't put the TabLayoutPanel inside a FlowPanel. On Tue, Nov 30, 2010 at 7:10 AM, Baloe nielsba...@gmail.com wrote: Hi all, I'm using a tabLayoutPanel with three tabs. However, the total width is now dynamicly created by the width of the content of the current tab. But, my first and second tabs are not that wide, so the third tab always hangs a bit outside of the tab. How can I set the width of the TabLayoutPanel? I tried several things, but I can't seem to set the width. tabLayoutPanel.setWidth(700px); tabLayoutPanel.setSize(700px, 500px); tabLayoutPanel.setPixelSize(700, 500); with and without tabLayoutPanel.onResize(); uibinder file: g:FlowPanel g:TabLayoutPanel ui:field=tabLayoutPanel barHeight=50 height=600px /g:TabLayoutPanel g:Button ui:field=buttonAdd text={i18n.save} / /g:FlowPanel I'm adding the tabs in java code after binding. tabGeneral = new FlexTable(); . tabLayoutPanel.add(tabGeneral, i18nGeneral.name()); I really like GWT a lot, but I must say that the ui pieces are really quite bad. You can't use certain widgets because it's standard mode (or not) without warnings, setting sizes and other basic stuff doesn't always work, examples often work in java code but not in the uibinder, etc. It would be nice if the widgets themselves were better. It feels like temporary broken, or just beta sourcecode. If you can make such a good java2javascript compiler, why not create proper widgets as well? Thanks! Niels -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Client File IO
Are you sure the images will overload the server? Why? Here's a thought: create an image cache. You can do it on either the client or the server. The client will forget the images if you click away from it, and the images will only be viewable inside your client app, but other than that it should work. If you simply want a proxy server to get around your country's censorship, go here: http://proxies.xhaus.com/ or here: http://www.squid-cache.org/ Good luck On Nov 30, 11:52 am, khalid khalid@gmail.com wrote: Hello Thank for your replies I will describe this more, In many countries here in the middle east there are many blocked sites by the ISP. Now when a website is blocked all of its content is inaccessible including the images and that is why I want the server to fetch the images for me Thank you -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1 Activities – nesting? YAGNI ? - an exa mple of where you NEED it !
There's a difference between experimental and immature. I don't think Activities and Places are experimental. They are building blocks upon which more functionality can be built. While there may be bigger plans for future versions of GWT, I'm glad that we have this much to work with sooner rather than have to wait longer for a complete out-of-the-box solution. I wouldn't take Ray's comments (from http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2173bd71a6289c84) to mean that these features are experimental. More likely, you'll be able to rip out a bunch of code when newer versions are released rather than have to maintain boilerplate. That said, have a look at the options, including other MVP frameworks, and then choose what's going to work best for your situation. -Brian On Tue, Nov 30, 2010 at 2:34 PM, zixzigma zixzi...@gmail.com wrote: Thank you everyone for your wonderful insights. You provided very helpful suggestions and invaluable solutions to deal with the problem i described. I was going to implement some of the solutions offered, but this comment by Ray Ryan, got me very worried and kind of put me off. The activity and place packages in GWT 2.1 are pretty minimal first stabs, kind of rushed out the door. One focus of GWT 2.2 will be improving their flexibility and reducing the boilerplate they require. http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2173bd71a6289c84 I am going to start working on a new project, and I'm afraid based on Ray Ryan's comment, GWT 2.1 MVP is too experimental, and there is a very high risk that GWT 2.2 would be dramatically different than 2.1, leaving me with a lot of boilerplate code to maintain ! I am leaning toward using GWTP, as Brian Reilly suggested. GWTP is more stable and mature than GWT 2.1 MVP, and it comes with many added features. I will keep you updated on this, as I continue with my project. Sincerely, zixzigma -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Make TreeItem unselectable
Is there a way to make a certain TreeItem unselectable? For example, given this Tree: Category 1 - Subcategory A - Item - Item - Subcategory B - Item - Item How would I make it so that when one of the Subcategory TreeItem is selected, nothing happens? I came up with a hacky way that intercepts the SelectionHandler and checks the selected TreeItem against a list of Subcategory items, if it's on the list, it doesn't fire any selection events. Is there an easier way to do 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1 Activities – nesting? YAGNI ? - an exa mple of where you NEED it !
Spot on, Brian. The kinds of changes to Activities and Places we're contemplating for future versions of GWT are primarily along the lines of using annotations and generators to automate the creation of PlaceTokenizers and ActivityMappers, for example. We're not talking about wholesale replacement, as we strive for API backward compatibility with each release. Also, we're thankful for a thriving community of 3rd party frameworks around GWT and you're always welcome to look outside the box it that suits your needs better. /dmc On Tue, Nov 30, 2010 at 3:19 PM, Brian Reilly br...@ireilly.com wrote: There's a difference between experimental and immature. I don't think Activities and Places are experimental. They are building blocks upon which more functionality can be built. While there may be bigger plans for future versions of GWT, I'm glad that we have this much to work with sooner rather than have to wait longer for a complete out-of-the-box solution. I wouldn't take Ray's comments (from http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2173bd71a6289c84) to mean that these features are experimental. More likely, you'll be able to rip out a bunch of code when newer versions are released rather than have to maintain boilerplate. That said, have a look at the options, including other MVP frameworks, and then choose what's going to work best for your situation. -Brian On Tue, Nov 30, 2010 at 2:34 PM, zixzigma zixzi...@gmail.com wrote: Thank you everyone for your wonderful insights. You provided very helpful suggestions and invaluable solutions to deal with the problem i described. I was going to implement some of the solutions offered, but this comment by Ray Ryan, got me very worried and kind of put me off. The activity and place packages in GWT 2.1 are pretty minimal first stabs, kind of rushed out the door. One focus of GWT 2.2 will be improving their flexibility and reducing the boilerplate they require. http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2173bd71a6289c84 I am going to start working on a new project, and I'm afraid based on Ray Ryan's comment, GWT 2.1 MVP is too experimental, and there is a very high risk that GWT 2.2 would be dramatically different than 2.1, leaving me with a lot of boilerplate code to maintain ! I am leaning toward using GWTP, as Brian Reilly suggested. GWTP is more stable and mature than GWT 2.1 MVP, and it comes with many added features. I will keep you updated on this, as I continue with my project. Sincerely, zixzigma -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
MVP *without* UiBinder
I'm in the process of trying to learn GWT 2.1 MVP. At this point we don't have very good knowledge of UiBinder and we're not sure that we want to learn and use it. I'm having trouble understanding the sample Hello/Goodbye application (at the GWT docs site) since it relies on UiBinder. More specifically, I don't know what alternate methods I need to use that will take the place of UiBinder functionality. Would someone that understands this stuff summarize what alternative classes/ methods/patterns need to be utilized that would take the place of UiBinder functionality used in the Hello/Goodbye sample application? (or in some other way clue me in?). Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How can I declaratively I18N a g:Button title attribute?
Instead of g:Button ui:field=myButton addStyleNames=myButtonStyle title=myButton Tooltip ui:msg description='previous' Previous /ui:msg /g:Button is there a way to do something like this? g:Button ui:field=myButton addStyleNames=myButtonStyle ui:attribute name=title ui:msg description='previousTooltip' Previous Topic /ui:msg /ui:attribute ui:msg description='previous' Previous /ui:msg /g:Button -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Get a PDF from the Server
Hi, I apologize in advance, I am extremely new to HttpServelet and RequestBuilders, so if this is a dumb question, I apologize. I typically just work with RPC's, but I don't think this will work in this case. I have the user select a bunch of options from the website, then I hit publish, and it sends the data to the server (using serializable objects, not Strings) and on the server a PDF is generated, and I want to return the PDF. I can send the objects, make the PDF, but I can't return it using RPC's. After googling a bunch, it seems I should be using a RequestBuilder with an HttpServlet on the Server side. However, it seems you really can't send much data with the request, just a single string. Am I supposed to encode all the data into one string and then decode it on the other side? That seems like a huge hassle, one I will have to re- do for every Servlet, compared to RPC's. For example, I am sending a bunch of SoftballGame objects. Each with their home team, away Team, time and which team is selected to win. I don't want to have to encode the team names, as well as the time and selection into a string, and then do that for all the games. What's the proper way to attack 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP *without* UiBinder
Well... UiBinder is almost only made of HTML sementics, I don't see why you can't take 1 hours to learn it... I made the switch 3 months after gwt 2.0 release and now, I can't live without. It's easier, faster than it ever was before to build Ui. Cheers, On Tue, Nov 30, 2010 at 4:33 PM, cri chuck.irvine...@gmail.com wrote: I'm in the process of trying to learn GWT 2.1 MVP. At this point we don't have very good knowledge of UiBinder and we're not sure that we want to learn and use it. I'm having trouble understanding the sample Hello/Goodbye application (at the GWT docs site) since it relies on UiBinder. More specifically, I don't know what alternate methods I need to use that will take the place of UiBinder functionality. Would someone that understands this stuff summarize what alternative classes/ methods/patterns need to be utilized that would take the place of UiBinder functionality used in the Hello/Goodbye sample application? (or in some other way clue me in?). Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Christian Goudreau www.arcbees.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
2.1.1 AutoBeans + Spring 3 REST implementation
So I've been pounding my head against the wall trying to figure out what will be a good way to integrate GWT 2.1.1 AutoBeans with Spring 3's REST implementation using RequestBuilder. There is a lot of really good stuff in the new REST implementation with Spring 3 but i'm having real trouble getting RequestBuilder.getText() to return anything other than when going through Spring. Was wondering if anyone has had any experience getting a spring Rest implementation up and running with RequestBuilder. My googlefoo is failing me on finding an example that works how I would prefer, which would look something like RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL); builder.sendRequest(something, rb.setCallback(new RequestCallback() { @Override public void onResponseReceived(Request request, Response response) { String text = response.getText(); //Do cool stuff with AutoBean } @Override public void onError(Request request, Throwable exception) { label.setText(Error: + exception.getMessage()); } I can get straight up servlets to return text to my response, but going through Spring I just get an empty String. Any help would be greatly appreciated, or maybe I'm doing this completely wrong and someone can point me in the right direction. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP *without* UiBinder
UiBinder is at least 2-3x faster to develop with once you get the hang of it (it really isn't hard). Take the time to learn it, your code will be infinitely more readable, maintainable and manageable. On Nov 30, 3:52 pm, Christian Goudreau goudreau.christ...@gmail.com wrote: Well... UiBinder is almost only made of HTML sementics, I don't see why you can't take 1 hours to learn it... I made the switch 3 months after gwt 2.0 release and now, I can't live without. It's easier, faster than it ever was before to build Ui. Cheers, On Tue, Nov 30, 2010 at 4:33 PM, cri chuck.irvine...@gmail.com wrote: I'm in the process of trying to learn GWT 2.1 MVP. At this point we don't have very good knowledge of UiBinder and we're not sure that we want to learn and use it. I'm having trouble understanding the sample Hello/Goodbye application (at the GWT docs site) since it relies on UiBinder. More specifically, I don't know what alternate methods I need to use that will take the place of UiBinder functionality. Would someone that understands this stuff summarize what alternative classes/ methods/patterns need to be utilized that would take the place of UiBinder functionality used in the Hello/Goodbye sample application? (or in some other way clue me in?). Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Christian Goudreauwww.arcbees.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Get a PDF from the Server
Sean, The way I do it (and this may not be the best way) is to use RPC to send the user requests to the server. Then, I store the request data in a table on the server, generating a unique id for that data. The unique id is returned to the user via the RPC callback. Then, a new window is opened with the url set to the servlet address and the unique id as the token in the url. In the servlet, I use that token to look up the request data, build the PDF, delete the request data, and return the PDF. This method allows me to send as much data as I want via RPC and then I only need to send a single parameter with the url to the servlet. HTH, Chad Bourque www.milamade.com On Nov 30, 3:52 pm, Sean slough...@gmail.com wrote: Hi, I apologize in advance, I am extremely new to HttpServelet and RequestBuilders, so if this is a dumb question, I apologize. I typically just work with RPC's, but I don't think this will work in this case. I have the user select a bunch of options from the website, then I hit publish, and it sends the data to the server (using serializable objects, not Strings) and on the server a PDF is generated, and I want to return the PDF. I can send the objects, make the PDF, but I can't return it using RPC's. After googling a bunch, it seems I should be using a RequestBuilder with an HttpServlet on the Server side. However, it seems you really can't send much data with the request, just a single string. Am I supposed to encode all the data into one string and then decode it on the other side? That seems like a huge hassle, one I will have to re- do for every Servlet, compared to RPC's. For example, I am sending a bunch of SoftballGame objects. Each with their home team, away Team, time and which team is selected to win. I don't want to have to encode the team names, as well as the time and selection into a string, and then do that for all the games. What's the proper way to attack 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HorizontalPanel align in uibinder......
Change the width of the first cell from 80px to 100% to move all the buttons to the right. On Nov 29, 7:35 am, Baloe nielsba...@gmail.com wrote: Hi all, I want to display three buttons at the right of a horizontalpanel, and then I'll add something on the left. But first, how do I get these buttons at the right? I've read somewhere to put the in a cel, but it doesn't matter. Setting a stylename, setting the horizontalalignment on the cell (or the button), setting the style on the cell, nothing is displayed in the browser, as if I didn't type it. What's wrong? ui:style .subpanel { // the subpanel is completely ignored (looking at firebug) text-align: right; float: right; align: right; } /ui:style g:HorizontalPanel width=100% g:cell width=80px horizontalAlignment=ALIGN_RIGHT // the horizontalAlignment is ignored style=text-align:right; // the style is ignored (looking at firebug) styleName={style.subpanel} // the stylename is ignored (looking at firebug) g:Button ui:field=buttonAdd text={i18n.add} / /g:cell g:cell width=80px horizontalAlignment=ALIGN_RIGHT g:Button ui:field=buttonDelete text={i18n.delete} / /g:cell g:cell width=80px horizontalAlignment=ALIGN_RIGHT g:Button ui:field=buttonEdit text={i18n.edit} / /g:cell /g:HorizontalPanel .. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How can I declaratively I18N a g:Button title attribute?
Well that was easy... This works; g:Button ui:field=emailButton addStyleNames=mailButton title=Send a link to this topic ui:attribute name='title' description='toEmailTooltip' / /g:Button On Nov 30, 4:45 pm, Blackberet ramonjsanti...@gmail.com wrote: Instead of g:Button ui:field=myButton addStyleNames=myButtonStyle title=myButton Tooltip ui:msg description='previous' Previous /ui:msg /g:Button is there a way to do something like this? g:Button ui:field=myButton addStyleNames=myButtonStyle ui:attribute name=title ui:msg description='previousTooltip' Previous Topic /ui:msg /ui:attribute ui:msg description='previous' Previous /ui:msg /g:Button -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Get a PDF from the Server
On 11/30/2010 02:52 PM, Sean wrote: Hi, I apologize in advance, I am extremely new to HttpServelet and RequestBuilders, so if this is a dumb question, I apologize. I typically just work with RPC's, but I don't think this will work in this case. I have the user select a bunch of options from the website, then I hit publish, and it sends the data to the server (using serializable objects, not Strings) and on the server a PDF is generated, and I want to return the PDF. I can send the objects, make the PDF, but I can't return it using RPC's. That's correct. If you search the list, this has been discussed many times. You'll probably want to post the raw data to the server, then enable a get the results button after generating the PDF. But, I don't know the user requirements. I've also done the following: establish an invisible frame with a NULL URL then on a certain state change in the main UI: 1) change that frame's url to the generated PDF, and 2) make the frame visible. After googling a bunch, it seems I should be using a RequestBuilder with an HttpServlet on the Server side. However, it seems you really can't send much data with the request, just a single string. Am I supposed to encode all the data into one string and then decode it on the other side? That seems like a huge hassle, one I will have to re- do for every Servlet, compared to RPC's. For example, I am sending a bunch of SoftballGame objects. Each with their home team, away Team, time and which team is selected to win. I don't want to have to encode the team names, as well as the time and selection into a string, and then do that for all the games. That's one solution. The other is to establish a server session, incrementally accumulate each team's info, then publish it on demand. What's the proper way to attack this? There is no proper way. You just have to be aware that you can't retrieve a PDF file like you would any other RPC response. If implementing solutions to that limitation is what you mean by proper (as opposed to accumulating the team data), then the proper way is to use a GET to a URL that returns data encoded as an application/pdf mime type. I prefer a GET to a POST, as my users might want to bookmark the URL, and I will not send data that cannot be encoded in the URL. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HorizontalPanel align in uibinder......
Why use HorizontalPanel instead of just using an HTML table? On Nov 30, 4:36 pm, Craig yavinm...@gmail.com wrote: Change the width of the first cell from 80px to 100% to move all the buttons to the right. On Nov 29, 7:35 am, Baloe nielsba...@gmail.com wrote: Hi all, I want to display three buttons at the right of a horizontalpanel, and then I'll add something on the left. But first, how do I get these buttons at the right? I've read somewhere to put the in a cel, but it doesn't matter. Setting a stylename, setting the horizontalalignment on the cell (or the button), setting the style on the cell, nothing is displayed in the browser, as if I didn't type it. What's wrong? ui:style .subpanel { // the subpanel is completely ignored (looking at firebug) text-align: right; float: right; align: right; } /ui:style g:HorizontalPanel width=100% g:cell width=80px horizontalAlignment=ALIGN_RIGHT // the horizontalAlignment is ignored style=text-align:right; // the style is ignored (looking at firebug) styleName={style.subpanel} // the stylename is ignored (looking at firebug) g:Button ui:field=buttonAdd text={i18n.add} / /g:cell g:cell width=80px horizontalAlignment=ALIGN_RIGHT g:Button ui:field=buttonDelete text={i18n.delete} / /g:cell g:cell width=80px horizontalAlignment=ALIGN_RIGHT g:Button ui:field=buttonEdit text={i18n.edit} / /g:cell /g:HorizontalPanel .. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP *without* UiBinder
Thanks for the advice and we probably will seriously consider using UiBinder. However, that said, my problem at the moment is understanding GWT 2.1 MVP. I'd really like to understand what it takes to build a minimal application. Since the MVP docs are a little sparse, the UiBinder stuff is getting in the way of understanding the MVP. I do at this point understand well the material in the Large scale application development and MVP tutorials. However, GWT MVP appears to be very different, at least in regard to the specific classes used. Again, if anyone can summarize the necessary alternatives to the UiBinder content in MVP it would be a huge help. Meanwhile I'll do my best to slog through it. Thanks On Nov 30, 4:18 pm, Jeff Larsen larse...@gmail.com wrote: UiBinder is at least 2-3x faster to develop with once you get the hang of it (it really isn't hard). Take the time to learn it, your code will be infinitely more readable, maintainable and manageable. On Nov 30, 3:52 pm, Christian Goudreau goudreau.christ...@gmail.com wrote: Well... UiBinder is almost only made of HTML sementics, I don't see why you can't take 1 hours to learn it... I made the switch 3 months after gwt 2.0 release and now, I can't live without. It's easier, faster than it ever was before to build Ui. Cheers, On Tue, Nov 30, 2010 at 4:33 PM, cri chuck.irvine...@gmail.com wrote: I'm in the process of trying to learn GWT 2.1 MVP. At this point we don't have very good knowledge of UiBinder and we're not sure that we want to learn and use it. I'm having trouble understanding the sample Hello/Goodbye application (at the GWT docs site) since it relies on UiBinder. More specifically, I don't know what alternate methods I need to use that will take the place of UiBinder functionality. Would someone that understands this stuff summarize what alternative classes/ methods/patterns need to be utilized that would take the place of UiBinder functionality used in the Hello/Goodbye sample application? (or in some other way clue me in?). Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Christian Goudreauwww.arcbees.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CellTable with only div's?
I want to make a CellTable but without the HTML table, so basically a table that consists of only div's. Any advice on how to do this? (maybe extending the CellList 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP *without* UiBinder
gain, if anyone can summarize the necessary alternatives to the UiBinder content in MVP it would be a huge help. You do everything the same, your presenter doesn't change, your view/display interface doesn't change, you just create and wire your widgets together manually in your view implementation. E.g.: class MyView implements MyDisplay { private FlowPanel p = new FlowPanel(); private TextBox a = new TextBox(); private Textbox b = new TextBox(); public MyView() { // do manual layout here p.add(a); p.add(b); } public IsWidget asWidget() { return p; } public HasText a() { return a; } public HasText b() { return b; } } Your presenter then gets the MyDisplay implementation however it would otherwise with a uibinder impl, pokes at it with the a() and b() display interface methods, and is none the wiser that you did/did not use uibinder in the view. - Stpehen -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
css rendering difference on windows vs linux
We are developing application using GWT2.1 and application will be deployed on Weblogic 10.3 server. One of our screen uses DiscloserPanel. Content section has one Horizontal panel which in turn has 3 flow panels that has borders. When i run application in dev mode i see expected results. Then i gwt compiled application and deployed war file to my local Weblogic instance on windows, I get same results (as expected). But when i deploy same war file to Linux weblogic server, I see some differences in rendering (css differences). Flow panel borders should be collapsed but ther has some spacing etc.. In all instances I am accessing application from same browser. What could there be css/rendering differences when same war file is deployed on 2 diff OS .? Any help would be greatly appriciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP *without* UiBinder
Hi Jeff, Is there some special tools u are using to build utilize the UiBinder way to easily build gui? I tried it, but I also tried Google's latest offering on the Window's Builder, which in gives me the impression that it is way more efficient to build gui with. The tools directly support event click code navigation right under eclipse, supports css styling directly with code completion,it event supports reparsing the source to regenerate the dev view in the tool in case the tool crashed and so far it worked pretty good. However when I go the UiBinder way, I got no code completion support, no event click navigation from the ui.xml file, no wyswug viewer without deploying the code to see what it looks like. And worst of all, the assosociated java editor in eclipse all highlighting the uibinder fields are not found in the ui.xml file. All these makes the whole thing feel disconnected and not so well tooled compared to the GWT Windows Builder. So I am wonder if I am missing something when u say it helps u being productive? Thanks Joseph On Nov 30, 5:18 pm, Jeff Larsen larse...@gmail.com wrote: UiBinder is at least 2-3x faster to develop with once you get the hang of it (it really isn't hard). Take the time to learn it, your code will be infinitely more readable, maintainable and manageable. On Nov 30, 3:52 pm, Christian Goudreau goudreau.christ...@gmail.com wrote: Well... UiBinder is almost only made of HTML sementics, I don't see why you can't take 1 hours to learn it... I made the switch 3 months after gwt 2.0 release and now, I can't live without. It's easier, faster than it ever was before to build Ui. Cheers, On Tue, Nov 30, 2010 at 4:33 PM, cri chuck.irvine...@gmail.com wrote: I'm in the process of trying to learn GWT 2.1 MVP. At this point we don't have very good knowledge of UiBinder and we're not sure that we want to learn and use it. I'm having trouble understanding the sample Hello/Goodbye application (at the GWT docs site) since it relies on UiBinder. More specifically, I don't know what alternate methods I need to use that will take the place of UiBinder functionality. Would someone that understands this stuff summarize what alternative classes/ methods/patterns need to be utilized that would take the place of UiBinder functionality used in the Hello/Goodbye sample application? (or in some other way clue me in?). Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Christian Goudreauwww.arcbees.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Get a PDF from the Server
Thank you both, I realized that I could do less parameters passed and just fetch the data from the DB again. I'm very close, but I'm running into an odd problem. In the Request Builder I pass two arguments like: RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,/ servlets/celticlock/print?user=DrunkMcweekNum=12); When I get to the HttpServelet I am able to do: String user = p_request.getParameter(user); int weekNum = Integer.valueOf(p_request.getParameter(weekNum)); However, the doGet method seems to be called twice and the second time the request is missing those values. Have you guys run into that problem? On Nov 30, 5:42 pm, Jeff Chimene jchim...@gmail.com wrote: On 11/30/2010 02:52 PM, Sean wrote: Hi, I apologize in advance, I am extremely new to HttpServelet and RequestBuilders, so if this is a dumb question, I apologize. I typically just work with RPC's, but I don't think this will work in this case. I have the user select a bunch of options from the website, then I hit publish, and it sends the data to the server (using serializable objects, not Strings) and on the server a PDF is generated, and I want to return the PDF. I can send the objects, make the PDF, but I can't return it using RPC's. That's correct. If you search the list, this has been discussed many times. You'll probably want to post the raw data to the server, then enable a get the results button after generating the PDF. But, I don't know the user requirements. I've also done the following: establish an invisible frame with a NULL URL then on a certain state change in the main UI: 1) change that frame's url to the generated PDF, and 2) make the frame visible. After googling a bunch, it seems I should be using a RequestBuilder with an HttpServlet on the Server side. However, it seems you really can't send much data with the request, just a single string. Am I supposed to encode all the data into one string and then decode it on the other side? That seems like a huge hassle, one I will have to re- do for every Servlet, compared to RPC's. For example, I am sending a bunch of SoftballGame objects. Each with their home team, away Team, time and which team is selected to win. I don't want to have to encode the team names, as well as the time and selection into a string, and then do that for all the games. That's one solution. The other is to establish a server session, incrementally accumulate each team's info, then publish it on demand. What's the proper way to attack this? There is no proper way. You just have to be aware that you can't retrieve a PDF file like you would any other RPC response. If implementing solutions to that limitation is what you mean by proper (as opposed to accumulating the team data), then the proper way is to use a GET to a URL that returns data encoded as an application/pdf mime type. I prefer a GET to a POST, as my users might want to bookmark the URL, and I will not send data that cannot be encoded in the URL. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Get a PDF from the Server
On Tue, Nov 30, 2010 at 5:42 PM, Sean slough...@gmail.com wrote: Thank you both, I realized that I could do less parameters passed and just fetch the data from the DB again. I'm very close, but I'm running into an odd problem. In the Request Builder I pass two arguments like: RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,/ servlets/celticlock/print?user=DrunkMcweekNum=12); When I get to the HttpServelet I am able to do: String user = p_request.getParameter(user); int weekNum = Integer.valueOf(p_request.getParameter(weekNum)); However, the doGet method seems to be called twice and the second time the request is missing those values. Have you guys run into that problem? No, but I don't do server-side Java. FWIW, this sounds like pilot error. A few judiciously placed break-points or logging statements will prove me wrong. pudipudi, jec On Nov 30, 5:42 pm, Jeff Chimene jchim...@gmail.com wrote: On 11/30/2010 02:52 PM, Sean wrote: Hi, I apologize in advance, I am extremely new to HttpServelet and RequestBuilders, so if this is a dumb question, I apologize. I typically just work with RPC's, but I don't think this will work in this case. I have the user select a bunch of options from the website, then I hit publish, and it sends the data to the server (using serializable objects, not Strings) and on the server a PDF is generated, and I want to return the PDF. I can send the objects, make the PDF, but I can't return it using RPC's. That's correct. If you search the list, this has been discussed many times. You'll probably want to post the raw data to the server, then enable a get the results button after generating the PDF. But, I don't know the user requirements. I've also done the following: establish an invisible frame with a NULL URL then on a certain state change in the main UI: 1) change that frame's url to the generated PDF, and 2) make the frame visible. After googling a bunch, it seems I should be using a RequestBuilder with an HttpServlet on the Server side. However, it seems you really can't send much data with the request, just a single string. Am I supposed to encode all the data into one string and then decode it on the other side? That seems like a huge hassle, one I will have to re- do for every Servlet, compared to RPC's. For example, I am sending a bunch of SoftballGame objects. Each with their home team, away Team, time and which team is selected to win. I don't want to have to encode the team names, as well as the time and selection into a string, and then do that for all the games. That's one solution. The other is to establish a server session, incrementally accumulate each team's info, then publish it on demand. What's the proper way to attack this? There is no proper way. You just have to be aware that you can't retrieve a PDF file like you would any other RPC response. If implementing solutions to that limitation is what you mean by proper (as opposed to accumulating the team data), then the proper way is to use a GET to a URL that returns data encoded as an application/pdf mime type. I prefer a GET to a POST, as my users might want to bookmark the URL, and I will not send data that cannot be encoded in the URL. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP *without* UiBinder
no code completion support If you're using Google plugin ecplise, you have it. no event click navigation from the ui.xml file don't know what you mean. no wyswug viewer Have you tried GWT designer ? assosociated java editor in eclipse all highlighting Shouldn't happen using GPE. Using UIBinder to write what Stephen wrote: g:FlowPanel g:TextBox ui:Field=a / g:TextBox ui:Field=b / /g:FlowPanel The the java file: @UiField TextBox a; @UiField TextBox b; @Inject public AdminGeneralView(final Binder uiBinder) { initWidget(uiBinder.createAndBindUi(this)); } Well to me, it feels right. It feels web. Have you ever took a look into MXML ? XAML ? Well, declarative Ui style is the modern way to write Ui and with Gwt Designer getting better and better every day, there's no reason to back off from learning how to use UiBinder. Cheers, On Tue, Nov 30, 2010 at 7:36 PM, JosephLi joseph.l...@gmail.com wrote: Hi Jeff, Is there some special tools u are using to build utilize the UiBinder way to easily build gui? I tried it, but I also tried Google's latest offering on the Window's Builder, which in gives me the impression that it is way more efficient to build gui with. The tools directly support event click code navigation right under eclipse, supports css styling directly with code completion,it event supports reparsing the source to regenerate the dev view in the tool in case the tool crashed and so far it worked pretty good. However when I go the UiBinder way, I got no code completion support, no event click navigation from the ui.xml file, no wyswug viewer without deploying the code to see what it looks like. And worst of all, the assosociated java editor in eclipse all highlighting the uibinder fields are not found in the ui.xml file. All these makes the whole thing feel disconnected and not so well tooled compared to the GWT Windows Builder. So I am wonder if I am missing something when u say it helps u being productive? Thanks Joseph On Nov 30, 5:18 pm, Jeff Larsen larse...@gmail.com wrote: UiBinder is at least 2-3x faster to develop with once you get the hang of it (it really isn't hard). Take the time to learn it, your code will be infinitely more readable, maintainable and manageable. On Nov 30, 3:52 pm, Christian Goudreau goudreau.christ...@gmail.com wrote: Well... UiBinder is almost only made of HTML sementics, I don't see why you can't take 1 hours to learn it... I made the switch 3 months after gwt 2.0 release and now, I can't live without. It's easier, faster than it ever was before to build Ui. Cheers, On Tue, Nov 30, 2010 at 4:33 PM, cri chuck.irvine...@gmail.com wrote: I'm in the process of trying to learn GWT 2.1 MVP. At this point we don't have very good knowledge of UiBinder and we're not sure that we want to learn and use it. I'm having trouble understanding the sample Hello/Goodbye application (at the GWT docs site) since it relies on UiBinder. More specifically, I don't know what alternate methods I need to use that will take the place of UiBinder functionality. Would someone that understands this stuff summarize what alternative classes/ methods/patterns need to be utilized that would take the place of UiBinder functionality used in the Hello/Goodbye sample application? (or in some other way clue me in?). Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Christian Goudreauwww.arcbees.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Christian Goudreau www.arcbees.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Calling RPC
If you want server -- server communication using GWT RPC, gwt- syncproxy is what you need. On Nov 15, 6:50 pm, Raju rajus...@gmail.com wrote: Hi, I am new to GWT and had a requirement. I have two applications running on two different servers. And i need to make an asynchronous call from one application to the other. Is it possible to call the Remote Procedure of one application running on a different server from a different application running on a different server? If so please let me know. Thanks in advance. Raju -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable with only div's?
You could extend CellTable and override the protected renderRowValues() method to render the Cells using divs. You can also override CellList, but CellTable already has the API to add Columns, if you want to use them. Alternatively, you could override AbstractHasData and just use CellList/CellTable as examples. Thanks, John LaBanca jlaba...@google.com On Tue, Nov 30, 2010 at 6:23 PM, Ed post2edb...@gmail.com wrote: I want to make a CellTable but without the HTML table, so basically a table that consists of only div's. Any advice on how to do this? (maybe extending the CellList 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
debug sending email
Hi, is it possible to send emails by running application in development mode. Every time a change some code in my mailing code section, I need to upload to HOST and run from there. This is a real pain, or I am I doing something wrong? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to prevent CSRF/XSRF when using RequestFactory
Hi guys, I've been using GWT-RPC up until this point, but would like to make the switch to RequestFactory shortly. I'm a bit confused as to how to prevent CSRF/XSRF with RequestFactory though. As per http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ, up to this point I've been sending the session ID within the *payload* of each RPC. Works great. Should I be doing something similar with RequestFactory? Any and all suggestions greatly welcome! Thanks, Daniel -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Designer UiBinder can not accept Arabic text.
1) Make sure that you are using the latest GWT Designer 8.1 build http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html 2) Check the ui.xml properties in Eclipse and make sure that the file is set to use the UTF-8 charset. On Nov 28, 6:31 am, sab...@gmail.com sab...@gmail.com wrote: When I use GWT Designer (UiBinder) and write Arabic in label or button text property the designer replace the text with things like this: #1576;#1587;#1605; #1575;#1604;#1604;#1607; the GWT Designer (Java UI) work OK. Thank yo. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to prevent CSRF/XSRF when using RequestFactory
Hi Daniel, I haven't tested it yet, but I believe you can extend DefaultRequestTransport as discussed in this thread to set a request header containing your session ID or other XSRF token: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e835c3153bc62f4c/751df0dc6aa7eb40?lnk=gstq=entitymanagerfactory#751df0dc6aa7eb40 HTH, /dmc On Tue, Nov 30, 2010 at 10:38 PM, Daniel Cowx daniel.c...@gmail.com wrote: Hi guys, I've been using GWT-RPC up until this point, but would like to make the switch to RequestFactory shortly. I'm a bit confused as to how to prevent CSRF/XSRF with RequestFactory though. As per http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ, up to this point I've been sending the session ID within the *payload* of each RPC. Works great. Should I be doing something similar with RequestFactory? Any and all suggestions greatly welcome! Thanks, Daniel -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP *without* UiBinder
hi Christian, Thank you for the reply, here is some clarification to the questions I have: ** no wyswug viewer GWT Designer I have tried the GWT Designer, and I was referring by calling it Window Builder in my previous post. I know I can get the wyswug viewer, but seems like it only work if the gui is created thru GWT Designer. And by do so GWT Designer actually generate Java code instead of generating the UiBinder files. And I have not been able to see how to get it work on a set of UiBinder files. Please correct me if I am doing it wrong. ** no event click navigation from the ui.xml file This is a direct comparison between the UiBinder way and the GWT Designer. In GWT Designer, I can view the gui and use the mouse the navigate to associated event codes for any widgets. However, if I am working on the ui.xml file, I can't seem to easily bring up a list of event handler code thats associated with a particular field. I have to actually take the uifield name, open the java view implementation manually and look for the field there, and then do a text search to look for the method that is marked with @UiHandler(fieldname). Which is cumbersome compare to GWT Designer. Please let me know if I am not utilizing the GWT eclipse plugin correctly or there is some secret settings that I need to set to make GWT Designer work with ui.xml files. I would love to easily bring the editor up and assign edit css styles with ease thru GWT Designer. And thank you for the pointers to the other declarative technologies, like everybody else in this field, I will look at them when I get the time. Thanks, Joseph On Nov 30, 8:54 pm, Christian Goudreau goudreau.christ...@gmail.com wrote: no code completion support If you're using Google plugin ecplise, you have it. no event click navigation from the ui.xml file don't know what you mean. no wyswug viewer Have you tried GWT designer ? assosociated java editor in eclipse all highlighting Shouldn't happen using GPE. Using UIBinder to write what Stephen wrote: g:FlowPanel g:TextBox ui:Field=a / g:TextBox ui:Field=b / /g:FlowPanel The the java file: @UiField TextBox a; @UiField TextBox b; @Inject public AdminGeneralView(final Binder uiBinder) { initWidget(uiBinder.createAndBindUi(this)); } Well to me, it feels right. It feels web. Have you ever took a look into MXML ? XAML ? Well, declarative Ui style is the modern way to write Ui and with Gwt Designer getting better and better every day, there's no reason to back off from learning how to use UiBinder. Cheers, On Tue, Nov 30, 2010 at 7:36 PM, JosephLi joseph.l...@gmail.com wrote: Hi Jeff, Is there some special tools u are using to build utilize the UiBinder way to easily build gui? I tried it, but I also tried Google's latest offering on the Window's Builder, which in gives me the impression that it is way more efficient to build gui with. The tools directly support event click code navigation right under eclipse, supports css styling directly with code completion,it event supports reparsing the source to regenerate the dev view in the tool in case the tool crashed and so far it worked pretty good. However when I go the UiBinder way, I got no code completion support, no event click navigation from the ui.xml file, no wyswug viewer without deploying the code to see what it looks like. And worst of all, the assosociated java editor in eclipse all highlighting the uibinder fields are not found in the ui.xml file. All these makes the whole thing feel disconnected and not so well tooled compared to the GWT Windows Builder. So I am wonder if I am missing something when u say it helps u being productive? Thanks Joseph On Nov 30, 5:18 pm, Jeff Larsen larse...@gmail.com wrote: UiBinder is at least 2-3x faster to develop with once you get the hang of it (it really isn't hard). Take the time to learn it, your code will be infinitely more readable, maintainable and manageable. On Nov 30, 3:52 pm, Christian Goudreau goudreau.christ...@gmail.com wrote: Well... UiBinder is almost only made of HTML sementics, I don't see why you can't take 1 hours to learn it... I made the switch 3 months after gwt 2.0 release and now, I can't live without. It's easier, faster than it ever was before to build Ui. Cheers, On Tue, Nov 30, 2010 at 4:33 PM, cri chuck.irvine...@gmail.com wrote: I'm in the process of trying to learn GWT 2.1 MVP. At this point we don't have very good knowledge of UiBinder and we're not sure that we want to learn and use it. I'm having trouble understanding the sample Hello/Goodbye application (at the GWT docs site) since it relies on UiBinder. More specifically, I don't know what alternate methods I need to use that will take the place of UiBinder functionality. Would someone that understands this stuff summarize what alternative
Re: MVP *without* UiBinder
Also about the java editor highlighting the uifields in the editor indicating that they are not found in the associated ui.xml file. I verified that it only happens to projects created with Spring Roo. It is not a problem if the project is created thru Eclipse. Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT and Gmail Drap File attachment??
Hi, has someone been able to implement Gmail Drag File attachment and Upload with GWT?? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT and Gmail Drap File attachment??
Hello, this is done using simple JS so you could implement it yourself for example through JSNI. I think i have the JS Script somewhere let me know if you need it Regards, Alain 2010/12/1 Noor baken...@gmail.com Hi, has someone been able to implement Gmail Drag File attachment and Upload with GWT?? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: Make ListEditorWrapper update its backing on flush(). (issue1159801)
LGTM, nits. http://gwt-code-reviews.appspot.com/1159801/diff/1/2 File user/src/com/google/gwt/editor/client/adapters/ListEditorWrapper.java (right): http://gwt-code-reviews.appspot.com/1159801/diff/1/2#newcode33 user/src/com/google/gwt/editor/client/adapters/ListEditorWrapper.java:33: private final ListT workingCopy; Sort order. http://gwt-code-reviews.appspot.com/1159801/diff/1/2#newcode41 user/src/com/google/gwt/editor/client/adapters/ListEditorWrapper.java:41: this.workingCopy = new ArrayListT(backing); Sort order. http://gwt-code-reviews.appspot.com/1159801/diff/1/2#newcode111 user/src/com/google/gwt/editor/client/adapters/ListEditorWrapper.java:111: backing.add(value); It could be more efficient to say backing.clear(); backing.addAll(workingCopy); at the end of the method. http://gwt-code-reviews.appspot.com/1159801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Eliminate hotspots in ProxyAutoBean code by memoizing data. (issue1161801)
Reviewers: rchandia, Description: Eliminate hotspots in ProxyAutoBean code by memoizing data. Patch by: bobv Review by: rchandia Please review this at http://gwt-code-reviews.appspot.com/1161801/show Affected files: M user/src/com/google/gwt/autobean/server/MethodPropertyContext.java M user/src/com/google/gwt/autobean/server/ProxyAutoBean.java M user/src/com/google/gwt/autobean/shared/ValueCodex.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Passing the row index along with the row value to Cell methods. Currently, the row index is not ... (issue1129801)
http://gwt-code-reviews.appspot.com/1129801/diff/4001/5024 File user/src/com/google/gwt/cell/client/Cell.java (right): http://gwt-code-reviews.appspot.com/1129801/diff/4001/5024#newcode65 user/src/com/google/gwt/cell/client/Cell.java:65: context.key = key; On 2010/11/29 23:24:01, jlabanca wrote: It seems sort of arbitrary to exclude the value from the Context, and I don't see what value it adds. Also, the key is paired to the value, so that would have to be a separate arg as well. The Cell is a flyweight, so it shouldn't maintain any state unless absolutely necessary. IMHO, for a flyweight like Cell, the value is tightly bound to the Context where the value is being rendered. Should the Context contain the state that is shared between Cells, or all the state of a Cell? If it's the former, the value is the one part of the state that isn't shared. http://gwt-code-reviews.appspot.com/1129801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9303 committed - Added error handling for exceptions that can occur when logging messag...
Revision: 9303 Author: rda...@google.com Date: Tue Nov 30 04:07:57 2010 Log: Added error handling for exceptions that can occur when logging messages are sent over the wire from DevMode to GPE. Review at http://gwt-code-reviews.appspot.com/1149801 Review by: sco...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9303 Modified: /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/MessageTransport.java /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceClient.java /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceTreeLogger.java /trunk/dev/core/test/com/google/gwt/dev/shell/remoteui/MessageTransportTest.java === --- /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/MessageTransport.java Wed Aug 11 09:22:23 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/MessageTransport.java Tue Nov 30 04:07:57 2010 @@ -42,6 +42,25 @@ * Responsible for exchanging requests and responses between services. */ public class MessageTransport { + + /** + * A callback that is invoked when errors occur at the transport level. + */ + public interface ErrorCallback { + +/** + * Called when an exception occurs when attempting to send a response + * message. + */ +void onResponseException(Exception e); + +/** + * Called when the transport terminates due to an exception. + * + * @param e The exception that led to the termination + */ +void onTermination(Exception e); + } /** * An exception that is generated by the transport when it receives a failure @@ -69,19 +88,6 @@ return failureMessage; } } - - /** - * A callback that is invoked when the transport terminates. - */ - public interface TerminationCallback { - -/** - * Called when the transport terminates. - * - * @param e The exception that led to the termination - */ -void onTermination(Exception e); - } class PendingRequest extends PendingSend { private final CallbackResponse callback; @@ -169,7 +175,9 @@ @Override public void failed(Exception e) { - // Do nothing + if (errorCallback != null) { +errorCallback.onResponseException(e); + } } @Override @@ -200,7 +208,7 @@ private final RequestProcessor requestProcessor; private final LinkedBlockingQueuePendingSend sendQueue = new LinkedBlockingQueuePendingSend(); - private final TerminationCallback terminationCallback; + private final ErrorCallback errorCallback; /** * Create a new instance using the given streams and request processor. @@ -214,9 +222,9 @@ */ public MessageTransport(final InputStream inputStream, final OutputStream outputStream, RequestProcessor requestProcessor, - TerminationCallback terminationCallback) { + ErrorCallback errorCallback) { this.requestProcessor = requestProcessor; -this.terminationCallback = terminationCallback; +this.errorCallback = errorCallback; this.inputStream = inputStream; this.outputStream = outputStream; } @@ -403,8 +411,7 @@ } default: { -processUnknownMessageType(message.getMessageId(), -messageType.name()); +processUnknownMessageType(message.getMessageId(), messageType.name()); break; } } @@ -444,8 +451,8 @@ private void terminateDueToException(Exception e) { pendingRequestMap.blockAdds(e); -if (terminationCallback != null) { - terminationCallback.onTermination(e); +if (errorCallback != null) { + errorCallback.onTermination(e); } } } === --- /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java Fri Jun 11 12:53:19 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java Tue Nov 30 04:07:57 2010 @@ -39,7 +39,7 @@ * development mode server. */ public class RemoteUI extends DevModeUI implements -MessageTransport.TerminationCallback { +MessageTransport.ErrorCallback { private final String clientId; private final DevModeServiceRequestProcessor devModeRequestProcessor; @@ -129,15 +129,20 @@ // resolved, we send the startup URLs as part of the moduleLoadComplete so // they are not displayed before the server is ready to serve the modules at // the URLs. -viewerServiceClient = new ViewerServiceClient(transport); +viewerServiceClient = new ViewerServiceClient(transport, getTopLogger()); viewerServiceClient.initialize(clientId, cachedStartupUrls); viewerServiceClient.checkCapabilities(); } - public void onTermination(Exception e) { + public void onResponseException(Exception e) { getTopLogger().log(TreeLogger.INFO, +An exception occured while attempting to send a response message., e); + } + + public void
[gwt-contrib] Add ServiceLocator API to allow service methods to be invoked on non-static methods. (issue1162801)
Reviewers: rchandia, rjrjr, Description: Add ServiceLocator API to allow service methods to be invoked on non-static methods. http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_1_1 Issue 5680. Patch by: bobv Review by: rchandia,rjrjr Please review this at http://gwt-code-reviews.appspot.com/1162801/show Affected files: M user/src/com/google/gwt/requestfactory/server/LocatorServiceLayer.java M user/src/com/google/gwt/requestfactory/server/RequestFactoryInterfaceValidator.java M user/src/com/google/gwt/requestfactory/server/ServiceLayer.java M user/src/com/google/gwt/requestfactory/server/ServiceLayerCache.java M user/src/com/google/gwt/requestfactory/server/ServiceLayerDecorator.java M user/src/com/google/gwt/requestfactory/server/SimpleRequestProcessor.java A user/src/com/google/gwt/requestfactory/shared/ServiceLocator.java A user/src/com/google/gwt/requestfactory/shared/ServiceLocatorFor.java A user/src/com/google/gwt/requestfactory/shared/ServiceLocatorForName.java M user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java A user/test/com/google/gwt/requestfactory/server/InstanceService.java A user/test/com/google/gwt/requestfactory/server/InstanceServiceLocator.java A user/test/com/google/gwt/requestfactory/shared/InstanceServiceRequest.java M user/test/com/google/gwt/requestfactory/shared/SimpleRequestFactory.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: JUnit exceptions cause chains need to be serializable, too. (issue1160801)
http://gwt-code-reviews.appspot.com/1160801/diff/1/3 File user/super/com/google/gwt/junit/translatable/com/google/gwt/junit/client/impl/GWTRunner.java (right): http://gwt-code-reviews.appspot.com/1160801/diff/1/3#newcode162 user/super/com/google/gwt/junit/translatable/com/google/gwt/junit/client/impl/GWTRunner.java:162: private static void ensureSerializable(ExceptionWrapper wrapper, i think this would be better suited an instance method of ExceptionWrapper http://gwt-code-reviews.appspot.com/1160801/diff/1/3#newcode268 user/super/com/google/gwt/junit/translatable/com/google/gwt/junit/client/impl/GWTRunner.java:268: } else if (!GWT.isProdMode() result.exceptionWrapper != null) { i'd rather see a JUnitResult.getExceptionWrapper() that ensures the wrapper has been initialized. (it looks like the uninitialized exception code path won't be hit in the current code, but we should protect future callers) http://gwt-code-reviews.appspot.com/1160801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors