JSF Forms When Submitted

If we have several forms, as shown below, and when I finally click the submit button, it should send all the values ​​from "froms1 to forms3" to the server. Is it possible? I use price lists.

<h:form id="forms1">
 <inputText .........
 </h:form>
......
<h:form id="forms2">
 ......
</h:form>
.......
<h:form id="forms3">
.....
</h:form>

<p:commandButton value="submit" action="#{bean.action}" onSubmit="this.forms1,this.forms2,this.forms3" partialSubmit="true" />
0
source share
2 answers

It is not recommended to enter a diverse form, but you can send by the following code.

<p:commandButton title="Submit" value="Submit" action="#{bean.action}" process="form1,form2,form3">

it can work 4 of you ...

-1
source

You may be able to add some hacker solution to send 3 forms with one button, but it would be best to use 1 form with 1 submit button inside the form.

, , , . <p:fieldset></p:fieldset>

+1

All Articles