ItemsManufacturer.jsp Sample
This topic inludes the source code for the ItemsManufacturer.jsp Sample.
Sample Location
This sample is located in the following directory in your WebLogic Workshop installation:
BEA_HOME/weblogic81/samples/workshop/SamplesApp/EJBs_ClientApps/valueObject/
Sample Source Code
01 <%@ page language="java" contentType="text/html;charset=UTF-8"%>
02 <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
03 <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
04 <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
05 <netui:html>
06 <head>
07 <title>
08 Web Application Page
09 </title>
10 </head>
11 <body>
12 <p>The following items are currently known for <netui:content value="{pageFlow.mVO.manufacturername}" />:</p>
13 <netui-data:repeater dataSource="{pageFlow.mVO.items}">
14 <netui-data:repeaterHeader>
15 <p><table border="1" cellpadding="4">
16 <tr>
17 <td><b>List Number</b></td>
18 <td><b>Name</b></td>
19 <td><b>Price</b></td>
20 <td><b>Quantity Available</b></td>
21 </tr>
22 </netui-data:repeaterHeader>
23 <netui-data:repeaterItem>
24 <tr>
25 <td>
26 <netui:label value="{container.item.itemnumber}" />
27 </td>
28 <td>
29 <netui:label value="{container.item.itemname}" />
30 </td>
31 <td>
32 <netui:label value="{container.item.price}" />
33 </td>
34 <td>
35 <netui:label value="{container.item.quantityavailable}" />
36 </td>
37 </tr>
38 </netui-data:repeaterItem>
39 <netui-data:repeaterFooter>
40 </table>
41 </netui-data:repeaterFooter>
42 </netui-data:repeater>
43 <p>
44 <netui:anchor action="backToIndex">
45 To Index Page
46 </netui:anchor>
47 <p><font size="-1">This page is created on the basis of one
48 'ManufacturerValue' value object holding all manufacturer information. This value object is
49 returned by the AdminBean's getManufacturer method. The value object contains a collection
50 of ItemsValue value objects, storing information about the items created by the
51 manufacturer.</font></p>
52 </body>
53 </netui:html>
|