We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@heruan commented on Tue May 29 2018
Using the component as generic type of Composite results in this exception:
Composite
java.lang.IllegalStateException: Neither class 'MyList' nor its super classes declare event handler method 'setRequestedRange'
Use case:
abstract ListLayout<T, L extends Component & HasDataProvider<T>> extends Composite<L> {} class MyList extends ListLayout<Person, IronList<Person>> {}
@Legioth commented on Tue May 29 2018
I think this is a generic Flow issue related to finding $server methods from composite content classes.
$server
The text was updated successfully, but these errors were encountered:
It is generic, indeed. Workaround is to mimic @ClientCallable-annotated methods in the composite: easy for IronList, e.g.
@ClientCallable
IronList
public class MyComposite extends Composite<IronList> { @ClientCallable(DisabledUpdateMode.ALWAYS) private void setRequestedRange(int start, int length) { getContent().getDataCommunicator().setRequestedRange(start, length); } }
while for others (like Grid) reflection is needed. I really hope to see this tackled down soon!
Grid
Sorry, something went wrong.
@Legioth Do you feel #4298 covers this? I'm not fully aware of all the endpoints of RPC method/events for $server calls.
No branches or pull requests
@heruan commented on Tue May 29 2018
Using the component as generic type of
Composite
results in this exception:Use case:
@Legioth commented on Tue May 29 2018
I think this is a generic Flow issue related to finding
$server
methods from composite content classes.The text was updated successfully, but these errors were encountered: