Author: craigmcc
Date: Tue Feb 8 20:29:29 2005
New Revision: 152996
URL: http://svn.apache.org/viewcvs?view=rev&rev=152996
Log:
Checkpoint checkin of a use case example for subview processing,
with "expected" and "actual" event lists that may be used to verify
correct behavior. There are currently some holes, which were
described in the preceeding checkin on core-library.
Added:
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Alpha.java
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Beta.java
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Delta.java
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/First.java
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Gamma.java
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Second.java
struts/shale/trunk/use-cases/src/web/subview/
struts/shale/trunk/use-cases/src/web/subview/alpha.jsp
struts/shale/trunk/use-cases/src/web/subview/beta.jsp
struts/shale/trunk/use-cases/src/web/subview/delta.jsp
struts/shale/trunk/use-cases/src/web/subview/first.jsp
struts/shale/trunk/use-cases/src/web/subview/gamma.jsp
struts/shale/trunk/use-cases/src/web/subview/second.jsp
Modified:
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/view/Bundle.properties
struts/shale/trunk/use-cases/src/web/WEB-INF/faces-config.xml
struts/shale/trunk/use-cases/src/web/usecases.jsp
Added:
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Alpha.java
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Alpha.java?view=auto&rev=152996
==============================================================================
---
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Alpha.java
(added)
+++
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Alpha.java
Tue Feb 8 20:29:29 2005
@@ -0,0 +1,91 @@
+/*
+ * 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.
+ */
+
+package org.apache.shale.usecases.subview;
+
+import java.util.Map;
+import javax.faces.context.FacesContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.shale.usecases.view.BaseViewController;
+
+/**
+ * <p>First included page for subview processing use case.</p>
+ *
+ * $Id$
+ */
+public class Alpha extends BaseViewController {
+
+
+ // -------------------------------------------------------- Static
Variables
+
+
+ /**
+ * <p>The <code>Log</code> instance for this class.</p>
+ */
+ private static final Log log = LogFactory.getLog(Alpha.class);
+
+
+ // -------------------------------------------------- ViewController
Methods
+
+
+ public void destroy() {
+
+ record("destroy(alpha)");
+
+ }
+
+
+ public void init() {
+
+ record("init(alpha)");
+
+ }
+
+
+ public void preprocess() {
+
+ record("preprocess(alpha)");
+
+ }
+
+
+ public void prerender() {
+
+ record("prerender(alpha)");
+
+ }
+
+
+ // --------------------------------------------------------- Private
Methods
+
+
+ private void record(String text) {
+
+ if (log.isDebugEnabled()) {
+ log.debug(text);
+ }
+ Map map =
FacesContext.getCurrentInstance().getExternalContext().getRequestMap();
+ String actual = (String) map.get("actual");
+ if (actual == null) {
+ actual = "";
+ }
+ map.put("actual", actual + text + "/");
+
+ }
+
+
+}
Added:
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Beta.java
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Beta.java?view=auto&rev=152996
==============================================================================
---
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Beta.java
(added)
+++
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Beta.java
Tue Feb 8 20:29:29 2005
@@ -0,0 +1,91 @@
+/*
+ * 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.
+ */
+
+package org.apache.shale.usecases.subview;
+
+import java.util.Map;
+import javax.faces.context.FacesContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.shale.usecases.view.BaseViewController;
+
+/**
+ * <p>Second included page for subview processing use case.</p>
+ *
+ * $Id$
+ */
+public class Beta extends BaseViewController {
+
+
+ // -------------------------------------------------------- Static
Variables
+
+
+ /**
+ * <p>The <code>Log</code> instance for this class.</p>
+ */
+ private static final Log log = LogFactory.getLog(Beta.class);
+
+
+ // -------------------------------------------------- ViewController
Methods
+
+
+ public void destroy() {
+
+ record("destroy(beta)");
+
+ }
+
+
+ public void init() {
+
+ record("init(beta)");
+
+ }
+
+
+ public void preprocess() {
+
+ record("preprocess(beta)");
+
+ }
+
+
+ public void prerender() {
+
+ record("prerender(beta)");
+
+ }
+
+
+ // --------------------------------------------------------- Private
Methods
+
+
+ private void record(String text) {
+
+ if (log.isDebugEnabled()) {
+ log.debug(text);
+ }
+ Map map =
FacesContext.getCurrentInstance().getExternalContext().getRequestMap();
+ String actual = (String) map.get("actual");
+ if (actual == null) {
+ actual = "";
+ }
+ map.put("actual", actual + text + "/");
+
+ }
+
+
+}
Added:
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Delta.java
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Delta.java?view=auto&rev=152996
==============================================================================
---
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Delta.java
(added)
+++
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Delta.java
Tue Feb 8 20:29:29 2005
@@ -0,0 +1,91 @@
+/*
+ * 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.
+ */
+
+package org.apache.shale.usecases.subview;
+
+import java.util.Map;
+import javax.faces.context.FacesContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.shale.usecases.view.BaseViewController;
+
+/**
+ * <p>Fourth included page for subview processing use case.</p>
+ *
+ * $Id$
+ */
+public class Delta extends BaseViewController {
+
+
+ // -------------------------------------------------------- Static
Variables
+
+
+ /**
+ * <p>The <code>Log</code> instance for this class.</p>
+ */
+ private static final Log log = LogFactory.getLog(Delta.class);
+
+
+ // -------------------------------------------------- ViewController
Methods
+
+
+ public void destroy() {
+
+ record("destroy(delta)");
+
+ }
+
+
+ public void init() {
+
+ record("init(delta)");
+
+ }
+
+
+ public void preprocess() {
+
+ record("preprocess(delta)");
+
+ }
+
+
+ public void prerender() {
+
+ record("prerender(delta)");
+
+ }
+
+
+ // --------------------------------------------------------- Private
Methods
+
+
+ private void record(String text) {
+
+ if (log.isDebugEnabled()) {
+ log.debug(text);
+ }
+ Map map =
FacesContext.getCurrentInstance().getExternalContext().getRequestMap();
+ String actual = (String) map.get("actual");
+ if (actual == null) {
+ actual = "";
+ }
+ map.put("actual", actual + text + "/");
+
+ }
+
+
+}
Added:
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/First.java
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/First.java?view=auto&rev=152996
==============================================================================
---
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/First.java
(added)
+++
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/First.java
Tue Feb 8 20:29:29 2005
@@ -0,0 +1,93 @@
+/*
+ * 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.
+ */
+
+package org.apache.shale.usecases.subview;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.shale.usecases.view.BaseViewController;
+
+/**
+ * <p>First page for subview processing use case.</p>
+ *
+ * $Id$
+ */
+public class First extends BaseViewController {
+
+
+ // -------------------------------------------------------- Static
Variables
+
+
+ /**
+ * <p>The <code>Log</code> instance for this class.</p>
+ */
+ private static final Log log = LogFactory.getLog(First.class);
+
+
+ // --------------------------------------------------------------
Properties
+
+
+ /**
+ * <p>Return the expected trace string for the first page, which is
+ * only rendered.</p>
+ */
+ public String getExpected() {
+
+ return "init(alpha)/prerender(alpha)/init(beta)/prerender(beta)/";
+
+ }
+
+
+ // -------------------------------------------------- ViewController
Methods
+
+
+ public void destroy() {
+
+ if (log.isDebugEnabled()) {
+ log.debug("destroy(first)");
+ }
+
+ }
+
+
+ public void init() {
+
+ if (log.isDebugEnabled()) {
+ log.debug("init(first, postBack=" + isPostBack() + ")");
+ }
+
+ }
+
+
+ public void preprocess() {
+
+ if (log.isDebugEnabled()) {
+ log.debug("preprocess(first)");
+ }
+
+ }
+
+
+ public void prerender() {
+
+ if (log.isDebugEnabled()) {
+ log.debug("prerender(first)");
+ }
+
+ }
+
+
+}
Added:
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Gamma.java
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Gamma.java?view=auto&rev=152996
==============================================================================
---
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Gamma.java
(added)
+++
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Gamma.java
Tue Feb 8 20:29:29 2005
@@ -0,0 +1,91 @@
+/*
+ * 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.
+ */
+
+package org.apache.shale.usecases.subview;
+
+import java.util.Map;
+import javax.faces.context.FacesContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.shale.usecases.view.BaseViewController;
+
+/**
+ * <p>Third included page for subview processing use case.</p>
+ *
+ * $Id$
+ */
+public class Gamma extends BaseViewController {
+
+
+ // -------------------------------------------------------- Static
Variables
+
+
+ /**
+ * <p>The <code>Log</code> instance for this class.</p>
+ */
+ private static final Log log = LogFactory.getLog(Gamma.class);
+
+
+ // -------------------------------------------------- ViewController
Methods
+
+
+ public void destroy() {
+
+ record("destroy(gamma)");
+
+ }
+
+
+ public void init() {
+
+ record("init(gamma)");
+
+ }
+
+
+ public void preprocess() {
+
+ record("preprocess(gamma)");
+
+ }
+
+
+ public void prerender() {
+
+ record("prerender(gamma)");
+
+ }
+
+
+ // --------------------------------------------------------- Private
Methods
+
+
+ private void record(String text) {
+
+ if (log.isDebugEnabled()) {
+ log.debug(text);
+ }
+ Map map =
FacesContext.getCurrentInstance().getExternalContext().getRequestMap();
+ String actual = (String) map.get("actual");
+ if (actual == null) {
+ actual = "";
+ }
+ map.put("actual", actual + text + "/");
+
+ }
+
+
+}
Added:
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Second.java
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Second.java?view=auto&rev=152996
==============================================================================
---
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Second.java
(added)
+++
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/subview/Second.java
Tue Feb 8 20:29:29 2005
@@ -0,0 +1,99 @@
+/*
+ * 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.
+ */
+
+package org.apache.shale.usecases.subview;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.shale.usecases.view.BaseViewController;
+
+/**
+ * <p>Second page for subview processing use case.</p>
+ *
+ * $Id$
+ */
+public class Second extends BaseViewController {
+
+
+ // -------------------------------------------------------- Static
Variables
+
+
+ /**
+ * <p>The <code>Log</code> instance for this class.</p>
+ */
+ private static final Log log = LogFactory.getLog(Second.class);
+
+
+ // --------------------------------------------------------------
Properties
+
+
+ /**
+ * <p>Return the expected trace string for the seonc page, which depends
+ * on whether or not this is a postback.</p>
+ */
+ public String getExpected() {
+
+ if (isPostBack()) {
+ return
"init(gamma)/preprocess(gamma)/init(delta)/preprocess(delta)/" +
+ "prerender(gamma)/prerender(delta)/";
+ } else {
+ return
"init(alpha)/preprocess(alpha)/init(beta)/preprocess(beta)/" +
+
"init(gamma)/prerender(gamma)/init(delta)/prerender(delta)/";
+ }
+
+ }
+
+
+ // -------------------------------------------------- ViewController
Methods
+
+
+ public void destroy() {
+
+ if (log.isDebugEnabled()) {
+ log.debug("destroy(second)");
+ }
+
+ }
+
+
+ public void init() {
+
+ if (log.isDebugEnabled()) {
+ log.debug("init(second, postBack=" + isPostBack() + ")");
+ }
+
+ }
+
+
+ public void preprocess() {
+
+ if (log.isDebugEnabled()) {
+ log.debug("preprocess(second)");
+ }
+
+ }
+
+
+ public void prerender() {
+
+ if (log.isDebugEnabled()) {
+ log.debug("prerender(second)");
+ }
+
+ }
+
+
+}
Modified:
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/view/Bundle.properties
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/view/Bundle.properties?view=diff&r1=152995&r2=152996
==============================================================================
---
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/view/Bundle.properties
(original)
+++
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/view/Bundle.properties
Tue Feb 8 20:29:29 2005
@@ -67,6 +67,14 @@
select.selected=User has selected locale {0}
select.title=Select Locale
+# Subview Prompts
+subview.actual=Actual:
+subview.continue=Continue
+subview.expected=Expected:
+subview.finish=Finish
+subview.first.title=Subview Processing (Page 1 of 2)
+subview.second.title=Subview Processing (Page 2 of 2)
+
# Use Cases Menu Messages
usecases.categories=List Categories (Remoting)
usecases.edit=Edit User Profile
@@ -77,4 +85,5 @@
usecases.logoff=Log Off
usecases.logon=Log On Dialog
usecases.primary=Primary Use Cases
+usecases.subview=Subview Processing
usecases.title=Shale Framework Use Cases
Modified: struts/shale/trunk/use-cases/src/web/WEB-INF/faces-config.xml
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/WEB-INF/faces-config.xml?view=diff&r1=152995&r2=152996
==============================================================================
--- struts/shale/trunk/use-cases/src/web/WEB-INF/faces-config.xml (original)
+++ struts/shale/trunk/use-cases/src/web/WEB-INF/faces-config.xml Tue Feb 8
20:29:29 2005
@@ -224,6 +224,78 @@
</navigation-rule>
+ <!-- =========================== Subview Processing ======================
-->
+
+
+ <!-- ViewController Beans -->
+
+ <managed-bean>
+ <managed-bean-name>subview_alpha</managed-bean-name>
+ <managed-bean-class>
+ org.apache.shale.usecases.subview.Alpha
+ </managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>subview_beta</managed-bean-name>
+ <managed-bean-class>
+ org.apache.shale.usecases.subview.Beta
+ </managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>subview_gamma</managed-bean-name>
+ <managed-bean-class>
+ org.apache.shale.usecases.subview.Gamma
+ </managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>subview_delta</managed-bean-name>
+ <managed-bean-class>
+ org.apache.shale.usecases.subview.Delta
+ </managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>subview$first</managed-bean-name>
+ <managed-bean-class>
+ org.apache.shale.usecases.subview.First
+ </managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>subview$second</managed-bean-name>
+ <managed-bean-class>
+ org.apache.shale.usecases.subview.Second
+ </managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <!-- Navigation Rules -->
+
+ <navigation-rule>
+ <from-view-id>*</from-view-id>
+ <navigation-case>
+ <from-outcome>subview$first</from-outcome>
+ <to-view-id>/subview/first.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>subview$second</from-outcome>
+ <to-view-id>/subview/second.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>subview$third</from-outcome>
+ <to-view-id>/usecases.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
+
<!-- ===================== Miscellaneous Facilities ======================
-->
Added: struts/shale/trunk/use-cases/src/web/subview/alpha.jsp
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/subview/alpha.jsp?view=auto&rev=152996
==============================================================================
--- struts/shale/trunk/use-cases/src/web/subview/alpha.jsp (added)
+++ struts/shale/trunk/use-cases/src/web/subview/alpha.jsp Tue Feb 8 20:29:29
2005
@@ -0,0 +1,23 @@
+<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
+<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
+<%@ taglib prefix="s" uri="http://struts.apache.org/shale/core" %>
+
+<%--
+
+ 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.
+
+--%>
+
+<h:outputText value="This is the alpha dynamic include"/>
Added: struts/shale/trunk/use-cases/src/web/subview/beta.jsp
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/subview/beta.jsp?view=auto&rev=152996
==============================================================================
--- struts/shale/trunk/use-cases/src/web/subview/beta.jsp (added)
+++ struts/shale/trunk/use-cases/src/web/subview/beta.jsp Tue Feb 8 20:29:29
2005
@@ -0,0 +1,23 @@
+<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
+<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
+<%@ taglib prefix="s" uri="http://struts.apache.org/shale/core" %>
+
+<%--
+
+ 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.
+
+--%>
+
+<h:outputText value="This is the beta dynamic include"/>
Added: struts/shale/trunk/use-cases/src/web/subview/delta.jsp
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/subview/delta.jsp?view=auto&rev=152996
==============================================================================
--- struts/shale/trunk/use-cases/src/web/subview/delta.jsp (added)
+++ struts/shale/trunk/use-cases/src/web/subview/delta.jsp Tue Feb 8 20:29:29
2005
@@ -0,0 +1,23 @@
+<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
+<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
+<%@ taglib prefix="s" uri="http://struts.apache.org/shale/core" %>
+
+<%--
+
+ 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.
+
+--%>
+
+<h:outputText value="This is the delta dynamic include"/>
Added: struts/shale/trunk/use-cases/src/web/subview/first.jsp
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/subview/first.jsp?view=auto&rev=152996
==============================================================================
--- struts/shale/trunk/use-cases/src/web/subview/first.jsp (added)
+++ struts/shale/trunk/use-cases/src/web/subview/first.jsp Tue Feb 8 20:29:29
2005
@@ -0,0 +1,67 @@
+<[EMAIL PROTECTED] contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
+<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
+<%@ taglib prefix="s" uri="http://struts.apache.org/shale/core" %>
+
+<%--
+
+ 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.
+
+--%>
+
+<f:view>
+<[EMAIL PROTECTED] file="../messages.jspf"%>
+<html>
+<head>
+<title>
+ <h:outputText value="#{messages['subview.first.title']}"/>
+</title>
+</head>
+<body>
+
+ <h:form>
+
+ <h:panelGrid columns="1">
+
+ <s:subview id="subview_alpha">
+ <jsp:include page="/subview/alpha.jsp"/>
+ </s:subview>
+
+ <s:subview id="subview_beta">
+ <jsp:include page="/subview/beta.jsp"/>
+ </s:subview>
+
+ <h:panelGroup>
+ <h:outputText value="#{messages['subview.expected']}"/>
+ <h:outputText value="#{subview$first.expected}"/>
+ </h:panelGroup>
+
+ <h:panelGroup>
+ <h:outputText value="#{messages['subview.actual']}"/>
+ <h:outputText value="#{actual}"/>
+ </h:panelGroup>
+
+ <h:commandButton id="continue"
+ action="subview$second"
+ type="submit"
+ value="#{messages['subview.continue']}"/>
+
+ </h:panelGrid>
+
+ </h:form>
+
+</body>
+</html>
+</f:view>
Added: struts/shale/trunk/use-cases/src/web/subview/gamma.jsp
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/subview/gamma.jsp?view=auto&rev=152996
==============================================================================
--- struts/shale/trunk/use-cases/src/web/subview/gamma.jsp (added)
+++ struts/shale/trunk/use-cases/src/web/subview/gamma.jsp Tue Feb 8 20:29:29
2005
@@ -0,0 +1,23 @@
+<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
+<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
+<%@ taglib prefix="s" uri="http://struts.apache.org/shale/core" %>
+
+<%--
+
+ 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.
+
+--%>
+
+<h:outputText value="This is the gamma dynamic include"/>
Added: struts/shale/trunk/use-cases/src/web/subview/second.jsp
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/subview/second.jsp?view=auto&rev=152996
==============================================================================
--- struts/shale/trunk/use-cases/src/web/subview/second.jsp (added)
+++ struts/shale/trunk/use-cases/src/web/subview/second.jsp Tue Feb 8 20:29:29
2005
@@ -0,0 +1,73 @@
+<[EMAIL PROTECTED] contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
+<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
+<%@ taglib prefix="s" uri="http://struts.apache.org/shale/core" %>
+
+<%--
+
+ 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.
+
+--%>
+
+<f:view>
+<[EMAIL PROTECTED] file="../messages.jspf"%>
+<html>
+<head>
+<title>
+ <h:outputText value="#{messages['subview.second.title']}"/>
+</title>
+</head>
+<body>
+
+ <h:form>
+
+ <h:panelGrid columns="1">
+
+ <s:subview id="subview_gamma">
+ <jsp:include page="/subview/gamma.jsp"/>
+ </s:subview>
+
+ <s:subview id="subview_delta">
+ <jsp:include page="/subview/delta.jsp"/>
+ </s:subview>
+
+ <h:panelGroup>
+ <h:outputText value="#{messages['subview.expected']}"/>
+ <h:outputText value="#{subview$second.expected}"/>
+ </h:panelGroup>
+
+ <h:panelGroup>
+ <h:outputText value="#{messages['subview.actual']}"/>
+ <h:outputText value="#{actual}"/>
+ </h:panelGroup>
+
+ <%-- Submits back to this page --%>
+ <h:commandButton id="continue"
+ type="submit"
+ value="#{messages['subview.continue']}"/>
+
+ <h:commandButton id="finish"
+ action="subview$third"
+ type="submit"
+ value="#{messages['subview.finish']}"/>
+
+ </h:panelGrid>
+
+ </h:form>
+
+
+</body>
+</html>
+</f:view>
Modified: struts/shale/trunk/use-cases/src/web/usecases.jsp
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/usecases.jsp?view=diff&r1=152995&r2=152996
==============================================================================
--- struts/shale/trunk/use-cases/src/web/usecases.jsp (original)
+++ struts/shale/trunk/use-cases/src/web/usecases.jsp Tue Feb 8 20:29:29 2005
@@ -66,6 +66,10 @@
<h:outputText value="#{messages['usecases.logoff']}"/>
</h:commandLink>
+ <h:commandLink action="subview$first">
+ <h:outputText value="#{messages['usecases.subview']}"/>
+ </h:commandLink>
+
<f:facet name="footer">
<h:panelGroup>
<h:outputText value="#{messages['prompt.locale']}"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]