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.
Problem with gwt-image reference (ClientBundle/CssResource)
I have the following inner interfaces defined in a custom widget class (a decorator panel-type class): public interface Resources extends ClientBundle { Resources INSTANCE = GWT.create(Resources.class); @Source(roundedcornr_bl.png) ImageResource roundedcornr_bl(); @Source(roundeddecoratorpanel.css) Style css(); } public interface Style extends CssResource { String roundedcornr_bottom_inner(); ... } Contents of roundeddecoratorpanel.css: .roundedcornr_bottom_inner { gwt-image: 'roundedcornr_bl'; ... } I'm using this in a ui.xml file: ui:with field=res type=package.MyDecoratorPanel.Resources/ div class={res.css.roundedcornr_bottom_inner}/div The image is there, the .css file is there, but the generated CSS does not contain a background-image property like it should. What really annoys me is that it clearly can't seem to find the image but it doesn't complain at compile time. Any ideas? Dave -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 Service Injection
The idea is that you need to teach Tomcat how to instantiate your Servlets. You need: guice-2.0.jar, guice-servlet-2.0.jar, aopalliance.jar. In war/WEB-INF/web.xml: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app filter filter-nameguiceFilter/filter-name filter-classcom.google.inject.servlet.GuiceFilter/filter-class /filter filter-mapping filter-nameguiceFilter/filter-name url-pattern/*/url-pattern /filter-mapping listener listener-classyour.pakage.server.GuiceContextListener/listener- class /listener welcome-file-list welcome-fileTikPak.html/welcome-file /welcome-file-list /web-app Then in the server package. File: GuiceContextListener.java package your.pakage.server; import com.google.inject.Guice; import com.google.inject.Injector; import com.google.inject.servlet.GuiceServletContextListener; public class GuiceContextListener extends GuiceServletContextListener { @Override protected Injector getInjector() { return Guice.createInjector(new UniqueModule()); } } File: GuiceRemoteServiceServlet.java package your.pakage.server; import com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.SerializationException; import com.google.gwt.user.server.rpc.RPC; import com.google.gwt.user.server.rpc.RPCRequest; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import com.google.inject.Inject; import com.google.inject.Injector; import com.google.inject.Singleton; @Singleton public class GuiceRemoteServiceServlet extends RemoteServiceServlet { private static final long serialVersionUID = 1L; private Injector injector; @Inject public GuiceRemoteServiceServlet(Injector injector) { this.injector = injector; } @Override public String processCall(String payload) throws SerializationException { try { RPCRequest rpcRequest = RPC.decodeRequest(payload, null, this); RemoteService service = getServiceInstance(rpcRequest.getMethod().getDeclaringClass()); return RPC.invokeAndEncodeResponse(service, rpcRequest.getMethod(), rpcRequest.getParameters(), rpcRequest.getSerializationPolicy(), rpcRequest.getFlags()); } catch (IncompatibleRemoteServiceException ex) { log(An IncompatibleRemoteServiceException was thrown while processing this call., ex); return RPC.encodeResponseForFailure(null, ex); } } private RemoteService getServiceInstance(Class? serviceClass) { return (RemoteService) injector.getInstance(serviceClass); } } File: UniqueModule.java package your.pakage.server; import java.io.InputStream; import java.util.Properties; import javax.sql.DataSource; import your.pakage.server.transactions.DaoModule; import your.pakage.shared.rpc.SetupRpc; import com.google.inject.Provides; import com.google.inject.Singleton; import com.google.inject.name.Named; import com.google.inject.name.Names; import com.google.inject.servlet.ServletModule; import com.mchange.v2.c3p0.ComboPooledDataSource; public class UniqueModule extends ServletModule { @Override protected void configureServlets() { serve(/tikpak/GWT.rpc).with(GuiceRemoteServiceServlet.class); bind(SetupRpc.class).to(Setup.class); bind(SourceCodeViewRpc.class).to(SourceCode.class); } } I hope I'm not forgetting anything important. With this setup you no longer need to extend from RemoteServiceServlet. My services looks like: @RemoteServiceRelativePath(GWT.rpc) public interface SetupRpc extends RemoteService { public SetupData initClient(); } public class Setup implements SetupRpc { private QuerySystemDao dao; @Inject public Setup(QuerySystemDao dao) { this.dao = dao; } ... On Jun 9, 7:54 am, gangurg gangurg gang...@gmail.com wrote: Sry it was an incomplete post . Here is my full post . I am new to Injection . What I wanted to do was a simple Interface Injection in my GWT IMpl . Can anyone tell me how do a Field Injection or a construction based Injection .Assume Everything in this snippet works fine . public Interface Payment( public void pay(); } public class PaymentImpl implements Payment { public void pay() { System.out.println(I'll pay with a credit card); } } //My Guice Module public class TestGuiceModule extends AbstractModule { @Override protected void configure() {
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: Get today's date, and the first day of this week's date?
spierce7 schrieb: Lothar, your code works (at least for the current date) : It should work for every date, just instantiate Date with one of the non-default constructors. However, I can't find a way to get the first day of the week for any given date. For instance, lets say I wanted to find the first day of the week for September 27th, 2010, how would I do that? Using the deprecated constructor of Date: Date date = new Date(110, 08, 27); You can also use the date-parsing classes of GTW to parse a string to a date. Regards, Lothar -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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 and JDK 1.4
Thanks to all, the limitation is due to other dependent components/ infrastructure. Migrating all applications is not a viable option now, thanks for your input. On Jun 7, 11:45 pm, Jim Douglas jdoug...@basis.com wrote: Just out of interest...what's keeping you on 1.4? It reached EOSL more than a year and a half ago: http://java.sun.com/products/archive/eol.policy.html On Jun 7, 3:56 am, Ravuthakumar ravuthaku...@gmail.com wrote: Hi, Does GWT 2.0 requires JSDK 1.5 or higher version? There is a limitation, we have to use only jdk1.4. Other thought is, use 1.5 in deveopment environment(till compiling to JS) then 1.4 during runtime. Is it possible? I wish to utilize the features in GWT 2.0(latest version). Planning to use GWT RPC for communication. Server side it is spring + hibernate(JDK 1.4 compatiple version). Thanks for you time, Regards, Ravuthakumar- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 and JDK 1.4
Do we need any GWT related libraries at Runtime? Or is just Java script? On Jun 7, 11:45 pm, Jim Douglas jdoug...@basis.com wrote: Just out of interest...what's keeping you on 1.4? It reached EOSL more than a year and a half ago: http://java.sun.com/products/archive/eol.policy.html On Jun 7, 3:56 am, Ravuthakumar ravuthaku...@gmail.com wrote: Hi, Does GWT 2.0 requires JSDK 1.5 or higher version? There is a limitation, we have to use only jdk1.4. Other thought is, use 1.5 in deveopment environment(till compiling to JS) then 1.4 during runtime. Is it possible? I wish to utilize the features in GWT 2.0(latest version). Planning to use GWT RPC for communication. Server side it is spring + hibernate(JDK 1.4 compatiple version). Thanks for you time, Regards, Ravuthakumar- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 and JDK 1.4
Do we need any GWT related libraries at Runtime? Or is just Java script? GWT has a mandatory client component and an optional server component. The client component is just javascript at runtime. So, you just need to ensure developers have JDK 1.5 at compile time. At runtime, it just doesn't matter. Server side code is required if you are using GWTs proprietary RPC services. As Kozura mentioned, RPC requires JDK 1.5, so you definitely cannot use it. So, only option is to avoid RPC, and use JSON for data transfer between client and server. Lots of people already do this, so its definitely a viable option. --Sri On 9 June 2010 14:07, Ravuthakumar ravuthaku...@gmail.com wrote: Do we need any GWT related libraries at Runtime? Or is just Java script? On Jun 7, 11:45 pm, Jim Douglas jdoug...@basis.com wrote: Just out of interest...what's keeping you on 1.4? It reached EOSL more than a year and a half ago: http://java.sun.com/products/archive/eol.policy.html On Jun 7, 3:56 am, Ravuthakumar ravuthaku...@gmail.com wrote: Hi, Does GWT 2.0 requires JSDK 1.5 or higher version? There is a limitation, we have to use only jdk1.4. Other thought is, use 1.5 in deveopment environment(till compiling to JS) then 1.4 during runtime. Is it possible? I wish to utilize the features in GWT 2.0(latest version). Planning to use GWT RPC for communication. Server side it is spring + hibernate(JDK 1.4 compatiple version). Thanks for you time, Regards, Ravuthakumar- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Returning values, next try. Sending was too fast for me
Thanks a lot, but I've got further questions ;) I'm using gwt-mvc. So, the described Method is located in the Model. What to do in the Controller exactly? After calling loginUser, my program decides which way to go by taking the feedback. So should I do the following? loginModel.loginUser(user, passwd, false, new XGENgwtModelCallback( /* Decide what to do, but how to get the loginFeedback */ )); Thinking Async almost drives my crazy :-( BTW: I've got other methods, which return DB2-SQL-Queries as a VectorVectorString I guess, I should rename LoginCallback to ModelCallback and add another Method public void onSQLQuery(VectorVectorString vec) as well, should I? On 9 Jun., 00:15, Chad chad...@gmail.com wrote: Oh, BTW, you would need to move your call to logToServer into the onSuccess as well. I didn't notice that one at first. HTH, Chad On Jun 8, 2:28 pm, Chad chad...@gmail.com wrote: You don't want to block the UI with a while loop. Instead, consider creating an interface with a single method: public interface LoginCallback { void onLogin(int feedback); } Then, alter your loginUser method to return void and take as an addition parameter a LoginCallback: public void loginUser(String user, String passwd, boolean override, final LoginCallback cb) { XGENgwt.loginUser(user, passwd, override, new AsyncCallback() { public void onSuccess(Object result) { cb.onLogin(Integer.parseInt(result.toString())); } public void onFailure (Throwable caught) { Window.alert(Unable to login: +caught.toString()); } }); logToServer(Bei der Zuweisung: +loginFeedback); } You could also call the onLogin from the onFailure if you wanted to. Or create an addition method in your LoginCallback to call from the onFailure. Take the code that currently follows the call to your loginUser method and move it into the onLogin method of an instance of LoginCallback that gets passed to the new loginUser method. Think Async! ;-) HTH, Chad On Jun 8, 8:07 am, uwi_u uwe.chris...@gad.de wrote: Hi there, I'm currently writing an Application with GWT, and am Stuck at one position: When I call my RPC, the value which is to be returned, will be passed to an global variable. Unfortunately, the returning of this global variable out of the method happens before the onSuccess comes back. the only way to block which I see is to do a while until loginFeedback 0 Heres some Code (loginFeedback shall get a value from 0 to 2): public int loginUser(String user, String passwd, boolean override){ loginFeedback = -1; XGENgwt.loginUser(user, passwd, override, new AsyncCallback(){ public void onSuccess(Object result){ loginFeedback = Integer.parseInt(result.toString()); } public void onFailure (Throwable caught){ Window.alert(Unable to login: +caught.toString()); } }); logToServer(Bei der Zuweisung: +loginFeedback); return loginFeedback; } Is there a better way? I hope so -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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
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.
Google first page - Change background image - in GWT?
Hello, I just see option Change background image on Google search first page (www.google.com). Design of dialog looks like GWT. Is this written in GWT? It would be a really huge reference Regards, Matic -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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 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: Google first page - Change background image - in GWT?
yes, i can confirm this after looking at the source. this is GWT ;--) On Wed, Jun 9, 2010 at 12:48 PM, maticpetek maticpe...@gmail.com wrote: Hello, I just see option Change background image on Google search first page (www.google.com). Design of dialog looks like GWT. Is this written in GWT? It would be a really huge reference Regards, Matic -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem 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: Google first page - Change background image - in GWT?
Don't think it is GWT. Although the code is obfuscated, it doesn't have any of GWTs tell-tale signs. @Rudolf - anything specific in the source that makes you think it is GWT? --Sri On 9 June 2010 15:26, rudolf michael roud...@gmail.com wrote: yes, i can confirm this after looking at the source. this is GWT ;--) On Wed, Jun 9, 2010 at 12:48 PM, maticpetek maticpe...@gmail.com wrote: Hello, I just see option Change background image on Google search first page (www.google.com). Design of dialog looks like GWT. Is this written in GWT? It would be a really huge reference Regards, Matic -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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.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.
Carbide.ui 3.4 Theme Edition Plug-ins
Check out these cool plug-ins which extends the features of Carbide.ui 3.4 Theme Edition to enable the creation of themes for various S60 platform editions and devices from Nokia. New versions of the Nokia E71 and Nokia E66 plug-ins are available. These updates have refined the content of the plug-ins to improve their performance in Carbide.ui and ensure consistency across all the plug-ins. To download these plug-ins go here http://bit.ly/82XAS1 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: 1 layout - 3 browsers - 3 results?
On 8 Jun., 22:02, Ian Bambury ianbamb...@gmail.com wrote: If you add your own CSS, it doesn't go around trying to correct it. It's just what you do in GWT (using the widgets as they are meant to be use You mean I am using the panels in a way they were not made for? So this (http://roughian.com/magnus/) looks wrong in Linux/FF? There is something missing, especially the chess board, which should be centered within the red box. Look at my screenshots. BTW, didn't get the screenshot. I put them here and they should be world-readable: http://h1403230.stratoserver.net/apache2-default/tmp/LayoutTest/Screenshots/ Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 1 layout - 3 browsers - 3 results?
Hi Ian, as longer I think about your advice, the more I like it. You could do interesting things within the resize code, e. g. hide some widgets if there is not enough room... However, before I give it a new try, I need some additional information: - If I calculate everything on my own: Which LayoutPanel should I use for the parent area (e. g. AbsolutePanel?)? - For doing the layout for child objects, I need to determine their sizes E. g. to center a TextBox, I need its width in pixels. How do I get this? - What if I do not know the pixel sizes of child objects? E. g. my chess board is a Grid. I don't know its pixel size. How do I do this? Maybe this could be a perfect solution... Thank you! Magnus On 8 Jun., 18:29, Ian Bambury ianbamb...@gmail.com wrote: I think your best bet is to use the onResize and just calculate it. CSS doesn't support centring vertically and I don't think GWT has any magic bullet either. Ian -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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
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: HttpSession session = getThreadLocalRequest().getSession() Null Pointer Exception
As a matter of fact, I resolved it. The getThreadLocalRequest() return null when called into the constructor of the 1st RemoteServiceServlet called. What can be disturbing is : - It returns null even if the session is already initialized by a classic servlet - It is not returning null when called in the constructors of a 2nd RemoteServiceServlet. If it can help ! On 8 juin, 20:14, olivier nouguier olivier.nougu...@gmail.com wrote: 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: 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: 1 layout - 3 browsers - 3 results?
On 9 June 2010 11:42, Magnus alpineblas...@googlemail.com wrote: You mean I am using the panels in a way they were not made for? Yes. Currently they seem to be aimed at dividing the screen or viewport into different areas, the final (centre) area taking all the remaining space. So this (http://roughian.com/magnus/) looks wrong in Linux/FF? There is something missing, especially the chess board, which should be centered within the red box. Look at my screenshots. I didn't actually write your application for you, I just wanted to know if the red box was centred. Ian -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: 1 layout - 3 browsers - 3 results?
On 9 June 2010 11:48, Magnus alpineblas...@googlemail.com wrote: Hi Ian, as longer I think about your advice, the more I like it. You could do interesting things within the resize code, e. g. hide some widgets if there is not enough room... However, before I give it a new try, I need some additional information: - If I calculate everything on my own: Which LayoutPanel should I use for the parent area (e. g. AbsolutePanel?)? You don't need a parent panel as such, just position it absolutely after adding it to the RootPanel. - For doing the layout for child objects, I need to determine their sizes E. g. to center a TextBox, I need its width in pixels. How do I get this? getWidth() ? but you just need to use 'margin:0 auto' - What if I do not know the pixel sizes of child objects? E. g. my chess board is a Grid. I don't know its pixel size. How do I do this? How come you don't know its size? Didn't you set it? 16 x each square plus borders, or just get the width. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: 1 layout - 3 browsers - 3 results?
Hi Magnus, When browsers allow to do a predicable layout than it is possible with GWT, too. GWT helps you more or less to overcome some bug, but it isn't perfect. GWT does not check style and try to workaround bug. GWT is able to create different approaches (css) for an specific browser AND widget (if it possible at all) However, the Mega Scrap (MegaSchrott)-Browsers are a single bug in multiple versions. (by the way IE9 just passes 19 out of 160 html5 tests) When there is a real need to support IE just make a separate project only for IE. Other approaches will just fail. First of all: my experience with IE and % is: don't do it. It just fails. When you want to support IE never use % You may use position:absolute,left/right/top/bottom=0 instead which is nearly the same as 100%, 100% (it differs in the box model) Second is, .chessboard { border:#FF 8px inset; padding:25px; float:right; align:center; text-align: center; } style align is non existing. float right is strange here. text-align will not help. Strange is, that you show us two picture of IE and one of FF. But you are talking about two variants of FF and one of IE Center is horizontal possible. I just do this. For vertically center you need CSS3 capabilities (calc), but this is extreme poor supported by all browser. http://www.caniuse.com/#cats=CSS3statuses=rec,pr,cr,wd,ietf I would avoid vertical centering, or you have to use procedural code (which is terribly slow on IE) Stefan Bachert http://gwtworld.de On 8 Jun., 17:33, Magnus alpineblas...@googlemail.com wrote: Hello, after struggeling with the positioning of layout panels without a real solution (thread layout problems with positioning or aligning content) I found out that things are even worse: There are totally different results with different browsers: - Linux + Firefox 3.6.3 - Windows + Firefox 3.5.2 - Windows + IE 7 Look at the screenshots:http://h1403230.stratoserver.net/apache2-default/tmp/LayoutTest/Scree... The different Firefox versions show the chess board positioned and aligned differently. And in IE the whole layout is totally broken. I believe that either - I made some serious mistakes (I hope so), or - predictable layouts are not realizable with GWT I have reduced the code to a minimum. If you like, you can view the main source files or download the whole eclipse project: http://h1403230.stratoserver.net/apache2-default/tmp/LayoutTest/ What do you think? Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Can i get url parameters values in my gwt java code?
Hi, i want to put a parameter in the url and get it value from my gwt java code. For example, if i go in the browser to http://localhost:8080/MyApplication/Hostedpage.html?debug=true I want then in my java code do something with that value: String debugParameterValue = ?; Window.alert(debugParameterValue); Can i do that? How? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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.
Full or Part Time Position available
Make and extra income from home. International company seek motivated individuals to work from home. Positions available data entry, research and more. http://www.clicknearn.net/3527.html For further details Contact us Address : 81 Badlis road Waltham stow, London Website : www.clicknearn.net Support Center : (All Clients Members Contact Us Through Support Center. Thanks) http://www.clicknearn.net/helpdesk/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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
Hi David, to support an easily exchangable theming, you need to design any widget against an abstract theme. Then you can apply a concrete theme when you like. Even concrete themes are shareable then This topic has an huge effect on re-useablitity of widgets at all. I publish an open source project on this topic. look for http://code.google.com/p/a1decor Stefan Bachert http://gwtworld.de On Jun 8, 9:42 pm, 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: Can i get url parameters values in my gwt java code?
Window.Location.getParameter(debug) On 9 June 2010 15:27, nacho vela.igna...@gmail.com wrote: Hi, i want to put a parameter in the url and get it value from my gwt java code. For example, if i go in the browser to http://localhost:8080/MyApplication/Hostedpage.html?debug=true I want then in my java code do something with that value: String debugParameterValue = ?; Window.alert(debugParameterValue); Can i do that? How? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: CSS theming
Yes, this project is nice, i had a look some time ago. I am planning to use it for my future 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.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Google first page - Change background image - in GWT?
yeah you're right...just the obfuscated js made think that it is GWT, but apparently there is not *..nocache.jsview-source:http://192.168.0.173:8080/SMD/smdesigner_gwt/smdesigner_gwt.nocache.js file included. this means that this is not a GWT Module. On Wed, Jun 9, 2010 at 1:14 PM, Sripathi Krishnan sripathi.krish...@gmail.com wrote: Don't think it is GWT. Although the code is obfuscated, it doesn't have any of GWTs tell-tale signs. @Rudolf - anything specific in the source that makes you think it is GWT? --Sri On 9 June 2010 15:26, rudolf michael roud...@gmail.com wrote: yes, i can confirm this after looking at the source. this is GWT ;--) On Wed, Jun 9, 2010 at 12:48 PM, maticpetek maticpe...@gmail.com wrote: Hello, I just see option Change background image on Google search first page (www.google.com). Design of dialog looks like GWT. Is this written in GWT? It would be a really huge reference Regards, Matic -- You received 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. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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.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: 1 layout - 3 browsers - 3 results?
On 9 Jun., 14:07, Ian Bambury ianbamb...@gmail.com wrote: You mean I am using the panels in a way they were not made for? Yes. Currently they seem to be aimed at dividing the screen or viewport into different areas, the final (centre) area taking all the remaining space. So far, so good. The point is that I add another layout pane to the remaining space. Where is the contradiction? So this (http://roughian.com/magnus/) looks wrong in Linux/FF? There is something missing, especially the chess board, which should be centered within the red box. Look at my screenshots. I didn't actually write your application for you, I just wanted to know if the red box was centred. It was centered, but what do you derive from this assertion? Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to internationalize StackPanel with uibinder?
no one ever used stackpanel with internationalization? The only other solution I see is to create the stackpanel programmatically without uibinder. On Jun 5, 12:07 pm, googelybear googelyb...@gmail.com wrote: Hi, I am using aStackPanelin ui binder and would like to internationalize the header texts of the stacks. After going again through the i8n doc on how to translate attributes I tried the following straight-forward approach: g:StackPanelwidth='175px' ui:field=mainMenuStackPanel g:HTMLPanel g:StackPanel-text=Stack One ui:attribute name=g:StackPanel-text key=mykey description=label for stack one/ (...) /g:HTMLPanel (...other stack definitions...) /g:StackPanel But with this I get the following error message: 11:46:45.144 [ERROR] [MyModule] g:HTMLPanel g:StackPanel-text='Stack One' has no attribute matching ui:attribute description='label for stack one' key='mykey' name='g:StackPanel-text' Does anyone know how to get i8n working withStackPaneland uibinder? I already searched in the groups but could not find anything related... thanks, 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: 1 layout - 3 browsers - 3 results?
On 9 Jun., 14:11, Ian Bambury ianbamb...@gmail.com wrote: E. g. to center a TextBox, I need its width in pixels. How do I get this? getWidth() ? but you just need to use 'margin:0 auto' What does this style mean? - What if I do not know the pixel sizes of child objects? E. g. my chess board is a Grid. I don't know its pixel size. How do I do this? How come you don't know its size? Didn't you set it? 16 x each square plus borders, or just get the width. Ok, it seems that it is possible for all UIObjects to determine their pixel size. getOffsetHeight and getOffsetWidth? Thanks Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 1 layout - 3 browsers - 3 results?
Strange is, that you show us two picture of IE and one of FF. But you are talking about two variants of FF and one of IE No! I made a screenshot of FF on my linux box before and put it on the net. Later I made a screenshot from IE showing the other screenshot. http://h1403230.stratoserver.net/apache2-default/tmp/LayoutTest/Screenshots/Linux%20-%20Firefox%203.6.3.jpg Sorry for this confusion... Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 1 layout - 3 browsers - 3 results?
On 9 Jun., 14:11, Ian Bambury ianbamb...@gmail.com wrote: You don't need a parent panel as such, just position it absolutely after adding it to the RootPanel. But how do I get the Resize-Event if I don't subclass an existing layout panel? Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 1 layout - 3 browsers - 3 results?
So far, so good. The point is that I add another layout pane to the remaining space. Where is the contradiction? You are trying to float a fixed=width widget in the centre of the screen. It doesn't matter now many times you nest it, it will still work the same way. I didn't actually write your application for you, I just wanted to know if the red box was centred. It was centered, but what do you derive from this assertion? That my solution works in Linux/FF when you said it didn't -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: 1 layout - 3 browsers - 3 results?
but you just need to use 'margin:0 auto' What does this style mean? It means that you need to look it up or ask in a forum dedicated to CSS. This forum is for 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.
Re: 1 layout - 3 browsers - 3 results?
But how do I get the Resize-Event if I don't subclass an existing layout panel? Window.addResizeHandler(handler); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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
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.
Safari 5 - (RangeError): Maximum call stack size exceeded
For both gwt 2.0.2 and 2.0.3 some of our users that have upgraded to Safari 5 are seeing this error. This is a vanilla GWT application (no external library). This is happening in web mode. Everything works fine in Safari 4 (and all other browsers). Also, some of our Safari 5 users are not seeing the error. This is the exact javascript error from the browser. com.google.gwt.core.client.JavaScriptException: (RangeError): Maximum call stack size exceeded. Anybody else seeing this? It seems to be a problem with the serialization. Pascal -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: 1 layout - 3 browsers - 3 results?
Hi group, I have started writing the layout code using the onresize event, and I think this will be the solution I wanted. I created a class Display, derived from LayoutPanel,. But I am still missing information to layout my widgets. It is not that easy to geht width and height, als mentioned above. For example,. to resize my MenuBar, I need its natural height, i. e. the height it needs to show its content. Then I would resize it to (window width,natural height). When I create it and add it to my LayourtPanel, it's immediately resized to fill the whole window. After that, getOffsetHeight returns not the desired result. I also tried to save the height immediately after creation and before adding it to the panel: MenuBar menubar = new MenuBar (); ... int menuHeight = menubar.getOffsetHeight (); // will be 0 add (menubar); But it returns 0. So I need a method to get the size a widget needs *independently* of its current size. Or how would you resize the menubar? Thanks Magnus On 9 Jun., 15:35, Ian Bambury ianbamb...@gmail.com wrote: But how do I get the Resize-Event if I don't subclass an existing layout panel? Window.addResizeHandler(handler); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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.
Updrage to 2.1M1 build a single permutation?
I started a project on GWT 2.0 and easily upgraded to 2.01, 2.0.2 and 2.0.3 since then. This project targets mobile devices so I really was eager to try the new mobile widgets in 2.1M1. I finally had some time to upgrade yesterday... However, my project doesn't build correctly anymore. I first had to modify the ValueStore module to fix the dependency error in bikeshed! Now that this is fixed, my projects only generate 1 permutation instead of the 12 I should (use to) have... Do I have to change anything in the definition of my module? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: Updrage to 2.1M1 build a single permutation?
Where can I find description about mobile widgets? Here you use mobile. I guess widgets are not real mobile widgets. Am I right? Jim On Jun 9, 10:22 am, gcauchon gcauc...@gmail.com wrote: I started a project on GWT 2.0 and easily upgraded to 2.01, 2.0.2 and 2.0.3 since then. This project targets mobile devices so I really was eager to try the new mobile widgets in 2.1M1. I finally had some time to upgrade yesterday... However, my project doesn't build correctly anymore. I first had to modify the ValueStore module to fix the dependency error in bikeshed! Now that this is fixed, my projects only generate 1 permutation instead of the 12 I should (use to) have... Do I have to change anything in the definition of my module? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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.
Why is the Timestamp compareTo bug not fixed?
This is a pretty serious issue for enterprise apps. i.e. sorting issues for date columns in a grid http://code.google.com/p/google-web-toolkit/issues/detail?id=3600q=compareto Why has the GWT team not fixed it? There's even a patch/fix in the ticket. I really would hate to do a custom build/modification of GWT. Can we have this in GWT 2.0.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: Returning values, next try. Sending was too fast for me
When you call loginUser, you will create an instance of XGENgwtModelCallback (I'm assuming that's what you called LoginCallback). In that instantiation, you will need to define the onLogin method: loginModel.loginUser(user, passwd, false, new XGENgwtModelCallback() { @Override public void onLogin(int feedback) { // Decide what to do using the feedback parameter which contains your value }); If you want to use the same interface for multiple callback types, you can add methods, but then you'll have to implement them in every case. So, you will end up implementing methods that won't get called. It's better to create a specific interface for each type of callback you need. HTH, Chad On Jun 9, 3:57 am, uwi_u uwe.chris...@gad.de wrote: Thanks a lot, but I've got further questions ;) I'm using gwt-mvc. So, the described Method is located in the Model. What to do in the Controller exactly? After calling loginUser, my program decides which way to go by taking the feedback. So should I do the following? loginModel.loginUser(user, passwd, false, new XGENgwtModelCallback( /* Decide what to do, but how to get the loginFeedback */ )); Thinking Async almost drives my crazy :-( BTW: I've got other methods, which return DB2-SQL-Queries as a VectorVectorString I guess, I should rename LoginCallback to ModelCallback and add another Method public void onSQLQuery(VectorVectorString vec) as well, should I? On 9 Jun., 00:15, Chad chad...@gmail.com wrote: Oh, BTW, you would need to move your call to logToServer into the onSuccess as well. I didn't notice that one at first. HTH, Chad On Jun 8, 2:28 pm, Chad chad...@gmail.com wrote: You don't want to block the UI with a while loop. Instead, consider creating an interface with a single method: public interface LoginCallback { void onLogin(int feedback); } Then, alter your loginUser method to return void and take as an addition parameter a LoginCallback: public void loginUser(String user, String passwd, boolean override, final LoginCallback cb) { XGENgwt.loginUser(user, passwd, override, new AsyncCallback() { public void onSuccess(Object result) { cb.onLogin(Integer.parseInt(result.toString())); } public void onFailure (Throwable caught) { Window.alert(Unable to login: +caught.toString()); } }); logToServer(Bei der Zuweisung: +loginFeedback); } You could also call the onLogin from the onFailure if you wanted to. Or create an addition method in your LoginCallback to call from the onFailure. Take the code that currently follows the call to your loginUser method and move it into the onLogin method of an instance of LoginCallback that gets passed to the new loginUser method. Think Async! ;-) HTH, Chad On Jun 8, 8:07 am, uwi_u uwe.chris...@gad.de wrote: Hi there, I'm currently writing an Application with GWT, and am Stuck at one position: When I call my RPC, the value which is to be returned, will be passed to an global variable. Unfortunately, the returning of this global variable out of the method happens before the onSuccess comes back. the only way to block which I see is to do a while until loginFeedback 0 Heres some Code (loginFeedback shall get a value from 0 to 2): public int loginUser(String user, String passwd, boolean override){ loginFeedback = -1; XGENgwt.loginUser(user, passwd, override, new AsyncCallback(){ public void onSuccess(Object result){ loginFeedback = Integer.parseInt(result.toString()); } public void onFailure (Throwable caught){ Window.alert(Unable to login: +caught.toString()); } }); logToServer(Bei der Zuweisung: +loginFeedback); return loginFeedback; } Is there a better way? I hope so -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: Updrage to 2.1M1 build a single permutation?
There isn't much details about widget with mobile support. What I do know is that there are many things not supported by Safari Mobile (for instance). I wasn't at I/O this year and up to now the only place I've read about it is on I/O Twitter stream: http://twitter.com/googleio/status/14307224349 Which is why I was looking foward to try 2.1M1 asap... On Jun 9, 10:45 am, Jim jim.p...@gmail.com wrote: Where can I find description about mobile widgets? Here you use mobile. I guess widgets are not real mobile widgets. Am I right? Jim On Jun 9, 10:22 am, gcauchon gcauc...@gmail.com wrote: I started a project on GWT 2.0 and easily upgraded to 2.01, 2.0.2 and 2.0.3 since then. This project targets mobile devices so I really was eager to try the new mobile widgets in 2.1M1. I finally had some time to upgrade yesterday... However, my project doesn't build correctly anymore. I first had to modify the ValueStore module to fix the dependency error in bikeshed! Now that this is fixed, my projects only generate 1 permutation instead of the 12 I should (use to) have... Do I have to change anything in the definition of my module? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: 1 layout - 3 browsers - 3 results?
Hi, To be clear: What are you expecting to have in your layout scenario? i.e. A menu on top, a Chess Widget centered in the browser with same margins from top/left/right/bottoms? Also, the chess Widget should have 64 cells of the same height/width.? i.e. the cell doesn't change if the browser resize? On Wed, Jun 9, 2010 at 11:20 AM, Magnus alpineblas...@googlemail.comwrote: Hi group, I have started writing the layout code using the onresize event, and I think this will be the solution I wanted. I created a class Display, derived from LayoutPanel,. But I am still missing information to layout my widgets. It is not that easy to geht width and height, als mentioned above. For example,. to resize my MenuBar, I need its natural height, i. e. the height it needs to show its content. Then I would resize it to (window width,natural height). When I create it and add it to my LayourtPanel, it's immediately resized to fill the whole window. After that, getOffsetHeight returns not the desired result. I also tried to save the height immediately after creation and before adding it to the panel: MenuBar menubar = new MenuBar (); ... int menuHeight = menubar.getOffsetHeight (); // will be 0 add (menubar); But it returns 0. So I need a method to get the size a widget needs *independently* of its current size. Or how would you resize the menubar? Thanks Magnus On 9 Jun., 15:35, Ian Bambury ianbamb...@gmail.com wrote: But how do I get the Resize-Event if I don't subclass an existing layout panel? Window.addResizeHandler(handler); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: Safari 5 - (RangeError): Maximum call stack size exceeded
When we try to run dev mode to get a better stack trace, everything works fine. Could it be a change in the javascript engine in safari 5 that's causing this error? Any insights? Regards, Pascal On 9 juin, 10:18, Pascal zig...@gmail.com wrote: For both gwt 2.0.2 and 2.0.3 some of our users that have upgraded to Safari 5 are seeing this error. This is a vanilla GWT application (no external library). This is happening in web mode. Everything works fine in Safari 4 (and all other browsers). Also, some of our Safari 5 users are not seeing the error. This is the exact javascript error from the browser. com.google.gwt.core.client.JavaScriptException: (RangeError): Maximum call stack size exceeded. Anybody else seeing this? It seems to be a problem with the serialization. Pascal -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: 1 layout - 3 browsers - 3 results?
Hi, everything you said is correct. Magnus On Jun 9, 5:09 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, To be clear: What are you expecting to have in your layout scenario? i.e. A menu on top, a Chess Widget centered in the browser with same margins from top/left/right/bottoms? Also, the chess Widget should have 64 cells of the same height/width.? i.e. the cell doesn't change if the browser resize? On Wed, Jun 9, 2010 at 11:20 AM, Magnus alpineblas...@googlemail.comwrote: Hi group, I have started writing the layout code using the onresize event, and I think this will be the solution I wanted. I created a class Display, derived from LayoutPanel,. But I am still missing information to layout my widgets. It is not that easy to geht width and height, als mentioned above. For example,. to resize my MenuBar, I need its natural height, i. e. the height it needs to show its content. Then I would resize it to (window width,natural height). When I create it and add it to my LayourtPanel, it's immediately resized to fill the whole window. After that, getOffsetHeight returns not the desired result. I also tried to save the height immediately after creation and before adding it to the panel: MenuBar menubar = new MenuBar (); ... int menuHeight = menubar.getOffsetHeight (); // will be 0 add (menubar); But it returns 0. So I need a method to get the size a widget needs *independently* of its current size. Or how would you resize the menubar? Thanks Magnus On 9 Jun., 15:35, Ian Bambury ianbamb...@gmail.com wrote: But how do I get the Resize-Event if I don't subclass an existing layout panel? Window.addResizeHandler(handler); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT, servlet, JSP and datastore
if you develop with eclipse, in your starter project pick GWT and App Engine, and it will set up a basic GWT / App Engine project. That's the basic wiring required, (it uses RPC, it's convenient but not a must). As to guidelines... that's a huge topic... suggest browse the Google App Engine for Java and this forum and learn about all the frameworks out there. On Jun 8, 4:08 am, laurentleb laurent...@gmail.com wrote: To the GWT community, I am pretty new to GWT but familiar with n-tiers application development. I find GWT fascinating to develop rich web applications and went through the tutorial. This is amazingly simple to achieve. On the other side, I tested also Google app Engine to develop and deploy a JSP/servlet + datastore testing app. Once again, it is really efficient. My question is : how can I combine these two approaches to build nice applications on the client side with efficient business java code on the server side and data storing in Google datastore ? Are there some guidelines ? Is there a policy ? Thank you in advance for your help. Laurent -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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.
Cleaning up threads on GWT application shutdown
I have a GWT application that starts an independent thread and leaves it running for use by multiple GWT sessions. It appears that under Tomcat, when I Stop of Undeploy the application, this thread keeps running. I can't figure out the right way to manage shutting down the thread when the application is stopped (but tomcat keeps running). I tried adding a ShutdownHook using Runtime.getRuntime().addShutdownHook(), but that doesn't get called until Tomcat itself is shutdown. What is the proper way to manage threads at application shutdown time? Thanks, --Jim-- -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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 2.1 M1 Places in a Roo generated App
Hi I´m reviewing the GWT 2.1 applications generated by Roo and see that Roo generates a common GWT´s Place subclass for all places in app (ApplicationPlace), and that the application´s entrypoint registers handlers (activiymanagers) for placechangeevent, everything is ok until here, every time the user enters or leaves a place the event is fired and the appropiate activity is run. What i don´t understand is how the mapping between a part of my UI and the corresponding Place object is done, for example. How does my application know that the list of entities the user sees is an ApplicationListPlace? Or that the edit record views maps to a ApplicationRecordPlace? I don´t really know if this question belongs here or to Roo´s forum, so i´ve asked in both I must say too that i´m a GWT newbie, so maybe this is a stupid question, sorry if so. Best Regards, Raúl -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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.
calling rest service from GWT
Hi, In my client, I need to call a rest service that is on another external server and the URL is something like : * http://extServer/CallProgram http://extserver/CallProgram* The Request object is a String myRequest callingNumber111-222- callingNumber calledNumber777-888- calledNumber/myRequest The response is an xml . callId 111 /callId Could you guide me towards that ? Thanks in advance AB -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: Get today's date, and the first day of this week's date?
You could return a string for what day of the week it is from the DateTimeFormat (using E), then do a large if statement to return the first day of the week. Charles Keepax -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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 Developer with Chordiant, Hyderabad
Greetings! Hi , Very Good Day, Currently one of my client, CMM Level 5 company is looking for Java Developer with Chordiant 2 -5 Years of experience. Title: Java Developer with Chordiant Location: Hyderabad, India Qualifications : B.E/BTech/MTech/ MCA Experience : 2-5yrs relevant Preference will be given to the candidates who are willing to join ASAP. Job Description: Technical Skills required: Expertise in Chordiant is compulsory Secondary skills : Data Management, Campaign Management and Computer Telephonic interface(preferenc e will be given) Java Developer with Chordiant Skill set: 1. Chordiant Foundation Server Development. 2. Contact Center Advisor, CTI, CAFÉ Server. 3. Data Management, Campaign Management and Computer Telephonic interface. 4. Java/J2EE (Servlet, Java Script, JSP, HTML, XML, EJB, JMS, AJAX) 5. Packaging build tools like ANT, Cruse control and\or Maven. 6. Web sphere, Tomcat or Web logic. 7. RAD +7, My Eclipse. 8. Version Control Systems (PVS, Harvest, CVS). 9. SQL, PLSQL, TSQL. 10. Oracle or RDBMS as MSSQL/DB2. 11. UNIX Operating Systems and Shell Scripting. 12. Emerging Technologies as TDD, Spring Framework, Hibernate Framework, Components Web Based Framework (JSF, Tapestry) 13. Java, J2EE Design Patterns like MVC, Composite, Proxy. 14. SOA (Web Services, SOAP, ESB). Roles and Responsibilities: Analysis of Service Requests Preparation of Technical and Design documents Preparation of Test Plans Coding by strictly following the guidelines Unit Testing of CRs/Issues/ITSRs Testing of modules in Development / UT regions Preparation of Project Documents Communication with customers on assigned work Participate in Internal and External Audits Follow defined Processes and Procedures Interested Candidates please forward your updated resume with below mentioned details ASAP. Name: Email: Contact: Current Location: Ready to relocate Hyderabad Y/N: Notice Period: Current CTC: Expecting CTC: Total IT Experience: Relevant experience in Java/J2EE Technologies: Relevant experience in Chordiant Development : Thanks Regards, Sravanti. sravanti.care...@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.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
calling rest service from GWT client
In my client, I need to call a rest service that is on another external server and the URL is something like : http://extServer/CallProgram The Request object is a String myRequest callingNumber111-222- callingNumber calledNumber777-888- calledNumber/myRequest The response is an xml . callId 111 /callId Could you guide me towards that ? Thanks in advance AB -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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
i've figured it out.. one can nest javascriptobjects and just access the nested object thru jsni.. =) On May 31, 9:22 pm, powwow jimmy.w...@gmail.com wrote: I have this in my html and I can use JavaScriptOverlay types no problem and it works: script var properties = {width:640, height:480}; /script public class Properties extendsJavaScriptObject { 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: GWT, servlet, JSP and datastore
Hi Laurent, I am also new to GWT, also fascinated :-). I also already went trough samples and tutorials and well stopped at the point how to bind components to, in my case, database table in Oracle database. I don't know what do you mean exactly by Google datastore but I think you mean the Datastore class in GWT framework. Even GWT is very good for creating nice GUI on the client side, it's object-relational mapping is still in incubation period and you following options how to proceed: 1.) You need to manually write the functions which manipulate with data on the server side and call it via AJAX (JavaScript) from the client side when necessary. 2.) Look at EoD SQL project at http://eodsql.sourceforge.net/ this library may help you, there are also tutorials how to use it together with GWT 3.) This is the easiest, free for trial then payed, option. Use SmartGWT Professional or Enterprise. Take a look at it http://code.google.com/p/smartgwt/. It has integrated tomcat inside. In the SDK there are lot of examples and tutorials, but also something what you will find maybe really useful: Datasource generator - generate XML DS descriptional file, works with standard database engines, etc. Visual designer - you can create client layouts in visual way, in this tool you are also able to use for example Datagrid directly with Datasource you created in generator, and you have component directly interacting with any datasource. I found SmartGWT SDK best for learning, as standard GWT, you have access to all Java, XML files, but from Visual designer you also generate JSP file and can see what have you created. Hope I helped you. Also send me your experiences I you already found something better, different. Best regards, Kensai On Jun 8, 11:08 am, laurentleb laurent...@gmail.com wrote: To the GWT community, I am pretty new to GWT but familiar with n-tiers application development. I find GWT fascinating to develop rich web applications and went through the tutorial. This is amazingly simple to achieve. On the other side, I tested also Google app Engine to develop and deploy a JSP/servlet + datastore testing app. Once again, it is really efficient. My question is : how can I combine these two approaches to build nice applications on the client side with efficient business java code on the server side and data storing in Google datastore ? Are there some guidelines ? Is there a policy ? Thank you in advance for your help. Laurent -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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
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.
Deployment Error !
Hi, I'm excited about trying out java google app engine. My tutorials has been going fine while running on eclipse; but i keep getting this error trying to deploy to google. An internal error occurred during: Deploying GAEj to Google. XML error validating C:\Users\seni\workspace\GAEj\war\WEB-INF \appengine-web.xml against D:\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.1_1.3.1.v201002101412\appengine-java-sdk-1.3.1\docs\appengine- web.xsd Here is my appengine-web.xml - ?xml version=1.0 encoding=utf-8? appengine-web-app xmlns=http://appengine.google.com/ns/1.0; applicationsms2fonesreport/application version1/version !-- Configure serving/caching of GWT files -- static-files include path=** / !-- The following line requires App Engine 1.3.2 SDK -- include path=**.nocache.* expiration=0s / include path=**.cache.* expiration=365d / exclude path=**.gwt.rpc / /static-files !-- Configure java.util.logging -- system-properties property name=java.util.logging.config.file value=WEB-INF/ logging.properties/ /system-properties /appengine-web-app please help out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: Get today's date, and the first day of this week's date?
Probably the best class to implement that functionality would be DateTimeFormat ( http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/i18n/client/DateTimeFormat.html ) which is very similar to the Java DateFormat class. So for example: Date today = new Date(); DateTimeFormat dtf = DateTimeFormat.getFormat(.MM.dd HH:mm:ss); String strToday = dtf.format(today); Will fill strToday with the current date and time. This can be set to return the day of the week etc as well. As for performing operations on Dates such as adding days I usually use the getTime method (this returns the Date as a long representing the number of milliseconds that have passed since January 1, 1970, 00:00:00 GMT) and operate on the dates as a long. So for example if I want to add a day I just add (24*60*60*1000) to the long then create a new Date object. Hope that helps some, Charles Keepax On Jun 8, 9:58 pm, spierce7 spier...@gmail.com wrote: Hey guys, I just found out that the Java Calendar class isn't compatible with GWT (Assumed it was since Date was). I'm a Java newb and spent a few hours figuring out how to do what I wanted to do with the Calendar class, and I'm clueless how to do this with GWT, so any help would be appreciated. 1. Get today's date. 2. Using the current date, get the date of the first day of the week (Sunday), and I think I might need to know how to get the end date also. 3. How to Add and subtract a number of days to a date. 4. I need to know how to parse all the above questions information into a string. Off the top of my head, that's what I'm trying to do. 1 More question: 5. Would it improve performance while handling a start date and an end date for an event, instead of keeping an end date, calculating the duration that the event would last, rather than calculating the date? Would it even be worth it? (A friend recommended this) 6. Are we seeing any updates coming for working with dates? I'm currently using GWT 2.03. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: Returning values, next try. Sending was too fast for me
Hi, GUIs are asynchronously. You still think synchronously. No change to succeed synchronously. Your GUI continue to run while your service is send. Remove the return int. Put Code to continue with in onSuccess Stefan Bachert http://gwtworld.de On Jun 8, 3:07 pm, uwi_u uwe.chris...@gad.de wrote: Hi there, I'm currently writing an Application with GWT, and am Stuck at one position: When I call my RPC, the value which is to be returned, will be passed to an global variable. Unfortunately, the returning of this global variable out of the method happens before the onSuccess comes back. the only way to block which I see is to do a while until loginFeedback 0 Heres some Code (loginFeedback shall get a value from 0 to 2): public int loginUser(String user, String passwd, boolean override){ loginFeedback = -1; XGENgwt.loginUser(user, passwd, override, new AsyncCallback(){ public void onSuccess(Object result){ loginFeedback = Integer.parseInt(result.toString()); } public void onFailure (Throwable caught){ Window.alert(Unable to login: +caught.toString()); } }); logToServer(Bei der Zuweisung: +loginFeedback); return loginFeedback; } Is there a better way? I hope so -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: Full or Part Time Position available
Can somebody from Google please block this Saima Waseem, it is spamming all over Google Groups, thanks! On Jun 9, 2:30 pm, Saima Waseem saimawaseem2...@gmail.com wrote: Make and extra income from home. International company seek motivated individuals to work from home. Positions available data entry, research and more.http://www.clicknearn.net/3527.html For further details Contact us Address : 81 Badlis road Waltham stow, London Website :www.clicknearn.net Support Center : (All Clients Members Contact Us Through Support Center. Thanks)http://www.clicknearn.net/helpdesk/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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, servlet, JSP and datastore
@kensai If you look at Google App Engine, the datastore is part of Google's free-to-start cloud hosting service. On Wed, Jun 9, 2010 at 02:56, kensai yanesha archenr...@googlemail.comwrote: Hi Laurent, I am also new to GWT, also fascinated :-). I also already went trough samples and tutorials and well stopped at the point how to bind components to, in my case, database table in Oracle database. I don't know what do you mean exactly by Google datastore but I think you mean the Datastore class in GWT framework. Even GWT is very good for creating nice GUI on the client side, it's object-relational mapping is still in incubation period and you following options how to proceed: 1.) You need to manually write the functions which manipulate with data on the server side and call it via AJAX (JavaScript) from the client side when necessary. 2.) Look at EoD SQL project at http://eodsql.sourceforge.net/ this library may help you, there are also tutorials how to use it together with GWT 3.) This is the easiest, free for trial then payed, option. Use SmartGWT Professional or Enterprise. Take a look at it http://code.google.com/p/smartgwt/. It has integrated tomcat inside. In the SDK there are lot of examples and tutorials, but also something what you will find maybe really useful: Datasource generator - generate XML DS descriptional file, works with standard database engines, etc. Visual designer - you can create client layouts in visual way, in this tool you are also able to use for example Datagrid directly with Datasource you created in generator, and you have component directly interacting with any datasource. I found SmartGWT SDK best for learning, as standard GWT, you have access to all Java, XML files, but from Visual designer you also generate JSP file and can see what have you created. Hope I helped you. Also send me your experiences I you already found something better, different. Best regards, Kensai On Jun 8, 11:08 am, laurentleb laurent...@gmail.com wrote: To the GWT community, I am pretty new to GWT but familiar with n-tiers application development. I find GWT fascinating to develop rich web applications and went through the tutorial. This is amazingly simple to achieve. On the other side, I tested also Google app Engine to develop and deploy a JSP/servlet + datastore testing app. Once again, it is really efficient. My question is : how can I combine these two approaches to build nice applications on the client side with efficient business java code on the server side and data storing in Google datastore ? Are there some guidelines ? Is there a policy ? Thank you in advance for your help. Laurent -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: Deployment Error !
I think you're looking for one of these groups: http://code.google.com/appengine/community.html On Jun 9, 6:26 am, Joshua Balogun joshua.balogu...@gmail.com wrote: Hi, I'm excited about trying out java google app engine. My tutorials has been going fine while running on eclipse; but i keep getting this error trying to deploy to google. An internal error occurred during: Deploying GAEj to Google. XML error validating C:\Users\seni\workspace\GAEj\war\WEB-INF \appengine-web.xml against D:\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.1_1.3.1.v201002101412\appengine-java-sdk-1.3.1\docs\appengine- web.xsd Here is my appengine-web.xml - ?xml version=1.0 encoding=utf-8? appengine-web-app xmlns=http://appengine.google.com/ns/1.0; applicationsms2fonesreport/application version1/version !-- Configure serving/caching of GWT files -- static-files include path=** / !-- The following line requires App Engine 1.3.2 SDK -- include path=**.nocache.* expiration=0s / include path=**.cache.* expiration=365d / exclude path=**.gwt.rpc / /static-files !-- Configure java.util.logging -- system-properties property name=java.util.logging.config.file value=WEB-INF/ logging.properties/ /system-properties /appengine-web-app please help out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: 1 layout - 3 browsers - 3 results?
Hi, The code below is part of the task, but it center the main chess table in the dock center panel. Does this work for you or at least give some help? http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.html http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.java http://www.puntosoft.com.ar/gwt/layoutChess/ChessTable.java On Wed, Jun 9, 2010 at 12:50 PM, Magnus alpineblas...@googlemail.comwrote: Hi, everything you said is correct. Magnus On Jun 9, 5:09 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, To be clear: What are you expecting to have in your layout scenario? i.e. A menu on top, a Chess Widget centered in the browser with same margins from top/left/right/bottoms? Also, the chess Widget should have 64 cells of the same height/width.? i.e. the cell doesn't change if the browser resize? On Wed, Jun 9, 2010 at 11:20 AM, Magnus alpineblas...@googlemail.com wrote: Hi group, I have started writing the layout code using the onresize event, and I think this will be the solution I wanted. I created a class Display, derived from LayoutPanel,. But I am still missing information to layout my widgets. It is not that easy to geht width and height, als mentioned above. For example,. to resize my MenuBar, I need its natural height, i. e. the height it needs to show its content. Then I would resize it to (window width,natural height). When I create it and add it to my LayourtPanel, it's immediately resized to fill the whole window. After that, getOffsetHeight returns not the desired result. I also tried to save the height immediately after creation and before adding it to the panel: MenuBar menubar = new MenuBar (); ... int menuHeight = menubar.getOffsetHeight (); // will be 0 add (menubar); But it returns 0. So I need a method to get the size a widget needs *independently* of its current size. Or how would you resize the menubar? Thanks Magnus On 9 Jun., 15:35, Ian Bambury ianbamb...@gmail.com wrote: But how do I get the Resize-Event if I don't subclass an existing layout panel? Window.addResizeHandler(handler); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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. To post 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: Safari 5 / GWT / GWT EXT 2.0.6
Interestingly i've discovered that this bug only applies to 32bit safari. On 10.5 or Win running safari 5 normally causes the error, but if i choose to use rosetta to run it (64bit ppc code), it works fine. On 10.6 when safari is in i386_x64 mode, it works fine, but if i choose to run in 32-bit mode then I'm seeing the exception again. On Jun 8, 1:22 pm, eric73 e...@pentila.com wrote: I am not use deferred commands and code splitting so the problem stay unsolved . Please help On 8 juin, 19:17, matthew jones bigboxe...@gmail.com wrote: We're using deferred commands and code splitting. On Jun 8, 12:12 pm, eric73 e...@pentila.com wrote: On 8 juin, 18:54, Jeff Chimene jchim...@gmail.com wrote: On 06/08/2010 09:46 AM, matthew jones wrote: Same thing here. On Jun 8, 11:43 am, eric73 e...@pentila.com wrote: Hi all! today I upgrade my Safari 4.0 to Safari 5.0 on Snow (other browsers are OK) Now my sites build with GWT 2.0.3 / GWT EXT 2.0.6 etc ... sometime don't run. I test its with Safari 4.0 and all worked. A javascript Error appear : RangeError: Maximum call stack size exceeded. Are you using deferred commands or codesplitting? I'mn seeing the same thing on the Linux build of Chrome. No, this error appear on 2 tree (gwt ext) and a Grid with a potential big set of data... But an other grid in an others part of my application, with an other big set of data work ... I use cross-site compilation (xs linker) ... Thanks for reply -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: 1 layout - 3 browsers - 3 results?
Hi Alejandro, this looks very good and I am still analyzing the java code. I will give you a more detailed feedback later... The java code looks clean, but the html file is pumped up with of JavaScript. Does this code belong to the solution or is it just generated from other sources? Magnus On Jun 9, 7:35 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, The code below is part of the task, but it center the main chess table in the dock center panel. Does this work for you or at least give some help? http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.html http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.javahttp://www.puntosoft.com.ar/gwt/layoutChess/ChessTable.java On Wed, Jun 9, 2010 at 12:50 PM, Magnus alpineblas...@googlemail.comwrote: Hi, everything you said is correct. Magnus On Jun 9, 5:09 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, To be clear: What are you expecting to have in your layout scenario? i.e. A menu on top, a Chess Widget centered in the browser with same margins from top/left/right/bottoms? Also, the chess Widget should have 64 cells of the same height/width.? i.e. the cell doesn't change if the browser resize? On Wed, Jun 9, 2010 at 11:20 AM, Magnus alpineblas...@googlemail.com wrote: Hi group, I have started writing the layout code using the onresize event, and I think this will be the solution I wanted. I created a class Display, derived from LayoutPanel,. But I am still missing information to layout my widgets. It is not that easy to geht width and height, als mentioned above. For example,. to resize my MenuBar, I need its natural height, i. e. the height it needs to show its content. Then I would resize it to (window width,natural height). When I create it and add it to my LayourtPanel, it's immediately resized to fill the whole window. After that, getOffsetHeight returns not the desired result. I also tried to save the height immediately after creation and before adding it to the panel: MenuBar menubar = new MenuBar (); ... int menuHeight = menubar.getOffsetHeight (); // will be 0 add (menubar); But it returns 0. So I need a method to get the size a widget needs *independently* of its current size. Or how would you resize the menubar? Thanks Magnus On 9 Jun., 15:35, Ian Bambury ianbamb...@gmail.com wrote: But how do I get the Resize-Event if I don't subclass an existing layout panel? Window.addResizeHandler(handler); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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. To post 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: 1 layout - 3 browsers - 3 results?
Just from the webappcreator. Nothing special. On Jun 9, 2010 3:28 PM, Magnus alpineblas...@googlemail.com wrote: Hi Alejandro, this looks very good and I am still analyzing the java code. I will give you a more detailed feedback later... The java code looks clean, but the html file is pumped up with of JavaScript. Does this code belong to the solution or is it just generated from other sources? Magnus On Jun 9, 7:35 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, The code below is part of the task, but it center the main chess table in the dock center panel http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.javahttp://www.puntosoft.com.ar/gwt/layoutChess/ChessTable.java On Wed, Jun 9, 2010 at 12:50 PM, Magnus alpineblas...@googlemail.com wrote: Hi, everything you said is correct. Magnus On Jun 9, 5:09 pm, Alejandro D. ... google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/goog... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: 1 layout - 3 browsers - 3 results?
Hi Alejandro, forget my question about the html file. Following your link to the html file leads to the JavaScript hell. :-) But I managed to download the original source, which is quite friendly. I'll test and I'll answer! Many thanks! Magnus On Jun 9, 8:28 pm, Magnus alpineblas...@googlemail.com wrote: Hi Alejandro, this looks very good and I am still analyzing the java code. I will give you a more detailed feedback later... The java code looks clean, but the html file is pumped up with of JavaScript. Does this code belong to the solution or is it just generated from other sources? Magnus On Jun 9, 7:35 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, The code below is part of the task, but it center the main chess table in the dock center panel. Does this work for you or at least give some help? http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.html http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.javahttp://ww... On Wed, Jun 9, 2010 at 12:50 PM, Magnus alpineblas...@googlemail.comwrote: Hi, everything you said is correct. Magnus On Jun 9, 5:09 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, To be clear: What are you expecting to have in your layout scenario? i.e. A menu on top, a Chess Widget centered in the browser with same margins from top/left/right/bottoms? Also, the chess Widget should have 64 cells of the same height/width.? i.e. the cell doesn't change if the browser resize? On Wed, Jun 9, 2010 at 11:20 AM, Magnus alpineblas...@googlemail.com wrote: Hi group, I have started writing the layout code using the onresize event, and I think this will be the solution I wanted. I created a class Display, derived from LayoutPanel,. But I am still missing information to layout my widgets. It is not that easy to geht width and height, als mentioned above. For example,. to resize my MenuBar, I need its natural height, i. e. the height it needs to show its content. Then I would resize it to (window width,natural height). When I create it and add it to my LayourtPanel, it's immediately resized to fill the whole window. After that, getOffsetHeight returns not the desired result. I also tried to save the height immediately after creation and before adding it to the panel: MenuBar menubar = new MenuBar (); ... int menuHeight = menubar.getOffsetHeight (); // will be 0 add (menubar); But it returns 0. So I need a method to get the size a widget needs *independently* of its current size. Or how would you resize the menubar? Thanks Magnus On 9 Jun., 15:35, Ian Bambury ianbamb...@gmail.com wrote: But how do I get the Resize-Event if I don't subclass an existing layout panel? Window.addResizeHandler(handler); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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. To post 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: Safari 5 - (RangeError): Maximum call stack size exceeded
Yes, others are hitting this, and it looks like a bug in the Safari 5 Javascript Core. On Wed, Jun 9, 2010 at 11:11 AM, Pascal zig...@gmail.com wrote: When we try to run dev mode to get a better stack trace, everything works fine. Could it be a change in the javascript engine in safari 5 that's causing this error? Any insights? Regards, Pascal On 9 juin, 10:18, Pascal zig...@gmail.com wrote: For both gwt 2.0.2 and 2.0.3 some of our users that have upgraded to Safari 5 are seeing this error. This is a vanilla GWT application (no external library). This is happening in web mode. Everything works fine in Safari 4 (and all other browsers). Also, some of our Safari 5 users are not seeing the error. This is the exact javascript error from the browser. com.google.gwt.core.client.JavaScriptException: (RangeError): Maximum call stack size exceeded. Anybody else seeing this? It seems to be a problem with the serialization. Pascal -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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. -- Chris Conroy Software Engineer Google, Atlanta -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: Safari 5 - (RangeError): Maximum call stack size exceeded
It seems to be 32bit safari related... running in rosetta or on SL in 64bit clears the issue up for us. On Jun 9, 10:11 am, Pascal zig...@gmail.com wrote: When we try to run dev mode to get a better stack trace, everything works fine. Could it be a change in the javascript engine in safari 5 that's causing this error? Any insights? Regards, Pascal On 9 juin, 10:18, Pascal zig...@gmail.com wrote: For both gwt 2.0.2 and 2.0.3 some of our users that have upgraded to Safari 5 are seeing this error. This is a vanilla GWT application (no external library). This is happening in web mode. Everything works fine in Safari 4 (and all other browsers). Also, some of our Safari 5 users are not seeing the error. This is the exact javascript error from the browser. com.google.gwt.core.client.JavaScriptException: (RangeError): Maximum call stack size exceeded. Anybody else seeing this? It seems to be a problem with the serialization. Pascal -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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-maven-plugin deploy problem
Hi, I'm quite new in GWT. I built gwt app using Spring, Hibernate and GXT. It works fine in hosted mode (jetty), but when i build war (maven install) then war file is generated. WAR itsefl looks good, but when i navigate to deployed App in my browser pop-up is showed. gwt module my module may need to be (re)compiled When i start hosted mode simultanously and add ? gwt.codesvr=127.0.0.1:9997 to deployed app it works fine ... What I'm doing wrong ? I attache log from tomcat6 which I use to deploy war file. ### LOG TOMCAT ## 2010-06-09 21:54:59 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 2010-06-09 21:54:59 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 670 ms 2010-06-09 21:54:59 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 2010-06-09 21:54:59 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.20 2010-06-09 21:54:59 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive tracks-0.0.3-SNAPSHOT.war 2010-06-09 21:54:59 org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/var/lib/tomcat6/webapps/tracks-0.0.3-SNAPSHOT/ WEB-INF/lib/gwt-user-2.0.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class 2010-06-09 21:54:59 org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/var/lib/tomcat6/webapps/tracks-0.0.3-SNAPSHOT/ WEB-INF/lib/servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class 2010-06-09 21:54:59 org.springframework.web.context.ContextLoader initWebApplicationContext INFO: Root WebApplicationContext: initialization started 2010-06-09 21:55:00 org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing Root WebApplicationContext: startup date [Wed Jun 09 21:55:00 CEST 2010]; root of context hierarchy 2010-06-09 21:55:00 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from ServletContext resource [/WEB- INF/applicationContext.xml] 2010-06-09 21:55:00 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.defaultlistablebeanfact...@2c35e: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,dataSource,sessionFactory,ContractsService,ContractorsService,AddressesService,TrucksService,PersonsService]; root of factory hierarchy 2010-06-09 21:55:00 org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName INFO: Loaded JDBC driver: com.mysql.jdbc.Driver 2010-06-09 21:55:01 org.hibernate.cfg.Environment clinit INFO: Hibernate 3.2.6 2010-06-09 21:55:01 org.hibernate.cfg.Environment clinit INFO: hibernate.properties not found 2010-06-09 21:55:01 org.hibernate.cfg.Environment clinit WARNING: could not copy system properties, system properties will be ignored 2010-06-09 21:55:01 org.hibernate.cfg.Environment buildBytecodeProvider INFO: Bytecode provider name : cglib 2010-06-09 21:55:01 org.hibernate.cfg.Environment clinit INFO: using JDK 1.4 java.sql.Timestamp handling 2010-06-09 21:55:01 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: mypackage.model.ContractDTO - contracts 2010-06-09 21:55:01 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: mypackage.model.ContractorDTO - contractors 2010-06-09 21:55:01 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: mypackage.model.AddressDTO - addresses 2010-06-09 21:55:01 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: mypackage.model.PersonDTO - persons 2010-06-09 21:55:01 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: mypackage.model.DriverDTO - drivers 2010-06-09 21:55:01 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: mypackage.model.TruckDTO - trucks 2010-06-09 21:55:01 org.springframework.orm.hibernate3.LocalSessionFactoryBean buildSessionFactory INFO: Building new Hibernate SessionFactory 2010-06-09 21:55:01 org.hibernate.connection.ConnectionProviderFactory newConnectionProvider INFO: Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings INFO: RDBMS: MySQL, version: 5.1.37-1ubuntu5.1 2010-06-09 21:55:02
Re: SerializationException, Hibernate, no sets
i've resolved problem creating new DTO on the server from this creating by hibernate; On 5 Cze, 14:57, fazie d.rabi...@gmail.com wrote: Hi, I've got problem using GWT+Spring+Hibernate+Maven App. The SerializationException occurs when I use class including another class (DTO). public class AddressDTO implements IsSerializable { private static final long serialVersionUID = 1L; private int addressid; ( ... other ints and strings ... ) public AddressDTO() { } ( .. setters and getters, generated with eclipse ...) } And this class is used inside another DTO: public class ContractorDTO implements Serializable { private static final long serialVersionUID = 15L; private int contractorid; ( ... some ints and strings ...) private AddressDTO addressid; public ContractorDTO() { } ( ... setters and getters, generated with eclipse ...) } And when I call remote service, the following error is occuring: com.google.gwt.user.client.rpc.SerializationException: Type 'mypackage.model.AddressDTO$$EnhancerByCGLIB$$6c3f0084' 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 = mypackage.model.address...@847468 at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java: 610) Any idea? Thank you in advance! fazie -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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.
Using Javascript Overlays vs. Manually setting up POJO instances?
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.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
LayoutPanel question
Hi there I'm trying to hide a layer in my LayoutPanel. The idea is to have a layer act a bit like a popup, but it's not really a popup, and it makes it easier if it is a layer. I'm trying to hide it, so I toggle the layer child (a simplePanel)'s visibility property on/off, which seems to work fine, but it leaves a div element (from the layer I suppose), which means I can't click through to the elements behind it... When I look at the DOM, I get a div with all the properties from my layer, and then the div inside that is the SimplePanel I'm using. Any ideas? I guess i could just ask for the widget's parent? But that seems hacky. Am I doing something wrong? 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.
Re: calling rest service from GWT
You have two options - 1. Use a proxy server to proxy requests from your server to the external domain. The new url will then be something like http://myserver.com/extserver/CallProgram. Then use regular RequestBuilder to make the calls. Apache's mod_proxy can do this job easily, Tomcat also has support for a proxy server. This has some disadvantages - authentication cookies meant for external domain will not be sent by the browser. 2. Change the service to return JSON data, and then use JSONP to parse the data on client side. This may not be feasible, since you have a XML service Finally, avoid parsing XML on the client side if you can. JSON is a much better format to send data to the clients, and even if you have to do an automatic conversion from XML to JSON on the server side, it is worth the effort. --Sri On 9 June 2010 20:35, Archana Babuta abab...@gmail.com wrote: Hi, In my client, I need to call a rest service that is on another external server and the URL is something like : * http://extServer/CallProgram http://extserver/CallProgram* The Request object is a String myRequest callingNumber111-222- callingNumber calledNumber777-888- calledNumber/myRequest The response is an xml . callId 111 /callId Could you guide me towards that ? Thanks in advance AB -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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 Overlays vs. Manually setting up POJO instances?
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.
Does entire IncrementalCommand run in one tick?
Do all steps of an IncrementalCommand run in one tick, or does it return control to the js event loop in between steps, thereby allowing other commands on the deferred queue to run in between steps? e.g. List results = some list returned from a service; DeferredCommand.addCommand(new IncrementalCommand() { int i=0; public boolean execute { doSomeReallyLongAssWorkWithRecord(results.get(i++)); updateUI(); return iresults.size(); } }); DeferredCommand.addCommand(new Command() { public void execute() { doCleanUp(); } }); i.e. will the 2nd deferred cmd (i.e. the cleanup step) always only run after the incremental command is done, or can it creep in between steps of the incremental command? Thanks much for replies! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: Safari 5 - (RangeError): Maximum call stack size exceeded
This is occurring for us in the Arrays.mergeSort() code. A reduced testcase (which looks like the binarySearch code) is in the webkit bug tracking system at: https://bugs.webkit.org/show_bug.cgi?id=40355 It appears that in some complex expressions the right shift operator is not evaluating correctly. Assigning the result of the right shift to a temporary variable and then using it appears to make the problem go away. As a temporary fix, we're patching Arrays.java:mergeSort() to assign the result of the right shift to a temporary variable before using it. If you're using binary search you'd need to patch those functions as well. It's a bit of a hack, but it seems to work. I've included our patch below, in case it is helpful to someone. diff --git a/super/com/google/gwt/emul/java/util/Arrays.java b/super/ com/google/ index 89dcc33..b7ba6fa 100644 --- a/super/com/google/gwt/emul/java/util/Arrays.java +++ b/super/com/google/gwt/emul/java/util/Arrays.java @@ -1322,7 +1322,8 @@ public class Arrays { // recursively sort both halves, using the array as temp space int tempLow = low + ofs; int tempHigh = high + ofs; -int tempMid = tempLow + ((tempHigh - tempLow) 1); +int half = length 1; +int tempMid = tempLow + half; mergeSort(array, temp, tempLow, tempMid, -ofs, comp); mergeSort(array, temp, tempMid, tempHigh, -ofs, comp); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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: Does entire IncrementalCommand run in one tick?
No, it cannot creep. Each execute callback runs as 1 uninterrupted thread. On Wed, Jun 9, 2010 at 4:25 PM, macagain rgk...@gmail.com wrote: Do all steps of an IncrementalCommand run in one tick, or does it return control to the js event loop in between steps, thereby allowing other commands on the deferred queue to run in between steps? e.g. List results = some list returned from a service; DeferredCommand.addCommand(new IncrementalCommand() { int i=0; public boolean execute { doSomeReallyLongAssWorkWithRecord(results.get(i++)); updateUI(); return iresults.size(); } }); DeferredCommand.addCommand(new Command() { public void execute() { doCleanUp(); } }); i.e. will the 2nd deferred cmd (i.e. the cleanup step) always only run after the incremental command is done, or can it creep in between steps of the incremental command? Thanks much for replies! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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 run a unittest for a class in client folder of gwt which makes Async calls to the server
If you're using EasyMock, this is a very easy way to mock a service. Been using this for a long time. http://robvanmaris.jteam.nl/2008/04/22/test-driven-development-for-gwt-ui-code-with-asynchronous-rpc/ This is a great method. I was using EacyMocks Catpure method to do the same thing; CaptureAsyncCallbackSomeModel captureCallback = new CaptureAsyncCallbackSomeModel(); mockServiceAsync.getModel(and(capture(captureCallback), isA(AsyncCallback.class))); captureCallback.getValue().onsuccess(someModelInstance); 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: Synchronous Calls with RPC??
+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.
Context Menu on Tree in GWT 2.0.3
hi friends, GWT 2.0.3 Feature : 1. it's not allow to select the tree using right click. I am try to use the Context menu on tree or TreeItem using onBrowserContext event. but there is no TreeItem is selected on right click of treeitem. how to achieve the context menu features in GWT 2.0.3 Please help me. i am searching a lot of things on internet. thanks, Ganesh Shirsat -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post 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] Re: Contributing code to use models for HTML tables
I think there is, my bad ;) Thx On Jun 7, 7:28 pm, Thomas Broyer t.bro...@gmail.com wrote: On Jun 7, 1:43 pm, Frank Verbruggen fea...@gmail.com wrote: I am currently writing some code to use models for a subclass of the Grid class. The idea being that I want to port a rich Java interface from Swing to GWT. This interface uses lots of JTables and TableModels, and I would like to port it as much as is as possible to GWT. How can I submit this code in order to contribute to the GWT project (as I think this code should be made publicly available)? Have you looked at the new Data Presentation Widgets in 2.1M1?http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html#DataPr...http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g... Isn't there some overlap? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8240 committed - Replacing CurrencyCell with generic NumberCell that uses NumberFormat....
Revision: 8240 Author: jlaba...@google.com Date: Wed Jun 9 09:35:40 2010 Log: Replacing CurrencyCell with generic NumberCell that uses NumberFormat. Review at http://gwt-code-reviews.appspot.com/568801 http://code.google.com/p/google-web-toolkit/source/detail?r=8240 Added: /trunk/user/src/com/google/gwt/cell/client/NumberCell.java /trunk/user/test/com/google/gwt/cell/client/NumberCellTest.java Deleted: /trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/SortableColumn.java /trunk/user/src/com/google/gwt/cell/client/CurrencyCell.java Modified: /trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/ExpensesCommon.gwt.xml /trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpenseDetails.java === --- /dev/null +++ /trunk/user/src/com/google/gwt/cell/client/NumberCell.java Wed Jun 9 09:35:40 2010 @@ -0,0 +1,52 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.cell.client; + +import com.google.gwt.i18n.client.NumberFormat; + +/** + * A {...@link Cell} used to render formatted numbers. + */ +public class NumberCell extends AbstractCellNumber { + + /** + * The {...@link NumberFormat} used to render the number. + */ + private final NumberFormat format; + + /** + * Construct a new {...@link NumberCell} using decimal format. + */ + public NumberCell() { +this(NumberFormat.getDecimalFormat()); + } + + /** + * Construct a new {...@link NumberCell}. + * + * @param format the {...@link NumberFormat} used to render the number + */ + public NumberCell(NumberFormat format) { +this.format = format; + } + + @Override + public void render(Number value, Object viewData, StringBuilder sb) { +if (value != null) { + sb.append(format.format(value)); +} + } +} === --- /dev/null +++ /trunk/user/test/com/google/gwt/cell/client/NumberCellTest.java Wed Jun 9 09:35:40 2010 @@ -0,0 +1,54 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.cell.client; + +import com.google.gwt.i18n.client.NumberFormat; + +/** + * Tests for {...@link ButtonCell}. + */ +public class NumberCellTest extends CellTestBaseNumber { + + @Override + protected boolean consumesEvents() { +return false; + } + + @Override + protected CellNumber createCell() { +return new NumberCell(NumberFormat.getFormat(#.##)); + } + + @Override + protected Number createCellValue() { +return new Double(100.12); + } + + @Override + protected boolean dependsOnSelection() { +return false; + } + + @Override + protected String getExpectedInnerHtml() { +return 100.12; + } + + @Override + protected String getExpectedInnerHtmlNull() { +return ; + } +} === --- /trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/SortableColumn.java Mon Jun 7 12:20:31 2010 +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the License); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ -package com.google.gwt.sample.expenses.gwt.client; - -import com.google.gwt.cell.client.Cell; -import com.google.gwt.user.cellview.client.Column; - -import java.util.Comparator; - -/** - * A column that provides forward and reverse {...@link Comparator}s. - * - * @param T the row type - * @param C