CellRepeaterController.jpf Sample

This topic inludes the source code for the CellRepeaterController.jpf Sample.

Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui_databinding/cellRepeater/

Sample Source Code


01 package tagSamples.netui_databinding.cellRepeater;
02 import com.bea.wlw.netui.pageflow.Forward;
03 import com.bea.wlw.netui.pageflow.PageFlowController;
04 
05 /**
06  * @jpf:controller
07  * @jpf:view-properties view-properties::
08  <!-- This data is auto-generated. Hand-editing this section is not recommended. -->
09  <view-properties>
10  <pageflow-object id="pageflow:/tagSamples/netui_databinding/cellRepeater/CellRepeaterController.jpf"/>
11  <pageflow-object id="action:begin.do">
12  *   <property value="80" name="x"/>
13  *   <property value="100" name="y"/>
14  </pageflow-object>
15  <pageflow-object id="page:index.jsp">
16  *   <property value="240" name="x"/>
17  *   <property value="100" name="y"/>
18  </pageflow-object>
19  <pageflow-object id="forward:path#success#index.jsp#@action:begin.do@">
20  *   <property value="116,160,160,204" name="elbowsX"/>
21  *   <property value="92,92,92,92" name="elbowsY"/>
22  *   <property value="East_1" name="fromPort"/>
23  *   <property value="West_1" name="toPort"/>
24  *   <property value="success" name="label"/>
25  </pageflow-object>
26  </view-properties>
27  * ::
28  */
29 public class CellRepeaterController extends PageFlowController
30 {
31     String[] menuItems = {"apples""oranges""grapefruit""bananas""ham sandwich""grilled cheese"
32         "tomato soup""split pea soup""fish and chips""fries""cole slaw""lasagne""hamburger"};
33 
34     protected void onCreate()
35     {
36         getSession().setAttribute("menu", menuItems);
37     }
38 
39     /**
40      * This method represents the point of entry into the pageflow
41      * @jpf:action
42      * @jpf:forward name="success" path="index.jsp"
43      */
44     protected Forward begin()
45     {
46         return new Forward("success");
47     }
48 }