Re: CellTable with AsyncDataProvider and sortable column

2011-04-27 Thread Soon Fatt Hoo
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 wrote: > Hi, > What I need to do is to implement column sorting functionality with > CellTable. AFAIK in GWT 2.2 such functionality is alread

Re: CellTable Sort in 2.2

2011-04-20 Thread Soon Fatt Hoo
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 wrote: > I am using > payerColumn.setSortable(true)

Re: Server Side ColumnSorting with AsyncDataProvider

2011-04-14 Thread Soon Fatt Hoo
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 wrote: > You can call CellTable#getColumn(int) to get the Column object from the > index.  Then you can use a Map of Column to ServerCol

Re: the reverse: creating properties file out of existing Constants/Messages interfaces

2011-04-14 Thread Soon Fatt Hoo
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 {

Re: Is there a way to generate i18n property from Constants?

2011-04-13 Thread Soon Fatt Hoo
Apr 13, 9:23 am, Soon Fatt Hoo 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 > wrote: > > >

Re: Is there a way to generate i18n property from Constants?

2011-04-13 Thread Soon Fatt Hoo
p: 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 wrote: > > > > > > > > > I used the -extra extras when I com

Re: Is there a way to generate i18n property from Constants?

2011-04-12 Thread Soon Fatt Hoo
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. Th

Re: Help with / Tutorial for Styling for GWT Beginners

2011-04-11 Thread Soon Fatt Hoo
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 =

Is there a way to generate i18n property from Constants?

2011-04-11 Thread Soon Fatt Hoo
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 gen

Help with config two Server.

2011-02-10 Thread Soon Fatt Hoo
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 p