Hello,
i use the following configuration:
SmartGWT 2.5 from 2011-04-28
GWT 2.0.4
IE8
Jetty (Development mode)
Tomcat (Production)
and i have a following problem:
I have a ListGrid and when I use the grouping (setGroupByField) in development mode, then it works, see Image_1, but if I build ".war"- file and deploy it to tomcat, it does not works, see Image_2.
How can you explain it?
Here is my samples:
i use the following configuration:
SmartGWT 2.5 from 2011-04-28
GWT 2.0.4
IE8
Jetty (Development mode)
Tomcat (Production)
and i have a following problem:
I have a ListGrid and when I use the grouping (setGroupByField) in development mode, then it works, see Image_1, but if I build ".war"- file and deploy it to tomcat, it does not works, see Image_2.
How can you explain it?
Here is my samples:
Code:
List<ListGridField> fields = new ArrayList<ListGridField>(); AsDS ds = new AsDS(baseNewDTO); ds.setID(artDerAs + ""); ListGrid listGrid = new ListGrid(); AAPListGridField asId = new AAPListGridField(AsDS.ASID, "ID", 35); fields.add(asId); AAPListGridField plz = new AAPListGridField(AsDS.ASPLZ, "PLZ", 40); fields.add(plz); AAPListGridField ort = new AAPListGridField(AsDS.ASORT, "Ort", 85); fields.add(ort); AAPListGridField kunde = new AAPListGridField(AsDS.KUNDE, "Kunde", 90); fields.add(kunde); AAPListGridField anzFZG = new AAPListGridField(AsDS.ANZFZG, "Stk.", 30); fields.add(anzFZG); AAPListGridField doppelte = new AAPListGridField(AsDS.DOPPELTE); fields.add(0, doppelte); this.listGrid.setGroupStartOpen(GroupStartOpen.ALL); this.listGrid.setGroupByField(AsDS.DOPPELTE); listGrid.setFields(fields.toArray(new ListGridField[fields.size()])); listGrid.setShowAllRecords(true); listGrid.setAutoFetchData(true); listGrid.setDataSource(ds); this.addMember(listGrid);
Code:
public class AsDS extends BaseDataSourceYB { ........... public AsDS(BaseNewDTO objektDTO) { super(objektDTO); objektDTO.setName(OBJECT_NAME); init(); } private void init() { DataSourceTextField baId = new DataSourceTextField(BEARBEITUNGSANGEBOTID); baId.setPrimaryKey(true); baId.setHidden(true); DataSourceTextField asId = new DataSourceTextField(ASID); DataSourceTextField asPlz = new DataSourceTextField(ASPLZ); DataSourceTextField asOrt = new DataSourceTextField(ASORT); DataSourceTextField asName = new DataSourceTextField(KUNDE); DataSourceTextField anzahlFzg = new DataSourceTextField(ANZFZG); DataSourceTextField doppelteId = new DataSourceTextField(DOPPELTE); setFields(doppelteId,baId, asId, asPlz, asOrt, asName, anzahlFzg); } }
Comment