Input field in always receives value of last item in list

后端 未结 3 779
终归单人心
终归单人心 2021-01-23 11:23

I have a displaying a product catalog in Proudcts.xhtml:


    

        
3条回答
  •  暖寄归人
    2021-01-23 11:39

    Agree with Matt. Change your behaviour to be Ajax bt adding and set to execute the @this and quantity and render the cart. That way it will only process that row, not the whole table.

    Also I would change the action yo actionlistener.

提交回复
热议问题