Discussion:
Responsive bootstrap modal in standard Wicket 6.x
Chris Colman
2018-08-05 16:12:21 UTC
Permalink
We use modals extensively in one of our apps that uses Wicket 6.x but
the HTML rendered is obviously not tailored for bootstrap and so the
modal does not act responsively (responsibly :) ) on smaller devices.



I'm aware of the excellent Wicket - Bootstrap library (as we use that on
another project) but this project does not use Wicket - Bootstrap (well
not "yet" at least).



I know it's possible to customize the CSS for a modal in core wicket but
is it possible/easy to, say, have the html customized so that the
sections of the modal can rendered with:


modal-header
modal-body

modal-footer



which I think is all that is needed to get the modals behaving
responsively in bootstrap?
Martijn Dashorst
2018-09-17 11:38:47 UTC
Permalink
Not sure if that works. Probably the best way is to see if you can
create a simple wrapper BootstrapModal component that takes the Panel
from your Wicket 6 code.

Another option, but I'm not sure how well that would work is to
provide different HTML to the ModalWindow (e.g. a _style with
_bootstrap.html) and setting the style for the ModalWindow to use the
other markup file

Martijn

On Sun, Aug 5, 2018 at 6:12 PM Chris Colman
Post by Chris Colman
We use modals extensively in one of our apps that uses Wicket 6.x but
the HTML rendered is obviously not tailored for bootstrap and so the
modal does not act responsively (responsibly :) ) on smaller devices.
I'm aware of the excellent Wicket - Bootstrap library (as we use that on
another project) but this project does not use Wicket - Bootstrap (well
not "yet" at least).
I know it's possible to customize the CSS for a modal in core wicket but
is it possible/easy to, say, have the html customized so that the
modal-header
modal-body
modal-footer
which I think is all that is needed to get the modals behaving
responsively in bootstrap?
--
Become a Wicket expert, learn from the best: http://wicketinaction.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
Loading...