Re: hard time to get GWTTestCase to work
Thanks Anywhere you find yourself re-writing the same code more than three times, you would likely benefit from a generator. Can you give some examples? And what is your experience concerning debugging? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Two footers in a CellTable?
Yes, check for Header/FooterBuilder API. http://showcase3.jlabanca-testing.appspot.com/#%21CwCustomDataGrid On Monday, September 17, 2012 10:42:59 PM UTC+2, Kevin Buikema wrote: Is there a way within the standard CellTable to add two footers to the table? I need to have two separate non-editable total rows, and I was hoping to be able to do it without having to customize objects or create a separate table for the totals. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/E6KeR2hjAAUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Will PopupPanel.hide() clear the memory it used?
I display the search result using PopupPanel, the PopupPanel has a button filter which allow user to refine the criteria and show the result (PopupPanel) again.I found that after several this operation (hide(), then new the PopupPanel again, center() it), the weblogic will throws java.lang.OutofMemoryError: Java heap space I already set the Xms and Xmx of weblogic to 1024M for my local machine. the relevant code is posted as follow: filter.addClickHandler(new CloseClickHandler(){ @Override public void onClick(ClickEvent event) { super.onClick(event); Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand(){ @Override public void execute() { ((SearchLogsPanel)callingPanel).btnSearch.click(); } }); } }); in the attached code, super.onClick(event); will close the PopupPanel, then in the scheduler execute() method, the btnSearch.click() will new the PopupPanel again and then center(show) it. I suspect PopupPanel.hide() will not clear the memory and so after several these operation, many PopupPanel is accumulated and so used up the weblogic memory, is this true? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/B3w70QjdBAkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT MVP Architecture
I don't know if i am missing something, but, why yo don't create a clientFactory in order to get the View? In that way you only create the view once and you avoid the problem of having multiple handlers attached. 2012/9/14 Aryan saurabh.bl...@gmail.com On 14 Sep, 14:21, stuckagain david.no...@gmail.com wrote: Why does the view need to be a singleton ? I guess why I am having view as singleton is having better performance as I see views are expensive to create. Not creating em everytime saves operation deep down like Document.create - appendChild. and so the DOM manipulation that saves time. Anyway, when you are done with the presenter, then you need to tell it so. In that case it can unregister any installed handlers. David On Thursday, September 13, 2012 8:09:30 PM UTC+2, Aryan wrote: Hi all, lets look at the code: public class MyView implements IMyView { Button click; . public HasClickHandlers getClick(){ return click; } } public class MyPresenter { public interface IMyView { public HasClickHandlers getClick(); } private IMyView view; public MyPresenter(IMyView view){ this.view = view; bind(); } private void bind(){ view.addClickHandler(new ClickHandler(){ public void onClick(ClickEvent e){ Window.alert(heeo); } }//binds end }// class ends //(We are not using Activities or any MVP framework) ok tats it. Now in applicaton the view is singleton. but the presenter are not, so they are made as and when needed like : MyPresenter p = new MyPresenter(view); //view is singleton throughout the application; assume getting it by some factory Now suppose after a while if I have created *10 MyPresenter *instance that will add *10 clickHandler *to button c*lick . So one click event will be handled 10 times by 10 different handlers.* ** I can see here it as happening when click the button I get 10 times alert window. So where I misunderstood the MVP architecture, what I am missing. please help ** Thanks in advance.- Hide quoted text - - Show quoted 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- El precio es lo que pagas. El valor es lo que recibes. Warren Buffet -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Nasty overlay types restrinction : Only one JavaScriptObject type may implement the methods of an interface
The GPE provides some help with JSNI. But at some point you will have to write some JS by hand with no autocompletion :) 2012/9/15 Sebastián Gurin sebastigu...@gmail.com nino: thank you very much! I have my two question responded in your code snippet. My last question: I notice you perform most of the job in javascript / jsni, nice. How is your experience using eclipse+google Java code refactoring tools ? in particular, method and class renames ? Thank you again.- On Thursday, September 13, 2012 5:51:30 PM UTC-3, nino wrote: In one our our project we have a base which goes something like public class ProxyObject { protected JavaScriptObject jsObj; protected ProxyObject() { } } The we do public class View extends ProxyObject { public View() { createPeer(); } View(JavaScriptObject obj) { jsObj = obj; } private ListView children = new ArrayListView(); @Override public native Point getAnchorPoint() /*-{ var jso = th...@com.emitrom.gwt4.ti.**mobile.client.core.ProxyObject** ::getJsObj()(); var obj = jso.anchorPoint; var toReturn = @com.emitrom.gwt4.ti.mobile.**client.ui.Point::new(Lcom/* *google/gwt/core/client/**JavaScriptObject;)(obj); return toReturn; }-*/; } We create the wrapped JSO in the constructor and delegation is done using JSNI which save the need of the explicit cast. To call methods on the wrapped JSO we use JSNI Hope this could help 2012/9/13 Sebastián Gurin sebast...@gmail.com Hi nino, i'm making a second Java API for my yuigwt project, on top of my JSO based Java API, wrapping JSO objects and delegating methods to it. I have a couple of questions for you about this. I'm not sure, perhaps the best is to create another thread for this questions, but here they go: I have a rich class hierarchy for example, ClassC extends ClassB extends ClassA Now for ClassA I'm writing: public class ClassA { protected JSOClassA _wrapped; } The problem is that in ClassB and ClassC I must cast _wrapped to JSOClassB and JSOClassC for implementing method delegation, so I ended with something like public class ClassB extends ClassA { protected JSOClassB _wrappedClassB() { return _wrapped.cast(); } } public class ClassC extends ClassB { protected JSOClassC _wrappedClassC() { return _wrapped.cast(); } } can you think of another more simpler way to solve this ? And the other question is, how or where should I initialize the _wrapped field ? at constructor ? Regards and thanks in advance. On Tuesday, September 11, 2012 7:24:56 AM UTC-3, nino wrote: Answer below in Bold. Cheers 2012/9/11 Sebastián Gurin sebast...@gmail.com Nino; I very like your thoughts and I agree with them. My reply between lines: On Monday, September 10, 2012 5:05:25 PM UTC-3, nino wrote: The main Question is do you want YUI users to use Java or do you want to bring Java Devs to YUI ? I think you will get more traction by choosing the latter. I also thought of that. I started learning how to port JavaScript libraries to GWT with my project http://code.google.com/p/**rapha** el4gwt/ http://code.google.com/p/raphael4gwt/ , a vector drawing library. As such, performance was a requirement, and then a Java API using GWT overlays directly was a requirement. But now for YUIGWT I wonder if that is true. Some notes: *Yeah overlay type can be inherited but there is not much u can do with that.Plus the methods beeing all finals one cant override them. Not really flexible imho*. 1) overlay types CAN be inherited, but I agre that is very unconfortable for end GWT/Java users to do this... this is a very important issue in my project I think... 2) I very liked your question: do you want YUI users to use Java or do you want to bring Java Devs to YUI ? and it is making me reflect a lot. thanks. While a zero overhead API gives you the ability to easely write YUI code in java soon you will get users request like Why cant i extends class X to add my own functions. Overlay types dont give you. We had this problems while implementing our libraries. We started first with 1:1 match of the JS API. Until our users start complaining about the API not beeing extensible. What you would expect when using an OO language like Java. Well, but tell me, do you write a second Java API, with real java classes that wrapp the Js objects ? and if so, do you use your previous 1:1 Java API for writing the this second more-java-confortable API? (I sould do that) and if so, do you use some Java code generator tool for artificial create the second Java API form the first 1:1 - overlays Java API ? can this be mechanized at all? I'm questioning my self these kind of things for my project YUIGWT. YUI has a very big API, and unlike other libraries it contains utils for doing a more structured - object oriented javascript like
Re: GWT Maps V3 Api, clearing directions
On Tue, Sep 18, 2012 at 12:32 AM, Deepak Singh deepaksingh...@gmail.comwrote: As far as, I know there has to be a unique for using google maps. Where would i place my unique key? I have a limited requirement to find near about places using LatLong, will it be enough to use just Basic map widget class? Regards Deepak On Wed, Sep 5, 2012 at 12:00 AM, Jonas sark...@gmail.com wrote: Hi Deepak, Here is a show case of different features from the library: http://gonevertical-apis.appspot.com/ You can find the source code here: https://github.com/branflake2267/GWT-Maps-V3-Api/tree/master/Apis_Maps_Test/src/com/google/gwt/maps/testing/client/maps Regarding clearing the directions, Brandon has already fixed it. -- Deepak Singh -- Deepak Singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Very Big JS
Hi I have a big application that is generating a 3 MB JS. Is there a way to divide this JS in multiple modules so they can be loaded if needed? Regards, Néstor Boscán -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Very Big JS
See https://developers.google.com/web-toolkit/doc/latest/DevGuideCodeSplitting Paul On 18/09/12 13:37, Néstor Boscán wrote: Hi I have a big application that is generating a 3 MB JS. Is there a way to divide this JS in multiple modules so they can be loaded if needed? Regards, Néstor Boscán -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Will PopupPanel.hide() clear the memory it used?
java.lang.OutofMemoryError: Java heap space Are you referring to an error while running in DevMode? You should not get a heap space error when running JS code in the client browser. You said this is a weblogic error, so you likely have a leak not in your DevMode/GWT code, but in your backend code that is feeding this panel. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/SGteRYHGxdcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Maps V3 Api, clearing directions
This is the V3 Maps API. The V3 does not use API keys like V2 does. Because you download the JS from Google, and it has to start on your site (where it can detect the URL), they track the API usage that way. So, you should be able to just use the example in the Showcasehttp://gonevertical-apis.appspot.com/ (2nd example) to fetch your directions Sincerely, Joseph On Tuesday, September 18, 2012 8:22:54 AM UTC-4, Deepak Singh wrote: On Tue, Sep 18, 2012 at 12:32 AM, Deepak Singh deepaks...@gmail.comjavascript: wrote: As far as, I know there has to be a unique for using google maps. Where would i place my unique key? I have a limited requirement to find near about places using LatLong, will it be enough to use just Basic map widget class? Regards Deepak On Wed, Sep 5, 2012 at 12:00 AM, Jonas sar...@gmail.com javascript:wrote: Hi Deepak, Here is a show case of different features from the library: http://gonevertical-apis.appspot.com/ You can find the source code here: https://github.com/branflake2267/GWT-Maps-V3-Api/tree/master/Apis_Maps_Test/src/com/google/gwt/maps/testing/client/maps Regarding clearing the directions, Brandon has already fixed it. -- Deepak Singh -- Deepak Singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/AF5M6ncmglYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Pager on or off
Is it possible to make one pager on or off depending on search results in DataGrid? I have one requirement. Pager must be used if the number of search records is over 200 and it cannot be used if the number is below 200. Thanks, James -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/AJBkx_sWnwUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
SimpleHtmlSanitizer is too much simple, where can I find a complete one?
Dear all I want to save RichTextArea content into database, and it will show in HTML widgets later. Before save, RichTextArea.getHtml() will return HTML String, I have to Sanitize this String by SimpleHtmlSanitizer. But it is too much simple, even u br are not supported, where can I find a complete one? Btw, Is there any best practice for RichTextArea? there is no standard ToolBar, no devGuide for RichTextArea. What is the target behavior when you paste something from Ms word or OpenOffice or other HTML page? Seems HTML Tags and css will pasted, but javascript will not be pasted. But I don't know whether it will be changed in future. Also, why RichTextArea doesn't provide some method like getSafeHtml()? -- Gong Min gongmin...@gmail.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Will PopupPanel.hide() clear the memory it used?
Not devMode, but in production mode. Each time the user press filter button, a GWT-RPC is called, at first I think this is related to the popuppanel does not release memory. On Tuesday, September 18, 2012 9:13:18 PM UTC+8, Joseph Lust wrote: java.lang.OutofMemoryError: Java heap space Are you referring to an error while running in DevMode? You should not get a heap space error when running JS code in the client browser. You said this is a weblogic error, so you likely have a leak not in your DevMode/GWT code, but in your backend code that is feeding this panel. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/aMoBRIfQc2sJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
JSNI file is calling DOM.dispatchEvent(..)
May i know which jsni files that calling DOM.dispatchEvent(..) whenever event is trigger from browser? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/fiozh1Euy1QJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Will PopupPanel.hide() clear the memory it used?
All code in your GWT app's client package will be run by the users web server and not your WebLogic app server. If your WebLogic app server throws an OutOfMemory exception then you have an issue in your GWT-RPC method implementation and not in the PopupPanel. -- J -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/VB7OzYIdb2AJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JSNI file is calling DOM.dispatchEvent(..)
The DOM class is used to bridge the various gaps between browsers - the dispatchEvent method, as you've noted, is invoked by the specific implementation in use at a given time. These browser-specific implementations live in the com.google.gwt.user.client.impl package: *DOMImpl **DOMImplStandard ***DOMImplMozilla ***DOMImplOpera ***DOMImplStandardBase DOMImplIE9 DOMImplWebkit **DOMImplTrident ***DOMImplIE6 ***DOMImplIE8 DOMImpl doesn't ever call dispatchEvent, but DOMImplStandard calls both it and its partner previewEvent *as part of* callbacks in the initEventSystem() jsni method. This callback is kept in the static field DOMImplStandard.dispatchEvent, and is later wired directly into dom elements (in the various sinkEvents calls), and so can be invoked by the browser when the user interacts with the page. In the same way, DOMImplTrident.initEventSystem also has references to this method, by wiring them up to the browser's own callbacks. Other classes typical watch or modify the callback in the dispatchEvent static field, the reference to the underlying JavaScript function. On Tuesday, September 18, 2012 9:49:21 AM UTC-5, Luke wrote: May i know which jsni files that calling DOM.dispatchEvent(..) whenever event is trigger from browser? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/v0AdlbeE7K0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SimpleHtmlSanitizer is too much simple, where can I find a complete one?
supported, where can I find a complete one? Why not make one yourself? The one in GWT is just an example... (I made one myself based on the GWT one). Op dinsdag 18 september 2012 16:01:45 UTC+2 schreef 退5的工科苹岷 het volgende: Dear all I want to save RichTextArea content into database, and it will show in HTML widgets later. Before save, RichTextArea.getHtml() will return HTML String, I have to Sanitize this String by SimpleHtmlSanitizer. But it is too much simple, even u br are not supported, where can I find a complete one? Btw, Is there any best practice for RichTextArea? there is no standard ToolBar, no devGuide for RichTextArea. What is the target behavior when you paste something from Ms word or OpenOffice or other HTML page? Seems HTML Tags and css will pasted, but javascript will not be pasted. But I don't know whether it will be changed in future. Also, why RichTextArea doesn't provide some method like getSafeHtml()? -- Gong Min gongm...@gmail.com javascript: -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ZE-UhDZyPPQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
DockLayoutPanel/SimpleLayoutPanel - Css padding
Hello, i have the problem that the css padding is not working for me, the margin and background-color does. Here a simple example to show the problem. Has anybody an idea where the problem is? Thx a lot Marco .test { margin: 4px; padding: 20px; background-color: Lime; } public class GwtTest implements EntryPoint { private LayoutPanel layoutPanel; private Button btnNewButton; private Button btnNewButton_1; private SimpleLayoutPanel simpleLayoutPanel; private SimpleLayoutPanel simpleLayoutPanel_1; private HorizontalPanel horizontalPanel; private Button btnNewButton_2; private Button btnNewButton_3; /** * This is the entry point method. */ public void onModuleLoad() { RootLayoutPanel rootLayoutPanel = RootLayoutPanel.get(); DockLayoutPanel dockLayoutPanel = new DockLayoutPanel(Unit.PX); rootLayoutPanel.add(dockLayoutPanel); dockLayoutPanel.addNorth(getSimpleLayoutPanel(), 40.0); dockLayoutPanel.add(getSimpleLayoutPanel_1()); } private LayoutPanel getLayoutPanel() { if (layoutPanel == null) { layoutPanel = new LayoutPanel(); layoutPanel.add(getBtnNewButton()); layoutPanel.setWidgetLeftWidth(getBtnNewButton(), 0.0, Unit.PX, 81.0, Unit.PX); layoutPanel.setWidgetTopHeight(getBtnNewButton(), 0.0, Unit.PX, 28.0, Unit.PX); layoutPanel.add(getBtnNewButton_1()); layoutPanel.setWidgetLeftWidth(getBtnNewButton_1(), 88.0, Unit.PX, 81.0, Unit.PX); layoutPanel.setWidgetTopHeight(getBtnNewButton_1(), 0.0, Unit.PX, 28.0, Unit.PX); } return layoutPanel; } private Button getBtnNewButton() { if (btnNewButton == null) { btnNewButton = new Button(New button); } return btnNewButton; } private Button getBtnNewButton_1() { if (btnNewButton_1 == null) { btnNewButton_1 = new Button(New button); } return btnNewButton_1; } private SimpleLayoutPanel getSimpleLayoutPanel() { if (simpleLayoutPanel == null) { simpleLayoutPanel = new SimpleLayoutPanel(); simpleLayoutPanel.setStyleName(test); simpleLayoutPanel.setWidget(getLayoutPanel()); } return simpleLayoutPanel; } private SimpleLayoutPanel getSimpleLayoutPanel_1() { if (simpleLayoutPanel_1 == null) { simpleLayoutPanel_1 = new SimpleLayoutPanel(); simpleLayoutPanel_1.setStyleName(test); simpleLayoutPanel_1.setWidget(getHorizontalPanel()); } return simpleLayoutPanel_1; } private HorizontalPanel getHorizontalPanel() { if (horizontalPanel == null) { horizontalPanel = new HorizontalPanel(); horizontalPanel.add(getBtnNewButton_2()); horizontalPanel.add(getBtnNewButton_3()); } return horizontalPanel; } private Button getBtnNewButton_2() { if (btnNewButton_2 == null) { btnNewButton_2 = new Button(New button); } return btnNewButton_2; } private Button getBtnNewButton_3() { if (btnNewButton_3 == null) { btnNewButton_3 = new Button(New button); } return btnNewButton_3; } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/AkJ8mnhEffMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DockLayoutPanel/SimpleLayoutPanel - Css padding
SimpleLayoutPanel stretches its child to fill the whole area. It does so by using absolute positioning with top, left, bottom, right: 0px (see SimpleLayoutPanel.setWidget() source code). Thats why your padding does not have any effect. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/BKMq49V8Xg0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Validating RPC Serialization at Compile Time?
Just wanted to add: It seems this annotation already exists to an extent: http://docs.guava-libraries.googlecode.com/git-history/release/javadoc/index.html http://docs.guava-libraries.googlecode.com/git-history/release/javadoc/com/google/common/annotations/GwtCompatible.html http://docs.guava-libraries.googlecode.com/git-history/release/javadoc/com/google/common/annotations/GwtIncompatible.html On Saturday, September 15, 2012 4:34:48 PM UTC+2, RyanZA wrote: Better way to handle this would be great.. Obvious response to this is have unit tests to check if gwt-rpc works for each class. This gives a problem in complex object graphs with multiple descendants where some are meant to be used over gwt-rpc and some aren't, etc. Having the compiler check every RPC async interface also isn't the right answer because of inheritance and other issues. We should really have an annotation, something like '@GWT-Entity' perhaps, that could be tagged onto a class to mark it for use in GWT-RPC and would be validated by the compiler to make sure it is usable over gwt-rpc. It can be fully optional too, so classes without @GWT-Entity could still be serialized but generate a warning to tell the user the class hasn't been marked. So then it would be fully backwards compatible. On Friday, September 14, 2012 5:06:16 PM UTC+2, Joseph Lust wrote: A number of times we've run into serialization exceptions with GWT-RPC. Of course following the serialization policies for GWT-RPC to the letter can prevent this, but not all of our devs are keen on these. Since the compiler sees every RPC async interface, and is compiling those objects passed via the interface, is it possible to detect RPC serialization issues at compile time rather than runtime when it is first used? Seems like the compiler should be able to do this but I've not been able to find a setting for it. That would save folks time and make using GWT-RPC less error prone. Heck, adding it to the GWT Eclipse Plugin for automated error checking would be even more useful. Thanks for any tips or tricks you may be able to provide. :) Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/PC5bivTpFKUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: printing problem: when I print content of my iframe (I use gwt-print-it) all what is left on the right side of printable page is cut off and stays not printed at all
Are you using @media css? http://www.w3.org/TR/CSS2/page.html#page-selectors On Mon, Sep 17, 2012 at 12:29 PM, Jan Przybylo jan.przyb...@gmail.comwrote: I print big form that has fixed dimensions. If I'd use Letter parer size it should fit in 4 pages (2 pages wide and 2 pages high). I already started using PrintIt class (gwt-print-it) and it solves most basic problems for me. But when I try to print whole big form it only prints top left as the 1st page and top bottom as the 2nd page leaving the right side not printed. Does anyone know proper way of printing wide big pages? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Nbf7cUYFL2cJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: printing problem: when I print content of my iframe (I use gwt-print-it) all what is left on the right side of printable page is cut off and stays not printed at all
no, I don't want to print double-sided document. let me explain it: imagine you have empty page with just one big image inside 'body' element: body img src=... style=width: 3000px; height: 2200px; / /body lets say it looks like this: http://why.net.pl/tmp/0.png and you want to print WHOLE image. So you'd expect your printer to print something like this: http://why.net.pl/tmp/1_.png but instead of this I'm getting something like this printed: http://why.net.pl/tmp/2_.png so it's not whole image. of course my problem is not about image but very big HTML form that has fixed width and height. This form cannot be resized. Fields on this form cannot be positioned differently, they are positioned with absolute positioning and they have to stay in their places. So my question is: what do I have to do in order to print wide elements that won't fit in one page (when it comes to element's width)? as I previously mentioned I already use gwt-print-it. W dniu wtorek, 18 września 2012 16:36:45 UTC-4 użytkownik jchimene napisał: Are you using @media css? http://www.w3.org/TR/CSS2/page.html#page-selectors On Mon, Sep 17, 2012 at 12:29 PM, Jan Przybylo jan.pr...@gmail.comjavascript: wrote: I print big form that has fixed dimensions. If I'd use Letter parer size it should fit in 4 pages (2 pages wide and 2 pages high). I already started using PrintIt class (gwt-print-it) and it solves most basic problems for me. But when I try to print whole big form it only prints top left as the 1st page and top bottom as the 2nd page leaving the right side not printed. Does anyone know proper way of printing wide big pages? -- -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/O6LWSBf8EE0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SimpleHtmlSanitizer is too much simple, where can I find a complete one?
I copied it and added all the tags I need. :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/IyR9vXDFWCkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Maps V3 Api, clearing directions
This should be resolved, but if it isn't let me know. :) On Friday, August 31, 2012 4:47:02 AM UTC-7, Jonas wrote: I'm using the GWT Maps V3 Api from https://github.com/branflake2267/GWT-Maps-V3-Api After finding directions on the map, I'm trying to clear the previous ones before finding new. In DirectionsRenderer: /** * This method specifies the map on which directions will be rendered. Pass null to remove the directions from the map. * @param mapWidget */ public final void setMap(MapWidget mapWidget) { setMapImpl(mapWidget.getJso()); } private final native void setMapImpl(MapImpl map) /*-{ this.setMap(map); }-*/; I'm trying to pass: directionsDisplay.setMap(null); which results in NPE: Caused by: java.lang.NullPointerException: null at com.google.gwt.maps.client.services.DirectionsRenderer$.setMap$(DirectionsRenderer.java:50) Anyone used this API and knows how to clear directions from the map widget? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/LLlCCBycutkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Maps V3 Api, clearing directions
Are you looking for the PlaceServiceSearchRequest? If so, I added and example map in the live demo maps. https://github.com/branflake2267/GWT-Maps-V3-Api/blob/master/Apis_Maps_Test/src/com/google/gwt/maps/testing/client/maps/PlaceSearchMapWidget.java#L40 Brandon On Tuesday, September 4, 2012 7:16:38 AM UTC-7, Deepak Singh wrote: I want to use this library. I have lattitude and longitude with me and i need to show the location on the map. Also, need to find the nearest locations based on lattitue/longitude. I went through the docs but could not understand the right class to be used. Can you give me some sample code ? Thanks Deepak On Fri, Aug 31, 2012 at 6:52 PM, Thai Ha Duong duong...@gmail.comjavascript: wrote: I have the same question please any one can help? On Friday, 31 August 2012 12:47:02 UTC+1, Jonas wrote: I'm using the GWT Maps V3 Api from https://github.com/** branflake2267/GWT-Maps-V3-Apihttps://github.com/branflake2267/GWT-Maps-V3-Api After finding directions on the map, I'm trying to clear the previous ones before finding new. In DirectionsRenderer: /** * This method specifies the map on which directions will be rendered. Pass null to remove the directions from the map. * @param mapWidget */ public final void setMap(MapWidget mapWidget) { setMapImpl(mapWidget.getJso())**; } private final native void setMapImpl(MapImpl map) /*-{ this.setMap(map); }-*/; I'm trying to pass: directionsDisplay.setMap(null)**; which results in NPE: Caused by: java.lang.**NullPointerException: null at com.google.gwt.maps.client.**services.DirectionsRenderer$.** setMap$(DirectionsRenderer.**java:50) Anyone used this API and knows how to clear directions from the map widget? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/emLbrk1GnloJ. To post to this group, send email to google-we...@googlegroups.comjavascript: . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com javascript:. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Deepak Singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/r8sXg55osSoJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: [gwt-contrib] Re: In the Chrome plugin, rename src to java for compatibility with (issue1834803)
On Tuesday, September 18, 2012 7:43:25 AM UTC+2, Brian Slesinsky wrote: On Mon, Sep 17, 2012 at 10:37 PM, Stephen Haberman stephen@gmail.com javascript: wrote: nor do we want to divide up the open source build into that many jars. I dunno, I assumed we were headed towards 1 module == 1 jar, but would defer to others/Thomas since he's been working on it. At least Ray has expressed his willingness that we go that far. Well, that's just an assumption - I don't really know what the plan is. Maybe it's easier with Maven? It requires (well, it doesn't strictly *require* it actually) moving files around (one subdir per JAR to be built, with its own src/main/java and src/test/java) but dependency management is much easier (similar to BUILD: you declare dependency on an artifact/JAR and bam, you have it in your buildpath/classpath; and the build can trigger cascading rebuilds of dependent modules) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] submit chrome dev mode plugin to chrome web store?
Where do we actually store all the files for a new build on svn? -Daniel Am 17.09.2012 um 18:28 schrieb Brian Slesinsky skybr...@google.com: Yep, back on the Chrome plugin this week. On Mon, Sep 17, 2012 at 9:26 AM, Rajeev Dayal rda...@google.com wrote: +[skybrian] Ok, so it looks like we'll have to go ahead and rebuild the crx on our side. I've added Brian, who has been playing around with the crx build process. On Wed, Sep 12, 2012 at 7:33 PM, Daniel Kurka kurka.dan...@gmail.com wrote: Hi Rajeev, I just gave it a try and it seems that we need to do some actual changes to make this work. The chrome web store is complaining about the manifest version of the plugin: An error occurred: Manifest version 1 is unsupported. Please upgrade to manifest version 2. I will give this another look tomorrow. It`s getting too late in Germany right now. -Daniel Am 13.09.2012 um 01:09 schrieb Rajeev Dayal rda...@google.com: Sorry, this totally fell off the plate. Daniel, would you be able to submit it to the Chrome Webstore? On Wed, Sep 12, 2012 at 7:07 PM, Daniel Kurka kurka.dan...@gmail.com wrote: Hi Rajeev, what is the status here? Can I help? -Daniel Am 19.08.2012 um 17:10 schrieb Robert Hanson iamroberthan...@gmail.com: @Rajeev, you mentioned that you were going to post the plugin to the Chrome store. Is that still the plan, or did you run into some issues there? I'm working on some documentation that is about to go to press, and just want to make sure I have the right instructions in there. Thanks. Rob On Tue, Aug 7, 2012 at 11:39 AM, Rajeev Dayal rda...@google.com wrote: Hey Daniel, We do need to post the chrome devmode plugin to the webstore. I'll take care of that this week. I also need to rebuild the devmode plugin, as there were some fixes that went into it a while back that were never put into a distributable binary. Rajeev On Mon, Aug 6, 2012 at 6:53 PM, Istvan Soos is...@google.com wrote: Hi, A quick fix that might help: 1. right click on the chrome iconPropertiesShortcut 2. add in target: --enable-easy-off-store-extension-install 3. open chrome and navitage to extensions ( chrome://chrome/extensions/ ) 4. drag and drop on it the plugin (should be in your download folder if you tried to install it before and didn't succeed) Regards, Istvan On Mon, Aug 6, 2012 at 12:44 PM, Daniel Kurka kurka.dan...@gmail.com wrote: Hi everyone, today at work I was setting up a GWT installation on windows for a new coworker and noticed that with chrome 21 we can not install extension anymore. (They need to be in the chrome web store). I also noticed an issue popping up on the issue tracker on the exact same thing: http://code.google.com/p/google-web-toolkit/issues/detail?id=7569 Does anyone have this covered or are we just hearing about this change to chrome right now? -Daniel -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: In the Chrome plugin, rename src to java for compatibility with (issue1834803)
On Tue, Sep 18, 2012 at 3:30 AM, Ray Cromwell cromwell...@google.comwrote: I favor splitting things up into reasonable chunks that have coherence. e.g. Logging, RPC, RequestFactory, Editors, UI Widgets, ClientBundle, Core, Events, Dom, etc. For example, I should be able to get away with consuming Core + Logging (in reality, I probably can't because of the Widget based debug panel), or Core + Logging + Dom + Events (pure DOM based app, no Widget framework, no RPC, etc) One reason for doing this is faster builds. The fewer classpath entries, the better. Secondly, I think it gives people a better idea of what you're using. IMHO, inheriting User.gwt.xml is the GWT equivalent of import com.google.gwt.user.client.ui.*, it's a star import. We can still have a uberjar gwt-user module, but other people can start have fewer dependencies if they want. Plus, when hacking on GWT itself, if I modify say, ClientBundle, I don't end up rebuilding everything if my app doesn't depend on it. The only caveat there is if you break it up into smaller chunks you can't have circular dependencies between the chunks. I think that means that some things will have to get promoted to core that otherwise wouldn't, unless some effort is made at refactoring things (which might be a breaking change). -- John A. Tamplin -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] submit chrome dev mode plugin to chrome web store?
On Tue, Sep 18, 2012 at 12:40 PM, Daniel Kurka kurka.dan...@gmail.comwrote: Where do we actually store all the files for a new build on svn? If you mean the libraries, they are in the /plugin-sdks directory (a sibling to /trunk). They are add-only, like /tools, and separate since few people should need to build the plugins. -- John A. Tamplin -- http://groups.google.com/group/Google-Web-Toolkit-Contributors