Reload and refresh table from ajax call

ε祈祈猫儿з 提交于 2020-02-07 03:07:29

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!