submit multiple forms with p:commandbutton

前端 未结 4 2129
不思量自难忘°
不思量自难忘° 2020-12-18 02:42

I want to submit multiple forms with one submit button. I have multiple forms because each p:fileUpload needs an own form (when in advanced mode).

Here\'s the code f

4条回答
  •  误落风尘
    2020-12-18 03:48

    That's the limitation of HTML. Only the input data containing within the current form (wherein the command is been invoked) will be sent to the server side. As to the process attribute, that only identifies which part(s) of that submitted data must be processed by JSF after they have arrived.

    Any idea how to make it work?

    Put all related data in the same form. Use if necessary just a single with multiple file selection support.

提交回复
热议问题