Renderuj wiele komponentów za pomocą f: ajax

Złe kody to:

<h:form id="search_form">
<h:commandButton class="button" value="View" action="#{InfoBean.search}">
    <f:ajax execute="search_form" render="linear1"></f:ajax>
    <f:ajax execute="search_form" render="linear2"></f:ajax>
</h:commandButton>
<p:lineChart id="linear1" value="#{InfoBean.linearModel1}" legendPosition="e"/>
<p:lineChart id="linear2" value="#{InfoBean.linearModel2}" legendPosition="e"/>
</h:form>

To, co chcę zrobić, to kliknąć przyciskcommandButton, Chcę odświeżyć te dwa wykresy. Ale teraz użyłem dwóch<ajax> tagi, z których drugi nie działa.

Jak więc mogę użyć ajax do renderowania dwóch wykresów?

questionAnswers(2)

yourAnswerToTheQuestion