GWT UIBinder - unrecognized text in g:VerticalPanel
When you use Eclipse Google plugin to create a new EntryPoint class, it gives you one with a simple RPC example with a DialogBox. I translated the DialogBox to a UIBinder. [code] g:DialogBox ui:field=dialogBox text=Remote Procedure Call g:VerticalPanel styleName={style.important} animationEnabled=true horizontalAlignment=ALIGN_RIGHT g:LabelSending name to the server:/g:Label g:Label ui:field=textToServerLabel/ g:LabelServer replies:/g:Label g:HTML ui:field=serverResponseLabel/ g:Button ui:field=close text=Close/ /g:VerticalPanel /g:DialogBox [/code] But GWT complains about unrecognised text in g:VerticalPanel about these three attributes. styleName={style.important} animationEnabled=true horizontalAlignment=ALIGN_RIGHT The example ran successfully after I removed those three lines. OK, how then do set style, animation and alignment in g:VerticalPanel?? No, no, no ... not in the Java code, phleaze. Don't want to write extra code to connect uibinder elements to set methods of GWT widgets. Otherwise, what's the point in using UIBinder? It would be so much less tedious using plain old GWT. Where's the manual for UIBinder indicating/explaining all the usable attributes in each corresponding GWT widget. -- 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 java mail api
Maybe I wasn't clear... I'm NOT using AppEngine, it's disabled and I don't want to use it... So I don't know if this is the right place to ask help but my mail method works outside GWT and doesn't work inside a GWT project... I don't know maybe the thing I'm trying to do can't be done in GWT hosted mode... On 30 Gen, 21:48, Cristian Nicanor Babula nicanor.bab...@gmail.com wrote: You want your application to run on appengine? If not, please make sure to disable appengine integration for your project. On 1/30/2010 8:16 PM, Jeff Schnitzer wrote: You should try the AppEngine mailing list. Your problem is unrelated to GWT. Jeff On Sat, Jan 30, 2010 at 8:14 AM, loucatlou...@gmail.com wrote: Hi everybody! I'm trying to send a mail through an RPC call. The server method uses Java mail api. I used tha same method in different project and I'm able to send the email both using Junit or Tomcat... but when I use it in my GWT project, even if the RPC call gives the result onSuccess, I have this exception: -- Loading META-INF/javamail.providers from jar:file:/C:/documenti/ workspaces/javalou/provatesina/war/WEB-INF/lib/appengine-api-1.0- sdk-1.2.6.jar!/META-INF/javamail.providers DEBUG: loading new provider protocol=gm, className=com.google.appengine.api.mail.stdimpl.GMTransport, vendor=null, version=null javax.mail.NoSuchProviderException: Unable to locate provider for protocol: smtp - I'm using GWT 1.7.1 without the AppEngine... do I have to include something or fix something? 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 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.
how to use Comet on Gwt?
hi i'm gwt newbie , and want to make a multiplayer TicTacToe with GWT Comet for proof of concept. i found GWT-Comet , gwt-comet-streamhub , rocket-gwt and... and i dont know which one should i use. does GWT supports Comet or i should use one of mentioned projects? please help me on selecting the best. 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.
IE7 issue in Vista
Dear All; i have updated my GWT 1.7 to GWT 2.0 it works fine in XP x86... IE7 and firefox. but the problem is when i try to run the development mode in Vista. i can not open it in IE7.. it gives me javascript error... or i think so it is a javascript error.. but the problem i guess that vista is a 64 bit OS. and the plugin is a 32 bit.. is there any solution to this problem. and works around.. and does anybody knows when Google will update their plugin for firefox 3.6. thanks -- ~~~With Regards~~~ Muhannad Dar-Nasser ~~Computer Systems Engineering~~ -- 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 UIBinder - unrecognized text in g:VerticalPanel
Never mind! I moved stylename and animation to dialogbox from verticalpanel. It works. Sorry for the confusion. OK! UI Binder is Gwwweat! Perhaps, much better than JavaFx or Silverlight (i.e., any plans for a desktop non-servlet version of UIBinder?) What are the plans for GWT and UIBinder for exploiting html5? -- 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 Comet on Gwt?
It depends if you want to pay for it or not. On Sun, Jan 31, 2010 at 12:11 PM, bamd...@gmail.com bamd...@gmail.comwrote: hi i'm gwt newbie , and want to make a multiplayer TicTacToe with GWT Comet for proof of concept. i found GWT-Comet , gwt-comet-streamhub , rocket-gwt and... and i dont know which one should i use. does GWT supports Comet or i should use one of mentioned projects? please help me on selecting the best. thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to use Comet on Gwt?
On Sun, Jan 31, 2010 at 1:13 PM, mariyan nenchev nenchev.mari...@gmail.comwrote: It depends if you want to pay for it or not. On Sun, Jan 31, 2010 at 12:11 PM, bamd...@gmail.com bamd...@gmail.comwrote: hi i'm gwt newbie , and want to make a multiplayer TicTacToe with GWT Comet for proof of concept. i found GWT-Comet , gwt-comet-streamhub , rocket-gwt and... and i dont know which one should i use. does GWT supports Comet or i should use one of mentioned projects? please help me on selecting the best. thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to use Comet on Gwt?
On 1/31/10 11:11 AM, bamd...@gmail.com wrote: hi i'm gwt newbie , and want to make a multiplayer TicTacToe with GWT Comet for proof of concept. i found GWT-Comet , gwt-comet-streamhub , rocket-gwt and... and i dont know which one should i use. does GWT supports Comet or i should use one of mentioned projects? please help me on selecting the best. thanks There's also http://code.google.com/p/gwteventservice/ which is a nice (according to me) server-to-client event bus. -- 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 java mail api
Remove appengine-api-1.0-sdk-1.2.6.jar from class path if you do not use it. 2010/1/31 loucat lou...@gmail.com Maybe I wasn't clear... I'm NOT using AppEngine, it's disabled and I don't want to use it... So I don't know if this is the right place to ask help but my mail method works outside GWT and doesn't work inside a GWT project... I don't know maybe the thing I'm trying to do can't be done in GWT hosted mode... On 30 Gen, 21:48, Cristian Nicanor Babula nicanor.bab...@gmail.com wrote: You want your application to run on appengine? If not, please make sure to disable appengine integration for your project. On 1/30/2010 8:16 PM, Jeff Schnitzer wrote: You should try the AppEngine mailing list. Your problem is unrelated to GWT. Jeff On Sat, Jan 30, 2010 at 8:14 AM, loucatlou...@gmail.com wrote: Hi everybody! I'm trying to send a mail through an RPC call. The server method uses Java mail api. I used tha same method in different project and I'm able to send the email both using Junit or Tomcat... but when I use it in my GWT project, even if the RPC call gives the result onSuccess, I have this exception: -- Loading META-INF/javamail.providers from jar:file:/C:/documenti/ workspaces/javalou/provatesina/war/WEB-INF/lib/appengine-api-1.0- sdk-1.2.6.jar!/META-INF/javamail.providers DEBUG: loading new provider protocol=gm, className=com.google.appengine.api.mail.stdimpl.GMTransport, vendor=null, version=null javax.mail.NoSuchProviderException: Unable to locate provider for protocol: smtp - I'm using GWT 1.7.1 without the AppEngine... do I have to include something or fix something? 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 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.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.
Custom UiBinder Parser for custom Widgets
Hi All, Is it possible to extend the capability of UiBinder by providing specialized parsers for my own widgets? Thanks, Cristiano -- 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.
java applet
i am trying to run an applet inside my gwt code via htmlpanel it works fine until i add the display: none style attribute and then remove it the applet stop being responsive anyone knows why??? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to customize DecimalFormat?
I'm using NumberFormat.getDecimalFormat() which does almost what I want. All I want to do is remove the leading US from the formatting, I want to keep everything else including the $ sign. How can I do this? It isn't clear to me how these casn be customized, can someone point me to a sample or something? 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 use Comet on Gwt?
You don't have to pay $$$, but pay with your work. Each way to do comet or like needs some work depends on backend and frontend technologies. I'm using lighthttp + fastCGI + xmlrpc backend with gwt-xml-rpc frontend but this is only my way. -- 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 customize DecimalFormat?
I think you meant to say getCurrencyFormat(). You'll want to read these pages: http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/i18n/client/NumberFormat.html http://code.google.com/webtoolkit/doc/latest/DevGuideI18nLocale.html And play with this sample: http://gwt.google.com/samples/Showcase/Showcase.html#CwNumberFormat On Jan 31, 7:11 am, dhoffer dhoff...@gmail.com wrote: I'm using NumberFormat.getDecimalFormat() which does almost what I want. All I want to do is remove the leading US from the formatting, I want to keep everything else including the $ sign. How can I do this? It isn't clear to me how these casn be customized, can someone point me to a sample or something? 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.
Startup needs gwt/java programmer...
Hi, I have a gwt SaaS product that is hosted on ec2/s3 and has 2 active customers. These customers are primarily small businesses based in india. I have developed this ( one man team ) in the past few months but I need help now for someone to take over the development effort as I want to focus on sales/demos/requirements etc. This position initially is only for equity with some percentage of sales possibly. As the product is live and mostly developed, most of the new work will be bug fixing, reports generation ( birt ) and some enhancements. Some new features will be introduced based on feedback. If interested, check out the product at http://frames.geazy.com and drop an email to padysr...@hotmail.com. Thanks gd -- 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 Comet on Gwt?
check instant messeger application's source from http://gwtapps.com/ it is a book web site... I think it is very good. I used that book when I was developing this: http://tr.im/iflagame -- 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 module 'XYZ' may need to be (re)compiled
Hi, if you are using GWT plugin in eclipse, you can right click mouse on your project, there is an option Google and select GWT Compile. This will solve your issue. Steve On Dec 11 2009, 9:48 pm, Chris Ramsdale cramsd...@google.com wrote: I would definitely suggest deleting your war dir, doing clean on all components, build, and then try deploying again. On Fri, Dec 11, 2009 at 12:55 PM, graffle...@gmail.com graffle...@gmail.com wrote: I have upgraded to GWT 2.0 - all works fine in DevMode When I build a .war file and deploy it to my tomcat6 server, the browser displays an alert GWT module 'XYZ' may need to be (re) compiled when I bang the url. Is it possible that one of my sub-modules needs to be recompiled under V2.0? I'm using GXT and Gilead (aka hibernate4gwt). Many thanks on any input. - Bob -- 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.
UiBinder and attributes
I was wondering when we'll be able with the eclipse plugin to have auto-completion on our widget when it comes to add attributes like horizontalAlignment, size, etc. It would be a real time saver and pain saving complement. Btw, great works, I really love to use UiBinder ! Christian -- 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.
Unable to Use GWT Developer Plugin with Firefox 3.6
Dear Team, i m using GWT 2.0 with MyEclips6.0, i created an sample project with GWT but when i compile and goto browse (FireFox 3.6) that it is asking that a plugin is required , as per give link i download the plugin also, but it's showing error that it is not compatible with FireFox 3.6 wating for Help regards Akhil -- 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: ClientBundle compilation error
ditto this code should work as an imagebundle, i get a compilation error when i follow the migration instructions for ImageBundle to ClientBundle ImageResources, and ClientBundle really solves a problem i have. On Jan 17, 8:11 am, Arunava r.arun...@gmail.com wrote: I am getting an error while usingClientBundlein my project. I have used Eclipse to generate theClientBundle. Also added the following line in Resource interface - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How do I make the server RPC to client?
Might be a silly question, but how do you make this scenario work efficiently: The client sends a message to the server, then displays the server status. Now I'm expecting some other client to respond to my message at a later time, but I don't want to keep polling to see whether the server status has changed. Is there a way for the server to call a procedure on the client when the second client has clicked? Thx. -- 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.
Issues with Embedded History Changes
I was unable to find a solution in the discussion group, and I've been unable to find a solution on my own. I probably missed something and apologize ahead of time for draining someone's time. Here is some code in question: ... public class entry implements EntryPoint, HistoryListener { public onModuleLoad() { RootPanel.get().add(new MenuObject()); History.addHistoryListener(this); } public void onHistoryChanged(String token) { Window.alert(Testing + token); } ... } --- New Class --- public class MenuObject extends MenuBar implements Command { public MenuObject() { super(); this.addItem(new MenuItem(Test, new Command() { public void execute() { History.newItem(Test); } )); this.addItem(new MenuItem(Test1, new Command() { public void execute() { History.newItem(Test1); } )); } } In this case, I've found that the selection of any MenuItem in my custom MenuBar will not cause a change history event to occur. If I were to place a complete MenuBar object in my entry point (not separated into a different class), the change history event will occur. At the same time, the history token updates in either case. There are no problems with the tokens in my browsers. Is there anything that you guys could recommend to get history changes by the external MenuBar class to trigger the history change event? -- 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 navigation
Hello all, I want to navigation between two urls. I have a button the check user details , if the input true i want to go to http://www.google.com for example , if false to go to another url , how can do something like that . any idea please . help me please. -- 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.
Upgrade to GWT 2.0 = java.lang.NullPointerException: No API environment is registered for this thread
I just upgraded my working app from GWT 1.7.0 to GWT 2.0 and now when I try to run it in dev mode I have the following error message: [WARN] /j_spring_security_check java.lang.NullPointerException: No API environment is registered for this thread. at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId (DatastoreApiHelper.java:67) at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppIdNamespace (DatastoreApiHelper.java:77) etc... Any pointer is welcome. Thanks a lot Cyril -- 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.
New Education Project: Convert .asp app into GWT app
Hi, I have an app that is 95% complete as an .asp application. This was being developed internally within an FE College in the UK and I am looking to have it finished and rebuilt in GWT. The College recently changed its policy and wants one single (and highly supported) web based solution to solve all admin issues, they have given full rights and all work to date to me and i am keen to move it over to GWT. Funding is limited to none, but options on stake/shareholding are up for discussion. This is not a major project at this stage, but this small app needs to be finished and released commercially in order to apply for funding for a larger project for the adjoining suite of apps that this will eventually be part of. Interested and experienced parties please get in touch, help required fast. Many thanks Paul Booth -- 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: SuggestBox hides RootLayoutPanel and all its contents
I am getting this behavior with any PopupPanel in IE7, and it is a real killer. I've been moving a 1.71 app to 2.0.0 and in the process changed from DockPanel to DockLayoutPanel. I've tried every DOCTYPE I can think of and nothing will change the behavior. Any new insight into this one? On Jan 13, 2:39 am, Jorge jsle...@gmail.com wrote: Issac and Upendra, Thank you for your response. I don't seem to find any white overlay, when the popup shows GWT adds an Iframe and a div, I understand that the Iframe is there to make the popup draw over such elements as Select inputs and it's positioned exactly surrounding the popup. The div contains the suggestions. I have replicated the same problem in various ways, in IE7 and IE8 compatibility mode, for example, with a DialogBox, if I call center() first and then show() all goes blank but the DialogBox, if I call first show() and then center() every works fine. In the mail sample (2.0) they are called in that order, and if I swap them also goes blank. Another blank screen appears also when I use ListGrid from SmartGwt, that has a little popup to sort the columns, I was running a sample code. The problem only is caused when attaching widgets to RootLayotPanel and using Standards Mode. If I use RootPanel, everything works. My BIG problem is that I'm using DockLayoutPanels and UiBinder to layout the application. The folowing code causes the problem, hope it can be more illustrative. Here I'm not using UiBinder, just a few lines of code to generate and populate the DockLayoutPanel -- Test.java -- package test.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.dom.client.Style.Unit; import com.google.gwt.user.client.ui.DockLayoutPanel; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.MultiWordSuggestOracle; import com.google.gwt.user.client.ui.RootLayoutPanel; import com.google.gwt.user.client.ui.SuggestBox; public class Test implements EntryPoint { public void onModuleLoad() { DockLayoutPanel main = new DockLayoutPanel(Unit.EM); //Some text Label text = new Label(This text is going to dissapear); text.setStyleName(big-text); main.addNorth(text,20); //SuggestBox MultiWordSuggestOracle oracle = new MultiWordSuggestOracle(); oracle.add(Cat); oracle.add(Dog); oracle.add(Bird); SuggestBox suggest = new SuggestBox(oracle); main.add(suggest); RootLayoutPanel.get().add(main); } } -- Test.html -- !DOCTYPE HTML html head meta http-equiv=content-type content=text/html; charset=UTF-8 titleTest/title style.big-text{font-size:20px;}/style script type=text/javascript language=javascript src=test/ test.nocache.js/script /head body/body /html -- 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.
Create or alter a module programmatically
Hi there. I'm dedicating some of my time to develop a small framework, to help me create and maintain big GWT apps. I'm already doing some really useful things with generators, but one of my objectives is offer the option to create a lot of modules, without the need to maintain a lot of *.gwt.xml files, and let the developer choose what modules will go to the final build, and what won't. For now, I'm trying to achieve this with an standalone app that is executed before the compiler or devmode, but I'm looking for a better solution. Is there any way to create or alter a module (like adding new source paths) during compile time, using something like generators? From what I could get from the GWT source, it's not possible, but any idea would be appreciated =] 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.
How to apply MVP in Views inside View situation?
I am new to this GWT MVP pattern even though I've been doing GWT for a while. Let me explain the problem I have. There is view in my application which is a list of words and the info within them. It's pretty much like the home page of UrbanDictionary. There are a list of words, and each word has much more info and UI components than ContactsView in Contacts example on Google's MVP tutorial page. My question is if we should not let View know about the data model, then how I can pass those info to this view and also I want to user to navigate to another view when they click word's title, and they can rate each word when they click thumb up or down. So right now I have a DailyWordsView and DailyWordsPresenter. In this view, there should be couple items and each of them represents one word of a day. Now there are two things I can do after I retrieve a list of word infos from server (ListDefinitionInfo). 1, I can create a view for each DefinitionInfo and add it to DailyWordsView. So simply DailyWordsView is a vertical panel and couple WordOfDayViews reside in it. Two problems if I do this. One, there is no action I need from DailyWordsView, because all interactions I need are within each WordOfDayView. Two, when I pass a DefinitionInfo to a WordOfDayView, it doesn't attach to the view-does-not-know-data-model rule anymore. It's more coupled this way. 2, I can only have one view which is DailyWordsView, and awkwardly pass a list of lists of info, it could look something like: void setData(ArrayListDate dates, ArrayListString titles, ArrayListString definers, ArrayListString contents, ArrayListString examples, ArrayListInteger rateUps, ArrayListInteger rateDowns); and then create each item, but not new views, and add them to DailyWordsView. Now it becomes hard for me to keep track on which item is reacting to user's action. So I must have int getClickedRateUpId(ClickEvent event); int getClickedRateDownId(ClickEvent event); int getClickedTitleId(ClickEvent event); in my Display interface in DailyWordsView, and also keep the list of DefinitionInfo for the moment I fire an event. This is more decoupled but very awkward. I am looking for some suggestion to get my out of this bog. Thank you very much. -- 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.
stockwatcher with RPC calls don't run correctly on TOMCAT
Hello, I've compiled the stockwatcher webapp with eclipse and generated the stockwatcher.war file. In developpement mode everything is okay. The stockwatcher.war is extracted correctly on my tomcat server when acceding the stockwatcher webpage, everything looks okay but when i add a stock, an error message is printed : Error: The call failed on the server; see server log for details I don't see anything in my server logs please help, i don't find any mistakes on the code (it is the code of the tutorial). 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.
I can't deploy GWT using Tomcat with Apache Httpd and a proxy
I am trying to deploy my GWT project that use RPC using Tomcat with Apache Httpd and a proxy like the tutorial http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html#DevGuideRPCDeployment . And i can't understand why it's the error 500. I have added these line in httpd.conf file: ProxyRequests Off ProxyPass /org.cuibap.Main/stockpriceservice http://localhost:8080/StockWatcher1/org.cuibap.Main/stockpriceservice ProxyPassReverse /org.cuibap.Main/stockpriceservice http://localhost:8080/StockWatcher1/org.cuibap.Main/stockpriceservice Proxy * Order deny,allow Allow from all /Proxy but when i browse http://localhost/org.cuibap.Main/stockpriceservice , i receive the error 500 -- 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.
Problems with JDO 2 updating
I have an issue regarding updating an object using JDO2 in my testcase and I just cannot figure out what I am doing wrong. The simple usecase I am trying is - a user object is fetched by the DAO, the user modifies something on the UI and hits save which updates the guy in the db. Before I tried dozer and the likes I wanted to try out the simple scenario using a junit from the DAO's perspective. Here is the testcase source: PersistenceManager pm = factory.getPersistenceManager(); Transaction tx = pm.currentTransaction(); tx.begin(); User user = fetchUser(pm); tx.commit(); pm.close(); //change something user.setEmail(j...@samiam.com); user.getEmployee().setFirstName(John); String[] loadedFieldNames = NucleusJDOHelper.getDetachedObjectLoadedFields(user, pm); String[] dirtyFieldNames = NucleusJDOHelper.getDetachedObjectDirtyFields(user, pm); System.out.println(loaded -- + Arrays.asList (loadedFieldNames)); System.out.println(dirty -- + Arrays.asList (dirtyFieldNames)); pm = factory.getPersistenceManager(); tx = pm.currentTransaction(); tx.begin(); pm.makePersistent(user); tx.commit(); pm.close(); pm = factory.getPersistenceManager(); tx = pm.currentTransaction(); tx.begin(); user = fetchUser(pm); tx.commit(); pm.close(); assertEquals(j...@samiam.com, user.getEmail()); ASSERT FAILS A couple of things... 1) I am detaching the User object that is returned from the fetchUser () method using pm.detachCopy(). 2) In the SOP I can see that the email attribute is dirty on the user object. 3) If I use a single transaction for the entire testcase, it works. Obviously though, I need separate transactions. 4) There are no exceptions thrown anyplace. Can someone point out what I am doing wrong here? I might be missing something small. Thanks. -stam -- 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 firefox plugin doesn't work in FF 3.6?
If you're on a mac, use Safari...works perfectly :) On Jan 28, 9:54 pm, mani sub...@gmail.com wrote: I updated to FF 3.6 yesterday and fired up a GWT app on it. The plugin failed to load (FF complains that it is not compatible with 3.6 Any suggestions? -- 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.
Rocket compatibility with GWT 1.6 and higher versions
I am working on a project in which rocket-gwt (more specifically comet) is heavily used. The project is using GWT 1.5.3 When i upgraded it to GWT 1.6, I am facing compile errors. I used the Rocket-GWT1.6.zip which was available http://code.google.com/p/rocket-gwt/issues/detail?id=64 The compilation starts but then after some time it gives StackOverflowError. This happens when binding of a class that extends CometClient is going on. Can anyone pls 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: More than one constructor annotated with @UiConstructor
Hi Nina, Did you get an your questions answered? If so, could you share them? I'm working through migration of old GWT code to use UiBinder, and had related issues. UiBinder has eliminated hundreds of lines of my old code, and the app loads faster overall since the UI is much thinner (horray!). My interpretation of the style of GWT architecture leads me to believe that there should only be one UiConstructor annotation, and that it should be on the constructor that accepts all possible arguments. This jives with the error message you received. The binding clearly works based on Java argument names, but are there other ways to bind? How can I use a Widget in a constructor within a UiBinder template? Thus far I've only been able to set primitives and Strings in a @UiConstructor annotated class within a ui.xml. I'd like to see an example of setting a Widget. For example, how can I do this: @UiConstructor public ImageHyperlink(final Image img, String targetHistoryToken) {// etc} then: my:ImageHyperlink ui:field='aHyperlink' targetHistoryToken='nextstate' img='prettyImage' / I'm having trouble getting the prettyImage to work. Is this the right way to do this? thanks, Jason -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
UiBinder and 503 HTTP error
Hi, I tried to do the first tutorial on UiBinder (hello world) in this page: http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html but when i run it I get this error: HTTP ERROR: 503 SERVICE_UNAVAILABLE RequestURI=/TestPanel.html Powered by jetty:// ideas? Thanks Lorenzo -- 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 navigation
Take a look at Window.open or Window.location. Kinda RTM. On 1/31/2010 9:33 AM, joe7935 wrote: Hello all, I want to navigation between two urls. I have a button the check user details , if the input true i want to go to http://www.google.com for example , if false to go to another url , how can do something like that . any idea please . help me please. -- 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: stockwatcher with RPC calls don't run correctly on TOMCAT
Make sure that the servlet mappings and the @RemoteServiceRelativePath urls match. On 1/30/2010 11:02 PM, Mathias wrote: Hello, I've compiled the stockwatcher webapp with eclipse and generated the stockwatcher.war file. In developpement mode everything is okay. The stockwatcher.war is extracted correctly on my tomcat server when acceding the stockwatcher webpage, everything looks okay but when i add a stock, an error message is printed : Error: The call failed on the server; see server log for details I don't see anything in my server logs please help, i don't find any mistakes on the code (it is the code of the tutorial). 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 do I make the server RPC to client?
It's not possible, because the browser closes the connection as soon as the server responds. The only way is to keep pooling the server. Even though http is not udp, from a javascript point of view, it acts like udp. On 1/30/2010 3:38 AM, JA wrote: Might be a silly question, but how do you make this scenario work efficiently: The client sends a message to the server, then displays the server status. Now I'm expecting some other client to respond to my message at a later time, but I don't want to keep polling to see whether the server status has changed. Is there a way for the server to call a procedure on the client when the second client has clicked? Thx. -- 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.
Where does YourProject.gwt.xml go when you want to export to jar?
Hi, I have a typical project structure that I'd like to export into a jar for import as a module into another gwt project: src com.me.test client Blah.java Test.gwt.xml so Test.gwt.xml is at the same level as the client package. My second project inherits it like this in its xml file: inherits name=com.me.test.Test/ When I export and use in my other project, all is well until I run it (compiles fine). I get this error at load time: 14:58:37.865 [TRACE] [testdemo] Finding entry point classes 14:58:37.868 [ERROR] [testdemo] Unable to find type 'com.me.test.client.Test' 14:58:37.888 [ERROR] [testdemo] Hint: Check that the type name 'com.me.test.client.Test' is really what you meant 14:58:37.927 [ERROR] [testdemo] Hint: Check that your classpath includes all required source roots so it looks like it's expecting the Test.gwt.xml file to actually be under the client package, instead of where GWT puts that file for you by default when it creates a new project, is that right? I see other posts here where other users have their gwt.xml file located at the same level as me - I don't get why in my case it's saying it should be under the client package. Any help would be great, 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: Where does YourProject.gwt.xml go when you want to export to jar?
Remove from your Test.gwt.xml the tag entry-point class=com.me.test.client.Test/. And yes, in your case, the xml file must be at the same level with the client package. On 1/31/2010 9:01 PM, markww wrote: Hi, I have a typical project structure that I'd like to export into a jar for import as a module into another gwt project: src com.me.test client Blah.java Test.gwt.xml so Test.gwt.xml is at the same level as the client package. My second project inherits it like this in its xml file: inherits name=com.me.test.Test/ When I export and use in my other project, all is well until I run it (compiles fine). I get this error at load time: 14:58:37.865 [TRACE] [testdemo] Finding entry point classes 14:58:37.868 [ERROR] [testdemo] Unable to find type 'com.me.test.client.Test' 14:58:37.888 [ERROR] [testdemo] Hint: Check that the type name 'com.me.test.client.Test' is really what you meant 14:58:37.927 [ERROR] [testdemo] Hint: Check that your classpath includes all required source roots so it looks like it's expecting the Test.gwt.xml file to actually be under the client package, instead of where GWT puts that file for you by default when it creates a new project, is that right? I see other posts here where other users have their gwt.xml file located at the same level as me - I don't get why in my case it's saying it should be under the client package. Any help would be great, 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: Where does YourProject.gwt.xml go when you want to export to jar?
On Jan 31, 9:01 pm, markww mar...@gmail.com wrote: Hi, I have a typical project structure that I'd like to export into a jar for import as a module into another gwt project: src com.me.test client Blah.java Test.gwt.xml so Test.gwt.xml is at the same level as the client package. My second project inherits it like this in its xml file: inherits name=com.me.test.Test/ When I export and use in my other project, all is well until I run it (compiles fine). I get this error at load time: 14:58:37.865 [TRACE] [testdemo] Finding entry point classes 14:58:37.868 [ERROR] [testdemo] Unable to find type 'com.me.test.client.Test' 14:58:37.888 [ERROR] [testdemo] Hint: Check that the type name 'com.me.test.client.Test' is really what you meant 14:58:37.927 [ERROR] [testdemo] Hint: Check that your classpath includes all required source roots so it looks like it's expecting the Test.gwt.xml file to actually be under the client package, instead of where GWT puts that file for you by default when it creates a new project, is that right? I see other posts here where other users have their gwt.xml file located at the same level as me - I don't get why in my case it's saying it should be under the client package. Any help would be great, Remember that GWT needs the *.java source files! Are they packaged in your JAR alongside the *.class files? -- 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: More than one constructor annotated with @UiConstructor
On Jan 22, 5:32 am, nina juliadot...@gmail.com wrote: Hi all I have my own convenient composite which is a HorizontalPanel with a Label and TextBoxBase, called FormEntry. I have 4 different constructors for this composite, where some take just a label text string and others also take a default value and a boolean determining if the TextboxBase should be PasswordTextBox or a TextBox. Now, I am trying to convert my project to use the new UiBinder feature. I figured based onhttp://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Us... that I could annotate all my constructors with @UiConstructor and then in the ui.xml use the name/or number of constructor arguments to match it to the right constructor. So for example in the ui.xml I have my:FormEntry ui:field=username labelText=Username defaultValue=nina / my:FormEntry ui:field=password labelText=Password defaultValue=pass123 password=true/ and in the FormEntry.java I have @UiConstructor public FormEntry(String labelText, String defaultValue){ this(labelText, defaultValue, false); } @UiConstructor public FormEntry(String labelText, String defaultValue, boolean password){ // code... } The error message I get is FormEntry has more than one constructor annotated with @UiConstructor. I've looked for more info on how this @UiConstructor works but haven't found anything. So the question are: - do I have the right approach here? IMO, you'd rather have a single @UiConstructor with the required fields (could be the no-arg ctor if you only have optional fields) and setters for optional ones. - why can't I have more than one constructor marked with UiConstructor? - does the binding happen with the help of the constructor arg names or numbers or types or what? The names. -- 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 do I make the server RPC to client?
Search for comet. It's the closest technique to what you want. JA wrote: Might be a silly question, but how do you make this scenario work efficiently: The client sends a message to the server, then displays the server status. Now I'm expecting some other client to respond to my message at a later time, but I don't want to keep polling to see whether the server status has changed. Is there a way for the server to call a procedure on the client when the second client has clicked? Thx. -- 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: Where does YourProject.gwt.xml go when you want to export to jar?
Ok so I moved Test.gwt.xml into the client package, so it looks like this now: src com.me.test client Blah.java Test.gwt.xml and I removed the entry-point class= statement in it as well. Now I switch over to the project importing this jar. In its TestDemo.gwt.xml file, I have this: inherits name=com.me.test.client.Test/ an error occurs when I try to start the project, but now it is during parse time of the TestDemo.gwt.xml file, throwing the exception directly on the line mentioned above: Loading modules com.me.testdemo.TestDemo Loading inherited module 'com.me.test.client.Test' [ERROR] Unable to find 'com/me/test/client/Test.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [ERROR] Line 14: Unexpected exception while processing element 'inherits' the Test.gwt.xml file is in the jar file at the expected location though. Also all the class files are in there too, 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.
can't call my servlet on Tomcat 6 (Error 404)
Hi everyone. I have a serlvet that reads a file from disk and then starts streaming the file. i have mapped the servlet to url in the web.xml file. it works perfect on my local machine but when i deploy it on my tomcat server i can't call that url that is mapped to the servlet instead i get a page with the 404 error (the requested resource was not found). 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: how to use Comet on Gwt?
i'm studing it , i hope thing in GWT 2 are the same az GWT1.4 about Comet. by the way thank you. On Jan 31, 8:48 pm, KeremTiryaki keremtiry...@gmail.com wrote: check instant messeger application's source fromhttp://gwtapps.com/ it is a book web site... I think it is very good. I used that book when I was developing this:http://tr.im/iflagame -- 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.
Layout Panel and UiBinder
How to center Widgets inside of a Layer element in UiBinder ? Christian -- 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: Where does YourProject.gwt.xml go when you want to export to jar?
The xml file has to be on the same level with the client package, but not inside it! Also make sure that the .java files are in the .jar file. On 1/31/2010 9:28 PM, markww wrote: Ok so I moved Test.gwt.xml into the client package, so it looks like this now: src com.me.test client Blah.java Test.gwt.xml and I removed theentry-point class= statement in it as well. Now I switch over to the project importing this jar. In its TestDemo.gwt.xml file, I have this: inherits name=com.me.test.client.Test/ an error occurs when I try to start the project, but now it is during parse time of the TestDemo.gwt.xml file, throwing the exception directly on the line mentioned above: Loading modules com.me.testdemo.TestDemo Loading inherited module 'com.me.test.client.Test' [ERROR] Unable to find 'com/me/test/client/Test.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [ERROR] Line 14: Unexpected exception while processing element 'inherits' the Test.gwt.xml file is in the jar file at the expected location though. Also all the class files are in there too, 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: Where does YourProject.gwt.xml go when you want to export to jar?
Ah ok I misread your first post - it works now, and the original error makes sense. Since I had left the entry-point statement in the gwt.xml file, when the demo project tried loading, it was still expecting to see the module's entry point class in the client package. Thanks! On Jan 31, 12:44 pm, Cristian Nicanor Babula nicanor.bab...@gmail.com wrote: The xml file has to be on the same level with the client package, but not inside it! Also make sure that the .java files are in the .jar file. On 1/31/2010 9:28 PM, markww wrote: Ok so I moved Test.gwt.xml into the client package, so it looks like this now: src com.me.test client Blah.java Test.gwt.xml and I removed theentry-point class= statement in it as well. Now I switch over to the project importing this jar. In its TestDemo.gwt.xml file, I have this: inherits name=com.me.test.client.Test/ an error occurs when I try to start the project, but now it is during parse time of the TestDemo.gwt.xml file, throwing the exception directly on the line mentioned above: Loading modules com.me.testdemo.TestDemo Loading inherited module 'com.me.test.client.Test' [ERROR] Unable to find 'com/me/test/client/Test.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [ERROR] Line 14: Unexpected exception while processing element 'inherits' the Test.gwt.xml file is in the jar file at the expected location though. Also all the class files are in there too, 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 customize DecimalFormat?
Your right, I use both...copied the wrong example. I followed the directions...still doesn't work. Here is what the GWT docs say to do: // Currency fmt = NumberFormat.getCurrencyFormat(); formatted = fmt.format(123456.7899); // prints US$123,456.79 in the default locale or $123,456.79 in the en_US locale So I look for how to set the locale to en_US. I find this in the docs. head meta name=gwt:property content=locale=en_US /head However, I've made the change but it doesn't help. What am I missing? Thanks! On Jan 31, 9:50 am, Jim Douglas jdoug...@basis.com wrote: I think you meant to say getCurrencyFormat(). You'll want to read these pages: http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...http://code.google.com/webtoolkit/doc/latest/DevGuideI18nLocale.html And play with this sample: http://gwt.google.com/samples/Showcase/Showcase.html#CwNumberFormat On Jan 31, 7:11 am, dhoffer dhoff...@gmail.com wrote: I'm using NumberFormat.getDecimalFormat() which does almost what I want. All I want to do is remove the leading US from the formatting, I want to keep everything else including the $ sign. How can I do this? It isn't clear to me how these casn be customized, can someone point me to a sample or something? 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: Layout Panel and UiBinder
could you write down an example in UiBinder XML of the thing you want to center? On 31 Gen, 21:35, Christian Goudreau goudreau.christ...@gmail.com wrote: How to center Widgets inside of a Layer element in UiBinder ? Christian -- 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 web application with multiple pages
thank you very much for your post. that was my first thought, but the problem is that i do need the ControlPage to control the ShowUpRoomPage after loading the ShowUpRoomPage... here my dumb solution: - 2 modules with uibinder - indexModule controls the dataModel and set it - showUpModule check every 1sec for new data :S see: http://halbgasse.appspot.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Click vs. Double Click
Hi Vince, did you make any progress with this? I have a ToggleButton, and want to be able to discern between single and double clicks, Thanks On Dec 4 2009, 12:11 pm, Vince vicenci...@aol.com wrote: Hello, Case : I am trying to implementClickandDoubleClickhandlers to an HTML object (It's actually an extension of the HTML widget with an implements HasDoubleClickHandlers clause). Problem : TheClickevent gets caught twice before logic catches the onDoubleClick event. Question : Is there a suitable means in GWT that could discern the SingleClick event from theDoubleClick? Would appreciate tips and suggestions... Thanks, Vince -- 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: can't call my servlet on Tomcat 6 (Error 404)
I don't see how this could be related to GWT. On 1/31/2010 9:30 PM, hbral wrote: Hi everyone. I have a serlvet that reads a file from disk and then starts streaming the file. i have mapped the servlet to url in the web.xml file. it works perfect on my local machine but when i deploy it on my tomcat server i can't call that url that is mapped to the servlet instead i get a page with the 404 error (the requested resource was not found). 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: Layout Panel and UiBinder
Found what I searched... I have to do it the old way by css. Or take an ugly table (HorizontalPanel) or do it myself. Christian On Sun, Jan 31, 2010 at 5:11 PM, Cristiano cristiano.costant...@gmail.comwrote: could you write down an example in UiBinder XML of the thing you want to center? On 31 Gen, 21:35, Christian Goudreau goudreau.christ...@gmail.com wrote: How to center Widgets inside of a Layer element in UiBinder ? Christian -- 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: Integrate another project on GWT
Hey rjcarr!!! Thanks for ur answer! At the end, I found my problem: it was because of the Google App Engine - 1.3.0. Can I tell u a little bit deeper?? (my curiosity is killing me softly...) In my server package I have a class called Indexer. Inside of this class, a line just calls a value: MaxFieldLength lim = IndexWriter.MaxFieldLength.LIMITED, needed to call the indexer function, but throws a NoDefClassException: ... index() threw an unexpected exception: java.lang.NoClassDefFoundError: org/apache/lucene/index/IndexWriter $MaxFieldLength I don't know if that '$' wants to tell me something and I'm not being able to hear it! Others unexpected exceptions are thrown, such as java.lang.NoClassDefFoundError: org/apache/lucene/store/Directory, and more, always NoClassDefFoundError exceptions, although all jar's needed are imported and the compilation runs perfectly. Have u got any idea about why am I getting these messages, these exceptions?? AH!! I was forgetting it: the first message I get trying to index the files is an Exception while dispatching incoming RPC call, but if I comment the rest of the lines and write a simple System.out.println(HI THERE), there's no exception. It seems as if it couldn't resolve the Lucene classes and methods... but why just with the Google App Engine?? If I create a new project, and I don't select the Use Google App Engine, problems disappear... Thank u very very much... all the weekend trying to catch the solution and no solution found is very frustrating... cheers!! On 30 ene, 11:00, rjcarr rjc...@gmail.com wrote: There are a number of ways you can address this. The simplest way is to put your button on your web page and keep it completely separate from GWT. Another way is to set up a traditional form (FormPanel, I believe) with the action set to your search url. This happens asynchronously, but is probably the most traditional, as it uses a form. Another option is to make the button trigger a non-GWT asynch call and then trap the result. You can do this with the request builder. Finally, you can create a GWT rpc service that calls your lucene search and then funnels the results back to the client. Good luck! On Jan 28, 10:03 am, Sabbia maestrosa...@gmail.com wrote: Hi there! I'm starting with GWT, and although it's not been too much difficult to do my first things, i've reached to something i can't solve. What i'm trying to do is something as simple as calling another programm by clicking a button. Deeply, in Eclipse, I have another project, based on Lucene, that indexes and searches a word into the files of a directory, and I'd want to call the index and search functions by clicking a button of my GWT project. But I don't know where can I put the files from my other project and how to connect the click event to make it call the another files. Thank u, everybody, in advance, i'll keep on trying 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: Ext/GXT/ExtGWT v2.1.0 vs. SmartGWT v2.0
Thanks for everyone's replies. I'm still not sure what the fundemental differences are between the 2.5 options above. The following appears to be the case: - GXT superseed's the GWT-Ext (as GWT-Ext is no longer under active development), so really this concludes that GWT-Ext is not a viable option. - Both GXT and Smart GWT are pure gwt (no underlying native JS library, so expect equivalent speed/performance from the GWT compiler). - GXT's listener/update/event model is vastly different to the pattern used in GWT 2. (at least for GXT 2.1.0). I don't know about SmartGWT :/ - SmartGWT's look and feel is slightly more advanced than GXT's Conclusion: None of the above really scream *use this one over the other*. SmartGWT might have the edge (if there is one). --AH Additionally: both have WEIRD commercial licenses! I didn't want to talk about them... but they're probably the deciding factor here now anyway. - GXT's commercial license is all features but you only get the incremental X.* updates (i.e. 2.1, 2.2, 2.3 but not 3.0). - SmartGWT's commercial licensing appears to be limited on feature set. How useful SmartGWT's widgets are without the complete featureset (i.e. databindings e.t.c) remains a mystery and therefor a risk. On Sun, Jan 31, 2010 at 9:22 AM, Sorinel C scristescu...@hotmail.comwrote: There you go -- I hope, here: http://ui-programming.blogspot.com/2010/01/comparation-ext-gwt-gxt-vs-gwt-ext-vs.html you can find more info about the same topic. 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. -- 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: Ext/GXT/ExtGWT v2.1.0 vs. SmartGWT v2.0
On Sun, Jan 31, 2010 at 4:11 PM, Andrew Hughes ahhug...@gmail.com wrote: - Both GXT and Smart GWT are pure gwt (no underlying native JS library, so expect equivalent speed/performance from the GWT compiler). No, GXT is pure GWT, but SmartGWT is a GWT wrapper around the JS library, though they claim they've spent a lot of time on performance hand-tuning so that's harder to gauge. Additionally: both have WEIRD commercial licenses! I didn't want to talk about them... but they're probably the deciding factor here now anyway. - GXT's commercial license is all features but you only get the incremental X.* updates (i.e. 2.1, 2.2, 2.3 but not 3.0). - SmartGWT's commercial licensing appears to be limited on feature set. How useful SmartGWT's widgets are without the complete featureset (i.e. databindings e.t.c) remains a mystery and therefor a risk. This does give a challenge for SmartGWT since you can't demo all the versions and it's not always clear which features are available to which when you look at the myriad examples. It seems easy to demo LGPL and the Enterprise and know that what you have is what you'll get and nothing more or less. For us, the databindings likely would have been desirable, but since it requires a commercial, it was hard to build both a client-server solution that was also open source as it would make use of components that require a commercial license. Of course, that's not a typical problem unless you dual license your product too. It is a shame that any GUI library comes with runtime licenses as you have to go back pretty far in software engineering to find a UI scheme that could require licenses for deployed systems. GWT will likely get there over time since I think they'll find supporting more enterprise needs will be a boost for their platform. -- 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: Startup needs gwt/java programmer...
. -- 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: Startup needs gwt/java programmer...
yes , I have already finished your questions. Now I am compiling and installing the demo of Quick flows BPM , just a few minutes more , our server is too slow. 2010/1/31 golfdude padysr...@gmail.com . -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Integrate another project on GWT
Well, I think I fixed it. I've read this in the troubleshooting area: java.security.AccessControlException: access denied The problem occurs if you mistakenly enabled the Google App Engine feature for your project when you created the project, or at a later time during development, and have server-side libraries or classes packaged with your GWT application war folder that violate the Java App Engine sandbox. It's not the same error that I got, but it seems that what my Lucene files are doing is just this, violating the App Engine... I dont have my files in the war folder, but it doesn't say that the way of resolving it is moving any file into the server package, only disabling the App Engine... What do u think about that?? On 1 feb, 01:10, Sabbia maestrosa...@gmail.com wrote: Hey rjcarr!!! Thanks for ur answer! At the end, I found my problem: it was because of the Google App Engine - 1.3.0. Can I tell u a little bit deeper?? (my curiosity is killing me softly...) In my server package I have a class called Indexer. Inside of this class, a line just calls a value: MaxFieldLength lim = IndexWriter.MaxFieldLength.LIMITED, needed to call the indexer function, but throws a NoDefClassException: ... index() threw an unexpected exception: java.lang.NoClassDefFoundError: org/apache/lucene/index/IndexWriter $MaxFieldLength I don't know if that '$' wants to tell me something and I'm not being able to hear it! Others unexpected exceptions are thrown, such as java.lang.NoClassDefFoundError: org/apache/lucene/store/Directory, and more, always NoClassDefFoundError exceptions, although all jar's needed are imported and the compilation runs perfectly. Have u got any idea about why am I getting these messages, these exceptions?? AH!! I was forgetting it: the first message I get trying to index the files is an Exception while dispatching incoming RPC call, but if I comment the rest of the lines and write a simple System.out.println(HI THERE), there's no exception. It seems as if it couldn't resolve the Lucene classes and methods... but why just with the Google App Engine?? If I create a new project, and I don't select the Use Google App Engine, problems disappear... Thank u very very much... all the weekend trying to catch the solution and no solution found is very frustrating... cheers!! On 30 ene, 11:00, rjcarr rjc...@gmail.com wrote: There are a number of ways you can address this. The simplest way is to put your button on your web page and keep it completely separate from GWT. Another way is to set up a traditional form (FormPanel, I believe) with the action set to your search url. This happens asynchronously, but is probably the most traditional, as it uses a form. Another option is to make the button trigger a non-GWT asynch call and then trap the result. You can do this with the request builder. Finally, you can create a GWT rpc service that calls your lucene search and then funnels the results back to the client. Good luck! On Jan 28, 10:03 am, Sabbia maestrosa...@gmail.com wrote: Hi there! I'm starting with GWT, and although it's not been too much difficult to do my first things, i've reached to something i can't solve. What i'm trying to do is something as simple as calling another programm by clicking a button. Deeply, in Eclipse, I have another project, based on Lucene, that indexes and searches a word into the files of a directory, and I'd want to call the index and search functions by clicking a button of my GWT project. But I don't know where can I put the files from my other project and how to connect the click event to make it call the another files. Thank u, everybody, in advance, i'll keep on trying 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: Struts2 GWT and classpath
Thank you. I am farther along now. I learned much from -help as you suggested. I also think I understand that one runs two servers; 1 is run for GWT (such as using a debug configuration) and the other server for the struts 2 web server (via eclipse project right click - Run As - Run on Server). I was pretty excited to see eclipse offer: http://localhost:/s2?gwt.codesvr=10.0.0.2:9997 as a url to use when running in Debug mode for GWT. That's progress. The web browser redirects from http://localhost:/s2?gwt.codesvr=10.0.0.2:9997 to http://localhost:/s2/ That's different than the hello-world GWT app URL which has .html in it; See Sgwt.html -- http://localhost:53650/Sgwt.html?gwt.codesvr=10.0.0.2:9997 I wanted the host page to come up with the typical hello world GWT app of Please enter your name: that a new GWT project via eclipse plugin gives you. However I get a blank web browser page. I am not sure why the browser redirects to the module root like that. Help? :) On Jan 31, 12:30 am, Henry q8e...@gmail.com wrote: Hi Finney, You can specify args to DevMode Run-Debug Configurations...-g(oogle) Web Application-New in the Arguments tab, you can add the name of your module(s) If in doubt, add the -help arguments in the Arguments tab Cheers, Henry p.s. checkouthttp://code.google.com/p/struts2gwtplugin and let me know what you think of that plugin On Jan 30, 7:34 pm, finneycanhelp lovefin...@gmail.com wrote: Quick follow up / add on: I see the post about Maven and GWT athttp://groups.google.com/group/google-web-toolkit/browse_thread/threa... However, my real concern is with a struts2 project (s2project) that has: - /s2project/WebContent folder which contains index.jsp, WEB- INF, ... - /s2project/WebContent/WEB-INF/classes is the output folder - /s2project/src folder which contains java source and struts.xml - /s2project/ivy.xml file Thanks again for any help. On Jan 30, 9:16 pm, finneycanhelp lovefin...@gmail.com wrote: Hi, My goal is to GWT-ize a struts2 (S2) project. I read the archives of this list. Although email threads were quite informative, I do not see the answer to this situation regarding the Java classpath and GWT. Tools: I am using eclipse Java EE IDE for Web Developers (3.5.1) and the GWT eclipse plugin (1.2.0) with GWT 2.0. I created a GWT hello world application to compare to the small struts 2 application I am trying to enhance. Project layout: - In the struts2 project, the S2 web application has its WEB-INF in / s2/src/main/webapp/WEB-INF and its output (.class files) go into s2/ target/classes It's a standard maven project. - I see GWT has its WEB-INF located in /sgwt/war/WEB-INF and the output of the project is sgwt/war/WEB-INF/classes What I did: - I changed the S2 project properties in the Google Web Toolkit dialog box to Use Google Web Toolkit. - I also did the following: + read the document at: http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjec... + copied/modified over components from the brand new GWT web application My current obstacle / challenge is knowing how to add s2.gwt.xml, s2.html, s2.css so they are visible to the Jetty development mode of GWT. By hand, I copied over the s2.gwt.xml file into /s2/src/main/ resources However things did not work quite right. Trying a url like:http://localhost:/Sgwt.html?gwt.codesvr=10.0.0.2:9997 but for the s2 project did not work. How do I change the development mode of GWT in eclipse to use the s2 resources ( \s2\target\classes ) ? I will have a similar issue with another struts2 project but it is not in a standard maven project setup. It has a WebContent folder which contains a WEB-INF folder and so on. Thank you for your help. Sincerely, Mike -- 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: Startup needs gwt/java programmer...
hi pablo, please use direct email ( padysr...@hotmail.com ) instead of the group. Thx gd -- 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.
Need help with Basic RPC Service!
Hi, Previously I had posted about retrieving ArrayList using RPC Service but I've met with some errors and I decided to take it step by step and then slowly build my application but currently I'm having an error using even most basic RPC Service. Can anyone help? I'm getting the following error from *NETBEANS 6.8.* ** Thanks in advance Scanning for additional dependencies: file:/C:/Users/Jiabao/Desktop/Assignment/Jan%2025%202010/SnagIT/src/java/org/snagit/client/RemoteServiceMain.java Computing all possible rebind results for 'org.snagit.client.RemoteServiceCall' Rebinding org.snagit.client.RemoteServiceCall Invoking generate-with class='com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator'/ Generating client proxy for remote service interface 'org.snagit.client.RemoteServiceCall' [ERROR] Could not find an asynchronous version for the service interface org.snagit.client.RemoteServiceCall A valid definition for the asynchronous version of interface 'org.snagit.client.RemoteServiceCall' would be: [ERROR] package org.snagit.client; public interface RemoteServiceCallAsync { void retrieveProducts(java.lang.String s, com.google.gwt.user.client.rpc.AsyncCallbackjava.lang.String arg2); } [ERROR] Errors in 'file:/C:/Users/Jiabao/Desktop/Assignment/Jan%2025%202010/SnagIT/src/java/org/snagit/client/RemoteServiceMain.java' [ERROR] Line 67: Failed to resolve 'org.snagit.client.RemoteServiceCall' via deferred binding [ERROR] Cannot proceed due to previous errors C:\Users\Jiabao\Desktop\Assignment\Jan 25 2010\SnagIT\nbproject\build-gwt.xml:88: The following error occurred while executing this line: C:\Users\Jiabao\Desktop\Assignment\Jan 25 2010\SnagIT\nbproject\build-gwt.xml:140: Java returned: 1 BUILD FAILED (total time: 9 seconds) Here are my code snippets. public class MainEntryPoint implements EntryPoint { /** * Creates a new instance of MainEntryPoint */ private ArrayList itemList; public MainEntryPoint() { } /** * The entry point method, called automatically by loading a module * that declares an implementing class as an entry-point */ public void onModuleLoad() { RootPanel rootPanel = RootPanel.get(); AbsolutePanel productPanel = new AbsolutePanel(); productPanel.setWidth(880px); Button btn = new Button(); btn.setText(Hello); productPanel.add(btn); RemoteServiceMain createBtn = new RemoteServiceMain(); productPanel.add(createBtn); rootPanel.add(productPanel); } } // public class RemoteServiceMain extends VerticalPanel { PushButton pushButton = new PushButton(); public RemoteServiceMain() { pushButton.setText(Click Me!); add(pushButton); final AsyncCallbackString callback = new AsyncCallbackString() { public void onSuccess(String result) { System.out.println(Works); } public void onFailure(Throwable caught) { System.out.println(Communication failed); } }; pushButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { ArrayList list = new ArrayList(); getService().retrieveProducts(electronics, callback); } }); } public static RemoteServiceController getService() { // Create the client proxy. Note that although you are creating the // service interface proper, you cast the result to the asynchronous // version of the interface. The cast is always safe because the // generated proxy implements the asynchronous interface automatically. return GWT.create(RemoteServiceCall.class); } } // @RemoteServiceRelativePath(remoteservicecall) public interface RemoteServiceCall extends RemoteService { public String retrieveProducts(String s); } // public interface RemoteServiceController { public void retrieveProducts(String s, AsyncCallbackString callback); } // public class RemoteServiceServer extends RemoteServiceServlet implements RemoteServiceCall { public String retrieveProducts(String s) { return s + This works!; } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this
Re: gwt+ html5
This article popped up in a twitter search yesterday: http://gwtpro.com/2010/01/30/using-gwt-deferred-binding-to-implement-an-html-file-input-widget/ I just skimmed it, so there might be something strange I missed, but the approach they took to wrapping the html5 file api seemed sound. The article also shows just how easy it is to use GWT to wrap most of these new features and provide a good fallback via deferred binding. Of course, we all benefit if these implementations get released, are visible, and we try them out, commenting and contributing. I just wish all the little tools out there (as opposed to the bigger frameworks built on top of GWT) were easier to find. =) On Jan 30, 3:59 pm, Jaswanth ppjaswa...@gmail.com wrote: hi guys . any one has any ideas of exploiting the features of html5 with gwt?.This is one of the sessions in google io 2010. cant wait for its video to be launched. -- 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.
SuggestBox doesnt work in IE 6
When I try to show suggestion list in Internet Explorer 6, I just get Javascrpt error Invalid class string and suggestion list doesnt appear of course. IE7 and all other browsers work fine. AsyncCallbackArrayList callback = new AsyncCallbackArrayList() { public void onSuccess(ArrayList result){ ... // my function works fine SuggestBox sbb = getSuggestBoxByElementId (innerSuggesterId); // suggestbox value and 'success1' appear successfully Window.alert(sbb.getValue()); Window.alert(success1); sbb.showSuggestionList(); // alert 'success2' never appears Window.alert(success2); } ... This problem also occures even in GWT examples. http://gwt.google.com/samples/Showcase/Showcase.html#CwSuggestBox Their suggestBox doesnt work in my IE6 I also created an issue http://code.google.com/p/google-web-toolkit/issues/detail?id=4544 but havent got the solution yet. Does someone have the same problem? Are there any ways to fix 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.