Итак, у меня есть следующая таблица:
<h:dataTable id="shoppingCartTable" value="#{cartBean.shoppingCartList}" var="shoppingCartItem" width="100%" >
<h:column>
<f:facet name="header">
<h:outputText value="Item" />
</f:facet>
<h:commandLink value="#{shoppingCartItem.name}">
</h:commandLink><br/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Quantity" />
</f:facet>
<h:inputText id="quantity" value="#{shoppingCartItem.quantity}" size = "2" /><br/>
</h:column>
</h:dataTable>
С помощью следующей команды Button
<p:commandButton
value="Submit"
>
<f:ajax event="click"
execute="shoppingCartTable"
render="@all" />
</p:commandButton>
Теперь на странице много других вещей, и все, что я хочу сделать, этоОбновите значения количества товаров в корзине, но это не работает.Я что-то не так делаю?