Facelets ui:remove标签的实际含义 [英] Practical implications of Facelets ui:remove tag

查看:139
本文介绍了Facelets ui:remove标签的实际含义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想了解<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.

  • 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标签的实际含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆