JSF 面试题与答案
Question: How to print out html markup with h:outputText?Answer: The h:outputText has attribute escape that allows to escape the html markup. By default, it equals to "true". It means all the special symbols will be replaced with '&' codes. If you set it to "false", the text will be printed out without ecsaping.For example, <h:outputText value="<b>This is a text</b>"/> will be printed out like: <b>This is a text</b> In case of <h:outputText escape="false" value="<b>This is a text</b>"/> you will get: This is a text |
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
这有帮助吗? 是 否
用户评价最有帮助的内容:
- What is JSF?
- What is required for JSF to get started?
- What is JSF architecture?
- How the components of JSF are rendered? An Example
- How JSF different from conventional JSP / Servlet Model?