Re: Using custom servlet for GWT-RPC with GWTTestCase
Hi, I'm learning GWT, trying to set up a Hello World project using Maven, Spring, GWT, Hibernate. I'm trying to add some unit tests. The same problem occurs for me, but I can't manage how to add a servlet element in the .gwt.xml module file. $ mvn gwt:test ... [INFO] Running com.hellogwt.client.GwtTestGreetingService [INFO] Starting http://127.0.1.1:47359/com.hellogwt.HelloGWT.JUnit/junit.html?gwt.codesvr=127.0.1.1:39835 on browser FF17 [INFO] 200 - GET /com.hellogwt.HelloGWT.JUnit/junit.html?gwt.codesvr=127.0.1.1:39835 (127.0.0.1) 2064 bytes [INFO] 200 - GET /com.hellogwt.HelloGWT.JUnit/com.hellogwt.HelloGWT.JUnit.nocache.js (127.0.0.1) 8194 bytes [INFO] 200 - GET /com.hellogwt.HelloGWT.JUnit/com.hellogwt.HelloGWT.JUnit.devmode.js (127.0.0.1) 14986 bytes [INFO] 200 - GET /com.hellogwt.HelloGWT.JUnit/gwt/standard/standard.css (127.0.0.1) 22259 bytes [INFO] Module com.hellogwt.HelloGWT.JUnit has been loaded [INFO] 200 - POST /com.hellogwt.HelloGWT.JUnit/junithost (127.0.0.1) 214 bytes [INFO] [WARN] 404 - POST /com.hellogwt.HelloGWT.JUnit/springGwtServices/greetingService (127.0.0.1) 1426 bytes This is the whole source: https://github.com/eliovir/hellogwt/tree/failed-rpc-gwttestcase Thanks for your help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Using custom servlet for GWT-RPC with GWTTestCase
Merci Thomas (je continue en anglais) ;) I added your line (in a new .gwt.xml file) and added explicitly spring4gwt into the classpath (pom.xml modified). So it's much better. But now, I have to set up a Spring context to run the tests: $ mvn gwt:test [INFO] ... [INFO] Running com.hellogwt.client.GwtTestGreetingService [INFO] Starting http://127.0.1.1:35652/com.hellogwt.HelloGWTJUnit.JUnit/junit.html?gwt.codesvr=127.0.1.1:56252 on browser FF17 [INFO] ... [INFO] Module com.hellogwt.HelloGWTJUnit.JUnit has been loaded [INFO] 200 - POST /com.hellogwt.HelloGWTJUnit.JUnit/junithost (127.0.0.1) 218 bytes [INFO] Starting Jetty on port 0 [INFO][WARN] Exception while dispatching incoming RPC call [INFO] java.lang.IllegalStateException: *No Spring web application context found* [INFO] at org.spring4gwt.server.SpringGwtRemoteServiceServlet.getBean(SpringGwtRemoteServiceServlet.java:92) [INFO] ... But I don't know where... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Using custom servlet for GWT-RPC with GWTTestCase
Thanks for your reply. So, I have to find another way. I saw gwt-test-utils, but it does not work with GWT-2.7. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: moveable areas as in iGoogle?
There's also GQuery its plugin with Droppable Draggable widgets http://code.google.com/p/gwtquery-plugins/ Olivier. Le mercredi 10 avril 2013 12:33:33 UTC+2, Magnus a écrit : Hi, how can one realize such moveable areas, which can be placed with drag drop at predefined positions, such as in iGoogle? Is there a tutorial? Thanks Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
i18n generate keys instead of failing at compilation
We have a internationalized application. The translations are managed by our analyst who maintains an excel sheet. The sheet is used to generate a .propeties file who is then used by 'org.codehaus.mojo:gwt-maven-plugin' to generate Gwt messages. But the maintenance of the excel sheet isn't easy and we frequently have compilation failure due to missing key. So maybe is it a way to generate a file with the missings keys instead of receiving compilation failure ? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/OMO080jX9N8J. 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: Should I use HTML5 canvas just to create my own slideshow reader ?
Hello Transition can easily be done with CSS3 (but also need modern browser), check this project it could give you some ideas :) https://github.com/pyricau/rockslide Olivier. https://github.com/pyricau/rockslide Le vendredi 8 juin 2012 06:29:00 UTC+2, regnoult axel a écrit : Hello, I am trying to develop my own slideshow reader (you just see the albums fotos in the full screen mode and slide them). I started using HTML5 canvas but just because it was more modern but IE8 does not support HTML5 canvas. So my question is : Should I use HTML5 canvas to do my slideshow (I will need a caroussel and animation between images) ? Could you argue your answer (because maybe HTML5 canvas are more interesting to do more complicated things) ? Thanks you, -- 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/-/D21Yjx5_vGsJ. 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: Firefox 12 release
Why don’t people either: – Turn off auto-update in Firefox* if they use it to develop in GWT? I think it’s been proven that the only major thing these releases have is their version number increment, so why the rush to update? – Use Chrome to develop in GWT? I never had a single problem with the GWT plugin since I started development. * I _think_ they finally managed in version 11 to make a mechanism that actually doesn’t still update Firefox behind your back at the first opportunity if you explicitly disabled auto-update, assuming you properly sacrificed a weighted companion cube using an adequate garbage incinerator and the correct ritual. Olivier -- 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.
TextColumn setCellStyleNames
Hi, I have a CellTree that uses a CompositeCell with several columns, and I need to set a class on one of the columns. I tried this and it does strictly nothing, my column is just an bare bones span: TextColumnNode col2 = new TextColumnNode() { @Override public String getValue( Node object ) { return object.getTitle(); } }; col2.setCellStyleNames(pi-Node-locked); Any ideas? Olivier -- 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: Testing app with subdomains in development-mode
I have a GWT application that supports multitenancy by subdomains. I want to be able to test my app in development mode. Did you add your domains to the list of hosts in the GWT Developer Plugin configuration? Olivier -- 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.
Custom cell styling
Hello everybody, I am having a tough time wrapping my mind around CSS resources. I have a subclass of AbstractCell that I want to style depending on its selected state. I found that I can subclass (or rather subinterface) CellList.Resources, define a CSS file with @Source(MyCellListResources.css) and use the .cellListSelectedItem selector in that file. However, when I do this, the cellListSelectedItem becomes obfuscated, so I cannot use it in my main stylesheet linked in the host HTML file, and modifying MyCellListResources.css requires rebuilding the project. That won’t do: styling is done by designers, not programmers; it must not require building the project and modifications should be applied with a simple page refresh. Any hint on how I can achieve this? Regards, Olivier -- 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.
Debugging with Xcode
Hello, Has anyone ever been able to run a GWT project in devmode using Xcode on the Mac and use the debugger? Maybe using Xcode 3 instead of 4? That would really handy. Cheers, Olivier -- 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: ff11 gwt dev plugin
I’m wondering, how long until Mozilla releases new version of Firefox faster than the GWT community can recompile the plugin? On 16 March 2012 14:25, Fabricio Pizzichillo fpizzichi...@gmail.com wrote: Hello Alan. Can you compile the plugin for FF11? 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-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: Is there any way to remove the sort arrow decorator in a header of a CellTable?
Hello Xavier You should take a look at Header class (in com.google.gwt.user.cellview.client package) by extending it you'll have access to the Template in use, maybe you can declare your own or just override render method and inject your code to the SafeHtmlBuilder @Override public void render(Context context, SafeHtmlBuilder sb) { // do what you want with the builder // sb.append(); } Olivier. Le samedi 10 mars 2012 12:35:51 UTC+1, Xavier S. a écrit : Hello Jose, Thanks for your answer! I wasn't aware of the CellTable.Resources classes, it seems to fit my needs. But (there's always a but :) ). The generated html code for that sort arrow is the following : div style=left:0px;margin-top:-4px;position:absolute;top:50%;line-height:0px; img onload=this.__gwtLastUnhandledEvent=quot;loadquot;; src= http://127.0.0.1:/main/clear.cache.gif; style=width: 11px; height: 7px; background: url(data:image/png;base64,SOMEBASE64CODE) no-repeat 0px 0px; border=0 /div And I would like to change it to something like this : div style=left:0px;margin-top:-4px;position:absolute;top: 30%;line-height:0px; i class=icon-arrow-up/i /div So mostly change the img tag by a i one where I can use twitter bootstrap css icons and maybe change the top style arg of the enclosing div. Is there any way to do it with GWT? Thanks again and best regards, Xavier On Saturday, March 10, 2012 6:15:45 AM UTC+1, JoseM wrote: You can control what to show for that with the CellTable Resources. You would have to pass in your own resources to the CellTable constructor that overrides the sort style to display what you want. -- 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/-/QRfhQR0C6Y0J. 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: Creating different frontends in one application
Hi Mark, Maybe one way of doing this is to add a parameter in the URL for your clients. Just one example -- For the first type of users, you ask them to access your site at http://www.yoursite.com?destination=site1 -- For the second type of users, you ask them to access your site at http://www.yoursite.com?destination=site2 In your entry point module, you redirect to a different class according to the parameter. This is the code that should do the trick : String destination = Window.Location.getParameter(destination); if (destination.equals(site1) then { display_web_site1() } if (destination.equals(site2) then { display_web_site2() } There might be (better) ways of doing this but this one should work. Cheers, Olivier On 4 mar, 12:14, Bestmacfly mark.mesc...@googlemail.com wrote: Dear all, I'm creating a booking system using GWT. The backend is nearly completed. I have created one html page with one entry point, in my entry point I'm changing navigation / layout of the page dynamically. Now I need a second frontend, which will be totaly different from the already created backend. This second frontend should be able to use the whole code stuff from my backend (especialy the Requestfactory proxies). As far as I understood, it is not possible to simple create a second entry point in my application and combine this second entry point with a second base html page. So what would be the best approach now to realize this? Best regards Mark -- 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: Design question - Multiple step customer registration process
Hi Alfredo, Thanks a lot for your feedback, it was exactly what I was looking for ! Very much appreciated, Hugues On 3 mar, 06:14, Alfredo Quiroga-Villamil laww...@gmail.com wrote: A view with a Card Layout (DeckLayout) should help you there. You are essentially building a wizard like form at that point. In your wizard-like form, you can activate each view and every time you hit next/back you are updating your wizard model which you can then access upon submit or Finish. Best regards, Alfredo On Fri, Mar 2, 2012 at 12:13 PM, Olivier olivier.true...@gmail.com wrote: Hi Everyone, I have been playing around with GWT / GAE for a few weeks now and really appreciate the functionalities offered. The web application I am building is designed around MVC as explained in the various tutorials. However for one type of process (customer registration form), we have to split the process in three steps. Each step should be rendered on a different screen. That is, -- Step 1 : The customer fills-in some information then pushes on the Next button -- Step 2 : The customer fills-in additional information then pushes on the Next button -- Step 3 : The customer provides the final information then pushes on the Register button These three steps can be easily coded using a different view for each screen and pushing on the Next button generates an event in the event bus. However, coding this way would mean that if the user pushes the back button on the web browser, the information in the form would be lost. Do you have any design pattern to code this kind of multiple step process in GWT ? Thanks a lot for your help, Olivier -- 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.
Design question - Multiple step customer registration process
Hi Everyone, I have been playing around with GWT / GAE for a few weeks now and really appreciate the functionalities offered. The web application I am building is designed around MVC as explained in the various tutorials. However for one type of process (customer registration form), we have to split the process in three steps. Each step should be rendered on a different screen. That is, -- Step 1 : The customer fills-in some information then pushes on the Next button -- Step 2 : The customer fills-in additional information then pushes on the Next button -- Step 3 : The customer provides the final information then pushes on the Register button These three steps can be easily coded using a different view for each screen and pushing on the Next button generates an event in the event bus. However, coding this way would mean that if the user pushes the back button on the web browser, the information in the form would be lost. Do you have any design pattern to code this kind of multiple step process in GWT ? Thanks a lot for your help, Olivier -- 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: FF10, here we go again
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-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.
Styling a custom CellList
Hello everybody, I am having a tough time wrapping my mind around CSS resources. I have a subclass of AbstractCell that I want to style depending on its selected state. I found that I can subclass (or rather subinterface) CellList.Resources, define a CSS file with @Source(MyCellListResources.css) and use the .cellListSelectedItem selector in that file. However, when I do this, the cellListSelectedItem becomes obfuscated, so I cannot use it in my main stylesheet linked in the host HTML file, and modifying MyCellListResources.css requires rebuilding the project. That won’t do: styling is done by designers, not programmers; it must not require building the project and modifications should be applied with a simple page refresh. Any hint on how I can achieve this? Regards, Olivier -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Developer Plugin for Firefox 6
I second that! On 25 août, 16:48, Tony Rah xsegr...@gmail.com wrote: GWT Team, Perhaps it would help if you posted a white paper on how to build the pluggin and then the community could keep up with the new release schedule until the official ones are available. On Aug 25, 7:07 am, JB jul.bram...@gmail.com wrote: Just confirming I applied the patch linked by Thomas above and re- built gwt-dev-plugin.xpi with: BROWSER=ff06; make And the plugin works (tested on Linux-x86). This should make it very soon now! On Aug 24, 12:49 pm, Thomas Broyer t.bro...@gmail.com wrote: I bet it shouldn't be long:http://gwt-code-reviews.appspot.com/1523805/ -- 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.
Overriding panel's iterator() prevents clickHandler from being called.
Hi, I am new to GWT (and not that expert in Java) and I have a problem I haven't been able to solve. Here's my problem: I want to do a panel (say a VerticalPanel) but also want it to have scroll bars. So, what I did was to nest a VerticalPanel in a ScrollPanel and then overrode the latter's iterator() with a call to the former's iterator. Attached is a (relatively) small test code showing the problem: With the overriding iterator() in place, the SelectedItemsListPanel's ClickHandler() doesn't get called. Comment the iterator() out and everything works perfectly. Regards, -- Olivier Diotte -- 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. olivier.java Description: Binary data ItemElement.java Description: Binary data ItemSelector.java Description: Binary data ItemsListPanel.java Description: Binary data SelectedItemElement.java Description: Binary data SelectedItemsListPanel.java Description: Binary data
Overriding panel's iterator() prevents clickHandler from being called.
Hi, I am new to GWT (and not that expert in Java) and I have a problem I haven't been able to solve. Here's my problem: I want to do a panel (say a VerticalPanel) but also want it to have scroll bars. So, what I did was to nest a VerticalPanel in a ScrollPanel and then overrode the latter's iterator() with a call to the former's iterator. Attached is a (relatively) small test code showing the problem: With the overriding iterator() in place, the SelectedItemsListPanel's ClickHandler() doesn't get called. Comment the iterator() out and everything works perfectly. Regards, -- Olivier -- 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. olivier.java Description: Binary data ItemElement.java Description: Binary data ItemSelector.java Description: Binary data ItemsListPanel.java Description: Binary data SelectedItemElement.java Description: Binary data SelectedItemsListPanel.java Description: Binary data
Re: GWT sometimes reinventing the wheels
GWT had to do I18N the way it's done precisely because of the constraints imposed by Javascript compilation and the choices made for optimization, in particular the notion of permutation which requires that every possible combination of browser and target language is compiled separately. Instead of reinventing the wheel, GWT designers chose to build a generic an extensible way to implement this (deferred binding) and use it extensively, including for i18n. So once you get how deferred binding works, you'll see that it's all very consistent. -- Olivier On Jan 11, 10:14 am, Aladdin alaamu...@gmail.com wrote: First I wanna say that I love GWT. But I feel that GWT sometimes reinvent the wheels or try to create new tools that we need to relearn instead of relaying on Java other Java's open source projects. UiBinder and I18N. Java already has a Resource Bundle feature. I think Google is confused about the language, they built GWT on Java because of Java's popularity, but I want to say that is nothing that specially about the syntax, the main important are the libraries. e.g , GWT.log ! why they reinventing logging ! After 10 years experience in Java, I have to relearn how to do I18N !! why ? So my advice to Google, give us Java, i.e , the platform, with current model and the core library. Not the syntax. I rather write in PHP with the same Java library, than write in Java with a new framework ! What you guys think ? -- 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-RPC Portlets Liferay
Hello, There is some resources about GWT-APP management on liferay's forum : http://www.liferay.com/web/guest/community/forums/-/message_boards/message/461945 http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/How+to+build+a+GWT+Portlet+in+Liferay I think that there is a gwt sample with the demo bundle, did you try it ? Maybe you've got some troubles with contextpath (N.B i'm not a Liferay expert...°) Olivier On 2 déc, 15:05, Ani anapont...@gmail.com wrote: Hello, I'm new on portlets and LifeRay world. I have a GWT-RPC ap and i'd like to use it in a portlet, and see it in LifeRay, but when i try to add the portlet, i get the following error: Error: The call failed on the server; see server log for details In localhost.date.log i see: org.apache.catalina.core.StandardHostValve custom FINA: Processing ErrorPage[errorCode=404, location=/errors/404.jsp] Could you help me with this issue? Than you very much in advance por any kind of information you can give me about this, because i was not able to find much, and the one i've found, didn't help me, as i continue getting the same error. Regards, Ana -- 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: vertical alignment inside a FlowPanel
Hi magnus vertical-align works only on inline elements, FlowPanel / SimplePanel (div elements) are 'block' types, i don't know exactly what you're trying to achieve but bottom alignment can be painful sometimes... if you don't care about IE6/7 you can have a try with : #mainContainer{ vertical-align:bottom; display:table-cell; } Olivier. -- 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: Upgrade to 2.1.0m3 failed.
Be sure to delete all generated files (hosted.htmt *.js etc ...). On Tue, Oct 5, 2010 at 4:00 PM, skippy al.leh...@fisglobal.com wrote: I tried upgrading to version 2.1.0m3 to pick up some fixes related to blank/white pages. After the upgrade on our Solaris servers, all my RPC calls are failing when the first page is trying to load. Thoughts? -- 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. -- Computers are useless. They can only give you answers. - Pablo Picasso - -- 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] Serialization white list generation question.
Hi all, Is there a way to build the gwt.rpc files at server start time (dev mode of course). AFAIK the file are generated during the first service call, this is no longer working with WTP 3.2.2. One working solution consist in a custom serialization provider which is waiting until the file is generated, but It will be easier to generate the file at server start. Thanks. -- Computers are useless. They can only give you answers. - Pablo Picasso - -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: Is there a alternative way of debugging under Linux
I'm running my projects under Ubuntu 64-bit (with FF plugin as the plugin for Chrome is not available) as mentioned by Thomas, when needed, i start a VM on Windows to complete tests with IE (for this purpose the -bindAddress parameter could be interesting so as to override default 127.0.0.1 address) Olivier. On 29 sep, 12:30, Thomas Broyer t.bro...@gmail.com wrote: On Sep 29, 9:38 am, Oskar Hannesson osk...@centrum.is wrote: I recently switched from Windows to Linux/Ububtu as my main developer platform and are quite pleased with the change. However I’m having problem running GWT 2.0 apps in debug mode since the lack of the Linux version of GWT Developer plugin for Chrome and Firefox. Well, there's a plugin for Firefox (up to 3.6.x) on Linux (32bit). If you're running 64bit Linux, I've read (in the issue tracker) that you should be able to compile the plugin quite easily (I'm on Windows, but others on the team are developing on Ubuntu too and haven't expressed any issue (yet?)). The only brake points that works are in the server code. Is there any way to debug the client code without the GWT Developer plugin for Chrome/Firefox? Is it perhaps possible to use the old hosted mode browser found in GWT 1.7? If you're ready for such radical options, then maybe you'd find it simpler to run Windows in a virtual machine to run the browser: your DevMode stays on Linux, the browser plugin communicates with the DevMode through the virtual network between the VM and the Linux OS -- 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.0 + maven
hi, Insure that GWT (GEP) container lib is before Maven dependency container. HIH On Mon, Sep 27, 2010 at 11:12 AM, aces2805 ace...@gmail.com wrote: Hi Guys, Need help on configuring maven and GWT 2.0 no idea on how to handle Invalid GWT home, just a newbie in it. 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. -- Computers are useless. They can only give you answers. - Pablo Picasso - -- 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: Expose custom GWT widgets via JavaScript
Maybe gwt-exporter can give you some ideas http://code.google.com/p/gwt-exporter/ http://code.google.com/p/gwtchismes/wiki/Tutorial_ExportingGwtLibrariesToJavascript_en Olivier. On 22 sep, 22:30, gabriel gabriel.day...@gmail.com wrote: I'm looking for a good pattern or example of building custom GWT widgets and then exposing them via a JavaScript api. I've seen a lot of examples on how to wrap JavaScript libraries in GWT but not a lot on the reverse. I have seen the basic examples in the documentation on exposing simple function calls, but I want to expose an entire widget. Any ideas? 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: GWT encoding problem
Hilco gave the right answer, that's a maven log you've got to tell Maven to use UTF-8 during processing (otherwise it will fallback to system encoding : ) : project ... properties project.build.sourceEncodingUTF-8/project.build.sourceEncoding /properties ... /project Olivier. On 21 sep, 16:26, Thomas Van Driessche thomas.van.driessch...@gmail.com wrote: Hi, I have a problem that my values out of my properties files are not well displayed on the page in utf8. This is already done: ?xml version=1.0 encoding=UTF-8? meta http-equiv=content-type content=text/html; charset=UTF-8 And the files in eclipse are saved using UTF-8. I tried to watch the files in the war file (build using maven), but i can't seem to find them back there? Because when i build i get the following warning: [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! Can this be a cause? kind 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: de-mavenize a project
On Sat, Sep 18, 2010 at 12:10 AM, John nesre...@gmail.com wrote: On Fri, Sep 17, 2010 at 11:06 AM, olivier nouguier olivier.nougu...@gmail.com wrote: Or learn maven ;) There are s many interesting things to learn, rails, groovy, python, and on and on. It's hard to justify taking time to learn something that solves problems you don't have. For sure ... but IMHO It really worth to give a try with maven because a mavenized project is very easy to install / try as soon as maven is bootstraped. In your case,you'll just have to unzip the maven binaries adapth your path and try. As some might found this thread OT with GWT, if you want to try and encounter some issues don't hesitate to contact me on my mail directly. Cheers, Olivier More seriously, you can easy de mavenize aproject, but maven will help you: mvn dependency:copy-dependencies will copy all dependencies in a folder target/dependency Then you'll just have to add those lib in your build classpath. mvn eclipse:clean eclipse:eclipse will build for you the .classpath (among others) file to run in eclipse without m2eclipse. I had to re-install the project (but maven was still installed). So Maven didn't install into my Eclipse workspace--I don't know why, but it did not give me that choice. Normally there is a little checkbox (in non-maven imports) to import into Eclipse workspace. Since it stuck everything arbitrarily into my home directory, I found out that maven wasn't in my path, so I couldn't try what you suggested. But thanks, I do appreciate the reply. I guess I could set paths and whatever, to get the the NEXT problem, but it's probably not worth spending more time on it. I'm happy to use the standard GWT fileuploader widget--I was just curious, because GWTUploader does seem like a nice way to do things. John -- 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. -- Computers are useless. They can only give you answers. - Pablo Picasso - -- 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: de-mavenize a project
Or learn maven ;) More seriously, you can easy de mavenize aproject, but maven will help you: - mvn dependency:copy-dependencies will copy all dependencies in a folder target/dependency Then you'll just have to add those lib in your build classpath. - mvn eclipse:clean eclipse:eclipse will build for you the .classpath (among others) file to run in eclipse without m2eclipse. On Fri, Sep 17, 2010 at 4:47 PM, Brad barbedwire...@gmail.com wrote: Just grab the GWTUpload jar and add it to your classpath. On Sep 16, 12:20 pm, John nesre...@gmail.com wrote: A few weeks ago I was interested in GWTUpload, and I wanted to install it on Eclipse. I saw the project maintainer had written: The project has been mavenized,... Well, over the past couple of years, I've seen people rant about how great maven is, and I've gone and looked at it. My eyes glaze over after a few minutes. FOR ME(!) it seems that maven is a lot of extra stuff to solve a problem I don't have. I don't do large complicated projects--I'm totally content to push the little red suitcase with a C on it. I was so motivated to try poking at GWTUpload, I actually installed Maven on my Eclipse, and then installed GWTUpload, but when I saw the huge mess, I just deleted the entire project. Doesn't seem reasonable to go through all the learning curve to solve a problem I don't have. What WOULD be nice though, is if there was a tutorial on how to de-mavenize a specifically GWT project (like GWTUpload), step 1, step 2, step 3. Could it be that easy? Hoping there might be an easy (ie minutes for both comprehending, and doing) way, and that I don't get flamed too much for a dumb question. John -- 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. -- Computers are useless. They can only give you answers. - Pablo Picasso - -- 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] GEP open source status
Hi all, First of all thanks you all Google Inc friend for all GWT ecosystem. I'm studying a plugin to let: - maven via m2eclipse - GWT / GAE via m2eclipse-gdt ( our plugin ). - WTP via m2eclipse-wtp coexist smoothly. I have 2 simple question: - do you plan to support maven in near future ( GEP 1.4 ) or not. - is there some API doc somewhere to find things like GWTNature.addNature() by other way than using eclipse java completion ... Thanks again. -- Computers are useless. They can only give you answers. - Pablo Picasso - -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: Speed-Optimization of an application (RPCs, Architecture)
in a near future if you need to play with command pattern you could find some interesting hints with thoses articles : - Tutorial explaining the basics of gwt-dispatch : http://borglin.net/gwt-project/?page_id=283 - Nice articles about batching with gwt-dispatch (by the M. David Chandler) http://turbomanage.wordpress.com/2010/07/16/dispatchqueue/ http://turbomanage.wordpress.com/2010/07/12/caching-batching-dispatcher-for-gwt-dispatch/ PS it's always good to keep in mind browser's limitation but the limitation of '2 connection /server' tend to move to more ajaxfriendly values with the newest version of FF, IE ... Browser HTTP/1.1HTTP/1.0 IE 6,7 2 4 IE 86 6 Firefox 2 2 8 Firefox 3 6 6 Safari 3,4 4 4 Chrome 1,2 6 ? Chrome 34 4 Opera 9.63,10.00alpha 4 4 source : http://www.stevesouders.com/blog/2008/03/20/roundup-on-parallel-connections/ PS N°2 maybe the user won't hit the 2nd or 3rd tab, you should consider calling RPC only if needed On 1 sep, 14:45, Fabian fabi.gin...@web.de wrote: Hi Tanguy, thank you for your answer. I think for my app it is too late to switch to this kind of using commands and due to that having the chance to batch them. (since i have only a few days to finish it). I will consider it in my next apps. Thanks for telling me, that fewer rpc calls are better than more rpc calls (considering same amount of data), didn't find this information anywhere! I think for my app i will just wait until the first rpc send the data from the server to the first tab, and then start the other rpcs. That should be good enough for my app this time. Greetings, Fabian -- 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: What are some of the most valuable frameworks in your project?
Well i tried mvp4g in late 2009, GWTP and GUIT were not available... only gwt-presenter. So i made proof of concept with both frameworks and i really like the way mvp4g did. Simple configuration, annotation facilities for binding, splitability, nice support... and i like the fact that there is no 1 million concepts and features that i won't use (as I prefer 'raw' GWT than getting into swartGwt and GXT for same reasons) On 30 août, 21:07, Jeff Larsen larse...@gmail.com wrote: Thanks everyone for your responses they've been a huge help. I noticed a lot of people using gwtp and no mention of MVP4G. What made your decision to go with gwtp instead of mvp4g? On Aug 29, 2:14 pm, Ikari igen...@gmail.com wrote: Gin and Guice for dependency injection. GWT-presenter as realization of MVP pattern, GWT-dispatch for client-server communication. So far that's fine. -- 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: Making GWT look good...
Hi Chris, Here's a few that I really like : - ActiveCollab http://www.activecollab.com - WordPress Admin http://wordpress.org - Vaadin widget library http://demo.vaadin.com/sampler Cheers Olivier On 6 Aug 2010, at 14:44, Chris Ramsdale wrote: Hey GWT(ers), I've heard from many of you that GWT apps simply don't look that good out of the box, and styling the default app would go a long way. We couldn't agree more. As some of you know, GWT 2.1 (with the help of Spring Roo 1.1) will generate a full-fledged scaffolding app that users can then go customize, and build on top of. The current incarnation looks like this: http://gwt-bikeshed.appspot.com/Scaffold.html And while it's a start, it's long from being...well...good looking. I'm working with some UI/UX people back at Google, but in the spirit of openness I wanted to get feedback from the real users -- you. Specifically we're looking for business apps that are a good example of UI and/or UX. Apps that allow you to track tasks, expenses, travel, projects, etc. If you have ideas, simply post a link in a follow-up to this thread. Cheers, -- Chris -- 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. --- 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 en www.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 at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: using ClientBundle
Hi, don't make a reference to something in the WAR folder, put your image at the same level as the clientbundle for example. Or create a resources folder, but you will have to reference your image like this @source(my/package/with/dot/img.gif) regards Olivier On Aug 3, 1:09 pm, avi.yaf...@gmail.com avi.yaf...@gmail.com wrote: Hi i need to find a way to point out the the @Source location outside the package com. envvoirment. i want to create 'images' directory in 'war' directory and write { @Source (/war/images/img.gif) ImageResource img() } but when i write this i get an error Resource 'img.gif' is missing expected.. is it possible to this? Thanks,Avi -- 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 values between 2 screens (popups)
Hi, If your modules live in two different windows, and if you don't want to communicate via the server, the client side communication should use a top or opener frame to communicate. Cheers Imagination is more important than knowledge.: Albert Einstein Le 29 juil. 2010 à 03:58, Reinaldo \(Gmail\) reinaldo.manz...@gmail.com a écrit : Hi All. I`d like to know how would be the best approach to pass some data (attributes) from Screen A to Screen B. (Kind of popups) I want to avoid any request. I heard about putting the values in a cookie and get them later but I did not like that solution. Thanks Manza -- 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. -- 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 optimization overview ?
Hi, I am looking for a description of all optimization performed by GWT compilation. I have some question like that. - Does it remove call to method that has no body ? - Is there a way to make all client bundle merged into one ? - Does the compiler detect multiple time same code and optimize it in one place ? thanks regards Olivier -- 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.x maven linux support
Hi, You need to use version 1.2 of gwt-maven plugin. The 1.1 does not support GWT 2.0 due to the replacement of Hosted Mode by the Dev Mode. The Hosted Mode is specific for each platform and so gwt-maven plugin need to download a jar specific to linux. But with the Dev Mode, the same code (the same jar) is used for all platform. Olivier On 28 juil, 13:55, Ovidiu Drumia ovidiu.dru...@gmail.com wrote: Hey, I've started using gwt. I'm currently trying to integrate my new project within a maven module suite, using the codehaus gwt-maven plugin. My pom.xml file contains gwt dependencies. All is well until I try to go beyond the 1.x gwt version. The pom.xml contains the following code: ... properties gwt-versionx.x.x/gwt-version /properties ... dependencies ... dependency groupIdcom.google.gwt/groupId artifactIdgwt-servlet/artifactId version${gwt-version}/version scopecompile/scope /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version${gwt-version}/version scopeprovided/scope /dependency /dependencies build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId version1.1/version executions execution goals goalclean/goal goalcompile/goal goaleclipse/goal /goals /execution /executions /plugin /plugins /build Now until after version 1.7.1 the project compiles. When I try to go beyond it, it first tells me to manually download the gwt- dev-2.0.4.jar and then install it. I've done that, but afterwards it tells me to do the same thing with gwt-dev-2.0.4-linux-lib.zip, but the maven2 repo does not contain such a file. Will the gwt team publish the remaining needed libraries onto the mvn repo? Is there any way to use the gwt-maven-plugin and gwt 2.0.4? Should I stick to gwt 1.7.1 until the gwt team provides the needed linux libraries? -- 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: VerticalPanel inside ScrollPanel inside StackPanel - no scrollbars?
Hi You may be interested in reading http://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideUiPanels.html Olivier On 21 juil, 13:35, Magnus alpineblas...@googlemail.com wrote: Hi, I've got it working now. The actual hierarchie is: DockLayoutPanel - StackLayoutPanel - ScrollPanel - VerticalPanel. However, what is this all about with these multiple classes for one and the same thing: DockPanel - DockLayoutPanel StackPanel - StackLayoutPanel ... What's the difference, e. g. between StackPanel and StackLayoutPanel, and when should I use which? Thanks Magnus On Jul 21, 12:13 pm, Prashant Hegde prashant.he...@gmail.com wrote: Not sure abt the ScrollPanel but, I have also found out ( the hard way) VerticalPanel ( table based ) does not work well with layout panels (div based) .. Try using a DockLayoutPanel - with all widgets added to the north - instead... may be worth a try. - Prashant On 21-07-2010 10:58, Magnus wrote: Hi Prashant, I have done everything you said, with some losings, but also without success (scrollbars): - I changed the StackPanel into a StackLayoutPanel - then, the CSS padding (10px) has no effect anymore (the stack is aligned directly at the left edge, without space, but ok) - I added overflow:auto to the inner CSS container, which is a VerticalPanel - but there is no scrollbar... Why doesn't ScrollPanel work here? Magnus On Jul 21, 5:32 am, Prashant Hegdeprashant.he...@gmail.com wrote: The way I would go about doing this is as follows, see if this works for you or gives any hints: 0. Make sure you are in STANDARDS mode. 1. Use StackLayoutPanel and add it to your parent LayoutPanel ( mixing StackPanel with a DockLayoutPanel gives unpredictable results - so some one has said I have found out the hard way ) 2. Set the width and height to 100% 3. For the container widget ( FlowPanel / HTMLPanel ) you add to the StackLayoutPanel, put a CSS overflow: auto. This indicates that if whatever the container contains grows beyond the container then a scroll bar is shown. If you have a container within a container, and overflow setting should be on the right container - just above the element whose overflow you want to control. Firebug usually helps me figure out this. Review the container hierarchy using Firebug to make sure that there are no intermediate containers which makes your setting ineffective. Hope this helps. On 21-07-2010 05:34, Magnus wrote: Hi, I want to show the contents of a log file inside a StackPanel. The log file itself is a class LogPanel based on a VerticalPanel. Because the log file grows, I added an intermediate ScrollPanel (see code below). The problem: The ScrollPanel never shows scrollbars. Instead, it grows as the LogPanel grows, beyond the size of the containing StackPanel. I would like the ScrollPanel to occupy all available space within the StackPanel and to show scrollbars, when the inner LogPanel gets bigger. The demo of the StackPanel class in the GWT showcase application assumes that there is enough room for the contents. Can you help? Thanks! Magnus - public class MyStackPanel extends StackPanel { public MyStackPanel () { super (); setSize(100%,100%); // we are in the west edge of a DockLayoutPanel } public void add (LogPanel log) { ScrollPanel p = new ScrollPanel (); p.add(log); add (p,Log); p.setSize (100%,100%); } } -- 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: UTF-8 Encoding Problem
AFAIK gwt expect UTF-8 encoding. On Tue, Jul 20, 2010 at 9:37 AM, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote: Welcome all , now i face a problem with UTF-8 Encoding Problem how to support it in GWT project -- 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. -- Computers are useless. They can only give you answers. - Pablo Picasso - -- 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: Compiler Bug in 2.1.0.m2
Hi, I've updated the issue with a more specific test case and a possible workaround. Olivier On 19 juil, 15:09, Björn bjoernham...@web.de wrote: Hi George, hi Gal, thanks for you help! The Resymbolization did the trick. After having two days of real fun with compiled javascript I think I found a bug in the gwt compiler. If your interested take a look athttp://code.google.com/p/google-web-toolkit/issues/detail?id=5133. Hope it will be fixed soon... cheers, 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.
Re: Serialization policy is driving me crazy
Just for information: does it appear (Departement) in a remote service interface method ? On Tue, Jul 20, 2010 at 8:26 PM, Christian Goudreau goudreau.christ...@gmail.com wrote: I have two objects, they implements the same interfaces the only difference between them is their name and the name of their fields... one of them go through rpc just fine and the other one don't... Type 'ca.ulaval.apapul.shared.model.Department' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = ca.ulaval.apapul.shared.model.departm...@8a9a1a Empty constructor, implements isSerializable fields are simple string and a long... Don't know where to see anymore and it's driving me crazy. Note that yesterday the same classe was running fine. *.gwt.rpc - some informations ca.ulaval.apapul.shared.model.Country, true, true, true, true, ca.ulaval.apapul.shared.model.Country/3594740056, 3594740056 - this one works fine. ca.ulaval.apapul.shared.model.Department, false, false, true, true, ca.ulaval.apapul.shared.model.Department/3079600257, 3079600257 - this one don't ca.ulaval.apapul.shared.dispatch.action.GetCountries, false, false, true, true, ca.ulaval.apapul.shared.dispatch.action.GetCountries/2299775089, 2299775089 ca.ulaval.apapul.shared.dispatch.action.GetDepartments, false, false, true, true, ca.ulaval.apapul.shared.dispatch.action.GetDepartments/3827258256, 3827258256 ca.ulaval.apapul.shared.dispatch.result.GetResults, true, true, true, true, ca.ulaval.apapul.shared.dispatch.result.GetResults/3469687742, 3469687742 ca.ulaval.apapul.shared.model.DTO, true, false, true, false, ca.ulaval.apapul.shared.model.DTO/1434028420, 1434028420 -- Christian Goudreau -- 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. -- Computers are useless. They can only give you answers. - Pablo Picasso - -- 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: Serialization policy is driving me crazy
Ok, I don't remember the detail but is departement is declared/exposed in the type of an action or a result On Tue, Jul 20, 2010 at 8:46 PM, Christian Goudreau goudreau.christ...@gmail.com wrote: I'm using command pattern from Gwt-Dispatch. GetDepartments is my action, Action interface extends isSerializable and that being said, country had the exact same chain and work. On Tue, Jul 20, 2010 at 2:41 PM, olivier nouguier olivier.nougu...@gmail.com wrote: Just for information: does it appear (Departement) in a remote service interface method ? On Tue, Jul 20, 2010 at 8:26 PM, Christian Goudreau goudreau.christ...@gmail.com wrote: I have two objects, they implements the same interfaces the only difference between them is their name and the name of their fields... one of them go through rpc just fine and the other one don't... Type 'ca.ulaval.apapul.shared.model.Department' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = ca.ulaval.apapul.shared.model.departm...@8a9a1a Empty constructor, implements isSerializable fields are simple string and a long... Don't know where to see anymore and it's driving me crazy. Note that yesterday the same classe was running fine. *.gwt.rpc - some informations ca.ulaval.apapul.shared.model.Country, true, true, true, true, ca.ulaval.apapul.shared.model.Country/3594740056, 3594740056 - this one works fine. ca.ulaval.apapul.shared.model.Department, false, false, true, true, ca.ulaval.apapul.shared.model.Department/3079600257, 3079600257 - this one don't ca.ulaval.apapul.shared.dispatch.action.GetCountries, false, false, true, true, ca.ulaval.apapul.shared.dispatch.action.GetCountries/2299775089, 2299775089 ca.ulaval.apapul.shared.dispatch.action.GetDepartments, false, false, true, true, ca.ulaval.apapul.shared.dispatch.action.GetDepartments/3827258256, 3827258256 ca.ulaval.apapul.shared.dispatch.result.GetResults, true, true, true, true, ca.ulaval.apapul.shared.dispatch.result.GetResults/3469687742, 3469687742 ca.ulaval.apapul.shared.model.DTO, true, false, true, false, ca.ulaval.apapul.shared.model.DTO/1434028420, 1434028420 -- Christian Goudreau -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Computers are useless. They can only give you answers. - Pablo Picasso - -- 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. -- Christian Goudreau -- 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. -- Computers are useless. They can only give you answers. - Pablo Picasso - -- 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: Serialization policy is driving me crazy
There is no magic ;) GWT compiler must find working dto implied in some serialization (service interface). Perhaps a cache issues :-/ but I don't really think it is :) Best regard, Olivier. On Tue, Jul 20, 2010 at 9:02 PM, Christian Goudreau goudreau.christ...@gmail.com wrote: Ok it work now... While pasting the code here I saw a little something... public class GetResultsT implements Result { I changed this line for : public class GetResultsT extends DTO implements Result { And now it works... what I still don't understand is why some were working and others were not ! Cheers, On Tue, Jul 20, 2010 at 3:00 PM, Christian Goudreau goudreau.christ...@gmail.com wrote: Yes they are... public class GetCountries extends ActionImplGetResultsCountry { public GetCountries() {} } public class GetDepartments extends ActionImplGetResultsDepartment { public GetDepartments() {} } Exact sane declaration. public class GetResultsT implements Result { private ListT results; public ListT getResults() { return results; } @SuppressWarnings(unused) private GetResults() {} public GetResults(final ListT results) { this.results = results; } } This is for the result. On Tue, Jul 20, 2010 at 2:56 PM, olivier nouguier olivier.nougu...@gmail.com wrote: Ok, I don't remember the detail but is departement is declared/exposed in the type of an action or a result On Tue, Jul 20, 2010 at 8:46 PM, Christian Goudreau goudreau.christ...@gmail.com wrote: I'm using command pattern from Gwt-Dispatch. GetDepartments is my action, Action interface extends isSerializable and that being said, country had the exact same chain and work. On Tue, Jul 20, 2010 at 2:41 PM, olivier nouguier olivier.nougu...@gmail.com wrote: Just for information: does it appear (Departement) in a remote service interface method ? On Tue, Jul 20, 2010 at 8:26 PM, Christian Goudreau goudreau.christ...@gmail.com wrote: I have two objects, they implements the same interfaces the only difference between them is their name and the name of their fields... one of them go through rpc just fine and the other one don't... Type 'ca.ulaval.apapul.shared.model.Department' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = ca.ulaval.apapul.shared.model.departm...@8a9a1a Empty constructor, implements isSerializable fields are simple string and a long... Don't know where to see anymore and it's driving me crazy. Note that yesterday the same classe was running fine. *.gwt.rpc - some informations ca.ulaval.apapul.shared.model.Country, true, true, true, true, ca.ulaval.apapul.shared.model.Country/3594740056, 3594740056 - this one works fine. ca.ulaval.apapul.shared.model.Department, false, false, true, true, ca.ulaval.apapul.shared.model.Department/3079600257, 3079600257 - this one don't ca.ulaval.apapul.shared.dispatch.action.GetCountries, false, false, true, true, ca.ulaval.apapul.shared.dispatch.action.GetCountries/2299775089, 2299775089 ca.ulaval.apapul.shared.dispatch.action.GetDepartments, false, false, true, true, ca.ulaval.apapul.shared.dispatch.action.GetDepartments/3827258256, 3827258256 ca.ulaval.apapul.shared.dispatch.result.GetResults, true, true, true, true, ca.ulaval.apapul.shared.dispatch.result.GetResults/3469687742, 3469687742 ca.ulaval.apapul.shared.model.DTO, true, false, true, false, ca.ulaval.apapul.shared.model.DTO/1434028420, 1434028420 -- Christian Goudreau -- 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. -- Computers are useless. They can only give you answers. - Pablo Picasso - -- 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. -- Christian Goudreau -- 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
Re: Compiler Bug in 2.1.0.m2
If you think so, star the issue On 20 juil, 15:46, Paul Stockley pstockl...@gmail.com wrote: The GWT team needs to be all over issues like this. Nothing will put people off GWT quicker than a flaky compiler you cannot depend on. On Jul 20, 5:53 am, Olivier Monaco olivier.mon...@free.fr wrote: Hi, I've updated the issue with a more specific test case and a possible workaround. Olivier On 19 juil, 15:09, Björn bjoernham...@web.de wrote: Hi George, hi Gal, thanks for you help! The Resymbolization did the trick. After having two days of real fun with compiled javascript I think I found a bug in the gwt compiler. If your interested take a look athttp://code.google.com/p/google-web-toolkit/issues/detail?id=5133. Hope it will be fixed soon... cheers, 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.
Re: How to find correctly the client's locale?
Hi, Don't much about recent GWT version. But I the beginning of GWT I18N a simple solution was to use the I18N resolution ... Simply provide in a key locale( ex: locale=en ) with the correct value in each bundle, then just bind this key like another i18n label and you're done ... HIH On Mon, Jul 19, 2010 at 10:24 AM, Sorinel C scristescu...@hotmail.comwrote: I have in my module .gwt.xml file definition the following lines: inherits name=com.google.gwt.core.Core / inherits name=com.google.gwt.user.User / inherits name=com.google.gwt.i18n.I18N / inherits name=com.google.gwt.i18n.CldrLocales / inherits name=com.google.gwt.user.theme.standard.StandardResources / So, maybe something else is wrong, but I don't catch it :( Thanks! PS: some other GWT tricks you can find here: http://ui-programming.blogspot.com/ :-)) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Computers are useless. They can only give you answers. - Pablo Picasso - -- 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 debugger not running in hosted mode?
Hi, When your app run, do you have some trace in the Development Mode tab in Eclipse? If you had some error in your code (compilation error), do your app still run? Or changes are used? Olivier On 16 juil, 07:37, David Vree david.h.v...@gmail.com wrote: I should mention that the only jar I have in my WEB-INF/lib is gwt- servlet.jar -- do I need any of the others? On Jul 16, 12:36 am, David Vree david.h.v...@gmail.com wrote: I did! In fact it's only in the debug configurations menu...not the run configurations menu. I am using maven and am wondering if there is an issue there Although Eclipse is compiling my classes to war/WEB-INF/classes On Jul 15, 10:53 pm, lineman78 linema...@gmail.com wrote: You have to make sure you start it with Debug As not Run As On Jul 15, 8:20 pm, David Vree david.h.v...@gmail.com wrote: I believe so, but I don't know how to tell for sure. I can tell you that the Development Mode tab in Eclipse gets focus, and provides me the following URL: http://127.0.0.1:/index.html?gwt.codesvr=127.0.0.1:9997 When I put that URL in the browser the app runs. But no stopping from within Eclipse! On Jul 15, 8:38 pm, lineman78 linema...@gmail.com wrote: Are you running in the embedded server? On Jul 15, 2:05 pm, David Vree david.h.v...@gmail.com wrote: I have tried to use the Eclipse debugger with the sample application in hosted mode, so I know it works. But in my own application (a multi-module maven project) the stop point I put on OnModuleLoad isn't triggering. I've tried many different things. Any ideas? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Possible to access GWT-RPC serializer?
Hi Sekhar, You have some framework like piriti (http://code.google.com/p/piriti/) for JSON serialization of data. It can be a good start. However, it does not use overlays: it copy JSON values to POJO fields. Maybe you can be interested in my code: http://code.google.com/p/tyco/source/browse/?repo=tikray The idea is to define interfaces for data. A generator automatically create implementation for GWT with zero-overhead (no field copy, just wrappers arround JSON value that will be removed by the GWT optimizer). This part starts to work with (many) limitations. The second part is to create some Java proxy to use the same mechanisms on server. I'm owrking on. Maybe this code can help you. Olivier On 15 juil, 18:03, Sekhar sek...@allurefx.com wrote: Thanks guys, yes looks like JSON is the way to go. POJO-JSON should be easy (using the JSON API), but the other way is a bit tricky. I don't think overlays help because the JavaScript side never sees the objects (just the string) and the JSON-POJO process shouldn't depend on the specific class. As I understand overlays (http://goo.gl/fNzG), you need to (1) have the object in JS and (2) know the attributes. I'm experimenting with rolling my own, will post back results. On Jul 15, 8:08 am, Paul Stockley pstockl...@gmail.com wrote: You could use JSON and javascript overlay types to access the information in a type safe way. On Jul 15, 10:55 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi Sekhar, this is my first thought. Just use JSON. Then you can use eval to read it. However, I do not know any method to export a object to json string. But this should not be too complicated to do yourself, or lookout for such a library Stefan Bacherthttp://gwtworld.de On 15 Jul., 01:34, Sekhar sek...@allurefx.com wrote: Thanks, yeah - sawhttp://goo.gl/fTloafterIposted. So, I guess we'll need to implement something of our own, like a simple to/from JSON strings. Any other thoughts/suggestions? On Jul 14, 3:37 pm, Thomas Broyer t.bro...@gmail.com wrote: On 14 juil, 21:41, Sekhar sek...@allurefx.com wrote: Guys, I'm trying to use HTML5 Local Storage and am wondering how I can save the data from the server as a string. Since GWT-RPC already serializes/deserializes Java serializable objects, is there a way to access its serialization functions to marshal the data to/from the Local Storage strings? You can gain access to the GWT-RPC serialization code (provided your objects are used in a GWT-RPC somewhere, so the GWT compiler generates the appropriate serialization/deserialization code), but it won't be of any help in your case, as GWT-RPC serialization is asymmetric (for performance reasons). -- 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: orcades spring gwt sample, Startup Warnings
Hi, Look like this sample application is outdated because the servlet tag is deprecated in gwt = 1.5 Remove those décoration from the *.gwt.XML files Envoyé de mon iPad Le 8 juil. 2010 à 20:59, mfreitag freit...@gmail.com a écrit : Hi @all, now i try to start orcades-spring-gwt-sample in Eclipse with righClick- RunAs-WebApplication. The application starts successfully, but i see no login panel and in console there are the following Warnings: snip I [WARN] Module declares a servlet class 'org.springframework.web.context.support.HttpRequestHandlerServlet' with a mapping to '/springsample.SampleModule/sampleService2- unsecure.gwt', but the web.xml has no corresponding mapping; please add the following lines to your web.xml: servlet-mapping servlet-nameshell2/servlet-name url-pattern/springsample.SampleModule/sampleService2-unsecure.gwt/ url-pattern /servlet-mapping /snip I checked out: http://net-orcades-spring.googlecode.com/svn/trunk/ net-orcades-spring. What i am do wrong? Thanks for help! -- 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. -- 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: Urgent!!!!!!!!!!!!!!!!!!!!!!!!!!! GWT 2 Memory leak
Hi, We get the same issue in our application, lots of widget many refresh of content, add and remove widget. Usualy we noticed that we kept widget in a list as a member of a composite. When the composite was removed the list stay in memory, so to solve the problem we implement a cleaning method overriding the onUnload() method called by GWT framework. regards Olivier On Jul 6, 9:53 am, tarik kandil tarikkan...@gmail.com wrote: when I am testing my application on IE6, the problem that I find, is that the memory consumption keeps increasing. The same thing for Firefox. Besides, I apologize because my web application is running but once I click too many times the memory increases and it crashes. Can you please tell me how I can fix this? Thank you in advance. I am using a data table that has been developed in JQuery. And it seems that when I go to another page My application still references the same datatable. I want to know if there exist a way to delete all the doms and divisions that every time I create my table. If there exist any methods that I can add on the unload method when I detach my widget. Honestly it is an urgent matter, can you help me please? Thank you. On Tue, Jul 6, 2010 at 1:16 PM, Daniel Le Clere daniel.lecl...@gmail.comwrote: Use the new data table widget in gwt 2.1 M2 On Jul 6, 10:40 pm, metrixon metri...@gmail.com wrote: First of all: DON'T PANIC - the possibility of a good answer does not correlate with the number of exclamation marks used in the subject or text. Now concerning your problem: your problem description is very vague - essentially you are saying: my application does not work - tell me how to fix it. If the memory consumption increases on the machine that is hosting your application, the problem has nothing to do with GWT at all, since all the javascript code is generated at compile time and executed on the client side (in the browser). Your description indicates that your server side code is leaking memory. The best way to fix this problem is to thoroughly analyse your application's runtime behaviour by profiling the application with tools like JProfiler, Yourkit or the NetBeans Profiler. On 6 Jul., 11:12, tarik tarikkan...@gmail.com wrote: Dear Sir, We are developing an application using GWT, this application is very heavy of widgets, we are using a datatable that is developed in JQuery. We are suffering from a big memory leak. I did not find yet a way to resolve this problem can anyone help me please. The problem we have is that the memory on the hosted machine keeps increasing all the time. Can you please propose anyway to decrease the consumption of memory on my application? Please it is an urgent matter. nd help! -- 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. -- Tarik Kandil Consultant Informatique -- 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.
Does it exist a place to suggest improvement ?
Hi there. I am wondering if there is a place to suggest needs of improvement for GWT. I am working on a project and we tried to put in place some architecture that needs some improvement. For the time being we are using as it is, but soon we will have to refactor. And I think this is part of the community exchange, not only code but idea to make GWT better and better. Olivier -- 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
Hi, I use a normal button with a onClick event. The problem with this method is when hitting ENTER, the form is not submitted. So I loose the normal behavior of the form. I still would like to use the onSubmit event of the form. Have you tried with GWT 2.1 M1 ? Olivier On 28 Jun 2010, at 13:36, eirc wrote: 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. --- 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 en www.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 at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to use GIN ?
hi Google to gwt-presenter HIH On Sun, Jun 27, 2010 at 12:51 PM, yves yves.ko...@gmail.com wrote: Hi Everybody, I've read the the official tutorial at http://code.google.com/p/google-gin/wiki/GinTutorial, but I still doesn't understand how to use GIN (as it is mainly based on Guice that I don't know) and how it could help me :-( Sorry for the tutorial writer :-) I'm currently developping an MVP based app mainly inspired by the google IO 2009 presentation http://code.google.com/intl/fr/events/io/2009/sessions/GoogleWebToolkitBestPractices.html and also the article http://code.google.com/intl/fr/webtoolkit/articles/mvp-architecture.html. Here is an example of the code I would like to simplify using DI (as I understand, GIN could do some part for me) : public class SearchPresenter implements Presenter { public interface Display { HasClickHandlers getSearchButton(); } Display display; public void bind(Display d) { display = d; display.getSearchButton().addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { doSearch(event); } }); } As I understand, perhaps I am wrong, GIN could do the bind() for me ? But, how should I use GIN for that (if it is really suited for this) ? Thanks for your help ! Yves -- 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. -- Computers are useless. They can only give you answers. - Pablo Picasso - -- 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 and HTML5 Features.
Maybe http://code.google.com/p/gwt-mobile-webkit/ Olivier On Jun 25, 4:38 pm, Ravi Sharma ping2r...@gmail.com wrote: Hi All, How can we use GWT with HTML5 local database storage feature. I was thinking about using Google gears but then HTML5 is coming where each browser will be implementing the local database and user dont need to install gear plugin. Is there any demo/example how can we use HTML5 local database(browser database) in GWT Thanks, Ravi. -- 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: Pass a method as parameter in GWT
keep cool ;) You can pass a Runnable (Command) as parameter ... like a clikHandler On Wed, Jun 23, 2010 at 4:29 PM, Thiago Miranda de Oliveira thiago...@gmail.com wrote: Plz, someone? On Jun 23, 10:45 am, Thiago Miranda de Oliveira thiago...@gmail.com wrote: Hi. Im building a logic here that a class A instantiate a object of another class B. B has a specified clickHandler that does a animation. I want that the class A can pass a method to the class B as a parameter to do the animation and some extra stuff that I wanna do in the class A. So I was thinking in something like that: class A Button trigger = new Button(); trigger.addClickHandler(new ClickHandler(){ //doStuff callBack(); } class B A a = new A(); a.setCallBack(doThis()); public void doThis(){ Window.alert(test); } How can I do that in GWT? Thanks for the attention Cheers -- 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. -- Computers are useless. They can only give you answers. - Pablo Picasso - -- 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 Application does not work in IE8 at all?
Hi, You added a catch block. What is the caught exception? Can you add a uncaught exception handler using GWT.setUncaughtExceptionHandler in the constructor of your EntryPoint? Do you catch an exception? Do you have a small project with this error? Olivier On Jun 13, 6:48 pm, Xandel xandelf...@gmail.com wrote: Hi there, Hopefully you guys can help me. I have built a GWT application which runs perfectly in Firefox and Chrome. When attempting to load it up in Internet Explorer 8 I get the error from one of my generated cache.html files: Line: 408 Char: 12 Error: Exception thrown and not caught. Code: 0 When I locate that line in the generated file (this was all done with the -PRETTY argument for easy reading) I find it's on this line where the finally is at: function entry0(jsFunction, thisObj, arguments_0){ var initialEntry; initialEntry = entryDepth++ == 0; try { return jsFunction.apply(thisObj, arguments_0); } finally { initialEntry $flushFinallyCommands(($clinit_16() , INSTANCE)); --entryDepth; } } The problem is that this is not code generated from my client side java - it seems to be GWT's own generated code. As a test I added an empty catch block - that now stops Internet Explorer from complaining but still doesn't load my application up at all. All that loads is the surrounding html and images and a blank space where my app should be. Has anyone experienced this before? Any ideas on how to tackle this? Any information will be greatly appreciated! Thanks in advance, Xandel -- 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: Hiding fully qualified class name sent to the browser
Hi, If your problem comes from class name included in the JavaScript files (and affected to some properties of JavaScript object), you can try to use the following optimization: http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptimization Olivier On Jun 22, 3:55 pm, moorsu moo...@gmail.com wrote: Hi, Would it be possible to obfuscate the fully qualified class name which is visible at the browser if you use firebug?. I would like to see it as a.b.c.d instead com.mycompany.myproduct.mypackage.MyClassName. Also I do not use the same domain object as model but use Lists and Maps to send data to browser. 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: GWT 2.0 - Spring Security
Helo Tom, Please take a look at http://code.google.com/p/orcades-gwt-spring/ for MVP integration http://code.google.com/p/orcades-gwt-spring/and http://code.google.com/p/net-orcades-spring/ http://code.google.com/p/net-orcades-spring/You will find some info. On Mon, Jun 21, 2010 at 8:07 PM, Tom thomas.coz...@gmail.com wrote: Hi, I have an GWT 2.0 application using Spring and Hibernate. (GWT-SL GXT) I would like to add a security layer and a profile handler. So I turn on Spring security. I don't find any samples of a GWT 2.0 Spring security 3.0. In fact, I would like a snippet of Spring security configuration. If anyone can help me to find the good way to start? Best regards 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Computers are useless. They can only give you answers. - Pablo Picasso - -- 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: Million access to GWT Appl ??
Yes, but think that user will ask for more interactivity... resulting in more requests. But, of course, bandwidth, CPU and memory will be saved. They will be saved more is a good architecture is used like a Rest-like server, I think. Olivier On Jun 22, 10:33 am, Chris Boertien chris.boert...@gmail.com wrote: Your essentially asking the wrong question. I think its better to think of by how much will GWT or products similar to GWT reduce the load on a server. You have to consider the fact that every user accessing a traditional website backed by a templating engine involves alot of resources for each and every request for new information. Take a web forum for example. I think they are probably one of the least effecient communication mediums and would be very interesting to see a GWT implementation of one. With the status quo web forum you have full page loads happening every single time a user wants to move around on the forum. And if the user wants to see what is new on the forum... you guessed it, full page load. Now, if you consider all the ways that having most of the web forum on the client side and using much more lightweight RPC calls to get new info (and ONLY new info) there would be quite large improvements. I wouldnt be suprised if the resource requirement of a GWT based web forum dropped the load on even the most highly active forums by upwards of 80%, and probably more if you really took the care to setup some proper caching. But regardless of how the server resource load would drop, just the bandwidth drop alone would be a 100% win. 2010/6/21 Jaroslav Záruba jaroslav.zar...@gmail.com: On Mon, Jun 21, 2010 at 9:28 PM, rakesh wagh rake...@gmail.com wrote: If you compare gwt to other js based toolkits, they all behave similar as far as client to server communication is concerned. gwt only makes life simple for the developers. ...and (with comparably complex UI) makes your JavaScript run faster :) Rakesh Wagh On Jun 19, 7:44 pm, manish kumar manish.online2...@gmail.com wrote: Hi, i have gone through many articles on web and found that GWT is not good for an application that has million users access simultaniouly. Is that really true? If not then what should i do make it accessible by million users?Is that really tough job in GWT? -- 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. -- 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. -- 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: Dynamic Module Loading
If your need is only to define new view (with few logic), maybe using a descriptive language will be better. You can write a templating engine using GWT like a XUL interpreter or something like that. This is not the best approach for optimized JS (file size, speed...) but may be the best compromise. I think GWT compilation is too heavy to be done on server, and worse, on the fly. Olivier On Jun 21, 4:52 pm, ruds roud...@gmail.com wrote: Hello there, I know that this topic has been circling around for a while and i thought to bring it up again just for the sake of discussion and in case someone else has found an alternative for it. One of our requirements is to be able to load a compiled GWT module at runtime, bc we have a compiler unit that runs on the server where you can define the UI Components of a UI View and customized it per user and language. Since we are compiling all the Views through our compiler unit(Not GWT Compiler) then we dont want to load the screen dynamically. it is much like flex/flash, they do the design through a flash designer and then they compile the MXML and generate the SWFs. at runtime you just load the generated SWFs defined per user/language based on some params. We need to be able to do the same thing in GWT, as now they are asking for a Web 2.0 version, so i thought first of loading the module dynamically then it turned out that this is a bad idea. Any hint over Code Splitting +Deferred Binding?? but will those 2 options work in my case? i need to load the generated js of a View as if you have created it and set its properties per user/language. so if my main Module is the application entry point where i have 4 sections to fill in my UIs then i need to load the UIs as if they are ready in terms of design and add them in their appropriate locations. Dunno if i was clear enough in my explanation but comments/suggestions are welcome. Looking forward to hearing from you. best regards, Rudolf Michael -- 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: Initializer blocks
Not the parent object. Your class is erp.client.Test but the class of u is erp.client.Test$1. $1 means the first anonymous class of Test. This is a Java behavior. Olivier On Jun 22, 1:22 pm, ahhat...@gmail.com ahhat...@gmail.com wrote: Hi, I tried to do the following: University u = new University() { { setName(Ahmed); setPrice(500); } }; University u2 = new University(); u2.setName(Hassan); u2.setPrice(1000); Window.alert(u.toString() + \n + u.name + \n + u.getPrice() + \n \n + u2.toString() + \n + u2.name + \n + u2.getPrice()); I go the following result: erp.client.tes...@1bafdb4 Ahmed 500.0 erp.client.univers...@1663655 Hassan 1000.0 I don't really understand how did the first object report it self as being the parent object. May someone explain, please? And is this behavior GWT specific or applies to desktop java too? 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.
Re: Dynamic Module Loading
I don't know the full story, but maybe the problem is not a technical one. You can't change technology (Flash = GWT) without doing some change in your architecture... If they don't want to explore new way, they must keep their technology. Olivier On Jun 22, 12:34 pm, rudolf michael roud...@gmail.com wrote: Well this is similar to the Generator/Factory concepts. They don't want to go with this approach although i was able to load the Factory/Generator class from the server and use it in the client code to generate my UIs from the definitions POJOs. Since they have a flash background, they want to load an INSTANCE of a UI View from the server and plug it in its appropriate location. I have already told them that my UIObjects are not serializable and i cannot get them from the server but then this might be feasible with native js and static html. I am having hard time to convince them that the Generators are not bad. regards, Rudolf Michael On Tue, Jun 22, 2010 at 1:10 PM, Olivier Monaco olivier.mon...@free.frwrote: If your need is only to define new view (with few logic), maybe using a descriptive language will be better. You can write a templating engine using GWT like a XUL interpreter or something like that. This is not the best approach for optimized JS (file size, speed...) but may be the best compromise. I think GWT compilation is too heavy to be done on server, and worse, on the fly. Olivier On Jun 21, 4:52 pm, ruds roud...@gmail.com wrote: Hello there, I know that this topic has been circling around for a while and i thought to bring it up again just for the sake of discussion and in case someone else has found an alternative for it. One of our requirements is to be able to load a compiled GWT module at runtime, bc we have a compiler unit that runs on the server where you can define the UI Components of a UI View and customized it per user and language. Since we are compiling all the Views through our compiler unit(Not GWT Compiler) then we dont want to load the screen dynamically. it is much like flex/flash, they do the design through a flash designer and then they compile the MXML and generate the SWFs. at runtime you just load the generated SWFs defined per user/language based on some params. We need to be able to do the same thing in GWT, as now they are asking for a Web 2.0 version, so i thought first of loading the module dynamically then it turned out that this is a bad idea. Any hint over Code Splitting +Deferred Binding?? but will those 2 options work in my case? i need to load the generated js of a View as if you have created it and set its properties per user/language. so if my main Module is the application entry point where i have 4 sections to fill in my UIs then i need to load the UIs as if they are ready in terms of design and add them in their appropriate locations. Dunno if i was clear enough in my explanation but comments/suggestions are welcome. Looking forward to hearing from you. best regards, Rudolf Michael -- 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 at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Modify Java source file at compile time, possible?
Kevin, It depends one the which generator can know which interface. If the generators can know both interfaces, you can create only one generator. All code generator is pushed to sub classes like IntrerfaceAWriter and InterfaceBWriter. The generator looks for several interfaces from the marker interface and call the corresponding writers. If one generator (generatorB) can know the other interface (intefaceA) but not the reverse, it can add a field like: private InterfaceA wrapped = GWT.create(InterfaceA.class); Then it implements all InterfaceA's methods and forward call to the wrapped field. If none of them can know the other interface (like generators from two frameworks), you can create an InterfaceC that extends InterfaceA and InterfaceB. You add a generator that proxy all call to some wrapped field like in the previous case, but for the two interfaces. Do you like it? Olivier On 14 juin, 16:14, Kevin Qiu kevin.jing@gmail.com wrote: e.g., class Foo implements InterfaceA, InterfaceB { } and in .gwt.xml file, you have generate-with class=generatorA when-type-assignable class=InterfaceA / /generate-with generate-with class=generatorB when-type-assignable class=InterfaceB / /generate-with How do I write generatorA and generatorB so that they generate the same file, but cascading the effects? Obviously, I'm only looking for general directions, not specific details. Thanks, On Sun, Jun 13, 2010 at 8:10 PM, Olivier Monaco olivier.mon...@free.frwrote: Not sure it's a problem. It's depends on you exact use case. Can you give me a more exact example? Olivier On 12 juin, 01:16, Kevin Qiu kevin.jing@gmail.com wrote: thanks for the reply. the problem is (I should've pointed out) that my Foo class is already managed through dependency injection container (gin), which means there's already a deferred binding implementation generated by ginjector. On Fri, Jun 11, 2010 at 5:58 PM, Olivier Monaco olivier.mon...@free.fr wrote: Hi Kevin, You can rewrite your Foo class as: public class Foo implements MagicClass { �...@trace �...@secured public void bar() { } } Then, associate a generator for sub-types of MagicClass and use GWT.create to instantiate a new Foo. GWT.create(Foo.class); So your generator will be called. It can generate a FooImpl class that extends the Foo class and override the bar method as follow: public class FooImpl extends Foo { public void bar() { Log.log(begin of bar); try { SecurityContext.checkAuthorized(); super.bar(); } finally { Log.log(end of bar); } } } Where Log.log print some logs and SecurityContext.checkAuthorized throws an error is the user is not authorized. This could be funny and not really hard to do. Olivier On 11 juin, 18:09, Kevin Qiu kevin.jing@gmail.com wrote: Hi, I know GWT can generate Java source code with deferred binding. But sometimes, I don't want to generate a new implementation, but based on some annotations, I want to have the ability of injecting code at compile time. e.g., with the class below public class Foo { @Log public void bar() { @CheckPermission dosomething(); } } At compile time, I want to have the ability to get the annotations available on items, and inject code according to my application logic. So here, the compiler should see: public class Foo { public void bar() { log(begin); if (hasPermission()) { doSomething(); } else { error(); } } } with the extra code being injected. I'm wondering if anything in GWT allows me to do that? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group
Re: JSNI reference in iframe
The iframe is the GWT iframe or another one? Do you have a usecase ? Olivier On 22 juin, 18:37, randasin r4nd7...@gmail.com wrote: I have some JSNI code that assign a function to a variable in the window as suggested in JSNI document: Calling a Java Method from Handwritten JAvascript (http://code.google.com/webtoolkit/doc/latest/ DevGuideCodingBasicsJSNI.html#calling) The problem is if the JSNI code runs inside an iframe, then the function is registered in the top window, and I get a Object expected (or Object is null) script error on IE. How could I make sure the function is registered in the iframe, and not to the window? -- 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: Why do I get Native methods do not specify a body when I try to use JSNI?
Try to add a ; after the JS comment of getUserAgent: public static native String getUserAgent() /*-{ return navigator.userAgent.toLowerCase() }-*/; Olivier On 20 juin, 17:55, Shedokan shedok...@gmail.com wrote: I have this Class: package com.testproject.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; /** * Entry point classes define codeonModuleLoad()/code. */ public class Test implements EntryPoint { /** * This is the entry point method. Initialize you GWT module here. */ public void onModuleLoad() { // Writes Hello World to the module log window. GWT.log(Hello World!, null); GWT.log(getUserAgent(), null); } public static native String getUserAgent() /*-{ return navigator.userAgent.toLowerCase() }-*/ } Everything should work fine but somehow I get these three errors: Native methods do not specify a body Syntax error on token ), { expected after this token Syntax error, insert } to complete ClassBody Can anyone tell me what is the problem? 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 enable scrolling for app using DecoratedTabPanel?
Hi, There is two type of layouts: RIA-like and web-page-like. The RIA-like layout is done using the layout panels. The app stretch to the whole available space. There is no scrollbars. The web-page-like layout is done using HTML tags (and some standard panels). The app don't stretch. If the content is larger than the viewport, scrollbars appears, like in traditional pages. Looking at the first screenshot, here is my proposal: 1) The main panel is a DockLayoutPanel attached to RootLayoutPanel. 2) The north slot contains the header. 3) The center slot contains a TabLayoutPanel. But when you show data (list, form...) you may have no enough space to show all. Here you start to use web-page-like layout. So: 4) The contain of the contact tab is a LayoutPanel with four slot: Tighformat, the list, Detail view, Relations. 5) Tighformat, Detail view and Relations are standard panels (FlowPanel) into ScrollPanels. If there not enough space, a scrollbar will appear. 6) The list is some sort of DockLayoutPanel with the headers top, the navigation buttons bottom and the contains of the list in the center with a scrollbar is needed. The exact implementation depends on the used widget for the list (SmartGWT, GXT, gwt-incubator...) Hope this helps. Think also to invert the color between selected tab and not selected tab. When i saw the screenshot, I thinking that blue tabs are not the current tab and white one are the current... The current tab must be the lighter. Olivier On 16 juin, 17:48, ingo ingo.jaec...@googlemail.com wrote: hello oliver, thank you very much for the link! i want to achieve a page layout similar to the google code uihttp://code.google.com/p/honeycrm/:tabs on top of the screen and right under the tabs is the module specific content. if the content right under the tabs is too big the whole page or the content of the tabpanel component should have scrollbars. at the moment i do not really care where the scrollbars are - more importantly is that there are scrollbars at all :-) what do you mean with your suggestion to use a dockpanel instead of a docklayoutpanel? should this solve the problem, too? i tried and it did not work out for me. i will read the stuff in the docs and play around with the different containers. would really find a solution for this issue. has anyone some sample code that i can have a look at? in the meantime you can have a look at my code by browsing through the projecthttp://code.google.com/p/honeycrm/source/browse/#svn/trunk/src/honeyc... kind regards, ingo On 16 Jun., 13:48, Olivier Monaco olivier.mon...@free.fr wrote: Do you want: 1) scroll the whole page? Don't use layouts (*LayoutPanel), there are made to avoid scrolling. Did you readhttp://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideUiPanels... Try: RootPanel \_ DockPanel \_ DecoratedTabPanel 2) scroll the content area of the tabs? Add a ScrollPanel in each tab content. Olivier On 16 juin, 09:12, ingo ingo.jaec...@googlemail.com wrote: hello everyone, i am using the DecoratedTabPanel to split my application into several modules (http://honeyyycrm.appspot.com). however, i have currently no scrolling at all (in no browser). i read about this in the mailing list and it seems like a lot of developers have issues with this (especially when they use TabPanels). i experimented with the suggestions but i did not yet find a working solution. is there any point in the documentation describing what to do to enable scrolling when using TabPanels? this is the widget that is inserted into the RootLayoutPanel:http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/cl... it contains a docklayoutpanel and inserts an instance of TabCenterView into itself:http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/cl... RootLayoutPanel \_ DockLayoutPanel (TabLayout class) \_ DecoratedTabPanel (TabCenterView class) this is the current hierarchy. now which steps are neccessary to enable proper scrolling for the app? regards, ingo -- 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: DockLayoutPanel inside a ScrollPanel
Yes, Stefan, I missed it. Thanks. On 16 juin, 18:33, Stefan Bachert stefanbach...@yahoo.de wrote: The layout panels are made to avoid scrolling. They must have a fixed size. The latter sentence is not completly true. A LayoutPanel does not calculate its size from children. Especially it does not grow when the children grow. A Layoutpanel needs to be told which size it has. The possibilities are: a) to set height and width explicitly (what you notice) b) to grow and shrink with its parent (what you missed) Stefan Bacherthttp://gwtworld.de -- 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 questions
Hi, Depending on the size of object2, I will use a dedicated presenter or not. Commonly, I like to have a dedicated one so I can easily reuse it, extends it... and, more important, I have more encapsulation, reducing the complexity of my code. Olivier On 16 juin, 17:20, Bilousme julien.dram...@gmail.com wrote: Hello all, I need some help to check if my design I choose is correct. Imagine I have a data model like that : - An object1 containing a list of many object2 Imagine now I want that my screen displays info of object1 and the list of object2 inside a tabpanel. When you click on a tab, you display the info of the selected object2. What is the best way to implement that ? 1) only one couple of presenter/view for object1 and this couple manages the display of object2 in each tab 2) one presenter/view object for object1 and one presenter/view for each instance of object2 ? in other words, do I have one couple of presenter/view by object model ? -- 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: Using the addAndReplaceElement to add Widgets
Hi, What do you think about that way : SearchForm.ui.xml g:FormPanel styleName=search form action= method=post g:HTMLPanel fieldset ... /fieldset /g:HTMLPanel /g:FormPanel SearchForm.java public class SearchForm extends Composite { interface Binder extends UiBinder... private static final Binder binder = GWT.create...; private FormPanel form; public SearchForm() { form = binder.createAndBind(this); initWidget(form); } } This ensures you don't break the event handling. You can also replace input.. by g:TextBox... and button... by g:Button These two classes generate clean HTML. If you really want to continue with your way, you have to deal with widgets internal like sinkEvents, adopt, onAttach... Olivier On 16 juin, 19:13, Thiago Miranda de Oliveira thiago...@gmail.com wrote: Hi.. Here in my company we've decided to adopt the GWT for a working project but we are facing a huge barrier. Gwt has it's own widgets but they won't be used for their HTML/CSS produced that is almost impossible to transform in our design and HTML/CSS needs. So we've decided to create our own Widgets using the Ui Binder. So I've tried to do this: panelSearch.ui.xml: g:HTMLPanel ui:field=searchForm form class=search form action= method=post fieldset legend class=hiddenSearch results/legend div class=grid-12-12 label class=form-lblBusca:/label input type=text id=search-field title=Busca tabindex= class=form-txt form-small / label class=form-lblFiltrar por data/label input type=text title=Filtrar por data tabindex= class=form-txt form-date / input type=text title=até tabindex= class=form-txt form- date / button ui:field=buttonOk type=submit title=Ok tabindex= class=form-button form-left buttonok/button a title=Adicionar projeto href=upload-projeto.html class=add-project button rightspanAdicionar projeto/span/a /div /fieldset /form /g:HTMLPanel And then I've created a Widget that extends the FormPanel and tried, mapped it and tried to use the getWidgetContainer inside the panelSearch.java to replace it with my class that extends the FormPanel. It replaced well but I can't get the events ( like submitHandler ). How can I do that? Is there a way? Thanks for the attention Cheers -- 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 RequestBuilder
Hi, Configure your backend server to serve the folder where your GWT HTML page is (and the compiled JS). Then, open this page in your browser. The URL may be something like: http://localhost:88/mypage.html This load the compiled version of your application. Add a parameter named gwt.codesvr with value 127.0.0.1:9997 and the dev mode will be used. http://localhost:88/mypage.html?gwt.codesvr=127.0.0.1:9997 Now you can use the dev mode and have not SOP probem ;) Olivier On 16 juin, 15:16, alian rea aliandre...@gmail.com wrote: Hallo guys, i'm new of this group. I'm new developer for GWT 2.0 and SmartGWT. I've a problem with RequestBuilder. There are one frontend and one backend. The first is an java GWT application, the second is a PHP scripts, and they speak with JSON. Now The first application is in port and the backend is in port 88, in the identical domain, and the rule of SOP forbid the comunication, with the onsuccess method of Request callback. The statuscode is 0, and the getText() is . How can i do? Help please thank you. Andrea -- 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 applet problem
Hi, The easiest way is not an frame... you will have many issue. You can create a Widget backing by an object tag. Or you can try some library like http://code.google.com/p/gwtai/. Olivier On 16 juin, 13:17, mariyan nenchev nenchev.mari...@gmail.com wrote: I said the easiest way to do it :) -- 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 enable scrolling for app using DecoratedTabPanel?
Do you want: 1) scroll the whole page? Don't use layouts (*LayoutPanel), there are made to avoid scrolling. Did you read http://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideUiPanels.html? Try: RootPanel \_ DockPanel \_ DecoratedTabPanel 2) scroll the content area of the tabs? Add a ScrollPanel in each tab content. Olivier On 16 juin, 09:12, ingo ingo.jaec...@googlemail.com wrote: hello everyone, i am using the DecoratedTabPanel to split my application into several modules (http://honeyyycrm.appspot.com). however, i have currently no scrolling at all (in no browser). i read about this in the mailing list and it seems like a lot of developers have issues with this (especially when they use TabPanels). i experimented with the suggestions but i did not yet find a working solution. is there any point in the documentation describing what to do to enable scrolling when using TabPanels? this is the widget that is inserted into the RootLayoutPanel:http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/cl... it contains a docklayoutpanel and inserts an instance of TabCenterView into itself:http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/cl... RootLayoutPanel \_ DockLayoutPanel (TabLayout class) \_ DecoratedTabPanel (TabCenterView class) this is the current hierarchy. now which steps are neccessary to enable proper scrolling for the app? regards, ingo -- 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: DockLayoutPanel inside a ScrollPanel
Elben, The layout panels are made to avoid scrolling. They must have a fixed size. They use the whole window and updates there content viewport as the window is resized. If their content is too large to be shown, a part of it will be hidden (http://code.google.com/intl/fr/webtoolkit/ doc/latest/DevGuideUiPanels.html). So, as Gal said, fix the size of you DockLayoutPanel. If it's not an option for you, you may forgot layouts. What do you try to do? Olivier On 15 juin, 01:42, Elben Shira elbensh...@gmail.com wrote: Hi, I have a layout defined by: - ... - ScrollPanel - DockLayoutPanel - north - west - center - east The problem is that the dock layout panel is cut off from the window; the scroll bars don't appear. I can force the scroll bars to appear by setting the height of both panels to some pixel, but this is obviously not a useful solution. Any hints? -- 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: Bookmarklet with GWT
My linker generate .cache.js files instead of .nocache.js (in fact it use XsLinker). Then, it create a bootstrap script (the .nocache.js) derived from the one for XsLinker. But there's a limitation. The bootstrap needs the base path of the GWT folder (the one with .cache.js files). To find it, the bootstrap needs to find the script tag of itself. You must add an id attribute to it containing the name of your module followed by Loader. If your bootstrap script is myscript.cache.js, the id must be myscriptLoader. Then your bookmarklet is: javascript:(function(){var %20t=document.createElement('script');t.id='myscriptLoader';t.type='text/ javascript';t.src='http://www.server.com/myscript.nocache.js? _bk_='+t.id+'_nocache='+(new %20Date()).valueOf();document.getElementsByTagName('head') [0].appendChild(t);})(); Olivier On 14 juin, 08:17, dino dinos...@gmail.com wrote: yes, you misunderstood me :p I don't speak english and have sometimes trouble explaining what I wan't :p but that sentence is non-trivial and you already answered what I needed to know Sorry that I called your tutorial not good but It looked rather confusing. It looks like you are doing some buggy changes, it only looks that way. It kept me back for that reason. Maybe I'll better reread it and write a java program to automate it. Oh and I have to check out that plugin Olivier pointed out. I'm just curious what that plugin does apart from what keremTyriaky posted. If you ask my opinion about the end product: Never seen any bugs, works very good and is handy if I want to understand some sentences, thanks. But I think there are more useful uses then a translator. On Jun 14, 1:27 am, KeremTiryaki keremtiry...@gmail.com wrote: I want to write my own bookmarklet in gwt and I didn't found any good tutorial online. This guy managed to do so, I want to know why. And yes, most browsers support bookmarklets 5 months ago, I wrote a tutorialhttp://keremt.blogspot.com/2010/01/making-bookmarklet-with-gwt-20-and... but you are right, it is not a good one :) I will try to make a video about it for better explain. And Yes bookmarklets could be a BigDevil. These kind of tools must be open source. They are only JS, They are already open source. But I will share the gwt codes as soon as possible. how do you create a bookmarklet in gwt? like a casual gwt project? Yes it is casual gwt project. but you need to do something after compile java codes. There is some trick about server communication(http://code.google.com/webtoolkit/doc/latest/tutorial/ Xsite.html). I explained it in my blog post, but I will give more info about it... Dino:This guy managed to do so, I want to know why. Because I need a translate tool like that :) and am I misunderstood you? Thanks a lot -- 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: Bookmarklet with GWT
It doesn't support hosted mode. I have one project with standard linker for debugging and on project with bookmarklet linker. Olivier On 14 juin, 13:33, dino dinos...@gmail.com wrote: how do you do the debugging? It doesn't work in hosted mode or does it? On 14 jun, 09:16, Olivier Monaco olivier.mon...@free.fr wrote: My linker generate .cache.js files instead of .nocache.js (in fact it use XsLinker). Then, it create a bootstrap script (the .nocache.js) derived from the one for XsLinker. But there's a limitation. The bootstrap needs the base path of the GWT folder (the one with .cache.js files). To find it, the bootstrap needs to find the script tag of itself. You must add an id attribute to it containing the name of your module followed by Loader. If your bootstrap script is myscript.cache.js, the id must be myscriptLoader. Then your bookmarklet is: javascript:(function(){var %20t=document.createElement('script');t.id='myscriptLoader';t.type='text/ javascript';t.src='http://www.server.com/myscript.nocache.js? _bk_='+t.id+'_nocache='+(new %20Date()).valueOf();document.getElementsByTagName('head') [0].appendChild(t);})(); Olivier On 14 juin, 08:17, dino dinos...@gmail.com wrote: yes, you misunderstood me :p I don't speak english and have sometimes trouble explaining what I wan't :p but that sentence is non-trivial and you already answered what I needed to know Sorry that I called your tutorial not good but It looked rather confusing. It looks like you are doing some buggy changes, it only looks that way. It kept me back for that reason. Maybe I'll better reread it and write a java program to automate it. Oh and I have to check out that plugin Olivier pointed out. I'm just curious what that plugin does apart from what keremTyriaky posted. If you ask my opinion about the end product: Never seen any bugs, works very good and is handy if I want to understand some sentences, thanks. But I think there are more useful uses then a translator. On Jun 14, 1:27 am, KeremTiryaki keremtiry...@gmail.com wrote: I want to write my own bookmarklet in gwt and I didn't found any good tutorial online. This guy managed to do so, I want to know why. And yes, most browsers support bookmarklets 5 months ago, I wrote a tutorialhttp://keremt.blogspot.com/2010/01/making-bookmarklet-with-gwt-20-and... but you are right, it is not a good one :) I will try to make a video about it for better explain. And Yes bookmarklets could be a BigDevil. These kind of tools must be open source. They are only JS, They are already open source. But I will share the gwt codes as soon as possible. how do you create a bookmarklet in gwt? like a casual gwt project? Yes it is casual gwt project. but you need to do something after compile java codes. There is some trick about server communication(http://code.google.com/webtoolkit/doc/latest/tutorial/ Xsite.html). I explained it in my blog post, but I will give more info about it... Dino:This guy managed to do so, I want to know why. Because I need a translate tool like that :) and am I misunderstood you? Thanks a lot -- 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: Bookmarklet with GWT
Hi Kerem, Your way to create a bookmarklet is not trivial. If you want a easier way, you can try my bookmarklet linker (http://code.google.com/p/tyco/ source/browse/#svn/trunk/tyco-gwt/src/main/com/googlecode/tyco/gwt/ bookmarklet). Then, you just have to write a bookmarklet that load the .nocache.js file. Olivier On 14 juin, 01:27, KeremTiryaki keremtiry...@gmail.com wrote: I want to write my own bookmarklet in gwt and I didn't found any good tutorial online. This guy managed to do so, I want to know why. And yes, most browsers support bookmarklets 5 months ago, I wrote a tutorialhttp://keremt.blogspot.com/2010/01/making-bookmarklet-with-gwt-20-and... but you are right, it is not a good one :) I will try to make a video about it for better explain. And Yes bookmarklets could be a BigDevil. These kind of tools must be open source. They are only JS, They are already open source. But I will share the gwt codes as soon as possible. how do you create a bookmarklet in gwt? like a casual gwt project? Yes it is casual gwt project. but you need to do something after compile java codes. There is some trick about server communication(http://code.google.com/webtoolkit/doc/latest/tutorial/ Xsite.html). I explained it in my blog post, but I will give more info about it... Dino:This guy managed to do so, I want to know why. Because I need a translate tool like that :) and am I misunderstood you? Thanks a lot -- 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: Modify Java source file at compile time, possible?
Not sure it's a problem. It's depends on you exact use case. Can you give me a more exact example? Olivier On 12 juin, 01:16, Kevin Qiu kevin.jing@gmail.com wrote: thanks for the reply. the problem is (I should've pointed out) that my Foo class is already managed through dependency injection container (gin), which means there's already a deferred binding implementation generated by ginjector. On Fri, Jun 11, 2010 at 5:58 PM, Olivier Monaco olivier.mon...@free.frwrote: Hi Kevin, You can rewrite your Foo class as: public class Foo implements MagicClass { �...@trace �...@secured public void bar() { } } Then, associate a generator for sub-types of MagicClass and use GWT.create to instantiate a new Foo. GWT.create(Foo.class); So your generator will be called. It can generate a FooImpl class that extends the Foo class and override the bar method as follow: public class FooImpl extends Foo { public void bar() { Log.log(begin of bar); try { SecurityContext.checkAuthorized(); super.bar(); } finally { Log.log(end of bar); } } } Where Log.log print some logs and SecurityContext.checkAuthorized throws an error is the user is not authorized. This could be funny and not really hard to do. Olivier On 11 juin, 18:09, Kevin Qiu kevin.jing@gmail.com wrote: Hi, I know GWT can generate Java source code with deferred binding. But sometimes, I don't want to generate a new implementation, but based on some annotations, I want to have the ability of injecting code at compile time. e.g., with the class below public class Foo { @Log public void bar() { @CheckPermission dosomething(); } } At compile time, I want to have the ability to get the annotations available on items, and inject code according to my application logic. So here, the compiler should see: public class Foo { public void bar() { log(begin); if (hasPermission()) { doSomething(); } else { error(); } } } with the extra code being injected. I'm wondering if anything in GWT allows me to do that? -- 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: Modify Java source file at compile time, possible?
Hi Kevin, You can rewrite your Foo class as: public class Foo implements MagicClass { @Trace @Secured public void bar() { } } Then, associate a generator for sub-types of MagicClass and use GWT.create to instantiate a new Foo. GWT.create(Foo.class); So your generator will be called. It can generate a FooImpl class that extends the Foo class and override the bar method as follow: public class FooImpl extends Foo { public void bar() { Log.log(begin of bar); try { SecurityContext.checkAuthorized(); super.bar(); } finally { Log.log(end of bar); } } } Where Log.log print some logs and SecurityContext.checkAuthorized throws an error is the user is not authorized. This could be funny and not really hard to do. Olivier On 11 juin, 18:09, Kevin Qiu kevin.jing@gmail.com wrote: Hi, I know GWT can generate Java source code with deferred binding. But sometimes, I don't want to generate a new implementation, but based on some annotations, I want to have the ability of injecting code at compile time. e.g., with the class below public class Foo { @Log public void bar() { @CheckPermission dosomething(); } } At compile time, I want to have the ability to get the annotations available on items, and inject code according to my application logic. So here, the compiler should see: public class Foo { public void bar() { log(begin); if (hasPermission()) { doSomething(); } else { error(); } } } with the extra code being injected. I'm wondering if anything in GWT allows me to do that? -- 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: Synchronous Calls with RPC??
I'm okay for blocking one part of the application or the whole for global processing (login...). What I dislike is application blocking me when I just ask for a little component to upgrade. Like if you have a iGoogle page and click refresh on one widget block all widgets ;). Olivier On 10 juin, 03:14, Craigo craig...@gmail.com wrote: +1. When the user presses load / submit / ... on my app, I enable the glass pane, and they have to wait until the submit has completed successfully. I see nothing wrong with this approach: PopupPanel loadingDialog = new PopupPanel(); loadingDialog.setWidget(loadingImageAnimation); loadingDialog.setGlassEnabled(true); loadingDialog.center(); .. do the work onSuccess and onFailure callback loadingDialog.hide(); On Jun 10, 9:28 am, Carl Pritchett bogusggem...@gmail.com wrote: Your proposal is interesting. But as a user, if I have to wait, I leave... So many be an application needing some wait a minute popup is not a good approach for the future. I wouldn't popup (block user interaction) over the whole page! Just the component that needs to load. In fact you don't even need to block user interaction. I just do it in my application because (for example) the user has clicked refresh on a component and any interaction with the refreshing component would be invalid. So in my case partial blocking the UI is better for the user - they can go on interacting with other parts of the app (we have a multiple portal like windows) Carl. -- 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: Using Javascript Overlays vs. Manually setting up POJO instances?
You have also some framework like piriti allowing easy mapping between JSON and Java object. But I don't like them because their overhead. I use another approach. My model is made of interfaces. I share the interfaces between the server and GWT. For GWT, I have a generator that automatically implements the interface as a wrapper around the JSO. This wrapper is a zero-overhead implementation (just method forward). You can find my generator here if it can help you: http://code.google.com/p/tyco/source/browse/trunk/tyco-gwt/src/main/com/googlecode/tyco/gwt/tikray And you have some unittests here: http://code.google.com/p/tyco/source/browse/trunk/tyco-gwt/src/test/com/googlecode/tyco/gwt/tikray Olivier On 10 juin, 01:06, rhodebump rhodeb...@gmail.com wrote: I did some reading up on RPC. Sounds like it would be perfect except for the face that it is limited by the Same Origin Policy, so I can't use it. I wish we could do an RPC with JsonpRequestBuilder Thanks for your insight, you have convinced me to do the Javascript Overlays. I do like type safety and it sounds like it would be more efficient. Phillip On Jun 9, 5:52 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: I am assuming you have a strong reason not to use standard RPC - because if you really have POJO's on the server side, reusing the same objects on the client side should be a breeze. It always makes sense to Javascript Overlays, otherwise you loose type safety and all the other advantages java has over javascript. It is a pain to maintain two versions for the same entity, but the advantages far outweigh the inconvenience. You can perhaps even build a small utility that generates the overlays -- shouldn't be too difficult. And finally, if it eases your pain, most people end up having DTOs and Model objects *even if* they use regular RPC. That's because the POJO's you have on the server may be a complex hierarchy of objects; what you want on the client side is usually pretty simple and doesn't have deep hierarchies. --Sri On 10 June 2010 02:56, rhodebump rhodeb...@gmail.com wrote: I have several Java classes that I am using on the serverside, and I am using these same classes to serialize the JSON stream back to my GWT application. I am using the JsonpRequestBuilder to call my service and it is successfully returning a JavascriptObject. What is the recommended approach to getting my objects from the json response?, should it be a) coerce my JavaScriptObject into a string and use the JsonParser, or b) write a 2nd implementation of my classes using Javascript overlays? I don't really like either approach, one option means having 2 types of objects that I would need to keep in sync (the pojo and the Javascript overlay) and the other way means I have to traverse the Json myself, populating my object glyph manually. Either way, ouch. Thanks for listening, Phillip -- 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: Using JavaScript Overlay Types for Nested JavaScriptObjects
Hi, Imagine you have this in your HTML page: - html ... script window.data = { prop1 : { prop2: 42 } }; /script ... /hmtl - First create a JSO for the prop1 value: class InnerJSO extends JSO { protected InnerJSO() {} public native int getProp2() /*-{ return this.prop2; }-*/; } Second create the outer JSO (the data value): class OuterJSO extends JSO { protected OuterJSO() {} public native InnerJSO getProp1() /*-{ return this.prop1; }-*/; } Finally create a method that returns data: public native OuterJSO getData() /*-{ return $wnd.data; }-*/; Okay? Do you need more explanation? Olivier On 9 juin, 01:58, bluedes bluediamond...@gmail.com wrote: i also have the same problem.. i have this setup: public class Entry extends JavaScriptObject { protected Entry() { } public final native String getWidth() /*-{ return this.Width; }-*/; public final native String getHeight() /*-{ return this.Height; }-*/; } public class ResponseEntries extends JavaScriptObject { protected ResponseEntries() { } public final native String getStatus() /*-{ return this.Status; }-*/; public final native JsArrayEntry getEntries() /*-{ return this.Entries; }-*/; } the json string looks like this, but i can't seem to create the proper js overlay type.. how to nest javascriptobjects?? { Status:Success, Entries: [ { Width:10, Height:20 }, { Width:15, Height:25 } ] } On May 31, 9:22 pm, powwow jimmy.w...@gmail.com wrote: I have this in my html and I can use JavaScriptOverlaytypesno problem and it works: script var properties = {width:640, height:480}; /script public class Properties extends JavaScriptObject { protected Properties() { } public final native String getWidthString() /*-{ return this.width; }- */; public final native String getHeightString() /*-{ return this.height; }-*/; } However, when I start nesting objects like below I do not know how to extract the property object from properties. script var properties = {property:{canvasWidth:1920, canvasHeight: 1200, width:640, height:480, fps:15, bgcolor:#FF}}; /script What do I need to do to get the properties object, and then get to the property object? -- 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: Using Javascript Overlays vs. Manually setting up POJO instances?
My TNativeList is a list-like wrapper around a JS array (http:// code.google.com/p/tyco/source/browse/trunk/tyco-gwt/src/main/com/ googlecode/tyco/gwt/tikray/client/TNativeList.java). It is used by TList, a List implementation that maps a JS array to a List without (too much) overhead. The following unittest is an example of ListString member: http://code.google.com/p/tyco/source/browse/trunk/tyco-gwt/src/test/com/googlecode/tyco/gwt/tikray/client/collection/GwtTestCollection.java . I plan to reduce this code be providing a default list where the list if null. Currently, my code allows the members of: - primitive types (int, boolean...) - wrapper types (Integer, Boolean...) - String - Collection/List of wrapper types or String - Collection/List of JSO - Collection/List of TObject (something generated by my generator) Adding Map is not so hard, I just have no need it before ;). Olivier On 10 juin, 12:53, Roger Studner rstud...@gmail.com wrote: The only problem I found with this interface technique (which I immediately wanted) was this: public interface MyEntity { ListString getNames(); } The javascript overlay type has to deal in JSArray's, the server can't etc. So for all lists/collections I found it broke down pretty quick Roger On Jun 10, 2010, at 5:55 AM, Olivier Monaco wrote: You have also some framework like piriti allowing easy mapping between JSON and Java object. But I don't like them because their overhead. I use another approach. My model is made of interfaces. I share the interfaces between the server and GWT. For GWT, I have a generator that automatically implements the interface as a wrapper around the JSO. This wrapper is a zero-overhead implementation (just method forward). You can find my generator here if it can help you: http://code.google.com/p/tyco/source/browse/trunk/tyco-gwt/src/main/c... And you have some unittests here: http://code.google.com/p/tyco/source/browse/trunk/tyco-gwt/src/test/c... Olivier On 10 juin, 01:06, rhodebump rhodeb...@gmail.com wrote: I did some reading up on RPC. Sounds like it would be perfect except for the face that it is limited by the Same Origin Policy, so I can't use it. I wish we could do an RPC with JsonpRequestBuilder Thanks for your insight, you have convinced me to do the Javascript Overlays. I do like type safety and it sounds like it would be more efficient. Phillip On Jun 9, 5:52 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: I am assuming you have a strong reason not to use standard RPC - because if you really have POJO's on the server side, reusing the same objects on the client side should be a breeze. It always makes sense to Javascript Overlays, otherwise you loose type safety and all the other advantages java has over javascript. It is a pain to maintain two versions for the same entity, but the advantages far outweigh the inconvenience. You can perhaps even build a small utility that generates the overlays -- shouldn't be too difficult. And finally, if it eases your pain, most people end up having DTOs and Model objects *even if* they use regular RPC. That's because the POJO's you have on the server may be a complex hierarchy of objects; what you want on the client side is usually pretty simple and doesn't have deep hierarchies. --Sri On 10 June 2010 02:56, rhodebump rhodeb...@gmail.com wrote: I have several Java classes that I am using on the serverside, and I am using these same classes to serialize the JSON stream back to my GWT application. I am using the JsonpRequestBuilder to call my service and it is successfully returning a JavascriptObject. What is the recommended approach to getting my objects from the json response?, should it be a) coerce my JavaScriptObject into a string and use the JsonParser, or b) write a 2nd implementation of my classes using Javascript overlays? I don't really like either approach, one option means having 2 types of objects that I would need to keep in sync (the pojo and the Javascript overlay) and the other way means I have to traverse the Json myself, populating my object glyph manually. Either way, ouch. Thanks for listening, Phillip -- 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
Re: Using jqPlot library (javascript chart) with the MVP pattern
Because the array is bound to the sub-frame used by GWT. When you create an array using [], the Array function is called. This is the same as new Array(). Then the following condition returns true: [].constructor == Array. But, there is an Array function for each frame. If you create an array in one frame, and use the same comparison in another, it will returns false. You must create your array using new $wnd.Array(). That's another reason to do a real wrapper ;). Olivier On 10 juin, 14:06, Rizen vianney.dep...@gmail.com wrote: I'm a stupid boy... I forgot to replace ALL $.jqplot() by $wnd. $.jqplot(); It's an improvement, but now the error has changed by : com.google.gwt.core.client.JavaScriptException: (String): Improper Data Array The table works in a HTML page, so I don't know why not here :/ I'm going to continue my research. Thanks a lot for your help. -- 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 in ListBox
Hi, Try using a self-closing tag. g:ListBox ui:field=.../ Olivier On 8 juin, 08:32, Kuldeep Poonia kpoon...@gmail.com wrote: Hi all, I hava a variable name in Class Base and want to bind this to the listbox. so i use @ListBox name. and in ui.xml i use g:ListBox ui:field='name'/g:ListBox/td but it shows error that list cannot have hasText ot HasValue super interface. Plz Help whar can i do. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 theming
David, I use something like that. To easy manage my CSS class names, I use a generator similar to the CssResource-generator. I define an interface extending Identifiers with one method for each CSS class name: interface MyCssClasses extends Identifiers { public String firstClass(); public String secondClass(); } My generator create an implementation that returns the name of the method for each one. This allow refractoring and avoid typo-error. I also added some annotation to allow name override (@Identifier) and case transformation (@Transform). I also use it each time an identifier is needed. You can find my code here: http://code.google.com/p/tyco/source/browse/#svn/trunk/tyco-gwt/src/main/com/googlecode/tyco/gwt/user Hope this helps, Olivier On 8 juin, 21:42, David Grant davidgr...@gmail.com wrote: Any suggestions on how to do theming, ie. to allow a new theme to be created in the future as a separate css file that can be switched on/off at runtime. I also don't want just global CSS though, I want CSS scope as local as possible but I want to be able to expose some CSS to be themable. Here's my idea about how to organize our CSS to do this: 1) Shared CSS file - contain some styles that are shared across all widgets like fonts 2) Local CSS stuff - stuff that applies only to 1 widget or so, this will be inside the widget's ui.xml file, or in a separate css file and referened from the ui.xml file 3) Theme CSS file - there will be several, all of which extend from some interface that defines classes that can be then modified by a theme's css file So within any one ui.xml file I might be referring to some local css, the shared css, or the theme's css. Any comments? -- 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: JSONParser can't parse some unescaped unicode characters
Hi, JSONParser must only be used with trusted JSON because it uses eval(). Thing about using a real JSON parser. This will avoid problem like this one. As a JSON parser example, you can see my port of the JavaScript parser from json.org: http://code.google.com/p/tyco/source/browse/#svn/trunk/tyco-gwt/src/main/com/googlecode/tyco/gwt/client/json It uses the native JSON parser if available, and uses a JavaScript implementation otherwise. I know someone try to do something similar into GWT but had some issues. I hope a true JSON parser will come soon. Olivier On 8 juin, 10:15, Boris Granveaud bgran...@gmail.com wrote: @gmail.com wrote: On Jun 7, 11:00 am, Boris Granveaud bgran...@gmail.com wrote: Hi, It seems that JSONParser doesn't like some unicode characters if they are not escaped with \u: public class Test implements EntryPoint { public void onModuleLoad() { for (char c = 0x2000; c 0x2050; c++) { String str = {\string\:\ + c + \}; try { JSONValue json = JSONParser.parse(str); } catch (Exception e) { System.out.println(JSON parse error char= + Integer.toHexString((int) c)); } } } } In GWT 2.0.3 emulator, I've got the following results: - Chrome 5.0 and FF 3.6: error with character 0x2028 and 0x2029 - IE 8.0: no error It works if I escape the characters with \u2028 and \u2029. This is because GWT for now uses eval() to parse JSON, and U+2028 and U+2029 are line terminators in JavaScript (per spec). Quoting ECMASCript 5, which defines JSON.parse: JSON uses a more limited set of white space characters than WhiteSpace and allows Unicode code points U+2028 and U+2029 to directly appear in JSONString literals without using an escape sequence. I'm using Jackson on server-side to generate the JSON string which is sent to my GWT application and it doesn't escape by default these characters. As a workaround, I've implemented a Jackson custom serializer. Jackson is right, as these aren't special characters in JSON, but on the other hand, it could escape them to cope with web apps that eval() the result instead of JSON.parse()ing it. if someone is interested by the workaround, it is now on Jackson wiki:http://wiki.fasterxml.com/JacksonSampleQuoteChars there are also several issues regarding escaping in JIRA: http://jira.codehaus.org/browse/JACKSON-102http://jira.codehaus.org/browse/JACKSON-262http://jira.codehaus.org/browse/JACKSON-219 Boris. -- 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 in ListBox
Please give a small use case. On 9 juin, 11:51, Kuldeep Poonia kpoon...@gmail.com wrote: Hi Olivier Thanks for Reply. But same problem comming The UiField com.google.gwt.user.client.ui.ListBox itemName does not have a HaxText or HasValue super-interface On Jun 9, 11:14 am, Olivier Monaco olivier.mon...@free.fr wrote: Hi, Try using a self-closing tag. g:ListBox ui:field=.../ Olivier On 8 juin, 08:32, Kuldeep Poonia kpoon...@gmail.com wrote: Hi all, I hava a variable name in Class Base and want to bind this to the listbox. so i use @ListBox name. and in ui.xml i use g:ListBox ui:field='name'/g:ListBox/td but it shows error that list cannot have hasText ot HasValue super interface. Plz Help whar can i do. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Using jqPlot library (javascript chart) with the MVP pattern
Try to replace your $.jqplot by $wnd.$.jqplot. The window object where the JSNI is run is not the main window. You can access it through $wnd. Olivier On 9 juin, 11:39, Rizen vianney.dep...@gmail.com wrote: Finally I think I'm going to try with the JavaScriptObject class, cause I can cast it in Element object. public class CallChartView extends Widget implements CallChartPresenter.Display { public CallChartView() { setElement(Element.as(createChart())); } public native JavaScriptObject createChart() /*-{ line1 = [1,4,9, 16]; line2 = [25, 12.5, 6.25, 3.125]; plot = $.jqplot('chart1', [line1, line2], { legend:{show:true, location:'ne'},title:'Bar Chart', series:[ {label:'Profits', renderer: $.jqplot.BarRenderer}, {label:'Expenses', renderer: $.jqplot.BarRenderer} ], axes:{ xaxis:{renderer:$.jqplot.CategoryAxisRenderer}, yaxis:{min:0} } }); return plot; }-*/; } But now I have an error from the GWT console : $ is not defined. I have already tried to change the javascript configuration but the problem is always present. -- 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: Using jqPlot library (javascript chart) with the MVP pattern
Okay, next try (I've read your post this time ;)). You want to cast a JavaScriptObject to an Element. You can... but it's a bad idea. A Widget needs an Element because it offer some DOM manipulation. Providing a JSO may lead to strange behavior. You need to write a clean GWT wrapper around jqPlot. For your current problem, $ is not defined, are you sure you have included the jqPlot library? Using the FireBug's console, can you access the $ (try typeof($))? Olivier On 9 juin, 13:04, Rizen vianney.dep...@gmail.com wrote: I've already tried but it's exactly the same problem. Here is a part of the error log : [...] com.google.gwt.core.client.JavaScriptException: (ReferenceError): $ is not defined fileName:http://127.0.0.1: lineNumber: 4 stack: ()@http://127.0.0.1::4 [...] -- 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: Using jqPlot library (javascript chart) with the MVP pattern
For the $, maybe the library is not loaded when you try to create your chart. As I told before, you need to write a wrapper. This wrapper create the div needed by jqPlot and add an unique ID to it. This ID is used as the first argument to jqPlot JavaScript function. But you can't create your chart in your Widget constructor. The div is not attached to the DOM so jqPlot will no find it. You need to create your chart when onLoad is called. This can look like (not tested): class JqPlot extends Widget { // Used to generate unique ID private static int count = 0; public JqPlot() { setElement(Document.get().createDivElement()); // Add a unique id to your div getElement().setId(__jsplot__gwt__ + count++); } @Override public void onLoad() { // Now the div is attached to the DOM, jqPlot will find it createGraph(getElement().getId()); } private native void createGraph(String id) /*-{ ... $.jsPlot(id, ); }-*/; } But you need many more work. You need to handle multiple call to onLoad. You need also to wrap all arguments needed by jsPlot and cache them into your Widget until you create the chart... You problem is not jqPlot and MVP, it's just jqPlot and GWT. Olivier On 9 juin, 15:55, Rizen vianney.dep...@gmail.com wrote: I want to cast a JavaScriptObject to an Element cause I think is the best solution for the moment. Using the MVP architecture I don't know how to do that in a different way. If there is something better I will be interested as well. About the problem with $, I wrote typeof($) in FireBug's console. It return function. So I think it's ok for the include, I've tried via the .html and the xml configuration. Thank you very much for your help until now. -- 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: HttpSession session = getThreadLocalRequest().getSession() Null Pointer Exception
Hi, the getThreadLocalRequest() as it sound returns the request stored *during* the request/response in a ThreadLocal. So if it return null it's because it is not the same thread ;) On Tue, Jun 8, 2010 at 11:05 AM, KenJi_getpowered mikael.k...@gmail.comwrote: Hello every body, I can't figure out why there is a Null Pointer Exception here. I am trying to share informations through sessions within my application. I have a regular servlet that sets the session and insert a login. then I wanted to retrieve that login into a RemoteServiceServlet with that instruction : HttpSession session = getThreadLocalRequest().getSession(); but as I said it gives me a NPE. What is wrong? Also I can't find any good documentation on working with sessions with GWT. Do you have any solution? or at least explanation? -- 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. -- Computers are useless. They can only give you answers. - Pablo Picasso - -- 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: ClickHandler not called on second click
Danny, What your click handler does? May be it puts some (transparent) element in front of the button... How do you use the PushButton? What is the exact structure of panels? You need to build a test case to us help you. Olivier On 2 juin, 08:02, Danny Goovaerts danny.goovae...@gmail.com wrote: I have not yet been able to isolate the code while reproducing the problem. It's probably related to the actual structured of the page. But I managed to get some more information using the debugger. - The problem occurs when using a PushButton (constructed using the constructor PushButton(Image image)), not when using a simple Button - In the class CustomButton when the method onBrowserEvent is called for a MOUSUP event : ... case Event.ONMOUSEUP: if (isCapturing) isCapturing = false; DOM.releaseCapture(getElement()); if (isHovering() event.getButton() == Event.BUTTON_LEFT) { onClick(); } } break; ... isHovering() returns true at the first click while it returns false at the subsequent clicks The method isHovering is implemented as follows final boolean isHovering() { return (HOVERING_ATTRIBUTE getCurrentFace().getFaceID()) 0; } At the first click getCurrentFace().getFaceID()) evaluates to 3, while at the subsequent clicks, it evaluates to 1. So there is probably something wrong in setting the correct face in the particular situation. I hope that this can provide enough information to find the real root cause. Danny On Jun 1, 6:21 pm, Danny Goovaerts danny.goovae...@gmail.com wrote: My application is quite large. The button is several levels deep, i.e. in a FlowPanel which itself is in a HorizontalPaneI in a hierachy of divs. I will try to isolate while still reproducing the error. I would also try to step through the code in a debugger, but unfortunaly for this I need to move the mouse from the page to Eclipse, which prevents from reproducing the error. Danny On Jun 1, 4:17 pm, Ranjan ranjan.n...@gmail.com wrote: Something like that should not have gone unnoticed for so long. Could you post your code snippet? On Jun 1, 12:07 pm, Olivier Monaco olivier.mon...@free.fr wrote: Danny, I had no problem (in dev mode). Here is my test case: public void onModuleLoad() { Button b = new Button(click me); b.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { RootPanel.get().add(new Label(clicked)); } }); RootPanel.get().add(b); } What's your test case? Olivier On 1 juin, 08:07, Danny Goovaerts danny.goovae...@gmail.com wrote: I have a button with a ClickHandler. When I move the mouse over the button and click the button, the ClickHandler is called. When I do no move the mouse away from the button, the ClickHandler is not called on any subsequent clicks. I have to move the mouse away from the button and back. Then the ClickHandler is called when I click again. To investigate, I have added a MouseDownHandler and a MouseUpHandler. These are called on subsequent clicks, only the ClickHandler is not called. As the focus stays on the button, I have tried hitting the enter key. This triggers calling the ClickHandler. I 've tried adding a DeferredCommand to the ClickHandler with a variaty of actions(remove focus, remove focus and set focus again), but this does not change anything. Environment - GWT 2.0.3 - Vista - Chrome 6.0.408.1 dev / Firefox 3.5.9/ Internet Explorer 7.0 There are several posts in this forum that describe a similar behaviour (e.g.http://groups.google.com/group/google-web-toolkit/browse_thread/threa...) but none have a solution. Any idea how to solve this? Thanks in advance, Danny -- 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: ClickHandler not called on second click
Danny, I had no problem (in dev mode). Here is my test case: public void onModuleLoad() { Button b = new Button(click me); b.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { RootPanel.get().add(new Label(clicked)); } }); RootPanel.get().add(b); } What's your test case? Olivier On 1 juin, 08:07, Danny Goovaerts danny.goovae...@gmail.com wrote: I have a button with a ClickHandler. When I move the mouse over the button and click the button, the ClickHandler is called. When I do no move the mouse away from the button, the ClickHandler is not called on any subsequent clicks. I have to move the mouse away from the button and back. Then the ClickHandler is called when I click again. To investigate, I have added a MouseDownHandler and a MouseUpHandler. These are called on subsequent clicks, only the ClickHandler is not called. As the focus stays on the button, I have tried hitting the enter key. This triggers calling the ClickHandler. I 've tried adding a DeferredCommand to the ClickHandler with a variaty of actions(remove focus, remove focus and set focus again), but this does not change anything. Environment - GWT 2.0.3 - Vista - Chrome 6.0.408.1 dev / Firefox 3.5.9/ Internet Explorer 7.0 There are several posts in this forum that describe a similar behaviour (e.g.http://groups.google.com/group/google-web-toolkit/browse_thread/threa...) but none have a solution. Any idea how to solve this? Thanks in advance, Danny -- 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: Calling Methode using JSNI failed
And autoboxing does not works in JSNI. th...@de.test.designer::sendNode(Ljava/lang/String;Ljava/lang/ Integer)(TEST,@java.lang.Integer::new(I)(100)); Or change your sendNode method to take an int. Olivier On 1 juin, 04:25, Jim Douglas jdoug...@basis.com wrote: You should start by carefully reading the JSNI documentation: http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI...http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-g... A simple JSNI method looks like this (note the specially formatted braces, which Java sees as a comment block, and therefore ignores): public static native void alert(String msg) /*-{ $wnd.alert(msg); }-*/; On May 31, 3:25 pm, malibubu webmas...@mailball.de wrote: Sorry, this was a typo. I also tried the signature th...@de.test.designer::sendNode(Ljava/lang/String;I)(TEST,100); with methode sendNode(String id, int x) Same problem :( On 31 Mai, 23:48, kozura koz...@gmail.com wrote: Maybe try with int x and use I instead of the Integer class. Also even as is, your Integer method signature isn't quite right: land- lang. On May 31, 3:15 pm, malibubu webmas...@mailball.de wrote: Hi, I've the following class: package de.test; public class Designer { public native void addNode() { alert(Pre JSNI); th...@de.test.designer::sendNode(Ljava/lang/String;Ljava/land/ Integer)(TEST,100); alert(Post JSNI); } void sendNode(String id, Integer x) { GWT.log(It Works!); } } If addNode() is called, the first Alert is shown. Then, the following JS-Error occurs (IE8): Details zum Fehler auf der Webseite Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0) Zeitstempel: Mon, 31 May 2010 21:15:12 UTC Meldung: Das Objekt unterstützt diese Eigenschaft oder Methode nicht. Zeile: 11460 Zeichen: 7 Code: 0 URI:http://localhost:8080/test/test/DDB7CB660FDE7BAFEE5000321CF27CD1.cach... Any ideas what I'm doing wrong? Thank you!- 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 achieve traditional website behavior with layout panels?
You must not use *LayoutPanel for this purpose. Why not native HTML? MyApp.ui.xml !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g='urn:import:com.google.gwt.user.client.ui' ui:style .top { height: 120px; } /ui:style HTMLPanel div class={style.top} g:Button ui:field=buttonClick me/g:Button /div g:FlowPanel ui:field=content / /HTMLPanel /ui:UiBinder MyApp.java public class MyApp extends Composite { ... // UiBinder stuff public MyApp() { initWidget(binder.createAndBind(this)); } @UiHandler(button) void onButtonClick(ClickEvent event) { content.add(new Label(Hello world); } } Not tested... Olivier On 28 mai, 10:39, googelybear googelyb...@gmail.com wrote: @Stefan: I know the term sucks, but it was the best I could come up with ;-) As you concluded my main goal is to have browser scrollbar scrolling and not the inner scrolling (lots of individual scrollbars inside the containers itself, an example for this is google wave). So in your words (...) you have to allow the parents to grow with its child. That's exactly the behavior of the old panels. I'm not really clear on how we could emulate this on the new panels (all my attempts so far failed). To make a simple example: I have a DockLayoutPanel and somewhere a button. There is a FlowPanel in the center. Clicking on that button adds a label to the center panel. Repeatedly clicking that button fills the center panel and at some point additional labels are not displayed anymore (simulates the dynamic content). This is as you wrote because of the overflow:hidden/auto which is set on the DockPanel - in the LayoutPanels in general - (and is IMPOSSIBLE to override by the programmer - at least I didn't succeed). If I add a scrollPanel to the center as parent of the FlowPanel I get said inner scrolling But what I would like to have is that the DockLayoutPanel itself grows (vertically) which forces the browser to display scrollbars. I uploaded the (very simple) demo project here (Just import in eclipse and run):http://drop.io/gwt_dock_panel It would be really great if you could share how to achieve the behavior described above. thanks, Dennis On May 27, 6:55 pm, Stefan Bachert stefanbach...@yahoo.de wrote: Hi Dennis, I still think what traditionalbehaviour should be. (? not following the standards?) However, you don't want scrollbars at your LayoutPanel. The reason why any widget gets a scrollbar is because it is larger than its parent and the style overflow is set to auto or scroll. When the wrong widget get a scrollbar you have to change the size of the panel (div) hierarchy. Or you have to allow the parents to grow with its child. When you do not succeed you need to show us your code or at least the hierarchy ofpanels. Stefan Bacherthttp://gwtworld.de On 26 Mai, 10:33, googelybear googelyb...@gmail.com wrote: Hi, I am developing a webapp that should behave like atraditionalweb page, meaning that when the content grows in height the browser should display a vertical scroll bar. Unfortunately I was foolish and jumped right in on the new, shinylayoutpanels. As I found out later these are not suitable for me, as they create a more application-like look and feel with scrollbars displayed in the individual gwtpanels instead of the browser (try resizing e.g. google wave - When the available area is too small scrollbars will appear inside all the panels, the browser will never display any scrollbars) and also they are working with lots of fixed sizes (in my case the content is dynamic). I tried toachievethetraditionalbehaviorwith my LayoutPanels but failed. I couldn't get the browser to display scrollbars, only inner- panel scrolling, and stuffing a layoutpanel inside a scrollpanel is not the desirable approach (stuffinglayoutpanelsinside non-layout panelsusually ended badly for me..). So my conclusion is to revert to the old schoolpanels. But I am afraid that support of these will be dropped soon. What do you think? Are there better alternatives? Anyone fought with a similar problem? thanks for any suggestions, Dennis -- 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 add an Element object into a Widget.
Replace Composite by Widget and initWidget by setElement... You can also you GWT tables... Olivier On 28 mai, 13:08, Rizen vianney.dep...@gmail.com wrote: Hello, For my project, I would like to create a table in HTML by means of the DOM tree. For this, I'm just using the functions DOM.createTable(), DOM.createTBody(), DOM.createTR()... However the generated table is an Element type. Except that I'm using the MVP as a pattern for my application. So I have to init the main Widget with the function initWidget(), which takes a Widget object as parameter. I was looking for a panel like the HTMLPanel but no method can change or add an Element into a Widget. Is there a method that I can use to cast the Element object in Widget object ? Here is an example of code : public class View extends Composite { public View() { Element table = DOM.createTable(); Element tbody = DOM.createTBody(); Element tr = DOM.createTR(); Element td = DOM.createTD(); tr.appendChild(td); tbody.appendChild(tr); table.appendChild(tbody); // Need a Widget as a type initWidget(table); } } -- 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: Synchronous Calls with RPC??
Carl, Your proposal is interesting. But as a user, if I have to wait, I leave... So many be an application needing some wait a minute popup is not a good approach for the future. Imagine your browser putting a popup each time a page is loading. Tabs will become useless, multi- core computer too and so one... Okay, it's not easy to do such application without popups. And I'm the first to use popup ;). But it can be really, really better. Olivier On 28 mai, 06:36, Carl Pritchett bogusggem...@gmail.com wrote: I'm on the synchronous calls are the wrong approach side, but what would really be useful would be some utility classes that allowed synchronous like approaches. Specifically : - an async batcher that given a list of async services calls all at once and then executes a specified action when all return (it keeps an internal count of async calls returned) - a serialized async batcher that calls a list of async services one at a time and then executes a specified action when the last one returns (each callback triggers the next async call) So you could block all (or part) of the UI with a modal overlay, call the async batcher and set the return action to fire an event to unblock the UI. I found this pattern helpful when loading data from different services while making the user wait till all the data has arrived. It can be a bit more flexible that building lots of services (and the returned objects) into one call. Regards, Carl -- 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 achieve traditional website behavior with layout panels?
I use both. My goal is to be IE8+ compliant, so many problems go away. Then, for others, I use GWT to avoid writing CSS hacks. Be aware that Panels are for Quirks Mode and Layout are for Compliant/ Standard Mode. In the first mode, browser have many differences, which Panels try to correct. In the second mode, there are, for recent browser, less differences. I always write my pages as XHTML (strict if possible) so I don't need many GWT complex component. Finally, for website, I never use Panels like Stack, Dock... because its not for website, it's for app. That the reason there must be replaced by there Layout counterparts. Olivier On 27 mai, 09:51, googelybear googelyb...@gmail.com wrote: I also prefer to do the styling with CSS and not via gwt methods. But I still use the panels as one of the strengths of gwt is that it knows best how to create them in a cross-platform/ cross-browser way and deals with the browser differences for me (at least in theory). I then just style them with CSS to look the way I want. If I would implement everything with html tags I would have to deal with browser differences again and start implementing browser hacks which I want to avoid at all cost. What do you think? Dennis On May 26, 10:06 pm, Olivier Monaco olivier.mon...@free.fr wrote: When I want to create a website like app, I use as many HTML tags as possible with UiBinder. Then, I use CSS to sets the position, border, color... and never the GWT methods. That way, I have a true web site but using GWT. I don't like to create a website-like app (something that looks like a web site but with widgets like in app): you want a website (HTML + CSS) or an app (Widgets + Layout). Olivier On 26 mai, 13:53, googelybear googelyb...@gmail.com wrote: Are you not afraid that they will get removed soon? I always get deprecated warnings when using them: StackPanel is deprecated. Use the StackLayoutPanel instead. and same for others (DockPanel, TabPanel, ...). What's the official policy on this? On May 26, 11:49 am, Olivier Monaco olivier.mon...@free.fr wrote: For a traditionnallayout, I use the old schoolpanels. It's not really a old school, it just has another goal. Olivier On 26 mai, 10:33, googelybear googelyb...@gmail.com wrote: Hi, I am developing a webapp that should behave like atraditionalweb page, meaning that when the content grows in height the browser should display a vertical scroll bar. Unfortunately I was foolish and jumped right in on the new, shinylayoutpanels. As I found out later these are not suitable for me, as they create a more application-like look and feel with scrollbars displayed in the individual gwtpanels instead of the browser (try resizing e.g. google wave - When the available area is too small scrollbars will appear inside all the panels, the browser will never display any scrollbars) and also they are working with lots of fixed sizes (in my case the content is dynamic). I tried toachievethetraditionalbehaviorwith my LayoutPanels but failed. I couldn't get the browser to display scrollbars, only inner- panel scrolling, and stuffing a layoutpanel inside a scrollpanel is not the desirable approach (stuffinglayoutpanelsinside non-layout panelsusually ended badly for me..). So my conclusion is to revert to the old schoolpanels. But I am afraid that support of these will be dropped soon. What do you think? Are there better alternatives? Anyone fought with a similar problem? thanks for any suggestions, Dennis -- 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.