Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I resolve this issue using Calendar and ComboBox with PrimeFaces?
    text
    copied!<p>I use a PrimeFaces form with InputTexts, ComboBoxes and Calendars, but I have a problem when I select a date in Calender or a value from the ComboBox.</p> <p><a href="https://docs.google.com/file/d/0BxYa1FwIsMrdYUVoak55ajVCb3M/edit" rel="nofollow">Screen Capture</a>.</p> <p>Form code:</p> <pre><code>&lt;h:form id="edit"&gt; &lt;p:dialog header="Ajout de Personne" widgetVar="personneAjout" resizable="false" id="editP" modal="true" style="height: 1000px !important ; width:1000px !important"&gt; &lt;p:growl id="growl" showDetail="true" sticky="false" life="10000" /&gt; &lt;h:panelGrid id="display" columns="2" cellpadding="4" style="margin:0 auto ; height: 400px !important; width:250px !important"&gt; &lt;f:facet name="header"&gt; &lt;h:outputLabel for="hed1" value="Formulaire d'ajout de personnel " id="hed1" /&gt; &lt;/f:facet&gt; &lt;p:outputLabel for="personnelMat" title="Nom" value="Matricule :" style=" color: crimson;" /&gt; &lt;h:inputText value="#{personnelBean.personnel.matricule}" id="personnelMat" required="true" requiredMessage="Vous devez remplir le champs Matricule." style=" margin: 0; padding: 5px;" /&gt; &lt;p:outputLabel for="nom" title="Nom" value="Nom:" style="color: crimson;" /&gt; &lt;h:inputText value="#{personnelBean.personnel.nom}" id="nom" required="true" requiredMessage="Vous devez remplir le champs Nom."/&gt; &lt;p:outputLabel for="prenom" value="Prenom:" style="color: crimson;" /&gt; &lt;h:inputText value="#{personnelBean.personnel.prenom}" id="prenom" required="true" requiredMessage="Vous devez remplir le champs Prenom."/&gt; &lt;p:outputLabel for="personneDateEmbauche" title="Nom" value="Date d'embauche" style="color: crimson;" /&gt; &lt;h:outputLabel for="diplome" title="Nom" value="Diplome" style="color: crimson;" /&gt; &lt;p:calendar value="#{personnelBean.personnel.dateEmbauche}" id="personneDateEmbauche" required="true" /&gt; &lt;h:inputText value="#{personnelBean.personnel.diplome}" id="diplome" required="true" style=" width : 208px; height : 26px; color: crimson;" /&gt; &lt;h:outputText value="Grade : " style="color: crimson;" /&gt; &lt;p:selectOneMenu value="#{personnelBean.personnel.grade}" style="width: 134px ! important;"&gt; &lt;f:selectItem itemLabel="Technicien" itemValue="Technicien" /&gt; &lt;f:selectItem itemLabel="Cadre" itemValue="Cadre" /&gt; &lt;f:selectItem itemLabel="Administratif" itemValue="Administratif" /&gt; &lt;/p:selectOneMenu&gt; &lt;p:outputLabel for="personnelserv" title="Nom" value="Service :" style="color: crimson;" /&gt; &lt;h:inputText value="${personnelBean.service}" id="personnelserv" /&gt; &lt;p:outputLabel for="personnelpost" title="Nom" value="Poste :" style="color: crimson;" /&gt; &lt;h:inputText value="${personnelBean.poste}" id="personnelpost" /&gt; &lt;/h:panelGrid&gt; &lt;p:separator /&gt; &lt;p:commandButton value="Enregistrer" update=":a:AjoutTab, growl" actionListener="#{personnelBean.ajoutp(actionEvent) }" oncomplete="personneAjout.hide()" /&gt; &lt;/p:dialog&gt; &lt;/h:form&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload