Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I customize a modal window using Wicket 1.5?

I´ve already found this answer (Can the Wicket modal window be customized?) but it´s not suitable for Wicket 1.5. Can anyone please tell me how can I apply my own styles to a Wicket Modal?

like image 943
Sebastian Sogamoso Avatar asked Feb 23 '23 19:02

Sebastian Sogamoso


1 Answers

Create you own stylesheet and use set setCssClassName() ?

If you want to fully override all of the modal window css override the newCssResource() to return your own css resource. All its resources are in /wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/ including its stylesheet modal.css.

like image 50
mark-cs Avatar answered Mar 06 '23 00:03

mark-cs