a がクリックされたときに id="contents" で div を更新したいのですh:commandButton
が、複雑な部分は、h:commandButton が a にあるc:forEach
ため、複数h:commandButton
の s があることです。コマンドボタンのいずれかがクリックされるたびにdivを更新したい。ajaxまたはjqueryを使用できますか?
1)
<h:form>
<div id="contents">
<c:forEach var="p" items="#{statusBean.statusList}">
<h:commandButton>Click Me</h:commandButton>
//content
</c:forEach>
</div>
</h:form>