【发布时间】:2012-01-31 23:46:34
【问题描述】:
我对这段代码有一个非常奇怪的行为:
<ui:fragment rendered="#{price.guestIdTrue}">
<b>PRICE_GUEST_ID_TRUE : #{price.guestIdTrue}</b>
<h:outputText>#{Global.guestTypeMap[price.guestId]} #{price.guestIndex}</h:outputText>
</ui:fragment>
即使渲染条件为假,
PRICE_GUEST_ID_TRUE:假 1
1 是#{price.guestIndex}
ui 命名空间已正确定义,并且适用于其他 facelets。
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:t="http://myfaces.apache.org/tomahawk">
对发生的事情的任何想法。
提前致谢。
【问题讨论】:
标签: jsf jsf-2 primefaces facelets