Re: Question about one detail from StockWatcher sample.
Yes, M. Eduard is right. The compiler put a field in inner class. So even if the local variable of outer method expires, the inner class still holds the value. To make the outer local variable consistent with inner class field, it uses 'final' key word for outer method's variable. -- You received 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.
ValueListBox, RequestFactory and EntityProxyKeyProvider
Hi, I'm trying to get a ValueListBox working with RequestFactory, but unfortunately I'm stuck. I am able to fill the ValueListBox with the appropriate values and to successfully retrieve the selected value in the ValueListBox, but I can't figure out how to make the correct choice of the ValueListBox selected. In my application I have two proxies: PlayerProxy and a TeamProxy. A Player always belong to one Team. Because there are only a few Teams, I want to be able to select a team from a ValueListBox while editing a Player. The relevant code parts: - PlayerEdit.ui.xml g:ValueListBox ui:field=teamSelect / - PlayerEdit.java @UiField(provided = true) ValueListBoxTeamProxy teamSelect = new ValueListBoxTeamProxy(new ProxyRendererTeamProxy(null) { @Override public String render(TeamProxy team) { return team == null ? : team.getName(); } }, new EntityProxyKeyProviderTeamProxy()); . - Code to fill the ValueListBox with AcceptableValues: teamRequest.get().findAll().fire(new ReceiverListTeamProxy() { @Override public void onSuccess(ListTeamProxy teams) { teamSelect.setAcceptableValues(teams); } }); - Code to set the selected value of the ValueListBox: view.getTeamSelect().setValue(currentPlayer.getTeam()); As mentioned before, the ValueListBox gets populated with the names of the teams, but when a Player already has a Team assigned, the PlayerDetail view never shows the correct team selected. I'm also not sure what the paths argument of the ProxyRenderer does. What is this argument for? Can anybody help me out? 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-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.
access to my ubuntu in office
guys hi, I want to access to my ubuntu in office form my home with windows xp how can i see my desktop there please. i now my IP and everything. can you please send and email to d.po...@gmail.com please. Cheers, Dave -- You received 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.
One type for all
Hi, The last two years I have worked with GWT and other technologies (REST, JPA, Validation (JSR 303 )). In all projects that I developed I found always a commom problem. The compatibility of the data. For example, If I use some annotatons in the Entity to allow the REST functions I can´t instantiate these Entity in the client side of GWT (problems with the compiling to JS), or I found problems to transport the object to the database in an automatic way, or if I use JSON to transport the data I must create extra class to manage the native information, or if i use a commom mechanism to transport it (RPC) the work becomes very heavy I don´t know if I have explained enough well, but, the question is, what do you do to avoid these problems?? There is a commom way that we can follow?? Any suggestion or comment are welcome. Thank you so much. Adolfo. -- 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: ValueListBox, RequestFactory and EntityProxyKeyProvider
Because PlayerProxy#getTeam() holds a reference to another proxy (TeamProxy), and PlayerProxy is an EntityProxy, you have to explicitly request the team property when retrieving the player from the server. Are you correctly using a .with(team) in your request? Otherwise, getTeam() will simply return 'null', which could explain the behavior you're experiencing. See http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships ProxyRenderer#getPaths() helps in populating the .with() of your requests: when requesting your teams, you don't have to know which properties are used by the ProxyRenderer, you simply ask it, because the ProxyRenderer knows what it needs: getAllTeams().with(myTeamProxyRenderer.getPaths()).fire(...). That way, when you change the way you render your teams and need more or less properties, you don't have to update your requests everywhere: simply update the return value of getPaths() and, provided you always use .with(x.getPaths()) everywhere, it will just work. -- 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/-/6lcNO8QoYNAJ. 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: One type for all
This is (partly) what RequestFactory tries to solve (vs. GWT-RPC): you no longer use your server-side classes on the client-side, so you don't have the issues of your entities having to be translatable by the GWT compiler. If you work with JSON (using things like Jackson or GSON on the server-side), you can use AutoBeans on the client-side (you can also use them on the server-side, btw) to easily parse and manipulate the objects (at least a bit more easily than with JsonUtils.safeEval() and JS Overlay Types). But if you only add annotations to your classes, there's no reason you couldn't use them on the client-side too; you just have to make sure you have the source code for the annotations on the classpath too. Just a suggestion; AutoBean and RequestFactory are not a silver-bullet, and JSOs and GWT-RPC are still viable choices (FYI, Google Groups uses GWT-RPC). -- 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/-/0UmyquSlTucJ. 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.
SplitLayoutPanel dragger style
From UI Binder can you add a style to override the dragger of a split layout panel? -- You received 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.
Contact importer
Hello Any one can help us on suggesting a contact importer service from various providers like gmail, yahoo etc? We need it as a feature for our non profit 'Sakshum' http://www.sakshum.org based in india working in the field of child disability and education Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Insert HTML5 player in GWT
According to me the Video widget supports everything a normal video tag supports (and what that supports isn't defined but depends from the browser). You can also try : http://code.google.com/p/gwt-html5-video/ but according to me you should just use the Video widget. On 9 dec, 10:15, Frank frank.wyna...@gmail.com wrote: Why don't you just use the Video widget that is supplied with GWT (which is an HTML 5 video player) ? http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl... On Dec 8, 9:20 pm, IHateSoda mguillaum...@gmail.com wrote: Hello, I would like to play videos in my GWT application, so I want to use HTML5 player. I don't know how integrate in my application. I put the video tag in a HTML widget and javascript files in my main HTML page. But I can't call javascript function in my gwt code. I see the player but nothing happens because the communication between my HTML object and javascript doesn't work. I need some help. Code onModuleLoad: HTML video = new HTML(video id='player1' width='350' height='240' src='myvideo' autoplay='true' type='' controls='controls' / video); HTML page : script type=text/javascript language=javascript src=jquery.js/ script script type=text/javascript language=javascript src=mediaelement.min.js/script script type=text/javascript language=javascript src=mediaelementplayer.min.js/script script type=text/javascript language=javascript src=mediaelement- and-player.min.js/script script type=text/javascript language=javascript src=testjs.js/ script In my testjs.js : function displayPlayer() { $('audio,video').mediaelementplayer({ success: function(player, node) { $('#' + node.id + '-mode').html('mode: ' + player.pluginType); player.addEventListener('canplay', function() {player.setCurrentTime(2); player.play(); } ); } }); } How can I call this function to play my video ? Best. -- You received 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.
What's the best way to use the new Javascript Client Library API in GWT
All, Google recently announced this: http://googlecode.blogspot.com/2011/11/javascript-client-library-for-google.html?m=1 I'd like to know what the best way is to use this library in combination with GWT without writing wrappers (since that feels like a work-around). Really looking forward to your answers. Rokesh -- 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/-/kOB_7L4f864J. 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 server push
If you are using appengine you can try with the Channel Api http://code.google.com/appengine/docs/java/channel/ -- 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/-/prz7oTOCIvIJ. 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: eclipse - imported maven gwt project
What are the errors showed in Problems View? 2011/12/9 András Csányi sayusi.a...@gmail.com Dear All, I imported my maven project to Eclipse and everything became red. After a few hours long struggling and investigating I can see that Eclipse is not able to deal with dependencies between the particular maven modules. I recompiled, re-installed every maven module and I refreshed every maven module in eclipse but everything is still red. What should I do more? I'm a little bit lost. I've already re-started my Eclipse a few times without any vein. To be honest, I would like to avoid that I have to rebuild my whole project from scratch because Eclipse doing something wrong. I'm appreciating your kind help! András -- - - -- Csanyi Andras (Sayusi Ando) -- http://sayusi.hu -- http://facebook.com/andras.csanyi -- Trust in God and keep your gunpowder dry! - Cromwell -- You received 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: problem with getting height of widget
Thanks! Just tried, sounded like a great idea, but it doesn't work unfortunately. It's really as if the widgets I add inside the panel are rendered/added after. Really strange... On Dec 9, 9:19 pm, Jens jens.nehlme...@gmail.com wrote: You can use popupPanel.setPopupPositionAndShow(new PositionCallback() { public void setPosition(int offsetWidth, int offsetHeight) { //do your calculations. Offset sizes shouldn't be 0 here } }); -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: problem with getting height of widget
Try the following: Scheduler.get().scheduleDeferred(new ScheduledCommand() { @Override public void execute() { // Try to get the size here ... } }); Regards, Alfredo On Sat, Dec 10, 2011 at 4:14 PM, Thomas Lefort lefortho...@gmail.comwrote: Thanks! Just tried, sounded like a great idea, but it doesn't work unfortunately. It's really as if the widgets I add inside the panel are rendered/added after. Really strange... On Dec 9, 9:19 pm, Jens jens.nehlme...@gmail.com wrote: You can use popupPanel.setPopupPositionAndShow(new PositionCallback() { public void setPosition(int offsetWidth, int offsetHeight) { //do your calculations. Offset sizes shouldn't be 0 here } }); -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received 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: Making Application Add-On ready?
Hi, a while ago I created something like this. Now I created a project @googlecode: http://code.google.com/p/gwt-plug/ You can find a very basic example in the repository. The javadoc should help you too. But currently there are some limitations: - Classes can only implement one exportable interface (or only one of them is really exported) - you can't define multiple methods with the same name in one interface because javascript doesn't support method overloading (as far as I know). But I'm working on that point. - You can only use primitive values and JavaScriptObjects as method parameters and return values. That's because: 1. It's not possible in hosted mode to attach java objects to javascript objects 2. In production mode the GWT compiler transformed your code and the classes are probably not equivalent in two compiled GWT applications - I'm thinking about it. Probably it's possible to serialize the java objects. But that's not my main focus. I hope that helps you. If you have further questions, ask them :) -- 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/-/auhCep2-G54J. 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: access to my ubuntu in office
I'm using 'putty' program. it'll let's you connect to your remote system with ssh protocol. you should know about ssh. try googling~!! On Sat, Dec 10, 2011 at 9:06 PM, Poreh d.po...@gmail.com wrote: guys hi, I want to access to my ubuntu in office form my home with windows xp how can i see my desktop there please. i now my IP and everything. can you please send and email to d.po...@gmail.com please. Cheers, Dave -- You received 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: Anyone knows GWT Multipage Framework?
On 12/10/2011 4:09 AM, Jens wrote: A first simple solution would be to configure your web server to redirect requests from http://mysite.com/ to http://mysite.com/index.html. -- 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/-/5whEQI1yL_QJ. 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. Yes, that's what I did. Using url rewrite filter. -- You received 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.
404 error in production server
My GWT app works fine in hosted mode but I get 404 error in tomcat production server. I'm hosting the app in a remote server so I don't have the access to server log. Annotation used in service class: @RemoteServiceRelativePath(servlet/dash) web.xml configuration: servlet servlet-nameserve/servlet-name servlet-classcom.mukundPackaging.server.DashBoardServiceImpl/ servlet-class /servlet servlet-mapping servlet-nameserve/servlet-name url-pattern/com.mukundPackaging.DashBoard/servlet/dash/url- pattern /servlet-mapping the error I get is: 404 not found The requested URL /com.mukundPackaging.DashBoard/servlet/dash was not found on this server. Please help. 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: Fix leak in LayoutImplIE6 (issue1601804)
LGTM, but I think we really need Joel to double-check (well, we also need him to commit the change, so... ;-) ) Also, maybe the overall process and DOM structure should be documented once in the class javadoc, rather than having it scattered in the class? Something like: For the parent layout and for each child layer, we create a create a style ruler used to measure decorations. The ruler is always the first child of its parent so it can be easily accessed without the need for a direct reference (an earlier version stored it in an expando but that creates a memory leak). Then go on briefly describing that there are two elements (in addition to the style ruler) created for each child layer; how resizes are detected and what kind of treatments they trigger, with a small note about what can happen when we're not attached, when we're attached, etc. and how we overcome memory leaks (by creating and clearing the __layer expandos when attached/detached, similar to the DOM.setEventListener and its __listener expando) http://gwt-code-reviews.appspot.com/1601804/diff/13003/user/src/com/google/gwt/layout/client/LayoutImplIE6.java File user/src/com/google/gwt/layout/client/LayoutImplIE6.java (right): http://gwt-code-reviews.appspot.com/1601804/diff/13003/user/src/com/google/gwt/layout/client/LayoutImplIE6.java#newcode41 user/src/com/google/gwt/layout/client/LayoutImplIE6.java:41: * dynamically detects IE7 and punts to the super implementation. I thought you removed that note? http://gwt-code-reviews.appspot.com/1601804/diff/13003/user/src/com/google/gwt/layout/client/LayoutImplIE6.java#newcode69 user/src/com/google/gwt/layout/client/LayoutImplIE6.java:69: * Sets __decoWidth/__decoWidth on {@code element} using its ruler. Should be __decoWidth/__decoHeight http://gwt-code-reviews.appspot.com/1601804/diff/13003/user/src/com/google/gwt/layout/client/LayoutImplIE6.java#newcode114 user/src/com/google/gwt/layout/client/LayoutImplIE6.java:114: private static native void resizeRelativeToParent(Element parent) /*-{ I'm not found of these argument renames: the method's goal is to resize an element relative to its parent, hence resizeRelativeToParent(elem). If you rename elem to parent, the name of the method becomes confusing. Same in LayoutImpl with fillParent(elem): make the given element fill its parent, fillParent(parent) doesn't mean much thing. I understand where you come from (name the argument after the value that will be passed, so we know which element in the small subtrees we're managing we're dealing with), but IMO it's more confusing. If you want to provide such hint to the next developer reading the code, then do it in the javadoc. http://gwt-code-reviews.appspot.com/1601804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Don't allow SafeHtml strings to end in a script or style context. (issue1608803)
On 2011/12/08 18:29:14, jlabanca wrote: LGTM LGTM http://gwt-code-reviews.appspot.com/1608803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors