1
commandButtonを押すと、入力ボックスに現在入力されている値ではなくproduct.amountが開始されます。CommandButtonが押されたときにInputtextがバックエンドBeanと同期しない
<h:inputText value="#{product.amount}" />
<h:commandButton id="Button"
value="Buy"
tabindex="2" >
<f:ajax listener="#{shopBean.addToCart(product.product, product.amount)}"
execute="@this"
render="@all" />
</h:commandButton>
I C、ありがとうございます。 – Landister
ようこそ。 – BalusC