【发布时间】:2012-09-12 10:35:37
【问题描述】:
我对 f:ajax 标签有疑问。单击 commandLink 后,我想显示和隐藏一些数据,但出现错误:
我的代码:
<h:form prependId="false" id="contactDataForm">
<h:commandLink value="Edit" action="#{cc.attrs.userBB.showHideEditForm()}">
<f:ajax render="editableContactData notEditableContactData"/>
</h:commandLink>
<h:panelGroup id="notEditableContactData" rendered="#{cc.attrs.userBB.show == false}">
test1
</h:panelGroup>
test2
</h:panelGroup>
</h:form>
【问题讨论】: