Avoid using deprecated vaadin 6 methods in vaadin 7
I am on a Project update from version vaadin 6 to vaadin 7. In the vaadin
7 version is used to a large extent the method getPaintable() from the
class ApplicationConnection. Nevertheless it is deprecated in vaadin 7 .
After examining the api and the official tutorial I have not detected and
understood by what method or combination of methods it is replaced. If I
want for example to do:
ComponentConnector paintable = this.client.getPaintable(uidl);
How can I excecute the above statement using excusively vaadin 7 (not
deprecated) api?
Update:
The answer certifies my suspect that the method in ApplicationConnection
getConnector(java.lang.String connectorId, int connectorType) should be
used instead, but it is still missing, what is the int type connectorType
and how one gets it. Any suggestion?
Update 2:
The replacement suggested in the answer seems reasonable and it might work
but my worry is: Should we use generally UIDL class in vaadin 7? I have
the impression that the method updateFromUIDL(UIDL uidl,
ApplicationConnection client)should not be called in vaadin 7. How can we
the get uidl.getId() , uidl.getTag(). I reckon also that uidl.getId()
should be replaced by the method in AbstractConnector getConnectorId(). Am
I right?
No comments:
Post a Comment