-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAsyncExamples.xhtml
More file actions
39 lines (36 loc) · 1.4 KB
/
AsyncExamples.xhtml
File metadata and controls
39 lines (36 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:h="http://xmlns.jcp.org/jsf/html">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Asynchronous Session Bean Invocations</title>
</h:head>
<h:body>
<h:form>
<p>
One change to the EJB 3.2 specification is the addition of asynchronous
session bean invocations to EJB-Lite. Deploy the application using
the EJB-Lite profile and run this example
</p>
<h:commandButton action="#{jobsBean.printJobListing()}"
value="Print Jobs to Server Log Asynchronously"/>
<br/><br/>
<h:dataTable var="job" border="1" value="#{jobsBean.obtainJobListing()}">
<h:column>
<f:facet name="header">
Job Title
</f:facet>
<h:outputText value="#{job.title}"/>
</h:column>
<h:column>
<f:facet name="header">
Salary
</f:facet>
<h:outputText value="#{job.salary}"/>
</h:column>
</h:dataTable>
</h:form>
</h:body>
</html>