Re: Alguien de Argentina?
Hola, Yo soy de Buenos Aires también, abrazo! On Wed, Mar 30, 2011 at 8:39 AM, Gal Dolber gal.dol...@gmail.com wrote: Hola Gabriel, ahi te escribi por mail. Tan pocos argentinos en la lista? On Wed, Mar 30, 2011 at 8:19 AM, Gabriel volpegabr...@gmail.com wrote: Yo soy de Bs. As. cuál es el motivo de la pregunta? Saludos! On 29 mar, 21:24, Gal Dolber gal.dol...@gmail.com wrote: el chiste? On Tue, Mar 29, 2011 at 9:16 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: jajaj 2011/3/29 Gal Dolber gal.dol...@gmail.com -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CellTable SelectionModel
Hi, I'm using a CellTable like a vertical menu Widget. i.e. the table is a list of menu items (for navigation) that will fire Places when the user click on any of the availables menues. Everything is OK except in the case that the application need to be started at an specific menu item. I want to select the menu but I don't want the SingleSelectionModel fires the SelectionChangeEvent event because it was already called, I just want the selection ON. The SingleSelectionModel#setSelected has no option to stop firing the changEvent. Am I missing something here? I think is good to have the chance to do not fire the event! Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable SelectionModel
Hi John, thanks for the reply. Yes, actually I can do it in the app. first load, but later a Place can be fired programmatically from another UI screens. So, in this case the Place will be fired twice: 1. programmatically fired and 2. when the menu need to be selected to update the UI state. Should I have to remove/add the SelectionChangeHandler every time a menu need to be selected? Thanks. On Wed, Feb 9, 2011 at 12:59 PM, John LaBanca jlaba...@google.com wrote: SelectionModels have to fire a SelectionChangeEvent, or the CellTable wouldn't know to highlight the selected item. Can you set the default selected value before adding your ChangeHandler? You'll have to call selectionModel#isSelected() to force it to resolve the selection state. selectionModel.setSelected(defaultMenuItem, true); selectionModel.isSelection(); // Force synchronous SelectionChangeEvent. selectionModel.addSelectionChangeHandler(...); Thanks, John LaBanca jlaba...@google.com On Wed, Feb 9, 2011 at 8:43 AM, Alejandro D. Garin aga...@gmail.comwrote: Hi, I'm using a CellTable like a vertical menu Widget. i.e. the table is a list of menu items (for navigation) that will fire Places when the user click on any of the availables menues. Everything is OK except in the case that the application need to be started at an specific menu item. I want to select the menu but I don't want the SingleSelectionModel fires the SelectionChangeEvent event because it was already called, I just want the selection ON. The SingleSelectionModel#setSelected has no option to stop firing the changEvent. Am I missing something here? I think is good to have the chance to do not fire the event! Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable SelectionModel
Well, in my case the activity is not equals because it's like a wrapper activity that calls another activities :( On Wed, Feb 9, 2011 at 4:01 PM, Thomas Broyer t.bro...@gmail.com wrote: On Wednesday, February 9, 2011 7:04:07 PM UTC+1, Ale wrote: Hi John, thanks for the reply. Yes, actually I can do it in the app. first load, but later a Place can be fired programmatically from another UI screens. So, in this case the Place will be fired twice: 1. programmatically fired and 2. when the menu need to be selected to update the UI state. PlaceController.goTo will be a no-op if the two places compare equal, so that's not a problem. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to remove Header Footer from CellTable? How to create your own Cell-based widget?
Hi, Just add the column without a Header text: CellTableContact table = new CellTableContact(); TextColumnContact nameColumn = new TextColumnContact() { @Override public String getValue(Contact object) { return object.name; } }; table.addColumn(nameColumn); On Thu, Jan 27, 2011 at 7:26 PM, Vasily vasiliy.ru...@gmail.com wrote: Hi All... have few questions: 1. How to remove header footer from the CellTable in case I don't need them? 2. I need pretty simple widget: table, no header, no footer... my styles, cells, no key-based selection, only key-based paging I wanna re-use such CellTable features as push data. What is the best way to do that? My own Cell Widget? Thx! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DockLayoutPanel and StackLayoutPanel problems in IE7
Hi, I'm using the new layout panels and works very well for me. Can you make a visual mock-up of your layout for the 5 levels? thanks. On Tue, Dec 21, 2010 at 1:00 PM, mike b mbaker.t...@gmail.com wrote: Also, this thread does not seem to be findable. When I search for DockLayoutPanel StackLayoutPanel IE7 only one result appears and its not this thread. Thanks, M On Dec 21, 10:46 am, mike b mbaker.t...@gmail.com wrote: So, I spent yesterday getting it to work in IE7 with unpredictable results. Basically, I used DockPanel in my Layer 4 (from above). This morning, re-re-reading the cryptic documentation on the website, I found that I had not inherited from ResizeComposite. This was actually plainly put, but I missed it somehow. Note noted above is that all of my Layers are my classes with the various LayoutPanels in the initWidget(). Now I'm having predictable success with implementing in FF. However, I'm back to the same issue in IE7 nothing below Layer 4 will display. I'm also having to basically remove any VeritcalPanel or HorizontalPanels from the app if they use any widget w/ implemented in a div tag (like the ToggleButton) as the results are completely un- predictable. Does anyone know if upgrading to GWT 2.1.1 would help w/ this? Thanks!! On Dec 19, 10:49 pm, John LaBanca jlaba...@google.com wrote: If the LayoutPanels have an unbroken chain of ProvidesResize up to the RootLayoutPanel (as it looks like you've indicated they do), everything should work fine. Can you provide a screen shot or a description of the actual error? Or even better, a link? Thanks, John LaBanca jlaba...@google.com On Sun, Dec 19, 2010 at 10:52 AM, mike b mbaker.t...@gmail.com wrote: Hopefully someone can help with this issue. I hvae been working on it for 3 days without success. I am trying to get a StackLayoutPanel to display inside a DockLayoutPanel. GWT 2.1.0, mvp4g 1.2.0, GXT 2.2.1, standards mode, IE7 Its actually a bit more complex than that... We have developed 4 stand alone modules that we are now integrating into a 5th Navigation Module. 3 of the original modules are in GXT and they display just fine. The original GWT module was working perfectly using DockPanel and StackPanel. However, I'm being forced to get rid of deprecation compiler warnings, so I need to move to DockLayoutPanels and StackLayoutPanels. Now, my original GWT package no longer renders in IE7 when it is a child module to the Navigator. The bizarre thing is that it works in FF 3.6.10, but NOT IE7. I have searched the web extensively for a solution and have attempted many things to get it working: -set sizes on all panels -set the same Unit types on all panels (using PX right now) -using RootLayoutPanel (rather than RootPanel) Frustratingly, my original GWT Module still works fine when its not a child module to the Navigation module. Here's how I'm using the panels... Level 1 - Nav module - LayoutPanel (4 items, the 4th is a DockLayoutPanel) Level 2 - Nav module - DockLayoutPanel (Center is another DockLayoutPanel, South is reserved for other add-ons) Level 3 - Child module - DockLayoutPanel (North is a TabBar, Center is a DockLayoutPanel) Level 4 - Child module - DockLayoutPanel (East has some widgets, Center is a StackLayoutPanel) Level 5 - Child module - StackLayoutPanel -each panel in the stack is a VerticalPanel or HorizontalPanel containing lists, buttons, and text entry fields. Strangely, when Level 4 and below is the old DockPanel and StackPanels, it all works great. Any ideas? Thanks in advance -mike -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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
Re: To smart GWT or not
I would use pure GWT, and heavy use of UiBinder, plus taking advantage of the latest 2.1 additions for mvp. Do you have problems with layout? What is your issue? Have a look to the DynaTableRf sample source code, it's a good example how to use nested layout panels for doing layouts. On Wed, Dec 1, 2010 at 1:35 PM, Baloe nielsba...@gmail.com wrote: Hi all, I wonder, is there anyone using Smart GWT? Or, any other (Sencha) product? We are struggling with the poor widgets included with GWT and it looks like my boss is not going to accept to spend more time on how to get these GWT widgets into place. And we need more advanced widgets as well. Thanks! NielsBaloe -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel does not listen to width
Hi, I have made very good layouts using the gwt layout system. I would recommend to have a look at : http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html Regarding to your UiBinder example, don't put the TabLayoutPanel inside a FlowPanel. On Tue, Nov 30, 2010 at 7:10 AM, Baloe nielsba...@gmail.com wrote: Hi all, I'm using a tabLayoutPanel with three tabs. However, the total width is now dynamicly created by the width of the content of the current tab. But, my first and second tabs are not that wide, so the third tab always hangs a bit outside of the tab. How can I set the width of the TabLayoutPanel? I tried several things, but I can't seem to set the width. tabLayoutPanel.setWidth(700px); tabLayoutPanel.setSize(700px, 500px); tabLayoutPanel.setPixelSize(700, 500); with and without tabLayoutPanel.onResize(); uibinder file: g:FlowPanel g:TabLayoutPanel ui:field=tabLayoutPanel barHeight=50 height=600px /g:TabLayoutPanel g:Button ui:field=buttonAdd text={i18n.save} / /g:FlowPanel I'm adding the tabs in java code after binding. tabGeneral = new FlexTable(); . tabLayoutPanel.add(tabGeneral, i18nGeneral.name()); I really like GWT a lot, but I must say that the ui pieces are really quite bad. You can't use certain widgets because it's standard mode (or not) without warnings, setting sizes and other basic stuff doesn't always work, examples often work in java code but not in the uibinder, etc. It would be nice if the widgets themselves were better. It feels like temporary broken, or just beta sourcecode. If you can make such a good java2javascript compiler, why not create proper widgets as well? Thanks! Niels -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Announcing GWT 2.1
Hi, The Cell Widgets documentation at: http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html at the bottom say: *To Update Data Range Changes from a Cell Widget:* 1. Create a subclass of AsyncListViewAdapterhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/view/client/AsyncListViewAdapter.html . 2. Implement onRangeChanged(HasData display)http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/view/client/AbstractListViewAdapter.html#onRangeChanged(com.google.gwt.view.client.ListView) . 1. Get the current range from the display 2. Request the data from the server or data source 3. When the data is returned, call updateRowData() http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/view/client/AsyncDataProvider.html#updateRowData(int,%20java.util.List)to push the data to the widgets but AsyncListViewAdaptehttp://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/view/client/AsyncListViewAdapter.htmlr has been renamed to AsyncDataProvider, right? On Thu, Oct 28, 2010 at 3:12 PM, David Chandler drfibona...@google.comwrote: GWT 2.1 is here! http://googlewebtoolkit.blogspot.com/2010/10/announcing-final-release-of-gwt-21.html -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 1 layout - 3 browsers - 3 results?
On Tue, Jun 15, 2010 at 10:49 AM, Magnus alpineblas...@googlemail.comwrote: BTW: I wonder why you use this construct: int parentH = dock.getWidgetContainerElement(this).getOffsetHeight(); Why not simply call: doc.getParent ().gettOffsetHeight(); ? The latter code would also be usable for parents that are no DockLayoutgPanel. Is there a special reason? Hi Magnus, Because I want to center the widget into the Dock.CENTER layer, and not the whole DockLayoutPanel. Try to make the change and you will see the difference. Glad that the code snippet help you. Alejandro -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 1 layout - 3 browsers - 3 results?
Hi Try this: (only tested on mac FF and Safari) http://www.puntosoft.com.ar/gwt/layoutChess/FormTable.java On Sat, Jun 12, 2010 at 12:23 AM, Magnus alpineblas...@googlemail.comwrote: Hi Alejandro, I think you are replying to a post that I cancelled. I did so, because I managed to reproduce this behavior with a minimalistic piece of code so that it was clear that it must be a general issue. I found that here must be a problem in the GWT version that is not fixed yet: http://code.google.com/p/google-web-toolkit/issues/detail?id=4532 But let me come back to your code for centering the chess board: The main prerequisite is that you set (and therefore know) the pixel size of the inner box to 400,400. However, doing the same with a form was not possible for me since I am building on top of your code template. The reason is that I don't know the size of my form. I put all the widgets together in a panel (I tried every type) and add this panel to my DockLayoutPanel. Then it's immediately stretched, so that I cannot retrieve its natural size. But exactly this size is needed to do the centering as you did in your code. How would you do this? Can you help me again? Thank you Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 1 layout - 3 browsers - 3 results?
Hi, I added the menu items you mention and it is working, tested in IE8. On Fri, Jun 11, 2010 at 1:42 AM, Magnus alpineblas...@googlemail.comwrote: Hi, there is a strange problem with the menubar in your example using IE8 (not with FF). When it opens a popup menu, the whole page disappears and only the popup menu is visible. The popup menu is added to the menubar as follows: MenuBar m= new MenuBar (true); m.addItem (Login, (Command)null); m.addItem (Logout,(Command)null); m.addItem (Register,(Command)null); m.addItem (Profile,(Command)null); menu.addItem (Account,m); What's that again? Magnus On 10 Jun., 13:08, Magnus alpineblas...@googlemail.com wrote: Hi Alejandro, thank you very much!!! This solution seems to be perfect for me! I played around a little bit. I Changed the base class for the ChessTable to DockLayoutPanel, to add some annotations to the chess board. This worked, too! Then I inserted a grid into the center section of ChessTable. It's clear that this was not centered. May I use the same mechanism to center this grid within the ChessTable? I understand the mechanism as follows: - create a new class, which implements RequiresResize - write a onResize method which centers this object within the parent Well, it works great on FF and IE. Good job! Thanks again! Magnus On 9 Jun., 20:31, Alejandro D. Garin aga...@gmail.com wrote: Just from the webappcreator. Nothing special. On Jun 9, 2010 3:28 PM, Magnus alpineblas...@googlemail.com wrote: Hi Alejandro, this looks very good and I am still analyzing the java code. I will give you a more detailed feedback later... The java code looks clean, but the html file is pumped up with of JavaScript. Does this code belong to the solution or is it just generated from other sources? Magnus On Jun 9, 7:35 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, The code below is part of the task, but it center the main chess table in the dock center panel http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.javahttp://ww. .. On Wed, Jun 9, 2010 at 12:50 PM, Magnus alpineblas...@googlemail.com wrote: Hi, everything you said is correct. Magnus On Jun 9, 5:09 pm, Alejandro D. ... google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com google-web-toolkit%25252bunsubscr...@googlegroups.comgoogle-web-toolkit%2525252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/goog... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: 1 layout - 3 browsers - 3 results?
Hi, To be clear: What are you expecting to have in your layout scenario? i.e. A menu on top, a Chess Widget centered in the browser with same margins from top/left/right/bottoms? Also, the chess Widget should have 64 cells of the same height/width.? i.e. the cell doesn't change if the browser resize? On Wed, Jun 9, 2010 at 11:20 AM, Magnus alpineblas...@googlemail.comwrote: Hi group, I have started writing the layout code using the onresize event, and I think this will be the solution I wanted. I created a class Display, derived from LayoutPanel,. But I am still missing information to layout my widgets. It is not that easy to geht width and height, als mentioned above. For example,. to resize my MenuBar, I need its natural height, i. e. the height it needs to show its content. Then I would resize it to (window width,natural height). When I create it and add it to my LayourtPanel, it's immediately resized to fill the whole window. After that, getOffsetHeight returns not the desired result. I also tried to save the height immediately after creation and before adding it to the panel: MenuBar menubar = new MenuBar (); ... int menuHeight = menubar.getOffsetHeight (); // will be 0 add (menubar); But it returns 0. So I need a method to get the size a widget needs *independently* of its current size. Or how would you resize the menubar? Thanks Magnus On 9 Jun., 15:35, Ian Bambury ianbamb...@gmail.com wrote: But how do I get the Resize-Event if I don't subclass an existing layout panel? Window.addResizeHandler(handler); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: 1 layout - 3 browsers - 3 results?
Hi, The code below is part of the task, but it center the main chess table in the dock center panel. Does this work for you or at least give some help? http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.html http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.java http://www.puntosoft.com.ar/gwt/layoutChess/ChessTable.java On Wed, Jun 9, 2010 at 12:50 PM, Magnus alpineblas...@googlemail.comwrote: Hi, everything you said is correct. Magnus On Jun 9, 5:09 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, To be clear: What are you expecting to have in your layout scenario? i.e. A menu on top, a Chess Widget centered in the browser with same margins from top/left/right/bottoms? Also, the chess Widget should have 64 cells of the same height/width.? i.e. the cell doesn't change if the browser resize? On Wed, Jun 9, 2010 at 11:20 AM, Magnus alpineblas...@googlemail.com wrote: Hi group, I have started writing the layout code using the onresize event, and I think this will be the solution I wanted. I created a class Display, derived from LayoutPanel,. But I am still missing information to layout my widgets. It is not that easy to geht width and height, als mentioned above. For example,. to resize my MenuBar, I need its natural height, i. e. the height it needs to show its content. Then I would resize it to (window width,natural height). When I create it and add it to my LayourtPanel, it's immediately resized to fill the whole window. After that, getOffsetHeight returns not the desired result. I also tried to save the height immediately after creation and before adding it to the panel: MenuBar menubar = new MenuBar (); ... int menuHeight = menubar.getOffsetHeight (); // will be 0 add (menubar); But it returns 0. So I need a method to get the size a widget needs *independently* of its current size. Or how would you resize the menubar? Thanks Magnus On 9 Jun., 15:35, Ian Bambury ianbamb...@gmail.com wrote: But how do I get the Resize-Event if I don't subclass an existing layout panel? Window.addResizeHandler(handler); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: 1 layout - 3 browsers - 3 results?
Just from the webappcreator. Nothing special. On Jun 9, 2010 3:28 PM, Magnus alpineblas...@googlemail.com wrote: Hi Alejandro, this looks very good and I am still analyzing the java code. I will give you a more detailed feedback later... The java code looks clean, but the html file is pumped up with of JavaScript. Does this code belong to the solution or is it just generated from other sources? Magnus On Jun 9, 7:35 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, The code below is part of the task, but it center the main chess table in the dock center panel http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.javahttp://www.puntosoft.com.ar/gwt/layoutChess/ChessTable.java On Wed, Jun 9, 2010 at 12:50 PM, Magnus alpineblas...@googlemail.com wrote: Hi, everything you said is correct. Magnus On Jun 9, 5:09 pm, Alejandro D. ... google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/goog... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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-contrib] Re: Interest in Wave for design docs?
Hi, I have some wave invitations to give. Send me a private email if you want one of it. On Tue, Feb 2, 2010 at 3:30 PM, Ray Ryan rj...@google.com wrote: Yes, you'll need an invitation to Wave. On Tue, Feb 2, 2010 at 10:10 AM, Daniel Dietrich cafeb...@googlemail.comwrote: Hi Ray, your link doesn't work for me. Do I need a Wave account? Thanks in advance - Daniel On 2 Feb., 18:33, Ray Ryan rj...@google.com wrote: Hey, all. I've just set up a de facto GWT Contrib Home Wave: https://wave.google.com/wave/#restored:wave:googlewave.com!w%252Boe8G.https://wave.google.com/wave/#restored:wave:googlewave.com%21w%252Boe8G. .. On Tue, Feb 2, 2010 at 9:20 AM, Daniel Dietrich cafeb...@googlemail.comwrote: Hi Bruce, thank you for your commitment regarding Wave participation for GWT folks. I really appreciate that. - Daniel On 2 Feb., 18:12, Bruce Johnson br...@google.com wrote: Hi folks, There has been some discussion about having design discussions in Wave, but maybe not everybody has access yet. Disclaimer: I can't promise the rate at which everyone will get invites, but as GWT contributors, I'll happily argue that you should be early in the queue. Reply to this thread if you'd like to get an invitation. -- Bruce -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- I wish this were a Wave -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- I wish this were a Wave -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: Any thing in GWT for Gridlayout???
Hi, Have a look at gwt-mosaic FormLayout: http://69.20.122.77/gwt-mosaic-current/Showcase.html#CwQuickStartExample maybe this can help you. Alejandro. On Fri, Jan 8, 2010 at 2:39 AM, Abhay Singh abhay.asi...@gmail.com wrote: Hi Do we have any thing in GWT to implement GridLayout I need to designs a form having lots of text/check boxes in it, but facing problem in placing them properly and well aligned. I tried with combination of HorizontalPanel and VeticalPanel but this is too tidious and not getting proper aignment... what should i do... Thanks... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel with default styles not working on IE.
Hi, Check this issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=4447 On Wed, Jan 6, 2010 at 8:40 AM, mariyan nenchev nenchev.mari...@gmail.comwrote: Hi, I am really frustrated from this TabLayoutPanel. It is even not displayed with its default style(which is none) in IE. If some one has woring TabLayoutPanel on IE, please send me some example. I attached my. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel with default styles not working on IE.
Are you using standard mode? On Wed, Jan 6, 2010 at 11:17 AM, mariyan nenchev nenchev.mari...@gmail.comwrote: Hi, I saw, this, but i can't even make the TabLayoutPanel to be visible. For unknown reason one of the divs has overflow:hidden and the tap is not displayed. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel with default styles not working on IE.
use this doctype declaration at the top of your html !doctype html On Wed, Jan 6, 2010 at 2:46 PM, mariyan nenchev nenchev.mari...@gmail.comwrote: I don't know. How to check, how to change? On Wed, Jan 6, 2010 at 7:39 PM, Alejandro D. Garin aga...@gmail.comwrote: Are you using standard mode? On Wed, Jan 6, 2010 at 11:17 AM, mariyan nenchev nenchev.mari...@gmail.com wrote: Hi, I saw, this, but i can't even make the TabLayoutPanel to be visible. For unknown reason one of the divs has overflow:hidden and the tap is not displayed. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: [gwt-contrib] Re: TabLayoutPanel not working on IE8
Joel, I think that the problem could be setting 'cssFloat' property on IE using javascript. I made a little test changing this line on TabLayoutPanel.java:111 getElement().getStyle().setProperty(cssFloat, left); to getElement().getStyle().setProperty(styleFloat, left); Obviously this works on IE but not on the rest. On Mon, Jan 4, 2010 at 3:48 PM, Joel Webber j...@google.com wrote: Thanks, Alejandro. I'll reproduce this locally and enter an issue for it. It sounds like the issue might have something to do with having a block-level element *inside* the tabs two existing divs. float:left on just the outer-most element is supposed to work here, but perhaps that's not enough on IE. On Mon, Jan 4, 2010 at 12:30 PM, Alejandro D. Garin aga...@gmail.comwrote: On Mon, Jan 4, 2010 at 2:01 PM, Joel Webber j...@google.com wrote: Which element did you have to add float:left to? It's set manually in code to the outermost tab element, which is all that *should* be necessary. Hi, I ran into the same issue with IE7/8 using the css example you suggested here: http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/e9d6b9d7ad02b66f but adding float:left to: .gwt-TabLayoutPanelTab { background: url(tab-inactive-left.png) no-repeat bottom left; float:left; } solves the problem. Alejandro. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: TabLayoutPanel not working on IE8
On Mon, Jan 4, 2010 at 2:01 PM, Joel Webber j...@google.com wrote: Which element did you have to add float:left to? It's set manually in code to the outermost tab element, which is all that *should* be necessary. Hi, I ran into the same issue with IE7/8 using the css example you suggested here: http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/e9d6b9d7ad02b66f but adding float:left to: .gwt-TabLayoutPanelTab { background: url(tab-inactive-left.png) no-repeat bottom left; float:left; } solves the problem. Alejandro. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: TabLayoutPanel doesn't show its content
Hi, Try to change RootPanel.get(test).add(tab); by RootLayoutPanel.get().add(tab); On Thu, Dec 17, 2009 at 11:54 AM, mariyan nenchev nenchev.mari...@gmail.com wrote: Hi, I tried to use TabLayoutPanel, but it doesn't show its widget. From fire bug i can see that the content of the both my tabs is overflow:hidden I attached Web Application project(eclipse project, that uses GEP) And here is may code: public class TabTest implements EntryPoint { public void onModuleLoad() { RootPanel.get(test).setSize(600px, 600px); final TabLayoutPanel tab = new TabLayoutPanel(50, Unit.PX); tab.add(new HTML(asdasdssd), test1); tab.add(new HTML(asdasdssd), test2); tab.selectTab(0); RootPanel.get(test).add(tab); } } and my css .gwt-TabLayoutPanelTab,.gwt-TabLayoutPanelTab-selected { height: 25px; } .gwt-TabLayoutPanelTab-selected .gwt-TabLayoutPanelTabInner { height: 26px; margin-left: 6px; background: transparent url(tab-active-right.gif) no-repeat scroll right 0; } .gwt-TabLayoutPanelTab { } .gwt-TabLayoutPanelTab .gwt-TabLayoutPanelTabInner { margin-right: 10px; margin-left: 6px; } .gwt-TabLayoutPanelTab-selected { background: transparent url(tab-active-left.gif) no-repeat scroll left 0; z-index: 1; } .gwt-TabLayoutPanelTabs { background: transparent url(tabs-bg.png) repeat-x scroll center bottom; padding-left: 10px; } .gwt-TabLayoutPanelTabInner div { color: #44; font-weight: bold; height: 26px; padding-top: 6px; text-align: center; } .gwt-TabLayoutPanelTab .gwt-TabLayoutPanelTabInner div { background: transparent url(tab-inactive-center.png) repeat-x scroll center top; } .gwt-TabLayoutPanelTab-selected .gwt-TabLayoutPanelTabInner div { background: transparent url(tab-active-center.gif) repeat-x scroll center top; width: 100%; margin-left: -3px; margin-right: 20px; } .tabContentWrapper { margin: 35px; } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP Article... Source Code?
Hi, The code is almost in the tutorial, anyway I have completed the remaining source code and uploaded to a google code project just for fun. This is unofficial. http://code.google.com/p/gwt-mvp-architecture-sample/ Regards. Alejandro. On Tue, Dec 29, 2009 at 3:00 PM, jpnet jprichard...@gmail.com wrote: I really like this article: http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html However, it's almost useless without the entire source package. Are there any plans to post the source code? Thanks, JP -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP Article... Source Code?
cool ! thanks. On Wed, Dec 30, 2009 at 4:32 PM, mbracken levi.brac...@gmail.com wrote: Looks like the official sample project source has now been posted: http://code.google.com/webtoolkit/doc/latest/tutorial/projects/Contacts.zip There's a link near the top of the article. On Dec 30, 2:30 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, The code is almost in the tutorial, anyway I have completed the remaining source code and uploaded to a google code project just for fun. This is unofficial. http://code.google.com/p/gwt-mvp-architecture-sample/ Regards. Alejandro. On Tue, Dec 29, 2009 at 3:00 PM, jpnet jprichard...@gmail.com wrote: I really like this article: http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architectur. .. However, it's almost useless without the entire source package. Are there any plans to post the source code? Thanks, JP -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: FlowPanel displays in column not in row
try this: public void onModuleLoad() { FlowPanel flow = new FlowPanel(); flow.setWidth(100%); for(int i = 0 ; i 10 ; i++) { Label l = new Label(Label+i); l.getElement().getStyle().setProperty(display, inline); flow.add(l); } RootPanel.get().add(flow); } On Fri, Aug 21, 2009 at 11:31 AM, Richard richard.fa...@gmail.com wrote: Hi all, I'm new to GWT and I've tryed to display some labels in a flow panel. Unfortunately they are displayed as in a VerticalPanel. Where am I wrong ? (gwt 1.7, eclipse 3.3, App engine 1.2.2) Module public void onModuleLoad() { FlowPanel flow = new FlowPanel(); flow.setWidth(100%); for(int i = 0 ; i 10 ; i++) { flow.add(new Label(Label+i)); } RootPanel.get().add(flow); } ===Host page=== body !-- OPTIONAL: include this if you want history support -- iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe /body Result Label0 Label1 Label2 Label3 Label4 Label5 Label6 Label7 Label8 Label9 ===Result expected Label0Label1Label2Label3Label4Label5Label6Label7Label8Label9 Thanks ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: MVP question
but I still have a lot of click handlers, blur handlers, etc. i don't suppose there is any way around that aside from something dean mentioned which is to return something like a map, but then you have to create a structured key (like enum), and it just makes coding against it more of a pain, i think...so i'll live with the multiple HasHandlers interface methods. what am I doing is to have hight levels handlers. Suppose you have 4 buttons (new, edit, delete and quit) then your Widget interface will have one handler exposed for the buttons. When the user clicks over the button one event with the information of which button was pressed and some other information you need will arrive to the presenter. I'm new using MVP, opinions are welcome. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: MVP question
On Wed, Aug 19, 2009 at 9:30 AM, Ian Bambury ianbamb...@gmail.com wrote: 2009/8/19 Davis Ford davisf...@zenoconsulting.biz My basic question is: why not just return TextBox if that is what is in your view? The coupling is between 2 classes: view and presenter. If you later change TextBox to SuperWidgetTextBox, you can re-factor it in your IDE in 5 seconds and be done with it. Am I missing something? If your view interface return a TextBox you can't test the presenter with JUnit, you will need to use GWTTestCase. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: MVP question
Hi David, I tried your example, but I have this error: Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code. If you are running a unit test, check that your test case extends GWTTestCase and that GWT.create() is not called from within an initializer or constructor. Stacktrace: java.lang.ExceptionInInitializerError at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.sf.cglib.proxy.Enhancer.setCallbacksHelper(Enhancer.java:619) at net.sf.cglib.proxy.Enhancer.setThreadCallbacks(Enhancer.java:612) at net.sf.cglib.proxy.Enhancer.registerCallbacks(Enhancer.java:581) at org.easymock.classextension.internal.ClassProxyFactory.createProxy(ClassProxyFactory.java:108) at org.easymock.internal.MocksControl.createMock(MocksControl.java:51) at org.easymock.classextension.EasyMock.createMock(EasyMock.java:46) at example.publico.client.SimpleTest.testSimple(SimpleTest.java:10) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code. If you are running a unit test, check that your test case extends GWTTestCase and that GWT.create() is not called from within an initializer or constructor. at com.google.gwt.core.client.GWT.create(GWT.java:85) at com.google.gwt.user.client.ui.UIObject.clinit(UIObject.java:140) ... 30 more On Wed, Aug 19, 2009 at 11:09 AM, davis davisf...@zenoconsulting.bizwrote: If your view interface return a TextBox you can't test the presenter with JUnit, you will need to use GWTTestCase. Sure you can: import static org.easymock.classextension.EasyMock.*; import com.google.gwt.user.client.ui.TextBox; public class SomePresenterTestCase { private MyPresenter presenter; private MyView view; @Test public void testSomething() { TextBox mockBox = createMock(TextBox.class); MyView mockView = createMock(MyView.class); presenter = new MyPresenter(mockView); expect(mockView.getSomeTextBox()).andReturn(mockBox); replay(mockView); replay(mockBox); TextBox box = presenter.getDisplay().getSomeTextBox(); verify(mockView); } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: MVP question
also I found this article interesting: http://blog.danielwellman.com/2009/02/mocking-gwt-widgets-with-gwtmockutilities.html On Wed, Aug 19, 2009 at 12:28 PM, Alejandro D. Garin aga...@gmail.comwrote: David, Maybe GWTMockUtilities could help, but didn't tried it. On Wed, Aug 19, 2009 at 12:19 PM, davis davisf...@zenoconsulting.bizwrote: Probably stems from the constructor doing this: /** * Creates an empty text box. */ public TextBox() { this(Document.get().createTextInputElement(), gwt-TextBox); } http://code.google.com/p/google-web-toolkit/source/browse/releases/1.7/user/src/com/google/gwt/user/client/ui/TextBox.java Anyone have a mock workaround for ui elements they'd like to share? Is there a mock framework out there for GWT ui elements? On Aug 19, 11:14 am, davis davisf...@zenoconsulting.biz wrote: My fault -- I thought you were talking about something else. It appears you are correct. It looks like even easy mock class extension can't do it. Somewhere in the initialization code of TextBox.class it calls GWT.create()...major bummer. On Aug 19, 10:59 am, Alejandro D. Garin aga...@gmail.com wrote: Hi David, I tried your example, but I have this error: Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code. If you are running a unit test, check that your test case extends GWTTestCase and that GWT.create() is not called from within an initializer or constructor. Stacktrace: java.lang.ExceptionInInitializerError at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.sf.cglib.proxy.Enhancer.setCallbacksHelper(Enhancer.java:619) at net.sf.cglib.proxy.Enhancer.setThreadCallbacks(Enhancer.java:612) at net.sf.cglib.proxy.Enhancer.registerCallbacks(Enhancer.java:581) at org.easymock.classextension.internal.ClassProxyFactory.createProxy(ClassProxyFactory.java:108) at org.easymock.internal.MocksControl.createMock(MocksControl.java:51) at org.easymock.classextension.EasyMock.createMock(EasyMock.java:46) at example.publico.client.SimpleTest.testSimple(SimpleTest.java:10) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code. If you are running a unit test, check that your test case extends GWTTestCase and that GWT.create() is not called from within an initializer or constructor. at com.google.gwt.core.client.GWT.create(GWT.java:85) at com.google.gwt.user.client.ui.UIObject.clinit(UIObject.java:140) ... 30 more On Wed, Aug 19, 2009 at 11:09 AM, davis davisf...@zenoconsulting.biz wrote: If your view interface return a TextBox you can't test the presenter with JUnit, you will need to use GWTTestCase. Sure you can: import static org.easymock.classextension.EasyMock.*; import com.google.gwt.user.client.ui.TextBox; public class SomePresenterTestCase { private MyPresenter presenter; private MyView view; @Test public void testSomething() { TextBox mockBox = createMock(TextBox.class
Re: MVP question
David, Maybe GWTMockUtilities could help, but didn't tried it. On Wed, Aug 19, 2009 at 12:19 PM, davis davisf...@zenoconsulting.bizwrote: Probably stems from the constructor doing this: /** * Creates an empty text box. */ public TextBox() { this(Document.get().createTextInputElement(), gwt-TextBox); } http://code.google.com/p/google-web-toolkit/source/browse/releases/1.7/user/src/com/google/gwt/user/client/ui/TextBox.java Anyone have a mock workaround for ui elements they'd like to share? Is there a mock framework out there for GWT ui elements? On Aug 19, 11:14 am, davis davisf...@zenoconsulting.biz wrote: My fault -- I thought you were talking about something else. It appears you are correct. It looks like even easy mock class extension can't do it. Somewhere in the initialization code of TextBox.class it calls GWT.create()...major bummer. On Aug 19, 10:59 am, Alejandro D. Garin aga...@gmail.com wrote: Hi David, I tried your example, but I have this error: Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code. If you are running a unit test, check that your test case extends GWTTestCase and that GWT.create() is not called from within an initializer or constructor. Stacktrace: java.lang.ExceptionInInitializerError at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.sf.cglib.proxy.Enhancer.setCallbacksHelper(Enhancer.java:619) at net.sf.cglib.proxy.Enhancer.setThreadCallbacks(Enhancer.java:612) at net.sf.cglib.proxy.Enhancer.registerCallbacks(Enhancer.java:581) at org.easymock.classextension.internal.ClassProxyFactory.createProxy(ClassProxyFactory.java:108) at org.easymock.internal.MocksControl.createMock(MocksControl.java:51) at org.easymock.classextension.EasyMock.createMock(EasyMock.java:46) at example.publico.client.SimpleTest.testSimple(SimpleTest.java:10) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code. If you are running a unit test, check that your test case extends GWTTestCase and that GWT.create() is not called from within an initializer or constructor. at com.google.gwt.core.client.GWT.create(GWT.java:85) at com.google.gwt.user.client.ui.UIObject.clinit(UIObject.java:140) ... 30 more On Wed, Aug 19, 2009 at 11:09 AM, davis davisf...@zenoconsulting.biz wrote: If your view interface return a TextBox you can't test the presenter with JUnit, you will need to use GWTTestCase. Sure you can: import static org.easymock.classextension.EasyMock.*; import com.google.gwt.user.client.ui.TextBox; public class SomePresenterTestCase { private MyPresenter presenter; private MyView view; @Test public void testSomething() { TextBox mockBox = createMock(TextBox.class); MyView mockView = createMock(MyView.class); presenter = new MyPresenter(mockView); expect(mockView.getSomeTextBox()).andReturn(mockBox); replay(mockView); replay
Re: MVP question
yes david, that seems to work. Personally I still prefer to use interfaces in the view rather than using Widgets. Cheers, On Wed, Aug 19, 2009 at 12:24 PM, davis davisf...@zenoconsulting.bizwrote: Here you go...try it with this: http://code.google.com/p/google-web-toolkit/source/browse/releases/1.7/user/src/com/google/gwt/junit/GWTMockUtilities.java import static org.easymock.classextension.EasyMock.createMock; import static org.junit.Assert.assertNotNull; import org.junit.After; import org.junit.Before; import org.junit.Test; import com.google.gwt.junit.GWTMockUtilities; import com.google.gwt.user.client.ui.TextBox; public class TestSomething { @Before public void setUp() throws Exception { GWTMockUtilities.disarm(); } @After public void tearDown() throws Exception { GWTMockUtilities.restore(); } @Test public void testThatEasyMockWorksWithTextBox() { TextBox box = createMock(TextBox.class); assertNotNull(box); } } On Aug 19, 11:19 am, davis davisf...@zenoconsulting.biz wrote: Probably stems from the constructor doing this: /** * Creates an empty text box. */ public TextBox() { this(Document.get().createTextInputElement(), gwt-TextBox); } http://code.google.com/p/google-web-toolkit/source/browse/releases/1 Anyone have a mock workaround for ui elements they'd like to share? Is there a mock framework out there for GWT ui elements? On Aug 19, 11:14 am, davis davisf...@zenoconsulting.biz wrote: My fault -- I thought you were talking about something else. It appears you are correct. It looks like even easy mock class extension can't do it. Somewhere in the initialization code of TextBox.class it calls GWT.create()...major bummer. On Aug 19, 10:59 am, Alejandro D. Garin aga...@gmail.com wrote: Hi David, I tried your example, but I have this error: Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code. If you are running a unit test, check that your test case extends GWTTestCase and that GWT.create() is not called from within an initializer or constructor. Stacktrace: java.lang.ExceptionInInitializerError at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.sf.cglib.proxy.Enhancer.setCallbacksHelper(Enhancer.java:619) at net.sf.cglib.proxy.Enhancer.setThreadCallbacks(Enhancer.java:612) at net.sf.cglib.proxy.Enhancer.registerCallbacks(Enhancer.java:581) at org.easymock.classextension.internal.ClassProxyFactory.createProxy(ClassProxyFactory.java:108) at org.easymock.internal.MocksControl.createMock(MocksControl.java:51) at org.easymock.classextension.EasyMock.createMock(EasyMock.java:46) at example.publico.client.SimpleTest.testSimple(SimpleTest.java:10) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code. If you are running a unit test, check
[gwt-contrib] oophm NullPointerException fix
Hi, I checkout gwt-trunk revision 5838 and trying to run hosted mode with oophm give me this Exception: java.lang.NullPointerException at com.google.gwt.dev.shell.log.SwingLoggerPanel$FindBox.init(SwingLoggerPanel.java:106) at com.google.gwt.dev.shell.log.SwingLoggerPanel.init(SwingLoggerPanel.java:359) at com.google.gwt.dev.shell.ShellMainWindow.init(ShellMainWindow.java:48) at com.google.gwt.dev.OophmHostedModeBase.openAppWindow(OophmHostedModeBase.java:410) at com.google.gwt.dev.HostedModeBase.doStartup(HostedModeBase.java:478) at com.google.gwt.dev.OophmHostedModeBase.doStartup(OophmHostedModeBase.java:348) at com.google.gwt.dev.HostedMode.doStartup(HostedMode.java:345) at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:592) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:403) at com.google.gwt.dev.HostedMode.main(HostedMode.java:247) SwingLoggerPanel.java:106 closeButton.setPreferredSize(new Dimension(closeIcon.getIconWidth(), The closeIcon is null, so I found that moving gwt-trunk\dev\oophm\src\com\google\gwt\dev\util\log\icon-close.png to gwt-trunk\dev\oophm\src\com\google\gwt\dev\shell\log\icon-close.png solve the problem! Regards. Ale --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
Re: Command Pattern, MVP, EventBus
Hi David, On Wed, Jul 15, 2009 at 4:36 PM, David Peterson da...@randombits.orgwrote: Thinking further, I think it's better to separate the EventBus from the Command system somewhat. The reason being that generally, events are used to update on changes that have already happened, or are about to happen. They don't trigger the actual event itself. My understanding is that some Events need to be fired from the RPC Service (see slide #46 from Ray talk). In my example I have events like EmployeeAddEvent fired only when the RPC call is returned sucessfull, then all views listening this event are notified. For example, you have a 'CreateUserEvent'. This is sent out and three listeners pick it up. There is no way to control the order the handlers are sent the event, so one might actually create the user, and the others expect it to already be created. You'll have issues at that point. Also, what happens if the creation fails? Should the event keep propogating, or stop? I didn't understand your point. I have four listeners and each listener is receiving a diferent Event, then one listener receive employee aditions, other listener employee deletes, etc. (lines 114 to 166) It's also more difficult to provide feedback to the original creator if there were problems. Yes, it could send out another event over the bus, but then you end up with custom 'error' events all over the place... If an error ocurr with the RPC request then the application wide failure handling (see slide #24) will notify the user about the error. There is no need for new events. Anyway, I've ended up implementing them separately. In fact, they are completely decoupled from each other - so much so that I've got two separate projects for them: Command Pattern API: http://code.google.com/p/gwt-dispatch Presenter Pattern API: http://code.google.com/p/gwt-presenter Thanks about your comments, I will check your project and send my feedback. Regards, On Jul 15, 2:46 am, Alejandro D. Garin aga...@gmail.com wrote: I forget to post the link: http://puntosoft2k.appspot.com/Showcase.html#ContactWidgetEventBus Thanks. On Tue, Jul 14, 2009 at 1:43 PM, Alejandro D. Garin aga...@gmail.com wrote: Hi, I wrote an implementation (first try) based on the Command Pattern and EventBus described in the Ray Google IO Talk. (what I understand from the slides). The working example is trivial but the code uses an event bus (using gwt HandleManager) and the command pattern for the RPC Service. Comments are welcome, I would like to know if the implementation is good. Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Command Pattern, MVP, EventBus
Hi, I wrote an implementation (first try) based on the Command Pattern and EventBus described in the Ray Google IO Talk. (what I understand from the slides). The working example is trivial but the code uses an event bus (using gwt HandleManager) and the command pattern for the RPC Service. Comments are welcome, I would like to know if the implementation is good. Thanks, On Mon, Jul 13, 2009 at 10:31 PM, David Peterson da...@randombits.orgwrote: There's certainly nothing to stop you, and you could even just add your own RPC Event and have a listener trigger the server-side call. In fact, in my own implementation of Ray's example (http:// code.google.com/p/gwt-dispatch), the Action and Response are both interfaces, so you could just have the base class be a GwtEvent subclass. The main complication I guess is the server side. I haven't tested to see if you can just use a custom EventHandler server-side without changes, but I'm guessing it would work fine. David On Jul 11, 4:41 pm, Kwhit kwhitting...@gmail.com wrote: Just throwing up an idea here to see how many bullet holes it comes down with. I'm playing around with the command pattern which is a hot topic at the moment and wondered why it shouldn't be merged with the EventBus? The command pattern proposed by RR has to add a response object - the original doesn't (I don't have a GoF copy to hand), using and event bus would remove the requirement for it. Using the example presented by RR. 1/ User clicks on 'save' to save the edited phone number 2/ Presenter creates an RpcCommandEvent{save, new phone number} and fires it to the eventBus 3/ RpcPipe, listening for RpcCommandEvent events, ships them off the to the server --- Server side --- 4/ RpcPipeService receives the event and invokes a specialized handler 5/ The handler verifies (for the sake of the example but I would normally do this client side) the new phone number, finds it OK and updates the storage 6/ Handler returns new phone number for contact ID x 7/ RpcPipeService ships (returns) the response on across the pipe --- Back on the client side --- 8/ RpcPipe fires the RPC return value as an event on the bus 9/ Listeners to ContactInfoUpdated events update the phone number I, in my ignorance, find the above a net gain * +ve: One pipe fits all, no need to update the mechanics of the RPC * +ve, -ve: The event designer has to know that the event should be shipped over the pipe * +ve: The statefulness of the RPC mechanism (every request has a response) fades away * +ve: In fact the Pipe itself could disappear with a bus on the server (see below) - end to end unit testing In my event driven fever I would also like to have an event bus on the server so that the handlers could register themselves for events but I not worried too much about that yet. OK fire away! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Command Pattern, MVP, EventBus
I forget to post the link: http://puntosoft2k.appspot.com/Showcase.html#ContactWidgetEventBus Thanks. On Tue, Jul 14, 2009 at 1:43 PM, Alejandro D. Garin aga...@gmail.comwrote: Hi, I wrote an implementation (first try) based on the Command Pattern and EventBus described in the Ray Google IO Talk. (what I understand from the slides). The working example is trivial but the code uses an event bus (using gwt HandleManager) and the command pattern for the RPC Service. Comments are welcome, I would like to know if the implementation is good. Thanks, On Mon, Jul 13, 2009 at 10:31 PM, David Peterson da...@randombits.orgwrote: There's certainly nothing to stop you, and you could even just add your own RPC Event and have a listener trigger the server-side call. In fact, in my own implementation of Ray's example (http:// code.google.com/p/gwt-dispatch), the Action and Response are both interfaces, so you could just have the base class be a GwtEvent subclass. The main complication I guess is the server side. I haven't tested to see if you can just use a custom EventHandler server-side without changes, but I'm guessing it would work fine. David On Jul 11, 4:41 pm, Kwhit kwhitting...@gmail.com wrote: Just throwing up an idea here to see how many bullet holes it comes down with. I'm playing around with the command pattern which is a hot topic at the moment and wondered why it shouldn't be merged with the EventBus? The command pattern proposed by RR has to add a response object - the original doesn't (I don't have a GoF copy to hand), using and event bus would remove the requirement for it. Using the example presented by RR. 1/ User clicks on 'save' to save the edited phone number 2/ Presenter creates an RpcCommandEvent{save, new phone number} and fires it to the eventBus 3/ RpcPipe, listening for RpcCommandEvent events, ships them off the to the server --- Server side --- 4/ RpcPipeService receives the event and invokes a specialized handler 5/ The handler verifies (for the sake of the example but I would normally do this client side) the new phone number, finds it OK and updates the storage 6/ Handler returns new phone number for contact ID x 7/ RpcPipeService ships (returns) the response on across the pipe --- Back on the client side --- 8/ RpcPipe fires the RPC return value as an event on the bus 9/ Listeners to ContactInfoUpdated events update the phone number I, in my ignorance, find the above a net gain * +ve: One pipe fits all, no need to update the mechanics of the RPC * +ve, -ve: The event designer has to know that the event should be shipped over the pipe * +ve: The statefulness of the RPC mechanism (every request has a response) fades away * +ve: In fact the Pipe itself could disappear with a bus on the server (see below) - end to end unit testing In my event driven fever I would also like to have an event bus on the server so that the handlers could register themselves for events but I not worried too much about that yet. OK fire away! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Mosaic in AppEngine
yes! why not? On Tue, Jul 7, 2009 at 6:42 PM, Paulo Coutinho pa...@prsolucoes.com wrote: Hi, Is possible to use gwt-mosaic on appengine? link: http://code.google.com/p/gwt-mosaic/ -- Atenciosamente, Paulo Coutinho. Blog: www.prsolucoes.com/blog Site: www.prsolucoes.com Msn: pa...@prsolucoes.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Newbie question re returning persisted objects via RPC to client
Hi, I wrote an example using gwt with java app engine. http://puntosoft2k.appspot.com/gwt_gae_example.html The example shows how to create, update, delete and retrieve objects from app engine datastore to GWT client using RPC. The example use DTO approach. Source code is available. Hope that helps. Regards, Ale On Sun, Jun 28, 2009 at 9:09 AM, Ben Daniel bendan...@gmail.com wrote: Let's say I want to persist Animal objects using JDO and also want to return these Animal objects via a GWT RPC service. From what I understand GWT will compile a version of Animal in javascript on the client. And I take it that any JDO persistence stuff shouldn't be going down to the client. So do I have to create two separate classes for my Animal type: one used on the server for persistence via JDO and another which the client uses over RPC. Is this the normal thing to do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Send objects from/to Java usting GWT
On Wed, Jun 24, 2009 at 3:15 AM, Max maks...@gmail.com wrote: OOo yeahh.. that helps! This is weird that I need to add those libraries manually to war/WEB- INF/lib folder. I though they will be added automatically once I add them via Eclipse UI (Right click on the project then Properties then Libraries). Isn't it right to add libs via Eclipse UI? Yes Max, You need to add both on eclipse classpath and WEB-INF/lib --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Send objects from/to Java usting GWT
Hi Max, Did you include dozer-5.0.jar and the apache commons-*.jar in your war/WEB-INF/lib folder? Regards. On Tue, Jun 23, 2009 at 7:41 PM, Max maks...@gmail.com wrote: Thanks Alejandro. You example really helped me understand how this should work. Now I know that it's better to use DTO. I just tried to create two classes and use Dozer library but when I'm trying to instantiate it on my server i'm getting this error: SEVERE: [1245796455609000] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract com.athena.client.entities.Person com.athena.client.GreetingService.getPerson (com.athena.client.entities.Person)' threw an unexpected exception: java.lang.NoClassDefFoundError: org/dozer/DozerBeanMapper at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure (RPC.java:360) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:546) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:166) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) 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:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:306) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) Caused by: java.lang.NoClassDefFoundError: org/dozer/DozerBeanMapper at com.athena.converters.PersonConverter.clinit (PersonConverter.java:11) at com.athena.server.GreetingServiceImpl.getPerson (GreetingServiceImpl.java:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:527) ... 25 more Do you know what can cause that problem? I tried to include all libraries that you have in your project but still no luck. Thanks Max On Jun 22, 6:57 am, Alejandro D. Garin aga...@gmail.com wrote: Hi, I wrote a little example with source code, have a look at: http://puntosoft2k.appspot.com/gwt_gae_example.html Please tell me if was usefull to you. Thanks. On Thu, Jun 18, 2009 at 5:43 PM, Max maks...@gmail.com wrote: To learn GWT and Google AppEngine (GAE) I'm trying to create a simple application using GWT with two classes (entities). In this application one object, let's say Student, encapsulates Array/List of other objects, say Classes and Books. Then it creates list of Students and sends it to Java code on GAE and stores it to the data store. Then I'm planning to retrieve these data back and send it to GWT. Question: is it possible to do this kind of stuff using GWT + GAE + Google DataStore? Are there any examples/tutorials of using all these technologies at once? --~--~-~--~~~---~--~~ You
Re: Send objects from/to Java usting GWT
Hi, I wrote a little example with source code, have a look at: http://puntosoft2k.appspot.com/gwt_gae_example.html Please tell me if was usefull to you. Thanks. On Thu, Jun 18, 2009 at 5:43 PM, Max maks...@gmail.com wrote: To learn GWT and Google AppEngine (GAE) I'm trying to create a simple application using GWT with two classes (entities). In this application one object, let's say Student, encapsulates Array/List of other objects, say Classes and Books. Then it creates list of Students and sends it to Java code on GAE and stores it to the data store. Then I'm planning to retrieve these data back and send it to GWT. Question: is it possible to do this kind of stuff using GWT + GAE + Google DataStore? Are there any examples/tutorials of using all these technologies at once? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Generic MemCache Facade - Please Comment To Improve The Design. Thanks! :-)
Hi, I'm using a class like yours but without generics because You need to instanciate a MemCache object for every type you want to cache. I use my class as a singleton and inyected with spring where I need it. Regards, On Wed, Jun 10, 2009 at 7:09 AM, nellyville david.jonathan.nel...@gmail.com wrote: sorry, meant to post this in the app engine group. On Jun 9, 2:32 am, nellyville david.jonathan.nel...@gmail.com wrote: package com.DatingSocial.server; import java.util.Collections; import javax.cache.Cache; import javax.cache.CacheException; import javax.cache.CacheManager; import com.google.appengine.api.datastore.Blob; public class MemCacheK, V { private Cache cache = null; private MemCache() throws CacheException { cache = CacheManager.getInstance().getCacheFactory().createCache (Collections.EMPTY_MAP); } public static K, V MemCacheK, V getInstance() throws CacheException { return new MemCacheK, V(); } public void put(K key, V value) { cache.put(key, value); } @SuppressWarnings(unchecked) public V get(K key) { return (V)cache.get(key); } @SuppressWarnings(unchecked) public void cachePicture(Long userId, Integer pictureNumber, Blob pictureBytes) { if(pictureBytes != null) { cache.put((V)userId.toString() + -picture- + pictureNumber.toString(), pictureBytes.getBytes()); } } @SuppressWarnings(unchecked) public V readCachedPicture(Long userId, Integer pictureNumber) { String key = userId.toString() + -picture- + pictureNumber.toString (); return this.get((K)key); } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Automated UI issues with Selenium - Any other good test frameworks?
I didn't tried it but take a look at: http://code.google.com/p/webdriver/ Regards. On Mon, Jun 8, 2009 at 2:53 PM, mikelove...@gmail.com mikelove...@gmail.com wrote: Hi all, I have been using Selenium to do lots of testing which was great before. Recently my group has changed to gwt-ext and now all the ids that selenium references are never the same. Each time you load a page gwt-ext generates a new id (that is almost always different). Is there a way to have them be static - or start off the same seed. If not, does anyone know of a good test framework to go off of? I have considered hooking up some mock objects but that may be more effort than needed. Any ideas? -Mike PS- if at all possible we are trying not to have to parse through all the code to manually set ids for the widgets. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: delayTestFinish is not delaying the test
Hi, check: http://code.google.com/intl/es-AR/webtoolkit/doc/1.6/DevGuideTesting.html (section Asynchronous Testing) delayTestFinish(6000) doesn't delay the execution, you can use a Timer instead. Regards, On Tue, Jun 2, 2009 at 4:18 PM, Igor Moochnick igor.moochn...@gmail.comwrote: I'm using the GWT Eclipse plugin with the latest GWT 1.6. My test looks like this: public class MyTests extends GWTTestCase { public String getModuleName() { ... } public void testAddAction() { MyServiceProxy proxy = new MyServiceProxy( new MyServiceCallback() { public void OnData(Data data) { finishTest(); } }); proxy.GetData(); // Execute Web Service (REST) call delayTestFinish(6000); // Delay for 1 minute } } I'm running this test with Rght-Click/Run As/GWT Junit test on the function. The test running successfully, and the call to the remote service is executed, but there is not enough time to get the callback since the delayTestFinish is not waiting for the specified delay. In fact it's not waiting at all - it just jumps through. When I check the source code for the delayTestFinish function I see something like this: public abstract class GWTTestCase extends TestCase { ... protected final void delayTestFinish(int timeoutMillis) { // implemented in the translatable version of this class } ... } What is the translatable version of the class. How can I see what is the generated result? What am I doing wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Can't integrate spring with gwt
Hi, Try moving your applicationContext.xml to WEB-INF/applicationContext.xml On Fri, Apr 24, 2009 at 10:38 AM, mabebe meklitabayab...@gmail.com wrote: Hi i am having difficulty integrating spring with gwt. Below is my code for my serviceImpl class...and where i think the error is @Override public void init() throws ServletException { super.init(); ServletContext sc = this.getServletContext(); WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(sc); --- this returns a null pointer exception exception reportsFacade = (IReportsFacade) ctx.getBean(ReportsFacade); } i have the following in my webapp web.xml file... context-param param-namecontextConfigLocation/param-name param-value classpath:org/personalsite/config/applicationContext.xml /param-value /context-param listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
permutations
Hi, I have a xml module just to compile only for Firefox. I override the following directive: set-property name=user.agent value=gecko1_8/ Why the compiler say: Compiling 2 permutations ? The same for happend for set-property name=user.agent value=safari/ I don't have an extra locate, just the default. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
[gwt-contrib] Re: Announcing GWT 1.6 Release Candidate
Hi Scott, Yes, this fixes the problem for my configuration, the spring container started now :) Thanks. On 3/24/09, Scott Blum sco...@google.com wrote: Hey, can you guys do me a favor and try out a fix? Just take the attached jar and put it on your classpath ahead of gwt-dev-platform.jar. See if it fixes the not and instance of Servlet problem (and doesn't cause other problems). Lemme know if that works, thanks, Scott On Mon, Mar 23, 2009 at 9:09 PM, Alejandro D. Garin aga...@gmail.comwrote: Are the spring jar and its dependencies in your WEB-INF/lib folder? We did introduce an extra convenience mode recently, hence the message Hi Bruce, Yes, the spring.jar is in the lib folder, no other dependences needed. If you want I can send to you a little demo project based on the webAppCreator default example plus an Spring bean loaded in the server. The demo project work fine in 1.6.1 Thanks. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
Re: Spring and GWT 1.6RC
Hi, anyone can use Spring context listener in web.xml ? Example: context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/applicationContext.xml/param-value /context-param listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener On Mon, Mar 23, 2009 at 5:45 AM, Ed post2edb...@hotmail.com wrote: Shouldn't this be reported as an issue ? I thought these issues would be solved now with the usage of Jetty instead Tomcat as mentioned here: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/7254dfe963f479ae?hl=en# -- Ed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
[gwt-contrib] Re: Announcing GWT 1.6 Release Candidate
Are the spring jar and its dependencies in your WEB-INF/lib folder? We did introduce an extra convenience mode recently, hence the message Hi Bruce, Yes, the spring.jar is in the lib folder, no other dependences needed. If you want I can send to you a little demo project based on the webAppCreator default example plus an Spring bean loaded in the server. The demo project work fine in 1.6.1 Thanks. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
Re: SerializationException when serialize a HashMap over RPC
Hi, I try your suggestion but the same problem. This seems to happend only in hosted mode. I'm using windows GWT 1.5.3 . On Wed, Mar 18, 2009 at 7:15 PM, Vitali Lovich vlov...@gmail.com wrote: I think I see it. List is not generally serializable. The recommendation I recall reading somewhere is to try to use super-classes as infrequently as possible because it makes the compiler's job more difficult - also, in this particular case, the GWT compiler is unable to determine the type to serialize to. Try: private MapDayHourCoordenate,ArrayListAppointment mapData = new HashMapDayHourCoordenate,ArrayListAppointment(); or even more preferable, change mapData to a HashMap as well. On Wed, Mar 18, 2009 at 6:05 PM, Vitali Lovich vlov...@gmail.com wrote: That depends on the version of GWT he's using. As of 1.5 (or 1.4 - can't recall the exact version), Serializable is a synonym for IsSerializable On Wed, Mar 18, 2009 at 5:15 PM, George Holler georgehol...@yahoo.comwrote: The class WeeklyAppointmentData does not appear to implement IsSerializable. That's in the first line of the error stack trace. G --- On Wed, 3/18/09, Alejandro D. Garin aga...@gmail.com wrote: From: Alejandro D. Garin aga...@gmail.com Subject: SerializationException when serialize a HashMap over RPC To: Google-Web-Toolkit@googlegroups.com Date: Wednesday, March 18, 2009, 5:13 PM Hello, I can't serialize a HashMap and I don't understand why. Could you help me please? If I remove the following hashMap the RPC work just fine: private MapDayHourCoordenate,ListAppointment mapData = new HashMapDayHourCoordenate,ListAppointment(); *Tomcat error log:* com.google.gwt.user.client.rpc.SerializationException: Type 'com.tasktimer.web.gwt.domain.WeeklyAppointmentData' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer. For security purposes, this type will not be serialized. at com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:140) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:591) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) *The demo clases:* public class SimpleFacadeImpl extends RemoteServiceServlet implements SimpleFacade { private static final long serialVersionUID = 1164908101444531503L; public SimpleFacadeImpl() { } @Override public WeeklyAppointmentData getWeeklyData() { WeeklyAppointmentData data = new WeeklyAppointmentData(); DayHourCoordenate coordenate = new DayHourCoordenate(11,10); data.add(coordenate, new Appointment()); return data; } } @RemoteServiceRelativePath(/simpleFacade.do) public interface SimpleFacade extends RemoteService { public
SerializationException when serialize a HashMap over RPC
Hello, I can't serialize a HashMap and I don't understand why. Could you help me please? If I remove the following hashMap the RPC work just fine: private MapDayHourCoordenate,ListAppointment mapData = new HashMapDayHourCoordenate,ListAppointment(); *Tomcat error log:* com.google.gwt.user.client.rpc.SerializationException: Type 'com.tasktimer.web.gwt.domain.WeeklyAppointmentData' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer. For security purposes, this type will not be serialized. at com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:140) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:591) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) *The demo clases:* public class SimpleFacadeImpl extends RemoteServiceServlet implements SimpleFacade { private static final long serialVersionUID = 1164908101444531503L; public SimpleFacadeImpl() { } @Override public WeeklyAppointmentData getWeeklyData() { WeeklyAppointmentData data = new WeeklyAppointmentData(); DayHourCoordenate coordenate = new DayHourCoordenate(11,10); data.add(coordenate, new Appointment()); return data; } } @RemoteServiceRelativePath(/simpleFacade.do) public interface SimpleFacade extends RemoteService { public WeeklyAppointmentData getWeeklyData(); } public class WeeklyAppointmentData implements Serializable { private static final long serialVersionUID = 4291039636290439374L; private MapDayHourCoordenate,ListAppointment mapData = new HashMapDayHourCoordenate,ListAppointment(); public WeeklyAppointmentData() { } public void add(DayHourCoordenate coordenate, Appointment appointment) { ListAppointment list = mapData.get(coordenate); if( list == null) { list = new ArrayListAppointment(); mapData.put(coordenate, list); } list.add(appointment); } public ListAppointment get(DayHourCoordenate coordenate) { return mapData.get(coordenate); } } public class DayHourCoordenate implements Serializable { private static final long serialVersionUID = 217370389812685596L; private int day = 0; private int hour = 0; public DayHourCoordenate() { } public DayHourCoordenate(int day, int hour) { this.day = day; this.hour = hour; } public int getDay() { return day; } public void setDay(int day) { this.day = day; } public int getHour() { return hour; } public void setHour(int hour) { this.hour = hour; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + day; result = prime * result + hour; return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof DayHourCoordenate)) return false; DayHourCoordenate other =
Re: GWT RIA s ?
Hi, I'm using gwt-mosaic in my project. It's really usefull for my development. I like the layout managers, Widgets like WindowPanel (excelent - it's a DialogBox with resizing and header manager). I choose the library because it's pure gwt code (I agree in this point with Arthur) Ale On Fri, Dec 19, 2008 at 11:47 AM, David Hoffer dhoff...@gmail.com wrote: Thanks I will check out gwt-mosaic again. I tried it recently and it couldn't be used because it was compiled with JRE 1.6, I tried recompiling with 1.5 but ran into issues. Hopefully this will be updated soon. -Dave On Fri, Dec 19, 2008 at 7:32 AM, Arthur Kalmenson arthur.k...@gmail.com wrote: Hi Dave, I see you have put SmartGWT in the JS wrapper camp, is this the case? I haven't heard anything about this library before and had just stumbled across it. SmartGWT is in fact a JS wrapper of the SmartCient JS library (http://www.smartclient.com/) Do you have a web site (or something) where we can find out which GWT libraries are pure GWT and okay to use? IMHO, although I know you steer folks away from the GWT wrapped JS libraries what is sorely needed are mature GWT libraries. Having a list of available GWT libraries would be a helpful start. AFAIK gwt-mosaic is a pure GWT library (http://code.google.com/p/gwt-mosaic/), but I haven't used it. Unfortunately I don't have an answer for you. I agree that there are a lot of immature GWT libraries. The best advice that I can give is to use vanilla GWT with the incubator (although not everything there is great). GWT makes create new widgets pretty easy and the Animation framework is easy to use. If you're interested in how to style up your application, check out this GWT blog post: http://googlewebtoolkit.blogspot.com/2008/12/gwt-no-need-to-shortchange-your-style.html -- Arthur Kalmenson On Fri, Dec 19, 2008 at 9:14 AM, David Hoffer dhoff...@gmail.com wrote: Arthur, I see you have put SmartGWT in the JS wrapper camp, is this the case? I haven't heard anything about this library before and had just stumbled across it. Do you have a web site (or something) where we can find out which GWT libraries are pure GWT and okay to use? IMHO, although I know you steer folks away from the GWT wrapped JS libraries what is sorely needed are mature GWT libraries. Having a list of available GWT libraries would be a helpful start. -Dave On Fri, Dec 19, 2008 at 7:04 AM, Arthur Kalmenson arthur.k...@gmail.com wrote: So you've assumed responsibility for being the GWT saviour by educating these developers and saving their project? I'm not really assuming any responsibility, I'm just mentioning that there are draw backs to using these libraries. What makes you so qualified? I've had to abandon and rewrite a GWT-ext project because of the said drawbacks. I've talked with many other people who had to rewrite ExtGWT and GWT-ext projects. You've expressed your opinion (more than once) so why not leave it at that. How would it appear if someone posted in response to your every post saying that Arthur is clueless? I don't believe I was insulting anyone. And while I've expressed my opinion (which many here hold), many people are new and don't know the downside of using these libraries. Or the ZK guys saying that GWT sucks in their ads that are all over the place. Everyone is entitled to an opinion by going overboard is really not necessary. You know what they say about opinions and wanting to give them... And you've gone out of your way to voice your opinion even no one asked for it. How am I going overboard? Dave Ford's comment is indicative that people appreciate hearing what the down sides are. In order for a developer to make an informed decision, they need to hear all sides and try it for themselves. Try to take a deep breath and relax when these libraries are mentioned and ignore them instead of assuming the role of GWT gatekeeper. There have been stray email questions on various third party libraries like GChart and DnD. I don't see you jump in on those threads pointing to the appropriate forum. That's the thing, if I ignore the posts that tell people to use ExtGWT, gwt-ext or SmartGWT, and no one bothers to warn them, they might end up committing substantial resources to these projects and then have to rewrite them or have them turn out poorly. For example, see this post http://groups.google.com/group/Google-Web-Toolkit/msg/7e3ad4486d103b94 where the developer says load times are slow (it's even slow on my new MacBook Pro). Had the developer used vanilla GWT, I doubt they would have run into those problems. The biggest problem IMHO is that people use these third party libraries and think they're using GWT. They find that it's slow and buggy and attribute it to GWT. Then GWT ends up getting a bad reputation.
Re: Drawing seperator (Line) between widgets
Try usíng a CaptionPanel On 12/15/08, Arul arulmanikandan.sriniva...@gmail.com wrote: Hi, I tried but no solution found. Here I need to group elements after that I need to draw line between different groups. I believe there must be easy way to do that. It would be nice if anyone send the code in GWT. what surprising is none of the examples not shown these kind of things. Normally if a presentation layer is like VB then there would be component available in to have these features. Wonder why GWT does not have it. Thanks Arul -- Sent from Gmail for mobile | mobile.google.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Close button in DialogBox title bar - Why so hard?
Hi, Look the WindowPanel Popup in the gwt-mosaic demo - http://code.google.com/p/gwt-mosaic/ Regards, On Thu, Nov 6, 2008 at 7:28 PM, sibiquin [EMAIL PROTECTED] wrote: It seems that GWT 1.5 has made it very difficult to add custom widgets to the title area of a DialogBox. In prior releases the DialogBox was built from other base widgets (DockPanel, etc), but now it is built on the DecoratorPanel and the title bar is created by inserting elements into the DOM. I have found a dozen questions here and elsewhere on how to simply add a close button and there seems to be no clean answer. Does anyone have a good technique for this simple and common problem? E.g. let me add Widgets to the title area, use normal event handling on them, and not resort to JSNI... Thanks for any ideas. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Gwt Php Framework
Hi Andrej How do you serialize Java objects to and from JSON ? GWTApps in the Database Editor example uses a very nice technique to do that but It works with gwt 1.4. Thanks. On Tue, Sep 2, 2008 at 7:38 AM, Andrej [EMAIL PROTECTED] wrote: Hi Alex, 1. What are your reasons for coding server side in PHP? Didn't you use GWT's RPC methods? (I'm not very familiar with PHP, but as far as I know, u need servlets to comunicate through RPC). We are using PHP because nearly all hosting companies supports PHP. Anyway our client and server side exchange JSON encoded data, so it is platform independent. Andrej --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---