There is a Grid, I want to hang on it filter search. For this, the grid requires a datasource. If you first display the grid and then attach the datasource, the grid does not accept the data. On the contrary, it turns out fine, but not an option: the form must be displayed at the beginning.
DataSource here such
class XmlDS extends DataSource { private static XmlDS instance = null; public XmlDS(String string) { setID(id); setClientOnly(true); DataSourceIntegerField pkField = new DataSourceIntegerField("id"); pkField.setHidden(true); pkField.setPrimaryKey(true); DataSourceTextField name = new DataSourceTextField("a", "ФИО"); name.setRequired(true); DataSourceTextField email = new DataSourceTextField("b", "e-mail"); setFields(name, email); } @Override public void processResponse(String requestId, DSResponse responseProperties) { // TODO Auto-generated method stub super.processResponse(requestId, responseProperties); } public static XmlDS getInstance() { if (instance == null) { instance = new XmlDS("XmlDS"); } return instance; }
What do not say so.