Skip to content
New issue

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

Move panel's content initialization to the onInitialize method. #826

Merged
merged 2 commits into from
Dec 23, 2019
Merged

Move panel's content initialization to the onInitialize method. #826

merged 2 commits into from
Dec 23, 2019

Conversation

vrozkovec
Copy link
Contributor

@vrozkovec vrozkovec commented Dec 22, 2019

Also instead of setting null model, pass empty model - this way when calling Components.hideIfModelIsEmpty upon panel's initialization, there is no hierarchy traversal that tries to get model's object value with the panelFooter and panelBody property lookups.

@coveralls
Copy link

coveralls commented Dec 22, 2019

Coverage Status

Coverage increased (+0.02%) to 47.13% when pulling 42ac6ba on vrozkovec:wicket-8.x into 80404f4 on l0rdn1kk0n:wicket-8.x.

- this way when calling Components.hideIfModelIsEmpty upon panel's
initialization, there is no hierarchy traversal that tries to get
model's object value with the "panelFooter" and "panelBody" property
lookups.
@martin-g martin-g merged commit f6f2903 into martin-g:wicket-8.x Dec 23, 2019
martin-g pushed a commit that referenced this pull request Dec 23, 2019
* Move panel's content initialization to the onInitialize method.

* Instead of setting null model, pass empty model

- this way when calling Components.hideIfModelIsEmpty upon panel's
initialization, there is no hierarchy traversal that tries to get
model's object value with the "panelFooter" and "panelBody" property
lookups.

(cherry picked from commit f6f2903)
martin-g pushed a commit that referenced this pull request Dec 23, 2019
* Move panel's content initialization to the onInitialize method.

* Instead of setting null model, pass empty model

- this way when calling Components.hideIfModelIsEmpty upon panel's
initialization, there is no hierarchy traversal that tries to get
model's object value with the "panelFooter" and "panelBody" property
lookups.

(cherry picked from commit f6f2903)
@martin-g
Copy link
Owner

Thanks, @vrozkovec !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants