Java Reference
In-Depth Information
Adding JSF components to the section
JSF page
Similar to the article.jsp JSF page, construct the section.jsp JSF page, which
has a binding with the managed bean backing_section . The section.jsp JSF has
two Input Text fields for Id and Section Name labels and a Menu for the Edition
Id label. When a Section entity is to be created and persisted, the Edition id of the
associated Edition entity is also required to be specified, because Edition entity has
a one-to-many relationship with the Section entity. Create a binding to a managed
bean method commandButton1_action for the Submit button:
The section.jsp is listed as follows:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="" prefix="f"%>
<%@ taglib uri="" prefix="h"%>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
Search WWH ::

Custom Search