Re: Cannot parse value: res.xxx as type ImageResource
Yes this is the problem. Sorry again, I have to be more careful :((( Haven't you forgotten the braces? g:Image resource={res.bedroom} / -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to use GIN ?
Thomas gives very good advice, although I personally never use the @ImplementedBy annotation (not entirely sure why...). To complement his answer, if you're interested in saving the addClickHandler call you may want to take a look at UiBinder the @UiHandler annotation. On Jun 27, 3:41 pm, Thomas Broyer t.bro...@gmail.com wrote: On 27 juin, 19:39, yves yves.ko...@gmail.com wrote: Olivier, Thanks for the link. If I try to summarize my problem : Which are the conventions that are implicitly used by GIN to bind classes ? I've already seen gwt-presenter, but it didn't helped me to understand how to transform my code to such code : public class AppModule extends AbstractGinModule { @Override protected void configure() { bind(EventBus.class).to(DefaultEventBus.class); bind(MainPresenter.Display.class).to(MainWidget.class); bind(MenuPresenter.Display.class).to(MenuWidget.class); bind(IssueEditPresenter.Display.class).to(IssueEditWidget.class); bind(IssueDisplayPresenter.Display.class).to(IssueDisplayWidget.class); If you control all of those classes, and they only exist as an interface+implementation class for testing purpose, then I'd rather annotate the interfaces with @ImplementedBy, e.g. �...@implementedby(MainWidget.class) public interface Display { ... } That way, GIN will automatically use MainWidget as if you wrote the bind().to(); and in case you want to inject some other implementation (e.g. in some complex tests), you can use bind().to() without risking a duplicate binding. Is there any doc explaining what is behind the scene with all these bind().to() calls ? In my example, if I write something like bind(SearchPresenter.Display.class).to(someWidget.class); is it equivalent to display = d; display.getSearchButton().addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { doSearch(event); } }); and how to tell GIN that I need to call doSearch() ? No! GIN is only about dependency injection, i.e. it saves you the new, and nothing else. With the above bind().to() and an @Inject annotation on the bind(Display) method, then when GIN is asked to instantiate a SearchPresenter (i.e. when you do not write the new yourself) it'll automatically instantiate a SomeWidget and call bind() with it as an argument (and when instantiating the SomeWidget, it'll automatically instantiate the required dependencies and inject them to @Inject- annotated constructor, fields and methods). Maybe you should look for Guice tutorials to better understand what dependency injection is, and how to configure it with Guice. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to simplify your GwtEvent classes and have fun doing it!
Another simple trick I use when I need multiple events that have the same payload and handler methods, is to not declare the TYPE as a static member of the event. Instead I declare it elsewhere (anywhere really) and pass it to the event's constructor. Really simple, but can dramatically cut down on boilerplate. On Jun 27, 9:05 am, Thomas Broyer t.bro...@gmail.com wrote: A few comments On 27 juin, 13:53, Paul Schwarz paulsschw...@gmail.com wrote: When using the EventBus, for each event type in your system you will create a Class (a GwtEvent) and an Interface (the corresponding EventHandler). It is a bit of a nuisance maintaining two java files for each event. Not necessarily 2 files. As you show below, it's becoming common usage to declare the handler as an inner/nested interface of the event class. So I propose to simplify it by having one abstract event class and then ONLY ONE class for each event, instead of two. Note that your actual usage of your new style event class stays the same, so there is no refactoring required there. That's not totally accurate, see below. ___ 1. In your com.company.project.shared package create this file: import com.google.gwt.event.shared.EventHandler; import com.google.gwt.event.shared.GwtEvent; public abstract class AbstractEvent E extends GwtEventH, H extends AbstractEvent.AbstractHandlerE extends GwtEventH { public static interface AbstractHandlerE extends EventHandler { void handleEvent(E event); } The problem with such a generic interface is that you can't implement 2 of them on the same class. For instance, in my presenters I generally create an inner Handlers class implementing all event handler interfaces I need: class MyPresenter { private class Handlers implements PlaceChangeRequestedEvent.Handler, PlaceChangeEvent.Handler, EmployeeRecordChanged.Handler { public void onPlaceChange(PlaceChangeEvent event) { ... } public void onPlaceChangeRequested(PlaceChangedRequestedEvent event) { ... } public void onEmployeeChanged(EmployeeRecordChanged event) { ... } } �...@inject public MyPresenter(HandlerManager eventBus) { Handlers handlers = new Handlers(); eventBus.addHandler(PlaceChangeRequestedEvent.TYPE, handlers); eventBus.addHandler(PlaceChangeEvent.TYPE, handlers); eventBus.addHandler(EmployeeRecordChanged.TYPE, handlers); } } Using a generic handleEvent method makes this impossible. Well, not impossible, but cumbersome, as you have to do some if/else with instanceof in your handler: public void handleEvent(AbstractEvent event) { if (event instanceof CalendarChangeRequestEvent) { CalendarChangeRequestEvent ccre = (CalendarChangeRequestEvent) event; ... } else if (event instanceof EmployeeRecordChange) { EmployeeRecordChange erc = (EmployeeRecordChange) event; ... } } I'm not saying this is a show blocker, but it can then imply some refactoring, which is not what you promised above ;-) I'm not saying this is a show blocker, but I nonetheless suspect it could be an issue, otherwise GwtEvent would have gone this way from the beginning, or the RecordChangedEvent recently introduced. I know some people complained about not being able to implement two ValueChangeHandler on the same class (in this case you'd check the event's source to disambiguate the events). Personally I'm using a single inner class implementing all handlers instead of many anonymous handler classes, because I know a class has a cost in the output JavaScript cost. I can't tell how many it costs and whether the cost is negligible, and I know it costs less in each GWT release due to compiler optimizations (-XdisableClassMetadata, GWT 2.1 introduces some clinit pruning AFAICT), but still, it doesn't make my code less readable (not particularly more readable either) and implies only one class initialization and instantiation instead of, in the above example code, three. See for instance:http://code.google.com/p/google-web-toolkit/wiki/ClassSetupAndInstant...http://code.google.com/p/google-web-toolkit/wiki/AggressiveClinitOpti...http://code.google.com/p/google-web-toolkit/wiki/ClinitOptimization All in all, I don't think it's really worth it, you're only saving 6 lines of code (3 for the handler declaration, and 3 for the dispatchEvent implementation) with no substantial gain as a result. @SuppressWarnings(unchecked) @Override protected void dispatch(H handler) { handler.handleEvent((E) this); } } ___ 2. This is what an actual event class will look like. I think you'll agree that this is much simpler than before. Notice we've even got rid of getter methods for the
Re: how to control the pixel sizes of a Grid?
Hi Andreas, thank you! I found out something: I thought I could get a solution by inserting images of the correct pixel size into each cell. So I created transparent images with the exact pixel sizes: 50x50 for the inner cells, 50x10 for the horizontal borders, 10x50 vor the vertical borders. As a result, I found out that there is always some vertical space between the images, one or some pixels. I also found out, that the pixel size of the whole grid has changed after inserting the images, so that it is not a square anymore. I inserted some visible pixels into the transparent images, and I verified that there is vertical space between the images. (I set cellspacing and cellpadding to 0) How can I get the grid to show its cells without any space? Thanks Magnus On 27 Jun., 12:59, andreas horst.andrea...@googlemail.com wrote: Hey, maybe this can help you: http://groups.google.com/group/google-web-toolkit/msg/f59a0c87d0cf300e On 27 Jun., 07:23, Magnus alpineblas...@googlemail.com wrote: Hi, I need a Grid with the following simple requirements: - 10 * 10 cells - inner 8*8 cells (form a chess board): rows 1-8; cols 1-8: pixel size 50 * 50 - outer cells (form the annotations, e. g. A, 1): rows 0 and 9: pixel height: 10 cols 0 and 9pixel width: 10 The total pixel size of the grid must therefore be 8*50 + 2*10 = 420 (width and height). I cannot get this realized with a grid. Although I set the pixel sizes for every cell, it's never correct. The annotation cells are always of the same size as the other cells. Below is my code. What can I do? Thanks Magnus private void init () { setPixelSize (420,420); grd.setPixelSize (420,420); grd.setBorderWidth (0); grd.setCellPadding (0); grd.setCellSpacing (0); CellFormatter cf = grd.getCellFormatter (); // set the inner cells for (int y = 1;y 9;y++) for (int x = 1;x 9;x++) { String s; if (((x + y) 1) != 0) s = blackCell; else s = whiteCell; cf.addStyleName (y,x,s); // just the cells color, no sizes here cf.setWidth (y,x,50px); cf.setHeight (y,x,50px); } // set the outer cells for (int x = 0;x 10;x++) { cf.setHeight (x,0,10px); cf.setHeight (x,9,10px); } for (int y = 0;y 10;y++) { cf.setWidth (0,y,10px); cf.setWidth (9,y,10px); } }- Zitierten Text ausblenden - - Zitierten Text anzeigen - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to control the pixel sizes of a Grid?
Try setting the border width on the Grid instance to 0: http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/HTMLTable.html#setBorderWidth(int) - Andreas On 28 Jun., 09:43, Magnus alpineblas...@googlemail.com wrote: Hi Andreas, thank you! I found out something: I thought I could get a solution by inserting images of the correct pixel size into each cell. So I created transparent images with the exact pixel sizes: 50x50 for the inner cells, 50x10 for the horizontal borders, 10x50 vor the vertical borders. As a result, I found out that there is always some vertical space between the images, one or some pixels. I also found out, that the pixel size of the whole grid has changed after inserting the images, so that it is not a square anymore. I inserted some visible pixels into the transparent images, and I verified that there is vertical space between the images. (I set cellspacing and cellpadding to 0) How can I get the grid to show its cells without any space? Thanks Magnus On 27 Jun., 12:59, andreas horst.andrea...@googlemail.com wrote: Hey, maybe this can help you: http://groups.google.com/group/google-web-toolkit/msg/f59a0c87d0cf300e On 27 Jun., 07:23, Magnus alpineblas...@googlemail.com wrote: Hi, I need a Grid with the following simple requirements: - 10 * 10 cells - inner 8*8 cells (form a chess board): rows 1-8; cols 1-8: pixel size 50 * 50 - outer cells (form the annotations, e. g. A, 1): rows 0 and 9: pixel height: 10 cols 0 and 9pixel width: 10 The total pixel size of the grid must therefore be 8*50 + 2*10 = 420 (width and height). I cannot get this realized with a grid. Although I set the pixel sizes for every cell, it's never correct. The annotation cells are always of the same size as the other cells. Below is my code. What can I do? Thanks Magnus private void init () { setPixelSize (420,420); grd.setPixelSize (420,420); grd.setBorderWidth (0); grd.setCellPadding (0); grd.setCellSpacing (0); CellFormatter cf = grd.getCellFormatter (); // set the inner cells for (int y = 1;y 9;y++) for (int x = 1;x 9;x++) { String s; if (((x + y) 1) != 0) s = blackCell; else s = whiteCell; cf.addStyleName (y,x,s); // just the cells color, no sizes here cf.setWidth (y,x,50px); cf.setHeight (y,x,50px); } // set the outer cells for (int x = 0;x 10;x++) { cf.setHeight (x,0,10px); cf.setHeight (x,9,10px); } for (int y = 0;y 10;y++) { cf.setWidth (0,y,10px); cf.setWidth (9,y,10px); } }- Zitierten Text ausblenden - - Zitierten Text anzeigen - -- You received 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: CSS Localization
On 28 juin, 03:53, Dan ddum...@gmail.com wrote: Is it possible to localize the css in a CssResource so that during the translation phase of product development, css tweaks can be made to adjust for language specific spacing and formatting issues? Yes, you can have distinct MyStyle_en.css MyStyle_fr.css, etc. and have them picked from a single @Source(MyStyle.css). if not, what's the current best practice to work around these issues? If the changes are localised though, I'd rather use @if blocks: @if locale en { ... } @elif locale fr { ... } -- You received 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: PushButton hover not always removed on mouse out
I've had to make my own image button and replace all instances of PushButton with it. It mimics the PushButton behaviour but doesn't have this issue on the exact same page so I'm pretty sure this is an issue with PushButton. On May 17, 9:28 pm, ChrisK cknow...@gmail.com wrote: I'm using GWT 2.0.3 and using UiBinder am adding a composite to the RootPanel. The composite contains some PushButtons which I am defining fully using UiBinder with g:upFace, g:upHoveringFace and g:downFace. The issue is that it's very easy to fool all of these buttons just by moving themousequickly across them - they stay in the hover state and even have the gwt-PushButton-up-hovering CSS class attached. If I replace a button with an Image and add my own code formouse over,mouseout andmouseup it works absolutely fine and I'm not able to fool the fake button. Obviously though I'd like to use the built in widgets as they provide at lot of added extras such as accessibility (amongst other things). Looking at the source code for CustomButton whichPushButtonextends, I can't understand line 623-631 (in current trunk but has been there for a while). I think there are more situations where setHovering should be set to false but I may be misunderstanding the isOrHasChild/ eventGetTarget methods. case Event.ONMOUSEOUT: Element to = DOM.eventGetToElement(event); if (DOM.isOrHasChild(getElement(), DOM.eventGetTarget(event)) (to == null || !DOM.isOrHasChild(getElement(), to))) { if (isCapturing) { onClickCancel(); } setHovering(false); } break; -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to control the pixel sizes of a Grid?
Hi, I also set the border width to 0: grd.setBorderWidth(0); Thanks Magnus On 28 Jun., 09:53, andreas horst.andrea...@googlemail.com wrote: Try setting the border width on the Grid instance to 0: http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...) - Andreas On 28 Jun., 09:43, Magnus alpineblas...@googlemail.com wrote: Hi Andreas, thank you! I found out something: I thought I could get a solution by inserting images of the correct pixel size into each cell. So I created transparent images with the exact pixel sizes: 50x50 for the inner cells, 50x10 for the horizontal borders, 10x50 vor the vertical borders. As a result, I found out that there is always some vertical space between the images, one or some pixels. I also found out, that the pixel size of the whole grid has changed after inserting the images, so that it is not a square anymore. I inserted some visible pixels into the transparent images, and I verified that there is vertical space between the images. (I set cellspacing and cellpadding to 0) How can I get the grid to show its cells without any space? Thanks Magnus On 27 Jun., 12:59, andreas horst.andrea...@googlemail.com wrote: Hey, maybe this can help you: http://groups.google.com/group/google-web-toolkit/msg/f59a0c87d0cf300e On 27 Jun., 07:23, Magnus alpineblas...@googlemail.com wrote: Hi, I need a Grid with the following simple requirements: - 10 * 10 cells - inner 8*8 cells (form a chess board): rows 1-8; cols 1-8: pixel size 50 * 50 - outer cells (form the annotations, e. g. A, 1): rows 0 and 9: pixel height: 10 cols 0 and 9pixel width: 10 The total pixel size of the grid must therefore be 8*50 + 2*10 = 420 (width and height). I cannot get this realized with a grid. Although I set the pixel sizes for every cell, it's never correct. The annotation cells are always of the same size as the other cells. Below is my code. What can I do? Thanks Magnus private void init () { setPixelSize (420,420); grd.setPixelSize (420,420); grd.setBorderWidth (0); grd.setCellPadding (0); grd.setCellSpacing (0); CellFormatter cf = grd.getCellFormatter (); // set the inner cells for (int y = 1;y 9;y++) for (int x = 1;x 9;x++) { String s; if (((x + y) 1) != 0) s = blackCell; else s = whiteCell; cf.addStyleName (y,x,s); // just the cells color, no sizes here cf.setWidth (y,x,50px); cf.setHeight (y,x,50px); } // set the outer cells for (int x = 0;x 10;x++) { cf.setHeight (x,0,10px); cf.setHeight (x,9,10px); } for (int y = 0;y 10;y++) { cf.setWidth (0,y,10px); cf.setWidth (9,y,10px); } }- Zitierten Text ausblenden - - Zitierten Text anzeigen -- Zitierten Text ausblenden - - Zitierten Text anzeigen - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to control the pixel sizes of a Grid?
Hi, I made a screenshot of the table: cannot post link to imageshack, why? I drew a cross on the transparent images for debugging. As you can see, there is always a vertical space between the images. I post my current code below. Thanks for help Magnus --- private void init () { normalize (grd); setPixelSize (bs+55,bs+55); // enlarged for debugging this.addStyleName (pnl-g); // green border grd.setPixelSize (bs,bs); grd.setSize (bs+px,bs+px); grd.setBorderWidth (0); grd.setCellPadding (0); grd.setCellSpacing (0); grd.addStyleName (pnl-r); addImages (grd); CellFormatter cf = grd.getCellFormatter (); for (int x = 1;x 9;x++) { cf.addStyleName (x,0,ics-Board-Annotation-V); cf.addStyleName (x,9,ics-Board-Annotation-V); } for (int y = 1;y 9;y++) { cf.addStyleName (0,y,ics-Board-Annotation-H); cf.addStyleName (9,y,ics-Board-Annotation-H); } grd.setPixelSize (bs,bs); grd.setSize (bs+px,bs+px); } private void addImages (Grid grd) { CellFormatter f = grd.getCellFormatter (); for (int x = 1;x 9;x++) { Image i; i = new Image (Resources.instance.nlv ()); grd.setWidget (0,x,i); i = new Image (Resources.instance.nlv ()); grd.setWidget (9,x,i); } for (int y = 1;y 9;y++) { Image i; i= new Image (Resources.instance.nlh ()); grd.setWidget (y,0,i); i = new Image (Resources.instance.nlh ()); grd.setWidget (y,9,i); } } private void normalize (Grid grd) { for (int y = 0;y 10;y++) for (int x = 0;x 10;x++) { CellFormatter f = grd.getCellFormatter (); Element e = f.getElement (y,x); f.removeStyleName (y,x,td); f.removeStyleName (y,x,tr); String tc = e.getClassName (); // tried almost everything: Style stl = e.getStyle (); stl.clearBorderStyle (); stl.clearBorderWidth (); stl.clearBottom (); stl.clearHeight (); stl.clearLeft (); stl.clearMargin (); stl.clearPadding (); stl.clearPosition (); stl.clearRight (); stl.clearTextDecoration (); stl.clearTop (); stl.clearWidth (); stl.clearZIndex (); } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to control the pixel sizes of a Grid?
Here is the screenshot: http://yfrog.com/j7chessboardj Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to control the pixel sizes of a Grid?
Where exactly are the vertical spaces? From what I see, there are no spaces between the cells of the top and bottom row and the spaces between the cells in the left and right column are of the same color as the image background, so I assume there are actually also no spaces, correct me on this one? For better debug you could also assign a border and background color to the Grid. If none of these colors will be visible you can be sure that there are no spaces or anything left. For the inner cells I can not say if there are any spaces. Also I assume your style pnl-r adds the red border to the Grid? If there were any spaces left caused by the border width you would see a red Grid. I think you got what you wanted... BTW: I think you do not need to set the cell dimensions manually; Grid will automatically adjust cell dimensions so that the cell widgets fit, in other words a columns width for example will be adjusted so that the cell widget with the biggest width is completely visible; same goes for rows and heights and so on BTW2: the two for-blocks in init() can be realized in one single for- block since they iterate over exactly the same interval (0-9) On 28 Jun., 11:27, Magnus alpineblas...@googlemail.com wrote: Here is the screenshot: http://yfrog.com/j7chessboardj Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to control the pixel sizes of a Grid?
Here's code I'd use to create a simplistic chess board: // the chess board with no spaces Grid cb = new Grid(10, 10); cb.setCellPadding(0); cb.setCellSpacing(0); cb.setBorderWidth(0); // assembles the board by inserting colored panels for (int i = 1; i 9; i++) { // panels of the top row SimplePanel pHTop = new SimplePanel(); pHTop.setPixelSize(40, 20); pHTop.getElement().getStyle().setBackgroundColor(red); // panels of the bottom row SimplePanel pHBottom = new SimplePanel(); pHBottom.setPixelSize(40, 20); pHBottom.getElement().getStyle().setBackgroundColor(red); // panels of the left column SimplePanel pVLeft = new SimplePanel(); pVLeft.setPixelSize(20, 40); pVLeft.getElement().getStyle().setBackgroundColor(green); // panels of the right column SimplePanel pVRight = new SimplePanel(); pVRight.setPixelSize(20, 40); pVRight.getElement().getStyle().setBackgroundColor(green); // insert the border cells cb.setWidget(0, i, pHTop); cb.setWidget(9, i, pHBottom); cb.setWidget(i, 0, pVLeft); cb.setWidget(i, 9, pVRight); for (int j = 1; j 9; j++) { // the inner chess board panels SimplePanel cP = new SimplePanel(); cP.setPixelSize(40, 40); // switches between black and white if (j % 2 == 0) { cP.getElement().getStyle().setBackgroundColor( i % 2 == 0 ? black : white); } else { cP.getElement().getStyle().setBackgroundColor( i % 2 == 0 ? white : black); } cb.setWidget(i, j, cP); } } // there it is RootPanel.get().add(cb, 1, 1); Programmatic styles are of course not as good as using stylesheets, consider this just a demo. On 28 Jun., 11:51, andreas horst.andrea...@googlemail.com wrote: Where exactly are the vertical spaces? From what I see, there are no spaces between the cells of the top and bottom row and the spaces between the cells in the left and right column are of the same color as the image background, so I assume there are actually also no spaces, correct me on this one? For better debug you could also assign a border and background color to the Grid. If none of these colors will be visible you can be sure that there are no spaces or anything left. For the inner cells I can not say if there are any spaces. Also I assume your style pnl-r adds the red border to the Grid? If there were any spaces left caused by the border width you would see a red Grid. I think you got what you wanted... BTW: I think you do not need to set the cell dimensions manually; Grid will automatically adjust cell dimensions so that the cell widgets fit, in other words a columns width for example will be adjusted so that the cell widget with the biggest width is completely visible; same goes for rows and heights and so on BTW2: the two for-blocks in init() can be realized in one single for- block since they iterate over exactly the same interval (0-9) On 28 Jun., 11:27, Magnus alpineblas...@googlemail.com wrote: Here is the screenshot: http://yfrog.com/j7chessboardj 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.
[ERROR] Unable to find 'Student.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
hello, Its been now long time i m using GWT , I am facing some problem with GWT modules. I was having several modules in my application but over the period I updated my application and just wanted to remove some unused stuff from the application. So I deleted the module Student and then i tried running application in hosted mode it worked fine but I got error on the console saying [ERROR] Unable to find 'Student.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? I am not able to figure out why I am getting this error as that is module is not present and I have deleted all the files which were associated with that module so no chance of having any reference. Still i m getting that error message and just because of that I can't run my application in debug mode so i cant hit the client side break points as by passing extra URL param application refuses to run. Any one has encountered this problem before if yes then please let me know. thank you -- Aditya -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Unable to find 'Student.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
Did you remove all inherits tags in all other modules referencing Student.gwt.xml? It may be a module still referencing it... On 28 Jun., 12:26, Aditya 007aditya.b...@gmail.com wrote: hello, Its been now long time i m using GWT , I am facing some problem with GWT modules. I was having several modules in my application but over the period I updated my application and just wanted to remove some unused stuff from the application. So I deleted the module Student and then i tried running application in hosted mode it worked fine but I got error on the console saying [ERROR] Unable to find 'Student.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? I am not able to figure out why I am getting this error as that is module is not present and I have deleted all the files which were associated with that module so no chance of having any reference. Still i m getting that error message and just because of that I can't run my application in debug mode so i cant hit the client side break points as by passing extra URL param application refuses to run. Any one has encountered this problem before if yes then please let me know. thank you -- Aditya -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Unable to find 'Student.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
Delete old run configuration file. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Unable to find 'Student.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
I m having 11-12 modules with having same inherits following files inherits name=com.google.gwt.user.User / inherits name=com.google.gwt.user.theme.standard.Standard/ inherits name='com.googlecode.gchart.GChart'/ these are common and none other than this. and forth one is for entry point. but i didn;t found a single module referencing that deleted student.gwt.xml module...! -- Aditya On Mon, Jun 28, 2010 at 3:59 PM, andreas horst.andrea...@googlemail.comwrote: Did you remove all inherits tags in all other modules referencing Student.gwt.xml? It may be a module still referencing it... On 28 Jun., 12:26, Aditya 007aditya.b...@gmail.com wrote: hello, Its been now long time i m using GWT , I am facing some problem with GWT modules. I was having several modules in my application but over the period I updated my application and just wanted to remove some unused stuff from the application. So I deleted the module Student and then i tried running application in hosted mode it worked fine but I got error on the console saying [ERROR] Unable to find 'Student.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? I am not able to figure out why I am getting this error as that is module is not present and I have deleted all the files which were associated with that module so no chance of having any reference. Still i m getting that error message and just because of that I can't run my application in debug mode so i cant hit the client side break points as by passing extra URL param application refuses to run. Any one has encountered this problem before if yes then please let me know. thank you -- Aditya -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Unable to find 'Student.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
@prashant : Can you please specify that file name which i should delete and exactly where it is located...? Thanks. -- Aditya On Mon, Jun 28, 2010 at 4:02 PM, Prashant nextprash...@gmail.com wrote: Delete old run configuration file. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.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: Problem with eclipse plugin.
Hi Tried deleting the run configuraitons but the error is the same. I'm running Eclipse 3.5 with the Google Plugin for Eclipse 3.5 1.1.0.v200907291526 com.google.gdt.eclipse.suite.e35.feature.feature.group Thanks /X On 24 Juni, 16:09, Jason Parekh jasonpar...@gmail.com wrote: Try deleting the existing launch configuration (Run Run configurations) and then re-running. If you can reproduce this behavior from a blank slate, please file a bug. Thanks, jason On Thu, Jun 24, 2010 at 7:24 AM, xworker blomqvist.andr...@gmail.comwrote: Hi I have created a GWT project in Eclipse as a Dynamical webproject. When I choose Run- Web Application (with the google plugin) I get this error: Unknown argument: -style Google Web Toolkit 2.0.3 DevMode [-noserver] [-port port-number | auto] [-whitelist whitelist- string] [-blacklist blacklist-string] [-logdir directory] [-logLevel level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort port-number | auto] [-server servletContainerLauncher[:args]] [- startupUrl url] [-war dir] [-extra dir] [-workDir dir] module[s] I am behind a company firewall so I have installed the plugin manually. What could be the issue? thanks /x -- You received 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.- Dölj citerad text - - Visa citerad text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem with eclipse plugin.
Updated the plugin to: Google Plugin for Eclipse 3.5 1.1.101.v200911161426 com.google.gdt.eclipse.suite.e35.feature.feature.group But now I get this error instead: Unknown argument: -portHosted Google Web Toolkit 2.0.3 DevMode [-noserver] [-port port-number | auto] [-whitelist whitelist- string] [-blacklist blacklist-string] [-logdir directory] [-logLevel level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort port-number | auto] [-server servletContainerLauncher[:args]] [- startupUrl url] [-war dir] [-extra dir] [-workDir dir] module[s] I cannot install from the updated site since I'm behind corp. firewall. Will continue to search for a newer zip version of the plugin. /x On 28 Juni, 12:48, xworker blomqvist.andr...@gmail.com wrote: Hi Tried deleting the run configuraitons but the error is the same. I'm running Eclipse 3.5 with the Google Plugin for Eclipse 3.5 1.1.0.v200907291526 com.google.gdt.eclipse.suite.e35.feature.feature.group Thanks /X On 24 Juni, 16:09, Jason Parekh jasonpar...@gmail.com wrote: Try deleting the existing launch configuration (Run Run configurations) and then re-running. If you can reproduce this behavior from a blank slate, please file a bug. Thanks, jason On Thu, Jun 24, 2010 at 7:24 AM, xworker blomqvist.andr...@gmail.comwrote: Hi I have created a GWT project in Eclipse as a Dynamical webproject. When I choose Run- Web Application (with the google plugin) I get this error: Unknown argument: -style Google Web Toolkit 2.0.3 DevMode [-noserver] [-port port-number | auto] [-whitelist whitelist- string] [-blacklist blacklist-string] [-logdir directory] [-logLevel level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort port-number | auto] [-server servletContainerLauncher[:args]] [- startupUrl url] [-war dir] [-extra dir] [-workDir dir] module[s] I am behind a company firewall so I have installed the plugin manually. What could be the issue? thanks /x -- You received 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.-Dölj citerad text - - Visa citerad text -- Dölj citerad text - - Visa citerad text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem with eclipse plugin.
Found the RC2 eclipse plugin. Works. Case closed. /x On 28 Juni, 12:48, xworker blomqvist.andr...@gmail.com wrote: Hi Tried deleting the run configuraitons but the error is the same. I'm running Eclipse 3.5 with the Google Plugin for Eclipse 3.5 1.1.0.v200907291526 com.google.gdt.eclipse.suite.e35.feature.feature.group Thanks /X On 24 Juni, 16:09, Jason Parekh jasonpar...@gmail.com wrote: Try deleting the existing launch configuration (Run Run configurations) and then re-running. If you can reproduce this behavior from a blank slate, please file a bug. Thanks, jason On Thu, Jun 24, 2010 at 7:24 AM, xworker blomqvist.andr...@gmail.comwrote: Hi I have created a GWT project in Eclipse as a Dynamical webproject. When I choose Run- Web Application (with the google plugin) I get this error: Unknown argument: -style Google Web Toolkit 2.0.3 DevMode [-noserver] [-port port-number | auto] [-whitelist whitelist- string] [-blacklist blacklist-string] [-logdir directory] [-logLevel level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort port-number | auto] [-server servletContainerLauncher[:args]] [- startupUrl url] [-war dir] [-extra dir] [-workDir dir] module[s] I am behind a company firewall so I have installed the plugin manually. What could be the issue? thanks /x -- You received 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.-Dölj citerad text - - Visa citerad text -- Dölj citerad text - - Visa citerad text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
how to expends the rows of gwt ext's grid
Hello Friends. How are You all. My question is that.. Can we create grid like smartGwt's Grid by using gwt-ext? I have created smartGwt Grid but smartgwt is little bit slower then gwt ext, so now i want to create grid in gwt. but my problem is that i don't know how to add rows expansion in gwt ext's grid like the smartGwt's Grid. I have created smart Gwt's showcase below written example... Grids---expanding Rows---Memo Rows... -- You received 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 Gmail API
http://code.google.com/apis/contacts/ :) 2010/6/28 charlie charlie.f...@gmail.com Googling for this yields a lot of results that are not applicable for what I'm searching for. Is there a GWT Gmail API so that given an email and password, I can see a list of their contacts ? -- charlie/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Unable to find 'Student.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
Problem resolved. I deleted files from Run configurations . -- Aditya On Mon, Jun 28, 2010 at 4:08 PM, aditya sanas 007aditya.b...@gmail.comwrote: @prashant : Can you please specify that file name which i should delete and exactly where it is located...? Thanks. -- Aditya On Mon, Jun 28, 2010 at 4:02 PM, Prashant nextprash...@gmail.com wrote: Delete old run configuration file. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to control the pixel sizes of a Grid?
Hello, I made another screenshot with red borders around the images: http://yfrog.com/cachessboardj As you can see there is vedrtical space below each image. I just found out that this is not the case in IE. Thanks Magnus On 28 Jun., 11:51, andreas horst.andrea...@googlemail.com wrote: Where exactly are the vertical spaces? From what I see, there are no spaces between the cells of the top and bottom row and the spaces between the cells in the left and right column are of the same color as the image background, so I assume there are actually also no spaces, correct me on this one? For better debug you could also assign a border and background color to the Grid. If none of these colors will be visible you can be sure that there are no spaces or anything left. For the inner cells I can not say if there are any spaces. Also I assume your style pnl-r adds the red border to the Grid? If there were any spaces left caused by the border width you would see a red Grid. I think you got what you wanted... BTW: I think you do not need to set the cell dimensions manually; Grid will automatically adjust cell dimensions so that the cell widgets fit, in other words a columns width for example will be adjusted so that the cell widget with the biggest width is completely visible; same goes for rows and heights and so on BTW2: the two for-blocks in init() can be realized in one single for- block since they iterate over exactly the same interval (0-9) On 28 Jun., 11:27, Magnus alpineblas...@googlemail.com wrote: Here is the screenshot: http://yfrog.com/j7chessboardj Magnus- Zitierten Text ausblenden - - Zitierten Text anzeigen - -- You received 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.
Working with Date using JSON - pt_BR
Hi, Is possible to convert a javascript Date object to a java.util.Date (and vice-versa)? Like the string or int? The Date.parse is marked as deprecated in the JDK, it's safe to use it within the GWT, and what is the behavior (localization) that it will show. My primary target is Brazilian locale (pt_BR). Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to control the pixel sizes of a Grid?
Yes I see. Maybe the image file dimensions and the dimensions of the Image instances are conflicting. When I get it right the dimensions of the Image instances are never set. Instead they are resized based on the dimension of the Grid itself. Now if the Image instances display an image with different dimensions I can not tell what this results in. Look at my code, I never call setSize(...) or setPixelSize(...) on the Grid. It will automatically resize based on the dimensions of its cells. Try setting the pixel size of the Image instances (rather than Grid) so that the (raw) image is perfectly fitted (resolution of the png or whatever). In my example the SimplePanel dimensions are simply 40x40 and for the border cells 40x20/20x40 ... the overall size results in the row and column sum of all cells dimensions AND is never set manually. On 28 Jun., 14:48, Magnus alpineblas...@googlemail.com wrote: Hello, I made another screenshot with red borders around the images:http://yfrog.com/cachessboardj As you can see there is vedrtical space below each image. I just found out that this is not the case in IE. Thanks Magnus On 28 Jun., 11:51, andreas horst.andrea...@googlemail.com wrote: Where exactly are the vertical spaces? From what I see, there are no spaces between the cells of the top and bottom row and the spaces between the cells in the left and right column are of the same color as the image background, so I assume there are actually also no spaces, correct me on this one? For better debug you could also assign a border and background color to the Grid. If none of these colors will be visible you can be sure that there are no spaces or anything left. For the inner cells I can not say if there are any spaces. Also I assume your style pnl-r adds the red border to the Grid? If there were any spaces left caused by the border width you would see a red Grid. I think you got what you wanted... BTW: I think you do not need to set the cell dimensions manually; Grid will automatically adjust cell dimensions so that the cell widgets fit, in other words a columns width for example will be adjusted so that the cell widget with the biggest width is completely visible; same goes for rows and heights and so on BTW2: the two for-blocks in init() can be realized in one single for- block since they iterate over exactly the same interval (0-9) On 28 Jun., 11:27, Magnus alpineblas...@googlemail.com wrote: Here is the screenshot: http://yfrog.com/j7chessboardj Magnus- Zitierten Text ausblenden - - Zitierten Text anzeigen - -- You received 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 Popup is not centered
I see the exact same behaviour in my application, and would appreciate any ideas with this issue. The popup is not centered for the first time only, and afterwards popup.center() works fine. I am using GWT 2.0.3. Here is some sample code: public class LoginForm extends PopupPanel { public LoginForm(){ this.setStyleName(bwPopupPanel); this.setGlassEnabled(true); this.add(new LoginFields()); this.center(); } } //..Different class.. private void showLoginPopUp() { @SuppressWarnings(unused) LoginForm loginPanel = new LoginForm(); } Any thoughts? On Jun 27, 9:06 pm, Ricardo.M ricardo.mar...@gmail.com wrote: Hi, I use gwtpopupto show some messages, but it isnotdisplayed in thecenterof the display event if i callpopup.center(). Actually it isnotcentered only the first time, if i close it and open it again every thing is ok, butnotthe first time. How to fix that? I tried using .setPopupPosition(350, 250); but thepopupisnot centered only the first time. Regards. -- You received 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: Testing client code fails with JDOFatalUserException: Duplicate PMF name
Hello I've the same problem Did you find the solution? Thanks. On Jun 7, 10:13 am, ingo ingo.jaec...@googlemail.com wrote: hello google, believe it or not but this seems to be a problem as huherto wrote on the mailing list in earlier this year. unfortunately, he did not receive an answer either: http://groups.google.com/group/google-web-toolkit/browse_thread/threa... would appreciate a quick response to this issue. kind regards, ingo On 3 Jun., 11:42, ingo ingo.jaec...@googlemail.com wrote: as a workaround i removed the jdoconfig.xml file from the src/WEB-INF directory and from the war/WEB-INF/classes/META-INF directory. then i instantiated the persistence manager factory by using a map like the following: final MapString, String map = new HashMapString, String(); map.put(javax.jdo.PersistenceManagerFactoryClass, org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory); map.put(javax.jdo.option.ConnectionURL, appengine); map.put(javax.jdo.option.NontransactionalRead, true); map.put(javax.jdo.option.NontransactionalWrite, true); map.put(javax.jdo.option.RetainValues, true); map.put(datanucleus.appengine.autoCreateDatastoreTxns, true); pmf= JDOHelper.getPersistenceManagerFactory(map); this somehow lets the test run successfully but throws the following exception nevertheless: [WARN] StandardContext[]Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract crm.client.dto.AbstractDto crm.client.CommonService.get(int,long)' threw an unexpected exception: java.lang.NullPointerException:NoAPIenvironmentisregisteredfor thisthread. at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java: 288) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java: 104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java: 198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java: 104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java: 104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java: 102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java: 104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: 929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java: 160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 799) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 577) at org.apache.tomcat.util.threads.ThreadPool
Re: GWT Popup is not centered
Did you try calling center() after the constructor, for example right after where you instantiate the PopupPanel without the center() inside the constructor? I'm not that deep into GWT core but maybe it's related to the fact that elements get their real/actual dimensions (and these are needed to calculate the center position) only after being completely attached to the DOM. Maybe this is not the case from within the constructor. You can observe this behavior with a Panel. Set its pixel size but don't add it to the RootPanel or any other Panel. Calling getOffsetHeight/Width will not return the expected values until the Panel is attached. On 28 Jun., 15:32, RPB robbol...@gmail.com wrote: I see the exact same behaviour in my application, and would appreciate any ideas with this issue. The popup is not centered for the first time only, and afterwards popup.center() works fine. I am using GWT 2.0.3. Here is some sample code: public class LoginForm extends PopupPanel { public LoginForm(){ this.setStyleName(bwPopupPanel); this.setGlassEnabled(true); this.add(new LoginFields()); this.center(); } } //..Different class.. private void showLoginPopUp() { @SuppressWarnings(unused) LoginForm loginPanel = new LoginForm(); } Any thoughts? On Jun 27, 9:06 pm, Ricardo.M ricardo.mar...@gmail.com wrote: Hi, I use gwtpopupto show some messages, but it isnotdisplayed in thecenterof the display event if i callpopup.center(). Actually it isnotcentered only the first time, if i close it and open it again every thing is ok, butnotthe first time. How to fix that? I tried using .setPopupPosition(350, 250); but thepopupisnot centered only the first time. Regards. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem with eclipse plugin.
Those versions are obsolete (including RC2). The latest stable version of our plugin is GPE 1.3.3, which is available via our update site, see http://code.google.com/eclipse/docs/getting_started.html . jason On Mon, Jun 28, 2010 at 7:53 AM, xworker blomqvist.andr...@gmail.comwrote: Found the RC2 eclipse plugin. Works. Case closed. /x On 28 Juni, 12:48, xworker blomqvist.andr...@gmail.com wrote: Hi Tried deleting the run configuraitons but the error is the same. I'm running Eclipse 3.5 with the Google Plugin for Eclipse 3.5 1.1.0.v200907291526 com.google.gdt.eclipse.suite.e35.feature.feature.group Thanks /X On 24 Juni, 16:09, Jason Parekh jasonpar...@gmail.com wrote: Try deleting the existing launch configuration (Run Run configurations) and then re-running. If you can reproduce this behavior from a blank slate, please file a bug. Thanks, jason On Thu, Jun 24, 2010 at 7:24 AM, xworker blomqvist.andr...@gmail.com wrote: Hi I have created a GWT project in Eclipse as a Dynamical webproject. When I choose Run- Web Application (with the google plugin) I get this error: Unknown argument: -style Google Web Toolkit 2.0.3 DevMode [-noserver] [-port port-number | auto] [-whitelist whitelist- string] [-blacklist blacklist-string] [-logdir directory] [-logLevel level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort port-number | auto] [-server servletContainerLauncher[:args]] [- startupUrl url] [-war dir] [-extra dir] [-workDir dir] module[s] I am behind a company firewall so I have installed the plugin manually. What could be the issue? thanks /x -- You received 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.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.-Döljhttp://groups.google.com/group/google-web-toolkit?hl=en.-D%C3%B6ljciterad text - - Visa citerad text -- Dölj citerad text - - Visa citerad text - -- You received 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: Google Plugin for Eclipse 3.6 is now available
On Fri, Jun 25, 2010 at 6:59 PM, Thomas Broyer t.bro...@gmail.com wrote: On 23 juin, 23:14, Jason Parekh jasonpar...@gmail.com wrote: Hey folks, Google Plugin for Eclipse 1.3.3 is out with support for Eclipse 3.6. Install it with Eclipse 3.6's new Eclipse Marketplace feature by going to Help Eclipse Marketplace, and search for Google Plugin for Eclipse. Alternatively, here are the update sites: - Eclipse Helios (3.6):http://dl.google.com/eclipse/plugin/3.6 - Eclipse Galileo (3.5):http://dl.google.com/eclipse/plugin/3.5 - Eclipse Ganymede (3.4):http://dl.google.com/eclipse/plugin/3.4 - Eclipse Europa (3.3):http://dl.google.com/eclipse/plugin/3.3 Need detailed instructions? Check out the quick start guide: http://code.google.com/eclipse/docs/getting_started.html Enjoy! How does it compare to the 1.3.4m1 version, which is not available for Helios/3.6? I can't find the release notes for 1.3.4m1 so I don't know whether I can upgrade to Helios/3.6 with the 1.3.3 and GWT 2.1m1 (or even trunk), or if I should stay with Galileo/3.5 and 1.3.4m1. Will GWT 2.1m2 be released with an update to the Eclipse plugin with support for Helios/3.6? (any ETA for any of them: GWT 2.1m2 and 1.3.4m2 ?) The bulk of GPE 1.4.0 M1 are features to integrate with STS 2.3.3 M1. Since that version of STS is built on Eclipse 3.5, we did not release an Eclipse 3.6 version of GPE 1.4.0 M1. GPE 1.4.0 M2 will include Eclipse 3.6 support, and should be coming shortly. If you're wanting to use Eclipse 3.6, I'd recommend jumping to Eclipse 3.6 + GPE 1.3.3, and then switching to 1.4.0 M2 when it arrives. jason -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: eclipse + pyjamas + dev mode
Hi Mariyan, I've never used Pyjamas, but you can launch dev mode with the -noserver argument which allows you to use your own web server instead of the embedded Jetty in devmode. jason On Sun, Jun 27, 2010 at 5:31 AM, mariyan nenchev nenchev.mari...@gmail.comwrote: Hi, if there are people who have experience with pythonpyjamas, could you please tell me is it possible to use hosted/dev mode with pyjamas? And How server side integration is done in pyjamas (RPC?)? Regards. -- You received 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 Popup is not centered
Make sure the first widget you add the to dialog has a width and ideally height set. Also make sure you don't have a css value set. The starter app sets this and it causes all sorts of problems. On Jun 28, 9:59 am, andreas horst.andrea...@googlemail.com wrote: Did you try calling center() after the constructor, for example right after where you instantiate the PopupPanel without the center() inside the constructor? I'm not that deep into GWT core but maybe it's related to the fact that elements get their real/actual dimensions (and these are needed to calculate the center position) only after being completely attached to the DOM. Maybe this is not the case from within the constructor. You can observe this behavior with a Panel. Set its pixel size but don't add it to the RootPanel or any other Panel. Calling getOffsetHeight/Width will not return the expected values until the Panel is attached. On 28 Jun., 15:32, RPB robbol...@gmail.com wrote: I see the exact same behaviour in my application, and would appreciate any ideas with this issue. The popup is not centered for the first time only, and afterwards popup.center() works fine. I am using GWT 2.0.3. Here is some sample code: public class LoginForm extends PopupPanel { public LoginForm(){ this.setStyleName(bwPopupPanel); this.setGlassEnabled(true); this.add(new LoginFields()); this.center(); } } //..Different class.. private void showLoginPopUp() { @SuppressWarnings(unused) LoginForm loginPanel = new LoginForm(); } Any thoughts? On Jun 27, 9:06 pm, Ricardo.M ricardo.mar...@gmail.com wrote: Hi, I use gwtpopupto show some messages, but it isnotdisplayed in thecenterof the display event if i callpopup.center(). Actually it isnotcentered only the first time, if i close it and open it again every thing is ok, butnotthe first time. How to fix that? I tried using .setPopupPosition(350, 250); but thepopupisnot centered only the first time. Regards. -- You received 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.
IncompatibleRemoteServiceException: The response could not be deserialized
I am able to run my application on the Mac in hosted mode with no problems. Mac OS X 10.5.8 Java version - 1.5.024 Eclipse Galileo 3.5 GWT 2.0.3 Safari 4 Running on Windows in hosted mode is another story. Windows XP service pack 3 Java version 1.6.0.17 Eclipse Helio 3.6 GWT 2.0.3 Internet Explorer 8.0.6001 I see an exception thrown when I attempt to retrieve data from the server. The stack in the Console is: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: The response could not be deserialized at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java: 204) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 287) at com.google.gwt.http.client.RequestBuilder $1.onReadyStateChange(RequestBuilder.java:393) 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.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java: 103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java: 71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java: 1713) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java: 103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java: 71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java: 1668) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 401) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) at java.lang.Thread.run(Unknown Source) Caused by: com.google.gwt.user.client.rpc.SerializationException: at com.google.gwt.user.client.rpc.impl.SerializerBase.check(SerializerBase.java: 161) at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java: 138) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java: 114) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java: 61) at myClassFile.PersonImpl_FieldSerializer.deserialize(PersonImpl_FieldSerializer.java: 137) So there is some issue at line 137 in a generated class PersonImpl_FieldSerializer ? It runs fine online and in my other environment. That is, I can run it in IE 8 after it has been published up to a remote server. How do I debug/resolve this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1.0 M1 and Roo development lifecycle. What would you do?
Thanks to everybody for sharing your opinion. I think there is a way to keep your project code and roo code side-by- side, as roo tries to keep the separation as tidy as possible through AspectJ, secluded packages, etc. I am not yet convinced, though, that keeping roo inside your project is necessarely a good thing. It may happen that some Entities are just byproducts of a normalization process, and they just don't need Places, Activities, Views, etc. Additionally, in the (positive) attempt to avoid 3rd party crosscutting code, like spring IoC, guice or the like, you end up with roo using a lot of default stuff that you cannot easily replace (e.g. Activity.Display are not injected but are lazily built using a default view). Both GWT 2.1 and Spring Roo are pretty young, so we'll have to wait and see where they're headed. On Jun 24, 12:13 am, Joseph Li chihan...@hotmail.com wrote: Think the whole point of having Roo + GWT is to easily generate pumping codes like getters and settings and data transfer objects etc without too much hand coding. I am not an expert on GWT nor Roo, but so far it looks like it still need some work to iron out some strange issue, like the generated scaffolding is not as robust as Grails and it doesn't run under chrome but only runs on firefox. But as far as the concept goes and I am experimenting it hoping to recommend it to our next project to use GWT + Roo. I love Roo keep monitor the state of the project and generate mechanical code on the side away from the src thru aspect so I don't have to do it and it won't mess my src up. It doesn't bother me much that it’s a code generator. Grails is actually a runtime code generator as well and it is very popular, albeit too much black magic and no decent tool support. I say as long as it doesn't mess with my src, I am good with it. Joseph -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] On Behalf Of André Moraes Sent: Saturday, June 19, 2010 11:37 AM To: Google Web Toolkit Subject: Re: GWT 2.1.0 M1 and Roo development lifecycle. What would you do? Jaroslav, I took a look in the Spring Roo videos and made a little notion on how you it works. I wrote some programs when in college with the AspectJ (the base of the Spring Roo) and it was very nice to have custom aspects around my java classes. I think the main problem, at least for me, with the Roo tools is that it works basically only for the Java Plataform. I don't found any links on how to use only GWT + Roo whithout any server code. Anyway, i uploade some samples using my code template to generate some GwtEvents (the base for the MVP cool development in GWT). Thanks for the links, maybe when in a only Java project I consider using and learning more Spring Roo. On 18 jun, 19:27, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: I don't dare teach anyone Roo, I'm yet to try it myself. :) Let me only tell you that I'm having pretty similar concerns to yours whenever I hear code generation. And after watching the video I know I will try it, it has impressed me enough. 2010/6/19 André Moraes andr...@gmail.com Jaroslav, But how can I control the merge process? In my case the code is generated, than i can edit make any changes in the generated code (which will be preserved by the safe-code-marks) and then the GWT compiler (or any other compiler) will compile the code that i wrote. I don't really know/use Roo, but I used some code generation tools before, so excuse me for any noob comment on the Roo subject. On 18 jun, 19:08, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: 2010/6/18 André Moraes andr...@gmail.com I'm not using the integration with Roo, but I dislike the idea of having a tool that after generating my code difficult to customize the generated code. Roo keeps your code untouched. It stores the modifications elsewhere and merges those files at compilation-time. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group,
Hello.. A gift!!!
Dear friend, One of my good friend is having his birthday celebration very soon,and I bought a digital camera for him as a birthday gift at an international trade company www.snnsn2.com ,I received the goods today,it has very good quality and affordable price. The company also sells some well-known branded laptop computers,cellphones,game consoles and so on,they really have a wide range of products,you can go and see if you have interests,thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hello.. A gift!!!
what the hell 2010/6/28 Lei Zhen zl13354...@gmail.com Dear friend, One of my good friend is having his birthday celebration very soon,and I bought a digital camera for him as a birthday gift at an international trade company www.snnsn2.com ,I received the goods today,it has very good quality and affordable price. The company also sells some well-known branded laptop computers,cellphones,game consoles and so on,they really have a wide range of products,you can go and see if you have interests,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.
tomcat errors on opened browser
Hi to all, I have an annoying problem with GWT 1.5.3. I have made a GWT web applicazion, generated the war and deployed under apache tomcat. Well, the app works fine but, if i leave the application opened on the browser, than stop the server and starts it again, i obtain several error like this (I think these errors could be in an infinite loop if i don't stop tomcat manually): 2010-06-28 17:36:06,817 INFO org.ratis.gui.services.server.LoggingServiceImpl.trace(LoggingServiceImpl.java: 63) - com.google.gwt.user.client.rpc.StatusCodeException com.google.gwt.user.client.rpc.SerializationException: com.google.gwt.user.client.rpc.StatusCodeException at sun.reflect.GeneratedConstructorAccessor76.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java: 27) at java.lang.reflect.Constructor.newInstance(Constructor.java:501) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.instantiate(ServerSerializationStreamReader.java: 721) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java: 498) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java: 61) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader $ValueReader$8.readValue(ServerSerializationStreamReader.java:131) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java: 372) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:287) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 163) 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: 269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 875) at org.apache.coyote.http11.Http11BaseProtocol $Http11ConnectionHandler.processConnection(Http11BaseProtocol.java: 665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java: 528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java: 81) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) 2010-06-28 17:36:06,818 ERROR org.apache.catalina.core.ApplicationContext.log:678 - An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Type 'com.google.gwt.user.client.rpc.StatusCodeException' was not included in the set of types which can be deserialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be deserialized. at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:298) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 163) 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: 269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 108) at
Re: Events from SelectionCell in CellTable - GWT 2.1 M1
The setFieldUpdater proved to be a better solution, thanks :-) For some reason InternetExplorer does not send change events when changing the value of the selectionCell. Is this a known bug in GWT 2.1 M1 ? On Jun 27, 2:59 pm, Paul Stockley pstockl...@gmail.com wrote: use the setFieldUpdater(fieldUpdater) on the Column class On Jun 27, 6:28 am, saklig d3andr...@gmail.com wrote: Which class has the addValueUpdateHandler ? On Jun 25, 4:08 pm, Paul Stockley pstockl...@gmail.com wrote: Can't you just add a ValueUpdater handler to see when the selection changes? On Jun 25, 4:27 am, saklig d3andr...@gmail.com wrote: After a couple of tries Ive managed to write something that gets the job done. My example: ListString opts = new ArrayListString(); opts.add(Enabled); opts.add(Disabled); table.addColumn(new IdentityColumnMyData(new ActiveSelectionCell(opts)), Active); private class ActiveSelectionCell implements CellMyData{ private HashMapString, Integer indexForOption = new HashMapString, Integer(); private final ListString options; public ActiveSelectionCell(ListString options) { this.options = new ArrayListString(options); int index = 0; for (String option : options) { indexForOption.put(option, index++); } } @Override public boolean consumesEvents() { return false; } @Override public boolean dependsOnSelection() { return false; } private int getSelectedIndex(String value) { Integer index = indexForOption.get(value); if (index == null) { return -1; } return index.intValue(); } @Override public void setValue(Element parent, MyData value, Object viewData) { StringBuilder sb = new StringBuilder(); render(value, viewData, sb); parent.setInnerHTML(sb.toString()); } @Override public Object onBrowserEvent(Element parent, MyData value, Object viewData, NativeEvent event, ValueUpdaterMyData valueUpdater) { String type = event.getType(); if (change.equals(type)) { SelectElement select = parent.getFirstChild().cast(); if( options.get(select.getSelectedIndex()).equalsIgnoreCase(Enabled)) value.setActive(1); else value.setActive(0); System.out.println(value.getName() + - + options.get(select.getSelectedIndex())); // valueUpdater.update(value); } return viewData; } @Override public void render(MyData value, Object viewData, StringBuilder sb) { int selectedIndex = 0; if(value.getActive().equalsIgnoreCase(1)){ selectedIndex = getSelectedIndex(Enabled); }else{ selectedIndex = getSelectedIndex(Disabled); } sb.append(select); int index = 0; for (String option : options) { if (index++ == selectedIndex) { sb.append(option selected='selected'); } else { sb.append(option); } sb.append(option); sb.append(/option); } sb.append(/select); } } If you think this was the wrong/not the best way to get an event from a cell, pleas give me a comment. On Jun 22, 1:25 pm, saklig d3andr...@gmail.com wrote: Hi, How does one handle events from cells in a CellTable( specifically a SelectionCell ) ? -- You received 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
Re: How to simplify your GwtEvent classes and have fun doing it!
Thanks for the crits Thomas, I've learned something from this: keeping handlers together in a given class. That's quite neat because really what I was driving at is not so much optimising output of the GWT compiler, but more cutting down on the cognitive load on the developer and time it takes (just a minute, but still) to have to create a separate Event Class and Handler Interface for each event type, and then what about refactoring? If you use my method (ok, we lose your very nice composite nature) you will find that Eclipse's code completion totally gets what you're trying to do when you copy/paste to create a new event; with the Event+Handler pair you'd have to first copy and rename your interface, then copy and rename your class, then go into your class and change it's generic arg to use your new Handler. That's a non-trivial amount of time and cognition for a developer. Yes, encapsulation is one of the mantras, though IMO this is an acceptable exception simply due to the read-only nature of events. A getter becomes superfluous and is a few extra lines of code that bulks up your editor screen for little gain other than purism (in this case). Thanks so much as well for the links to those GWT dev discussions, very interesting. On Jun 27, 7:05 pm, Thomas Broyer t.bro...@gmail.com wrote: A few comments On 27 juin, 13:53, Paul Schwarz paulsschw...@gmail.com wrote: When using the EventBus, for each event type in your system you will create a Class (a GwtEvent) and an Interface (the corresponding EventHandler). It is a bit of a nuisance maintaining two java files for each event. Not necessarily 2 files. As you show below, it's becoming common usage to declare the handler as an inner/nested interface of the event class. So I propose to simplify it by having one abstract event class and then ONLY ONE class for each event, instead of two. Note that your actual usage of your new style event class stays the same, so there is no refactoring required there. That's not totally accurate, see below. ___ 1. In your com.company.project.shared package create this file: import com.google.gwt.event.shared.EventHandler; import com.google.gwt.event.shared.GwtEvent; public abstract class AbstractEvent E extends GwtEventH, H extends AbstractEvent.AbstractHandlerE extends GwtEventH { public static interface AbstractHandlerE extends EventHandler { void handleEvent(E event); } The problem with such a generic interface is that you can't implement 2 of them on the same class. For instance, in my presenters I generally create an inner Handlers class implementing all event handler interfaces I need: class MyPresenter { private class Handlers implements PlaceChangeRequestedEvent.Handler, PlaceChangeEvent.Handler, EmployeeRecordChanged.Handler { public void onPlaceChange(PlaceChangeEvent event) { ... } public void onPlaceChangeRequested(PlaceChangedRequestedEvent event) { ... } public void onEmployeeChanged(EmployeeRecordChanged event) { ... } } �...@inject public MyPresenter(HandlerManager eventBus) { Handlers handlers = new Handlers(); eventBus.addHandler(PlaceChangeRequestedEvent.TYPE, handlers); eventBus.addHandler(PlaceChangeEvent.TYPE, handlers); eventBus.addHandler(EmployeeRecordChanged.TYPE, handlers); } } Using a generic handleEvent method makes this impossible. Well, not impossible, but cumbersome, as you have to do some if/else with instanceof in your handler: public void handleEvent(AbstractEvent event) { if (event instanceof CalendarChangeRequestEvent) { CalendarChangeRequestEvent ccre = (CalendarChangeRequestEvent) event; ... } else if (event instanceof EmployeeRecordChange) { EmployeeRecordChange erc = (EmployeeRecordChange) event; ... } } I'm not saying this is a show blocker, but it can then imply some refactoring, which is not what you promised above ;-) I'm not saying this is a show blocker, but I nonetheless suspect it could be an issue, otherwise GwtEvent would have gone this way from the beginning, or the RecordChangedEvent recently introduced. I know some people complained about not being able to implement two ValueChangeHandler on the same class (in this case you'd check the event's source to disambiguate the events). Personally I'm using a single inner class implementing all handlers instead of many anonymous handler classes, because I know a class has a cost in the output JavaScript cost. I can't tell how many it costs and whether the cost is negligible, and I know it costs less in each GWT release due to compiler optimizations (-XdisableClassMetadata, GWT 2.1 introduces some clinit pruning AFAICT), but still, it doesn't make my code less readable (not particularly more readable either) and
Re: How to simplify your GwtEvent classes and have fun doing it!
Thanks Phil, though what would this look like in this case? The design of the GwtEvent and TYPE being static is actually very powerful in its elegant simplicity. A call to the constructor of GwtEvent.Type() actually causes an int to be incremented and this becomes the hashCode ID of this event type, and hence assigning that to final static variable (TYPE) give a sort of mapping architecture where GwtEvent implementations are mapped to int IDs and that's how the event bus knows which event has been fired. So I'm interested to know what you mean by passing in the TYPE from elsewhere, because you'd have to be careful not to construct two GwtEvent.Type()s to represent a given event type. I'm sure you know this, but for the benefit of others who may try to fiddle with the mechanism and then wonder why their events aren't caught. On Jun 28, 10:10 am, PhilBeaudoin philippe.beaud...@gmail.com wrote: Another simple trick I use when I need multiple events that have the same payload and handler methods, is to not declare the TYPE as a static member of the event. Instead I declare it elsewhere (anywhere really) and pass it to the event's constructor. Really simple, but can dramatically cut down on boilerplate. On Jun 27, 9:05 am, Thomas Broyer t.bro...@gmail.com wrote: A few comments On 27 juin, 13:53, Paul Schwarz paulsschw...@gmail.com wrote: When using the EventBus, for each event type in your system you will create a Class (a GwtEvent) and an Interface (the corresponding EventHandler). It is a bit of a nuisance maintaining two java files for each event. Not necessarily 2 files. As you show below, it's becoming common usage to declare the handler as an inner/nested interface of the event class. So I propose to simplify it by having one abstract event class and then ONLY ONE class for each event, instead of two. Note that your actual usage of your new style event class stays the same, so there is no refactoring required there. That's not totally accurate, see below. ___ 1. In your com.company.project.shared package create this file: import com.google.gwt.event.shared.EventHandler; import com.google.gwt.event.shared.GwtEvent; public abstract class AbstractEvent E extends GwtEventH, H extends AbstractEvent.AbstractHandlerE extends GwtEventH { public static interface AbstractHandlerE extends EventHandler { void handleEvent(E event); } The problem with such a generic interface is that you can't implement 2 of them on the same class. For instance, in my presenters I generally create an inner Handlers class implementing all event handler interfaces I need: class MyPresenter { private class Handlers implements PlaceChangeRequestedEvent.Handler, PlaceChangeEvent.Handler, EmployeeRecordChanged.Handler { public void onPlaceChange(PlaceChangeEvent event) { ... } public void onPlaceChangeRequested(PlaceChangedRequestedEvent event) { ... } public void onEmployeeChanged(EmployeeRecordChanged event) { ... } } �...@inject public MyPresenter(HandlerManager eventBus) { Handlers handlers = new Handlers(); eventBus.addHandler(PlaceChangeRequestedEvent.TYPE, handlers); eventBus.addHandler(PlaceChangeEvent.TYPE, handlers); eventBus.addHandler(EmployeeRecordChanged.TYPE, handlers); } } Using a generic handleEvent method makes this impossible. Well, not impossible, but cumbersome, as you have to do some if/else with instanceof in your handler: public void handleEvent(AbstractEvent event) { if (event instanceof CalendarChangeRequestEvent) { CalendarChangeRequestEvent ccre = (CalendarChangeRequestEvent) event; ... } else if (event instanceof EmployeeRecordChange) { EmployeeRecordChange erc = (EmployeeRecordChange) event; ... } } I'm not saying this is a show blocker, but it can then imply some refactoring, which is not what you promised above ;-) I'm not saying this is a show blocker, but I nonetheless suspect it could be an issue, otherwise GwtEvent would have gone this way from the beginning, or the RecordChangedEvent recently introduced. I know some people complained about not being able to implement two ValueChangeHandler on the same class (in this case you'd check the event's source to disambiguate the events). Personally I'm using a single inner class implementing all handlers instead of many anonymous handler classes, because I know a class has a cost in the output JavaScript cost. I can't tell how many it costs and whether the cost is negligible, and I know it costs less in each GWT release due to compiler optimizations (-XdisableClassMetadata, GWT 2.1 introduces some clinit pruning AFAICT), but still, it doesn't make my code
Re: New open source eclipse plugin for UiBinder validation
Hey Gal, Very cool! GPE doesn't expose any extension points, but you should be able to add your autocompletion proposals by hooking into WST's autocompletion framework (we subclass org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor). Hope that helps, jason On Sat, Jun 26, 2010 at 9:26 PM, Gal Dolber gal.dol...@gmail.com wrote: Here is a new eclipse plugin I made for gwt's UiBinder. My goal was to implement the validation, autocompletion and quickassist for widgets fields. Right now the only feature working is the validation. I couldn't find a way to hook the autocompletion and quickassist into google's UiBinder template editor. Any help or tip for how to do this it will be appreciated. There are still some problems with custom parsers. i.e DockLayoutPanel unit=PX ... I needed to add an exception for that because the method setUnit doesn't exists in DockLayoutPanel... I am sure there are exceptions like this one that I forgot, so please let me know if you find one. Download here: http://code.google.com/a/eclipselabs.org/p/uibindervalidator/downloads/list -- You received 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 with EventBus question
Thanks so much for this answer. I have printed it and pinned it up right beside my screen so will be referring to it often until these concepts become solid in my mind. I think the largest mind gap here for me is the concept that a presenter's view is used to fill the whole screen, and then it has children presenter+view but the parent doesn't explicitly create or know about them!? I'm getting my head around these concepts slowly. Thanks for the info. Just a question for now though. An example really. Say you have an app with: - main screen - settings screen It also has a login panel that is essentially a singleton and popups up from time to time when your session expires, no presenter really owns it, it just lives in a void until your session expires. Now, your main screen should be accessible at /#main and your settings at /#settings. And lastly, your main page a header that is constantly present at the top of the page, but then in the main area it is like the Expenses example. i.e. it is a table of rows of data, but if you click on one of the rows it slides across to reveal more data for that row you clicked. So the main table would be available only at /#main, but then /#main;item=20 (or should it be /#item;id=20?) would slide across to reveal the details page for item 20. Then hitting /#main would slide you back to the main table. You can see from this example that there are a variety of Places, page states and widgets usages. Would you be so kind as to explain where you would apply Presenters, PresenterWidgets, etc and how you should handle the history tokens in order to give this app coherent state based on history, but optimal usage of GWTP in terms of correct MVP patterns (which then assist greatly with JUnit testing!). On Jun 27, 7:48 am, PhilBeaudoin philippe.beaud...@gmail.com wrote: I answer to this earlier, but it somehow got gobbled by Google Groups. If you see it around, let me know. ;) Re: Complex widgets and PresenterWidgets You're exactly right. PresenterWidgets are GWTP's way of doing a complex widget with a nice testable class. Your PresenterWidget has all the widget's logic and gets injected with the EventBus (and the dispatcher if needed, or other services). The view is the complex widget itself. Re: Presenters vs PresenterWidget Presenters are singletons. They are totally decoupled from one another and communicate only via the Event bus. They can be organized hierarchically, but the hierarchical structure is very loose: parent's don't know their children in advance, and child don't know their parent. The hierarchy gets sets up entirely via the EventBus. The lowest-level Presenters of this hierarchy (so-called leaf Presenters) need to be attached to a Place. They are (lazily) instanciated whenever their history token is invoked, and at that point they set-up the hierarchy. PresenterWidget, on the other hand, are not singletons. Also, they are meant to be injected in their parent Presenter (a bit like you would expect complex widgets to contain one another). They are never attached to a place: they get setup when their containing presenter is set-up. Their parent presenter can communicate with them through method invocation if desired, it does not have to use the event bus. Really, PresenterWidget can be thought of as widget with a testable layer. A typical complex page in a GWTP app might look something like: PresenterA (splits the page in a header and a main area ) | +-- HeaderPresenter | +-- MainContentPresenter | +-- ClientListPresenterWidget | +-- CliendDetailPopupPresenterWidget Where: -- denotes an indirect relationship (via the event bus) -- denotes an owned relationship (typically injected with GIN) There are some examples of the sort on the gwt-platform website, you may want to check them out. Cheers, Philippe On Jun 26, 4:08 am, Paul Schwarz paulsschw...@gmail.com wrote: Ok, I didn't implement it this way, but would prefer to. At the moment I have 3 mother-sized presenters + views. These have EventBus injected into them by gwt-platform. Then the widgets that are owned by this view are then constructed manually. I think I can still test them atomically but I'm not sure... the concepts are still a little hazy, learning UiBinder, Mocking and GWTP at the same time causes some head spin. My question now is when is it appropriate to make a new Presenter? and how does a PresenterWidget compare? I'm confused because in GWTP a presenter has a Place, so it seems like Presenters are virtual pages in an ajax app. But now you're saying to make Presenters for all my widgets individually... or is this where PresenterWidget comes in? At the moment things are scruffy because my presenter gets an EventBus injected, but then has to bubble it up through @UiFactory constructors into the owned Widgets. On Jun 24, 5:35 pm, PhilBeaudoin
Re: how to control the pixel sizes of a Grid?
Hi, your code works fine! Thanks! But: Why? What's the qualitative difference? BTW: Do you know a quick method to draw a line between the inner and outer cells? I wonder if I should keep on trying with my version or if your method using SimplePanel is more stable in either case? What about having so many panels? Doesn't this consume much resources? Magnus On Jun 28, 3:14 pm, andreas horst.andrea...@googlemail.com wrote: Yes I see. Maybe the image file dimensions and the dimensions of the Image instances are conflicting. When I get it right the dimensions of the Image instances are never set. Instead they are resized based on the dimension of the Grid itself. Now if the Image instances display an image with different dimensions I can not tell what this results in. Look at my code, I never call setSize(...) or setPixelSize(...) on the Grid. It will automatically resize based on the dimensions of its cells. Try setting the pixel size of the Image instances (rather than Grid) so that the (raw) image is perfectly fitted (resolution of the png or whatever). In my example the SimplePanel dimensions are simply 40x40 and for the border cells 40x20/20x40 ... the overall size results in the row and column sum of all cells dimensions AND is never set manually. On 28 Jun., 14:48, Magnus alpineblas...@googlemail.com wrote: Hello, I made another screenshot with red borders around the images:http://yfrog.com/cachessboardj As you can see there is vedrtical space below each image. I just found out that this is not the case in IE. Thanks Magnus On 28 Jun., 11:51, andreas horst.andrea...@googlemail.com wrote: Where exactly are the vertical spaces? From what I see, there are no spaces between the cells of the top and bottom row and the spaces between the cells in the left and right column are of the same color as the image background, so I assume there are actually also no spaces, correct me on this one? For better debug you could also assign a border and background color to the Grid. If none of these colors will be visible you can be sure that there are no spaces or anything left. For the inner cells I can not say if there are any spaces. Also I assume your style pnl-r adds the red border to the Grid? If there were any spaces left caused by the border width you would see a red Grid. I think you got what you wanted... BTW: I think you do not need to set the cell dimensions manually; Grid will automatically adjust cell dimensions so that the cell widgets fit, in other words a columns width for example will be adjusted so that the cell widget with the biggest width is completely visible; same goes for rows and heights and so on BTW2: the two for-blocks in init() can be realized in one single for- block since they iterate over exactly the same interval (0-9) On 28 Jun., 11:27, Magnus alpineblas...@googlemail.com wrote: Here is the screenshot: http://yfrog.com/j7chessboardj Magnus- Zitierten Text ausblenden - - Zitierten Text anzeigen - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to control the pixel sizes of a Grid?
BTW: I must set the grids pixel size, because it will be of height 0. The parent is a DockLayoutPanel... But it's ok, since I know the correct size... Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to control the pixel sizes of a Grid?
I think the difference was that you never set the size of the Image instances. You know the resolution of the images you use as background. Try calling setPixelSize(...) on each Image instance with the image resolution values. This way you can make sure the Image has the correct size, thus the superior cell and finally the overall Grid as well. I develop applications with more than 100 Panel instances (not to mention all other Widgets and custom Widgets) and there is no noticeable resource problem. I think GWT does a pretty good job there. In my example I never call setPixelSize(...) on the Grid and it apparently is not of height 0. Why should it be? Additionally as you saw in your code, calling it led to strange dimension problems/overlapping, ... On 28 Jun., 18:28, Magnus alpineblas...@googlemail.com wrote: BTW: I must set the grids pixel size, because it will be of height 0. The parent is a DockLayoutPanel... But it's ok, since I know the correct size... 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: A design pattern for widgets in the MVP - GIN - UiBinder paradigm.
Go for it. I would also appreciate it sooner than later. On Jun 27, 9:35 am, felipenasc felipen...@gmail.com wrote: You could take a look at gwt-platform (http://code.google.com/p/gwt-platform/ ), a complete GWT MVP Framework. It does support a lot of features required by real applications (not Helloworld ones). Cheers Felipenasc On Jun 25, 3:16 am, drthink drgenejo...@gmail.com wrote: Large scale application development and MVP :http://code.google.com/webtoolkit/articles/mvp-architecture.html I have a question on how you would extend this design to incorporate complex widgets. The MVP pattern is very clear on how the separation between the Presenter and View take place. A presenter defines an interface which a view implements so the presenter can ensure that the agreed necessary methods are implemented. In the contacts example supplied by the article the idea is very simple. The views do not have any complex widgets to display. But I would guess for many applications each View is a page within the application which is made up of complex widgets. So my first question is: Q1: Do you apply a separation of presentation versus view model to the widgets as well or just build regular UiBinder widgets? In the AppController a presenter is called with this kind of syntax: presenter = new ContactsPresenter(rpcService, eventBus, new ContactsView()); Q2: In a view that houses child widgets would I implement the same kind of initiation, assuming the answer to Q1 is for a V-P model in widgets.? Q3 : If so how do we pass the rpcService eventBus to the widget presenters? These questions may seem kind of muddled, and as you can probably tell I am just getting to grips with this concept. I have a feeling that the answer lies in converting the example application to a incorporate GIN which makes the widgets modular and therefore a lot of the questions above become somewhat redundant. Any thoughts would be much appreciated. Cheers DrJ -- You received 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: scrollable area in SplitLayoutPanel
anyone on this plz? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Sun, Jun 27, 2010 at 11:17 PM, Vik vik@gmail.com wrote: Hie I am using SplitLayoutPanel and the content area i want to be scrollable. Right now it comes of fixed width. Any idea on what property to set to make it scrollable when there are more contents then this area? Please advise Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: scrollable area in SplitLayoutPanel
Add a ScrollPanel as the first child, then put your content in this. Make sure the width and height of the scroll panel are set to 100% On Jun 28, 1:42 pm, Vik vik@gmail.com wrote: anyone on this plz? Thankx and Regards Vik Founderwww.sakshum.comwww.sakshum.blogspot.com On Sun, Jun 27, 2010 at 11:17 PM, Vik vik@gmail.com wrote: Hie I am using SplitLayoutPanel and the content area i want to be scrollable. Right now it comes of fixed width. Any idea on what property to set to make it scrollable when there are more contents then this area? Please advise Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabPanel - 100% height for client widget?
Hi, this does set height to the height of the browser window when starting. But the height did not change when browser window changes Stefan Bachert http://gwtworld.de On Jun 28, 3:39 am, Nian Zhang flust...@gmail.com wrote: I think you need call pnl .setHeight(Window.getClientHeight()) method. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SelectionModel on CellTable
Thanks very much Thomas.Do you think that is a good idea open an issue? Thanks On 24 Giu, 20:27, Thomas Broyer t.bro...@gmail.com wrote: On 24 juin, 18:30, bond daniele.re...@gmail.com wrote: Hi, I've a question on Cell table and in particolar on the SelectionModel (SingleSelectionModel). I've a table with several colums.Some column are plain data (text or html), some other columns are an image that you can click in order to make an action (for example a lock icon is used for enable o disable an operator and so on). I'm using a TextCell in plain columns,and I've created a MyActionCell in wich i can manage an image and a click on it. The problem is that the SelectionModel catch all the clicks on each cell.I'd like to know which is the best method to manage this situation. I'm using SelectionModle because my UI is very similar to this http://gwt-bikeshed.appspot.com/Expenses.html, so when you click on a row is shown the detail of that row. I'd like to know if is possible to use SelectionModel on a subset of cells. I think it's a bug in CellTable. CellList only calls setSelected on the SelectionModel when the Cell's consumesEvents returns false, but CellTable calls setSelected unconditionally. -- You received 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: Passing PHP variables to my GWT application
Alright, so I have attempted to learn this JSON business, and have run into some issues. I followed the tutorial at: http://code.google.com/webtoolkit/doc/latest/tutorial/JSON.html Once I thought I understood it, I began to implement it within my project. However, I cannot successfully retrieve the data. I have a Data.php file that successfully connects to my server and reads in the data, and formats as JSON data should be. Yet, when I run my project, I get an HTTP response code of 0, and thus no data returned. I believe the problem to be with my url. I have noticed that the way the tutorial above is set up, the user of the stock watcher application must enter a symbol, and then the url is adjusted to request that symbol. However, I have coded my Data.php to output all entries in the table, as I want to access and display all entries upon startup. Therefore, I am confused as to how my url should be formated. Here is the code for my Data.php, excluding username and password info: ? header('Content-Type: text/javascript'); header('Cache-Control: no-cache'); header('Pragma: no-cache'); //username and password stuff here $con = mysql_connect($host, $user, $pass); mysql_select_db($db, $con); echo '['; $result = mysql_query(SELECT * FROM sampleTreeTable); $i = 0; while($row = mysql_fetch_array($result)) { if($i 0) { echo ','; } $tItem = $row['treeItem']; $tInfo = $row['treeInfo']; echo '{'; echo \treeItem\:\$tItem\,; echo \treeInfo\:\$tInfo; echo '}'; $i = $i + 1; } echo ']'; ? This outputs my simple little test data as: [{treeItem:Requirements,treeInfo:5}, {treeItem:Decisions,treeInfo:4}, {treeItem:Tradeoffs,treeInfo:6},{treeItem:Co- occurances,treeInfo:8}] The JSON url I am using is http://xx.xxx..xxx/Data.php; I noticed that in the tutorial, they would have me add something like ?q= and then the name of each of the items I want separated by +. However, I want to simply request all the data from Data.php. So, how can I write a url to do this? On Jun 25, 5:04 am, Chris Boertien chris.boert...@gmail.com wrote: You might want to take a look at this:http://code.google.com/webtoolkit/doc/latest/tutorial/JSON.html Although the examples there are using a servlet for the server-side, that is not a requirement. The server simply needs to be accessible at the requested URL and output the formatted JSON. The basic idea is to make a request to the server and have the server send back the json data structure. You can then eval, or use a js json parser, and setup Overlay types so you get to use the objects like regular java objects. 2010/6/24 Jaroslav Záruba jaroslav.zar...@gmail.com: I believe the module loads on document's load event, therefore pausing PHP does not help indeed. You can load the JSON using JsonpRequestBuilder. That means another (XHR)request to server. If that's an issue I'd try to output the JSON using PHP as you do now, but not into script/ element. I would hide it within the page and afterwards convert that JSON-string into a JS-object in GWT. Or you could place the JSON-string into a script/ element using GWT, tthat should fire the addTreeItems-method right away. When I needed to load some data from (3rd-party) server I created my receiving JS-function and the script/ element with src-attribute by myself in onModuleLoad. It worked. And I guess that's similar to what the JsonpRequestBuilder does, but I did not know that class before. I'm quite new to GWT. That's also kind of disclaimer: I'm not sure whether the above is the best and most elegant solution. :) On Fri, Jun 25, 2010 at 3:25 AM, barbe...@muohio.edu barbe...@muohio.edu wrote: Thanks, that makes sense. However, do you have any suggestions on how I might work around it? I want to be able to load all of the data on startup, so I have called the PHP function that calls the javascript function in the body of the .php file. I tried to throw in a PHP sleep to delay the javascript from being called, but the sleep seems to also delay the loading of the module, thus really giving me no benefit. Any other suggestions would be great. On Jun 24, 8:47 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: It seems that your script/ might get evaluated/executed before the module has finished loading and therefore your function window.addTreeItem might not exist yet. Several workarounds for that are possible I think. On Thu, Jun 24, 2010 at 9:39 PM, barbe...@muohio.edu barbe...@muohio.eduwrote: Hi everyone, I am faced with a situation in which I must pass variables read in from a database table using PHP to my GWT application. I am doing this by using PHP to read
Re: Passing PHP variables to my GWT application
On 06/28/2010 12:12 PM, barbe...@muohio.edu wrote: Alright, so I have attempted to learn this JSON business, and have run into some issues. I followed the tutorial at: http://code.google.com/webtoolkit/doc/latest/tutorial/JSON.html Once I thought I understood it, I began to implement it within my project. However, I cannot successfully retrieve the data. I have a Data.php file that successfully connects to my server and reads in the data, and formats as JSON data should be. Yet, when I run my project, I get an HTTP response code of 0, and thus no data returned. I believe the problem to be with my url. I have noticed that the way the tutorial above is set up, the user of the stock watcher application must enter a symbol, and then the url is adjusted to request that symbol. However, I have coded my Data.php to output all entries in the table, as I want to access and display all entries upon startup. Therefore, I am confused as to how my url should be formated. Here is the code for my Data.php, excluding username and password info: ? header('Content-Type: text/javascript'); header('Cache-Control: no-cache'); header('Pragma: no-cache'); //username and password stuff here $con = mysql_connect($host, $user, $pass); mysql_select_db($db, $con); echo '['; $result = mysql_query(SELECT * FROM sampleTreeTable); $i = 0; while($row = mysql_fetch_array($result)) { if($i 0) { echo ','; } $tItem = $row['treeItem']; $tInfo = $row['treeInfo']; echo '{'; echo \treeItem\:\$tItem\,; echo \treeInfo\:\$tInfo; echo '}'; $i = $i + 1; } echo ']'; ? This outputs my simple little test data as: [{treeItem:Requirements,treeInfo:5}, {treeItem:Decisions,treeInfo:4}, {treeItem:Tradeoffs,treeInfo:6},{treeItem:Co- occurances,treeInfo:8}] I think the zero result is caused by violating Same Origin Policy. Please ensure that's not happening. Also, I'd suggest not creating the response by hand PHP provides a json encoder. For example: json_encode(array (response_nonce = $_GET['openid_response_nonce'], openid_identity = $_GET['openid_identity']))); -- You received 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.
Compiling GWT-App causes org.tigris.subversion.javahl.ClientException
Hi, I have developed an app with GWT 2.0.3 + Eclipse-Plugin. Now, I have tried to compile my app, but this causes a org.tigris.subversion.javahl.ClientException: org.tigris.subversion.subclipse.core.SVNException: org.tigris.subversion.javahl.ClientException: svn: Directory '[...]/PDFLibrary/war/pdflibrary/.svn' containing working copy admin area is missing After it, I tried to solve this problem by checking out a new working copy from svn and compiling it again - but with the same result. Has anybody an idea, how to solve this issue? Thanks in advance... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Compiling GWT-App causes org.tigris.subversion.javahl.ClientException
It seems, that the compile-process deletes the .svn-folder in [...]/ PDFLibrary/war/pdflibrary: First, the .svn-folder exists, but after compiling, it disappears. But why? -- You received 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.
Soliciting approaches for GWT and XSS-prevention
Hey guys, Most security papers I've read on the topic of XSS prevention suggest escaping untrusted strings in a context-sensitive way in server side templating languages. However I sense that it's different with GWT (and any other JS applications) in that received data from a data source can be used in so many different ways before, during, and after it is inserted in the page. This is particularly true when your GWT application is simply hitting a data source for JSON or XML. For this reason, it seems like best practice would be to escape in your JS/GWT app immediately before writing untrusted data into a particular context (javascript, attribute, etc). But at the same time, I don't like the idea of possibly dangerous strings buzzing around in the browser memory of my clients, waiting for me to forget escaping a string before writing it to the DOM. What effective approaches have you taken with your GWT and JS applications to protect against XSS? Thankee kindly! -- You received 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.
Custom Mobile View for existing GWT app - detecting the mobile browser
Hello, I have a large app written in GWT and I want to create a mobile view of the app (with limited features). The user interface and features of the app should be completely adapted to the smaller screen size of the mobile device. However, I have the following obstacles: 1. How do I detect the mobile device? I was planning to use the user agent, but the problem is that there are many different user agents with new ones introduced regularly. Hence, the method as explained in the following url will not really work for me: http://code.google.com/intl/nl-BE/webtoolkit/doc/latest/DevGuideCodingBasicsDeferred.html#replacement 2. As the HTML page hosting the app will also needs to be adapted, I am wondering whether the best solution will be to do all the user agent recognition at server side, and set a cookie for the mobile device. Then the deferred binding components can use the cookie? Any other are ideas welcome Cheers Tom -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to use GIN ?
Thank you for these explanations, I think I begin to understand GIN. .. and I'll read the Guice tutorials :-) (or may be :-( yet another tuto...) Yves PS to GIN team : please make GIN simple to understand for those who don't know Guice and are just trying to improve their client code. I only came to GIN because it is used in some MVP explanations. On 28 juin, 09:00, PhilBeaudoin philippe.beaud...@gmail.com wrote: Thomas gives very good advice, although I personally neverusethe @ImplementedBy annotation (not entirely sure why...). To complement his answer, if you're interested in saving the addClickHandler call you may want to take a look at UiBinder the @UiHandler annotation. On Jun 27, 3:41 pm, Thomas Broyer t.bro...@gmail.com wrote: On 27 juin, 19:39, yves yves.ko...@gmail.com wrote: Olivier, Thanks for the link. If I try to summarize my problem : Which are the conventions that are implicitly used byGINto bind classes ? I've already seen gwt-presenter, but it didn't helped me to understand how to transform my code to such code : public class AppModule extends AbstractGinModule { @Override protected void configure() { bind(EventBus.class).to(DefaultEventBus.class); bind(MainPresenter.Display.class).to(MainWidget.class); bind(MenuPresenter.Display.class).to(MenuWidget.class); bind(IssueEditPresenter.Display.class).to(IssueEditWidget.class); bind(IssueDisplayPresenter.Display.class).to(IssueDisplayWidget.class); If you control all of those classes, and they only exist as an interface+implementation class for testing purpose, then I'd rather annotate the interfaces with @ImplementedBy, e.g. �...@implementedby(MainWidget.class) public interface Display { ... } That way,GINwill automaticallyuseMainWidget as if you wrote the bind().to(); and in case you want to inject some other implementation (e.g. in some complex tests), you canusebind().to() without risking a duplicate binding. Is there any doc explaining what is behind the scene with all these bind().to() calls ? In my example, if I write something like bind(SearchPresenter.Display.class).to(someWidget.class); is it equivalent to display = d; display.getSearchButton().addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { doSearch(event); } }); and how to tellGINthat I need to call doSearch() ? No!GINis only about dependency injection, i.e. it saves you the new, and nothing else. With the above bind().to() and an @Inject annotation on the bind(Display) method, then whenGINis asked to instantiate a SearchPresenter (i.e. when you do not write the new yourself) it'll automatically instantiate a SomeWidget and call bind() with it as an argument (and when instantiating the SomeWidget, it'll automatically instantiate the required dependencies and inject them to @Inject- annotated constructor, fields and methods). Maybe you should look for Guice tutorials to better understand what dependency injection is, and how to configure it with Guice. -- You received 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: CSS Localization
AMAZING! is that documented anywhere? I saw no mention on the css section of the building user interfaces part of the docs. On Mon, Jun 28, 2010 at 4:44 AM, Thomas Broyer t.bro...@gmail.com wrote: On 28 juin, 03:53, Dan ddum...@gmail.com wrote: Is it possible to localize the css in a CssResource so that during the translation phase of product development, css tweaks can be made to adjust for language specific spacing and formatting issues? Yes, you can have distinct MyStyle_en.css MyStyle_fr.css, etc. and have them picked from a single @Source(MyStyle.css). if not, what's the current best practice to work around these issues? If the changes are localised though, I'd rather use @if blocks: @if locale en { ... } @elif locale fr { ... } -- You received 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: Seam and GWT DE RPC
- Make sure that you use on server and client the same gwt- servlet.jar! - Make sure all the server files are compiled and are available as class files in the ear or rather war (and in the right place). Maybe it helps. I will try in the near future whether it is possible to use the GWT Dispatch Pattern (Action/Result/Handler) with Seam. If you are interested leave a message. -- You received 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.
BigDecimal - Can you add it to 2.1 version
Hi All, I am responsible on innovative financial platform which is based on GWT. One of our problems is the lack of BigDecimal on client side. Because of this lack we are using double / Double object and many other manipulations to overcome this lack. Consider for example, having a number like 1.49393829 and you want to simply set his scale half even but with Double. Is there any chance to have this object in GWT 2.1 version ? Regards, Dor -- You received 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.
Initializing AppEngine server
Hi, When I create a new google web application by using eclipse, it cannot implement the basic example (web application starter project). I run this example by using 'debug as web application'. The error is 'URL.init(URL, String, URLStreamHandler) line: not available'. This is weird because it worked before and i didn't change anything. Does it mean it lacks some jar file? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
recover ur formated data
Have you lost Your important data? or formated or deleted or .. don't worry you can recover your lost data. for details *recoverdatac.blogspot.com* * * Thank You. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Confluence Plugin
Has anyone deployed a GWT app as an Atlassian plugin for Confluence and have an example of it? I have had a hard time finding anything but I believe it is possible. -- You received 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: Cancel submit form
Hello I have the exact same problem. Did you find a workaround? On May 25, 1:13 pm, Olivier oliv...@digiworks.es wrote: Hi, I'm trying to cancel a submit form event and it doesn't seems to work. I'm using UI Binder, this is the code I have : @UiHandler(form) void onSubmit(SubmitEvent event) { GWT.log(Submit); event.cancel(); } For some reason the form is still submitted, I'm not sure why. Has anyone experienced this before ? Thanks --- Olivier Digiworks Política de Protección de Datos de Carácter Personal En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, sobre protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a los usuarios de que: Los Datos de Carácter Personal que recoge son objeto de tratamiento automatizado y se incorporan en los ficheros correspondientes, debidamente registrados en la Agencia Española de Protección de Datos. El usuario podrá, en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, rectificación, cancelación y oposición. El ejercicio de estos derechos puede realizarlo el propio usuario mediante comunicación escrita en la siguiente dirección postal: DIGIWORKS SPAIN, S.L. AVDA SAN RAFAEL, 11, LOCAL 2 03580 ALFAZ DEL PI ALICANTE También pueden ejercitar estos derechos en los términos que la normativa aplicable establece y que puede consultar enwww.agpd.es. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problem with Button and onClick-Event
Hi there, I have a problem with the behavior of a Button in IE6. When pressing the key enter on a Button in IE6, the onClick-Event is fired. The Bug can be reproduced with the following Code: final Button button = new Button(Hello); button.addClickListener(new ClickListener() { public void onClick(Widget sender) { button.setText(Hello again!); } }); We are still using Version 1.5.3 of the GWT. A quick look in the bugtracker showed, that there was no bugfix since 1.5.3 concerning this problem. Any ideas for a workaround? thanks! Björn -- You received 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.
Open File on client side.
I would like to open a file on the client side, so it can populate a local (client-side) table. (After validating of course). The data is not needed on the server side. What is the best way to do this? It seems uploading the file to the server would be wasteful, but can you open the file on the client side? -- You received 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: BigDecimal - Can you add it to 2.1 version
http://code.google.com/p/google-web-toolkit/issues/detail?id=1857 http://code.google.com/p/google-web-toolkit/issues/detail?id=4685 On Jun 28, 5:39 am, Dor dor...@gmail.com wrote: Hi All, I am responsible on innovative financial platform which is based on GWT. One of our problems is the lack of BigDecimal on client side. Because of this lack we are using double / Double object and many other manipulations to overcome this lack. Consider for example, having a number like 1.49393829 and you want to simply set his scale half even but with Double. Is there any chance to have this object in GWT 2.1 version ? Regards, Dor -- You received 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: Open File on client side.
With the new W3C File API you could access files that are picked (by the user) using an input tag or dropped via mouse (etc) over the browser window, but AFAIK FF 3.6 is the only browser that supports it now. @ Google IO, the comments from the GWT team were that as soon as there is more browser penetration, gwt will support it. On Mon, Jun 28, 2010 at 4:05 PM, alan alan.sny...@gmail.com wrote: I would like to open a file on the client side, so it can populate a local (client-side) table. (After validating of course). The data is not needed on the server side. What is the best way to do this? It seems uploading the file to the server would be wasteful, but can you open the file on the client side? -- You received 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. -- Jon Gorrono PGP Key: 0x5434509D - http{pgp.mit.edu:11371/pks/lookup?search=0x5434509Dop=index} GSWoT Introducer - {GSWoT:US75 5434509D Jon P. Gorrono jpgorrono - gswot.org} http{ats.ucdavis.edu} -- You received 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: compile problems with GWT 2.1
I have the same problem!! Any clues? -- You received 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.
Anybody find the Contacts2 example confusing and complicated?
hi all, I am trying to follow along the whats in http://code.google.com/ webtoolkit/articles/mvp-architecture-2.html, however the code that I downloaded from that same page doesn't match what is being shown on the page. It contains the same set of class and the methods does the roughly the same thing albeit via different code, it just tick me a bit the when I am trying to digest whats going on. And is there anybody think its way too much classes and way too many generics used to construct a simple CRUD app for a single simple entity? I am posting this just to see if anyone feels the same towards that and have a better to go around it. And Spring Roo's scaffolding code seems to be taking a more direct approach as well. I am still trying to go thru the docs make sense of both the new GWT 2.0 presenter approach and the Roo's approach. Please feel free to comment, especially with any real world app experience using the new MVP-2 architecture, was it really worth the trouble? Thanks, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: compile problems with GWT 2.1
Not sure if my GWT Eclipse plugin is older version, but it seems to work for me on STS 2.3.3.M1. And I install the GWT plugin via http:// dl.google.com/eclipse/plugin/3.5. I can create GWT project directly from STS and it runs without problem. I was able to follow and finish the StockWatcher tutorial. well up to GWTTestCase. So far haven't found yet to that, but at least the project runs and I can debug. On Jun 28, 11:59 pm, slowpoison verma...@gmail.com wrote: I have the same problem!! Any clues? -- You received 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.
Anyone finds Contacts2 confusing?
hi all, I am trying to follow along whats in http://code.google.com/ webtoolkit/articles/mvp-architecture-2.html and I am just thinking that it requires too many classes and generics to construct a simple CRUD app for a single entity? I am posting this just to see if anyone feels the same towards that and have a better solution. Looking at the code generated by Spring Roo's scaffolding, it seems it is taking a more direct approach and cutting some layers as well. I am still trying to go thru the docs and trying to make sense of both the new MVP-2 architecture and the Roo's approach. Please feel free to comment, especially with any real world app experience using the new MVP-2 architecture, was it really worth the trouble? Thanks, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CSS Localization
On Tue, Jun 29, 2010 at 05:32, Dan Dumont ddum...@gmail.com wrote: AMAZING! is that documented anywhere? I saw no mention on the css section of the building user interfaces part of the docs. On Mon, Jun 28, 2010 at 4:44 AM, Thomas Broyer t.bro...@gmail.com wrote: On 28 juin, 03:53, Dan ddum...@gmail.com wrote: Is it possible to localize the css in a CssResource so that during the translation phase of product development, css tweaks can be made to adjust for language specific spacing and formatting issues? Yes, you can have distinct MyStyle_en.css MyStyle_fr.css, etc. and have them picked from a single @Source(MyStyle.css). if not, what's the current best practice to work around these issues? If the changes are localised though, I'd rather use @if blocks: @if locale en { ... } @elif locale fr { ... } -- You received 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. It is in the documentation: http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#CssResource -- Proper software development is like female orgasm. Some claim it's a myth, others try very hard to make it happen but don't know how, and most magazines, books and videos showing it are showing faked ones. -- You received 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: Soliciting approaches for GWT and XSS-prevention
With GWT, you are isolated to the following attack vectors - 1. Using native eval() 2. Using setInnerHTML() methods 3. Using non-gwt javascript code/thirdparty js libraries 4. XSS on the host html/jsp page Check-list to prevent XSS for GWT applications - - Don't EVER use eval() directly. There is hardly ever a need to use it. Remember - eval is evil. - Avoid using setInnerHTML directly. UIBinder should take care of 80-90% of your use cases. When you must use it, be careful to html escape any data. Standard HTML encoding apply - refer to OWASP's xss cheatsheethttp://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheetfor more information. - Avoid using external JS. If you have to, use a trusted library, or be prepared to review the code - Use GWTs RPC - it will help you avoid XSS. If you cannot use RPC and are forced to use JSON/JSONP - use a safe JSON Parser. Search GWT forum - you will find a thread that discusses safe JSON Parsing. Additionally, the server that is generating JSON can take care to encode the data (this would need to follow javascript escaping rules described in OWASP's cheatsheet) - You will have to take care of encoding data to avoid XSS on the host html/jsp. This has nothing to do with GWT - and the techniques described on OWASPs website/Internet are good enough for this purpose. Additionally, you may want to read Security for GWT Applicationshttp://groups.google.com/group/Google-Web-Toolkit/web/security-for-gwt-applications?pli=1- it introduces XSS and CSRF, and then explains what you can do to avoid them. --Sri On 29 June 2010 02:00, Erem ehb...@gmail.com wrote: Hey guys, Most security papers I've read on the topic of XSS prevention suggest escaping untrusted strings in a context-sensitive way in server side templating languages. However I sense that it's different with GWT (and any other JS applications) in that received data from a data source can be used in so many different ways before, during, and after it is inserted in the page. This is particularly true when your GWT application is simply hitting a data source for JSON or XML. For this reason, it seems like best practice would be to escape in your JS/GWT app immediately before writing untrusted data into a particular context (javascript, attribute, etc). But at the same time, I don't like the idea of possibly dangerous strings buzzing around in the browser memory of my clients, waiting for me to forget escaping a string before writing it to the DOM. What effective approaches have you taken with your GWT and JS applications to protect against XSS? Thankee kindly! -- You received 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 Confluence Plugin
On Jun 29, 5:27 am, krude kirstr...@gmail.com wrote: Has anyone deployed a GWT app as an Atlassian plugin for Confluence and have an example of it? I have had a hard time finding anything but I believe it is possible. What exactly do you want to do? i.e. which part of the Confluence UI do you want to put a GWT panel in -- an entire page (e.g. an admin page) or a macro on a wiki page? Do you want to use GWT-RPC? It is certainly possible. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Fix issue 5065: Float.parseFloat and Double.parseDouble are too strict validating input (issue647802)
Reviewers: , Description: Make Float.parseFloat/valueOf and Double.parseDouble/valueOf accept strings with a float type suffix, such as 1.0f or 1.0d. Please review this at http://gwt-code-reviews.appspot.com/647802/show Affected files: user/super/com/google/gwt/emul/java/lang/Number.java user/test/com/google/gwt/emultest/java/lang/DoubleTest.java user/test/com/google/gwt/emultest/java/lang/FloatTest.java Index: user/super/com/google/gwt/emul/java/lang/Number.java === --- user/super/com/google/gwt/emul/java/lang/Number.java(revision 8320) +++ user/super/com/google/gwt/emul/java/lang/Number.java(working copy) @@ -345,7 +345,7 @@ var floatRegex = @java.lang.Number::floatRegex; if (!floatRegex) { // Disallow '.' with no digits on either side - floatRegex = @java.lang.Number::floatRegex = /^\s*[+-]?((\d+\.?\d*)| (\.\d+))([eE][+-]?\d+)?\s*$/i; + floatRegex = @java.lang.Number::floatRegex = /^\s*[+-]?((\d+\.?\d*)| (\.\d+))([eE][+-]?\d+)?[dDfF]?\s*$/i; } if (floatRegex.test(str)) { return parseFloat(str); Index: user/test/com/google/gwt/emultest/java/lang/DoubleTest.java === --- user/test/com/google/gwt/emultest/java/lang/DoubleTest.java (revision 8320) +++ user/test/com/google/gwt/emultest/java/lang/DoubleTest.java (working copy) @@ -151,5 +151,11 @@ assertTrue(-2.56789e1 == Double.parseDouble( -2.56789E1)); assertTrue(-2.56789e1 == Double.parseDouble(-2.56789e+01 )); assertTrue(-2.56789e1 == Double.parseDouble( -2.56789E1 )); + +// Test that a float type suffix is allowed +assertTrue(1.0 == Double.parseDouble(1.0f)); +assertTrue(1.0 == Double.parseDouble(1.0F)); +assertTrue(1.0 == Double.parseDouble(1.0d)); +assertTrue(1.0 == Double.parseDouble(1.0D)); } } Index: user/test/com/google/gwt/emultest/java/lang/FloatTest.java === --- user/test/com/google/gwt/emultest/java/lang/FloatTest.java (revision 8320) +++ user/test/com/google/gwt/emultest/java/lang/FloatTest.java (working copy) @@ -78,6 +78,11 @@ assertEquals(-1.5f, Float.parseFloat(-1.5), 0.0); assertEquals(3.0f, Float.parseFloat(3.), 0.0); assertEquals(0.5f, Float.parseFloat(.5), 0.0); +// Test that a float type suffix is allowed +assertEquals(1.0f, Float.parseFloat(1.0f), 0.0); +assertEquals(1.0f, Float.parseFloat(1.0F), 0.0); +assertEquals(1.0f, Float.parseFloat(1.0d), 0.0); +assertEquals(1.0f, Float.parseFloat(1.0D), 0.0); // TODO(jat): it isn't safe to parse MAX/MIN_VALUE because we also want to // be able to get POSITIVE/NEGATIVE_INFINITY for out-of-range values, and // since all math in JS is done in double we can't rely on getting the -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] WebSockets in GWT
Are web sockets going to be implemented in GWT any time soon? Does google or more precisely, GWT team, have that in the roadmap? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Making StackLayoutPanel#showWidget(Widget) call showWidget(int) for legacy support. Ditto to Ta... (issue641802)
Reviewers: jgw, Description: Making StackLayoutPanel#showWidget(Widget) call showWidget(int) for legacy support. Ditto to TabLayoutPanel. Please review this at http://gwt-code-reviews.appspot.com/641802/show Affected files: M user/src/com/google/gwt/user/client/ui/StackLayoutPanel.java M user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java M user/test/com/google/gwt/user/client/ui/StackLayoutPanelTest.java M user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] WebSockets in GWT
On Mon, Jun 28, 2010 at 12:50 PM, Marko Vuksanovic markovuksano...@gmail.com wrote: Are web sockets going to be implemented in GWT any time soon? Does google or more precisely, GWT team, have that in the roadmap? I am working on WebSockets in general, and the GWT bindings will probably look a lot like those used in GWT Quake. It will probably have some deferred binding property to check for WebSockets support, but will not try and do anything like emulating it over some other transport in the first pass. Jetty was recently upgraded to 7.0.2, which provides WebSocket support on the server. If you are interested in working on this, please contact me off-list. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8321 committed - DefaultSelectionModel#setSelected currently adds an exception even if ...
Revision: 8321 Author: jlaba...@google.com Date: Mon Jun 28 07:32:05 2010 Log: DefaultSelectionModel#setSelected currently adds an exception even if the default selection state equals the specified state. Also adds test cases for all selection models. Review at http://gwt-code-reviews.appspot.com/658801 Review by: j...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8321 Added: /trunk/user/test/com/google/gwt/view/ViewSuite.java /trunk/user/test/com/google/gwt/view/client/AbstractSelectionModelTest.java /trunk/user/test/com/google/gwt/view/client/DefaultSelectionModelTest.java /trunk/user/test/com/google/gwt/view/client/MultiSelectionModelTest.java /trunk/user/test/com/google/gwt/view/client/SingleSelectionModelTest.java Modified: /trunk/user/src/com/google/gwt/view/client/DefaultSelectionModel.java /trunk/user/src/com/google/gwt/view/client/SelectionModel.java === --- /dev/null +++ /trunk/user/test/com/google/gwt/view/ViewSuite.java Mon Jun 28 07:32:05 2010 @@ -0,0 +1,47 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.view; + +import com.google.gwt.junit.tools.GWTTestSuite; +import com.google.gwt.view.client.AbstractListViewAdapterTest; +import com.google.gwt.view.client.AbstractSelectionModelTest; +import com.google.gwt.view.client.AsyncListViewAdapterTest; +import com.google.gwt.view.client.DefaultNodeInfoTest; +import com.google.gwt.view.client.DefaultSelectionModelTest; +import com.google.gwt.view.client.MultiSelectionModelTest; +import com.google.gwt.view.client.RangeTest; +import com.google.gwt.view.client.SingleSelectionModelTest; + +import junit.framework.Test; + +/** + * Tests of the view package. + */ +public class ViewSuite { + public static Test suite() { +GWTTestSuite suite = new GWTTestSuite(Test suite for all view classes); + +suite.addTestSuite(AbstractListViewAdapterTest.class); +suite.addTestSuite(AbstractSelectionModelTest.class); +suite.addTestSuite(AsyncListViewAdapterTest.class); +suite.addTestSuite(DefaultNodeInfoTest.class); +suite.addTestSuite(DefaultSelectionModelTest.class); +suite.addTestSuite(MultiSelectionModelTest.class); +suite.addTestSuite(RangeTest.class); +suite.addTestSuite(SingleSelectionModelTest.class); +return suite; + } +} === --- /dev/null +++ /trunk/user/test/com/google/gwt/view/client/AbstractSelectionModelTest.java Mon Jun 28 07:32:05 2010 @@ -0,0 +1,128 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.view.client; + +import com.google.gwt.junit.client.GWTTestCase; +import com.google.gwt.user.client.Timer; +import com.google.gwt.view.client.SelectionModel.AbstractSelectionModel; +import com.google.gwt.view.client.SelectionModel.SelectionChangeEvent; +import com.google.gwt.view.client.SelectionModel.SelectionChangeHandler; + +/** + * Tests for {...@link AbstractSelectionModel}. + */ +public class AbstractSelectionModelTest extends GWTTestCase { + + /** + * A mock {...@link SelectionChangeHandler} used for testing. + */ + private static class MockSelectionChangeHandler implements + SelectionChangeHandler { + +private boolean eventFired; + +public void assertEventFired(boolean expected) { + assertEquals(expected, eventFired); +} + +public void onSelectionChange(SelectionChangeEvent event) { + eventFired = true; +} + } + + /** + * A mock {...@link SelectionModel} used for testing. + * + * @param T the data type + */ + private static class MockSelectionModelT extends AbstractSelectionModelT { +public boolean isSelected(T object) { + return false; +} + +public void setSelected(T object, boolean selected) { +} + } + + @Override + public String getModuleName() { +
[gwt-contrib] Adding NoSelectionModel, which allows selection without saving the selection state. (issue667801)
Reviewers: jgw, Description: Adding NoSelectionModel, which allows selection without saving the selection state. Please review this at http://gwt-code-reviews.appspot.com/667801/show Affected files: M bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpenseList.java M bikeshed/src/com/google/gwt/sample/expenses/gwt/client/MobileExpenseList.java M bikeshed/src/com/google/gwt/sample/expenses/gwt/client/MobileReportList.java A user/src/com/google/gwt/view/client/NoSelectionModel.java M user/test/com/google/gwt/view/ViewSuite.java A user/test/com/google/gwt/view/client/NoSelectionModelTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Making StackLayoutPanel#showWidget(Widget) call showWidget(int) for legacy support. Ditto to Ta... (issue641802)
On 2010/06/28 16:54:55, jlabanca wrote: LGTM http://gwt-code-reviews.appspot.com/641802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix external issue 5052 - JSONParser.parse exceptions with some unicode characters (issue659801)
On Fri, Jun 25, 2010 at 6:18 PM, t.bro...@gmail.com wrote: Just like in plain JavaScript, the following would actually create an ab property with no trace of char (tested in Safari 5 on Windows): var o = {}; o['a\u2028b'] = 'c'; That's a bug in JavaScriptCore that can hardly be worked around, so I suggest not doing anything (the probability that those chars be used in property names is rather low, and they are correctly treated in string values) I couldn't reproduce the problem (using \u0601 for char) in either of Firefox (3.6.4), Chrome (6.0.447.0 dev), IE (8) or Opera (10.60 beta). I don't see this on a recently-updated Safari 5.0 on Os X 10.5.8: var o = {} *undefined* o['a\u2028b'] = 'c' *c* o['ab'] *undefined* o['ab'] = 'd' *d* o['a\u2028b'] *c* o['ab'] *d* Dan -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix issue 5065: Float.parseFloat and Double.parseDouble are too strict validating input (issue647802)
LGTM http://gwt-code-reviews.appspot.com/647802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix issue 5065: Float.parseFloat and Double.parseDouble are too strict validating input (issue647802)
Thanks for the patch, I'll submit it. Dan On 2010/06/28 18:07:14, Dan Rice wrote: LGTM http://gwt-code-reviews.appspot.com/647802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8323 committed - Making StackLayoutPanel#showWidget(Widget) call showWidget(int) for le...
Revision: 8323 Author: jlaba...@google.com Date: Mon Jun 28 08:24:06 2010 Log: Making StackLayoutPanel#showWidget(Widget) call showWidget(int) for legacy support. Ditto to TabLayoutPanel. Review at http://gwt-code-reviews.appspot.com/641802 Review by: j...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8323 Modified: /trunk/user/src/com/google/gwt/user/client/ui/StackLayoutPanel.java /trunk/user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java /trunk/user/test/com/google/gwt/user/client/ui/StackLayoutPanelTest.java /trunk/user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java === --- /trunk/user/src/com/google/gwt/user/client/ui/StackLayoutPanel.java Mon Jun 7 12:20:31 2010 +++ /trunk/user/src/com/google/gwt/user/client/ui/StackLayoutPanel.java Mon Jun 28 08:24:06 2010 @@ -341,6 +341,7 @@ }; } + @Override public void onResize() { layoutPanel.onResize(); } @@ -439,7 +440,7 @@ * @param child the child widget to be shown. */ public void showWidget(Widget child) { -showWidget(child, true); +showWidget(getWidgetIndex(child)); } /** === --- /trunk/user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java Mon Jun 7 12:20:31 2010 +++ /trunk/user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java Mon Jun 28 08:24:06 2010 @@ -420,7 +420,7 @@ * @param child the child whose tab is to be selected */ public void selectTab(Widget child) { -selectTab(child, true); +selectTab(getWidgetIndex(child)); } /** === --- /trunk/user/test/com/google/gwt/user/client/ui/StackLayoutPanelTest.java Mon Jun 7 12:20:31 2010 +++ /trunk/user/test/com/google/gwt/user/client/ui/StackLayoutPanelTest.java Mon Jun 28 08:24:06 2010 @@ -21,7 +21,9 @@ import com.google.gwt.event.logical.shared.SelectionEvent; import com.google.gwt.event.logical.shared.SelectionHandler; +import java.util.ArrayList; import java.util.Iterator; +import java.util.List; /** * Tests for {...@link StackLayoutPanel}. @@ -198,6 +200,30 @@ handler.assertOnBeforeSelectionFired(false); handler.assertOnSelectionFired(false); } + + /** + * For legacy reasons, {...@link StackLayoutPanel#showWidget(Widget)} should call + * {...@link StackLayoutPanel#showWidget(int)}. + */ + public void testShowWidgetLegacy() { +final ListInteger called = new ArrayListInteger(); +StackLayoutPanel panel = new StackLayoutPanel(Unit.PX) { + @Override + public void showWidget(int index) { +called.add(index); +super.showWidget(index); + } +}; +Label stack1 = new Label(Stack 1); +panel.add(new Label(Stack 0), Stack 0, 100); +panel.add(stack1, Stack 1, 100); +panel.add(new Label(Stack 2), Stack 2, 100); +called.clear(); + +panel.showWidget(stack1); +assertEquals(1, called.size()); +assertEquals(1, called.get(0).intValue()); + } public void testVisibleWidget() { StackLayoutPanel p = new StackLayoutPanel(Unit.EM); === --- /trunk/user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java Mon Jun 7 12:20:31 2010 +++ /trunk/user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java Mon Jun 28 08:24:06 2010 @@ -26,7 +26,9 @@ import com.google.gwt.user.client.Command; import com.google.gwt.user.client.DeferredCommand; +import java.util.ArrayList; import java.util.Iterator; +import java.util.List; /** * Tests for {...@link TabLayoutPanel}. @@ -39,7 +41,8 @@ } } - private class TestSelectionHandler implements BeforeSelectionHandlerInteger, SelectionHandlerInteger { + private class TestSelectionHandler implements + BeforeSelectionHandlerInteger, SelectionHandlerInteger { private boolean onBeforeSelectionFired; private boolean onSelectionFired; @@ -273,6 +276,30 @@ assertFalse(labels[1].isVisible()); assertFalse(labels[2].isVisible()); } + + /** + * For legacy reasons, {...@link TabLayoutPanel#selectTab(Widget)} should call + * {...@link TabLayoutPanel#selectTab(int)}. + */ + public void testSelectTabLegacy() { +final ListInteger called = new ArrayListInteger(); +TabLayoutPanel panel = new TabLayoutPanel(100.0, Unit.PX) { + @Override + public void selectTab(int index) { +called.add(index); +super.selectTab(index); + } +}; +Label tab1 = new Label(Tab 1); +panel.add(new Label(Tab 0), Tab 0); +panel.add(tab1, Tab 1); +panel.add(new Label(Tab 2), Tab 2); +called.clear(); + +panel.selectTab(tab1); +assertEquals(1, called.size()); +assertEquals(1, called.get(0).intValue()); + } /** * Tests that tabs actually line up properly (see issue 4447). @@ -285,8 +312,7 @@ p.add(new Button(foo), new Label(foo)); p.add(new Button(bar), new Label(bar)); -
[gwt-contrib] [google-web-toolkit] r8324 committed - Adding json-1.5 jar that contains 1.5 compatible bytecode so that GWT ...
Revision: 8324 Author: amitman...@google.com Date: Mon Jun 28 11:49:58 2010 Log: Adding json-1.5 jar that contains 1.5 compatible bytecode so that GWT users can use java 1.5 to build apps with GWT. Patch by: amitmanjhi Review by: rjrjr, fabbott (TBR) http://code.google.com/p/google-web-toolkit/source/detail?r=8324 Added: /tools/redist/json/r2_20080312/README /tools/redist/json/r2_20080312/json-1.5.jar === --- /dev/null +++ /tools/redist/json/r2_20080312/README Mon Jun 28 11:49:58 2010 @@ -0,0 +1,3 @@ +json-1.5.jar and json.jar share the same source json-src.jar. They only differ +in that the java 1.5 compiler was used to create json-1.5.jar whereas the java +1.6 compiler was used to create json.jar. === --- /dev/null +++ /tools/redist/json/r2_20080312/json-1.5.jar Mon Jun 28 11:49:58 2010 Binary file, no diff available. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Patch by T. Broyer - Fix issue 5065: Float.parseFloat and Double.parseDouble are too strict vali... (issue661802)
Reviewers: Ray Ryan, Description: Patch by T. Broyer - Fix issue 5065: Float.parseFloat and Double.parseDouble are too strict validating input (issue647802) Please review this at http://gwt-code-reviews.appspot.com/661802/show Affected files: M user/super/com/google/gwt/emul/java/lang/Number.java M user/test/com/google/gwt/emultest/java/lang/DoubleTest.java M user/test/com/google/gwt/emultest/java/lang/FloatTest.java Index: user/super/com/google/gwt/emul/java/lang/Number.java === --- user/super/com/google/gwt/emul/java/lang/Number.java(revision 8320) +++ user/super/com/google/gwt/emul/java/lang/Number.java(working copy) @@ -345,7 +345,7 @@ var floatRegex = @java.lang.Number::floatRegex; if (!floatRegex) { // Disallow '.' with no digits on either side - floatRegex = @java.lang.Number::floatRegex = /^\s*[+-]?((\d+\.?\d*)| (\.\d+))([eE][+-]?\d+)?\s*$/i; + floatRegex = @java.lang.Number::floatRegex = /^\s*[+-]?((\d+\.?\d*)| (\.\d+))([eE][+-]?\d+)?[dDfF]\s*$/i; } if (floatRegex.test(str)) { return parseFloat(str); Index: user/test/com/google/gwt/emultest/java/lang/DoubleTest.java === --- user/test/com/google/gwt/emultest/java/lang/DoubleTest.java (revision 8320) +++ user/test/com/google/gwt/emultest/java/lang/DoubleTest.java (working copy) @@ -151,5 +151,11 @@ assertTrue(-2.56789e1 == Double.parseDouble( -2.56789E1)); assertTrue(-2.56789e1 == Double.parseDouble(-2.56789e+01 )); assertTrue(-2.56789e1 == Double.parseDouble( -2.56789E1 )); + +// Test that a float/double type suffix is allowed +assertEquals(1.0d, Double.parseDouble(1.0f), 0.0); +assertEquals(1.0d, Double.parseDouble(1.0F), 0.0); +assertEquals(1.0d, Double.parseDouble(1.0d), 0.0); +assertEquals(1.0d, Double.parseDouble(1.0D), 0.0); } } Index: user/test/com/google/gwt/emultest/java/lang/FloatTest.java === --- user/test/com/google/gwt/emultest/java/lang/FloatTest.java (revision 8320) +++ user/test/com/google/gwt/emultest/java/lang/FloatTest.java (working copy) @@ -78,6 +78,13 @@ assertEquals(-1.5f, Float.parseFloat(-1.5), 0.0); assertEquals(3.0f, Float.parseFloat(3.), 0.0); assertEquals(0.5f, Float.parseFloat(.5), 0.0); + +// Test that a float/double type suffix is allowed +assertEquals(1.0f, Float.parseFloat(1.0f), 0.0); +assertEquals(1.0f, Float.parseFloat(1.0F), 0.0); +assertEquals(1.0f, Float.parseFloat(1.0d), 0.0); +assertEquals(1.0f, Float.parseFloat(1.0D), 0.0); + // TODO(jat): it isn't safe to parse MAX/MIN_VALUE because we also want to // be able to get POSITIVE/NEGATIVE_INFINITY for out-of-range values, and // since all math in JS is done in double we can't rely on getting the -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Setting the default selection model in DefaultNodeInfo to null. Having a selection model per nod... (issue657801)
committed as r8326 http://gwt-code-reviews.appspot.com/657801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix external issue 5052 - JSONParser.parse exceptions with some unicode characters (issue659801)
http://gwt-code-reviews.appspot.com/659801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8327 committed - Column should not use a singleton FieldUpdater because the Cell may ha...
Revision: 8327 Author: gwt.mirror...@gmail.com Date: Mon Jun 28 12:12:17 2010 Log: Column should not use a singleton FieldUpdater because the Cell may hang on to the FieldUpdater. We now create a new instance each time. Review at http://gwt-code-reviews.appspot.com/620803 Review by: r...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8327 Modified: /trunk/user/src/com/google/gwt/user/cellview/client/Column.java === --- /trunk/user/src/com/google/gwt/user/cellview/client/Column.java Mon Jun 7 12:20:31 2010 +++ /trunk/user/src/com/google/gwt/user/cellview/client/Column.java Mon Jun 28 12:12:17 2010 @@ -44,43 +44,36 @@ /** * A {...@link ValueUpdater} used by the {...@link Column} to delay the field update - * until after the view data has been set. - * - * @param C the type of data + * until after the view data has been set. After the view data has been set, + * the delay is revoked and we pass updates directly to the + * {...@link FieldUpdater}. */ - private static class DelayedValueUpdaterC implements ValueUpdaterC { -private C newValue; + private class DelayedValueUpdater implements ValueUpdaterC { + private boolean hasNewValue; - -/** - * Get the new value. - * - * @return the new value - */ -public C getNewValue() { - return newValue; +private boolean isDelayed = true; +private C newValue; +private final int rowIndex; +private final T rowObject; + +public DelayedValueUpdater(int rowIndex, T rowObject) { + this.rowIndex = rowIndex; + this.rowObject = rowObject; } -/** - * Check if the value has been updated. - * - * @return true if updated, false if not - */ -public boolean hasNewValue() { - return hasNewValue; -} - -/** - * Reset this updater so it can be reused. - */ -public void reset() { - newValue = null; - hasNewValue = false; +public void flush() { + isDelayed = false; + if (hasNewValue fieldUpdater != null) { +fieldUpdater.update(rowIndex, rowObject, newValue); + } } public void update(C value) { hasNewValue = true; newValue = value; + if (!isDelayed) { +flush(); + } } } @@ -90,11 +83,6 @@ protected MapObject, Object viewDataMap = new HashMapObject, Object(); - /** - * The {...@link DelayedValueUpdater} singleton. - */ - private final DelayedValueUpdaterC delayedValueUpdater = new DelayedValueUpdaterC(); - public Column(CellC cell) { this.cell = cell; } @@ -134,9 +122,10 @@ NativeEvent event, ProvidesKeyT providesKey) { Object key = getKey(object, providesKey); Object viewData = getViewData(key); -delayedValueUpdater.reset(); +DelayedValueUpdater valueUpdater = (fieldUpdater == null) ? null +: new DelayedValueUpdater(index, object); Object newViewData = cell.onBrowserEvent(elem, getValue(object), viewData, -event, fieldUpdater == null ? null : delayedValueUpdater); +event, valueUpdater); // We have to save the view data before calling the field updater, or the // view data will not be available. @@ -146,8 +135,8 @@ } // Call the FieldUpdater after setting the view data. -if (delayedValueUpdater.hasNewValue()) { - fieldUpdater.update(index, object, delayedValueUpdater.getNewValue()); +if (valueUpdater != null) { + valueUpdater.flush(); } } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Column should not use a singleton FieldUpdater because the Cell may hang on to the FieldUpdater.... (issue620803)
committed as r8327 http://gwt-code-reviews.appspot.com/620803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] proposing a hypothetically breaking change to gwt-servlet.jar: comments?
So, this becomes a very breaking change if we say we want to go all the way right: we would have to repackage com.google.gwt.core.client.JavaScriptObject com.google.gwt.core.client.GWT com.google.gwt.core.client.JsArray com.google.gwt.core.client.JavaScriptException com.google.gwt.core.client.JsArray com.google.gwt.core.client.UnsafeNativeLong com.google.gwt.junit.client.GWTTestCase com.google.gwt.junit.client.TimeoutException com.google.gwt.i18n.client.HasDirection com.google.gwt.rpc.client.ast.* com.google.gwt.rpc.client.RpcService com.google.gwt.user.client.rpc.RemoteService com.google.gwt.user.client.rpc.AsyncCallback com.google.gwt.user.client.rpc.GwtTransient com.google.gwt.user.client.rpc.IsSerializable com.google.gwt.user.client.rpc.*Exception ...which seems likely to break just about every GWT app anywhere. Some we could try to finagle around (GWT.isClient() might be in a shared GWT-analog, different from the client one, for example), but most of those classes really are shard and really are misnamed in today's packaging. So, how breaking are we willing to be to correct that? On Fri, Jun 25, 2010 at 12:08 PM, John Tamplin j...@google.com wrote: On Fri, Jun 25, 2010 at 11:50 AM, Freeland Abbott fabb...@google.comwrote: The last sentence was the only thing I was going to add here (except you included it): I know my first cut is compilation-valid, which I think means it has to be runtime-valid. Actually, in my personal app I ran into runtime failures on the server where only in some code paths did make some methods get called which instantiated non-server classes on the server which caused errors. That is when I started being very rigorous about client/server/shared code, and I haven't had the problem since. In the current state of GWT, that means not using a number of GWT classes that would actually be usable (though I do make an exception for Messages, which I generate bytecode on the server to share translations with the client). I guess we have violent agreement that gwt-servlet should eventually become just **/shared/** and **/server/**. I can get us a lot closer to that in one change, and then work to prune the exceptions down with more incremental refactoring. The alternative approach would be to refactor first, leaving the blacklist in place (except probably in my personal workspace) until that's done, and THEN move to whitelist. I am ok with doing the whitelist first as long as that is just one step along the way to the final solution. I do object if that is intended to be a good enough for now fix. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Replacing PagingListView.setPageStart/Size with PagingListView.setRange. Replacing CellListImpl... (issue614803)
Reviewers: jgw, Description: Replacing PagingListView.setPageStart/Size with PagingListView.setRange. Replacing CellListImpl with PagingListViewPresenter, which makes the implementation easier to test and reuse. Adding lots of tests. Please review this at http://gwt-code-reviews.appspot.com/614803/show Affected files: M bikeshed/src/com/google/gwt/app/place/AbstractRecordListActivity.java M bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/MailRecipe.java M bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/ScrollbarPager.java M bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/SimplePager.java M bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpenseDetails.java M bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpenseList.java M bikeshed/src/com/google/gwt/sample/expenses/gwt/client/MobileExpenseList.java M bikeshed/src/com/google/gwt/sample/expenses/gwt/client/MobileReportList.java M user/src/com/google/gwt/app/place/AbstractRecordListActivity.java M user/src/com/google/gwt/user/cellview/client/AbstractPager.java M user/src/com/google/gwt/user/cellview/client/CellBrowser.java M user/src/com/google/gwt/user/cellview/client/CellList.java D user/src/com/google/gwt/user/cellview/client/CellListImpl.java M user/src/com/google/gwt/user/cellview/client/CellTable.java M user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java M user/src/com/google/gwt/user/cellview/client/PageSizePager.java A user/src/com/google/gwt/user/cellview/client/PagingListViewPresenter.java M user/src/com/google/gwt/user/cellview/client/SimplePager.java M user/src/com/google/gwt/view/client/ListView.java M user/src/com/google/gwt/view/client/PagingListView.java A user/test/com/google/gwt/user/cellview/CellViewSuite.java A user/test/com/google/gwt/user/cellview/client/AbstractPagerTest.java A user/test/com/google/gwt/user/cellview/client/ColumnTest.java A user/test/com/google/gwt/user/cellview/client/PagingListViewPresenterTest.java A user/test/com/google/gwt/user/cellview/client/SimplePagerTest.java M user/test/com/google/gwt/view/ViewSuite.java A user/test/com/google/gwt/view/client/ListViewAdapterTest.java M user/test/com/google/gwt/view/client/MockPagingListView.java A user/test/com/google/gwt/view/client/MockSelectionModel.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add a simple remote log handler, and update the sample to use it (issue626802)
http://gwt-code-reviews.appspot.com/626802/diff/1/4 File samples/logexample/war/WEB-INF/web.xml (right): http://gwt-code-reviews.appspot.com/626802/diff/1/4#newcode7 samples/logexample/war/WEB-INF/web.xml:7: servlet-classcom.google.gwt.sample.logexample.server.LoggingServiceImpl/servlet-class On 2010/06/25 04:22:30, fredsa wrote: It's confusing to have both LoggingSerivceImpl and RemoteLoggingSerivceImpl. Renaming LoggingSerivceImpl to SampleLoggingSerivceImpl or even RemoteLoggingSerivceImpl (same name as the other RemoteLoggingSerivceImpl, but in a different package) would be more straightforward. Agreed - following up with a CL to clean up the remote logging vs. triggering logging on the server http://gwt-code-reviews.appspot.com/626802/diff/1/4#newcode12 samples/logexample/war/WEB-INF/web.xml:12: url-pattern/logexample/log/url-pattern On 2010/06/25 04:22:30, fredsa wrote: It's hard to tell from the url-pattern which logger in just part of the example and which is the official remote logger. Suggest changing /logexample/log to something else, like /logexample/sample_logger Agreed - sending a follow up CL later today http://gwt-code-reviews.appspot.com/626802/diff/1/8 File user/src/com/google/gwt/logging/server/RemoteLoggingServiceImpl.java (right): http://gwt-code-reviews.appspot.com/626802/diff/1/8#newcode26 user/src/com/google/gwt/logging/server/RemoteLoggingServiceImpl.java:26: * Server side code for the remote log handlers. On 2010/06/25 04:22:30, fredsa wrote: handlers - handler Done. http://gwt-code-reviews.appspot.com/626802/diff/1/8#newcode38 user/src/com/google/gwt/logging/server/RemoteLoggingServiceImpl.java:38: logger.severe(failureMessage); On 2010/06/25 04:22:30, fredsa wrote: The stack trace for e is not logged, but should be. removed - see below http://gwt-code-reviews.appspot.com/626802/diff/1/8#newcode42 user/src/com/google/gwt/logging/server/RemoteLoggingServiceImpl.java:42: System.err.println(failureMessage); On 2010/06/25 04:22:30, fredsa wrote: If logging is broken, it's possible that line 38 would throw another exception, preventing System.err.println from being called. Then again, that exception would bubble up in result is some error logging higher up the stack, in which case our System.err.prinln might be considered spammy. Fair enough - I returned this code to the way it was in the incubator - and am just printing to stderr. http://gwt-code-reviews.appspot.com/626802/diff/1/11 File user/src/com/google/gwt/logging/shared/SerializableLogRecord.java (right): http://gwt-code-reviews.appspot.com/626802/diff/1/11#newcode35 user/src/com/google/gwt/logging/shared/SerializableLogRecord.java:35: private Throwable thrown; On 2010/06/25 04:22:30, fredsa wrote: I don't think you want to include Throwable in the fields serialized over RPC as it will blow out the serialization/deserialization code in the compiled output. A serialized representation of StackTraceElement[] would be better. Done. http://gwt-code-reviews.appspot.com/626802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] proposing a hypothetically breaking change to gwt-servlet.jar: comments?
GWT is imported by com/google/gwt/user/*server*/rpc/impl/SerializabilityUtil.java (for isClient()), com/google/gwt/valuestore/*shared*/impl/RecordJsoImpl.java (for isScript()), com/google/gwt/rpc/*client-but-becomes-shared*/impl/SimplePayloadSink.java (for isScript()), and com/google/gwt/rpc/*client-but-becomes-shared*/impl/EscapeUtil.java (for isClient()). JSO and JsArray are imported by ClientSerializationStream{Reader,Writer}, which are in client now but used by server-side code, so naively they'd move to be shared. They don't make a lot of sense as server, I guess; I imagine they're being overridden, and some third interface type could be introduced instead. GWTTestCase is referenced from the junit server packages; it's also legitimately used in java context in a test, so I think making it shared is sensible. RpcService and RemoteService are marker interfaces implemented by server-side classes. We could probably work out a way to leave AsyncCallback in client, though; I'd have to track down again what touched it from server-side. So, a quick pushback still leaves you with GWTTestCase, RpcService, RemoteService, and at least parts of GWT. Which still has a wide impact. On Mon, Jun 28, 2010 at 4:10 PM, John Tamplin j...@google.com wrote: On Mon, Jun 28, 2010 at 3:57 PM, Freeland Abbott fabb...@google.comwrote: So, this becomes a very breaking change if we say we want to go all the way right: we would have to repackage com.google.gwt.core.client.JavaScriptObject com.google.gwt.core.client.JsArray com.google.gwt.core.client.JavaScriptException com.google.gwt.core.client.JsArray com.google.gwt.junit.client.GWTTestCase com.google.gwt.rpc.client.RpcService com.google.gwt.user.client.rpc.RemoteService com.google.gwt.user.client.rpc.AsyncCallback What server-side classes can use any of these at all? They all have significant GWT magic behind them, and would require at a minimum significant bytecode rewriting/generation to use on the server. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add a simple remote log handler, and update the sample to use it (issue626802)
http://gwt-code-reviews.appspot.com/626802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add a simple remote log handler, and update the sample to use it (issue626802)
LGTM http://gwt-code-reviews.appspot.com/626802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Replacing PagingListView.setPageStart/Size with PagingListView.setRange. Replacing CellListImpl... (issue614803)
http://gwt-code-reviews.appspot.com/614803/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors