vaadin / touchkit

TouchKit is a library of mobile components for Vaadin Framework
https://vaadin.com/touchkit
Other
11 stars 25 forks source link

SwipeView constructor with content as parameter not calling default-constructor #424

Open arbitorius opened 7 years ago

arbitorius commented 7 years ago

The constructor:

public SwipeView(Component content) {
    setContent(content);
}

is not calling this();, thus the SwipeViewRpc() not being created, which leads to an error similar to the following and the SwipeView not working: Ignoring RPC call to com.vaadin.addon.touchkit.gwt.client.vcom.SwipeViewRpc.navigate[...] in connector com.vaadin.addon.touchkit.ui.SwipeView as no RPC implementation is registered

Workaround: use default-constructor and set the content afterwards or use the constructor with caption as parameter.