I would like to remove all HTML comments from my facelets before delivering to end users. Does any standard approach exist?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
There are actually two ways:
To remove ALL comments, add this to
web.xml
:or when you're still on JSF 1.2 which doesn't use Facelets as default view technology yet:
To remove specific comments only, use
<ui:remove>
.