问题描述
我想了解<ui:remove>
的基本机制.据我所知,当基本HTML内容是Facelets页面的一部分时,<ui:remove>
基本上是结合使用的.如果需要,当Facelets页面的呈现发生时,它应该忽略HTML代码的这一部分,我们可以使用<ui:remove>
标记.
I want to understand the basic mechanism of <ui:remove>
. As per my knowledge, <ui:remove>
is basically used in conjunction when basic HTML stuff is part of your Facelets page. When you want, when rendering of the Facelets page happen, it should ignore this part of HTML code, we can use the <ui:remove>
tag.
我仍然对<ui:remove>
的实际含义感到困惑.我们需要多久使用一次Facelets标签?此外,"Facelets"页面不会在每次被单击时进行编译.
Still I am confused about practical implications of <ui:remove>
. How often we need to use this Facelets tag? Additionally, the Facelets page is not compiled everytime when the page is hit.
推荐答案
删除设计时(而不是运行时)所需的内容非常有用,例如注释,一些存根的内容(例如"lorem ipsum")帮助填充页面内容以适合Dreamweaver等视觉设计器中的布局.
It's useful to remove content which is required during design time, but not during run time, such as comments, some stubbed content (e.g. "lorem ipsum") which aids in filling up the page content to fit the layout in visual designers such as Dreamweaver, etc.
如果您不是页面设计者,但已经以PSD/AI/etc的形式检索设计,那么对您来说确实没用.
If you're not a page designer, but already retrieve designs as PSD/AI/etc, it's indeed useless to you.
- 有没有一种方法可以在不构建整个项目的情况下运行JSF页面?
- 建议的Facelets代码仍会调用诸如#{ bean.action()}并在#{bean.action} 上导致javax.el.PropertyNotFoundException
- JSF显示HTML注释
- Is there a way to run a JSF page without building the whole project?
- Outcommented Facelets code still invokes EL expressions like #{bean.action()} and causes javax.el.PropertyNotFoundException on #{bean.action}
- JSF display HTML comment
这篇关于Facelets ui:remove标签的实际含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!