问题
I want to create a form which when it's submitted it renders and executes a second form:
<h:form id="paymentform">
<div>
.....
</div>
<h:commandButton id="buy" type="submit" value="Put" action="#{dashboard.calculateProcessing}" >
<f:ajax render="@form formdddasd" execute="@form formdddasd"/>
</h:commandButton>
</h:form>
Second form which must be reloaded and refreshed:
<h:form id="formdddasd">
<h:dataTable id="formdd" value="#{orders.cdList}" var="cd"
rendered="#{orders.cdList ne null}"
...........
</h:dataTable>
</h:form>
The first form is executed and rendered but the second form is not. Is it possible to implement this functionality?
回答1:
Is it possible to implement this functionality?
Yes
回答2:
try this
<f:ajax render="@form :formdddasd" execute="@form :formdddasd"/>
来源:https://stackoverflow.com/questions/59439075/reload-and-refresh-table-from-ajax-call