jsf - How to submit form with Java Object -


i have entity use generate object agents:

private integer autodialer; private string description; private string email; private string ipaddress; private integer isactive; private boolean isadmin; private boolean isremove; private boolean issenior; private boolean issuper; private timestamp lastlogged; private timestamp lastready; private string password; private string phone; private string placeloc; private string placename; private string regserverlist; private string signature; private integer status; private string uilang; private boolean usectt; private boolean usevcc; private string username; private long vaccountid; private long accountid; 

i have form must take huge object add skill agent , insert data table:

<h:form id="formdlgid">                          <div class="dlg-row">                             <div></h:outputtext></div>                             <div>                                 <h:selectonemenu id="skillid" styleclass="selectlong2" title="skill" value="#{agentstocampaign.agentskilllevel}">                                     <f:selectitem itemvalue="level"></f:selectitem>                                     <f:selectitem itemvalue="1"></f:selectitem>                                     <f:selectitem itemvalue="2"></f:selectitem>                                     <f:selectitem itemvalue="3"></f:selectitem>                                     <f:selectitem itemvalue="4"></f:selectitem>                                     <f:selectitem itemvalue="5"></f:selectitem>                                     <f:selectitem itemvalue="6"></f:selectitem>                                 </h:selectonemenu> <p:tooltip for="skillid" />                             </div>                         </div>                          <div>                             <div></h:outputtext></div>                             <div>                                 <h:selectonemenu id="selectagentid" title="select agent" value="#{agentstocampaign.agentid}">                                     <f:selectitem itemvalue="select - agent"></f:selectitem>                                     <!--  vzimame spisak s agenti ot agentsbean -->                                     <f:selectitems value="#{agentsbean.data}" var="item"                                          itemvalue="#{item.accountid}" itemlabel="#{item.username}"></f:selectitems>                                 </h:selectonemenu> <p:tooltip for="selectagentid" />                             </div>                         </div>                          <div class="dlg-row">                             <div class="dlg-firstcolumn">&nbsp;</div>                             <div class="dlg-secondcolumn">                                 <p:commandbutton button-reset" value="reset"                                                  update=":dlgid" oncomplete="dlg.show()" process="@this">                                     <p:resetinput target=":dlgid"></p:resetinput>                                 </p:commandbutton>                                 <p:commandbutton value="save"                                                  update=":formdlgid :formtblid" oncomplete="handledialogsubmit(xhr, status, args)"                                                  onclick="removebuttonmove()" action="#{agentstocampaign.save()}">                                 </p:commandbutton>                             </div>                         </div>                     </h:form> 

can example pass object agentsbean.data setter/getter second managed bean when form submitted?


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -