【发布时间】:2012-05-30 09:22:27
【问题描述】:
我有一个问题是,当我尝试更新不在同一个 xhtml 中的组件时。
有人知道怎么做吗?
谢谢 PD:我使用的是 primefaces 3.2
对不起我的英语
我觉得我解释的不是很好。
我有一个带有tis结构的xhtml父亲:
<h:panelGrid id="tabla">
<h:form id="formTripu" prependId="false">
<h:panelGrid id="fichaTripulante">
<ui:include src="path1" />
<p:spacer height="5px" />
<p:tabView dynamic="false" cache="true">
<p:tab title="#{bundleTrip.datosAdministrativos}">
<ui:include
src="path2" />
</p:tab>
<p:tab title="Datos Operativos ">
<ui:include
src="path3" />
</p:tab>
我希望做的是,例如在 path1 中我使用 h:selectBooleanCheckbox 之类的:
<h:selectBooleanCheckbox inmediate="true" id="checkExt"
value="#{bean.Obj.field}">
<f:ajax render="estadoTripu"
actionListener="#{bean.method}" />
</h:selectBooleanCheckbox>
estadoTripu 在 path2 中(otherxthml 但格式相同)。
<p:panel>
<h:panelGrid id="datos" columns="5">
<p:column>
<h:selectOneMenu id="estadoTripu"
value="#{bean.Obj.Field2}">
<f:selectItems
value="#{bean.list}" var="item"
itemValue="#{item.id}" immediate="true"
itemLabel="#{item.desc}">
</f:selectItems>
</h:selectOneMenu>
</h:panelGrid>
</p:column>
</h:panelGrid>
</p:panel>
Witch 正在渲染 f:ajax????
谢谢大家
【问题讨论】:
标签: jsf primefaces