NavigationController.jpf Sample

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

Sample Location

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

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/navigation/

Sample Source Code


001 package navigation;
002 import com.bea.wlw.netui.pageflow.Forward;
003 import com.bea.wlw.netui.pageflow.PageFlowController;
004 
005 /**
006  * @jpf:controller
007  * @jpf:view-properties view-properties::
008  <!-- This data is auto-generated. Hand-editing this section is not recommended. -->
009  <view-properties>
010  <pageflow-object id="pageflow:/navigation/navigationController.jpf"/>
011  <pageflow-object id="action:begin.do">
012  *   <property value="100" name="x"/>
013  *   <property value="40" name="y"/>
014  </pageflow-object>
015  <pageflow-object id="action:toSimpleNavigation.do">
016  *   <property value="400" name="x"/>
017  *   <property value="40" name="y"/>
018  </pageflow-object>
019  <pageflow-object id="action:toSelectTagNavigation.do">
020  *   <property value="400" name="x"/>
021  *   <property value="180" name="y"/>
022  </pageflow-object>
023  <pageflow-object id="action:toNesting.do">
024  *   <property value="400" name="x"/>
025  *   <property value="260" name="y"/>
026  </pageflow-object>
027  <pageflow-object id="action:toControllerFileNavigation.do">
028  *   <property value="400" name="x"/>
029  *   <property value="100" name="y"/>
030  </pageflow-object>
031  <pageflow-object id="action:toPageFlowSamples.do">
032  *   <property value="400" name="x"/>
033  *   <property value="420" name="y"/>
034  </pageflow-object>
035  <pageflow-object id="action:toHandleException.do">
036  *   <property value="400" name="x"/>
037  *   <property value="340" name="y"/>
038  </pageflow-object>
039  <pageflow-object id="action-call:@page:index.jsp@#@action:toControllerFileNavigation.do@">
040  *   <property value="276,320,320,364" name="elbowsX"/>
041  *   <property value="32,32,92,92" name="elbowsY"/>
042  *   <property value="East_1" name="fromPort"/>
043  *   <property value="West_1" name="toPort"/>
044  </pageflow-object>
045  <pageflow-object id="action-call:@page:index.jsp@#@action:toPageFlowSamples.do@">
046  *   <property value="276,320,320,364" name="elbowsX"/>
047  *   <property value="32,32,412,412" name="elbowsY"/>
048  *   <property value="East_1" name="fromPort"/>
049  *   <property value="West_1" name="toPort"/>
050  </pageflow-object>
051  <pageflow-object id="action-call:@page:index.jsp@#@action:toSimpleNavigation.do@">
052  *   <property value="276,320,320,364" name="elbowsX"/>
053  *   <property value="32,32,32,32" name="elbowsY"/>
054  *   <property value="East_1" name="fromPort"/>
055  *   <property value="West_1" name="toPort"/>
056  </pageflow-object>
057  <pageflow-object id="action-call:@page:index.jsp@#@action:toSelectTagNavigation.do@">
058  *   <property value="276,320,320,364" name="elbowsX"/>
059  *   <property value="32,32,172,172" name="elbowsY"/>
060  *   <property value="East_1" name="fromPort"/>
061  *   <property value="West_1" name="toPort"/>
062  </pageflow-object>
063  <pageflow-object id="action-call:@page:index.jsp@#@action:toHandleException.do@">
064  *   <property value="276,320,320,364" name="elbowsX"/>
065  *   <property value="43,43,332,332" name="elbowsY"/>
066  *   <property value="East_2" name="fromPort"/>
067  *   <property value="West_1" name="toPort"/>
068  </pageflow-object>
069  <pageflow-object id="action-call:@page:index.jsp@#@action:toNesting.do@">
070  *   <property value="276,320,320,364" name="elbowsX"/>
071  *   <property value="32,32,252,252" name="elbowsY"/>
072  *   <property value="East_1" name="fromPort"/>
073  *   <property value="West_1" name="toPort"/>
074  </pageflow-object>
075  <pageflow-object id="page:index.jsp">
076  *   <property value="240" name="x"/>
077  *   <property value="40" name="y"/>
078  </pageflow-object>
079  <pageflow-object id="external-jpf:simpleNavigation/SimpleNavigationController.jpf">
080  *   <property value="540" name="x"/>
081  *   <property value="40" name="y"/>
082  </pageflow-object>
083  <pageflow-object id="external-jpf:selectTagNavigation/SelectTagNavigationController.jpf">
084  *   <property value="540" name="x"/>
085  *   <property value="180" name="y"/>
086  </pageflow-object>
087  <pageflow-object id="external-jpf:nesting/nestingPageFlow/NestingPageFlowController.jpf">
088  *   <property value="540" name="x"/>
089  *   <property value="260" name="y"/>
090  </pageflow-object>
091  <pageflow-object id="action-call:@external-jpf:controllerFileNavigation/controllerFileNavigationController.jpf@#@action:begin.do@">
092  *   <property value="504,320,320,136" name="elbowsX"/>
093  *   <property value="92,92,32,32" name="elbowsY"/>
094  *   <property value="West_1" name="fromPort"/>
095  *   <property value="East_1" name="toPort"/>
096  </pageflow-object>
097  <pageflow-object id="external-jpf:controllerFileNavigation/controllerFileNavigationController.jpf">
098  *   <property value="540" name="x"/>
099  *   <property value="100" name="y"/>
100  </pageflow-object>
101  <pageflow-object id="external-jpf:/Controller.jpf">
102  *   <property value="540" name="x"/>
103  *   <property value="420" name="y"/>
104  </pageflow-object>
105  <pageflow-object id="external-jpf:handleException/HandleExceptionController.jpf">
106  *   <property value="540" name="x"/>
107  *   <property value="340" name="y"/>
108  </pageflow-object>
109  <pageflow-object id="forward:path#success#index.jsp#@action:begin.do@">
110  *   <property value="136,170,170,204" name="elbowsX"/>
111  *   <property value="32,32,32,32" name="elbowsY"/>
112  *   <property value="East_1" name="fromPort"/>
113  *   <property value="West_1" name="toPort"/>
114  *   <property value="success" name="label"/>
115  </pageflow-object>
116  <pageflow-object id="forward:path#success#simpleNavigation/SimpleNavigationController.jpf#@action:toSimpleNavigation.do@">
117  *   <property value="436,470,470,504" name="elbowsX"/>
118  *   <property value="32,32,32,32" name="elbowsY"/>
119  *   <property value="East_1" name="fromPort"/>
120  *   <property value="West_1" name="toPort"/>
121  *   <property value="success" name="label"/>
122  </pageflow-object>
123  <pageflow-object id="forward:path#success#selectTagNavigation/SelectTagNavigationController.jpf#@action:toSelectTagNavigation.do@">
124  *   <property value="436,470,470,504" name="elbowsX"/>
125  *   <property value="172,172,172,172" name="elbowsY"/>
126  *   <property value="East_1" name="fromPort"/>
127  *   <property value="West_1" name="toPort"/>
128  *   <property value="success" name="label"/>
129  </pageflow-object>
130  <pageflow-object id="forward:path#success#nesting/nestingPageFlow/NestingPageFlowController.jpf#@action:toNesting.do@">
131  *   <property value="436,470,470,504" name="elbowsX"/>
132  *   <property value="252,252,252,252" name="elbowsY"/>
133  *   <property value="East_1" name="fromPort"/>
134  *   <property value="West_1" name="toPort"/>
135  *   <property value="success" name="label"/>
136  </pageflow-object>
137  <pageflow-object id="forward:path#success#controllerFileNavigation/controllerFileNavigationController.jpf#@action:toControllerFileNavigation.do@">
138  *   <property value="436,470,470,504" name="elbowsX"/>
139  *   <property value="92,92,92,92" name="elbowsY"/>
140  *   <property value="East_1" name="fromPort"/>
141  *   <property value="West_1" name="toPort"/>
142  *   <property value="success" name="label"/>
143  </pageflow-object>
144  <pageflow-object id="forward:path#success#/Controller.jpf#@action:toPageFlowSamples.do@">
145  *   <property value="436,470,470,504" name="elbowsX"/>
146  *   <property value="412,412,412,412" name="elbowsY"/>
147  *   <property value="East_1" name="fromPort"/>
148  *   <property value="West_1" name="toPort"/>
149  *   <property value="success" name="label"/>
150  </pageflow-object>
151  <pageflow-object id="forward:path#success#handleException/HandleExceptionController.jpf#@action:toHandleException.do@">
152  *   <property value="436,470,470,504" name="elbowsX"/>
153  *   <property value="332,332,332,332" name="elbowsY"/>
154  *   <property value="East_1" name="fromPort"/>
155  *   <property value="West_1" name="toPort"/>
156  *   <property value="success" name="label"/>
157  </pageflow-object>
158  </view-properties>
159  * ::
160  */
161 public class navigationController extends PageFlowController
162 {
163 
164 
165     /**
166      * @jpf:action
167      * @jpf:forward name="success" path="index.jsp"
168      */
169     protected Forward begin()
170     {
171         return new Forward("success");
172     }
173 
174     /**
175      * @jpf:action
176      * @jpf:forward path="simpleNavigation/SimpleNavigationController.jpf" name="success"
177      */
178     protected Forward toSimpleNavigation()
179     {
180         return new Forward("success");
181     }
182 
183     /**
184      * @jpf:action
185      * @jpf:forward path="selectTagNavigation/SelectTagNavigationController.jpf" name="success"
186      */
187     protected Forward toSelectTagNavigation()
188     {
189         return new Forward("success");
190     }
191 
192     /**
193      * @jpf:action
194      * @jpf:forward path="nesting/nestingPageFlow/NestingPageFlowController.jpf" name="success"
195      */
196     protected Forward toNesting()
197     {
198         return new Forward("success");
199     }
200 
201     /**
202      * @jpf:action
203      * @jpf:forward path="controllerFileNavigation/controllerFileNavigationController.jpf" name="success"
204      */
205     protected Forward toControllerFileNavigation()
206     {
207         return new Forward("success");
208     }
209 
210     /**
211      * @jpf:action
212      * @jpf:forward path="/Controller.jpf" name="success"
213      */
214     protected Forward toPageFlowSamples()
215     {
216         return new Forward("success");
217     }
218 
219     /**
220      * @jpf:action
221      * @jpf:forward path="handleException/HandleExceptionController.jpf" name="success"
222      */
223     protected Forward toHandleException()
224     {
225         return new Forward("success");
226     }
227 }