Hello,
the model view presenter pattern in combination with gwt, which was presented on the google i/o (http://code.google.com/intl/de-DE/ev...ractices.html), doesn't seem to work with Interfaces of smartgwt.
if I try to add a Listener on a smartgwt specific handler (eg a cellclickhandler for a listgrid) in the presenter, it seems to be completely ignored.
a sample application of how to use mvp in gwt can be found here: http://code.google.com/p/gwt-mvp-sample/
a concrete example:
in the presenter I define an interface:
in the view I implement this interface:
back in the presenter again I bind the view and add the cellclickhandler:
in this example the onCellClick event is ignored..
does anyone know how to fix this? Are those interfaces not supported in smartGWT? will they be supported in future?
best regards and thank you for your help,
mat
the model view presenter pattern in combination with gwt, which was presented on the google i/o (http://code.google.com/intl/de-DE/ev...ractices.html), doesn't seem to work with Interfaces of smartgwt.
if I try to add a Listener on a smartgwt specific handler (eg a cellclickhandler for a listgrid) in the presenter, it seems to be completely ignored.
a sample application of how to use mvp in gwt can be found here: http://code.google.com/p/gwt-mvp-sample/
a concrete example:
in the presenter I define an interface:
Code:
public class Presenter { interface Display { HasCellClickHandlers getFoo(); } }
Code:
public HasCellClickHandlers getFoo() { return thelistgrid; }
Code:
public void bindView(final Display view){ this.view = view; view.getFoo().addCellClickHandler(new CellClickHandler() { public void onCellClick(CellClickEvent event) { // do something } });
does anyone know how to fix this? Are those interfaces not supported in smartGWT? will they be supported in future?
best regards and thank you for your help,
mat
Comment