Re: CellTable with AsyncDataProvider and sortable column
Take a look in http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellTable.html at the ColumnSorting with AsyncDataProvider. On Apr 27, 4:42 am, Opal maciek.op...@gmail.com wrote: Hi, What I need to do is to implement column sorting functionality with CellTable. AFAIK in GWT 2.2 such functionality is already implemented but could be used only with ListDataProvider. I need to use an AsyncDataProvider (because of an large amount of data). Does anybody have any ideas or an example? Any help would be 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.
Re: CellTable Sort in 2.2
Are you using ListDataProvider or AsyncDataProvider? Either way, you will have to add ListHandler or AsyncHandler to your cellTable. Take a look at http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellTable.html. On Apr 19, 12:47 pm, SVR svr...@gmail.com wrote: I am using payerColumn.setSortable(true); where payerColumn is of type: private class PayerNameColumn extends ColumnBasicLocationData, String the document just tells to use the api, but I dont get the up/down arrow to do the sorting? What else needs to be done? -- You received 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: the reverse: creating properties file out of existing Constants/Messages interfaces
On your constants interface add this @Generate(format = com.google.gwt.i18n.rebind.format.PropertiesFormat) then compile your gwt code with -extra extras @Generate(format = com.google.gwt.i18n.rebind.format.PropertiesFormat) public interface ExampleConstants extends ConstantsWithLookup { @DefaultStringValue(New) String newButton(); } That should generate a properties file with newButton = New On Apr 14, 4:41 am, vlad.balan vlad.ba...@gmail.com wrote: Hello, with GWT's i18nCreator and i18nSync classes you can create a corresponding Constants subinterface for your existsing properties file. How can you achive the reverse? A revers operation would use your Constans interface (containing information like @Generate(String[] formatFQCN, String filename, String[] locales)) to create GWT-style properties files for your listed constants declarations. But i18nSync does not do it. Is there another tool? -- You received 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: Server Side ColumnSorting with AsyncDataProvider
Don't you mean CellTable#getColumnIndex(sortList.get(0).getColumn()) then look up the string from ColumnMap by using the index? On Mar 15, 1:22 pm, John LaBanca jlaba...@google.com wrote: You can call CellTable#getColumn(int) to get the Column object from the index. Then you can use a Map of Column to ServerColumnId to resolve the value to send to the server. Thanks, John LaBanca jlaba...@google.com On Tue, Mar 15, 2011 at 12:21 PM, Stephan T stephan.tern...@gmail.comwrote: I'm trying to implement server side sorting using CellTable and AsyncDataProvider in GWT 2.2. I've followed the example in the documentation and have everything working with the AsyncDataProvider only fetching ten objects at a time. But when it comes to sorting I can't make it work. I can't figure out how to tell the server on which of the objects attributes to sort the query result. In the onRangeChanged-method I can get the ColumnSortList and then get the columns. But the column object does not contain information like the columns headerString. If I could get the columns headerString I could figure out which attribute of the object to do the sorting on, but I can't and now I'm out of ideas. I could of course subclass the column-object and add some kind of identifier-method to it, but I have a feeling that it's something I've missed because it shouldn't be that tedious. -- You received 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: Is there a way to generate i18n property from Constants?
The on is a typo. My code doesn't have the 'on'. The error message is [ERROR] @Generate class com.google.gwt.i18n.rebind.format.Properties not found On Apr 13, 4:05 am, Martin Trummer ds.martin.trum...@gmail.com wrote: ? try to delete the line that says 'on' if this doesn't help: what's the compiler error-message? for more info on java-annotations see:http://download.oracle.com/javase/1.5.0/docs/guide/language/annotatio... On Apr 12, 3:23 pm, Soon Fatt Hoo sf...@sfhoo.com wrote: I used the -extra extras when I compile gwt project but it does not generate the properties file for me. The only properties generated was UI binding properties. I think I don't quite understand how I use the @generate annotation. I try to use @Generate as following code but it fail compile. Thanks @Generate(format = com.google.gwt.i18n.rebind.format.Properties) on public interface ExampleConstants extends ConstantsWithLookup { @DefaultStringValue(Address Line 2) String addressLine2(); } On Apr 12, 4:24 am, Thomas Broyer t.bro...@gmail.com wrote: When you compile your project, pass the -extra argument with a folder path (e.g. -extra extras), GWT will generate the *.properties there. You might have to add a few annotations to your interface though, such as @ Generatehttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl... . See alsohttp://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html#DevGui... -- You received 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 generate i18n property from Constants?
I fixed my problems GWT change the Properties class to com.google.gwt.i18n.rebind.format.PropertiesFormat. That is why I cannot generate the properties file in the extras. I think they should change the documentation in the Java. :/ Thanks everybody for your help! :) On Apr 13, 9:23 am, Soon Fatt Hoo sf...@sfhoo.com wrote: The on is a typo. My code doesn't have the 'on'. The error message is [ERROR] @Generate class com.google.gwt.i18n.rebind.format.Properties not found On Apr 13, 4:05 am, Martin Trummer ds.martin.trum...@gmail.com wrote: ? try to delete the line that says 'on' if this doesn't help: what's the compiler error-message? for more info on java-annotations see:http://download.oracle.com/javase/1.5.0/docs/guide/language/annotatio... On Apr 12, 3:23 pm, Soon Fatt Hoo sf...@sfhoo.com wrote: I used the -extra extras when I compile gwt project but it does not generate the properties file for me. The only properties generated was UI binding properties. I think I don't quite understand how I use the @generate annotation. I try to use @Generate as following code but it fail compile. Thanks @Generate(format = com.google.gwt.i18n.rebind.format.Properties) on public interface ExampleConstants extends ConstantsWithLookup { @DefaultStringValue(Address Line 2) String addressLine2(); } On Apr 12, 4:24 am, Thomas Broyer t.bro...@gmail.com wrote: When you compile your project, pass the -extra argument with a folder path (e.g. -extra extras), GWT will generate the *.properties there. You might have to add a few annotations to your interface though, such as @ Generatehttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl... . See alsohttp://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html#DevGui... -- You received 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 generate i18n property from Constants?
I used the -extra extras when I compile gwt project but it does not generate the properties file for me. The only properties generated was UI binding properties. I think I don't quite understand how I use the @generate annotation. I try to use @Generate as following code but it fail compile. Thanks @Generate(format = com.google.gwt.i18n.rebind.format.Properties) on public interface ExampleConstants extends ConstantsWithLookup { @DefaultStringValue(Address Line 2) String addressLine2(); } On Apr 12, 4:24 am, Thomas Broyer t.bro...@gmail.com wrote: When you compile your project, pass the -extra argument with a folder path (e.g. -extra extras), GWT will generate the *.properties there. You might have to add a few annotations to your interface though, such as @ Generatehttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl... . See alsohttp://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html#DevGui... -- You received 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.
Is there a way to generate i18n property from Constants?
I have a Constants Interface public interface ExampleConstants extends ConstantsWithLookup { @DefaultStringValue(Address Line 2) String addressLine2(); } I want to generate the ExampleConstants_en.properties file that contain addressLine2 = Address Line 2 Is there a way to generate the properties file or I have to create my own? Thanks, Soon -- You received 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: Help with / Tutorial for Styling for GWT Beginners
Paul, If you look into Java Doc for CellTable, you should able to see the default css style for CellTable. @ImportedWithPrefix(gwt-CellTable) public interface Style extends CssResource { /** * The path to the default CSS styles used by this resource. */ String DEFAULT_CSS = com/google/gwt/user/cellview/client/ CellTable.css; The same apply to all the widget in GWT. To replace a button's text with image, you will have to write your Custom Class that extends button. On Apr 11, 3:46 pm, PM paul.maddal...@infor.com wrote: Hi everyone! I am new to GWT and am having a hard time finding any good tutorials focused especially on teaching styling with GWT. The few examples I've found provided by Google are rather paltry, and don't really explain much. Some things I'm trying to do would be: - Change the global font style - Change existing widgets' styling, such as the background color of a selected item in a CellTree - Replace a button's text with an image instead - Remove borders of text fields - the list goes on I've been searching and searching, and am not finding anything particularly helpful with styling, so any advice/direction would be greatly appreciated! 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.
Help with config two Server.
I am having problem to configure two servers to talk with each other. First server is pure Spring remoting server without any GWT code, second server is GWT Ui code. I want to able to run GWT UI as a server and remote to Spring remoting server to get data. The project structure look like this project1withDataService(on server1) - remote project2withGWT(on server2) Project1 is config with Gilead and GWT-SL -- You received 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.