【发布时间】:2015-03-17 10:53:33
【问题描述】:
下面是我的代码:
<c:forEach items="#{myBean.contractList}" var="contract">
<tr>
<td>#{contract.title}</td>
<td>#{contract.terms}</td>
<td>
<h:form>
<h:commandLink>
<p:ajax event="click" update=":panelID" listener="#{bean.selectProject(contractID)}"/>
</h:commandLink>
</h:form>
</td>
</tr>
</c:forEach>
<h:panelGroup id="panelID">
<div id="contractDIV" class="closePopup">
Full Details of particular contract
</div>
</h:panelGroup>
有标题、条款、名称以及“链接/按钮”的合同列表。当我单击该链接/按钮时,该特定合同详细信息在另一个 div 中打开,ID 为“contractDIV”,来自数据库,css 类名称从“openPopup”更改为“closePopup”。在 JSF 中怎么可能?
【问题讨论】:
-
请告诉我们到目前为止你尝试了什么?。 它在 JSF 中的可能性 在这里不是有效的问题
-
你在用什么 Primeaces 或 Richfaces ?