Answer the question
In order to leave comments, you need to log in
How to populate a table consisting of several (hibernate,spring,jsf)?
Good day. To business. There are several tables, they all collect one big one (image1).
How to fill each of them, in principle, I understand. Those. how to set a phone number, a person, etc. things. But how, using the tools indicated in the tags (I duplicate: JSF, Spring, Hibernate), tie it all together and get the coveted entry in the Big Table (Note).
Now I am clarifying: it is required to create a single form that would allow one-page (in one form, edge: page) to transfer all the entered values to the corresponding fields of the database and create a new record in the Note table (see imeg). Voot. To make it look like this in JSF:
<f:view>
<h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
<h1>Edit Telephone</h1>
<h:form>
<h:panelGrid columns="2">
<h:outputText value="Параметр1:"/>
<h:inputText value="value" title="p1" />
<h:outputText value="Параметр2:"/>
<h:inputText value="value" title="p2" />
<h:outputText value="Параметр3:"/>
<h:inputText value="value" title="p3" />
<h:outputText value="Параметр4:"/>
<h:inputText value="value" title="p4" />
</h:panelGrid>
<h:commandButton action="add.Note" value="Save"/>
<br/>
</h:form>
</f:view>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question