Re: UIObject getOffsetWidth() method returning absurd value for IE
Hi mmoossen, Thanks for the reply. If u can explain it little more , it will be a great help. I didn't get this part of your mail , our widget is attached to the doc when calling that method, *AND* that it is also visible! What do I need to check exactly ? Thanks, -tapas On Tue, May 25, 2010 at 5:43 PM, mmoossen mmoos...@gmail.com wrote: Hi tapas! that is most likely a timing issue. what i mean is that you have to check that: - your widget is attached to the doc when calling that method, *AND* - that it is also visible! HTH Michael On May 25, 7:09 am, Tapas Adhikary tapas4...@gmail.com wrote: Hi all,, Can anybody give any clue on this ? On Mon, May 24, 2010 at 1:05 PM, Tapas Adhikary tapas4...@gmail.com wrote: I am using GWT 2.0 . In my application , I am using a logic to randomly/correctly position the pop-up when I click an anchor link. I am setting the position of the popup using the UiObject's OffsetWidth and OffsetHeight property. I am calling , popupPanel.setPopupPositionAndShow( new PopupPanel.PositionCallback() { public void setPosition( int iOffsetWidth, int iOffsetHeight) { // Some code } } The position callback happens from the PopupPanel.java which in turn gets the offsetHeight and offset width from the UIObject's public int getOffsetWidth() { return DOM.getElementPropertyInt(getElement(), offsetWidth); } The problem happens when I click on one specific anchor link. The pop-up width is returned correctly in mozilla but in IE it gives me a huge value(only for this anchor link, for all the other anchors it gives back the proper width). Is the width of the anchor responsible for this as it only happening for a particular link and on IE? Is it a kind of known issue that I am not aware of ? Thanks in advance. -Tapas -- You received 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 athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.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: How to achieve traditional website behavior with layout panels?
I also prefer to do the styling with CSS and not via gwt methods. But I still use the panels as one of the strengths of gwt is that it knows best how to create them in a cross-platform/ cross-browser way and deals with the browser differences for me (at least in theory). I then just style them with CSS to look the way I want. If I would implement everything with html tags I would have to deal with browser differences again and start implementing browser hacks which I want to avoid at all cost. What do you think? Dennis On May 26, 10:06 pm, Olivier Monaco olivier.mon...@free.fr wrote: When I want to create a website like app, I use as many HTML tags as possible with UiBinder. Then, I use CSS to sets the position, border, color... and never the GWT methods. That way, I have a true web site but using GWT. I don't like to create a website-like app (something that looks like a web site but with widgets like in app): you want a website (HTML + CSS) or an app (Widgets + Layout). Olivier On 26 mai, 13:53, googelybear googelyb...@gmail.com wrote: Are you not afraid that they will get removed soon? I always get deprecated warnings when using them: StackPanel is deprecated. Use the StackLayoutPanel instead. and same for others (DockPanel, TabPanel, ...). What's the official policy on this? On May 26, 11:49 am, Olivier Monaco olivier.mon...@free.fr wrote: For a traditionnallayout, I use the old schoolpanels. It's not really a old school, it just has another goal. Olivier On 26 mai, 10:33, googelybear googelyb...@gmail.com wrote: Hi, I am developing a webapp that should behave like atraditionalweb page, meaning that when the content grows in height the browser should display a vertical scroll bar. Unfortunately I was foolish and jumped right in on the new, shinylayoutpanels. As I found out later these are not suitable for me, as they create a more application-like look and feel with scrollbars displayed in the individual gwtpanels instead of the browser (try resizing e.g. google wave - When the available area is too small scrollbars will appear inside all the panels, the browser will never display any scrollbars) and also they are working with lots of fixed sizes (in my case the content is dynamic). I tried toachievethetraditionalbehaviorwith my LayoutPanels but failed. I couldn't get the browser to display scrollbars, only inner- panel scrolling, and stuffing a layoutpanel inside a scrollpanel is not the desirable approach (stuffinglayoutpanelsinside non-layout panelsusually ended badly for me..). So my conclusion is to revert to the old schoolpanels. But I am afraid that support of these will be dropped soon. What do you think? Are there better alternatives? Anyone fought with a similar problem? thanks for any suggestions, Dennis -- You received 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.
Unable to get upload results from FileUpload
Hi All, I am using FileUpload widget to upload a file. Either file is being uploaded successfully or failed I am not able to get the results using event.getResults() in onSubmitComplete event because it is always null. The response type of the service which I am calling to upload is text/xml. Here is the response copied from fiddler: HTTP/1.1 200 OK Date: Wed, 26 May 2010 19:16:42 GMT Server: Apache X-UA-Compatible: IE=EmulateIE7 Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Connection: close Content-Type: text/xml xmlResponsestatuscode500/codemessageAn unknown system error occurred while processing the request./messagesubcode500/ subcode/status/xmlResponse Any thoughts why am I not getting the above xml in in event.getResults()? Thanks, Fahim -- You received 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 HTMLPanel with UiBinder
On 27 mai, 01:46, Tom Davies tgdav...@gmail.com wrote: I'd like to use an HTMLPanel widget with its HTML provided by a UiBinder template. Unfortunately, HTMLPanel always calls setElement() in its constructor. Just like any widget. Is there any way around this other than extending ComplexPanel and copying the parts of HTMLPanel which I want? I really don't understand how you'd like to use HTMLPanel and what prevents you just using it. Just so you know, because it isn't documented, you can choose the tag name of the root element with UiBinder (the HTMLPanel(String,String) constructor), just use a tag= attribute, e.g. g:HTMLPanelThis will use a div element/g:HTMLPanel g:HTMLPanel tag='p'While this will use a p element/g:HTMLPanel You can then use an HTMLPanel as the root of your UiBinder and build your widget as a Composite, passing the HTMLPanel built by UiBinder to the initWidget method. -- You received 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: onLoad?
On 27 mai, 06:43, spierce7 spier...@gmail.com wrote: Hey guys, I'm creating a class that extends Label, and for some reason whenever I create an instance of it, it doesn't load the onLoad() class when it's instantiated. I've got it set up the exact same way I have a class that extends grid, that properly uses onLoad, but for some reason this isn't. The idea occurred to me that I don't even really know what onLoad does exactly. What is the difference between onLoad and a constructor, and how should I be using them differently? (yes I did a search). From the JavaDoc: This method is called immediately after a widget becomes attached to the browser's document. This is has nothing to do with the time you create the widget (you can create a widget and just keep it in a variable, and add it to another widget later, or never; this is not really a good practice but it's possible); it can be called at different times: - when you add the widget to another widget which is already attached to the browser's document - when you attach a parent widget to the browser's document (onLoad propagates to children) Widgets that are attached without the need to add them to other widgets are: - RootPanel - RootLayoutPanel - any widget that you created using its wrap(Element) static method Out of curiosity how does onModuleLoad() fit into the mix also? Again totally a different thing. This is called to start our app. Nothing will ever be called before onModuleLoad (except the constructor of your EntryPoint class, of course) -- You received 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 achieve traditional website behavior with layout panels?
I use both. My goal is to be IE8+ compliant, so many problems go away. Then, for others, I use GWT to avoid writing CSS hacks. Be aware that Panels are for Quirks Mode and Layout are for Compliant/ Standard Mode. In the first mode, browser have many differences, which Panels try to correct. In the second mode, there are, for recent browser, less differences. I always write my pages as XHTML (strict if possible) so I don't need many GWT complex component. Finally, for website, I never use Panels like Stack, Dock... because its not for website, it's for app. That the reason there must be replaced by there Layout counterparts. Olivier On 27 mai, 09:51, googelybear googelyb...@gmail.com wrote: I also prefer to do the styling with CSS and not via gwt methods. But I still use the panels as one of the strengths of gwt is that it knows best how to create them in a cross-platform/ cross-browser way and deals with the browser differences for me (at least in theory). I then just style them with CSS to look the way I want. If I would implement everything with html tags I would have to deal with browser differences again and start implementing browser hacks which I want to avoid at all cost. What do you think? Dennis On May 26, 10:06 pm, Olivier Monaco olivier.mon...@free.fr wrote: When I want to create a website like app, I use as many HTML tags as possible with UiBinder. Then, I use CSS to sets the position, border, color... and never the GWT methods. That way, I have a true web site but using GWT. I don't like to create a website-like app (something that looks like a web site but with widgets like in app): you want a website (HTML + CSS) or an app (Widgets + Layout). Olivier On 26 mai, 13:53, googelybear googelyb...@gmail.com wrote: Are you not afraid that they will get removed soon? I always get deprecated warnings when using them: StackPanel is deprecated. Use the StackLayoutPanel instead. and same for others (DockPanel, TabPanel, ...). What's the official policy on this? On May 26, 11:49 am, Olivier Monaco olivier.mon...@free.fr wrote: For a traditionnallayout, I use the old schoolpanels. It's not really a old school, it just has another goal. Olivier On 26 mai, 10:33, googelybear googelyb...@gmail.com wrote: Hi, I am developing a webapp that should behave like atraditionalweb page, meaning that when the content grows in height the browser should display a vertical scroll bar. Unfortunately I was foolish and jumped right in on the new, shinylayoutpanels. As I found out later these are not suitable for me, as they create a more application-like look and feel with scrollbars displayed in the individual gwtpanels instead of the browser (try resizing e.g. google wave - When the available area is too small scrollbars will appear inside all the panels, the browser will never display any scrollbars) and also they are working with lots of fixed sizes (in my case the content is dynamic). I tried toachievethetraditionalbehaviorwith my LayoutPanels but failed. I couldn't get the browser to display scrollbars, only inner- panel scrolling, and stuffing a layoutpanel inside a scrollpanel is not the desirable approach (stuffinglayoutpanelsinside non-layout panelsusually ended badly for me..). So my conclusion is to revert to the old schoolpanels. But I am afraid that support of these will be dropped soon. What do you think? Are there better alternatives? Anyone fought with a similar problem? thanks for any suggestions, Dennis -- You received 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: UIObject getOffsetWidth() method returning absurd value for IE
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/Widget.html#isAttached() On 27 mai, 08:00, Tapas Adhikary tapas4...@gmail.com wrote: Hi mmoossen, Thanks for the reply. If u can explain it little more , it will be a great help. I didn't get this part of your mail , our widget is attached to the doc when calling that method, *AND* that it is also visible! What do I need to check exactly ? Thanks, -tapas On Tue, May 25, 2010 at 5:43 PM, mmoossen mmoos...@gmail.com wrote: Hi tapas! that is most likely a timing issue. what i mean is that you have to check that: - your widget is attached to the doc when calling that method, *AND* - that it is also visible! HTH Michael On May 25, 7:09 am, Tapas Adhikary tapas4...@gmail.com wrote: Hi all,, Can anybody give any clue on this ? On Mon, May 24, 2010 at 1:05 PM, Tapas Adhikary tapas4...@gmail.com wrote: I am using GWT 2.0 . In my application , I am using a logic to randomly/correctly position the pop-up when I click an anchor link. I am setting the position of the popup using the UiObject's OffsetWidth and OffsetHeight property. I am calling , popupPanel.setPopupPositionAndShow( new PopupPanel.PositionCallback() { public void setPosition( int iOffsetWidth, int iOffsetHeight) { // Some code } } The position callback happens from the PopupPanel.java which in turn gets the offsetHeight and offset width from the UIObject's public int getOffsetWidth() { return DOM.getElementPropertyInt(getElement(), offsetWidth); } The problem happens when I click on one specific anchor link. The pop-up width is returned correctly in mozilla but in IE it gives me a huge value(only for this anchor link, for all the other anchors it gives back the proper width). Is the width of the anchor responsible for this as it only happening for a particular link and on IE? Is it a kind of known issue that I am not aware of ? Thanks in advance. -Tapas -- You received 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 athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.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: Flextable memory usage
Thanks Bradley, I'll check that out. The leak was across browsers but FF and Chrome handled it pretty gracefully and seems to do a decent job of managing memory usage. The big issue was with IE6 which kept consuming memory until it crashed. On May 26, 11:32 pm, Bradley bljf...@gmail.com wrote: From one of the talks at this year's Google I/O, it is pretty clear that widgets are expensive to create and it is much better to keep and resume them. For more information, see the talk titled Measured in milliseconds redux Did you notice that the memory leak occurred on just one browser or across browsers? On May 26, 8:40 am, Austen awconsta...@gmail.com wrote: To answer my own question, the following seems to be a far better way of doing things. Save creating all those new objects... public class Memoryleaktest implements EntryPoint { private FlexTable flexTable = new FlexTable(); private HashMapInteger, FlexTableRow rows = new HashMapInteger, FlexTableRow(); public void onModuleLoad() { RootPanel.get().add(flexTable); setupTable(); Timer timer = new Timer() { public void run() { updateTable(); } }; timer.scheduleRepeating(1); // 10 seconds } private void setupTable() { for (Integer i = 0; i 50; i++) { FlexTableRow row = new FlexTableRow(); flexTable.setWidget(i, 0, row.getTitle()); flexTable.setWidget(i, 1, row.getHtml()); flexTable.setWidget(i, 2, row.getLabel()); rows.put(i, row); } } private void updateTable() { for (Integer i = 0; i 50; i++) { FlexTableRow row = rows.get(i); row.getTitle().setText(ROW- + i.toString()); row.getHtml().setHTML(HTML Test + i.toString()); row.getLabel().setText(Label Test + i.toString()); } } Any comments/ideas about this approach? Thanks On May 26, 3:34 pm, Austen awconsta...@gmail.com wrote: Hi All, We have a problem with memory usage on all browsers when using a flextable. The table periodically updates over rpc and if left long enough will consume all available ram. The following example displays the issue. public class Memoryleaktest implements EntryPoint { private FlexTable flexTable = new FlexTable(); public void onModuleLoad() { RootPanel.get().add(flexTable); Timer timer = new Timer() { public void run() { updateTable(); } }; timer.scheduleRepeating(1); // 10 seconds } private void updateTable() { flexTable.clear(); for (Integer i = 0; i 50; i++) { flexTable.setWidget(i, 0, new InlineLabel(ROW - + i.toString())); flexTable.setWidget(i, 1, new HTML(Test HTML Widget 1- + i.toString())); flexTable.setWidget(i, 2, new InlineLabel(Test InlineLabel Widget 2- + i.toString())); } } } Now I understand that we're probably going about this all wrong but how should we do it? Thanks in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to parse CSS
Thanks for your answer :) Does the CssResource feature allow me to get access to a property value of a selector in the CSS?? Explanation : I want to get the width and the height that I set in my css, to use them in the java side. Thank you On 27 mai, 00:55, Thomas Broyer t.bro...@gmail.com wrote: On 26 mai, 16:48, Amine Ouahman amine.aitouah...@gmail.com wrote: Hi everybody, I'm seeking some ideas about how to parse my CSS files and generate a java class. If your goal is to generate a CssResource interface, GWT already gives you the com.google.gwt.resources.css.InterfaceGenerator tool (launch it as java -cp gwt-user.jar com.google.gwt.resources.css.InterfaceGenerator) Otherwise, you can use CSSParser or Flute (GWT uses a patched version of Flute). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
UiBinder performance: Impacted by Dependency Injection (provided=true)?
Hi, one of the advantages of UiBinder is, that it's building DOM structures by cramming big strings of HTML into innerHTML attributes than by a bunch of API calls (http://code.google.com/webtoolkit/doc/ latest/DevGuideUiBinder.html#Overview). First of all, I want to admit that I don't yet fully understand, at which point this is done: Is the HTML string produced at compile time (as far as possible), or only at runtime? Now my question: I have several nested UiBinder composites, and I'd prefer to build them in Dependency Injection style [*]. Does this approach have a negative impact on the performance advantage of UiBinder? Thanks Chris [*] Here's some simplified code: public class Outer extends Composite { ... @UiField(provided=true) Inner inner; public Outer(Inner inner) { this.inner = inner; initWidget(uiBinder.createAndBindUi(this)); } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: New open source MVP(UiBinder) GWT Framework with GIN - Handlebars
Hey Wil, I added a wiki on how to use Place Service in Handlebars, but it's also a good HOWTO for Place Service implementation in general. http://code.google.com/p/handlebars/wiki/PlaceServiceOverview I'd be happy to answer any questions. On May 26, 7:30 pm, wil.pannell wpann...@pillartechnology.com wrote: Hey Tristan, I'm particularly interested in how you implemented the place service. What I've seen in other APIs seem excessively overly complex. Thanks for your reply, Wil On May 25, 12:51 pm, Tristan tristan.slomin...@gmail.com wrote: Hey Wil, Actually it sounds like it ran perfectly :) . That's all it did initially. Since it is not very interesting, today, because of your feedback, I added a very rudimentary login presenter to the landing page which will now take you (no matter what credentials you provide) to the dashboard page (and all that says is At Dashboard!). But it illustrates how the presenters get hooked into the pages, etc. Is there particular functionality you would like to see implemented? That will give me a focus area as I continue developing the starter project. Cheers! Tristan On May 25, 4:37 am, wil.pannell wpann...@pillartechnology.com wrote: Tristan, Your work looks interesting and I'd like to find out more, but I was unable to get your sample app to run correctly. All I see is a sample page that says, Welcome to Handlebars. Can you upload eclipse project settings or a maven pom? Wil On May 1, 4:58 pm, Tristan tristan.slomin...@gmail.com wrote: First, thanks. Glad to see there's some interest. I have limited resources, so I want to focus on the important things. Hence, if you have questions or suggestions, please let me know, that way I know what to spend time on first. @Stephen Unfortunately I'm not an Eclipse Plugin developer, so there's no code generation going on... yet. Having said that, the whole thing was put together with code generation in mind by being as declarative as possible. The specific code for some functionality goes into well defined areas like onAtPlace() method in presenter for example. So, in theory, you can declare your entire page, presenter, and view architecture and then just fill in the bits where they need to go and it will work. Been doing it by hand and have have a checklist I follow, but all the boiler plate can (and should) be code generated. The Eclipse Plugin is definitely on the roadmap (I'll post that on there soon), but for now it still provides a nice framework for the client side app. Handlebars Roadmap: - Setup a starter handlebars project - Open source the server side App Engine code Future Plans: - Eclipse Plugin Tristan On May 1, 8:35 am, Stephen Haberman stephen.haber...@gmail.com wrote: http://code.google.com/p/handlebars/ Spiffy. The page mentions using Eclipse code generation--I like that. What sort of files are you generating? - Stephen -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at
A way to implement place service in GWT
I've written a wiki on how Place Service is implemented in Handlebars. However, after the fact I realized that it's also a HOWTO document of a way to implement a place service in general that is fairly robust. I hope you'll find this document useful, and I'd be happy to answer any questions or hear your comments. http://code.google.com/p/handlebars/wiki/PlaceServiceOverview Cheers! Tristan -- You received 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 Framework in GWT 2.1 M1 ?
It exists but the javadoc wasn't included for some reason. A presenter is called Activity. I'm guessing to make it more familiar to Android development. You can see the code for activities and places here: http://code.google.com/p/google-web-toolkit/source/browse/branches/2.1/bikeshed/src/com/google/gwt/?r=8009#gwt/app/place%3Fstate%3Dclosed On May 20, 4:44 am, metrixon metri...@gmail.com wrote: I just downloaded the M1 release ofGWT2.1and was wondering where I can find more information on the MVP framework that will be part ofGWT2.1. I looked around the Javadocs but did not find anything like it. Is the MVP framework already part of the M1 release ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Guice and RpcServlet
Hi, I would like to use the new and experimental [1] Direct-Eval RPC of GWT 2 with server-side Guice. However, I could only find information on configuring Guice and GWT for the old RPC, see [2]. To inject the service, the latter blog suggests: @Singleton public class GuiceRemoteServiceServlet extends RemoteServiceServlet { @Inject private Injector injector; @Override public String processCall(String payload) throws SerializationException { try { RPCRequest req = RPC.decodeRequest(payload, null, this); RemoteService service = getServiceInstance( req.getMethod().getDeclaringClass()); return RPC.invokeAndEncodeResponse(service, req.getMethod(), req.getParameters(), req.getSerializationPolicy()); } catch (IncompatibleRemoteServiceException ex) { log(IncompatibleRemoteServiceException in the processCall(String) method., ex); return RPC.encodeResponseForFailure(null, ex); } } @SuppressWarnings({unchecked}) private RemoteService getServiceInstance(Class serviceClass) { return (RemoteService) injector.getInstance(serviceClass); } } What is the recommended way to do this with the new RpcServlet instead of RemoteServiceServlet? Many thanks, Kaspar [1] http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideDeRPC [2] http://stuffthathappens.com/blog/2009/09/14/guice-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: How to parse CSS
Yup, fairly heavily documented here: http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#CssResource On May 27, 3:45 am, Amine Ouahman amine.aitouah...@gmail.com wrote: Thanks for your answer :) Does the CssResource feature allow me to get access to a property value of a selector in the CSS?? Explanation : I want to get the width and the height that I set in my css, to use them in the java side. Thank you On 27 mai, 00:55, Thomas Broyer t.bro...@gmail.com wrote: On 26 mai, 16:48, Amine Ouahman amine.aitouah...@gmail.com wrote: Hi everybody, I'm seeking some ideas about how to parse my CSS files and generate a java class. If your goal is to generate a CssResource interface, GWT already gives you the com.google.gwt.resources.css.InterfaceGenerator tool (launch it as java -cp gwt-user.jar com.google.gwt.resources.css.InterfaceGenerator) Otherwise, you can use CSSParser or Flute (GWT uses a patched version of Flute). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.1m1/DateTimeFormat - format for full time has changed
Hi, Some of my unit test failed after switching to GWT 2.1m1. This is due to the following change: http://code.google.com/p/google-web-toolkit/source/diff?spec=svn8214r=7629format=sidepath=/trunk/user/src/com/google/gwt/i18n/client/constants/DateTimeConstantsImpl.propertiesold_path=/trunk/user/src/com/google/gwt/i18n/client/constants/DateTimeConstantsImpl.propertiesold=4905 The full format for time has changed from h:mm:ss a v to h:mm:ss a . The first give me 1:00:00 AM Etc/GMT-1 but the second 1:00:00 AM UTC+1, so the same as the long format. Is it a regression? or was there a bug before? Olivier -- You received 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: Unable to get upload results from FileUpload
Hi Fahim: Check your server error log. On Thu, May 27, 2010 at 1:05 AM, Fahim fahimr...@gmail.com wrote: Hi All, I am using FileUpload widget to upload a file. Either file is being uploaded successfully or failed I am not able to get the results using event.getResults() in onSubmitComplete event because it is always null. The response type of the service which I am calling to upload is text/xml. Here is the response copied from fiddler: HTTP/1.1 200 OK Date: Wed, 26 May 2010 19:16:42 GMT Server: Apache X-UA-Compatible: IE=EmulateIE7 Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Connection: close Content-Type: text/xml xmlResponsestatuscode500/codemessageAn unknown system error occurred while processing the request./messagesubcode500/ subcode/status/xmlResponse Any thoughts why am I not getting the above xml in in event.getResults()? Thanks, Fahim -- You received 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: Triggering download in GWT via RPC
Hi Andreas: It's quite possible to ... trigger a download via GWT... You don't say what MIME type you're wanting. For example, I trigger a download of PDF document. GWT code cannot handle that, so the trigger is a GWT write to an IFrame URL. The browser then renders the PDF in that frame. Perhaps you want to download HTML? If so, you have to stuff those results into some GWT widget. I usually do something like a MIME type of text/json, which can be handled using a Javascript overlay type. { status:%S-Success, cargo:divstuff/div} which can handle situations like {status:%F-Fail,cargo:divrequested data not found/div} On Thu, May 27, 2010 at 7:17 AM, andreas horst.andrea...@googlemail.comwrote: Hi, I'm trying to trigger a download via GWT rpc and/or GWT RequestBuilder. The motivation of using rpc and/or RequestBuilder is the ability to send data required for the on-the-fly generated download files that way. I already managed to modify the underlying request by using RequestBuilder as return value of the rpc service method. The request is routed to a HttpServlet implementing the doPost method. GWT utility classes are used to obtain the RPCRequest instance and the given parameters of the rpc service call successfully out of the HttpRequest. After using the parameters and assembling the file on the servlet in the doPost method the HttpResponse instance is used to write that file. Headers 'content-disposition' and 'content-type' are set accordingly to trigger a download in the browser. However a download does not start. The response is accessible in the RequestCallback instance assigned to the request. The point I do not get about this is why the browser does not react to the content disposition by downloading the file and instead passing the response back to the ajax-world. I know that the rpc or request would fail otherwise but that would be perfectly fine, since no response is desired but a download. Related posts: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/be6f95db3a4313c2/8f10a1c1e6500ccf?lnk=gstq=download#8f10a1c1e6500ccf http://groups.google.com/group/google-web-toolkit/browse_thread/thread/388e72fb8e652122/dea4693ce6642f2c?lnk=gstq=download#dea4693ce6642f2c I know that there are solutions with backposts and passing data via parameters in the request url, but i would love to just stick to one mechanism which is GWT rpc. I read a lot about that doing what i would like to do is not possible but no one really said why. I especially wonder why the browser does not do its thing since it is surely the one that gets the response before the ajax code doesn't he? I would like to hear about other solutions and if possible about why exactly it is not possible to trigger download via GWT rpc. After all escaping the GWT rpc mechanism on the server side works fine but on the browser side not. Any ideas? Greetings, Andreas -- You received 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.
Add a Widget into/onto Grid without resizing Grid Cell/Column
Hey, I'm making a calendar-like application, and right now I'm just messing around with different options. One of the things I absolutely need is to be able to place a group of widgets/panel on a panel on or over a table/grid that I've set up with click listeners, and have the Grid not resize to accomodate the size of the widgets/panel. Up until now I've just been using a single widget for tests, so I've been using a SimplePanel(), but I need to add a top and a bottom to the widget now, so I need to use a VerticalPanel(). I've got the program set up so that when I click a blank cell on the table, it creates a label and places it there. It's been doing what I wanted it to do, as in adding the label to the Grid, and not re-sizing the row to fit it's size (Here is an example: http://internetexample.appspot.com/ If you view it in Firefox, it does what I want it too, but if you do it in chrome, it doesn't do what I want it to). How can I properly get it to work in all browsers, preferably with a label and a few widgets within a VerticalPanel. Thanks! ~Scott -- You received 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 parse CSS
I already read the hole doc but still cannot find a solution to my problem, I'm surely missing something. here is why I've done : this is an exemple of how I used the CSSResource feature to retrieve a constant from the css file and use it in the java side, and it works public interface Resources extends ClientBundle{ @Source(TestParser.css) public MyCSSResources css(); } public interface MyCSSResources extends CssResource{ String testsize(); String small(); } TestParser.css = @def small 1px; .testsize { font-size: 40px; } Somewhere in a java class = Resources resources = GWT.create(Resources.class); label1.setStyleName(resources.css().testsize()); label1.setText(resources.css().small()); resources.css().ensureInjected(); Now what I want to do somehow is to retrieve the font-size value instead of the constant!! A simple example plz will be great! 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: onLoad?
Hi, you find the current javadocs here http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html?overview-summary.html http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/Widget.html and in your downloaded SDK the behaviour of onLoad and onUnload are documented Stefan Bachert http://gwtworld.de On 27 Mai, 06:43, spierce7 spier...@gmail.com wrote: Hey guys, I'm creating a class that extends Label, and for some reason whenever I create an instance of it, it doesn't load the onLoad() class when it's instantiated. I've got it set up the exact same way I have a class that extends grid, that properly uses onLoad, but for some reason this isn't. The idea occurred to me that I don't even really know what onLoad does exactly. What is the difference between onLoad and a constructor, and how should I be using them differently? (yes I did a search). Out of curiosity how does onModuleLoad() fit into the mix also? 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: Triggering download in GWT via RPC
The point I do not get about this is why the browser does not react to the content disposition by downloading the file and instead passing the response back to the ajax-world... snip ... I read a lot about that doing what i would like to do is not possible but no one really said why. Browsers don't allow it because it is a major security issue. If it were possible, websites would start delivering malware using these mechanisms. Many people are stupid to just click okay. There is no way to automatically trigger a file download in a browser. File download can only begin when the user explicitly takes an action - such as clicking on a link. --Sri On 27 May 2010 19:47, andreas horst.andrea...@googlemail.com wrote: Hi, I'm trying to trigger a download via GWT rpc and/or GWT RequestBuilder. The motivation of using rpc and/or RequestBuilder is the ability to send data required for the on-the-fly generated download files that way. I already managed to modify the underlying request by using RequestBuilder as return value of the rpc service method. The request is routed to a HttpServlet implementing the doPost method. GWT utility classes are used to obtain the RPCRequest instance and the given parameters of the rpc service call successfully out of the HttpRequest. After using the parameters and assembling the file on the servlet in the doPost method the HttpResponse instance is used to write that file. Headers 'content-disposition' and 'content-type' are set accordingly to trigger a download in the browser. However a download does not start. The response is accessible in the RequestCallback instance assigned to the request. The point I do not get about this is why the browser does not react to the content disposition by downloading the file and instead passing the response back to the ajax-world. I know that the rpc or request would fail otherwise but that would be perfectly fine, since no response is desired but a download. Related posts: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/be6f95db3a4313c2/8f10a1c1e6500ccf?lnk=gstq=download#8f10a1c1e6500ccf http://groups.google.com/group/google-web-toolkit/browse_thread/thread/388e72fb8e652122/dea4693ce6642f2c?lnk=gstq=download#dea4693ce6642f2c I know that there are solutions with backposts and passing data via parameters in the request url, but i would love to just stick to one mechanism which is GWT rpc. I read a lot about that doing what i would like to do is not possible but no one really said why. I especially wonder why the browser does not do its thing since it is surely the one that gets the response before the ajax code doesn't he? I would like to hear about other solutions and if possible about why exactly it is not possible to trigger download via GWT rpc. After all escaping the GWT rpc mechanism on the server side works fine but on the browser side not. Any ideas? Greetings, Andreas -- You received 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: Activation of Minimised firefox browser
I don't think it is possible to minimize or maximize a browser through javascript. --Sri On 26 May 2010 09:54, Subbu siva.subraman...@gmail.com wrote: Hi, If the browser is minimised, I am looking for an solution which should activate and show the firefox browser by an event from the server. If the browser overlapped by any other applications, it should bring to the forefront of the user immediately. Please let me know how to deal this problem with Gwt in firefox. Thanks in advance. br Subbu. -- You received 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: UiBinder performance: Impacted by Dependency Injection (provided=true)?
On 27 mai, 13:13, Chris Lercher cl_for_mail...@gmx.net wrote: Hi, one of the advantages of UiBinder is, that it's building DOM structures by cramming big strings of HTML into innerHTML attributes than by a bunch of API calls (http://code.google.com/webtoolkit/doc/ latest/DevGuideUiBinder.html#Overview). First of all, I want to admit that I don't yet fully understand, at which point this is done: Is the HTML string produced at compile time (as far as possible), or only at runtime? Compile-time! Hint: pass the -gen argument to Compiler and go look at the generated Java classes. Now my question: I have several nested UiBinder composites, and I'd prefer to build them in Dependency Injection style [*]. Does this approach have a negative impact on the performance advantage of UiBinder? Neither negative nor positive. -- You received 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 parse CSS
Hi Amine, when you want to get the font-size value, you should do an @def for this value .css @def myFontSize 40px; .. .testsize { font-size: myFontSize; } .java .. label1.setText(resources.css().myFontSize()); or you do it like the way a1decor it does .css @eval MyFontSize my.classesWithStaticFunctions.getFontSize(); .. .testsize { font-size: MyFontSize; } .java my.classesWithStaticFunctions.getFontSize() {return 40px;} ... label1.setText(my.classesWithStaticFunctions.getFontSize()); With the later you are able to change it before injecting the css. Stefan Bachert http://gwtworld.de On 27 Mai, 17:19, Amine Ouahman amine.aitouah...@gmail.com wrote: I already read the hole doc but still cannot find a solution to my problem, I'm surely missing something. here is why I've done : this is an exemple of how I used the CSSResource feature to retrieve a constant from the css file and use it in the java side, and it works public interface Resources extends ClientBundle{ @Source(TestParser.css) public MyCSSResources css(); } public interface MyCSSResources extends CssResource{ String testsize(); String small(); } TestParser.css = @def small 1px; .testsize { font-size: 40px; } Somewhere in a java class = Resources resources = GWT.create(Resources.class); label1.setStyleName(resources.css().testsize()); label1.setText(resources.css().small()); resources.css().ensureInjected(); Now what I want to do somehow is to retrieve the font-size value instead of the constant!! A simple example plz will be great! 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: How to parse CSS
Thank you Stefan :) On 27 mai, 17:59, Stefan Bachert stefanbach...@yahoo.de wrote: Hi Amine, when you want to get the font-size value, you should do an @def for this value .css @def myFontSize 40px; .. .testsize { font-size: myFontSize; } .java .. label1.setText(resources.css().myFontSize()); or you do it like the way a1decor it does .css @eval MyFontSize my.classesWithStaticFunctions.getFontSize(); .. .testsize { font-size: MyFontSize; } .java my.classesWithStaticFunctions.getFontSize() {return 40px;} ... label1.setText(my.classesWithStaticFunctions.getFontSize()); With the later you are able to change it before injecting the css. Stefan Bacherthttp://gwtworld.de On 27 Mai, 17:19, Amine Ouahman amine.aitouah...@gmail.com wrote: I already read the hole doc but still cannot find a solution to my problem, I'm surely missing something. here is why I've done : this is an exemple of how I used the CSSResource feature to retrieve a constant from the css file and use it in the java side, and it works public interface Resources extends ClientBundle{ @Source(TestParser.css) public MyCSSResources css(); } public interface MyCSSResources extends CssResource{ String testsize(); String small(); } TestParser.css = @def small 1px; .testsize { font-size: 40px; } Somewhere in a java class = Resources resources = GWT.create(Resources.class); label1.setStyleName(resources.css().testsize()); label1.setText(resources.css().small()); resources.css().ensureInjected(); Now what I want to do somehow is to retrieve the font-size value instead of the constant!! A simple example plz will be great! 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: A way to implement place service in GWT
On 27 mai, 13:41, Tristan tristan.slomin...@gmail.com wrote: I've written a wiki on how Place Service is implemented in Handlebars. However, after the fact I realized that it's also a HOWTO document of a way to implement a place service in general that is fairly robust. I hope you'll find this document useful, and I'd be happy to answer any questions or hear your comments. http://code.google.com/p/handlebars/wiki/PlaceServiceOverview Cheers! Have you measured using a GWT event per place vs. a single GWT event carrying a Place object? (BTW it would cut the number of classes by 4 --no need for both a AtLandingPage and GoToLandingPage events, and their corresponding EventHandler interfaces, just a LandingPage place) I also notice that: - the GoToPlace is only used to talk to the place service, how about having the place service injected and call a goTo() method on it directly? - the GoToPlace request is imperative, it cannot be cancelled (e.g. you changed some field values and you want to ask the user confirmation before leaving without saving his changes); this would be fixed if it wasn't an event fired by the class that triggers it but by the PlaceService itself. - you're forcing everyone to use your #sometoken? some=querystring=likename=valuepair=parameters kind of history tokens, what if I'd prefer something like #/documents/some/folder for instance? Have you seen the work being done in GWT itself in the bikeshed project? (look into the branches/2.1 branch in SVN, not the trunk) It does not yet link places to the browser history but allows previewing (and cancelling) the GoToPlace event (or equivalent). My own PlaceManager (at work, not open source) does the same too. -- You received 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.1m1/DateTimeFormat - format for full time has changed
On 27 mai, 16:02, Olivier Monaco olivier.mon...@free.fr wrote: Hi, Some of my unit test failed after switching to GWT 2.1m1. This is due to the following change:http://code.google.com/p/google-web-toolkit/source/diff?spec=svn8214;... The full format for time has changed from h:mm:ss a v to h:mm:ss a . The first give me 1:00:00 AM Etc/GMT-1 but the second 1:00:00 AM UTC+1, so the same as the long format. Is it a regression? or was there a bug before? I suspect locale data has been updated to the latest Unicode CLDR data. http://cldr.unicode.org/ -- You received 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.
the dropdown menubar on the top of a frame cannot be collapsed
I have a screen with a menu bar on the top of the screen. Below the menu bar there is a frame within a vertical panel. If clicking one menu with multiple menuitems and select one item the frame loads a specified web page, for example, www.google.com. Then the problem occurred: when I clicked the menu again and the menu dropped down and the drop down menu is over the top of the frame, the drop down menu would not collapse back even if I clicked any where on the frame just outside of the drop down menu. The problem would not occur if the frame is replaced by another widget, for example, a FlexTable. How can I get the drop down collapse back in that case? Thanks, Mike J. -- You received 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 Python
was reading about pyjamas. Quoting from the site mentioned by nacho http://ajaxian.com/archives/pyjamas-gwt-for-python Pyjamas, a sort of GWT for Python or is pyjamas a complete port of GWT, which can be used from python. On May 27, 1:29 am, nacho vela.igna...@gmail.com wrote: It's not gwt but you can try thishttp://ajaxian.com/archives/pyjamas-gwt-for-python On 22 mayo, 23:06, kunal ghosh kunal...@gmail.com wrote: Hi all, I was following the Google IO keynotes this year and having done so last year also noticed a few things with respect to App engine. Google has been making a lot of announcements and adding a lot of features to GWT, a java based framework. Python on the other hand doesn't feature anywhere in google's announcements :( . Does this mean that Google is trying to promote GWT+java for appengine, in the long run ? Also how can i use the features available in GWT using python as a language of my choice for app-engine. -- regards --- Kunal Ghosh Dept of Computer Sc. Engineering. Sir MVIT Bangalore,India Blog:kunalghosh.wordpress.com Website:www.kunalghosh.net46.net V-card:http://tinyurl.com/86qjyk -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Where to place new Widget class?
Hello, I am absolutely new to GWT and I would like to start with a generic panel as a container for my GUI. So I created a new Panel derived from SimplePanel and added it to my host page: final MyPanel p = new MyPanel (); RootPanel.get(TestContainer).add(p); Within the panel constructor I create a text box, so that I can verify that everything works. However, I wonder where to place my panel class: I placed a class ClientPanel in the client directory and a class ServerPanel in the server directory within the eclipse project directory tree. When I use the ClientPanel, it works. When I use the ServerPanel, I get errors within eclipse, e. g. [ERROR] [firstwebapp] Unable to find type 'fwa.Application.client.FirstWebApp' Any hints? Thank you Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to achieve traditional website behavior with layout panels?
Hi Dennis, I still think what traditional behaviour should be. (? not following the standards?) However, you don't want scrollbars at your LayoutPanel. The reason why any widget gets a scrollbar is because it is larger than its parent and the style overflow is set to auto or scroll. When the wrong widget get a scrollbar you have to change the size of the panel (div) hierarchy. Or you have to allow the parents to grow with its child. When you do not succeed you need to show us your code or at least the hierarchy of panels. Stefan Bachert http://gwtworld.de On 26 Mai, 10:33, googelybear googelyb...@gmail.com wrote: Hi, I am developing a webapp that should behave like a traditional web page, meaning that when the content grows in height the browser should display a vertical scroll bar. Unfortunately I was foolish and jumped right in on the new, shiny layout panels. As I found out later these are not suitable for me, as they create a more application-like look and feel with scrollbars displayed in the individual gwt panels instead of the browser (try resizing e.g. google wave - When the available area is too small scrollbars will appear inside all the panels, the browser will never display any scrollbars) and also they are working with lots of fixed sizes (in my case the content is dynamic). I tried to achieve the traditional behavior with my LayoutPanels but failed. I couldn't get the browser to display scrollbars, only inner- panel scrolling, and stuffing a layoutpanel inside a scrollpanel is not the desirable approach (stuffing layout panels inside non-layout panels usually ended badly for me..). So my conclusion is to revert to the old school panels. But I am afraid that support of these will be dropped soon. What do you think? Are there better alternatives? Anyone fought with a similar problem? thanks for any suggestions, Dennis -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UIBinder, Refresh and binding
I am not looking for 2 lines solution for whole problem. I am looking for solution which can be implemented once and then allow to bind objects in 2 lines... And from what I understand - changing code of UIBinder would be one of the ways to make this solution. Can you help me with some links/examples/descriptions of changing UiBinder code and/or implementing my own UiBinder? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Where to place new Widget class?
Could you say what the purpose of a ServerPanel is? Everything for GWT afaik should be placed in the client or shared directory. I don't think there is much sense in using client-side ui objects on the server. On Thu, May 27, 2010 at 11:55 AM, Magnus alpineblas...@googlemail.comwrote: Hello, I am absolutely new to GWT and I would like to start with a generic panel as a container for my GUI. So I created a new Panel derived from SimplePanel and added it to my host page: final MyPanel p = new MyPanel (); RootPanel.get(TestContainer).add(p); Within the panel constructor I create a text box, so that I can verify that everything works. However, I wonder where to place my panel class: I placed a class ClientPanel in the client directory and a class ServerPanel in the server directory within the eclipse project directory tree. When I use the ClientPanel, it works. When I use the ServerPanel, I get errors within eclipse, e. g. [ERROR] [firstwebapp] Unable to find type 'fwa.Application.client.FirstWebApp' Any hints? Thank you Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -Pav -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Where to place new Widget class?
As I said, I am absolutely new to GWT. I don't know, which code to put on the server and which on the client. Is there a basic rule, then please let me know. In general, I would try to put as much as possible to the server, but I cannot really judge, what fits where best... Thank you Magnus On May 27, 7:10 pm, Pavel Byles pavelby...@gmail.com wrote: Could you say what the purpose of a ServerPanel is? Everything for GWT afaik should be placed in the client or shared directory. I don't think there is much sense in using client-side ui objects on the server. On Thu, May 27, 2010 at 11:55 AM, Magnus alpineblas...@googlemail.comwrote: Hello, I am absolutely new to GWT and I would like to start with a generic panel as a container for my GUI. So I created a new Panel derived from SimplePanel and added it to my host page: final MyPanel p = new MyPanel (); RootPanel.get(TestContainer).add(p); Within the panel constructor I create a text box, so that I can verify that everything works. However, I wonder where to place my panel class: I placed a class ClientPanel in the client directory and a class ServerPanel in the server directory within the eclipse project directory tree. When I use the ClientPanel, it works. When I use the ServerPanel, I get errors within eclipse, e. g. [ERROR] [firstwebapp] Unable to find type 'fwa.Application.client.FirstWebApp' Any hints? Thank you Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -Pav -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT with JPA - no persistence provider
Hi, go to the warnings (e.g. panel Markers), use Quick Fix, then you can choose to include your jpa-project into WEB-INF/lib Stefan Bachert http://gwtworld.de On 13 Mai, 14:25, maliniak malini...@gmail.com wrote: GWT with JPA There are two projects in my eclipse workspace, let's name them: -JPAProject -GWTProject JPAProject contains JPA configuration stuff (persistence.xml, entity classes and so on). GWTProject is an examplary GWT project (taken from official GWT tutorial). Both projects work fine alone. That is, I can create EMF (EntityManagerFactory) in JPAProject and get entities from the database. GWTProject works fine too, I can run it, fill the field text in the browser and get the response. My goal is to call JPAProject from GWTProject to get entities. But the problem is that when calling DAO, I get the following exception: - [WARN] Server class 'com.emergit.service.dao.profile.ProfileDaoService' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/home/maliniak/workspace/ emergit/build/classes/' to the web app classpath for this session For additional info see: file:/home/maliniak/.eclipse/ org.eclipse.platform_3.5.0_155965261/plugins/ com.google.gwt.eclipse.sdkbundle.2.0.3_2.0.3.v201002191036/gwt-2.0.3/ doc/helpInfo/webAppClassPath.html [WARN] Server class 'javax.persistence.Persistence' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/home/maliniak/workspace/ libraries/EclipseLink%202.0.2/eclipselink/jlib/jpa/ javax.persistence_2.0.0.v201002051058.jar' to the web app classpath for this session For additional info see: file:/home/maliniak/.eclipse/ org.eclipse.platform_3.5.0_155965261/plugins/ com.google.gwt.eclipse.sdkbundle.2.0.3_2.0.3.v201002191036/gwt-2.0.3/ doc/helpInfo/webAppClassPath.html [WARN] /gwttest/greet javax.persistence.PersistenceException: No Persistence provider for EntityManager named emergitPU at javax.persistence.Persistence.createEntityManagerFactory(Unknown Source) at javax.persistence.Persistence.createEntityManagerFactory(Unknown Source) at com.emergit.service.dao.profile.JpaProfileDaoService.init(JpaProfileDaoService.java: 19) at pl.maliniak.server.GreetingServiceImpl.init(GreetingServiceImpl.java: 21) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java: 39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java: 27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java: 339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 463) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java: 49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 395) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:488) [ERROR] 500 - POST /gwttest/greet (127.0.0.1) 3812 bytes Request headers Host: 127.0.0.1: User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: 1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/ *;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding:
Re: A way to implement place service in GWT
Thanks Thomas, Lots to consider here, let me take a look at the references you pointed out and then I'll be better able to respond. I'm all for making things simpler. On May 27, 11:08 am, Thomas Broyer t.bro...@gmail.com wrote: On 27 mai, 13:41, Tristan tristan.slomin...@gmail.com wrote: I've written a wiki on how Place Service is implemented in Handlebars. However, after the fact I realized that it's also a HOWTO document of a way to implement a place service in general that is fairly robust. I hope you'll find this document useful, and I'd be happy to answer any questions or hear your comments. http://code.google.com/p/handlebars/wiki/PlaceServiceOverview Cheers! Have you measured using a GWT event per place vs. a single GWT event carrying a Place object? (BTW it would cut the number of classes by 4 --no need for both a AtLandingPage and GoToLandingPage events, and their corresponding EventHandler interfaces, just a LandingPage place) I also notice that: - the GoToPlace is only used to talk to the place service, how about having the place service injected and call a goTo() method on it directly? - the GoToPlace request is imperative, it cannot be cancelled (e.g. you changed some field values and you want to ask the user confirmation before leaving without saving his changes); this would be fixed if it wasn't an event fired by the class that triggers it but by the PlaceService itself. - you're forcing everyone to use your #sometoken? some=querystring=likename=valuepair=parameters kind of history tokens, what if I'd prefer something like #/documents/some/folder for instance? Have you seen the work being done in GWT itself in the bikeshed project? (look into the branches/2.1 branch in SVN, not the trunk) It does not yet link places to the browser history but allows previewing (and cancelling) the GoToPlace event (or equivalent). My own PlaceManager (at work, not open source) does the same too. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UiBinder performance: Impacted by Dependency Injection (provided=true)?
Thanks. On May 27, 5:53 pm, Thomas Broyer t.bro...@gmail.com wrote: On 27 mai, 13:13, Chris Lercher cl_for_mail...@gmx.net wrote: Hi, one of the advantages of UiBinder is, that it's building DOM structures by cramming big strings of HTML into innerHTML attributes than by a bunch of API calls (http://code.google.com/webtoolkit/doc/ latest/DevGuideUiBinder.html#Overview). First of all, I want to admit that I don't yet fully understand, at which point this is done: Is the HTML string produced at compile time (as far as possible), or only at runtime? Compile-time! Hint: pass the -gen argument to Compiler and go look at the generated Java classes. Now my question: I have several nested UiBinder composites, and I'd prefer to build them in Dependency Injection style [*]. Does this approach have a negative impact on the performance advantage of UiBinder? Neither negative nor positive. -- You received 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.
Preliminary tech evaluation results
I just wanted to say that we were able to implement our limited set of functionality with very little trouble. GWT gets a full pass. We're going to try two other technologies before we make our choice. -- Family photographs are a critical legacy for ourselves and our descendants. Protect that legacy with a digital backup and recovery plan. Join the photo preservation advocacy Facebook group: http://www.facebook.com/home.php?ref=logo#/group.php?gid=148274709288 -- You received 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 Framework in GWT 2.1 M1 ?
Actually, it is on the javadoc page at http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html under com.google.gwt.app.place package. It also includes PlaceManager, Activity (presenter) mappings Bikeshed example, though clumpy, sheds plenty of light on how it can be used. On May 27, 3:24 pm, pjulien pjul...@gmail.com wrote: It exists but the javadoc wasn't included for some reason. A presenter is called Activity. I'm guessing to make it more familiar to Android development. You can see the code for activities and places here: http://code.google.com/p/google-web-toolkit/source/browse/branches/2 On May 20, 4:44 am, metrixon metri...@gmail.com wrote: I just downloaded the M1 release ofGWT2.1and was wondering where I can find more information on the MVP framework that will be part ofGWT2.1. I looked around the Javadocs but did not find anything like it. Is the MVP framework already part of the M1 release ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to create a large table?
Hello there, I'm guessing this is a simple problem, but I can't solve it for days and I don't know what else to do. i'm creating a new widget. I'm using the UiBinder with a HTMLPanel, and in this panel I've created a table. This table has around 50 rows and 4 columns. I need to have access to each cell to be able to set its content. So first I've tried with a simple approach: each cell contains a span id=xxx/span. On the Java side, I initialize the widget with initWidget(uiBinder.createAndBindUi(this)); and then set the content of each span with RootPanel.get(xxx).add(new Label(xxx)); The problem was that RootPanel.get(xxx) will always return null. I was thinking that this is because the widget hasn't yet been added to its parent component (at that point), so the xxx field hasn't been attached to the DOM tree. I've tried a different approach. First I've added the widget, and then I called something like an initInternalComponents() method, which did the RootPanel.get(xxx) thing. In this case, I got an exception A widget that has an existing parent widget may not be added to the detach list After several hours of trying to fix this, I gave up and tried another approach. I replaced all the span tags with g:Label ui:field=xxx/. On the Java side, I declared all 200+ components as a @UiField Label xxx. This did work. The problem now is how to access each field. Let's say I want to set the text of the cell in row 35, column 2. In that case, I'd have a label with the name field35by2 declared as an @UiField. What I was thinking of doing is using reflection: getClass().getField(field+row+by+column).get(this) This would actually work in a normal Java application, but GWT doesn't support reflection, so now I'm back to where I've started 2 days ago. So can anyone help me how to solve this problem? I've tried a table component but it wasn't what I wanted, it restricted me too much in accessing a specific cell, or adding random components to different cells (in the end, I'd also have TextFields, Buttons, ListBoxes in this tables). An ideal solution would be to have Table table = new Table(); for (int row=0; row50; row++) { table.newRow(); for (int col=0; col50; col++) { Cell cell = table.newCell(); cell.add( new Label(xxx ) ); } } and after that, I'd just do table.getCell(35, 2).getWidget() to obtain the Label or whatever. How to do this? Thanks in advance for any help! Csaba -- You received 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-html5-media
Are you Qi Jiang? This is Denglin Chen from CO From: Mike Jiang mikej1...@gmail.com To: google-web-toolkit@googlegroups.com Sent: Wed, May 26, 2010 2:45:09 PM Subject: Re: gwt-html5-media It's a very good try. I was wondering how I can get the whole thing as a project from within the Eclipse without downloading them piece by piece? Thanks, Mike J. On Wed, May 26, 2010 at 4:16 PM, Mark Renouf mark.ren...@gmail.com wrote: I've been sitting on a couple widgets I developed for a little bit but haven't yet put to good use, so I decided to put them out there and see if people find them useful. With HTML5 media capabilities now in nearly every modern browser (And IE9 on the way), I felt it's time to get this out there. This library handles the Audio and Video tags, as introduced by the HTML5 specification. Each have a large number of events which can be used to build very responsive custom controls. All of the documented events are implemented using the standard GWT 1.6+ Event Handler mechanisms. Events include information on content metadata, buffering, playback position, and even methods to adjust the playback speed (if your browser properly implements this). The code is available from GitHub. http://github.com/tweakt/gwt-html5-media Please take a look, try it out and let me know if you find this useful. I'd love some feedback and patches of course are always welcome. 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. -- You received 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.
Is there a way to wait a RequestBuilder action finished and then do next RequstBuilder action?
I'm using writing a login process from a remote server with GWT. The process is that client get a token first and then use this token and username to login in the server. So I wrote two methods. One is getToken , another is postLogin. Both use RequestBuider to communate to the remote server and should be executed orderly. But I found that POST action which is postLogin always execute before getLogin. The postLogin method will fail because the token is still not returned from the server. So, how to wait the first action finished and the perform the second one? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to center a VerticalPanel on page with UiBinder
Hello, I am new to gwt and I hope you can help me. I want to center a VerticalPanel on the page. g:VerticalPanel ui:field=vertialPanel !-- this panel should be in the middle of the page -- g:Label Login Settings/g:Label g:Labeltitle/g:Label g:Labelplaceholder/g:Label g:TextAreatext1/g:TextArea g:TextAreatext2/g:TextArea g:Labelstats/g:Label /g:VerticalPanel I tried several things like: ui:style .centerStyle { width: 800px; margin: 0 auto 0 auto; } /ui:style g:VerticalPanel ui:field=vertialPanel class='{style.centerStyle}' or @UiField VerticalPanel vertialPanel; public void onModuleLoad() { vertialPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); vertialPanel.setWidth(100%); RootLayoutPanel.get().add(uiBinder.createAndBindUi(this)); } My solutions all ended up with a page showing nothing... Can you perhaps give me a hint where to read more about this hole Ui Binder stuff? I think the google page is not very detailed... Thank you very much. Mark -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT, database connection on the server side
1. Make sure you are NOT using app engine. It took me a damn whole day to find out that app engine doesn't support db connection other than big table. 2. Try putting the mysql connector jar under war\web-inf\lib. On May 26, 3:22 am, LucHub luca.abb...@gmail.com wrote: Hi all, I have a RPC to get data from the server. On the client side I ask for the 'server' method. On the server side, once called, the service has to read a DB, let's say a mysql db. The Java driver is on my classpath. When on the server side I write Class.forName(...the driver class...) I get the java.lang.ClassNotFoundException for the driver's class. Where ma I wrong? The server side is not compiled to javascript, so it should work. Does GWT behave in a different way from the 'classpath' point of view compared to a Desktop application? Thanks a lot -- You received 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.
No new web application project button
I just recently installed Eclipse 3.5 on Windows 7. I followed the instructions on installing GWT plugin and SDK and it seems to have worked fine, however I do not have the option to create a new web application project or anything associated with GWT. What could I have done wrong to cause this and what can I do to fix it? 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.
GWT List box help
Hi, I am having issue with GWT List box. I want to move the selected item from one list box to other list box.After adding into the other listbox , i am removing from the source.But it is not working as expected. can you please let me know what needs to corrected in this code. Code: ListBox source = new ListBox(true); ListBox destination = new ListBox(true); for (int i = 0; i 5; ++i) { source.add(i); } onchange event, I am doing the following: for (int i = 0; i source.getItemCount(); ++i) { if (source.isItemSelected(i)) { destination.addItem(source.getItemText(i)); source.removeItem(i); } else { GWT.log(non selected Item : + source.getItemText(i)) ; } } -- You received 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 Hibernate Project Structure
I haven't tried Maven but I'm using GWT + Hibernate3 + Gilead. It's very difficult to setup Gilead as the example provided by GWT is very very outdated and no longer compatible. It took me 2 days to figure out how to set it up with the correct jar, import path and syntax. If you're still interested in Gilead, I can provide some info. On May 25, 9:38 pm, Maurice Nee lyden...@gmail.com wrote: Thanks Gabriel, I've read differing opinions on whether client and server code should be split into two projects. At this point, I really don't care which about which approach I use as long as I get something up and running that is error free. Could someone explain to me a specific procedure for setting up a GWT + Maven2 + Hibernate3 project in Eclipse? For instance, if I were to use only one project, do I create a new GWT project with the GWT Eclipse plugin and then modify its directory structure to conform to Maven's standard directory layout? Or, do I create a Maven project with the m2eclipse plugin and then enable GWT in that project? Frankly, I'm not sure where the best place to start is. This is my first project using multiple technologies together, and although I feel like I understand a good deal of how these technologies work individually, I don't understand how to make them work together. Any help would be most appreciated. On May 22, 10:07 am, Gabriel guz...@gmail.com wrote: Hi, Do you have a reason for splitting the application into two projects? If not, there is nothing preventing you from using a single project for both client and server. If you do need to have two projects, you can use two (server and client) or three (server, client and common) modules under one maven project and define the dependencies among them (if you hadn't used Maven, you could have used the IDE to define the dependencies between projects). I suggest you read the documentation here:http://code.google.com/eclipse/docs/users_guide.html On May 21, 6:20 am, Maurice Nee lyden...@gmail.com wrote: Hi, This is my first ever forum post. I really need some help with understanding how to setup aGWT2.0 Hibernate3 project. I understand theGWTRPC mechanism and the problems with serializingHibernate POJOs. I would prefer to use DTO's rather than Gilead or Dozer. So far, I have aHibernateProject built with Maven2 in Eclipse using the m2eclipse plugin and the HibernateTools plugin for Eclipse. I also have aGWT2.0 project built with theGWTplugin for Eclipse. I'm using MySql as the RDBMS. What I don't understand is how to setup, configure, and deploy the two projects in such a way that they can communicate with each other. Let's say with the above setup, I'm trying to persist a Person object that has only an id, and a name as fields. In myHibernateproject, I would create a Person.hbm.xmlHibernatemapping document, and then generate the correspondingHibernateJava POJO and MySql table. Then, in myGWTproject, I would create a serializable PersonDTO.java class that can be sent 'across the wire' to and from the server viaGWTRPC. Then, for simplicity's sake, let's say that in the client package of myGWTproject I create a CreatePersonService.java interface and a CreatePersonServiceAsync.java interface with one method, void createPerson(). I would then need a CreatePersonServiceImp.java class on the server side that implements createPerson(). Fine, but here's where I get confused. If the createPersonServiceImp.java class is going to transform a PersonDTO.java class into itsHibernatePOJO equivalent, then it needs to utilize classes from both myGWTEclipse project andHibernate Eclipse project. So which project do I put it in? It needs to have access toGWTclasses like PersonDTO, AsyncCallback and other RPC classes. It also needs access toHibernateclasses like SessionFactory, Transaction, etc. So it needs to have access to myGWT jars andHibernatejars which are in two separate projects. How do do I link them so that CreatePersonServiceImp.java has access to all the libraries it needs. Finally, how do I correctly merge both of these projects into one WAR file for deploying onto a server? Or am I way off track? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit
Do all classes in the a project need to be under a specific folder?
Hi Team, I am new to GWT and we are trying to port one of our smallest web application to GWT. We have the file Project.gwt.xml which was created via the webAppCreator with the following entry-point: entry-point class='com.project.web.client.Project'/ Some of the other classes are located in com.project.hr.bean package. The following is the error I get during build process: D:\Profiles\user1\workspace\projectant D:\Program Files\Java\jdk1.6.0_20 Buildfile: build.xml libs: javac: gwtc: [java] Compiling module com.onlineoffice.web.OnlineOffice [java]Validating newly compiled units [java] [ERROR] Errors in 'file:/D:/Profiles/user1/workspace/ project/src/com/project/web/client/DepartmentService.java' [java] [ERROR] Line 8: No source code is available for type com.project.hr.bean.DepartmentBean; did you forget to inherit a required module? [java]Finding entry point classes In this case, does gwtc look for class files only in com.onlineoffice.web path? How can I reference the com.project.hr.bean.DepartmentBean so that I can use it in DepartmentService.java? Thank You, Karl -- You received 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: Extending the 'Contact: MVP' example
I to would like to use MVP but find that i'm unable to present more than one view on the screen at a time. I would like to have 3-5 panels loading widgets based on selections in other panels. I attempted to create a presenter/view (just to test) that had both contact edit and contact list. The issue i ran into was the RPC fired i believe but the view never updated with the data. I haven't use GWT long enough to know the best way to ask the question but has anyone found a way to allow more than one View Presenter without creating a single Presenter to manage each of the views? I Was looking into HMVC but still unsure how to approach this. On Apr 13, 10:15 am, Sean C. sean.cra...@gmail.com wrote: The problem is that only one presenter can be active at a given time. If a presenter is controlling the left, right and center column, even handing the center column container to another presenter will not result in the original presenter giving up control or you get the effect of one view being drawn followed by the second view quickly replacing it. I ended up implementing the left and right columns as pure HTML+CSS and used JSNI or the History mechanism to trigger the appropriate View +Presenter to affect the center column. This way no presenter is controlling the left and right columns. Sean C. On Apr 12, 2:13 pm, Brian Reilly brian.irei...@gmail.com wrote: I think you should be able to do this pretty easily by putting something that implements HasWidgets (such as SimplePanel, FlowPanel, etc.) in your center column. You can then pass that container into your presenter as the place where its content should live. That should leave the other things that you've added to the RootPanel in place when you switch presenters for the center column. -Brian On Apr 10, 3:24 pm, Sean C. sean.cra...@gmail.com wrote: Having a similar problem with creating Composite Views backed by their respective Presenters. The bug in DockPanelLayoutPanel for Java 5 does not help and I don't have the option to switch to Java 6 but that is a separate discussion:http://code.google.com/p/google-web-toolkit/issues/detail?id=4254 Back to the problem: the Home Page is composed of three columns with the East and West columns being static HTML + CSS as well as some dynamic content (Vertical Panels), that affects the content of the Center column. Yes, JSNI is being used here. E.g: clicking the Login button in the West column presents a Login form in the Center column. The Home Page is one View + Presenter but the Login form is a separate View + Presenter. They do not play together and the Home View + Presenter always override the other Views + Presenters. Even tried placing separate DIV hooks in the HTML page to get the different views to attach to different nodes in the DOM but to no avail. Several options that are being tried and tested: 1. Play directly with the DOM (class) to swap widgets but then you just end up having one View + Presenter and a lot of widgets. 2. Creating a parent class for all Views and Presenters that contains the logic and content for the East and West Panels and then attach the new Views directly to the RootPanel. This is defeating the purpose of AJAX as it is equivalent to redrawing the page with the exception of the static parts. 3. Go back to the drawing board by looking at the options available:http://martinfowler.com/eaaDev/uiArchs.html Derek Greer has something that might inspire:http://www.aspiringcraftsman.com/2007/08/interactive-application-arch... A .NET centric post about this:http://bradwilson.typepad.com/blog/2008/06/composite-views.html Dolphin SmallTalk based discussion on CompositeMVP:http://www.mimuw.edu.pl/~sl/teaching/00_01/Delfin_EC/Patterns/Composi Sean C. On Mar 18, 1:29 pm, Fabio Kaminski fabiokamin...@gmail.com wrote: As far as i understand you have windows that contain widgets... like: MainWidgetContainer (which owns) LoginWidget, HeaderWidget and so on.. LogoutWidgetContainer (owns) LogoutWidget, ComeBackSoonMessageWidget, etc.. if is that the case, you would only call the go() which means RootPanel.get().add() when you wanna change from one widget container to another... MainWidgetContainer - LogoutWidgetContainer not LoginWidget HeaderWidget or LogoutWidget... as soon you establish this rule (you can even restrict go() method to allowing only widget containers) if you dont do it yet.. the only thing you need ins to assemble the Containers.. like: public class MainView extends Composite implements Display { final LoginView loginView; final HeaderView headerView; (add those to this widget) (...) } Fabio Kaminski On Thu, Mar 18, 2010 at 2:06 PM, Brian Reilly brian.irei...@gmail.comwrote: It seems to me like you need a supervising
Re: Do all classes in the a project need to be under a specific folder?
All client side code, including any imported classes, must either reside in the client directory below the Project.gwt.xml file, or in other paths indicated in that file using the directive source path=.../. Importantly, all client code must adhere to the restrictions of the GWT compiler, such as only using JRE classes it emulates, indicated here: http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html. So, first ensure that you actually intend these classes to be on the client side, and if so include them in your xml module definition using the source directive. This is documented here: http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml On May 26, 3:53 pm, Karl San Gabriel karl.sangabr...@gmail.com wrote: Hi Team, I am new to GWT and we are trying to port one of our smallest web application to GWT. We have the file Project.gwt.xml which was created via the webAppCreator with the following entry-point: entry-point class='com.project.web.client.Project'/ Some of the other classes are located in com.project.hr.bean package. The following is the error I get during build process: D:\Profiles\user1\workspace\projectant D:\Program Files\Java\jdk1.6.0_20 Buildfile: build.xml libs: javac: gwtc: [java] Compiling module com.onlineoffice.web.OnlineOffice [java] Validating newly compiled units [java] [ERROR] Errors in 'file:/D:/Profiles/user1/workspace/ project/src/com/project/web/client/DepartmentService.java' [java] [ERROR] Line 8: No source code is available for type com.project.hr.bean.DepartmentBean; did you forget to inherit a required module? [java] Finding entry point classes In this case, does gwtc look for class files only in com.onlineoffice.web path? How can I reference the com.project.hr.bean.DepartmentBean so that I can use it in DepartmentService.java? Thank You, Karl -- You received 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 create a large table?
Wow seems you're doing this the really hard way.. Grid grid = new Grid(50, 4); for (int row = 0; row 50; row++) { for (int col = 0; col 4; col++) { grid.setWidget(row, col, new Label(row + x + col)); } } On May 27, 2:28 am, csaba gcsa...@gmail.com wrote: Hello there, I'm guessing this is a simple problem, but I can't solve it for days and I don't know what else to do. i'm creating a new widget. I'm using the UiBinder with a HTMLPanel, and in this panel I've created a table. This table has around 50 rows and 4 columns. I need to have access to each cell to be able to set its content. So first I've tried with a simple approach: each cell contains a span id=xxx/span. On the Java side, I initialize the widget with initWidget(uiBinder.createAndBindUi(this)); and then set the content of each span with RootPanel.get(xxx).add(new Label(xxx)); The problem was that RootPanel.get(xxx) will always return null. I was thinking that this is because the widget hasn't yet been added to its parent component (at that point), so the xxx field hasn't been attached to the DOM tree. I've tried a different approach. First I've added the widget, and then I called something like an initInternalComponents() method, which did the RootPanel.get(xxx) thing. In this case, I got an exception A widget that has an existing parent widget may not be added to the detach list After several hours of trying to fix this, I gave up and tried another approach. I replaced all the span tags with g:Label ui:field=xxx/. On the Java side, I declared all 200+ components as a @UiField Label xxx. This did work. The problem now is how to access each field. Let's say I want to set the text of the cell in row 35, column 2. In that case, I'd have a label with the name field35by2 declared as an @UiField. What I was thinking of doing is using reflection: getClass().getField(field+row+by+column).get(this) This would actually work in a normal Java application, but GWT doesn't support reflection, so now I'm back to where I've started 2 days ago. So can anyone help me how to solve this problem? I've tried a table component but it wasn't what I wanted, it restricted me too much in accessing a specific cell, or adding random components to different cells (in the end, I'd also have TextFields, Buttons, ListBoxes in this tables). An ideal solution would be to have Table table = new Table(); for (int row=0; row50; row++) { table.newRow(); for (int col=0; col50; col++) { Cell cell = table.newCell(); cell.add( new Label(xxx ) ); } } and after that, I'd just do table.getCell(35, 2).getWidget() to obtain the Label or whatever. How to do this? Thanks in advance for any help! Csaba -- You received 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 List box help
You're incrementing i while removing items, so always skip checking an item right after one gets removed. You can just traverse the selected items directly: int i; while ((i = source.getSelectedItem()) = 0) ... On May 27, 1:31 am, Pinzine emailtomu...@gmail.com wrote: Hi, I am having issue with GWT List box. I want to move the selected item from one list box to other list box.After adding into the other listbox , i am removing from the source.But it is not working as expected. can you please let me know what needs to corrected in this code. Code: ListBox source = new ListBox(true); ListBox destination = new ListBox(true); for (int i = 0; i 5; ++i) { source.add(i); } onchange event, I am doing the following: for (int i = 0; i source.getItemCount(); ++i) { if (source.isItemSelected(i)) { destination.addItem(source.getItemText(i)); source.removeItem(i); } else { GWT.log(non selected Item : + source.getItemText(i)) ; } } -- You received 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.
Disable/Enable CSS obfuscating in gwt.xml ?
How is it possible to disable/enable CSS obfuscating in the gwt.xml file ? This should be very handy as I have many css styles that aren't allowed to be obfuscated during testing as they are used by Selenium. At the moment I disable obfuscating with the annotation @external, but that is fixed. I would love if this would be adjustable in the gwt.xml file. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Fastest way to create lots of similar elements
Hi, I need to create lots (hundreds) of image tags, and attach them dynamically to several plain div class=xy/div elements: div class=xy img src=images/a.gif style=top: 1em;/ img src=images/a.gif style=top: 2em;/ img src=images/b.gif style=top: 3em;/ ... /div ... The img tags can have only two different src urls. But each needs individual style attributes (for absolute positioning). Question: What would be the fastest (and preferably clean) way to do that? A) GwtQuery (aka GQuery)? B) UiBinder? C) Other? A) The GwtQuery approach: As a first pretty clueless attempt, I'm currently using GwtQuery code similar to this: @UiField HTML div1; void attachImages(...) { for (...) { $(div1.getElement()).append( img src='images/ + (flag ? a : b) + .gif' style='top: + i + em'/); } } @UiHandler(div1) void onDivClicked(final ClickEvent event) { ... } This works, but a) it's obviously ugly, and b) I don't know, if there's a faster/better way. B) The UiBinder approach: I chose the HTML class, to get a clean div, and still be able to use @UiHandler. But it doesn't seem to be possible to attach (UiBinder) Composites to it. What else should I choose? Unfortunately, HTMLPanel isn't a subclass of HasClickHandlers, so it doesn't work with @UiHandler. C) Other approaches: ? Thanks Chris -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
IE Sprite Error in Development mode ?
I think there goes something wrong using sprites in IE in development mode. I use Clientbundles with sprites in my CSS files. I think I have them configured well now after a few hints found in the forum. They all look ok at least, apart that that in IE, at some pages of my app, the whole sprite is shown at some places in the screen, which only occurs in Development mode. I am running in noserver mode btw. See for your self: -In development mode: http://sub.ited.nl/gwt/error.png -In web mode: http://sub.ited.nl/gwt/ok.png Even if I remove the content of my CSS files, such that only the ImageResource can be used from the ClientBundle. Any idea how this happens? A snippet of my CSS file: public interface DeclareClientBundle extends CommonClientBundle { @Source( {styles/gwt-declare.css, styles/gwt-default.css }) @CssResource.NotStrict DeclareCssResource getCss(); @Source(images/help-enabled.gif) @ImageOptions(repeatStyle = RepeatStyle.None) ImageResource helpEnabled(); @Source(images/help-disabled.gif) @ImageOptions(repeatStyle = RepeatStyle.None) ImageResource helpDisabled(); .. .. .. -- You received 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: Unable to get upload results from FileUpload
Hi Jeff, Thanks for your response. Actually server is not in my control. Though I can send request for log file but it will take some time. And I don't think that there is any issue on server side. We use the same service call for file upload in our silverlight client, which we are porting to GWT now, and it work just fine there. I guess there is something wrong with the behavior of GWT FileUpload control. Does it accept/return the response text of type text/xml? May be it only supports the content type of text/html. Any ideas? Thanks, Fahim On May 27, 7:05 pm, Jeff Chimene jchim...@gmail.com wrote: Hi Fahim: Check your server error log. On Thu, May 27, 2010 at 1:05 AM, Fahim fahimr...@gmail.com wrote: Hi All, I am using FileUpload widget to upload a file. Either file is being uploaded successfully or failed I am not able to get the results using event.getResults() in onSubmitComplete event because it is always null. The response type of the service which I am calling to upload is text/xml. Here is the response copied from fiddler: HTTP/1.1 200 OK Date: Wed, 26 May 2010 19:16:42 GMT Server: Apache X-UA-Compatible: IE=EmulateIE7 Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Connection: close Content-Type: text/xml xmlResponsestatuscode500/codemessageAn unknown system error occurred while processing the request./messagesubcode500/ subcode/status/xmlResponse Any thoughts why am I not getting the above xml in in event.getResults()? Thanks, Fahim -- You received 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: Unable to get upload results from FileUpload
On 05/27/2010 01:17 PM, Fahim wrote: Hi Jeff, Thanks for your response. Actually server is not in my control. Though I can send request for log file but it will take some time. You don't have any access to the server? Even via a web management interface? How did you install the server-side code to respond to the upload request? And I don't think that there is any issue on server side. I must respectfully disagree. The error message clearly indicates an error on the server. The 500 error code is generated by the http daemon. Until you've examined the error log, there is no basis in fact for your statement. An unknown system error occurred while processing the request. We use the same service call for file upload in our silverlight client, which we are porting to GWT now, and it work just fine there. I guess there is something wrong with the behavior of GWT FileUpload control. It's not the GWT upload control. Does it accept/return the response text of type text/xml? Accept: yes. That's how the upload status widget works Return: Yes N.B. I cannot speak for the Java side of things, as I only use the jsupload.cgi script. May be it only supports the content type of text/html. No. Any ideas? Yes. Check your server error logs. Additionally, are you using the jsupload.cgi script or the Java server-side code? Thanks, Fahim You're welcome, Jeff On May 27, 7:05 pm, Jeff Chimene jchim...@gmail.com wrote: Hi Fahim: Check your server error log. On Thu, May 27, 2010 at 1:05 AM, Fahim fahimr...@gmail.com wrote: Hi All, I am using FileUpload widget to upload a file. Either file is being uploaded successfully or failed I am not able to get the results using event.getResults() in onSubmitComplete event because it is always null. The response type of the service which I am calling to upload is text/xml. Here is the response copied from fiddler: HTTP/1.1 200 OK Date: Wed, 26 May 2010 19:16:42 GMT Server: Apache X-UA-Compatible: IE=EmulateIE7 Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Connection: close Content-Type: text/xml xmlResponsestatuscode500/codemessageAn unknown system error occurred while processing the request./messagesubcode500/ subcode/status/xmlResponse Any thoughts why am I not getting the above xml in in event.getResults()? Thanks, Fahim -- You received 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: Unable to get upload results from FileUpload
On 05/27/2010 01:17 PM, Fahim wrote: Hi Jeff, Thanks for your response. Actually server is not in my control. Though I can send request for log file but it will take some time. And I don't think that there is any issue on server side. We use the same service call for file upload in our silverlight client, which we are porting to GWT now, and it work just fine there. I guess there is something wrong with the behavior of GWT FileUpload control. Does it accept/return the response text of type text/xml? May be it only supports the content type of text/html. Any ideas? Thanks, Fahim On May 27, 7:05 pm, Jeff Chimene jchim...@gmail.com wrote: Hi Fahim: Check your server error log. On Thu, May 27, 2010 at 1:05 AM, Fahim fahimr...@gmail.com wrote: Hi All, I am using FileUpload widget to upload a file. Either file is being uploaded successfully or failed I am not able to get the results using event.getResults() in onSubmitComplete event because it is always null. The response type of the service which I am calling to upload is text/xml. Here is the response copied from fiddler: HTTP/1.1 200 OK Date: Wed, 26 May 2010 19:16:42 GMT Server: Apache X-UA-Compatible: IE=EmulateIE7 Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Connection: close Content-Type: text/xml xmlResponsestatuscode500/codemessageAn unknown system error occurred while processing the request./messagesubcode500/ subcode/status/xmlResponse Any thoughts why am I not getting the above xml in in event.getResults()? Thanks, Fahim Hi Fahim: I have to admit that the above puzzles me. Why are you looking in event.getResults()? The server response will be found in response.getText(). See http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/http/client/Response.html#getText() -- You received 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: Guice with client-side GWT
As Kevin mentionned, Gin is the dependency injection framework for GWT. There are some subtleties compared to Guice as the java code is transformed in JS (for example you can not request an injector for an instance of a class). But it is quite the same idea (Gin is partially based on Guice) and the addressed topic is the same : dependencies injection. Cheers On 27 mai, 06:21, Kevin Qiu kevin.jing@gmail.com wrote: Is thishttp://code.google.com/p/google-gin/what you're looking for? On Wed, May 26, 2010 at 9:11 PM, Blessed Geek blessedg...@gmail.com wrote: Nope, I am not asking about Guice with RemoteServiceServlet for RPC. Is it possible to use Guice on GWT widgets and related client-side manoeuvres? I don't expect the answer to be yes because the native code for GWT client is javascript not JVM byte-code. So, any plans for Guice on client-side GWT? One that works with annotation on Java code but performs injection on javascript generation hand-in-hand with GWT compiler? Are there already any dependency injection frameworks somewhere out there for GWT clients? It would be a feature specifically useful when working with ext-gwt Controller and View. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FlexTable
Did you look at the DynaTable in the samples folder? It has an example of using a flex table with dynamic data. On Wed, May 26, 2010 at 12:59 AM, ravjot ravjot@gmail.com wrote: i want to add a table to my application, wherein i can add rows and columns at the runtime nd further append the no of rows dynamically with every successive entry in the map ... where the data being entered onto the map is retrieved from the kml file using the xml parsing method. -- You received 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: Fastest way to create lots of similar elements
Hello Chris, I think, especially with respect to IE, the fastest way is still to construct a string and assign it to div's innerHTML... provided that you can find an intelligent and fast way to create that string, as IE (at least prior to 8) has a notoriously slow string concatenation. On May 27, 9:33 pm, Chris Lercher cl_for_mail...@gmx.net wrote: Hi, I need to create lots (hundreds) of image tags, and attach them dynamically to several plain div class=xy/div elements: div class=xy img src=images/a.gif style=top: 1em;/ img src=images/a.gif style=top: 2em;/ img src=images/b.gif style=top: 3em;/ ... /div ... The img tags can have only two different src urls. But each needs individual style attributes (for absolute positioning). Question: What would be the fastest (and preferably clean) way to do that? A) GwtQuery (aka GQuery)? B) UiBinder? C) Other? A) The GwtQuery approach: As a first pretty clueless attempt, I'm currently using GwtQuery code similar to this: @UiField HTML div1; void attachImages(...) { for (...) { $(div1.getElement()).append( img src='images/ + (flag ? a : b) + .gif' style='top: + i + em'/); } } @UiHandler(div1) void onDivClicked(final ClickEvent event) { ... } This works, but a) it's obviously ugly, and b) I don't know, if there's a faster/better way. B) The UiBinder approach: I chose the HTML class, to get a clean div, and still be able to use @UiHandler. But it doesn't seem to be possible to attach (UiBinder) Composites to it. What else should I choose? Unfortunately, HTMLPanel isn't a subclass of HasClickHandlers, so it doesn't work with @UiHandler. C) Other approaches: ? Thanks Chris -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Is there a way to wait a RequestBuilder action finished and then do next RequstBuilder action?
When the first request ends, the onSuccess method of the RequestCallback is called. Send the second request from here. Example: public void phase1() { // first request RequestBuilder b = ...; ... b.setCallback(new RequestCallback() { public void onSuccess(...) { phase2(); } }); ... } public void phase2() { // second request ... } On 27 mai, 09:31, recoco recoco.zh...@gmail.com wrote: I'm using writing a login process from a remote server with GWT. The process is that client get a token first and then use this token and username to login in the server. So I wrote two methods. One is getToken , another is postLogin. Both use RequestBuider to communate to the remote server and should be executed orderly. But I found that POST action which is postLogin always execute before getLogin. The postLogin method will fail because the token is still not returned from the server. So, how to wait the first action finished and the perform the second one? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1m1/DateTimeFormat - format for full time has changed
Okay, make sense. Thanks. On 27 mai, 18:11, Thomas Broyer t.bro...@gmail.com wrote: On 27 mai, 16:02, Olivier Monaco olivier.mon...@free.fr wrote: Hi, Some of my unit test failed after switching to GWT 2.1m1. This is due to the following change:http://code.google.com/p/google-web-toolkit/source/diff?spec=svn8214;... The full format for time has changed from h:mm:ss a v to h:mm:ss a . The first give me 1:00:00 AM Etc/GMT-1 but the second 1:00:00 AM UTC+1, so the same as the long format. Is it a regression? or was there a bug before? I suspect locale data has been updated to the latest Unicode CLDR data.http://cldr.unicode.org/ -- You received 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 Hibernate Project Structure
Thanks Yau, That would be great. Any info you could give me on how you setup your project would be great. Are you using Eclipse? Also, is it the correct procedure to place your Hibernate jars and dependencies in the war/WEB- INF/lib directory and then add them to the build path? Thanks for your help! On May 26, 9:34 pm, Yau kvle...@gmail.com wrote: I haven't tried Maven but I'm using GWT + Hibernate3 + Gilead. It's very difficult to setup Gilead as the example provided by GWT is very very outdated and no longer compatible. It took me 2 days to figure out how to set it up with the correct jar, import path and syntax. If you're still interested in Gilead, I can provide some info. On May 25, 9:38 pm, Maurice Nee lyden...@gmail.com wrote: Thanks Gabriel, I've read differing opinions on whether client and server code should be split into two projects. At this point, I really don't care which about which approach I use as long as I get something up and running that is error free. Could someone explain to me a specific procedure for setting up a GWT + Maven2 + Hibernate3 projectin Eclipse? For instance, if I were to use only oneproject, do I create a new GWTprojectwith the GWT Eclipse plugin and then modify its directorystructureto conform to Maven's standard directory layout? Or, do I create a Mavenprojectwith the m2eclipse plugin and then enable GWT in thatproject? Frankly, I'm not sure where the best place to start is. This is my firstproject using multiple technologies together, and although I feel like I understand a good deal of how these technologies work individually, I don't understand how to make them work together. Any help would be most appreciated. On May 22, 10:07 am, Gabriel guz...@gmail.com wrote: Hi, Do you have a reason for splitting the application into two projects? If not, there is nothing preventing you from using a singleproject for both client and server. If you do need to have two projects, you can use two (server and client) or three (server, client and common) modules under one mavenprojectand define the dependencies among them (if you hadn't used Maven, you could have used the IDE to define the dependencies between projects). I suggest you read the documentation here:http://code.google.com/eclipse/docs/users_guide.html On May 21, 6:20 am, Maurice Nee lyden...@gmail.com wrote: Hi, This is my first ever forum post. I really need some help with understanding how to setup aGWT2.0 Hibernate3project. I understand theGWTRPC mechanism and the problems with serializingHibernate POJOs. I would prefer to use DTO's rather than Gilead or Dozer. So far, I have aHibernateProject built with Maven2 in Eclipse using the m2eclipse plugin and the HibernateTools plugin for Eclipse. I also have aGWT2.0projectbuilt with theGWTplugin for Eclipse. I'm using MySql as the RDBMS. What I don't understand is how to setup, configure, and deploy the two projects in such a way that they can communicate with each other. Let's say with the above setup, I'm trying to persist a Person object that has only an id, and a name as fields. In myHibernateproject, I would create a Person.hbm.xmlHibernatemapping document, and then generate the correspondingHibernateJava POJO and MySql table. Then, in myGWTproject, I would create a serializable PersonDTO.java class that can be sent 'across the wire' to and from the server viaGWTRPC. Then, for simplicity's sake, let's say that in the client package of myGWTproject I create a CreatePersonService.java interface and a CreatePersonServiceAsync.java interface with one method, void createPerson(). I would then need a CreatePersonServiceImp.java class on the server side that implements createPerson(). Fine, but here's where I get confused. If the createPersonServiceImp.java class is going to transform a PersonDTO.java class into itsHibernatePOJO equivalent, then it needs to utilize classes from both myGWTEclipseprojectandHibernate Eclipseproject. So whichprojectdo I put it in? It needs to have access toGWTclasses like PersonDTO, AsyncCallback and other RPC classes. It also needs access toHibernateclasses like SessionFactory, Transaction, etc. So it needs to have access to myGWT jars andHibernatejars which are in two separate projects. How do do I link them so that CreatePersonServiceImp.java has access to all the libraries it needs. Finally, how do I correctly merge both of these projects into one WAR file for deploying onto a server? Or am I way off track? -- You received 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.
Re: Using HTMLPanel with UiBinder
Thanks for the reply Thomas. Perhaps what I'm doing is premature optimisation. I'm trying to make my widget simpler, by not using a composite. What I have looks like this: Foo.java: class Foo extends ComplexPanel { ...ui binder boilerplate... @UiField Element childLocation; public Foo() { setElement(ui.createAndBindUi(this)); } @Override public void add(Widget child) { // record the child widget for attachment during onLoad() this.child = child; } @Override protected void onLoad() { addAndReplaceElement(child, childLocation.com.google.gwt.user.client.Elementcast()); } private void addAndReplaceElement(Widget widget, com.google.gwt.user.client.Element toReplace) { ... copied from HTMLPanel ... } } Foo.ui.xml: ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' div ...plain html... span ui:field=childLocation/ ...more html... /div /ui:UiBinder So my template is simpler than a Composite would be. -- You received 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: Fastest way to create lots of similar elements
Hi George, absolutely - the other browsers are fine with simple DOM manipulation. Inspired by the (a little bit outdated) benchmark [1], I changed my code to join arrays instead of strings: -- void attachImages(...) { final JsArrayString array = JavaScriptObject.createArray().cast(); for (...) { boolean flag = ...; array.push(flag ? img src='images/a.gif' style='left: : img src='images/b.gif' style='top:); array.push(String.valueOf(i)); array.push(em'/); } div1.setHTML(array.join()); } -- This also only calls setHTML() once at the end of the loop. Does anybody see possibilities for optimization - either improving performance or resulting in cleaner code? [1]: http://www.quirksmode.org/dom/innerhtml.html On May 28, 12:31 am, George Georgovassilis g.georgovassi...@gmail.com wrote: Hello Chris, I think, especially with respect to IE, the fastest way is still to construct a string and assign it to div's innerHTML... provided that you can find an intelligent and fast way to create that string, as IE (at least prior to 8) has a notoriously slow string concatenation. On May 27, 9:33 pm, Chris Lercher cl_for_mail...@gmx.net wrote: -- You received 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 use one panel for the whole browser window?
Hello, I would like to build my GUI within one panel that fills the whole browser window. What do I have to do in the host page and/or in the panel to stretch it to this dimensions? Thank you! Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to use one panel for the whole browser window?
Use one of the Layout Panels in a RootLayoutPanel. Read here: http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#LayoutPanels On May 27, 7:49 pm, Magnus alpineblas...@googlemail.com wrote: Hello, I would like to build my GUI within one panel that fills the whole browser window. What do I have to do in the host page and/or in the panel to stretch it to this dimensions? Thank you! Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Synchronous Calls with RPC??
I'm on the synchronous calls are the wrong approach side, but what would really be useful would be some utility classes that allowed synchronous like approaches. Specifically : - an async batcher that given a list of async services calls all at once and then executes a specified action when all return (it keeps an internal count of async calls returned) - a serialized async batcher that calls a list of async services one at a time and then executes a specified action when the last one returns (each callback triggers the next async call) So you could block all (or part) of the UI with a modal overlay, call the async batcher and set the return action to fire an event to unblock the UI. I found this pattern helpful when loading data from different services while making the user wait till all the data has arrived. It can be a bit more flexible that building lots of services (and the returned objects) into one call. Regards, Carl -- You received 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, database connection on the server side
please post a connection sample or code to connect... -- You received 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: Comment on TroubleshootingOOPHM in google-web-toolkit
Comment by audiobrian: The reason of the breakpoints issue, is that maybe you has configured a JRE and not a JDK. But now I have a question for you. Why you're using Tomcat with GWT? Greetings. For more information: http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixes a bug in the compile report dashboard where entries with same sizes were (issue566801)
All done - thanks, Lex! On 2010/05/26 18:19:26, Lex wrote: LGTM with nits. No need to rereview if you like the suggested changes. These changes will make SOYC a lot easier to understand. http://gwt-code-reviews.appspot.com/566801/diff/1/3 File dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java (right): http://gwt-code-reviews.appspot.com/566801/diff/1/3#newcode179 dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java:179: outFile.println(if (element.name == \packageBreakdown\) {); Putting ifs here doesn't scale well if we add more popups -- and we should! There are multiple ways to avoid an ever increasing chain of ifs here. A simple way would be to remove the element parameter and add one with the ID of the help popup. http://gwt-code-reviews.appspot.com/566801/diff/1/3#newcode284 dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java:284: onMouseOut=\hide(this);\Package breakdown/a/h2/div); If you go with the changed parameter, then show(this) would be changed to show(\packageBreakdownPopup\);, and likewise for hide(). http://gwt-code-reviews.appspot.com/566801/diff/1/3#newcode359 dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java:359: outFile.println(thSize span class=\soyc-th-units\(Bytes)/span/th); Nice. It pains me to think how many times I looked at that table header and didn't notice the problem. http://gwt-code-reviews.appspot.com/566801/diff/1/3#newcode728 dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java:728: TreeMapFloat, SetString sortedCodeTypes = new TreeMapFloat, SetString ( Very nice, and likewise for the other ones. Could you also change the keys from Float to Integer? Comparison on floats is begging for weird corner cases. http://gwt-code-reviews.appspot.com/566801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Moved Moved RecordToTypeMap and SyncResult from RequestFactory to ValueStore. (issue570801)
Reviewers: Ray Ryan, Description: Moved Moved RecordToTypeMap and SyncResult from RequestFactory to ValueStore. Added a token first test for the ValueStore module. Review by: rj...@google.com Please review this at http://gwt-code-reviews.appspot.com/570801/show Affected files: D trunk/bikeshed/src/com/google/gwt/requestfactory/client/impl/RecordToTypeMap.java M trunk/bikeshed/src/com/google/gwt/requestfactory/client/impl/RequestFactoryJsonImpl.java M trunk/bikeshed/src/com/google/gwt/requestfactory/rebind/RequestFactoryGenerator.java M trunk/bikeshed/src/com/google/gwt/requestfactory/shared/SyncRequest.java D trunk/bikeshed/src/com/google/gwt/requestfactory/shared/SyncResult.java M trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpenseDetails.java M trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/MobileExpenseEntry.java M trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/MobileReportEntry.java M trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/employee/EmployeeDetailsActivity.java M trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/report/ReportDetailsActivity.java M trunk/bikeshed/src/com/google/gwt/valuestore/client/DeltaValueStoreJsonImpl.java M trunk/bikeshed/src/com/google/gwt/valuestore/client/SyncResultImpl.java M trunk/bikeshed/src/com/google/gwt/valuestore/client/ValueStoreJsonImpl.java A trunk/bikeshed/src/com/google/gwt/valuestore/shared/SyncResult.java A trunk/bikeshed/src/com/google/gwt/valuestore/shared/impl/RecordToTypeMap.java M trunk/bikeshed/src/com/google/gwt/valuestore/ui/AbstractRecordEditActivity.java A trunk/bikeshed/test/com/google/gwt/valuestore/client/DeltaValueStoreJsonImplTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Moved the Activity subclasses to the App module to break the circular dependency between App and... (issue571801)
Reviewers: Ray Ryan, Description: Moved the Activity subclasses to the App module to break the circular dependency between App and ValueStore. Review by: rj...@google.com Please review this at http://gwt-code-reviews.appspot.com/571801/show Affected files: A trunk/bikeshed/src/com/google/gwt/app/place/AbstractRecordEditActivity.java A trunk/bikeshed/src/com/google/gwt/app/place/AbstractRecordListActivity.java M trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ScaffoldMasterActivities.java M trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/ListActivitiesMapper.java M trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/employee/EmployeeEditActivity.java M trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/employee/EmployeeListActivity.java M trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/report/ReportEditActivity.java M trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/report/ReportListActivity.java D trunk/bikeshed/src/com/google/gwt/valuestore/ui/AbstractRecordEditActivity.java D trunk/bikeshed/src/com/google/gwt/valuestore/ui/AbstractRecordListActivity.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Moved Moved RecordToTypeMap and SyncResult from RequestFactory to ValueStore. (issue570801)
LGTM, but please don't submit until you have a parallel change ready to submit to addon-gwt http://gwt-code-reviews.appspot.com/570801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Moved the Activity subclasses to the App module to break the circular dependency between App and... (issue571801)
LGTM As we discussed, this is a pretty bad place for them but it will do for now. Again, please don't submit until you have a parallel patch ready for addon-gwt http://gwt-code-reviews.appspot.com/571801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8215 committed - Moved Moved RecordToTypeMap and SyncResult from RequestFactory to Valu...
Revision: 8215 Author: gwt.mirror...@gmail.com Date: Thu May 27 08:00:00 2010 Log: Moved Moved RecordToTypeMap and SyncResult from RequestFactory to ValueStore. Added a token first test for the ValueStore module. Review at http://gwt-code-reviews.appspot.com/570801 Review by: rj...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8215 Added: /branches/2.1/bikeshed/src/com/google/gwt/valuestore/shared/SyncResult.java /branches/2.1/bikeshed/src/com/google/gwt/valuestore/shared/impl/RecordToTypeMap.java /branches/2.1/bikeshed/test/com/google/gwt/valuestore /branches/2.1/bikeshed/test/com/google/gwt/valuestore/client /branches/2.1/bikeshed/test/com/google/gwt/valuestore/client/DeltaValueStoreJsonImplTest.java Deleted: /branches/2.1/bikeshed/src/com/google/gwt/requestfactory/client/impl/RecordToTypeMap.java /branches/2.1/bikeshed/src/com/google/gwt/requestfactory/shared/SyncResult.java Modified: /branches/2.1/bikeshed/src/com/google/gwt/requestfactory/client/impl/RequestFactoryJsonImpl.java /branches/2.1/bikeshed/src/com/google/gwt/requestfactory/rebind/RequestFactoryGenerator.java /branches/2.1/bikeshed/src/com/google/gwt/requestfactory/shared/SyncRequest.java /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpenseDetails.java /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/MobileExpenseEntry.java /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/MobileReportEntry.java /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/employee/EmployeeDetailsActivity.java /branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/ui/report/ReportDetailsActivity.java /branches/2.1/bikeshed/src/com/google/gwt/valuestore/client/DeltaValueStoreJsonImpl.java /branches/2.1/bikeshed/src/com/google/gwt/valuestore/client/SyncResultImpl.java /branches/2.1/bikeshed/src/com/google/gwt/valuestore/client/ValueStoreJsonImpl.java /branches/2.1/bikeshed/src/com/google/gwt/valuestore/ui/AbstractRecordEditActivity.java === --- /dev/null +++ /branches/2.1/bikeshed/src/com/google/gwt/valuestore/shared/SyncResult.java Thu May 27 08:00:00 2010 @@ -0,0 +1,32 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.valuestore.shared; + + +import java.util.Map; + +/** + * Result per record of a SyncRequest. + */ +public interface SyncResult { + boolean hasViolations(); + + String getFutureId(); + + Record getRecord(); + + MapString, String getViolations(); +} === --- /dev/null +++ /branches/2.1/bikeshed/src/com/google/gwt/valuestore/shared/impl/RecordToTypeMap.java Thu May 27 08:00:00 2010 @@ -0,0 +1,26 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.valuestore.shared.impl; + +import com.google.gwt.valuestore.shared.Record; + +/** + * A class that can map the TOKEN generated by a JPA-savvy tool in every + * Record class to its internal type representation. + */ +public interface RecordToTypeMap { + RecordSchema? extends Record getType(String token); +} === --- /dev/null +++ /branches/2.1/bikeshed/test/com/google/gwt/valuestore/client/DeltaValueStoreJsonImplTest.java Thu May 27 08:00:00 2010 @@ -0,0 +1,40 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + *
Re: [gwt-contrib] Re: DockLayoutPanel and Maps
I just wanted to note that a recent change to trunk should fix problems with using the layout panel in trunk, and we'll be including it in the next release. On Fri, Nov 20, 2009 at 12:37 AM, jd jdpatter...@gmail.com wrote: Just wanted to update this example by noting that with the recent changes this workaround no longer works. This is because the calls to layout() are now delayed and scheduled after the current code executes. I had to do this to get the map to layout correctly: root.animate(0, new AnimationCallback() { public void onLayout(Layer layer, double progress) { } public void onAnimationComplete() { map.checkResizeAndCenter(); } }); John On Oct 6, 2:09 am, Joel Webber j...@google.com wrote: Thanks for letting me know about this. I'll follow up on that thread. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- http://groups.google.com/group/Google-Web-Toolkit-Contributors