0
phonerecord table
-----------------
phonecallID
...
[whocompany] -> clients.clientID
[staffanswered] -> staff.staffID
clients table
-------------
clientID
clientname
staff table
-----------
staffID
staffname
create new recordNetbeans état CRUD application web combobox pas enregistré
Comme vous pouvez le voir dans les images après avoir ajouté un nouveau record puis passez à l'affichage par page, deux zones de liste déroulante ne sont pas sélectionnés. Leur état après l'enregistrement du nouvel enregistrement n'est pas reporté sur la page View.
<h:column>
<f:facet name="header">
<h:outputText value="#{bundle.ListPhonerecordTitle_whocompany}"/>
</f:facet>
<h:selectOneMenu id="whocompany" value="#{phonerecordController.selected.whocompany}" title="#{bundle.EditPhonerecordTitle_whocompany}" >
<f:selectItems value="#{clientsController.itemsAvailableSelectOne}"/>
</h:selectOneMenu>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{bundle.ListPhonerecordTitle_staffanswered}"/>
</f:facet>
<h:selectOneMenu id="staffanswered" value="#{phonerecordController.selected.staffanswered}" title="#{bundle.EditPhonerecordTitle_staffanswered}" >
<f:selectItems value="#{staffController.itemsAvailableSelectOne}"/>
</h:selectOneMenu>
</h:column>
Je pense que j'ai besoin de modifier les classes de contrôleurs.