papegaaij 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_r368979027
 
 

 ##########
 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:
   I usually do not want to use lambda's inside lambda's, that's why I did it 
like this, but I rewrote it with `ifPresent` and it does look better that way. 
I'll change the code.

----------------------------------------------------------------
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