martin-g commented on a change in pull request #400: WICKET-6725: replace 
display: none by css class
URL: https://github.com/apache/wicket/pull/400#discussion_r368947117
 
 

 ##########
 File path: 
wicket-core/src/main/java/org/apache/wicket/protocol/http/WebApplication.java
 ##########
 @@ -758,6 +759,14 @@ protected void internalInit()
                setAjaxRequestTargetProvider(AjaxRequestHandler::new);
 
                getAjaxRequestTargetListeners().add(new 
AjaxEnclosureListener());
+               
+               getHeaderContributorListeners().add(head -> {
+                       Optional<CssResourceReference> wicketCoreCSS = 
getResourceSettings().getWicketCoreCSS();
 
 Review comment:
   personal preference: use `Optional.ifPresent()`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to