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"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
<title>section</title>
Search WWH ::
Custom Search