I'm trying to make a Java Project with JSF and PrimeFaces.
I have two tables. Person and Address with a relation one to one in database.
When I construct project with Netbeans, it created two separated create.xthml files. One for Address and one for Person. I'd like to mix them in a new single xhtml file.
My question is.. How can I save the data of two beans with only one commanbutton actionlistener?
I have that from two create.xhtml.
<p:commandButton actionListener="#{persona.create}" value="#{bundle.Save}" />
<p:commandButton actionListener="#{address.create}" value="#{bundle.Save}" />
and I need only one button.