esta es la parte del texto y el boton
<pre> <p:remotecommand name="rc" update="f2:fp,f2">
<p:commandbutton actionlistener="#{page.guardarFormatoPresentacion}" id="idGuardarFormatoPresentacion" onsuccess="rc()" value="#{msg['diligenciaIdentificacion.btn_guardar_modelo']}">
<h:outputtext value=" ">
<h:outputtext value=" ">
<h:outputtext value=" ">
<p:outputlabel value="#{msg['nombre_prestacion']}">
<p:inputtext id="nombre1" value="#{page.formato.nombre}">
<f:validatelength maximum="20" minimum="1">
</f:validatelength></p:inputtext>
</p:outputlabel></h:outputtext></h:outputtext></h:outputtext></p:commandbutton></p:remotecommand>
</pre>
la funcion guardarFormatoPresentacion guarda en base de datos en el combo
<p:outputlabel for="fp" value="#{msg['formato_presencial']}">
<p:selectonemenu id="fp" rendered="true" style="width: 80%;" value="#{page.formato.nombre}">
<p:ajax listener="#{page.onTextCombo}" update="f2:nombre1,:f2">
<f:selectitem itemlabel="#{msg['generic.value_selec']}" itemvalue="">
<f:selectitems itemvalue="#{formatoPresntacion1.nombre}" value="#{page.lFormato}" var="formatoPresntacion1">
</f:selectitems></f:selectitem></p:ajax></p:selectonemenu>
</p:outputlabel>
la funcion onTextCombo , carga de base de datos el combo