You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ri...@apache.org on 2005/05/26 22:43:42 UTC

svn commit: r178679 - in /incubator/beehive/branches/v1/m1/samples/netui-samples: ./ WEB-INF/ templateactions/shared/ tiles/ tiles/flow1/ tiles/flow2/ tiles/layout/ tiles/shared/

Author: rich
Date: Thu May 26 13:43:41 2005
New Revision: 178679

URL: http://svn.apache.org/viewcvs?rev=178679&view=rev
Log:
This is a contribution from Carlin Rogers: a Tiles/Page Flow sample (http://issues.apache.org/jira/browse/BEEHIVE-766)

tests: build.dist (WinXP)
BB, run.tests (linux)


Added:
    incubator/beehive/branches/v1/m1/samples/netui-samples/WEB-INF/tiles-defs.xml   (with props)
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/MainFlow.java   (with props)
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow1/
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow1/Flow1.java   (with props)
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow1/index.jsp   (with props)
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow2/
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow2/Flow2.java   (with props)
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow2/index.jsp   (with props)
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/body.jsp   (with props)
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/footer.jsp   (with props)
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/header.jsp   (with props)
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/page.jsp   (with props)
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/menu.jsp   (with props)
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/page1.jsp   (with props)
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/page2.jsp   (with props)
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/shared/
    incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/shared/SharedFlow.java   (with props)
Modified:
    incubator/beehive/branches/v1/m1/samples/netui-samples/index.jsp
    incubator/beehive/branches/v1/m1/samples/netui-samples/templateactions/shared/template.jsp

Added: incubator/beehive/branches/v1/m1/samples/netui-samples/WEB-INF/tiles-defs.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/branches/v1/m1/samples/netui-samples/WEB-INF/tiles-defs.xml?rev=178679&view=auto
==============================================================================
--- incubator/beehive/branches/v1/m1/samples/netui-samples/WEB-INF/tiles-defs.xml (added)
+++ incubator/beehive/branches/v1/m1/samples/netui-samples/WEB-INF/tiles-defs.xml Thu May 26 13:43:41 2005
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<!DOCTYPE tiles-definitions PUBLIC
+    "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
+    "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
+
+<!-- Tiles definition file for NetUI sample.  -->
+
+<tiles-definitions>
+
+    <definition name="defaultLayout" path="/tiles/layout/page.jsp">
+        <put name="sampleTitle"  value="Tiles" />
+        <put name="header"       value="/tiles/layout/header.jsp"/>
+        <put name="menu"         value="/tiles/menu.jsp"/>
+        <put name="body"         value="/tiles/layout/body.jsp"/>
+        <put name="footer"       value="/tiles/layout/footer.jsp"/>
+    </definition>
+
+    <definition name="page1" extends="defaultLayout">
+        <put name="sampleTitle"  value="Tiles - Page 1" />
+        <put name="body"         value="/tiles/page1.jsp" />
+    </definition>
+
+    <definition name="page2" extends="defaultLayout">
+        <put name="sampleTitle"  value="Tiles - Page 2" />
+        <put name="body"         value="/tiles/page2.jsp" />
+    </definition>
+
+    <definition name="flow1" extends="defaultLayout">
+        <put name="sampleTitle"  value="Tiles - Flow 1" />
+        <put name="body"         value="/tiles/flow1/index.jsp" />
+    </definition>
+
+    <definition name="flow2" extends="defaultLayout">
+        <put name="sampleTitle"  value="Tiles - Flow 2" />
+        <put name="body"         value="/tiles/flow2/index.jsp" />
+    </definition>
+
+</tiles-definitions>

Propchange: incubator/beehive/branches/v1/m1/samples/netui-samples/WEB-INF/tiles-defs.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/beehive/branches/v1/m1/samples/netui-samples/index.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/branches/v1/m1/samples/netui-samples/index.jsp?rev=178679&r1=178678&r2=178679&view=diff
==============================================================================
--- incubator/beehive/branches/v1/m1/samples/netui-samples/index.jsp (original)
+++ incubator/beehive/branches/v1/m1/samples/netui-samples/index.jsp Thu May 26 13:43:41 2005
@@ -64,6 +64,10 @@
               template that contains a menu bar).</dd>
       </dl>
       <dl>
+          <dt><netui:anchor href="tiles/MainFlow.jpf" value="Tiles"/></dt>
+          <dd>Demonstrates the use of tiles with page flows.</dd>
+      </dl>
+      <dl>
           <dt><netui:anchor href="validation/Controller.jpf" value="Validation"/></dt>
           <dd>This sample demonstrates Page Flow declarative field validation.</dd>
       </dl>

Modified: incubator/beehive/branches/v1/m1/samples/netui-samples/templateactions/shared/template.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/branches/v1/m1/samples/netui-samples/templateactions/shared/template.jsp?rev=178679&r1=178678&r2=178679&view=diff
==============================================================================
--- incubator/beehive/branches/v1/m1/samples/netui-samples/templateactions/shared/template.jsp (original)
+++ incubator/beehive/branches/v1/m1/samples/netui-samples/templateactions/shared/template.jsp Thu May 26 13:43:41 2005
@@ -97,6 +97,7 @@
                                             So, the pages refer to /templateactions/shared/template.jsp for the UI, and the page flows
                                             refer to ${sharedFlow.templateSharedFlow.class.name} for the actions.
                                         </td>
+                                    </tr>
                                 </table>
                             </td>
                         </tr>

Added: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/MainFlow.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/MainFlow.java?rev=178679&view=auto
==============================================================================
--- incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/MainFlow.java (added)
+++ incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/MainFlow.java Thu May 26 13:43:41 2005
@@ -0,0 +1,39 @@
+/*
+ * 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 tiles;
+
+import java.io.Serializable;
+
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+@Jpf.Controller(
+    tilesDefinitionsConfigs = {
+        "/WEB-INF/tiles-defs.xml"
+    },
+    simpleActions={
+        @Jpf.SimpleAction(name="begin", tilesDefinition="page1"),
+        @Jpf.SimpleAction(name="goPage2", tilesDefinition="page2")
+    },
+    sharedFlowRefs={
+        @Jpf.SharedFlowRef(name="tilesSharedFlow", type=tiles.shared.SharedFlow.class)
+    }
+)
+public class MainFlow extends PageFlowController
+{
+}

Propchange: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/MainFlow.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow1/Flow1.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow1/Flow1.java?rev=178679&view=auto
==============================================================================
--- incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow1/Flow1.java (added)
+++ incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow1/Flow1.java Thu May 26 13:43:41 2005
@@ -0,0 +1,38 @@
+/*
+ * 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 tiles.flow1;
+
+import java.io.Serializable;
+
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+@Jpf.Controller(
+    tilesDefinitionsConfigs={
+        "/WEB-INF/tiles-defs.xml"
+    },
+    simpleActions={
+        @Jpf.SimpleAction(name="begin", tilesDefinition="flow1")
+    },
+    sharedFlowRefs={
+        @Jpf.SharedFlowRef(name="tilesSharedFlow", type=tiles.shared.SharedFlow.class)
+    }
+)
+public class Flow1 extends PageFlowController
+{
+}

Propchange: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow1/Flow1.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow1/index.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow1/index.jsp?rev=178679&view=auto
==============================================================================
--- incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow1/index.jsp (added)
+++ incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow1/index.jsp Thu May 26 13:43:41 2005
@@ -0,0 +1,26 @@
+<%--
+   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:$
+--%>
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+
+    <div id="main">
+        <blockquote>
+            This is the content for <b>${pageFlow.URI}</b>.
+            <br/>
+        </blockquote>
+    </div>

Propchange: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow1/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow2/Flow2.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow2/Flow2.java?rev=178679&view=auto
==============================================================================
--- incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow2/Flow2.java (added)
+++ incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow2/Flow2.java Thu May 26 13:43:41 2005
@@ -0,0 +1,38 @@
+/*
+ * 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 tiles.flow2;
+
+import java.io.Serializable;
+
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+@Jpf.Controller(
+    tilesDefinitionsConfigs={
+        "/WEB-INF/tiles-defs.xml"
+    },
+    simpleActions={
+        @Jpf.SimpleAction(name="begin", tilesDefinition="flow2")
+    },
+    sharedFlowRefs={
+        @Jpf.SharedFlowRef(name="tilesSharedFlow", type=tiles.shared.SharedFlow.class)
+    }
+)
+public class Flow2 extends PageFlowController
+{
+}

Propchange: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow2/Flow2.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow2/index.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow2/index.jsp?rev=178679&view=auto
==============================================================================
--- incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow2/index.jsp (added)
+++ incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow2/index.jsp Thu May 26 13:43:41 2005
@@ -0,0 +1,26 @@
+<%--
+   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:$
+--%>
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+
+    <div id="main">
+        <blockquote>
+            This is the content for <b>${pageFlow.URI}</b>
+            <br/>
+        </blockquote>
+    </div>

Propchange: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/flow2/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/body.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/body.jsp?rev=178679&view=auto
==============================================================================
--- incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/body.jsp (added)
+++ incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/body.jsp Thu May 26 13:43:41 2005
@@ -0,0 +1,22 @@
+<%--
+   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:$
+--%>
+
+<h1>Tiles Sample Page</h1>
+
+<p>Sample</p>
+

Propchange: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/body.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/footer.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/footer.jsp?rev=178679&view=auto
==============================================================================
--- incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/footer.jsp (added)
+++ incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/footer.jsp Thu May 26 13:43:41 2005
@@ -0,0 +1,27 @@
+<%--
+   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:$
+--%>
+<%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
+
+    <div id="footer">
+        <table style="background-color:#FFE87C;width:100%;">
+          <tr>
+            <td>&nbsp;</td>
+            <td style="text-align:right;"><a href="${pageContext.request.contextPath}">Samples Home</a></td>
+          </tr>
+        </table>
+    </div>

Propchange: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/footer.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/header.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/header.jsp?rev=178679&view=auto
==============================================================================
--- incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/header.jsp (added)
+++ incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/header.jsp Thu May 26 13:43:41 2005
@@ -0,0 +1,31 @@
+<%--
+   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:$
+--%>
+<%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
+
+    <div id="header">
+        <table style="background-color:#FFE87C;width:100%;">
+          <tr>
+            <td style="font-size:x-large;">
+              NetUI Feature Samples: Tiles
+            </td>
+            <td style="text-align:right;">
+              <a href="${pageContext.request.contextPath}" target="_top">Samples Home</a>
+            </td>
+          </tr>
+        </table><br/>
+    </div>

Propchange: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/header.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/page.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/page.jsp?rev=178679&view=auto
==============================================================================
--- incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/page.jsp (added)
+++ incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/page.jsp Thu May 26 13:43:41 2005
@@ -0,0 +1,39 @@
+<%--
+   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:$
+--%>
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
+<%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
+<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles"%>
+
+<netui-data:declareBundle bundlePath="org.apache.beehive.samples.netui.resources.site" name="site"/>
+
+<netui:html>
+    <head>
+        <title>
+          ${bundle.site.browserTitle} -- <tiles:getAsString name="sampleTitle"/>
+        </title>
+    </head>
+    <netui:body>
+        <div>
+            <tiles:insert attribute="header"/>
+            <tiles:insert attribute="menu"/>
+            <tiles:insert attribute="body"/>
+            <tiles:insert attribute="footer"/>
+        </div>
+    </netui:body>
+</netui:html>

Propchange: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/layout/page.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/menu.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/menu.jsp?rev=178679&view=auto
==============================================================================
--- incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/menu.jsp (added)
+++ incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/menu.jsp Thu May 26 13:43:41 2005
@@ -0,0 +1,45 @@
+<%--
+   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:$
+--%>
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+
+
+<%-- This menu bar refers to actions in tiles.shared.SharedFlow. --%>
+    <div id="menubar">
+        <table style="background-color:#00DDEE;width:100%;">
+            <tr>
+                <td/>
+                <td style="font-size:large; text-align:center">Menu Bar</td>
+                <td/>
+            </tr>
+            <tr>
+                <td style="text-align:center">
+                    <netui:anchor action="tilesSharedFlow.goMain">Go to Main Flow</netui:anchor></td>
+                </td>
+                <td style="text-align:center">
+                    <netui:anchor action="tilesSharedFlow.goFlow1">Go to Flow 1</netui:anchor>
+                </td>
+                <td style="text-align:center">
+                    <netui:anchor action="tilesSharedFlow.goFlow2">Go to Flow 2</netui:anchor>
+                </td>
+            </tr>
+        </table>
+        <br/>
+
+    </div>

Propchange: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/menu.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/page1.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/page1.jsp?rev=178679&view=auto
==============================================================================
--- incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/page1.jsp (added)
+++ incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/page1.jsp Thu May 26 13:43:41 2005
@@ -0,0 +1,29 @@
+<%--
+   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:$
+--%>
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+
+    <div id="main">
+        <blockquote>
+            This is page 1 of <b>${pageFlow.URI}</b>.
+            <br/>
+            <br/>
+            <netui:anchor action="goPage2">go to page 2</netui:anchor>
+            <br/>
+        </blockquote>
+    </div>

Propchange: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/page1.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/page2.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/page2.jsp?rev=178679&view=auto
==============================================================================
--- incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/page2.jsp (added)
+++ incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/page2.jsp Thu May 26 13:43:41 2005
@@ -0,0 +1,29 @@
+<%--
+   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:$
+--%>
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+
+    <div id="main">
+        <blockquote>
+            This is page 2 of <b>${pageFlow.URI}</b>.
+            <br/>
+            <br/>
+            <netui:anchor action="begin">go to page l</netui:anchor>
+            <br/>
+        </blockquote>
+    </div>

Propchange: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/page2.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/shared/SharedFlow.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/shared/SharedFlow.java?rev=178679&view=auto
==============================================================================
--- incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/shared/SharedFlow.java (added)
+++ incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/shared/SharedFlow.java Thu May 26 13:43:41 2005
@@ -0,0 +1,35 @@
+/*
+ * 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 tiles.shared;
+
+import java.io.Serializable;
+
+import org.apache.beehive.netui.pageflow.SharedFlowController;
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+@Jpf.Controller(
+    simpleActions={
+        @Jpf.SimpleAction(name="goMain", path="/tiles/MainFlow.jpf"),
+        @Jpf.SimpleAction(name="goFlow1", path="/tiles/flow1/Flow1.jpf"),
+        @Jpf.SimpleAction(name="goFlow2", path="/tiles/flow2/Flow2.jpf")
+    }
+)
+public class SharedFlow extends SharedFlowController
+{
+}

Propchange: incubator/beehive/branches/v1/m1/samples/netui-samples/tiles/shared/SharedFlow.java
------------------------------------------------------------------------------
    svn:eol-style = native