Mobile first!since 0.8.5

BootsFaces targets both desktop and mobile platforms. In previous versions, developers faced difficulties because they weren't aware of the viewport meta tag. Since BootsFaces 0.8.5, this meta tag is added automatically to every BootsFaces page. It defaults to width=device-width, initial-scale=1.

Disabling the standard setting

If you don't want a meta viewport tag at all, you can disable this behaviour by setting its context paramater to false.

Overriding the viewport

If you need a different viewport setting, simply add it to your <h:head> tag. BootsFaces adds the default viewport setting at the beginning of the HTML file, ensuring you can override it.

You can also provide your own setting by setting the context parameter to your desired content.