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
Macro optimization:
In UIData#getDataModel, if value is null, a new instance of an empty datamodel will be returned, instead reuse a static immutable instance.
UIData#getDataModel
For example:
private static final DataModel EMPTY_DATA_MODEL = new ListDataModel(Collections.emptyList()); @Override protected DataModel getDataModel() { if (model != null) { return (model); } Object current = getValue(); if (current == null) { setDataModel(EMPTY_DATA_MODEL); } // etc. }
The text was updated successfully, but these errors were encountered:
Original Discussion in PrimeFaces: primefaces/primefaces#10426
Sorry, something went wrong.
Why you didn't create a PR ?
If you can't I'll create one but it's basically a copy/paste of your code ...
I think he was going on Holiday so PR would be great @pizzi80 !
😃 👍 👍
2.3.21 and 4.0.4 have been released with the improvement.
No branches or pull requests
Macro optimization:
In
UIData#getDataModel
, if value is null, a new instance of an empty datamodel will be returned, instead reuse a static immutable instance.For example:
The text was updated successfully, but these errors were encountered: