Syncronize hovered rows in two cellTables
Hello, I've two celltables inside a horizontalPanel. The first table contains line numers and the second one contains text. I need to syncronize the hovered rows in both tables. If the user moves the mouse over one table, the row should be hovered in the second table too. Does someone knows how I could solve this problem? I can't use only one table, because if the user selects the text in the second table, the line numbers shouldn't be selected. Regards Stephan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Performace Tips
On Thursday, February 10, 2011 7:20:40 PM UTC+1, Jim Douglas wrote: Have you profiled your application in Chrome using Speed Tracer? Also try DynaTrace in IE: http://ajax.dynatrace.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CSS Styling With GWT
On Thursday, February 10, 2011 11:26:34 PM UTC+1, Nick Apperley wrote: I am interested in finding out how people do CSS styling with GWT. After making an attempt to go though the Client Bundle route CSS is not being applied to all the UI Binder templates. Google have deprecated the method of referring to CSS via the link tag in a HTML page. Previously I used this method for CSS styling which works, but decided to go with the recommended way (current practice) to do CSS styling in GWT. What is puzzling with UI Binder is that all the GWT widgets don't have a natural mapping to CSS with properties like class and id. In other words one cannot style the widgets without adding a style via a method call. Surely there is a more straightforward way to do this. You can use styleName= in your ui.xml as an equivalent to setStyleName (bean-like setter, like all other attributes), and there's a special addStyleNames= attribute too, taking a space- or comma-separated list of style names (and will generate code that calls addStyleName with each value) See Use in UiBinder Templates in the javadoc http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/UIObject.html The id property does exist but conflicts with the ui:field property which isn't ideal when you need to customize a widget in a Java class. It seems as though id is the same as ui:field. Styling using an #id has no advantage over using a .className, and is very fragile in code (it's too easy to add a widget twice and break the ID uniqueness). All documentation on Client Bundle is not entirely clear on how it maps to classes and ids in CSS. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Base Application Featuring Best-Practice Technologies
Very good contribution Jake. I think this is what most developers who are taking their first steps in GWT would like to have. And it can be used as the foundations of every single web app you make. Just use whatever you need and delete what you don´t. That´s the aim, isn´t it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FormPanel.SubmitCompleteHandler called even on error return?
On Friday, February 11, 2011 3:05:50 AM UTC+1, Bill Janssen wrote: I find that even when my server sends back 400 and 401 error responses in response to a FormPanel submit, the SubmitCompleteHandler of the FormPanel is still being called. Of course, a web page is still sent to the client and displayed in the hidden iframe used by the FormPanel. Is there any way in a SubmitCompleteHandler to see if the submit actually succeeded or not? Look at the SubmitCompleteEvent's getResults and infer the result (success/failure) from it. In other words, your server should return something parsable, so you can be sure it's successful; and if you cannot parse it, then it's likely an error. But honestly, if you can avoid using FormPanel, do it! I'd even say use Flash for file uploads if that's your use case (use plupload or gwt-upload if you can, to avoid dealing yourself with FormPanel) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory: /gwtRequest not found
On Friday, February 11, 2011 7:26:11 AM UTC+1, Sarjith wrote: On Fri, Feb 11, 2011 at 11:41 AM, Y2i yur...@gmail.com wrote: There should be something like this in app's web.xml servlet servlet-namerequestFactory/servlet-name servlet-classcom.google.gwt.requestfactory.server.RequestFactoryServlet/servlet-class /servlet servlet-mapping servlet-namerequestFactory/servlet-name url-pattern/gwtRequest/url-pattern /servlet-mapping Yes, Its already there in my web.xml. And this is the error I can see in my eclipse console. 11 Feb, 2011 11:48:04 AM com.google.gwt.requestfactory.server.ReflectiveServiceLayer clinit INFO: Unable to initialize a JSR 303 Bean Validator javax.validation.ValidationException: Unable to find a default provider That's normal if you don't include a JSR 303 bean validator (such as Hibernate-validator). It means you cannot use JSR 303 bean validation, but it's not a fatal error (hence the INFO log level). 11 Feb, 2011 11:48:04 AM com.sample.model.Customer SEVERE: There is no getVersion() method in type com.sample.model.Customer 11 Feb, 2011 11:48:04 AM com.sample.model.Customer SEVERE: There is no findCustomer method in type com.sample.model.Customer that returns com.sample.model.Customer 11 Feb, 2011 11:48:04 AM com.google.gwt.requestfactory.server.ServiceLayer SEVERE: Type type com.sample.shared.CustomerProxy was previously marked as bad 11 Feb, 2011 11:48:04 AM com.sample.shared.SampleRequestFactory.CustomerRequest com.google.gwt.requestfactory.shared.Request getRandomCustomer() SEVERE: The method getRandomCustomer is declared to return com.google.gwt.requestfactory.shared.Request, but the service method is not static 11 Feb, 2011 11:48:04 AM com.google.gwt.requestfactory.server.ServiceLayer SEVERE: Type type com.sample.shared.CustomerProxy was previously marked as bad 11 Feb, 2011 11:48:04 AM com.google.gwt.requestfactory.server.ServiceLayerDecorator die SEVERE: The RequestContext type com.sample.shared.SampleRequestFactory$CustomerRequest did not pass validation Well, the fixes should be straightforward (and if they're not, read the docs again, if they're still not, then ask here ;-) ). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory: /gwtRequest not found
On Friday, February 11, 2011 7:53:17 AM UTC+1, Sarjith wrote: The very first thing I dint understand is, how do we map the request url to our method?. com.google.gwt.requestfactory.server.RequestFactoryServlet is the class defined in gwt package, then how we say getPerson() request should call this method in this service class?. please correct me if I'm wrong anywhere. The request contains the name of the RequestContext class, which is deployed on the server. So RequestFactoryServlet looks at the class for its @Service or @ServiceName annotation. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Base Application Featuring Best-Practice Technologies
Why are your activities singletons? (they're injected into the ActivityMapper, which is instantiated once only, so in practice they are singletons, even if not declared as such in your GIN bindings). Activities are cheap, so unless you *have* to maintain state between use (I believe it's not the case for the PersonEditActivity, it could be for the PersonListActivity but not currently in your code), you shouldn't use singletons. Note that in this case, you should call setPresenter from within your activity's start() (to make sure an instantiated but not started activity doesn't set itself as the presenter for the view and steal this role from an already started activity); and I like to call setPresenter(null) from onCancel and onStop. They're also instantiated eagerly (because they're injected in the ActivityMapper, instead of injecting a Provider), which means their view is instantiated eagerly too. In such a simple app that's not really a problem because you're likely to use all the activities and their views, but as the application grows, it means you're instantiating things that you might never use. Finally, you should probably extend AbstractActivity rather than directly implement Activity (there was a discussion a few months back about possibly introducing new methods to the interface, which would be breaking changes if you implement it directly, whereas there would be a default implementation in AbstractActivity) BTW, I've only looked at the activities. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: IE warning message in web mode
there is a detailed article that tackles this issue at http://www.phdcc.com/xpsp2.htm i tried the method of Mark of the web by adding these two lines at the begining of myfile.html file : !-- saved from url=(0014)about:internet -- !-- saved from url=(0016)http://localhost -- but when i add these two lines and then compile app and open the html file with IE the web app doesn't show even though the warning message is gone! has anyone tried the method of mark of the web with GWT web apps? it does'nt work for me and don't know what's the reason On Feb 10, 9:39 pm, othman othmanelmou...@gmail.com wrote: unfortunately our gwt app is client only and we don't use any server side functionality.our app will be run from user's local file system without deploying in a web server. why IE made this security restriction? and why this doesn't happen in Firefox and Chrome? On Feb 10, 9:34 pm, Ben Imp benlee...@gmail.com wrote: You could run a local web server. I always deploy my application to a local Tomcat server for testing. -Ben On Feb 10, 3:09 pm, othman othmanelmou...@gmail.com wrote: Thanks Ben, So there is no solution other to accept and live with this security restriction in IE? On Feb 10, 8:52 pm, Ben Imp benlee...@gmail.com wrote: I believe your problem is the lack of a web server. IE doesn't like people opening JS-laced web pages from the local drive. Probably a security concern, I would imagine. I have noticed this with non-GWT html as well, as I will often create little html test harnesses for some jQuery work, and I get the same warning. -Ben On Feb 10, 2:27 pm, othman othmanelmou...@gmail.com wrote: Hello, I'm using GWT 2.1 and IE to test the default hello world GWT app. I compile the default Hello world GWT app and then go to HTML file and open it with IE. I get a red warning message Your web browser must have JavaScript enabled in order for this application to display correctly. I had to allow the active content to be running in order to see the app screen. things are a bit different if I run the app via \\.psf\Home \myFile.htm which is path to my Parallel's shared directory .. I wouldn't see such warning. also running in dev mode seems not to raise this warning message. what is the problem of IE running GWT apps in web mode? thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Deferred Binding, Gin in library/widget ?
Hi everyone I am struggling a little bit with the concept of deferred binding and/or dependency injection in libraries/widgets. I try to come up with the best approach for following problem: I implemented a visualization widget (composite) that takes in some data and displays it. I want to separate the way the data is retrieved from the actual visualization part. So I added a generic interface DataSource which looks like this: public interface DataSource { public void fetch(int start, int end, boolean getFeatures, GeneomeDataSourceCallback callback); } and I add a setter to my Widget: public void setDataSource(DataSource source) { this.source = source} In oder to support http like datasources I also added an abstract class which implements the DataSource Interface and takes an URL in its default constructor: public abstract class HttpDataSource implements DataSource { protected String url; public HttpDataSource(String url) { this.url = url; } } My specific DataSouce extends this abstract class and implements the fetch method of the interface: public class MyDataSource extends HttpDataSource { public MyDataSource(String url) { super(url); } } This works well. I can create an instance of the MyDataSource class pass it to the setter of my widget. Now I want to make the widget somewhat configurable. I know that this can be done by either Dependency Injection or Deferred Bindings. So one approach would be to allow the user of the widget to set the DataSource in the Module XML file (similar to the way it is done in the gwt-log library: http://code.google.com/p/gwt-log/source/browse/trunk/Log/src/com/allen_sauer/gwt/log/gwt-log-impl.gwt.xml ) replace-with class=MyDataSource when-type-is class=DataSource / when-property-is name=source value=MyDataSourceName / /replace-with However I don't know if that is possible because by passing a url into the constructor of MyDataSource I have a state and I am not sure how this works with deferred binding. On a side note: would it be possible to have the url also configured in the module's XML file? I am also worried if people who use this widget/library can implement their own DataSource and pass it to the widget (doesn't it interfere with the deferred binding?) I suppose another solution would be using dependency injection in the parent application which uses the visualization widget/library ( how can the url be passed, etc? I probably have to inject a Factory?) Which one of these two solutions is better and in general does it make sense to use deferred binding or GIN to solve this problem? thanks in advance Uemit -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Understanding MVP
Hi everybody. I have a doubt about MVP approach in the Expenses app. In the ExpensesFactory, the main components of the ExpensesShell (ExpensesTree, ExpensesReportList and ExpensesReportDetails) are created. They get the requestFactory instance in their constructor in order to communicate with the model. The thing is that ExpensesTree is only a Composite, I mean, it is not an activity but it actually talks to the server via the requestFactory instance. And this is what confuses me. It´s a View talking directly to the model without taking into account a Presenter (Activity). Is this correct? Am I wrong? Thank you very much. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Force render of CellBrowser cell(s)
Has anyone got any ideas here? How do I re-render all ancestor nodes interactively from an event within a node? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException
Hi, I'm having an IncompatibleRemoteServiceException very often in development mode. It looks like it raises every time I change my EJB server code, which is in a project referenced by my GWT project. Error: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Type com.example.MyDTO was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer. For security purposes, this type will not be deserialized. MyDTO implements Serializable, and it is not the EJB code I'm changing. The EJB references this DTO. If I compile my GWT project again, the problem goes away... for a while. This problem is causing a decrease in my productivity as I have to compile and wait a minute every time this problem shows up. Any idea about how to solve this? As a workaround, does anyone know how to disable this security feature while I'm in development mode? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException
Does it has a default zero argument constructor? Double check here if everything is met http://code.google.com/intl/it-IT/webtoolkit/doc/trunk/DevGuideServerCommunication.html#DevGuideSerializableTypes -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Compressing cache.html files
On Friday, February 11, 2011 1:22:58 AM UTC+1, Saim wrote: Accept-Encodinggzip,deflate I don't understand what you did, but I think you do not have to do anything. read this: http://code.google.com/appengine/kb/general.html#compression Just the quoted line from you above is enough to tell appengine to send the data compressed. Much more importantly, make sure that you tell appengine to set the cache time of those *.cache.html files to something like 356d and disable client side caching for non *cache* files!!! (i.e. *nocache* : 1s or so) please read this: http://code.google.com/appengine/docs/python/config/appconfig.html#Static_File_Pattern_Handlers h -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory: /gwtRequest not found
On Fri, Feb 11, 2011 at 3:00 PM, Thomas Broyer t.bro...@gmail.com wrote: On Friday, February 11, 2011 7:26:11 AM UTC+1, Sarjith wrote: On Fri, Feb 11, 2011 at 11:41 AM, Y2i yur...@gmail.com wrote: There should be something like this in app's web.xml servlet servlet-namerequestFactory/servlet-name servlet-classcom.google.gwt.requestfactory.server.RequestFactoryServlet/servlet-class /servlet servlet-mapping servlet-namerequestFactory/servlet-name url-pattern/gwtRequest/url-pattern /servlet-mapping Yes, Its already there in my web.xml. And this is the error I can see in my eclipse console. 11 Feb, 2011 11:48:04 AM com.google.gwt.requestfactory.server.ReflectiveServiceLayer clinit INFO: Unable to initialize a JSR 303 Bean Validator javax.validation.ValidationException: Unable to find a default provider That's normal if you don't include a JSR 303 bean validator (such as Hibernate-validator). It means you cannot use JSR 303 bean validation, but it's not a fatal error (hence the INFO log level). 11 Feb, 2011 11:48:04 AM com.sample.model.Customer SEVERE: There is no getVersion() method in type com.sample.model.Customer 11 Feb, 2011 11:48:04 AM com.sample.model.Customer SEVERE: There is no findCustomer method in type com.sample.model.Customer that returns com.sample.model.Customer 11 Feb, 2011 11:48:04 AM com.google.gwt.requestfactory.server.ServiceLayer SEVERE: Type type com.sample.shared.CustomerProxy was previously marked as bad 11 Feb, 2011 11:48:04 AM com.sample.shared.SampleRequestFactory.CustomerRequest com.google.gwt.requestfactory.shared.Request getRandomCustomer() SEVERE: The method getRandomCustomer is declared to return com.google.gwt.requestfactory.shared.Request, but the service method is not static 11 Feb, 2011 11:48:04 AM com.google.gwt.requestfactory.server.ServiceLayer SEVERE: Type type com.sample.shared.CustomerProxy was previously marked as bad 11 Feb, 2011 11:48:04 AM com.google.gwt.requestfactory.server.ServiceLayerDecorator die SEVERE: The RequestContext type com.sample.shared.SampleRequestFactory$CustomerRequest did not pass validation Well, the fixes should be straightforward (and if they're not, read the docs again, if they're still not, then ask here ;-) ). OK, I got this working. Thank you very much. Now I could retrieve the data back and forth. But one thing I am still not able realize is that, I am not using any constraints like @Size or @NotNull in any entity class. but it still giving me this error in backend. (though application works fine.) does this means, these validation used to be called every time, even though I am not using it?. if yes, is there any way to set a configuration not to use it?. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: IE warning message in web mode
The reason probably is that (by default) a GWT app is loaded within an iframe, i.e. as another HTML page (*.cache.html), which doesn't contain the MotW. Try using the xs or xsiframe linker, i.e. add one of these lines to your *.gwt.xml: add-linker name=xs / add-linker name=xsiframe / Those linkers use *.cache.js files, so the MotW in your host page should be enough. The xs linker prevents you from using DevMode (you'd have to use a different *.gwt.xml when developping your app than when compiling it), while the xsiframe should work with DevMode (but I don't know whether it'll work once compiled). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory: /gwtRequest not found
A JSR 303 Bean Validator is (tentatively) initialized at boot time (when the requestFactoryServlet is instantiated, i.e. your webapp is deployed), irrespective of whether you'll use javax.validation or not. The INFO message is emitted using a java.util.logging logger, so you can configure (I don't know how, never tried it) your JVM to ignore it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Understanding MVP
In other words, the ExpensesTree component does not use MVP. It's a choice made by the developer. No-one and nothing force you to split your components into a view and a presenter. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Syncronize hovered rows in two cellTables
CellTable keeps record of the 'hoveringRow'. This attribute can change inside the onBrowserEvent2 (http://www.google.com/codesearch/p? hl=en#A1edwVHBClQ/user/src/com/google/gwt/user/cellview/client/ CellTable.javaq=hoveringRow%20package:http://google-web-toolkit %5C.googlecode%5C.coml=881) method. You could override that method, call super and check for a change afterwards. That's the detection part. Then add a method to your own CellTable to allow setting the hovering row. I haven't tested it, but it sounds like it could work. Good luck! On Feb 11, 9:14 am, Musicman75 stephan.beu...@googlemail.com wrote: Hello, I've two celltables inside a horizontalPanel. The first table contains line numers and the second one contains text. I need to syncronize the hovered rows in both tables. If the user moves the mouse over one table, the row should be hovered in the second table too. Does someone knows how I could solve this problem? I can't use only one table, because if the user selects the text in the second table, the line numbers shouldn't be selected. Regards Stephan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel border color
Sorry, that was for the tabs' borders the correct class is .gwt-TabPanelBottom { On 10 feb, 18:16, Eze ezem...@gmail.com wrote: The classes are: .gwt-DecoratedTabBar .tabTopLeft { .gwt-DecoratedTabBar .tabTopCenter { .gwt-DecoratedTabBar .tabTopRight { .gwt-DecoratedTabBar .gwt-TabBarItem-selected .tabTopLeft { .gwt-DecoratedTabBar .gwt-TabBarItem-selected .tabTopCenter { .gwt-DecoratedTabBar .gwt-TabBarItem-selected .tabTopRight { The corners doesn't use the color #, but a background image and offset background: url(images/corner.pnghttp://127.0.0.1:/biframeweb2/gwt/calipso/images/corner.png ) no-repeat -6px -55px; I created my own theme based on the standard to change this settings Regards Eze -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
print funtionality
Hi I want to give print button on one widget. On click of this button I want to print the contents of flex table on same screen in other widget. Its very urgent, please help me -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Streaming
How to implement Streaming in GWT? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Exposing only the interfaces of the Data Entities to GWT
Hi, I have a architecture where one jar contains the interfaces of Entities used in the project. Say, IUser, IGroup etc. Other jar contains the implementation (concrete classes) of these Entities, say User.java, Group.java etc .. I only want to expose the interface jar to the GWT front end UI project and hide all the implementation object. But I want to pass these objects directly into the client code. I have seen Objectify ( http://code.google.com/p/objectify-appengine/ ) but this will also need me to expose the User.java and Group.java implementations. How should I go about it. Any help is deeply appreciated. ! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Focus on Firefox 3.6 doesn't works as expected
Hi! I'm using GWT 2.1 and I set focus on a RichTextArea using the scheduleDeferred commands: Scheduler.get().scheduleDeferred(new ScheduledCommand() { @Override public void execute() { textArea.focus(); } }); This is working well for all browser that I have tested except Firefox 3.6 under Windows XP (on linux is working fine). The strange beahaviour is : If I have another firefox windows open in background, this windows is bring to the top when the focus is set. Thanks Matthieu -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
event fire in presenter
hi, i am very new to gwt use MVP in my application, and i am unable understand fire events in presenter, Is one eventBus can handle more than on event symultaniously? thank you, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Celltable w/ selectionModel and ActionCells
This is not possible. In your case, the click event is always also given to the SelectionModel. See line 971 in CellTable (http://www.google.com/codesearch/p? hl=en#A1edwVHBClQ/user/src/com/google/gwt/user/cellview/client/ CellTable.javaq=CellTable%20package:http://google-web-toolkit %5C.googlecode%5C.comsa=Ncd=1ct=rc): if (selectionModel != null click.equals(eventType) ! handlesSelection) { selectionModel.setSelected(value, true); } As you can see, if you could make the handlesSelection boolean true, the selectionModel will not be updated. This boolean is true if one (or more) cell(s) declare(s) to handle the selection. ActionCell does not do that. What you can do is create your own cell, make it handle the selection, and use it for all the columns that you want to be clickable. On Feb 11, 1:42 am, Henry H. djhenr...@gmail.com wrote: hi, i have a celltable with a selectionModel but also a column of actioncells. the selectionModel and actioncells both handle click events, but when i click the action cell, it also triggers the selectionmodel click handler. is it possible to prevent this? Or do i have to nix the selectionModel and go with clickable cells on the row? thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: IE warning message in web mode
You don't need to run a Tomcat instance. You could always just stick it behind a rather simple Apache install. I must confess I have not personally done this, but I see no reason why it would not work. Of course, this does bring up the question of why you are deploying a web application locally. A web application without the web bit sounds quite silly. It seems like something a plain old desktop app is better suited for. -Ben On Feb 10, 3:39 pm, othman othmanelmou...@gmail.com wrote: unfortunately our gwt app is client only and we don't use any server side functionality.our app will be run from user's local file system without deploying in a web server. why IE made this security restriction? and why this doesn't happen in Firefox and Chrome? On Feb 10, 9:34 pm, Ben Imp benlee...@gmail.com wrote: You could run a local web server. I always deploy my application to a local Tomcat server for testing. -Ben On Feb 10, 3:09 pm, othman othmanelmou...@gmail.com wrote: Thanks Ben, So there is no solution other to accept and live with this security restriction in IE? On Feb 10, 8:52 pm, Ben Imp benlee...@gmail.com wrote: I believe your problem is the lack of a web server. IE doesn't like people opening JS-laced web pages from the local drive. Probably a security concern, I would imagine. I have noticed this with non-GWT html as well, as I will often create little html test harnesses for some jQuery work, and I get the same warning. -Ben On Feb 10, 2:27 pm, othman othmanelmou...@gmail.com wrote: Hello, I'm using GWT 2.1 and IE to test the default hello world GWT app. I compile the default Hello world GWT app and then go to HTML file and open it with IE. I get a red warning message Your web browser must have JavaScript enabled in order for this application to display correctly. I had to allow the active content to be running in order to see the app screen. things are a bit different if I run the app via \\.psf\Home \myFile.htm which is path to my Parallel's shared directory .. I wouldn't see such warning. also running in dev mode seems not to raise this warning message. what is the problem of IE running GWT apps in web mode? thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Why does CellTable hold on to AsyncDataProvider instances ?
Hi All I've got a fairly standard gwt 2.1.1 setup, a CellTable which is controlled by an Activity. Each time the Activity is instantiated on a place change, this creates a new AsyncDataProvider. It appears the CellTable keeps a reference to _all_ the AsyncDataProviders it has ever come across. The effect is that when a CellTable has seen multiple Activities, it fires onRangeChange on each of these AsyncDataProviders, even though I no longer have a reference to these. Is this supposed to happen? I can understand wanting multiple displays for a DataProvider, but I can't see a reason for the inverse. Best regards Will Temperley -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT can not find hellomvp.gwt.xml file on classpath - Need help
Hello, I need help understanding why when I run my gwt app in development mode it can not find my hellomvp.gwt.xml file; which is located under myproject/src/main/resources/com/hellomvp/hellomvp.gwt.xml. The exploded war location is hellomvp/web-inf/classes/com/hellowmvp/ hellomvp.gwt.xml. It is able to find hellowmvp.gwt.xml file on the classpath when I put it in the exploded war location: hellomvp/web-inf/classes/ hellomvp.gwt.xml. I would like to know why this is the case. I really want it to find it in the hellomvp/web-inf/classes/com/hellowmvp/ location. Does anybody now why this is happening? Here is my HelloMVP.gwt.xml file: ?xml version=1.0 encoding=UTF-8? module rename-to=HelloMVP !-- Inherit the core Web Toolkit stuff.-- inherits name='com.google.gwt.user.User'/ !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines.-- inherits name='com.google.gwt.user.theme.standard.Standard'/ !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ -- !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ -- !-- Other module inherits -- inherits name=com.google.gwt.activity.Activity/ inherits name=com.google.gwt.place.Place/ !-- Specify the app entry point class. -- entry-point class='com.hellomvp.client.HelloMVP'/ !-- Use ClientFactoryImpl by default -- replace-with class=com.hellomvp.client.ClientFactoryImpl when-type-is class=com.hellomvp.client.ClientFactory/ /replace-with !-- Specify the paths for translatable code-- source path='client'/ source path='shared'/ /module I recall that it should reference this file based off the entry point class; which is defined as 'com.hellomvp.client.HelloMVP' in the HelloMVP.gwt.xml file. And therefore it should be found in the hellomvp/web-inf/classes/com/hellowmvp/ location. Is this correct? But what is strange is the error message below. I would think the error would say something like this: [ERROR] Unable to find 'com.hellomvp.HelloMVP.gwt.xml' on your classpath... Is this correct? Here is my error message: Loading modules HelloMVP [ERROR] Unable to find 'HelloMVP.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [ERROR] shell failed in doSlowStartup method Any help with this would be greatly appreciated. Thank you Tonté -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: To smart GWT or not
Using ExGWT means you have to buy a commercial licence or open source your code. This can be an issue for small development or companies. We personally used SmartGWT and I'm very pleased about the implementation. We had some small issues that we could bypass but the overall feeling was that we gain much functionality for a small (dev- time) price. On 10 feb, 13:10, ep eplisc...@googlemail.com wrote: GWT is not designed to be a UI Framework, rather its a base for everything else. And this is good so. We're using ExtGWT as a UI Framework, we kicked SmartGWT because of their JS wraps (not a native GWT implementation) On 10 Feb., 11:11, jaga j.annes...@gmail.com wrote: One problem with GWT is it's lack of styling. The default style is un- styled and doesn't work for our application. SmartGWT on the other- hand provides an attractive uniform styling. The blocker for me is that now you are using another 3rd party library: you have to learn its ways, integrate with your existing framework, and deal with its bugs and idiosyncrasies. On Feb 10, 7:30 am, Nagin Kothari naginkoth...@gmail.com wrote: Sanjiv, I know I am reopening this thread, not to criticise Smart GWT, but want to give some feedback. First of all let me acknowledge that it is very good library with lot of cool and fantastic features. I experimented with it and liked it and planning to use it in one of my project.But I have some doubts and questions , which you I thought you will be best person to answer . Hence this mail. 1. I am using GWT and want to use some Smart GWT widgets in that application.But it looks like I have to include lot of Smart client JS file which size is about 2MB. Client need to download all these JS libs above our GWT compiled script. this become very huge download for client, Even I want to use Smart GWT's grid , I realized that I have to include almost everything except few small smart-client JS.So my question is why is so and what is work around for it? 2.Second, smart-client scripts are not in compressed format (like GWT is). it is like GWT pretty format. If it is compressed then size of all script files will be reduced. 3. My third question is - Why smart GWT is not written in GWT so that it can take advantage of GWT's optimised java script compiler.Smart GWT widget the can be extended by user to customize it. Right now Smart GWT widgets are just black box for developer. Theses are few question I had in mind., Over all features provided by smart GWT are great. Thank and regards, Nagin Kothari On Fri, Dec 3, 2010 at 9:24 PM, Sanjiv Jivan sanjiv.ji...@gmail.com wrote: Jaroslav, If you're happy with GWT that’s great but please do not make such vague and baseless claims about Smart GWT. Legitimate bugs reported are fixed really quickly and existing users can attest to this. Smart GWT currently has around 42 open defects with a majority of them being low priority, and 16 enhancement requests (http://code.google.com/p/smartgwt/issues/list). Considering the depth and breadth of features provided by the framework this is a pretty low number of defects. 3 of the 7 issues that you filed were invalid, and 2 defects that were fixed and the remaining 2 were marked WontFix since they were trivial pieces of functionality that the user could easily implement. http://code.google.com/p/smartgwt/issues/list?can=1q=reporter:jarosl... http://code.google.com/p/smartgwt/issues/list?can=1q=reporter:jarosl...And when you were advised how to implement a warning dialog before record deletion on this issue that you filed ( http://code.google.com/p/smartgwt/issues/detail?id=325), you responded by you are sad. Nice way to show your appreciation when using a free product. Sanjiv 2010/12/3 Jaroslav Záruba jaroslav.zar...@gmail.com ...until you run into some SmartGWT magic - like widgets not working without otherwise completely useless 'final' (have fun trying figure that out), newly spanned records not appearing in tree, styles not getting applied until mouseover, etc. What looks like polished set of awesome widgets might turn into nightmare which makes you throwing your deadlines out of the window. (Like I said before, this particular experience with SmartGWT is one year old.) With GWT the start might be slower but you can predict the deadlines + you're not working with 'black box'. On 3 pro, 00:00, ckendrick charles.kendr...@gmail.com wrote: Sorry that's quite absurd: SmartGWT is often introduced to solve performance problems, and it solves them. SmartGWT is intentionally designed to have a one-time-ever download of a feature rich runtime in exchange for reducing subsequent server requests. For example, Adaptive
Re: Why does CellTable hold on to AsyncDataProvider instances ?
You have to remove the cell table from the AsyncDataProvider when your activity is stopped or cancelled: AsyncDataProvider.removeDataDisplay(cellTable); The way its implemented, AsyncDataProvider adds a RangeChangeHandler to the cellTable. How else would the CellTable know that the RangeChangeHandler is no longer active? Thanks, John LaBanca jlaba...@google.com On Fri, Feb 11, 2011 at 9:51 AM, will0 willtemper...@gmail.com wrote: Hi All I've got a fairly standard gwt 2.1.1 setup, a CellTable which is controlled by an Activity. Each time the Activity is instantiated on a place change, this creates a new AsyncDataProvider. It appears the CellTable keeps a reference to _all_ the AsyncDataProviders it has ever come across. The effect is that when a CellTable has seen multiple Activities, it fires onRangeChange on each of these AsyncDataProviders, even though I no longer have a reference to these. Is this supposed to happen? I can understand wanting multiple displays for a DataProvider, but I can't see a reason for the inverse. Best regards Will Temperley -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Base Application Featuring Best-Practice Technologies
Hi Thomas, Thanks for the suggestions. This is exactly the type of feedback I was looking for. I have updated the project with implementations of your recommendations. I do have a question about provider injection into the ActivityMapper, though. Is it necessary for me to inject an instance of a Provider for each of the activity types? Is it possible to inject a generic provider which can instantiate any of the activities via something like provider.get(SomeActivity.class) or provider.getSomeActivity()? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Understanding MVP
Of course no-one and nothing forces me to use MVP pattern, but that´s the way. I mean, it´s a kind of coding philosophy. The MVP pattern is supposed to be followed in the whole application... right? Now, I´m a bit more confused... what´s the way the application has to behave? MVP here and there? MVP here but not there? Sorry for my confusion but, again, Thomas I need an expert opinion. Thank you very much. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Streaming
Do you have any more details? You question is very vague. -mike -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT can not find hellomvp.gwt.xml file on classpath - Need help
without looking too closely, the most obvious thing: rename hellowmvp.gwt.xml to HelloMVP.gwt.xml On Fri, Feb 11, 2011 at 10:36 AM, Tonté etno...@yahoo.com wrote: Hello, I need help understanding why when I run my gwt app in development mode it can not find my hellomvp.gwt.xml file; which is located under myproject/src/main/resources/com/hellomvp/hellomvp.gwt.xml. The exploded war location is hellomvp/web-inf/classes/com/hellowmvp/ hellomvp.gwt.xml. It is able to find hellowmvp.gwt.xml file on the classpath when I put it in the exploded war location: hellomvp/web-inf/classes/ hellomvp.gwt.xml. I would like to know why this is the case. I really want it to find it in the hellomvp/web-inf/classes/com/hellowmvp/ location. Does anybody now why this is happening? Here is my HelloMVP.gwt.xml file: ?xml version=1.0 encoding=UTF-8? module rename-to=HelloMVP !-- Inherit the core Web Toolkit stuff. -- inherits name='com.google.gwt.user.User'/ !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines. -- inherits name='com.google.gwt.user.theme.standard.Standard'/ !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ -- !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ -- !-- Other module inherits -- inherits name=com.google.gwt.activity.Activity/ inherits name=com.google.gwt.place.Place/ !-- Specify the app entry point class. -- entry-point class='com.hellomvp.client.HelloMVP'/ !-- Use ClientFactoryImpl by default -- replace-with class=com.hellomvp.client.ClientFactoryImpl when-type-is class=com.hellomvp.client.ClientFactory/ /replace-with !-- Specify the paths for translatable code -- source path='client'/ source path='shared'/ /module I recall that it should reference this file based off the entry point class; which is defined as 'com.hellomvp.client.HelloMVP' in the HelloMVP.gwt.xml file. And therefore it should be found in the hellomvp/web-inf/classes/com/hellowmvp/ location. Is this correct? But what is strange is the error message below. I would think the error would say something like this: [ERROR] Unable to find 'com.hellomvp.HelloMVP.gwt.xml' on your classpath... Is this correct? Here is my error message: Loading modules HelloMVP [ERROR] Unable to find 'HelloMVP.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [ERROR] shell failed in doSlowStartup method Any help with this would be greatly appreciated. Thank you Tonté -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: To smart GWT or not
How do you feel about being forced into using their entire widgetry instead of GWT's components? That is the main hurdle I'm having right now with smart gwt, the recommendation that you use their 'pixel perfect layout' and not use standards mode... To me that is crap, but it looks like I'm going to be forced into it. I used GXT in a previous job and to say working with it was a nightmare doesn't even begin to describe what it was like using their components. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
missing module HTML CSS with version 2.1.0+ of the gwt-maven-plugin
Dear all, I sucessfully used the gwt-maven-plugin version 1.2 with GWT version 2.0.4. I now wanted to upgrade to the newest GWT version 2.1. Therefore I also needed to upgrade the gwt-maven-plugin version to at least 2.1.0. Unfortunately, after I upgrading to the new version of the plugin, the internal Jetty can't find the module HTML (with the reference to the GWT js file) as well as the coresponding CSS and web.xml file anymore. It seems that a new folder was created in target/${artifactId}-$ {version}, which contains the compiled GWT Javascript and all static resources besides the entry point HTML, CSS and web.xml. There is also a war folder that is always created, which contains all necessary resources, including the HTML CSS file. It seems that the 1.2 version of the plugin used this war folder, whereas the newer versions use the folder under target, which doesn't contain vital parts of the compiler output. Also before there wasn't any compiler output under the target folder. This happens with version 2.1.0-1 2.1.1-SNAPSHOT version of the plugin as well as with GWT version 2.1.0 and 2.1.1 I've already searched the web and found 2 threads with a similar problem, but no real solution: http://maven.40175.n5.nabble.com/gwt-maven-plugin-how-to-create-amp-c... http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg52... Any help is much appreciated! Best regards, Henry -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Activity with multiple Presenters
Hi, I need a little advice, There is a Place in my application which contains 3 widgets (Editor, CellTable+Pager, Chart). I created one view using UiBinder, implemented a view interface and Created Activity that implements the Presenter interface in the view's interface. Up to here, everything is fine, and was developed using the MVP documentation. I've now decided to split some code, I'm about to create one view for the Editor, one for the Chart and one for the CellTable. Each view will have it's own Presenter. I read a little bit in the group and got this idea of using Activities with several presenters. So basically the Activity now will handle the 3 presenter, and unnecessary code will be moved from the activity itself to the presenter. Now, my question : How would you suggest to implement connection between Activity - View - Presenter. 2 interfaces, one for activity-presenter and one for view-presenter? 1 Interface for the view and the presenter, and presenter send events to the activity? maybe 1 interface for all of them? There a lot of other ways.. but what would you suggest? Thanks a lot in advanced, Ido -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: To smart GWT or not
I had the same feelings as you, but now I am really liking smartgwt. I decided to incorporate the UIBinder with the smartgwt objects ( http://code.google.com/p/uibinding-smartgwt/) which helped to keep our code organized. On Fri, Feb 11, 2011 at 11:08 AM, Jeff Larsen larse...@gmail.com wrote: How do you feel about being forced into using their entire widgetry instead of GWT's components? That is the main hurdle I'm having right now with smart gwt, the recommendation that you use their 'pixel perfect layout' and not use standards mode... To me that is crap, but it looks like I'm going to be forced into it. I used GXT in a previous job and to say working with it was a nightmare doesn't even begin to describe what it was like using their components. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Understanding MVP
On Friday, February 11, 2011 5:00:37 PM UTC+1, ernesto.reig wrote: Of course no-one and nothing forces me to use MVP pattern, but that´s the way. I mean, it´s a kind of coding philosophy. The MVP pattern is supposed to be followed in the whole application... right? Well... no. There are times when you might consider that MVP is not worth it (in this case, ExpensesTree was –I guess– judged so simple that it didn't require unit-testing the presentation logic, hence no *need* to decouple a presenter from the view; they traded testability for simplicity). Now, I´m a bit more confused... what´s the way the application has to behave? MVP here and there? MVP here but not there? Why not? But if you're uncomfortable with it, then simply go with MVP everywhere (the Expenses sample is very simple, so it's not an issue not to have a single way of doing things; it can become one with a bigger app though, as it's easier to understand things if they're all made on the same basis). Sorry for my confusion but, again, Thomas I need an expert opinion. If you want my opinion: stick with a single rule (i.e. MVP everywhere), unless it's very impractical (and then document why you broke the rule). My point was that you shouldn't be confused if everyone is not following a single rule for the whole 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Reload window once
Hi everybody, I'm trying to implement a simple logout reloading the page. The logout is an hyperlink, so I'm dealing with History. If the token is logout, I want to reload my page... The problem is that the reloading goes on forever until I stop the application. Does anyone know how I can force only one reloading? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is there a way to retrieve the prefix of a Place
I just discovered the following method PrefixAndToken *getPrefixAndToken*(Place newPlace) in the class AbstractPlaceHistoryMapper but the method is declared abstract and hence not implemented. So, it does not help ; but this is the kind of functionality I am looking for. Any thoughts ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Reload window once
In onModuleLoad, special case the logout token. Replace: History.fireCurrentHistoryState(); with: if (!logout.equals(History.getToken())) { History.fireCurrentHistoryState(); } Thanks, John LaBanca jlaba...@google.com On Fri, Feb 11, 2011 at 11:36 AM, daniela iervolino daniela.ie...@gmail.com wrote: Hi everybody, I'm trying to implement a simple logout reloading the page. The logout is an hyperlink, so I'm dealing with History. If the token is logout, I want to reload my page... The problem is that the reloading goes on forever until I stop the application. Does anyone know how I can force only one reloading? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Java Mail Provider
In the example http://code.google.com/appengine/docs/java/mail/usingjavamail.html, it does not set the Transport. If transport is not set, the application sets an error. I cannot set the Transport to smtps because that provider is taken out of the javaMail provider file inside of the Appengine. That file only consists of a provider gm and I do not know how to make the gm provider to work. On Feb 10, 10:35 pm, A. Stevko andy.ste...@gmail.com wrote: Hello UN, Appengine supports the javax.mail api.http://code.google.com/appengine/docs/java/mail/usingjavamail.htmlhttp://code.google.com/appengine/docs/java/mail/receiving.html GWT does not.http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html On Thu, Feb 10, 2011 at 2:46 PM, unair001 unair...@gmail.com wrote: The GWT appengine SDK 1.4.0 comes packaged with the java mail jars. The Java mail provider Jar has only one entry for protocol gm. It does not have anything for smtps. When I use that protocol for my SMTP server, I get an error stating that the provide is not known. How do I get the SMTPS option to work inside of GWT. Outside, if I configure the app without any GWT references it works fine. 1. I want to run the app inside of a GWT app engine. 2. This is for sending an email out. Please help if you know how to fix this issue? Thanks, UN -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -- A. Stevko === If everything seems under control, you're just not going fast enough. M. Andretti -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: I need 2 Google IO tickets
Well, I'm interested in getting a ticket too :-( (didn't expect the event to be sold out in half an hour or so). I'd also be interested in a get-together for GWT Developers, but I will only be in SF if I get a google IO ticket. On Feb 10, 6:41 am, István Szoboszlai mrsz...@gmail.com wrote: Hello, Sorry to post about this, but I am desperate about going to Google IO. I develop in GWT for more than 3 years. We already bought the plain tickets from Hungary, but could not buy IO tickets. We also have a gwt framework called IneForm, that is going to be opensourced soon (I think it is a decent framework, I will announce it here, when it's out). So I really want to meet other GWT developers, and I thought IO is a great opportunity. I will be in SF form May 6 to May 29. *If anybody have some ticket to sell, I would pay decent amount of money for it!* Irrespectively of me being able to get tickets, we could organize some event in SF in the time of IO for GWT developers. Anybody Interested ether in selling ticket or in some GWT event? Üdvözlettel / Best Regards - István Szoboszlai istvan.szobosz...@inepex.com | +36 70 32 64 450 | inepex.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: I need 2 Google IO tickets
I'd also be interested in a get-together for GWT Developers, but I will only be in SF if I get a google IO ticket. Last year at I/O there were tables setup for the different tracks people were interested. GWT, Android, google apis etc. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Using a Generator to write to nocache.js
Hey All, I am extremely unfamiliar with using generators but I'm going to start experimenting. My biggest question though is that I want my generator to write JS code directly to nocache.js rather than individual permutations. Does anyone know how I can go about doing that? Thanks, Brett -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Setting the name of a downloaded file
So I have a way to get a Save As Dialog box to come up for the file I'm downloading from my servlet (user hits the Export Button, I create an invisible frame that points to my servlet with the parameters necessary for the servlet to generate the export file). Unfortunately, the file comes up with the name of my servlet. How do I give the Save As Dialog a better default name for the file? The file is generated on the fly, so putting a file name in the URL wouldn't work. TIA, Greg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using a Generator to write to nocache.js
Generators won't get you what you're looking for. What you want are linkers. Unfortunately I don't know much about them. There was a presentation at google io last year on linkers, you could look for that. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Reload window once
Thank you. But now the problem is when I click on logout, the browser shows me a white page :-( On 11 Feb, 17:53, John LaBanca jlaba...@google.com wrote: In onModuleLoad, special case the logout token. Replace: History.fireCurrentHistoryState(); with: if (!logout.equals(History.getToken())) { History.fireCurrentHistoryState(); } Thanks, John LaBanca jlaba...@google.com On Fri, Feb 11, 2011 at 11:36 AM, daniela iervolino daniela.ie...@gmail.com wrote: Hi everybody, I'm trying to implement a simple logout reloading the page. The logout is an hyperlink, so I'm dealing with History. If the token is logout, I want to reload my page... The problem is that the reloading goes on forever until I stop the application. Does anyone know how I can force only one reloading? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Why does CellTable hold on to AsyncDataProvider instances ?
Great, thanks, that's what I was looking for. Just this wasn't immediately obvious to me, perhaps because it wasn't mentioned in the docs: http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html#data-provider Best, Will -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using a Generator to write to nocache.js
Awesome, thanks for the info, I'll take a look. On Fri, Feb 11, 2011 at 12:15 PM, Jeff Larsen larse...@gmail.com wrote: Generators won't get you what you're looking for. What you want are linkers. Unfortunately I don't know much about them. There was a presentation at google io last year on linkers, you could look for that. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
UIBinder Localization anyone?
Hi I am trying to localize the labels in the uibinder. I am passing the locale value through meta tag like: meta name=gwt:property content='locale=FR' and do find that it is correctly set by checking the value of: LocaleInfo.getCurrentLocale().getLocaleName() However even though I have LocalizableResource_fr.properties along with LocalizableResource.properties in com\google\gwt\i18n\client directory, I see that the values are not being picked up. Also my gwt.xml has extend-property name=locale values=fr/ extend-property name=locale values=en/ Any idea what is that I am doing wrong? thanks in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException
I think that your trouble is that the classes compiled to JS are different to the classes that you have in the server. Using dev mode after change in a class that I use in a RPC I just reload the page and the problem is gone. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UIBinder Localization anyone?
Have you created your constants/messages interface for your properties files? You shouldn't need to put your LocalizableResource.properties into a gwt specific namespace you should have it inside your project structure. I don't know if you've found this page, but here is some more info on how to setup your i18n with GWT. http://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html http://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
advice on testing RequestFactory CRUD
traditionally when unit/integration testing data access in application (CRUD), a test would be: @Test public void testInsertSucceeds(){ // 1- insert this record to DB //2- find the inserted record, to check its actually inserted //3- delete the inserted record, to keep the DB in clean state and also to test delete } however, with Asynchronous calls as is the case with RequestFactory, there is no guarantee on the order the requests are processed. when inserting 10 records, and issuing a query to get them back, to verify, we might be in the middle of inserting records, but the subsequent call to retrieve the records are executed without the first call being completed. do you have any advice on what is the correct way to unit test/integration test with RequestFactory ? Thank You -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Celltable w/ selectionModel and ActionCells
yeah, i had the feeling i have to ditch the selectionModel. thanks for your help... On Feb 11, 6:28 am, Thomas Visser thomas.vis...@gmail.com wrote: This is not possible. In your case, the click event is always also given to the SelectionModel. See line 971 in CellTable (http://www.google.com/codesearch/p? hl=en#A1edwVHBClQ/user/src/com/google/gwt/user/cellview/client/ CellTable.javaq=CellTable%20package:http://google-web-toolkit %5C.googlecode%5C.comsa=Ncd=1ct=rc): if (selectionModel != null click.equals(eventType) ! handlesSelection) { selectionModel.setSelected(value, true); } As you can see, if you could make the handlesSelection boolean true, the selectionModel will not be updated. This boolean is true if one (or more) cell(s) declare(s) to handle the selection. ActionCell does not do that. What you can do is create your own cell, make it handle the selection, and use it for all the columns that you want to be clickable. On Feb 11, 1:42 am, Henry H. djhenr...@gmail.com wrote: hi, i have a celltable with a selectionModel but also a column of actioncells. the selectionModel and actioncells both handle click events, but when i click the action cell, it also triggers the selectionmodel click handler. is it possible to prevent this? Or do i have to nix the selectionModel and go with clickable cells on the row? thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Including gwt-widgets in a servlet generated page
In the same way that in a html page. http://code.google.com/intl/es-AR/webtoolkit/articles/dynamic_host_page.html#servlet -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UIBinder Localization anyone?
I followed this: http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinderI18n.html I think I have followed all the instructions according to this link above. I do use messages interface for showing say error messages. The xyzMessages.properties and xyzMessages_fr.properties etc are in my project structure. However even after the locale has been set successfully, these messages say from the _fr properties file are not displayed! Appreciate all the help. On Fri, Feb 11, 2011 at 2:06 PM, Jeff Larsen larse...@gmail.com wrote: Have you created your constants/messages interface for your properties files? You shouldn't need to put your LocalizableResource.properties into a gwt specific namespace you should have it inside your project structure. I don't know if you've found this page, but here is some more info on how to setup your i18n with GWT. http://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html http://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UIBinder Localization anyone?
have you tried adding locale=fr to your url params to make sure that it is being picked up? This is how I've tested my i18n stuff. http://localhost:/Foo.html?locale=frcod If that doesn't work (and I don't expect it to) can you post your ui:binder and java code? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: advice on testing RequestFactory CRUD
depending on order of tests is a bad idea. What if the insert record test works and then the delete record test fails? You now have extra records in your database. One strategy is to use/abuse the transaction management system of your database. Do your inserts etc, then roll back the transaction, never committing the record to the database. Another strategy is to use something like DBUnit. Create some clean state of database, load some sample data into memory and run your tests against that. I'm sure there are others, but unit tests should be atomic and shouldn't depend on other tests. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UIBinder Localization anyone?
Sorry, I didn't realize it was case-sensitive! Once I changed it to fr in meta name=gwt:property content='locale=FR', it worked. Thanks a lot. On Fri, Feb 11, 2011 at 2:21 PM, Jeff Larsen larse...@gmail.com wrote: have you tried adding locale=fr to your url params to make sure that it is being picked up? This is how I've tested my i18n stuff. http://localhost:/Foo.html?locale=frcod If that doesn't work (and I don't expect it to) can you post your ui:binder and java code? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: advice on testing RequestFactory CRUD
Thank You, I agree with the delete part of it. Thank you for pointing that out. so with delete now out of the picture, lets consider the first two steps when testing whether inserting a record succeeds 1- inserting a record 2- verifying it is inserted this would require two calls on RequestFactory (persist/find) and if the insert takes longer time, the second call would fail so what to do in this particular case ? and regarding your comment, am I understanding you correctly on this: lets say I would like to find a Range of Records ListEmployeeProxy findEmployees(int start, int length) you are suggesting that I insert X number of records in setUp method of the test, (like pre-condition of the test) and only test the findEmployees to test whether I can retrieve that range. and in tearDown method, do the cleaning up. in other words, findEmployees should only Find the Employees, and data preparation should be dealt with elsewhere. am I understanding you correctly ? Thank You -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UIBinder Localization anyone?
How do I dynamically invoke the message for a key (key not known in advance). I have messages (or rather message keys) coming from the BE. I want to look up the way you do in other frameworks: message(key). How can I use messages to do this? thanks On Fri, Feb 11, 2011 at 2:35 PM, SVR svr...@gmail.com wrote: Sorry, I didn't realize it was case-sensitive! Once I changed it to fr in meta name=gwt:property content='locale=FR', it worked. Thanks a lot. On Fri, Feb 11, 2011 at 2:21 PM, Jeff Larsen larse...@gmail.com wrote: have you tried adding locale=fr to your url params to make sure that it is being picked up? This is how I've tested my i18n stuff. http://localhost:/Foo.html?locale=frcod If that doesn't work (and I don't expect it to) can you post your ui:binder and java code? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: advice on testing RequestFactory CRUD
Do you really need to verify that the record was inserted in a separate test? The server-side code which inserts the record should be throwing an exception if the insert fails which means that your onFailure callback will run which should fail the test. If the backend database you are using for testing fails to insert a record without throwing an exception then your problem lies outside the scope of testing. Even database clients that do not do explicit error-checking by default (e.g., MongoDB) have an option to force error-checking. This should be enabled by your testing framework before any test is run if that is the case. If you absolutely cannot get away from doing a manual insertion check why don't you just fire the record verification request from within the onSuccess callback of the original? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UIBinder Localization anyone?
out of the box, you have http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/i18n/client/ConstantsWithLookup.html Messages is a bit more difficult because messages can have N parameters where as constants have 1. You're going to need to pass keys back and forth from the BE to client along with parameters. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: To smart GWT or not
Hi Nagin, Thanks for the feedback. These are questions that come up quite frequently and I've answered them earlier but perhaps they should be added to the FAQ. 1) Regarding the size of SmartGWT, one should realize that loading a SmartGWT application is very comparable to loading GMail in terms of size when you read your email. During actual deployments, all applications need to be configured optimally and this means that at the very least configuring the web server to serve JS files in GZip format as well as configuring the appropriate Expires headers. These are best practices not specific to Smart GWT and you can read more about them here : http://developer.yahoo.com/yslow/help/#guidelines Gmail is used by a lot of users and its load time is certainly acceptable. So back to the comparison with Gmail, here's a screenshot of YSlow load stats when loading Gmail : http://dl.dropbox.com/u/2996284/screenshots/gmail-stats.png As you can see, the total size of GMail that serves Gzipped resources is 994K. Here's a screenshot of the YSlow load stats of a Smart GWT showcase which is properly configured with the appropriate Expires headers and GZipped resources : http://dl.dropbox.com/u/2996284/screenshots/sgwt-showcase-stats.png As you can see, it has a total size of 918K when loaded with an empty cache. The size would have been over 2MB had the server not been configured to serve GZipped JS files, and so would the size of the GMail app but the point is you must always configure the server correctly to serve the JS files in compressed GZip format for actual deployments. Secondly, during production deployments you should also configure the SmartClient JS files to have Expires headers set to a future date like a year from today. This is what the Smart GWT Showcase demo does : http://dl.dropbox.com/u/2996284/screenshots/sgwt-showcase-expires-header.png and when this is configured, then the actual SmartClient JS files will only be loaded the first time the user accesses the application. When they access the application subsequently, 0 bytes of the SmartClient JS files will be loaded since it is picked up from the browser cache. See https://dl.dropbox.com/u/2996284/screenshots/smartgwt-resources.png So when developers talk about the size / load time of Smart GWT, one must realize these are development environment concerns only that will be non-issues when actually deploying the production application. This is similar to running the app in GWT dev / hosted mode versus web / compiled mode where GWT hosted mode will always be slower than running the compiled application. 2) The SmartClient JS files are compressed. Are you sure you're not inheriting SmartGwtDebug instead of the SmartGwt module? If you haven't sorted it out already then lets continue this discussion on the SmartGWT forums. 3) Regarding Smart GWT not being written in native GWT so that it can take advantage of GWT's optimized java script compiler : You have to ask yourself what kind of application you're building? Sure, if you only want to use a single Smart GWT widget like a TreeGrid in your entire application and the application needs to load super-fast on a high traffic internet site where every KB downloaded matters, then using SmartGWT might not be the best choice. As noted above, if you do configure the server with to server gzipped files with a future Expires header, then the end user will only incur the overhead of loading the SmartClient JS files once. Again, if this is not acceptable for your app then SmartGWT might not be the best choice. For most intranet applications the load time of ~500K of gzipped files is a non-issue. The other thing many developers do when evaluating SmartGWT is they build out a HelloWorld app and are not pleased by the size of the compiled output due to the SmartClient JS files. What one needs to realize is that this is a fixed / constant that will not increase in size even when their application grows to have tens to hundreds of screens. A good example of this is the SmartGWT Showcase that has around 300 screens and the SmartClient JS file size remains the same. 4) Regarding extensibility of SmartGWT widgets : SmartGWT widgets are customizable and many users have done exactly this. Without knowing exactly what you're trying to customize its hard to comment but as you've probably noticed and as seen in the Showcase, SmartGWT widgets are extremely powerful with deep configuration options not available in most RIA toolkits. If you still find a feature missing, you have the option of adding it yourself, filing an issue in SmartGWT issue tracker, or contacting Isomorphic support to build it out for you. The option you chose depends on whether you're a hobbyist, how quickly you need the feature, or whether you work for a company that feels your time is better served working on their application / business logic rather than get into UI toolkit level enhancements. In the end there is no one-size-fits-all. You'll
Re: advice on testing RequestFactory CRUD
If you use a plain JUnit test, you'd be using InProcessRequestTransport, which is synchronous, so there's no possible race condition. If you use a GWTTestCase, then you'd likely try to find the items from within the Receiver's onSuccess for the first call that inserts them (and you could do that in the above case too, so that you can run the same code in both plain JUnit and GWTTestCase/JUnitShell). The only issue here is then reaching the test timeout, so you have to fix a high-enough value. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Need advice on Logging how to format the message and tips on chosing the correct log level
1- do you know how I can configure the format of the log message displayed? every time my log messages are printed on the console, GWT adds a line above it describing the long time/date format and the long class name. as a result each log message is shown at two lines, and hard to follow. INFO: Fri Feb 11 12:20:52 PST 2011 com.demo.gwt.client.MyApp [ ]: my own log here how can I format the INFO line so that the two lines are shown in one line and more succinct ? 2- what is the log level you typically use in your apps ? I have been using FINEST, but since logging at FINEST level causes GWT specific messages to be included, I am not sure whether to use INFO, FINER or FINE. do you have any tips on this ? Thank You -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Reload window once
Hi , you can try with this method : public native void reload()/*-{ $wnd.window.location.reload(); }-*/; regards Giuseppe 2011/2/11 daniela iervolino daniela.ie...@gmail.com Hi everybody, I'm trying to implement a simple logout reloading the page. The logout is an hyperlink, so I'm dealing with History. If the token is logout, I want to reload my page... The problem is that the reloading goes on forever until I stop the application. Does anyone know how I can force only one reloading? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Giuseppe La Scaleia CNR - IMAA geoSDI Sviluppo Software C.da S. Loja 85050 Tito Scalo - POTENZA (PZ) Italia phone: +39 0971427305 fax: +39 0971 427271 mob:+39 3804697436 mail: giuseppe.lascal...@geosdi.org skype: glascaleia web: http://www.geosdi.org -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: advice on testing RequestFactory CRUD
sorry for being vague, those two steps I described above, are actually within the same test @Test public void testInsertSucceeds(){ // 1- insert this record to DB //2- find the inserted record, to check its actually inserted } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Reload window once
Hi you can try with this method: public native void reload()/*-{ $wnd.window.location.reload(); }-*/; Regards Giuseppe 2011/2/11 daniela iervolino daniela.ie...@gmail.com Thank you. But now the problem is when I click on logout, the browser shows me a white page :-( On 11 Feb, 17:53, John LaBanca jlaba...@google.com wrote: In onModuleLoad, special case the logout token. Replace: History.fireCurrentHistoryState(); with: if (!logout.equals(History.getToken())) { History.fireCurrentHistoryState(); } Thanks, John LaBanca jlaba...@google.com On Fri, Feb 11, 2011 at 11:36 AM, daniela iervolino daniela.ie...@gmail.com wrote: Hi everybody, I'm trying to implement a simple logout reloading the page. The logout is an hyperlink, so I'm dealing with History. If the token is logout, I want to reload my page... The problem is that the reloading goes on forever until I stop the application. Does anyone know how I can force only one reloading? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Giuseppe La Scaleia CNR - IMAA geoSDI Sviluppo Software C.da S. Loja 85050 Tito Scalo - POTENZA (PZ) Italia phone: +39 0971427305 fax: +39 0971 427271 mob:+39 3804697436 mail: giuseppe.lascal...@geosdi.org skype: glascaleia web: http://www.geosdi.org -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UIBinder Localization anyone?
Thanks again. That should work for now! On Fri, Feb 11, 2011 at 3:13 PM, Jeff Larsen larse...@gmail.com wrote: out of the box, you have http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/i18n/client/ConstantsWithLookup.html Messages is a bit more difficult because messages can have N parameters where as constants have 1. You're going to need to pass keys back and forth from the BE to client along with parameters. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: advice on testing RequestFactory CRUD
Thank You for pointing out that InProcessRequestTransport is in fact synchronous. your other suggestion on how to make it work with GWTTestCase do you mean something like below ? having a second request placed within the first request ? this guarantees synchronicity ? Thank You request.persist().using(newEmployee)fire.(new Receiver(){ @Override public void onSuccess(Void arg0){ // Now within this onSuccess message, // fire a find request ? //request.employeeRequest().find(...) ? } }); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: advice on testing RequestFactory CRUD
Well regardless, my recommendations should still apply. You should do one of the following: 1. Allow an exception to be thrown on the server-side implementation of the insert indicating that it failed. Fail the test in the onFailure callback of the request. In 99.999% of the cases this should be enough to verify the insertion within the scope of testing. I will echo again, verification that an exception-less insert went through should not be on the responsibility of the database driver's client. factory.whateverRequest().insert(whatever).fire(new Receiver...() { @Override onSuccess(...) { //This should be enough to pass } @Override onFailure(...) { //This should be enough to fail fail(); } } 2. Send the second request within the body of the onSuccess callback of the insertion request. Something like this: factory.whateverRequest().insert(whatever).fire(new Receiver...() { @Override onSuccess(...) { factory.whateverRequest().verify(whatever).fire(new ReceiverBoolean() { @Override onSuccess(Boolean success) { if (!success) { fail(); } } @Override onFailure(...) { fail(); } }); } @Override onFailure(...) { fail(); } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Combining UiBinder I18n with consants?
Hey folks, I was playing around with the UiBinder i18n today and I somehow figured it out to make it work (It was a bit of a pain oO!). Ok, now I got some properties files for my template, but is it possible to access these translations from the property files as constants? To use those words in my app as constans where I can´t use the UiBinder like the Canvas element? And what if I have different UiBinder Templates and need to translate the same words? They have the same checksum, but can they access the property file from the other template? Or do I need global property files? I don´t get the whole system right now... In my eyes it would be unefficient to mix constants and the UiBinder I18n. Do I have even a choice? Cheers, Michael -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Debug - Maven - Eclipse
Environment: Eclipse 3.6, GWT 2.1.1 I've created a maven project with ... $GWT_HOME/webAppCreator -out myProject -maven com.whatever.myProject I imported it into Eclipse via m2eclipse (import as existing maven project). Everything is working as expected. However, I've done a lot of Googling and reading old threads here, but I still haven't discovered how I can debug in Eclipse while running via the GWTShell. Can someone help me with this process? Mort -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Debug - Maven - Eclipse
I'd *highly *recommend downloading the eclipse plugin for gwt. http://dl.google.com/eclipse/plugin/3.6 for 3.6 http://dl.google.com/eclipse/plugin/3.5 for 3.5 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Debug - Maven - Eclipse
Thanks .. I've got the plugin installed .. but that still doesn't answer my question on how to debug in eclipse when using a maven project (I refuse to go back 10 years and use ant) On Feb 11, 2:42 pm, Jeff Larsen larse...@gmail.com wrote: I'd *highly *recommend downloading the eclipse plugin for gwt. http://dl.google.com/eclipse/plugin/3.6for 3.6 http://dl.google.com/eclipse/plugin/3.5for 3.5 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: print funtionality
http://code.google.com/p/gwt-print-it/source/browse/trunk/src/br/com/freller/tool/client/Print.java -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: IE warning message in web mode
Thanks Thomas , adding line add-linker name=xsiframe / to xml module file make IE warning message go away and can run app locally with IE. however the line above prevent my app to run in dev mode with IE . any Idea how we can have the app works both in dev mode and web mode? i'm not keen on having two xml module files one for dev mode and one for web mode. but would like to know how to do that if i have to? thanks On Feb 11, 1:50 pm, Thomas Broyer t.bro...@gmail.com wrote: The reason probably is that (by default) a GWT app is loaded within an iframe, i.e. as another HTML page (*.cache.html), which doesn't contain the MotW. Try using the xs or xsiframe linker, i.e. add one of these lines to your *.gwt.xml: add-linker name=xs / add-linker name=xsiframe / Those linkers use *.cache.js files, so the MotW in your host page should be enough. The xs linker prevents you from using DevMode (you'd have to use a different *.gwt.xml when developping your app than when compiling it), while the xsiframe should work with DevMode (but I don't know whether it'll work once compiled). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Debug - Maven - Eclipse
On 11 February 2011 13:48, mortsahl morts...@gmail.com wrote: Thanks .. I've got the plugin installed .. but that still doesn't answer my question on how to debug in eclipse when using a maven project (I refuse to go back 10 years and use ant) Just run mvn gwt:debug and attach a debugger in Eclipse (Debug Configuration -- Remote Java Application). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Debug - Maven - Eclipse
I'll give that a shot, thanks ... I was hoping to somehow configure a debug launch configuration to work ... so far, I haven't figured out the magic. Mort On Feb 11, 3:49 pm, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: On 11 February 2011 13:48, mortsahl morts...@gmail.com wrote: Thanks .. I've got the plugin installed .. but that still doesn't answer my question on how to debug in eclipse when using a maven project (I refuse to go back 10 years and use ant) Just run mvn gwt:debug and attach a debugger in Eclipse (Debug Configuration -- Remote Java Application). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Debug - Maven - Eclipse
On 11 February 2011 14:55, mortsahl morts...@gmail.com wrote: I'll give that a shot, thanks ... I was hoping to somehow configure a debug launch configuration to work ... so far, I haven't figured out the magic. I have been unable to get it to work from inside Eclipse. Eclipse seems to be getting in the way. Of course, I haven't tried very hard because mvn gwt:debug + Remote Java App works great. :-) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Debug - Maven - Eclipse
use the gwt-maven-plugin. Details can be found here http://mojo.codehaus.org/gwt-maven-plugin If you need a working sample look at the expenses sample app. Simplest way to get started is to use the archetype. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: advice on testing RequestFactory CRUD
Thank You very much, it was very helpful. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Associating editor errors with source widgets
Every editor knows the primitive fields it's editing. If the editor implements HadEditorErrors.showErrors(), it can simply compare primitiveField.asEditor() with error.getEditor() and highlight the erroneous primitiveField. I've read through this at least half a dozen times, but I am not seeing how to pull this off in a good way. The approach of the ValueBoxEditorDecorator requires that the tags be wrapped (generally in the UiBinder xml itself rather than in java) for each and every element, and your proposal requires that the Editor instance which declares those private fields have either a collection of the editors it has in fields, or have a giant if/elseif/elseif to handle each one and check if it has the error, then do something to highlight, as you say. Is there any cleaner way to pull this off? What about (for example) looping through the editors in the showErrors() list, and checking if they extend Widget or implement IsWidget? How about other generic ways to refer to lots of Editor instances? Like in wiring up label/help icons, or something like that? I've thought about another binder/driver style marker interface, generic on the containing widget so the Generator could go through and build these if/elseif kinds of blocks, or deal with annotations on its own, but that means many of these interfaces and their GWT.create to kick them off - boilerplate that seems like it should be unnecessary. At best presently you can make a widget with a custom add method (and so custom tags) that would go through a custom dom setup process, but even those extra custom tags shouldn't be necessary, except we can't register new handlers for uibinder.. Anyone else thinking these kinds of thoughts with any more success than I? -Colin -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: event fire in presenter
Take a look at SimpleEventBus. eventbus.fireEvent() is a synchronous call and all handlers will be executed one by one. So the eventbus dispatches only one event at a time. On 11 Feb., 07:57, Dhanu Musham dhanunjaya.mus...@gmail.com wrote: hi, i am very new to gwt use MVP in my application, and i am unable understand fire events in presenter, Is one eventBus can handle more than on event symultaniously? thank you, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Debug - Maven - Eclipse
Thanks ... I've got the gwt-maven-plugin v2.1.0-1 ... however, that doesn't do anything for starting the Eclipse debugger. Remote debugging works fine ... if I can figure out a working debug launch I'll post it here On Feb 11, 4:24 pm, Jeff Larsen larse...@gmail.com wrote: use the gwt-maven-plugin. Details can be found here http://mojo.codehaus.org/gwt-maven-plugin If you need a working sample look at the expenses sample app. Simplest way to get started is to use the archetype. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Performace Tips
Thanks everyone for the tips. I have found the source of some of my current problems. One issue is that we were passing around a very large and complex object in some of our RPC calls. I have heard that serialization can be slow in IE, and I believe that is the case for me. I redesigned the calls to no longer pass the object and it sped things up dramatically. There are still a few slow spots. We construct several complex panels with many tables and rows of data in them. We are mostly using VerticalPanels and HorizontalPanels to create these panels. It seems like the initial creation of these panesl are slow in IE. Any thoughts on how to speed that up? -TJ On Feb 11, 3:47 am, Thomas Broyer t.bro...@gmail.com wrote: On Thursday, February 10, 2011 7:20:40 PM UTC+1, Jim Douglas wrote: Have you profiled your application in Chrome using Speed Tracer? Also try DynaTrace in IE: http://ajax.dynatrace.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Putting bootstrap js in host page
Take a look at the new google groups as an example of what you are saying :). The default Linker (IFrameLinker) sets things up to start with a js file, then load the strongly named html file into an iframe. Additional linkers include building for running as a google gadget, and you can define your own as well. Copy paste will not work as is for the reason you mention, specifically because the bootstrap script looks for its own script tag, and checks the src attribute, which in your case will be empty. Also worth pointing out that a document.write call is used to add the iframe to the page - there are other cases where this can cause problems, such as when you start a module after the page has loaded. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Setting the name of a downloaded file
The parameter to set is part of the response from the server - the content-type header can have an attachment property which indicates the name of the file to be used. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Performace Tips
In the past, I have used DynaTrace Ajax Editionhttp://ajax.dynatrace.com/ajax/en/Default.aspx, a free IE profiling tool. It has the downside from hitting you with massive information overload, but I have been able to use it to find array copying and dom manipulation which, when modified, was enough to give IE the performance boost we needed. -Colin -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CellTable SelectionCell or only text within a column
In a column of a CellTable I would like to display either a combo box list or just a String depending on the value. I could just disable the combo box in the case I don't want the value to be editable but I was wondering if there was a way to display different type of cell (SelectionCell and CellSafeHtml) depending on a value. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Setting the name of a downloaded file
public class FileDownloadServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest p_request, HttpServletResponse p_response) throws ServletException, IOException { String filename = /* ... */; File file = /* ... */; long length = file.length(); FileInputStream fis = new FileInputStream(file); p_response.addHeader(Content-Disposition, attachment; filename=\ + filename + \); p_response.setContentType(application/octet-stream); if (length 0 length = Integer.MAX_VALUE); p_response.setContentLength((int)length); ServletOutputStream out = p_response.getOutputStream(); p_response.setBufferSize(32768); int bufSize = p_response.getBufferSize(); byte[] buffer = new byte[bufSize]; BufferedInputStream bis = new BufferedInputStream(fis, bufSize); int bytes; while ((bytes = bis.read(buffer, 0, bufSize)) = 0) out.write(buffer, 0, bytes); bis.close(); fis.close(); out.flush(); out.close(); } } On Feb 11, 9:12 am, Greg Dougherty dougherty.greg...@mayo.edu wrote: So I have a way to get a Save As Dialog box to come up for the file I'm downloading from my servlet (user hits the Export Button, I create an invisible frame that points to my servlet with the parameters necessary for the servlet to generate the export file). Unfortunately, the file comes up with the name of my servlet. How do I give the Save As Dialog a better default name for the file? The file is generated on the fly, so putting a file name in the URL wouldn't work. TIA, Greg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Did the Google Team forgot to announce GWT 2.2?
To my surprise I refreshed the dev guide page and it says GWT 2.2, I thought my eyes was playing tricks on me after a long day's work. Refreshed it again and indeed it says 2.2. And the SDK download link gets me the new version as well. Good job GWT Team and thanks for the frequent release. Thanks, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: Allow resource oracle to be expandable, speeds up client bundle in dev mode (issue1356801)
After discussing further with Scott, there's probably a better way to solve this one. Closing this review and retooling. It turns out this does result in a significant savings in practice, for projects with lots of ClientBundles with resources outside of the module space. So this approach will serve as an example solution for a concrete problem. But the solution should not alter the global ResourceOracle shared by other unrelated generators. However, question is whether keeping a local resource oracle for use only by ClientBundles would not incur significant overhead, since it would imply adding a mechanism for maintaining extra framework for handling per-generator resource oracles, and refreshing them, etc. Toby's longer term proposal of adding a custom a indexing classloader implementation is a more promising approach here, since circumventing a slow class loader lookup would no longer be necessary, and things would just work (assuming the classloader can be kept up to date successfully). http://gwt-code-reviews.appspot.com/1356801/diff/1/4 File dev/core/src/com/google/gwt/dev/resource/impl/ExpandableResourceOracleImpl.java (right): http://gwt-code-reviews.appspot.com/1356801/diff/1/4#newcode28 dev/core/src/com/google/gwt/dev/resource/impl/ExpandableResourceOracleImpl.java:28: public class ExpandableResourceOracleImpl extends ResourceOracleImpl well, getPathPrefixes is public on ResourcesOracleImpl (but not ResourcesOracle), so currently, generators don't have access to it. http://gwt-code-reviews.appspot.com/1356801/diff/1/5 File user/src/com/google/gwt/resources/ext/ResourceGeneratorUtil.java (right): http://gwt-code-reviews.appspot.com/1356801/diff/1/5#newcode570 user/src/com/google/gwt/resources/ext/ResourceGeneratorUtil.java:570: if (((GeneratorContextExt) genContext).isProdMode()) { It's only dev mode, since the optimization depends on the initial generator run discovering resource paths that caused a fallback to the class loader, and then subsequent generator runs being able to take advantage of the expanded resource oracle. Generators don't run multiple times for a given moduleSpace's ResourceOracle, in prodMode. http://gwt-code-reviews.appspot.com/1356801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9727 committed - Added guava sources.
Revision: 9727 Author: gwt.mirror...@gmail.com Date: Fri Feb 11 07:53:11 2011 Log: Added guava sources. http://code.google.com/p/google-web-toolkit/source/detail?r=9727 Added: /tools/lib/guava/guava-r06/guava-r06-rebased-src.zip /tools/lib/guava/guava-r06/guava-r06-src.zip === --- /dev/null +++ /tools/lib/guava/guava-r06/guava-r06-rebased-src.zip Fri Feb 11 07:53:11 2011 Binary file, no diff available. === --- /dev/null +++ /tools/lib/guava/guava-r06/guava-r06-src.zipFri Feb 11 07:53:11 2011 Binary file, no diff available. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Updated speed tracer logging for JDTCompiler, CompilationStateBuilder (issue1356802)
Reviewers: zundel, Description: Updated speed tracer logging for JDTCompiler, CompilationStateBuilder Please review this at http://gwt-code-reviews.appspot.com/1356802/show Affected files: M dev/core/src/com/google/gwt/dev/javac/CompilationState.java M dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java M dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java M dev/core/src/com/google/gwt/dev/jdt/AbstractCompiler.java M dev/core/src/com/google/gwt/dev/util/log/speedtracer/CompilerEventType.java M dev/core/src/com/google/gwt/dev/util/log/speedtracer/DevModeEventType.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors