In page (html) anchors don't work - they interfere with history tokens
This question could also be answered herehttp://stackoverflow.com/questions/12509969/gwt-and-in-page-hyperlinks-chapter3-interfere-with-history-tokens :-). I want to add a html-document to a view. the html page contains an toc with anchors a href=#Chapter1Chapter 1/a and a name=Chapter1Chapter 1/a (very oldschool html). The problem is that on click on an item in toc gwt interprets this as goTo(Place with token chapter1) - the link is interpreted as adress to webapp/#chapter1 and this obviously fails. So how to add such html to a gwt widget and make the anchors work as expected (probably all anchors must be modified in some way?)? in meantime i tried wrapping the html in a frame - with no avail. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/lkA18rN3xRIJ. 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.
Change i18n constants in GWT for sweden
Hello I use the i18n functionality of GWT to create a multilingual webapplication and I'd like to translate it into swedish too. But there's the problem that the date format for GWT is wrong in its constants file, so it's in the wrong format on the page. Is it possible to overwrite these constants somehow without changing the file in the gwt-user.jar itself? I saw that its in norwegian too, so maybe there are some more wrong definitions in other languages. Kind regards Roman -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/CuZI-upxC1oJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Change i18n constants in GWT for sweden
On Friday, September 21, 2012 10:16:11 AM UTC+2, roman_e wrote: Hello I use the i18n functionality of GWT to create a multilingual webapplication and I'd like to translate it into swedish too. But there's the problem that the date format for GWT is wrong in its constants file, so it's in the wrong format on the page. Those formats come from the Unicode Consortium's CLDR: http://cldr.unicode.org/ I see they released a new version a week ago, which brings a lot of changes according to their announcement, so hopefully it's just that GWT should be updated to use these new definitions? Is it possible to overwrite these constants somehow without changing the file in the gwt-user.jar itself? I think the easiest would be to define a new locale (e.g. se_XX) where you override the formats you want to change, and make sure you never use the se locale but always the se_XX one (putting only se_XX in the locale property might be enough, with the drawback that se would then use the fallback locale). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8MgLQFpo0SgJ. 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.
Way get info if JavaScriptObject is one of defined overlay objects
Is there any way get info if JavaScriptObject is one of defined overlay objects? Example: I have native factory method which creates JavaScriptObjects: class WeirdFactory { native JavaScriptObject create(String type) { if (type == car) return { name: e46, maker: bmw, seats: 4} else if (type == table) return { material: wood, color: brown} else if (type == type i forgot to crate overlay object for) return { id: someId, name: someName } return null; } } class Car extends JavaScriptObject { native String name() /*-{ return this.name; }-*/; native String maker() /*-{ return this.maker; }-*/; native int seats() /*-{ return this.seats; }-*/; } class Table extends JavaScriptObject { native String material() /*-{ return this.material; }-*/; native String color() /*-{ return this.color; }-*/; } Now I want to use this factory to create overlay objects: T void getValue(ClassT returnType, CallbackT callback, String type) { JavaScriptObject value = weirdFactory.create(type); // Here I need something like // if (!JavaScriptObject.isDefined(value)) // { // *handleUndefinedJSO(value);* // or throw new IllegalArgumentException(Undefined overlay object) // } T returnValue = (T)value; * * **callback.returned(returnValue) } I need somehow check if *value* JavaScriptObject has defined custom overlay object (... extends JavaScriptObject) In pure Java I would catch ClassCastExcetion. But this does not work with JavaScriptObject which simply casts to anything (from it's nature, it's JavaScript object in the end after compilation). Does anybody have idea how to get info if JavaScriptObject is one of defined overlay objects? regards js -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/xp60qKjHptUJ. 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.
UIBinder - problem with damaged layout
Hello, I am trying to build my first user interface using UIBinder and I am having problems with the layout. It looks like this: https://picasaweb.google.com/104334857964624808900/21September2012?authuser=0feat=directlink (The ui.xml is attached below.) The red area on the right has a fixed width and contains a button. The green area on the left should take all the remaining width. The green area contains a 3 DecoratorPanels: - Beteiligung - Status - Turnier The first two should have a fixed size, while the third (Turnier) should grow with the window witdh. I have built the whole widget as follows: - an outer LayoutPanel - three layers with a HTMLPanel - the interiors of the HTMLPanels with Horizontal/VerticalPanels and so on. The whole GUI looks damaged, but I don't know how to fix it. I would appreciate any help! Thanks Magnus - !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui ui:style .layer { background-color: red; } .innerlayer { background-color: green; } .tournamentText { border: solid 1px black; } .label { background-color: orange; margin-right: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .button { width: 50px; float: right; } .clear { clear: right; } /ui:style g:LayoutPanel g:layer top=5 bottom=5 left=5 width=200px g:HTMLPanel styleName={style.innerlayer} g:HorizontalPanel height=100% g:DecoratorPanel g:VerticalPanel g:HTML wordWrap=trueBeteiligung/g:HTML g:CheckBox text=eigene/ g:CheckBox text=fremde/ /g:VerticalPanel /g:DecoratorPanel g:DecoratorPanel g:VerticalPanel g:HTML wordWrap=trueStatus/g:HTML g:CheckBox text=aktiv/ g:CheckBox text=geplant/ g:CheckBox text=beendet/ /g:VerticalPanel /g:DecoratorPanel /g:HorizontalPanel /g:HTMLPanel /g:layer g:layer top=5 bottom=5 left=205 right=140px g:HTMLPanel styleName={style.innerlayer} g:DecoratorPanel width=100% g:VerticalPanel g:HTML wordWrap=falseTurnier/g:HTML g:CheckBox text=Turnier/ g:HTML wordWrap=true styleName={style.tournamentText}XXX/g:HTML /g:VerticalPanel /g:DecoratorPanel /g:HTMLPanel /g:layer g:layer top=20 right=20 width=100px bottom=20px g:HTMLPanel styleName={style.layer} div g:Button addStyleNames={style.button}gt;/g:Button div class={style.clear}/div /div /g:HTMLPanel /g:layer /g:LayoutPanel /ui:UiBinder -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/OgpSUjOCTVYJ. 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: UIBinder - problem with damaged layout
Hello, I simplified the layout as follows, but the fluid DecoratorPanel still gets damaged when resizing the window. I hope someone can help, because I am crazy about using UIBinder now... :-) Magnus - !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui ui:style /ui:style g:LayoutPanel g:layer left=5px top=5px bottom=5px right=100px g:HorizontalPanel g:DecoratorPanel g:VerticalPanel g:HTML wordWrap=trueBeteiligung/g:HTML /g:VerticalPanel /g:DecoratorPanel g:DecoratorPanel g:VerticalPanel g:HTML wordWrap=trueStatus/g:HTML /g:VerticalPanel /g:DecoratorPanel g:Cell width=100% g:DecoratorPanel width=100% g:VerticalPanel g:HTML wordWrap=trueTurnier/g:HTML /g:VerticalPanel /g:DecoratorPanel /g:Cell /g:HorizontalPanel /g:layer /g:LayoutPanel /ui:UiBinder -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bBPD1YFdtMYJ. 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: Way get info if JavaScriptObject is one of defined overlay objects
On Friday, September 21, 2012 1:16:56 PM UTC+2, js402882 wrote: Is there any way get info if JavaScriptObject is one of defined overlay objects? Example: I have native factory method which creates JavaScriptObjects: class WeirdFactory { native JavaScriptObject create(String type) { if (type == car) return { name: e46, maker: bmw, seats: 4} else if (type == table) return { material: wood, color: brown} else if (type == type i forgot to crate overlay object for) return { id: someId, name: someName } return null; } } class Car extends JavaScriptObject { native String name() /*-{ return this.name; }-*/; native String maker() /*-{ return this.maker; }-*/; native int seats() /*-{ return this.seats; }-*/; } class Table extends JavaScriptObject { native String material() /*-{ return this.material; }-*/; native String color() /*-{ return this.color; }-*/; } Now I want to use this factory to create overlay objects: T void getValue(ClassT returnType, CallbackT callback, String type) { JavaScriptObject value = weirdFactory.create(type); // Here I need something like // if (!JavaScriptObject.isDefined(value)) // { // *handleUndefinedJSO(value);* // or throw new IllegalArgumentException(Undefined overlay object) // } T returnValue = (T)value; * * **callback.returned(returnValue) } I need somehow check if *value* JavaScriptObject has defined custom overlay object (... extends JavaScriptObject) In pure Java I would catch ClassCastExcetion. But this does not work with JavaScriptObject which simply casts to anything (from it's nature, it's JavaScript object in the end after compilation). Does anybody have idea how to get info if JavaScriptObject is one of defined overlay objects? There's nothing like defined overlays for a given JS object. Overlays are only a Java API to access a native JS object. For instance, Car car = weirdFactory.create(table) is perfectly legal, and car's getters will simply return null/undefined. And then you can do Table table = car.cast(). You don't have a notion of type on your created objects, so you won't have that in Java either. I mean, in JS, with the same factory, how would you tell if you have a table or a car? if you had constructor functions for the objects (new Table, new Car), you could do instanceof checks (in JS). Or you could have a type property on your objects, so you could getType() in Java to do conditional processing. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/vwb8i-sTz8EJ. 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: UIBinder - problem with damaged layout
On Friday, September 21, 2012 2:10:42 PM UTC+2, Magnus wrote: Hello, I simplified the layout as follows, but the fluid DecoratorPanel still gets damaged when resizing the window. DecoratorPanel uses a 9×9 table, and it looks like the first and last columns are resizing. Try the following: ui:style @external .gwt-*; .gwt-DecoratorPanel { table-layout: fixed; } I hope someone can help, because I am crazy about using UIBinder now... :-) It's nothing to do with UiBinder. Write the same layout in Java, you'll have the same issues. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/J8jGRl_2PoYJ. 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: UIBinder - problem with damaged layout
Hello, sorry for posting my learning curve! :-) I found that DecoratedPanel caused the problems. But I also found that there is CaptionPanel, which much more suits my needs! The layout below is nearly perfect for me. Just two things are missing: - The orange textbox should horizontally grow. - The right most button should be vertically centered. I would be glad if someone could tell me how. Thanks Magnus - !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui ui:style .group { border: solid 1px red; } .tournamentText { background-color: orange; margin-right: 50px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tournamentButton { width: 25px; float: right; } .clear { clear: right; } .updateButton { width: 25px; float: right; } /ui:style g:LayoutPanel g:layer left=5px top=5px bottom=5px right=90px g:HorizontalPanel spacing=5 height=100% g:Cell height= g:CaptionPanel captionText=Beteiligung height=100% width= g:FlowPanel width= height= g:CheckBox text=eigene wordWrap=false/ g:CheckBox text=fremde/ /g:FlowPanel /g:CaptionPanel /g:Cell g:Cell width= g:CaptionPanel captionText=Status width= height=100% g:VerticalPanel width= height= g:CheckBox text=aktiv wordWrap=false/ g:CheckBox text=geplant wordWrap=false/ g:CheckBox text=beendet width=50px wordWrap=false/ /g:VerticalPanel /g:CaptionPanel /g:Cell g:Cell width=100% g:CaptionPanel captionText=Turnier height=100% g:FlowPanel width= height= g:CheckBox text=Turnier/ g:HTMLPanel div g:Button addStyleNames={style.tournamentButton}gt;/g:Button g:TextBox addStyleNames={style.tournamentText}/ div class={style.clear}/div /div /g:HTMLPanel /g:FlowPanel /g:CaptionPanel /g:Cell /g:HorizontalPanel /g:layer g:layer right=5px top=5px bottom=5px width=50px g:HTMLPanel div g:Button addStyleNames={style.updateButton}gt;/g:Button /div /g:HTMLPanel /g:layer /g:LayoutPanel /ui:UiBinder -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ETT5rcDLCWsJ. 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: UIBinder - problem with damaged layout
Hello Thomas, thank you! When I used DecoratorPanel, I did not know CaptionPanel. But CaptionPanel is exactly what I want: group similar widgets. My last layout with CaptionPanel is currently the one that best works for me. There are just two issues... Magnus Am Freitag, 21. September 2012 14:40:29 UTC+2 schrieb Thomas Broyer: DecoratorPanel uses a 9×9 table, and it looks like the first and last columns are resizing. Try the following: ui:style @external .gwt-*; .gwt-DecoratorPanel { table-layout: fixed; } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/_8dvcuRVZfcJ. 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.
ClickHandler for ImageResource in tablebuilder (GWT 2.5)
I have a CellTable that uses a table builder. In the table builder, there is one ImageResource. I get a html from ImageResource and append it to cellRender method in table builder. I cannot use a ClickableText or cell composite because this cell spans multiple columns. I can get whatever I need using tablebuilder with a problem how to handle click event from a image in CellTable. Do you have some suggestions or I need to change my implementation. James -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/LdCERxuVVuUJ. 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: In page (html) anchors don't work - they interfere with history tokens
I'm not quite sure what you are trying to do. If your hrefs are meant to be page request then lose the hash. However if your hrefs are truly meant to be targeted as history tokens then you can try something like : g:InlineHyperlink targetHistoryToken=chapter1 ui:field=simpleTabChapter 1/g:InlineHyperlink On Friday, September 21, 2012 4:02:35 AM UTC-4, tanteanni wrote: This question could also be answered herehttp://stackoverflow.com/questions/12509969/gwt-and-in-page-hyperlinks-chapter3-interfere-with-history-tokens :-). I want to add a html-document to a view. the html page contains an toc with anchors a href=#Chapter1Chapter 1/a and a name=Chapter1Chapter 1/a (very oldschool html). The problem is that on click on an item in toc gwt interprets this as goTo(Place with token chapter1) - the link is interpreted as adress to webapp/#chapter1 and this obviously fails. So how to add such html to a gwt widget and make the anchors work as expected (probably all anchors must be modified in some way?)? in meantime i tried wrapping the html in a frame - with no avail. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Ar4KczILJ-cJ. 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 FileUpload
Thanks Thad! You've really helped me with your post.I've had no clue this method transforms the server response. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/hzyLgL4wEB0J. 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.
Serializing different objects in one class that implements IsSerializable
I created a class that implements IsSerializable. I am using Polygon and LatLng within this class called BoundingBox. I am getting issues with no being able to instantiate Polygon without a constructor. Do you create a separate Polygon class? [ERROR] com.google.gwt.maps.client.overlay.Polygon has no available instantiable subtypes. [ERROR] subtype com.google.gwt.maps.client.overlay.Polygon is not default instantiable (it must have a zero-argument constructor or no constructors at all) and has no custom serializer. Can anyone point me in the right direction??? Thanks! public class BoundingBox implements IsSerializable { private LatLng Coordinate_One; private LatLng Coordinate_Two; private LatLng Coordinate_Three; private LatLng Coordinate_Four; private Polygon poly; public BoundingBox() { } public Polygon getPoly() { return poly; } public void setPoly(Polygon poly) { this.poly = poly; } public Polygon CreatePolygon(BoundingBox bbox) // param = file type object { LatLng[] polyOverlay = new LatLng[5]; polyOverlay[0] = LatLng.newInstance(bbox.getCoordinate_One() .getLatitude(), bbox.getCoordinate_One().getLongitude()); polyOverlay[1] = LatLng.newInstance(bbox.getCoordinate_Two() .getLatitude(), bbox.getCoordinate_Two().getLongitude()); polyOverlay[2] = LatLng.newInstance(bbox.getCoordinate_Three() .getLatitude(), bbox.getCoordinate_Three().getLongitude()); polyOverlay[3] = LatLng.newInstance(bbox.getCoordinate_Four() .getLatitude(), bbox.getCoordinate_Four().getLongitude()); polyOverlay[4] = LatLng.newInstance(bbox.getCoordinate_One() .getLatitude(), bbox.getCoordinate_One().getLongitude()); this.poly = new Polygon(polyOverlay); return poly; } public LatLng getCoordinate_One() { return Coordinate_One; } public void setCoordinate_One(LatLng coordinate_One) { Coordinate_One = coordinate_One; }...etc for the rest of the sets/gets -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/FZ8xY8K6SA0J. 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: In page (html) anchors don't work - they interfere with history tokens
Have you tried to attach an event listener (DOM.addEventListener()) to these anchors and call ClickEvent.preventDefault() when you click on them? That could suppress the history change and you can scroll your html document yourself by reading the href attribute and searching the anchor you need to scroll to. But don't forget to remove the event listener if you don't need the html anymore. If ClickEvent.preventDefault() does not work you need to modify your anchors to a data-scrollTo=chapter1 class=linkStyleChapter 1/a or use div instead of a because you can't use href anyways. So remove the href attribute and put the information in a custom attribute. Your click handler would use the custom attribute to get the information where to scroll to. Obviously you have to do the scrolling yourself (Element.scrollIntoView()). In modern browsers you could maybe use HTML5 pushState instead of hash tokens for history management. In that case you probably don't have to change anything in your html document. But if you want IE compatibility this is not an option. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/aYqzC1JSGYwJ. 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: Serializing different objects in one class that implements IsSerializable
You don't show the Polygon class, but from the error it looks like you haven't provided a zero-argument constructor. It must have one, even if it's private and you never call it. GWT-RPC needs it for anything that it serializes. Paul On 21/09/12 15:40, coffeMan wrote: I created a class that implements IsSerializable. I am using Polygon and LatLng within this class called BoundingBox. I am getting issues with no being able to instantiate Polygon without a constructor. Do you create a separate Polygon class? [ERROR] com.google.gwt.maps.client.overlay.Polygon has no available instantiable subtypes. [ERROR] subtype com.google.gwt.maps.client.overlay.Polygon is not default instantiable (it must have a zero-argument constructor or no constructors at all) and has no custom serializer. Can anyone point me in the right direction??? Thanks! public class BoundingBox implements IsSerializable { private LatLng Coordinate_One; private LatLng Coordinate_Two; private LatLng Coordinate_Three; private LatLng Coordinate_Four; private Polygon poly; public BoundingBox() { } public Polygon getPoly() { return poly; } public void setPoly(Polygon poly) { this.poly = poly; } public Polygon CreatePolygon(BoundingBox bbox) // param = file type object { LatLng[] polyOverlay = new LatLng[5]; polyOverlay[0] = LatLng.newInstance(bbox.getCoordinate_One() .getLatitude(), bbox.getCoordinate_One().getLongitude()); polyOverlay[1] = LatLng.newInstance(bbox.getCoordinate_Two() .getLatitude(), bbox.getCoordinate_Two().getLongitude()); polyOverlay[2] = LatLng.newInstance(bbox.getCoordinate_Three() .getLatitude(), bbox.getCoordinate_Three().getLongitude()); polyOverlay[3] = LatLng.newInstance(bbox.getCoordinate_Four() .getLatitude(), bbox.getCoordinate_Four().getLongitude()); polyOverlay[4] = LatLng.newInstance(bbox.getCoordinate_One() .getLatitude(), bbox.getCoordinate_One().getLongitude()); this.poly = new Polygon(polyOverlay); return poly; } public LatLng getCoordinate_One() { return Coordinate_One; } public void setCoordinate_One(LatLng coordinate_One) { Coordinate_One = coordinate_One; }...etc for the rest of the sets/gets -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/FZ8xY8K6SA0J. 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: Serializing different objects in one class that implements IsSerializable
ok so for my createpolygon method i just make that private? You cant make a private constructor of an object in another class, or can you? And for the polygon class being shown, i am just importing import com.google.gwt.maps.client.overlay.Polygon this. On Fri, Sep 21, 2012 at 7:58 AM, Paul Robinson ukcue...@gmail.com wrote: You don't show the Polygon class, but from the error it looks like you haven't provided a zero-argument constructor. It must have one, even if it's private and you never call it. GWT-RPC needs it for anything that it serializes. Paul On 21/09/12 15:40, coffeMan wrote: I created a class that implements IsSerializable. I am using Polygon and LatLng within this class called BoundingBox. I am getting issues with no being able to instantiate Polygon without a constructor. Do you create a separate Polygon class? [ERROR] com.google.gwt.maps.client.overlay.Polygon has no available instantiable subtypes. [ERROR] subtype com.google.gwt.maps.client.overlay.Polygon is not default instantiable (it must have a zero-argument constructor or no constructors at all) and has no custom serializer. Can anyone point me in the right direction??? Thanks! public class BoundingBox implements IsSerializable { private LatLng Coordinate_One; private LatLng Coordinate_Two; private LatLng Coordinate_Three; private LatLng Coordinate_Four; private Polygon poly; public BoundingBox() { } public Polygon getPoly() { return poly; } public void setPoly(Polygon poly) { this.poly = poly; } public Polygon CreatePolygon(BoundingBox bbox) // param = file type object { LatLng[] polyOverlay = new LatLng[5]; polyOverlay[0] = LatLng.newInstance(bbox.getCoordinate_One() .getLatitude(), bbox.getCoordinate_One().getLongitude()); polyOverlay[1] = LatLng.newInstance(bbox.getCoordinate_Two() .getLatitude(), bbox.getCoordinate_Two().getLongitude()); polyOverlay[2] = LatLng.newInstance(bbox.getCoordinate_Three() .getLatitude(), bbox.getCoordinate_Three().getLongitude()); polyOverlay[3] = LatLng.newInstance(bbox.getCoordinate_Four() .getLatitude(), bbox.getCoordinate_Four().getLongitude()); polyOverlay[4] = LatLng.newInstance(bbox.getCoordinate_One() .getLatitude(), bbox.getCoordinate_One().getLongitude()); this.poly = new Polygon(polyOverlay); return poly; } public LatLng getCoordinate_One() { return Coordinate_One; } public void setCoordinate_One(LatLng coordinate_One) { Coordinate_One = coordinate_One; }...etc for the rest of the sets/gets -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/FZ8xY8K6SA0J. 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: Serializing different objects in one class that implements IsSerializable
The Polygon class is a JavaScriptOverlay type provided by Google and it does not have a no-arg constructor, so you can't use it with GWT-RPC. Other than that I assume you can't use JSO's on server side either (How should JSNI work on server side?) so it does not make sense to use them in a serializable class. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/jtR6LHgwVeAJ. 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: Serializing different objects in one class that implements IsSerializable
Ok, so with that being said, ill need to create my own LatLng and Polygon objects? or? On Fri, Sep 21, 2012 at 8:19 AM, Jens jens.nehlme...@gmail.com wrote: The Polygon class is a JavaScriptOverlay type provided by Google and it does not have a no-arg constructor, so you can't use it with GWT-RPC. Other than that I assume you can't use JSO's on server side either (How should JSNI work on server side?) so it does not make sense to use them in a serializable class. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/jtR6LHgwVeAJ. 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: Error when running my application under GWT 2.5 RC
When I take a second look to the log, I see that that the problem is with the gquery-dnd-bundle-1.0.5.jar. It doesn't support GWT 2.5 yet On Saturday, September 15, 2012 5:38:53 PM UTC-4, Moutellou wrote: I got this error when I run my application undex GWT 2.5 RC. The application contains Celltables, DataGrids and CellTables but the error point to a Class in the GWT SDK Finding entry point classes [ERROR] Errors in 'jar:file:/C:/Users/simo/workspace/M3T/war/WEB-INF/lib/gquery-dnd-bundle-1.0.5.jar!/com/google/gwt/user/cellview/client/CellTreeNodeView.java' [ERROR] Line 99: The type CellTreeNodeViewT.NodeCellListC.View must implement the inherited abstract method HasDataPresenter.ViewC.replaceAllChildren(ListC, SelectionModel? super C, boolean) [ERROR] Line 99: The type CellTreeNodeViewT.NodeCellListC.View must implement the inherited abstract method HasDataPresenter.ViewC.replaceChildren(ListC, int, SelectionModel? super C, boolean) [ERROR] Unable to find type 'com.tb.ttt.client.M3T' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly I have no clue where to look -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/U18spruSIZcJ. 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: Super Dev Mode general question
I want to add to that list, that running Dev Mode with a debugger can be used to fine-tune user interfaces extremely quickly: What I usually do is to put the unit which I need to optimize in a panel, and add a button that refreshes the panel with a new instance of the unit. This doesn't even take a tenth of a second, and it's possible to optimize and fine-tune in quick repetition. Plain JavaScript developer often insist on the importance of seeing the effect of changes absolutely immediately. And I agree with that: If you want to make a UI perfect to the detail, you often end up doing hundreds of iterations. The quicker the iterations, the more willing you are to improve even the last tiny detail. In addition to that, I agree with Alex, that having the debugger features of your IDE (the same IDE you use for developing the application) is indispensable. - For me, it's absolutely ok if Dev Mode doesn't always support the latest version of each browser (as long as the browser allows to have multiple versions installed at the same time). Even dropping support for most browsers would be acceptable. - It's awesome to have Super Dev Mode in addition to standard Dev Mode - I already love it although I haven't used it very much yet. But it should not replace standard dev mode. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/irwmlBwB_bgJ. 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: Consumer site using GWT/GAE
Michael, the app looks really great. Have you considered registering it in the GWT Reference List http://gwtreferencelist.appspot.com/? On Wednesday, September 19, 2012 12:48:27 PM UTC-4, mpowers wrote: All, As an example of a consumer-facing GWT deployment, Hotelme.com just went to public beta with a end-to-end GWT/GAE/Java web site. http://hotelme.com It's work-in-progress, but we're pretty happy with architecture and performance so far. We're partnered with USA Today so we expect traffic to ramp when we get come of beta. (In other news, we're also hiring GWT/GAE developers in Washington DC area and beyond -- please get in touch if interested, thanks.) - Michael -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/k-d-HbY2DNwJ. 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: Future of GWT survey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Cool, thanks for the pointer. I knew about Xtend, but didn't put see the implications of its compiling to Java for GWT development. I'm quite happy with Scala in general, but something statically-typed and less verbose than Java would be very welcome for GWT work. On 09/20/2012 09:54 PM, RonS wrote: Sounds like you're set with Scala, but another advanced JVM language option is XTend (http://www.eclipse.org/xtend/). They recently added GWT support: http://blog.efftinge.de/2012/08/gwt-programming-with-xtend.html http://blog.efftinge.de/2012/08/gwt-programming-with-xtend.html On Thursday, September 20, 2012 1:23:06 PM UTC-5, Clint Gilbert wrote: I would /love/ to be able to use a language other than Java - in particular, Scala - for GWT development. On my project, we use Scala for all our other JVM work, and it's been a massive boilerplate killer, plus easily graspable by curious-but-merely-mortal developers like me. The folks here: http://scalagwt.github.com/ have a working prototype, but the last I heard, they needed to submit a patch upstream to GWT. (Or maybe their patch needed to be accepted, I don't know.) I like GWT quite a lot, and would not make a dynamic web UI without it, but the biggest drag is having to go back to Java. On 09/19/2012 09:23 AM, Joonas Lehtinen wrote: What is your opinion on the future of GWT? How should GWT develop? What technologies should it better support? ... We all would like to get answers to these questions, right? To do so, we created survey with help of Ray Cromwell, Artur Signell, Mike Brock, David Chandler, Daniel Kurka and Bhaskar Janakiraman. If you want to help finding the best direction for GWT, please fill the survey at: http://bit.ly/GWT2012 (it will take just 10 minutes) When the results are collected, the will share the information with you. - Joonas @ Vaadin -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/i8aXw78yueQJ https://groups.google.com/d/msg/google-web-toolkit/-/i8aXw78yueQJ. To post to this group, send email to google-we...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en 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 view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/nHUat9IKTUsJ. 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. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBcrzoACgkQ5IyIbnMUeTvt+wCeNNJTTUHxPX+sbClsVa+/OzeO tNAAn3h1KY3mMSHTCPUtadE0xCbz4Svl =WcsT -END PGP SIGNATURE- -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.5 RC1 Is Here!
Great news. Congrats GWT team! On Wednesday, June 27, 2012 4:39:07 PM UTC-4, Rajeev Dayal wrote: Hey all, We're excited to announce the GWT 2.5 Release Candidate! Read about it on the GWT Blog http://googlewebtoolkit.blogspot.com/2012/06/gwt-2.html, and download it here http://developers.google.com/web-toolkit/download (bottom of the page). The RC has been uploaded to Maven Central with the version string of 2.5.0-rc1. Please give it a try and let us know your feedback! Also, many thanks to all of you for your contributions. Without your help, we wouldn't have had a GWT 2.5 release at all! -Rajeev, on behalf of the GWT team -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/R5PISRlmgOwJ. 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: Consumer site using GWT/GAE
Looks good! Might I suggest clarifying that the hotel info (check availability) will open in another window? Cheers, jec On Fri, Sep 21, 2012 at 1:08 PM, Boris Brudnoy boris.brud...@healthometry.com wrote: Michael, the app looks really great. Have you considered registering it in the GWT Reference List http://gwtreferencelist.appspot.com/? On Wednesday, September 19, 2012 12:48:27 PM UTC-4, mpowers wrote: All, As an example of a consumer-facing GWT deployment, Hotelme.com just went to public beta with a end-to-end GWT/GAE/Java web site. http://hotelme.com It's work-in-progress, but we're pretty happy with architecture and performance so far. We're partnered with USA Today so we expect traffic to ramp when we get come of beta. (In other news, we're also hiring GWT/GAE developers in Washington DC area and beyond -- please get in touch if interested, thanks.) - Michael -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/k-d-HbY2DNwJ. 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: GWT 2.5 RC1 Is Here!
Somebody please can tell me how to install the gwt-2.5.0.rc1.zip in Eclipse Juno ? I downloaded the file. Thanks Pd. Excuseme my English. 2012/9/21 jones34 ljw1...@gmail.com Great news. Congrats GWT team! On Wednesday, June 27, 2012 4:39:07 PM UTC-4, Rajeev Dayal wrote: Hey all, We're excited to announce the GWT 2.5 Release Candidate! Read about it on the GWT Blog http://googlewebtoolkit.blogspot.com/2012/06/gwt-2.html, and download it here http://developers.google.com/web-toolkit/download (bottom of the page). The RC has been uploaded to Maven Central with the version string of 2.5.0-rc1. Please give it a try and let us know your feedback! Also, many thanks to all of you for your contributions. Without your help, we wouldn't have had a GWT 2.5 release at all! -Rajeev, on behalf of the GWT team -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/R5PISRlmgOwJ. 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. -- *Juan Carlos Aranda* Inteligencia de Negocios jc_ara...@intel-negocios.com +502 4192 2302 +502 2220 6876 -- You received 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.
Deploy Module Button in Eclipse Juno (GWT SDK 2.5)
Hello, I am using Eclipse Juno on Windows (7). And I am searching for the Deploy Module Button. https://developers.google.com/web-toolkit/tools/gwtdesigner/tutorials/images/loginmanager_deploy_module_command.png Can someone tell me how to enable it? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/uKyjwkHxUkIJ. 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.
Disclosure panel that is not collapsible
Hi I want to display a panel in two pages, in the first page it is collapsible and in the second it is not. This is the only difference. I am using the UIBinder technique, so I had to introduce two ui.xml files, one using DisclosurePanel and the other using simple HTMLPanel!! I know this is not a good solution because the two xmls are the same except in the type of the panel, so I have to write the layout code twice is there a way to use one file with DisclosurePanel and make it not collapsible? Thanks in advance. Rasha -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/DlbATthlccMJ. 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: Enter key to change the focus from one TextInputCell to another in a celltable.
Here is some code you might also find applicable to your use case: private void focusOnNext(final int currentRow, final int currentCol) { // Scan remaining cells in table for a form element to focus on. for (int r = currentRow; r this.pricingTable.getRowCount(); r++) { final NodeListTableCellElement rowCells = this.pricingTable.getRowElement(r).getCells(); for (int c = 0; c rowCells.getLength(); c++) { if ((r == currentRow) (c = currentCol)) { // don't process these cells since we would be moving the // focus backwards! } else { if (rowCells.getItem(c).getElementsByTagName(input) .getItem(0) != null) { rowCells.getItem(c).getElementsByTagName(input) .getItem(0).focus(); return; } if (rowCells.getItem(c).getElementsByTagName(select) .getItem(0) != null) { rowCells.getItem(c).getElementsByTagName(select) .getItem(0).focus(); return; } if (rowCells.getItem(c).getElementsByTagName(textarea) .getItem(0) != null) { rowCells.getItem(c).getElementsByTagName(textarea) .getItem(0).focus(); return; } } } } } I call this method in my FieldUpdater after redrawing the row on a value change. It works very nicely! On Wednesday, July 25, 2012 11:26:04 AM UTC+2, Nitin wrote: In the cell table to have tab flow working, I had to do the following: cellTable.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED); apart from changing the template of TextInputcell. This helped me in getting the tab flow working properly i.e. when I hit TAB the focus shifts to the next editable cell of the celltable. But there is one more requirement in my project which says that the enter key should behave as the tab key and hence when we hit enter on a particular TextInputcell, the focus should move to the next TextInputcell of the celltable. Can anyone please help me with this? I have tried lots of things to achieve this, but none is working. This is very urgent for the project. Please let me know, if you need more information on the issue. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/75zP9aeD6GoJ. 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: Enter key to change the focus from one TextInputCell to another in a celltable.
Sorry, I forgot to mention: You get the currentRow from the index value provided in the field updater and the currentCol by querying the celltable for the updated column's index (cellTable.getColumnIndex(updatedCol))... On Friday, September 21, 2012 11:09:08 PM UTC+2, Stefaan Vanderheyden wrote: Here is some code you might also find applicable to your use case: private void focusOnNext(final int currentRow, final int currentCol) { // Scan remaining cells in table for a form element to focus on. for (int r = currentRow; r this.pricingTable.getRowCount(); r++) { final NodeListTableCellElement rowCells = this.pricingTable.getRowElement(r).getCells(); for (int c = 0; c rowCells.getLength(); c++) { if ((r == currentRow) (c = currentCol)) { // don't process these cells since we would be moving the // focus backwards! } else { if (rowCells.getItem(c).getElementsByTagName(input) .getItem(0) != null) { rowCells.getItem(c).getElementsByTagName(input) .getItem(0).focus(); return; } if (rowCells.getItem(c).getElementsByTagName(select) .getItem(0) != null) { rowCells.getItem(c).getElementsByTagName(select) .getItem(0).focus(); return; } if (rowCells.getItem(c).getElementsByTagName(textarea) .getItem(0) != null) { rowCells.getItem(c).getElementsByTagName(textarea) .getItem(0).focus(); return; } } } } } I call this method in my FieldUpdater after redrawing the row on a value change. It works very nicely! On Wednesday, July 25, 2012 11:26:04 AM UTC+2, Nitin wrote: In the cell table to have tab flow working, I had to do the following: cellTable.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED); apart from changing the template of TextInputcell. This helped me in getting the tab flow working properly i.e. when I hit TAB the focus shifts to the next editable cell of the celltable. But there is one more requirement in my project which says that the enter key should behave as the tab key and hence when we hit enter on a particular TextInputcell, the focus should move to the next TextInputcell of the celltable. Can anyone please help me with this? I have tried lots of things to achieve this, but none is working. This is very urgent for the project. Please let me know, if you need more information on the issue. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/He1vUgXUeFIJ. 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: Disclosure panel open/close events fire before the widget is actually opened or closed
Thanks for replying Yes I have tried Deferred command but it gives the same effect, or may be I use it in a wrong way? I schedule it inside the event handler, is this the right place? disclosurePanel.addOpenHandler(new OpenHandlerDisclosurePanel() { @Override public void onOpen(OpenEventDisclosurePanel arg0) { scheduleCommand(); } }); private void scheduleCommand() { DeferredCommand.addCommand(new Command() { public void execute() { adjustLayout(); } }); } I checked the issue tracker, and there is an issue planned for the next release. http://code.google.com/p/google-web-toolkit/issues/detail?id=3654q=disclosurepanelcolspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars Regards Rasha On Wednesday, September 19, 2012 4:09:10 PM UTC+2, Patrick Tucker wrote: Looks like fireEvents() should be moved to the animation's onComplete(). Have you checked the issue tracker for a similar report? It might be worth filing one if there is not already an issure for this. No that this is a good solution, but have you tried using a DeferredCommand? On Wednesday, September 19, 2012 4:18:30 AM UTC-4, Rasha ElSayed wrote: Hi all, I am using Disclosure panel in my project and on open/close, I do some layout calculations in which I need the height of the panel. My code is something like this disclosurePanel.addOpenHandler(new OpenHandlerDisclosurePanel() { @Override public void onOpen(OpenEventDisclosurePanel arg0) { adjustPageLayout(pageLayout); } }); The problem is that the open event is fired before the disclosure panel is actually opened, which means that the height of the panel is still as if it is closed (Header-only height). This gives me wrong numbers when I call adjustPageLayout Any idea how to deal with this? Best regards, Rasha -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-VZ-TGhR-dQJ. 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 podcasts?
When I saw your question I wondered the same thing. I had looked before and didn't find much So I started 2 of my own. The first http://www.easygwt.com/ is a podcast I do with Jeff Maslo and we bring GWT related news items to you each week (or we strive for weekly). The second is http://www.gwtcasts.com/ where I hope to deliver bi-weekly screencasts that showcase GWT tips or techniques. We are just getting started but it should be interesting. Please check them out and let us know if you find them useful. Thanks, Gordon Pike On Tuesday, May 29, 2012 7:17:02 AM UTC-6, fishe...@gmail.com wrote: Can anyone recommend any good podcasts with some GWT content? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/EcDu1mNOXmgJ. 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 podcasts?
On Friday, September 21, 2012 6:02:41 PM UTC-6, gpike wrote: When I saw your question I wondered the same thing. I had looked before and didn't find much So I started 2 of my own. The first http://www.easygwt.com/ is a podcast I do with Jeff Maslo and we bring GWT related news items to you each week (or we strive for weekly). The second is http://www.gwtcasts.com/ where I hope to deliver bi-weekly screencasts that showcase GWT tips or techniques. We are just getting started but it should be interesting. Please check them out and let us know if you find them useful. Thanks, Gordon Pike On Tuesday, May 29, 2012 7:17:02 AM UTC-6, fishe...@gmail.com wrote: Can anyone recommend any good podcasts with some GWT content? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ohCG03r_pwwJ. 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.