Java Reference
In-Depth Information
Then, we need to add a form and a couple of simple input fields. Later, we will use
the Java API for WebSocket to populate these fields with default values.
After making the previously mentioned modifications, our markup now looks like this:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns=""
<head jsf:id="head">
<title>WebSocket and Java EE</title>
<body jsf:id="body">
<form method="POST" jsf:prependId="false">
<td>First Name</td>
<input type="text" jsf:id="firstName"
<td>Last Name</td>
<input type="text" jsf:id="lastName"
<input type="submit" value="Submit"
We just added some simple HTML to the markup and used JSF-specific attributes so
that the HTML tags are treated like their equivalent JSF-specific tags.
Search WWH ::

Custom Search