You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by mr...@apache.org on 2005/09/14 18:21:05 UTC
svn commit: r280879 [14/16] - in /struts/sandbox/trunk/ti: ./
jars/compiler-apt/ jars/compiler-apt/src/ jars/compiler-apt/src/java/
jars/compiler-apt/src/java/org/ jars/compiler-apt/src/java/org/apache/
jars/compiler-apt/src/java/org/apache/ti/ jars/co...
Added: struts/sandbox/trunk/ti/wars/samples-xdoclet/src/java/pageflow/loginexample/protectedflow/Controller.java
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/wars/samples-xdoclet/src/java/pageflow/loginexample/protectedflow/Controller.java?rev=280879&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/wars/samples-xdoclet/src/java/pageflow/loginexample/protectedflow/Controller.java (added)
+++ struts/sandbox/trunk/ti/wars/samples-xdoclet/src/java/pageflow/loginexample/protectedflow/Controller.java Wed Sep 14 09:20:05 2005
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2004-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License , Version 2.0 (the "License" );
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing , software
+ * distributed under the License is distributed on an "AS IS" BASIS ,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+package pageflow.loginexample.protectedflow ;
+
+
+import org.apache.ti.pageflow.PageFlowController ;
+
+/**
+ // loginRequired: in case someone hits this directly -- unused in the scenario
+ * @ti.controller nested="true" loginRequired="true"
+ * @ti.simpleAction name="done" returnAction="protectedFlowDone"
+ */
+public class Controller extends PageFlowController
+{
+}
Added: struts/sandbox/trunk/ti/wars/samples-xdoclet/src/java/pageflow/loginexample/start/Controller.java
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/wars/samples-xdoclet/src/java/pageflow/loginexample/start/Controller.java?rev=280879&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/wars/samples-xdoclet/src/java/pageflow/loginexample/start/Controller.java (added)
+++ struts/sandbox/trunk/ti/wars/samples-xdoclet/src/java/pageflow/loginexample/start/Controller.java Wed Sep 14 09:20:05 2005
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2004-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License , Version 2.0 (the "License" );
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing , software
+ * distributed under the License is distributed on an "AS IS" BASIS ,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+package pageflow.loginexample.start ;
+
+
+import org.apache.ti.samples.pageflow.loginexample.BaseFlow ;
+
+/**
+ * Note that this page flow inherits actions and a handleException from BaseFlow.
+ */
+/**
+ * @ti.controller
+ * @ti.simpleAction name="goProtectedFlow" path="/pageflow/loginexample/protectedflow/Controller.jpf" loginRequired="true"
+ * @ti.simpleAction name="protectedFlowDone" navigateTo="currentPage"
+ */
+public class Controller extends BaseFlow
+{
+}
Added: struts/sandbox/trunk/ti/wars/samples-xdoclet/src/java/pageflow/nesting/Controller.java
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/wars/samples-xdoclet/src/java/pageflow/nesting/Controller.java?rev=280879&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/wars/samples-xdoclet/src/java/pageflow/nesting/Controller.java (added)
+++ struts/sandbox/trunk/ti/wars/samples-xdoclet/src/java/pageflow/nesting/Controller.java Wed Sep 14 09:20:05 2005
@@ -0,0 +1,56 @@
+/*
+ Copyright 2005 The Apache Software Foundation
+
+ Licensed under the Apache License , Version 2.0 (the "License" );
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing , software
+ distributed under the License is distributed on an "AS IS" BASIS ,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+*/
+package pageflow.nesting ;
+
+import org.apache.ti.pageflow.PageFlowController ;
+import org.apache.ti.pageflow.Forward ;
+
+import pageflow.nesting.chooseAirport.ChooseAirport ;
+import com.opensymphony.xwork.Action ;
+
+/**
+ * Main page flow , which invokes a nested page flow and gets data back from it.
+ */
+/**
+ * @ti.controller
+
+ // This action runs the Choose Airport wizard. Since the ChooseAirport page flow is marked
+ // with nested=true, it will be able to return control to this page flow when it is done.
+ * @ti.simpleAction name="chooseAirport" path="/pageflow/nesting/chooseAirport/ChooseAirport.jpf"
+
+ // This action is raised by the ChooseAirport page flow The navigateTo attribute here
+ // causes flow to return to the current page in this page flow.
+ * @ti.simpleAction name="chooseAirportCancelled" navigateTo="currentPage"
+ */
+public class Controller extends PageFlowController
+{
+ // This property ("yourName" ) is used in the JSPs to show that this page flow's state is
+ // restored when you return from the nested flow.
+ private String _yourName ;
+ public String getYourName () { return _yourName ; }
+ public void setYourName (String yourName ) { _yourName = yourName ; }
+
+ /**
+ * @ti.action
+ */ protected Forward chooseAirportDone ( ChooseAirport.Results results )
+ {
+ Forward fwd = new Forward (Action.SUCCESS );
+ fwd.addActionOutput ("airport" , results.getAirport ());
+ return fwd ;
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org