1. the *complete* SmartGWT or SmartClient version
2. browser(s) and version(s) involved
3. for a server-side problem, the *complete* logs generated during processing of the failing request (do *not* trim to just the error message)
-> Sorry, was too long.
I'm using this Bean:
and this DataSource definition
Where it is used:
What I would expect:
That the field "aktiv" is hidden in the grid and the form.
What I experience:
The field "aktiv" is still visible in the grid and the form.
Code:
SmartClient Version: v8.3p_2012-12-28/Pro Deployment (built 2012-12-28)
Code:
Chrome 23.0.1271.97
-> Sorry, was too long.
Code:
=== 2012-12-28 19:16:51,372 [l0-9] INFO DSResponse - [builtinApplication.wartungstyp_fetch] DSResponse: List with 4 items === 2012-12-28 19:16:51,372 [l0-9] INFO HibernateTransaction - [builtinApplication.wartungstyp_fetch] Attempting to commit 0 database update(s) === 2012-12-28 19:16:51,372 [l0-9] DEBUG HibernateTransaction - [builtinApplication.wartungstyp_fetch] Committing transaction "2047570155" === 2012-12-28 19:16:51,372 [l0-9] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8 === 2012-12-28 19:16:51,373 [l0-9] DEBUG DataSourceAnnotations - Generating data source 'Wartungstyp' for class de.bml.web.versandanzeige.server.model.Wartungstyp === 2012-12-28 19:16:51,373 [l0-9] DEBUG DataSourceAnnotations - Generating data source 'Object' for class java.lang.Object === 2012-12-28 19:16:51,373 [l0-9] DEBUG DataSourceAnnotations - Methods are annotated. === 2012-12-28 19:16:51,373 [l0-9] DEBUG DataSourceAnnotations - Generating field 'null' of type java.lang.String === 2012-12-28 19:16:51,373 [l0-9] DEBUG DataSourceAnnotations - Skipping. === 2012-12-28 19:16:51,373 [l0-9] DEBUG DataSourceAnnotations - Generating field 'id' of type java.lang.Object === 2012-12-28 19:16:51,374 [l0-9] DEBUG DataSourceAnnotations - Field configuration generated: {name=id, type=any} === 2012-12-28 19:16:51,374 [l0-9] DEBUG DataSourceAnnotations - Generating field 'id' of type java.lang.Long === 2012-12-28 19:16:51,374 [l0-9] DEBUG DataSourceAnnotations - Field configuration generated: {hidden=true, primaryKey=true, name=id, required=false, canEdit=false, type=sequence} === 2012-12-28 19:16:51,374 [l0-9] DEBUG DataSourceAnnotations - Generating field 'null' of type org.w3c.dom.Node === 2012-12-28 19:16:51,374 [l0-9] DEBUG DataSourceAnnotations - Skipping. === 2012-12-28 19:16:51,374 [l0-9] DEBUG DataSourceAnnotations - Generating field 'aktiv' of type java.lang.Boolean === 2012-12-28 19:16:51,374 [l0-9] DEBUG DataSourceAnnotations - Field configuration generated: {name=aktiv, type=boolean} === 2012-12-28 19:16:51,374 [l0-9] DEBUG DataSourceAnnotations - Generating field 'null' of type void === 2012-12-28 19:16:51,374 [l0-9] DEBUG DataSourceAnnotations - Skipping. === 2012-12-28 19:16:51,374 [l0-9] DEBUG DataSourceAnnotations - Generating field 'bezeichnung' of type java.lang.String === 2012-12-28 19:16:51,374 [l0-9] DEBUG DataSourceAnnotations - Field configuration generated: {name=bezeichnung, type=text} === 2012-12-28 19:16:51,374 [l0-9] DEBUG DataSourceAnnotations - Generating field 'null' of type void === 2012-12-28 19:16:51,375 [l0-9] DEBUG DataSourceAnnotations - Skipping. === 2012-12-28 19:16:51,375 [l0-9] DEBUG DataSourceAnnotations - Generating field 'null' of type void === 2012-12-28 19:16:51,375 [l0-9] DEBUG DataSourceAnnotations - Skipping. === 2012-12-28 19:16:51,375 [l0-9] DEBUG DataSourceAnnotations - Generating field 'null' of type void === 2012-12-28 19:16:51,375 [l0-9] DEBUG DataSourceAnnotations - Skipping. === 2012-12-28 19:16:51,375 [l0-9] DEBUG DataSourceAnnotations - Generating field 'null' of type void === 2012-12-28 19:16:51,375 [l0-9] DEBUG DataSourceAnnotations - Skipping. === 2012-12-28 19:16:51,375 [l0-9] DEBUG DataSourceAnnotations - Generating field 'null' of type boolean === 2012-12-28 19:16:51,375 [l0-9] DEBUG DataSourceAnnotations - Skipping. === 2012-12-28 19:16:51,375 [l0-9] DEBUG DataSourceAnnotations - Generating field 'null' of type int === 2012-12-28 19:16:51,375 [l0-9] DEBUG DataSourceAnnotations - Skipping. === 2012-12-28 19:16:51,375 [l0-9] DEBUG DataSourceAnnotations - Generating field 'class' of type java.lang.Class === 2012-12-28 19:16:51,376 [l0-9] DEBUG DataSourceAnnotations - Skipping. === 2012-12-28 19:16:51,376 [l0-9] DEBUG DataSourceAnnotations - Generating field 'null' of type void === 2012-12-28 19:16:51,376 [l0-9] DEBUG DataSourceAnnotations - Skipping. === 2012-12-28 19:16:51,376 [l0-9] DEBUG DataSourceAnnotations - Generating field 'null' of type void === 2012-12-28 19:16:51,376 [l0-9] DEBUG DataSourceAnnotations - Skipping. === 2012-12-28 19:16:51,376 [l0-9] DEBUG RPCManager - non-DMI response, dropExtraFields: false === 2012-12-28 19:16:51,377 [l0-9] DEBUG HibernateTransaction - Closing session "2047570155" === 2012-12-28 19:16:51,378 [l0-9] DEBUG HibernateTransaction - Removed transaction "2047570155" === 2012-12-28 19:16:51,378 [l0-9] INFO Compression - /ajax/sc/IDACall: 326 -> 215 bytes === 2012-12-28 19:16:51,534 [l0-9] INFO Download - Returning 304: Not modified on conditional get of: C:\Users\m.lautenbach\git\BML-connect\Versandanzeige_Web\war\ajax\sc\skins\Enterprise\images\DynamicForm\checked_Disabled.png
Code:
package de.bml.web.versandanzeige.server.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import com.google.gwt.user.client.rpc.IsSerializable; import de.bml.web.versandanzeige.client.dto.WartungstypDTO; @Entity public class Wartungstyp implements IsSerializable, HasId<Long> { public static final String WARTUNGSTYP = "wartungsTyp"; public static final String ID = "id"; public static final String BEZEICHNUNG = "bezeichnung"; public static final String AKTIV = "aktiv"; @Override @Id @GeneratedValue(strategy = GenerationType.AUTO) public Long getId() { return this.id; } public String getBezeichnung() { return this.bezeichnung; } public Boolean getAktiv() { return this.aktiv; } private Long id; private String bezeichnung; private Boolean aktiv = true; protected Wartungstyp() { } public Wartungstyp(WartungstypDTO dto) { this(dto, true); } public Wartungstyp(WartungstypDTO dto, Boolean primary) { if (dto == null) { return; } setId(dto.getId()); if (primary) { setAktiv(dto.getAktiv()); setBezeichnung(dto.getBezeichnung()); } } public Wartungstyp(String bezeichnung) { this.bezeichnung = bezeichnung; } protected void setId(Long id) { this.id = id; } public void setBezeichnung(String bezeichnung) { this.bezeichnung = bezeichnung; } public void setAktiv(Boolean aktiv) { this.aktiv = aktiv; } public Node toXML(Document document) { Element root = document.createElement(WARTUNGSTYP); root.setAttribute(ID, getId().toString()); root.setAttribute(BEZEICHNUNG, getBezeichnung()); root.setAttribute(AKTIV, getAktiv().toString()); return root; } @Override public String toString() { return getBezeichnung(); } }
Code:
<DataSource ID="wartungstyp" serverType="hibernate" schemaBean="de.bml.web.versandanzeige.server.model.Wartungstyp" autoDeriveSchema="true" > <field name="aktiv" hidden="True" type="boolean" /> </DataSource>
Code:
package de.bml.web.versandanzeige.client.view; import com.google.gwt.user.client.ui.DockPanel; import com.smartgwt.client.data.DataSource; import com.smartgwt.client.widgets.form.DynamicForm; import com.smartgwt.client.widgets.form.fields.HeaderItem; import com.smartgwt.client.widgets.grid.ListGrid; import com.smartgwt.client.widgets.grid.events.RecordClickEvent; import com.smartgwt.client.widgets.grid.events.RecordClickHandler; public class WartungsTypSCView extends DockPanel { public WartungsTypSCView() { DataSource dataSource = DataSource.get("wartungstyp"); final ListGrid grid = new ListGrid(); grid.setDataSource(dataSource); grid.setHeight("80%"); grid.setLeft(20); grid.setTop(10); final DynamicForm form = new DynamicForm(); form.setLeft(10); form.setTop(10); form.setDataSource(dataSource); form.setIsGroup(true); form.setPadding(10); grid.fetchData(); grid.addRecordClickHandler(new RecordClickHandler(){ public void onRecordClick(RecordClickEvent event) { form.clearValues(); form.editSelectedData(grid); } }); this.add(form, DockPanel.CENTER); this.add(grid, DockPanel.EAST); } }
That the field "aktiv" is hidden in the grid and the form.
What I experience:
The field "aktiv" is still visible in the grid and the form.
Comment