You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2005/08/12 17:35:01 UTC

svn commit: r232315 [2/3] - in /beehive/trunk/samples: controls-spring/ controls-spring/integration/ controls-spring/integration/src/META-INF/services/ controls-spring/integration/src/org/apache/beehive/samples/spring/factory/ controls-spring/web/ cont...

Modified: beehive/trunk/samples/netui-samples/ui/formposting/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/samples/netui-samples/ui/formposting/Controller.java?rev=232315&r1=232314&r2=232315&view=diff
==============================================================================
--- beehive/trunk/samples/netui-samples/ui/formposting/Controller.java (original)
+++ beehive/trunk/samples/netui-samples/ui/formposting/Controller.java Fri Aug 12 08:33:47 2005
@@ -1,112 +1,112 @@
-/*
- * 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 ui.formposting;
-
-import java.io.Serializable;
-import javax.servlet.http.HttpServletRequest;
-
-import org.apache.beehive.netui.pageflow.PageFlowController;
-import org.apache.beehive.netui.pageflow.Forward;
-import org.apache.beehive.netui.pageflow.FormData;
-import org.apache.beehive.netui.pageflow.annotations.Jpf;
-
-import org.apache.struts.action.ActionErrors;
-import org.apache.struts.action.ActionMapping;
-import org.apache.struts.action.ActionMessage;
-
-@Jpf.Controller(
-    forwards={
-        @Jpf.Forward(name="basicFormSuccess", path="basicForm.jsp"),
-        @Jpf.Forward(name="outputFormSuccess", path="outputForm.jsp"),
-        @Jpf.Forward(name="validatedFormSuccess", path="validatedForm.jsp")
-    },
-    simpleActions={
-        @Jpf.SimpleAction(name="begin", path="index.jsp")
-    },
-    messageBundles={
-        @Jpf.MessageBundle(bundlePath="org.apache.beehive.samples.netui.resources.formposting.messages")
-    }
-)
-public class Controller
-    extends PageFlowController {
-
-    @Jpf.Action()
-    public Forward showBasicForm() {
-        return new Forward("basicFormSuccess");
-    }
-
-    @Jpf.Action()
-    public Forward postBasicForm(NameForm form) {
-        return new Forward("basicFormSuccess");
-    }
-
-    @Jpf.Action()
-    public Forward showOutputForm() {
-        NameForm outputForm = new NameForm();
-        outputForm.setName("Frank");
-        return new Forward("outputFormSuccess", outputForm);
-    }
-
-    @Jpf.Action()
-    public Forward postOutputForm(NameForm form) {
-        return new Forward("outputFormSuccess", form);
-    }
-
-    @Jpf.Action()
-    public Forward showValidatedForm() {
-        return new Forward("validatedFormSuccess");
-    }
-
-    @Jpf.Action(
-        validationErrorForward=@Jpf.Forward(name="failure", navigateTo=Jpf.NavigateTo.currentPage)
-    )
-    public Forward postValidatedForm(ValidatedNameForm form) {
-        return new Forward("validatedFormSuccess");
-    }
-
-    public static class NameForm
-        extends FormData
-        implements Serializable {
-
-        private String _name = null;
-
-        public String getName() {
-            return _name;
-        }
-
-        public void setName(String name) {
-            _name = name;
-        }
-    }
-
-    public static class ValidatedNameForm
-        extends NameForm {
-
-        private static final String REQUIRED_NAME = "Frank";
-
-        public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest servletRequest) {
-            ActionErrors errors = null;
-            if(!REQUIRED_NAME.equals(getName())) {
-                errors = new ActionErrors();
-                errors.add("name", new ActionMessage("formposting.invalidname"));
-            }
-
-            return errors;
-        }
-    }
-}
+/*
+ * 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 ui.formposting;
+
+import java.io.Serializable;
+import javax.servlet.http.HttpServletRequest;
+
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.FormData;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+import org.apache.struts.action.ActionErrors;
+import org.apache.struts.action.ActionMapping;
+import org.apache.struts.action.ActionMessage;
+
+@Jpf.Controller(
+    forwards={
+        @Jpf.Forward(name="basicFormSuccess", path="basicForm.jsp"),
+        @Jpf.Forward(name="outputFormSuccess", path="outputForm.jsp"),
+        @Jpf.Forward(name="validatedFormSuccess", path="validatedForm.jsp")
+    },
+    simpleActions={
+        @Jpf.SimpleAction(name="begin", path="index.jsp")
+    },
+    messageBundles={
+        @Jpf.MessageBundle(bundlePath="org.apache.beehive.samples.netui.resources.formposting.messages")
+    }
+)
+public class Controller
+    extends PageFlowController {
+
+    @Jpf.Action()
+    public Forward showBasicForm() {
+        return new Forward("basicFormSuccess");
+    }
+
+    @Jpf.Action()
+    public Forward postBasicForm(NameForm form) {
+        return new Forward("basicFormSuccess");
+    }
+
+    @Jpf.Action()
+    public Forward showOutputForm() {
+        NameForm outputForm = new NameForm();
+        outputForm.setName("Frank");
+        return new Forward("outputFormSuccess", outputForm);
+    }
+
+    @Jpf.Action()
+    public Forward postOutputForm(NameForm form) {
+        return new Forward("outputFormSuccess", form);
+    }
+
+    @Jpf.Action()
+    public Forward showValidatedForm() {
+        return new Forward("validatedFormSuccess");
+    }
+
+    @Jpf.Action(
+        validationErrorForward=@Jpf.Forward(name="failure", navigateTo=Jpf.NavigateTo.currentPage)
+    )
+    public Forward postValidatedForm(ValidatedNameForm form) {
+        return new Forward("validatedFormSuccess");
+    }
+
+    public static class NameForm
+        extends FormData
+        implements Serializable {
+
+        private String _name = null;
+
+        public String getName() {
+            return _name;
+        }
+
+        public void setName(String name) {
+            _name = name;
+        }
+    }
+
+    public static class ValidatedNameForm
+        extends NameForm {
+
+        private static final String REQUIRED_NAME = "Frank";
+
+        public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest servletRequest) {
+            ActionErrors errors = null;
+            if(!REQUIRED_NAME.equals(getName())) {
+                errors = new ActionErrors();
+                errors.add("name", new ActionMessage("formposting.invalidname"));
+            }
+
+            return errors;
+        }
+    }
+}

Propchange: beehive/trunk/samples/netui-samples/ui/formposting/Controller.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/samples/netui-samples/ui/formposting/basicForm.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/samples/netui-samples/ui/formposting/basicForm.jsp?rev=232315&r1=232314&r2=232315&view=diff
==============================================================================
--- beehive/trunk/samples/netui-samples/ui/formposting/basicForm.jsp (original)
+++ beehive/trunk/samples/netui-samples/ui/formposting/basicForm.jsp Fri Aug 12 08:33:47 2005
@@ -1,35 +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:$
---%>
-<%@ 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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
-
-<netui-template:template templatePage="/resources/template/template.jsp">
-  <netui-template:setAttribute name="sampleTitle" value="Basic Form"/>
-  <netui-template:section name="main">
-      <i>Enter a name in this text box and click the Submit button to POST the value to the server.
-      <br/>Once the form has been submitted, the name will re-appear in this text box.</i><br/>
-      <br/>
-      <netui:form action="postBasicForm">
-          <netui:label value="Name:"/>&nbsp;<netui:textBox dataSource="actionForm.name"/><br/>
-          <br/>
-          <netui:button value="Submit"/>
-      </netui:form>
-  </netui-template:section>
-</netui-template:template>
+<%--
+   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
+
+<netui-template:template templatePage="/resources/template/template.jsp">
+  <netui-template:setAttribute name="sampleTitle" value="Basic Form"/>
+  <netui-template:section name="main">
+      <i>Enter a name in this text box and click the Submit button to POST the value to the server.
+      <br/>Once the form has been submitted, the name will re-appear in this text box.</i><br/>
+      <br/>
+      <netui:form action="postBasicForm">
+          <netui:label value="Name:"/>&nbsp;<netui:textBox dataSource="actionForm.name"/><br/>
+          <br/>
+          <netui:button value="Submit"/>
+      </netui:form>
+  </netui-template:section>
+</netui-template:template>

Propchange: beehive/trunk/samples/netui-samples/ui/formposting/basicForm.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/netui-samples/ui/formposting/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/samples/netui-samples/ui/formposting/outputForm.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/samples/netui-samples/ui/formposting/outputForm.jsp?rev=232315&r1=232314&r2=232315&view=diff
==============================================================================
--- beehive/trunk/samples/netui-samples/ui/formposting/outputForm.jsp (original)
+++ beehive/trunk/samples/netui-samples/ui/formposting/outputForm.jsp Fri Aug 12 08:33:47 2005
@@ -1,38 +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:$
---%>
-<%@ 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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
-
-<netui-template:template templatePage="/resources/template/template.jsp">
-  <netui-template:setAttribute name="sampleTitle" value="Basic Form"/>
-  <netui-template:section name="main">
-      <i>This NetUI form has been pre-populated with a value from an "output form" from
-         the Page Flow action postOutputForm.  <br/>Click the Submit button to POST the form
-         or change then name and then click Submit.  <br/>Once the form has been submitted,
-         the name will re-appear in the text box.</i>
-      <br/>
-      <br/>
-      <netui:form action="postOutputForm">
-          <netui:textBox dataSource="actionForm.name"/><br/>
-          <br/>
-          <netui:button value="Submit"/>
-      </netui:form>
-  </netui-template:section>
+<%--
+   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
+
+<netui-template:template templatePage="/resources/template/template.jsp">
+  <netui-template:setAttribute name="sampleTitle" value="Basic Form"/>
+  <netui-template:section name="main">
+      <i>This NetUI form has been pre-populated with a value from an "output form" from
+         the Page Flow action postOutputForm.  <br/>Click the Submit button to POST the form
+         or change then name and then click Submit.  <br/>Once the form has been submitted,
+         the name will re-appear in the text box.</i>
+      <br/>
+      <br/>
+      <netui:form action="postOutputForm">
+          <netui:textBox dataSource="actionForm.name"/><br/>
+          <br/>
+          <netui:button value="Submit"/>
+      </netui:form>
+  </netui-template:section>
 </netui-template:template>

Propchange: beehive/trunk/samples/netui-samples/ui/formposting/outputForm.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/samples/netui-samples/ui/formposting/validatedForm.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/samples/netui-samples/ui/formposting/validatedForm.jsp?rev=232315&r1=232314&r2=232315&view=diff
==============================================================================
--- beehive/trunk/samples/netui-samples/ui/formposting/validatedForm.jsp (original)
+++ beehive/trunk/samples/netui-samples/ui/formposting/validatedForm.jsp Fri Aug 12 08:33:47 2005
@@ -1,46 +1,46 @@
-<%--
-   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
-
-<netui-template:template templatePage="/resources/template/template.jsp">
-  <netui-template:setAttribute name="sampleTitle" value="Basic Form"/>
-  <netui-template:section name="main">
-      <div style="width:40%;">
-      <i>
-      Enter a name in this text box and click the Submit button to POST the value to the
-      server.  This form uses a Page Flow validationErrorForward annotation on the
-      postValidatedForm action to indicate that the form should be validated.  To pass
-      validation, enter "Frank" in the text box; otherwise, a validation error message
-      will be reported.  Once the form has been submitted, the name will re-appear in
-      this text box.
-      </i>
-      <br/>
-      <br/>
-      </div>
-      <div>
-      <netui:form action="postValidatedForm">
-          <netui:textBox dataSource="actionForm.name"/>&nbsp;&nbsp;<netui:error key="name"/><br/>
-          <br/>
-          <netui:button value="Submit"/>
-      </netui:form>
-      </div>
-  </netui-template:section>
+<%--
+   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
+
+<netui-template:template templatePage="/resources/template/template.jsp">
+  <netui-template:setAttribute name="sampleTitle" value="Basic Form"/>
+  <netui-template:section name="main">
+      <div style="width:40%;">
+      <i>
+      Enter a name in this text box and click the Submit button to POST the value to the
+      server.  This form uses a Page Flow validationErrorForward annotation on the
+      postValidatedForm action to indicate that the form should be validated.  To pass
+      validation, enter "Frank" in the text box; otherwise, a validation error message
+      will be reported.  Once the form has been submitted, the name will re-appear in
+      this text box.
+      </i>
+      <br/>
+      <br/>
+      </div>
+      <div>
+      <netui:form action="postValidatedForm">
+          <netui:textBox dataSource="actionForm.name"/>&nbsp;&nbsp;<netui:error key="name"/><br/>
+          <br/>
+          <netui:button value="Submit"/>
+      </netui:form>
+      </div>
+  </netui-template:section>
 </netui-template:template>

Propchange: beehive/trunk/samples/netui-samples/ui/formposting/validatedForm.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/samples/netui-samples/ui/pageinput/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/samples/netui-samples/ui/pageinput/Controller.java?rev=232315&r1=232314&r2=232315&view=diff
==============================================================================
--- beehive/trunk/samples/netui-samples/ui/pageinput/Controller.java (original)
+++ beehive/trunk/samples/netui-samples/ui/pageinput/Controller.java Fri Aug 12 08:33:47 2005
@@ -1,63 +1,63 @@
-/*
- * 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 ui.pageinput;
-
-import org.apache.beehive.netui.pageflow.PageFlowController;
-import org.apache.beehive.netui.pageflow.Forward;
-import org.apache.beehive.netui.pageflow.annotations.Jpf;
-import org.apache.beehive.samples.netui.beans.PetType;
-
-/**
- *
- */
-@Jpf.Controller(
-    forwards={@Jpf.Forward(name="success", path="index.jsp")}
-)
-public class Controller
-    extends PageFlowController{
-
-    @Jpf.Action(
-        forwards={
-            @Jpf.Forward(name="success", path="index.jsp",
-                         actionOutputs={
-                             @Jpf.ActionOutput(
-                                 name="pet",
-                                 type=PetType.class,
-                                 required=true)
-                        }
-            )
-        }
-    )
-    protected Forward begin() {
-        PetType petType = new PetType();
-        petType.setPetId(1234);
-        petType.setName("Labrador Retriever");
-        petType.setPrice(600.00);
-        petType.setDescription("Black Labrador Retriever");
-
-        Forward f = new Forward("success");
-        f.addActionOutput("pet", petType);
-        return f;
-    }
-
-    @Jpf.Action()
-    protected Forward missingPageInput() {
-        return new Forward("success");
-    }
-
-}
+/*
+ * 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 ui.pageinput;
+
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+import org.apache.beehive.samples.netui.beans.PetType;
+
+/**
+ *
+ */
+@Jpf.Controller(
+    forwards={@Jpf.Forward(name="success", path="index.jsp")}
+)
+public class Controller
+    extends PageFlowController{
+
+    @Jpf.Action(
+        forwards={
+            @Jpf.Forward(name="success", path="index.jsp",
+                         actionOutputs={
+                             @Jpf.ActionOutput(
+                                 name="pet",
+                                 type=PetType.class,
+                                 required=true)
+                        }
+            )
+        }
+    )
+    protected Forward begin() {
+        PetType petType = new PetType();
+        petType.setPetId(1234);
+        petType.setName("Labrador Retriever");
+        petType.setPrice(600.00);
+        petType.setDescription("Black Labrador Retriever");
+
+        Forward f = new Forward("success");
+        f.addActionOutput("pet", petType);
+        return f;
+    }
+
+    @Jpf.Action()
+    protected Forward missingPageInput() {
+        return new Forward("success");
+    }
+
+}

Propchange: beehive/trunk/samples/netui-samples/ui/pageinput/Controller.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/samples/netui-samples/ui/pageinput/index.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/samples/netui-samples/ui/pageinput/index.jsp?rev=232315&r1=232314&r2=232315&view=diff
==============================================================================
--- beehive/trunk/samples/netui-samples/ui/pageinput/index.jsp (original)
+++ beehive/trunk/samples/netui-samples/ui/pageinput/index.jsp Fri Aug 12 08:33:47 2005
@@ -1,46 +1,46 @@
-<%--
-   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
-
-<netui-template:template templatePage="/resources/template/template.jsp">
-  <netui-template:setAttribute name="sampleTitle" value="Page Inputs"/>
-  <netui-template:section name="main">
-      
-      <netui-data:declarePageInput name="pet" type="org.apache.beehive.samples.netui.beans.PetType"/>
-
-      <br/>
-      <table>
-          <tr><td colspan="2"><b>Pet Details</b></td></tr>
-          <tr><td>Identifier:</td><td>${pageInput.pet.petID}</td></tr>
-          <tr><td>Name:</td><td>${pageInput.pet.name}</td></tr>
-          <tr><td>Price:</td><td>${pageInput.pet.price}</td></tr>
-      <tr><td>Description:</td><td>${pageInput.pet.description}</td></tr>
-      </table>
-      <br/>
-      Click <netui:anchor action="missingPageInput" value="here"/> to run this page
-      via an action that <i>does not</i> provide the required page input.
-      <br/>
-      <br/>
-      Click <netui:anchor action="begin" value="here"/> to run this page via an action
-      that <i>does</i> provide the required page input.
-      <br/>
-  </netui-template:section>
+<%--
+   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
+
+<netui-template:template templatePage="/resources/template/template.jsp">
+  <netui-template:setAttribute name="sampleTitle" value="Page Inputs"/>
+  <netui-template:section name="main">
+      
+      <netui-data:declarePageInput name="pet" type="org.apache.beehive.samples.netui.beans.PetType"/>
+
+      <br/>
+      <table>
+          <tr><td colspan="2"><b>Pet Details</b></td></tr>
+          <tr><td>Identifier:</td><td>${pageInput.pet.petID}</td></tr>
+          <tr><td>Name:</td><td>${pageInput.pet.name}</td></tr>
+          <tr><td>Price:</td><td>${pageInput.pet.price}</td></tr>
+      <tr><td>Description:</td><td>${pageInput.pet.description}</td></tr>
+      </table>
+      <br/>
+      Click <netui:anchor action="missingPageInput" value="here"/> to run this page
+      via an action that <i>does not</i> provide the required page input.
+      <br/>
+      <br/>
+      Click <netui:anchor action="begin" value="here"/> to run this page via an action
+      that <i>does</i> provide the required page input.
+      <br/>
+  </netui-template:section>
 </netui-template:template>

Propchange: beehive/trunk/samples/netui-samples/ui/pageinput/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/samples/netui-samples/ui/repeaterediting/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/samples/netui-samples/ui/repeaterediting/Controller.java?rev=232315&r1=232314&r2=232315&view=diff
==============================================================================
--- beehive/trunk/samples/netui-samples/ui/repeaterediting/Controller.java (original)
+++ beehive/trunk/samples/netui-samples/ui/repeaterediting/Controller.java Fri Aug 12 08:33:47 2005
@@ -1,181 +1,181 @@
-/*
- * 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 ui.repeaterediting;
-
-import java.io.Serializable;
-import javax.servlet.ServletRequest;
-import javax.servlet.http.HttpServletRequest;
-
-import org.apache.beehive.controls.api.bean.Control;
-import org.apache.beehive.netui.pageflow.annotations.Jpf;
-import org.apache.beehive.netui.pageflow.PageFlowController;
-import org.apache.beehive.netui.pageflow.Forward;
-import org.apache.beehive.netui.pageflow.FormData;
-import org.apache.beehive.samples.controls.pets.Pets;
-import org.apache.beehive.samples.netui.beans.PetType;
-
-import org.apache.struts.action.ActionErrors;
-import org.apache.struts.action.ActionMapping;
-import org.apache.struts.action.ActionMessage;
-
-/**
- */
-@Jpf.Controller(
-    messageBundles={
-        @Jpf.MessageBundle(bundlePath="org.apache.beehive.samples.netui.resources.repeaterediting.messages")
-    },
-    forwards=@Jpf.Forward(name="success", path="index.jsp")
-)
-public class Controller
-    extends PageFlowController {
-
-    private static final double GIFT_WRAP_PRICE = 4.95;
-
-    @Control()
-    private Pets _petControl;
-
-    private CartForm _cartForm;
-
-    @Jpf.Action(
-        forwards=
-            @Jpf.Forward(name="success", path="index.jsp",
-                actionOutputs=@Jpf.ActionOutput(name="totalPrice", type=java.lang.Double.class))
-    )
-    public Forward begin() {
-        PetType[] pets = _petControl.getPetList();
-        CartItem[] items = new CartItem[pets.length];
-        for(int i = 0; i < items.length; i++) {
-            items[i] = new PetCartItem(pets[i]);
-            items[i].setQuantity(1);
-            items[i].setGiftWrap(false);
-        }
-
-        _cartForm = new CartForm(items);
-
-        Forward forward = new Forward("success");
-        forward.addOutputForm(_cartForm);
-        forward.addActionOutput("totalPrice", calculatePrice(_cartForm.getItems()));
-        return forward;
-    }
-
-    @Jpf.Action(
-        useFormBean="_cartForm",
-        validationErrorForward=@Jpf.Forward(name="failure", navigateTo=Jpf.NavigateTo.currentPage)
-    )
-    public Forward update(CartForm cart) {
-        Forward forward = new Forward("success");
-        forward.addOutputForm(cart);
-        forward.addActionOutput("totalPrice", calculatePrice(cart.getItems()));
-        return forward;
-    }
-
-    private double calculatePrice(CartItem[] items) {
-        double price = 0.0;
-        for(CartItem item : items) {
-            price += item.getQuantity() * item.getPrice();
-            if(item.isGiftWrap())
-                price += GIFT_WRAP_PRICE;
-        }
-        return price;
-    }
-
-    public static class CartForm
-        extends FormData
-        implements Serializable {
-
-        private CartItem[] _items;
-
-        public CartForm() {}
-
-        public CartForm(CartItem[] items) {
-            _items = items;
-        }
-
-        public CartItem[] getItems() {
-            return _items;
-        }
-
-        public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
-            ActionErrors errors = new ActionErrors();
-
-            for(int i = 0; i < _items.length; i++) {
-                CartItem item = _items[i];
-                if(item.getQuantity() <= 0) {
-                    errors.add("invalidQuantity" + i, new ActionMessage("invalidquantity", item.getQuantity()));
-                }
-            }
-
-            return errors;
-        }
-    }
-
-    public static abstract class CartItem
-        implements Serializable {
-
-        private int _quantity;
-        private boolean _giftWrap;
-
-        public int getQuantity() {
-            return _quantity;
-        }
-
-        public void setQuantity(int quantity) {
-            _quantity = quantity;
-        }
-
-        public boolean isGiftWrap() {
-            return _giftWrap;
-        }
-
-        public void setGiftWrap(boolean giftWrap) {
-            _giftWrap = giftWrap;
-        }
-
-        public abstract double getPrice();
-    }
-
-    public static class PetCartItem
-        extends CartItem {
-
-        private PetType _pet;
-
-        public PetCartItem(PetType pet) {
-            _pet = pet;
-        }
-
-        public int getPetId() {
-            assert _pet != null;
-            return _pet.getPetID();
-        }
-
-        public String getName() {
-            assert _pet != null;
-            return _pet.getName();
-        }
-
-        public double getPrice() {
-            assert _pet != null;
-            return _pet.getPrice();
-        }
-
-        public String getDescription() {
-            assert _pet != null;
-            return _pet.getDescription();
-        }
-    }
-}
+/*
+ * 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 ui.repeaterediting;
+
+import java.io.Serializable;
+import javax.servlet.ServletRequest;
+import javax.servlet.http.HttpServletRequest;
+
+import org.apache.beehive.controls.api.bean.Control;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.FormData;
+import org.apache.beehive.samples.controls.pets.Pets;
+import org.apache.beehive.samples.netui.beans.PetType;
+
+import org.apache.struts.action.ActionErrors;
+import org.apache.struts.action.ActionMapping;
+import org.apache.struts.action.ActionMessage;
+
+/**
+ */
+@Jpf.Controller(
+    messageBundles={
+        @Jpf.MessageBundle(bundlePath="org.apache.beehive.samples.netui.resources.repeaterediting.messages")
+    },
+    forwards=@Jpf.Forward(name="success", path="index.jsp")
+)
+public class Controller
+    extends PageFlowController {
+
+    private static final double GIFT_WRAP_PRICE = 4.95;
+
+    @Control()
+    private Pets _petControl;
+
+    private CartForm _cartForm;
+
+    @Jpf.Action(
+        forwards=
+            @Jpf.Forward(name="success", path="index.jsp",
+                actionOutputs=@Jpf.ActionOutput(name="totalPrice", type=java.lang.Double.class))
+    )
+    public Forward begin() {
+        PetType[] pets = _petControl.getPetList();
+        CartItem[] items = new CartItem[pets.length];
+        for(int i = 0; i < items.length; i++) {
+            items[i] = new PetCartItem(pets[i]);
+            items[i].setQuantity(1);
+            items[i].setGiftWrap(false);
+        }
+
+        _cartForm = new CartForm(items);
+
+        Forward forward = new Forward("success");
+        forward.addOutputForm(_cartForm);
+        forward.addActionOutput("totalPrice", calculatePrice(_cartForm.getItems()));
+        return forward;
+    }
+
+    @Jpf.Action(
+        useFormBean="_cartForm",
+        validationErrorForward=@Jpf.Forward(name="failure", navigateTo=Jpf.NavigateTo.currentPage)
+    )
+    public Forward update(CartForm cart) {
+        Forward forward = new Forward("success");
+        forward.addOutputForm(cart);
+        forward.addActionOutput("totalPrice", calculatePrice(cart.getItems()));
+        return forward;
+    }
+
+    private double calculatePrice(CartItem[] items) {
+        double price = 0.0;
+        for(CartItem item : items) {
+            price += item.getQuantity() * item.getPrice();
+            if(item.isGiftWrap())
+                price += GIFT_WRAP_PRICE;
+        }
+        return price;
+    }
+
+    public static class CartForm
+        extends FormData
+        implements Serializable {
+
+        private CartItem[] _items;
+
+        public CartForm() {}
+
+        public CartForm(CartItem[] items) {
+            _items = items;
+        }
+
+        public CartItem[] getItems() {
+            return _items;
+        }
+
+        public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
+            ActionErrors errors = new ActionErrors();
+
+            for(int i = 0; i < _items.length; i++) {
+                CartItem item = _items[i];
+                if(item.getQuantity() <= 0) {
+                    errors.add("invalidQuantity" + i, new ActionMessage("invalidquantity", item.getQuantity()));
+                }
+            }
+
+            return errors;
+        }
+    }
+
+    public static abstract class CartItem
+        implements Serializable {
+
+        private int _quantity;
+        private boolean _giftWrap;
+
+        public int getQuantity() {
+            return _quantity;
+        }
+
+        public void setQuantity(int quantity) {
+            _quantity = quantity;
+        }
+
+        public boolean isGiftWrap() {
+            return _giftWrap;
+        }
+
+        public void setGiftWrap(boolean giftWrap) {
+            _giftWrap = giftWrap;
+        }
+
+        public abstract double getPrice();
+    }
+
+    public static class PetCartItem
+        extends CartItem {
+
+        private PetType _pet;
+
+        public PetCartItem(PetType pet) {
+            _pet = pet;
+        }
+
+        public int getPetId() {
+            assert _pet != null;
+            return _pet.getPetID();
+        }
+
+        public String getName() {
+            assert _pet != null;
+            return _pet.getName();
+        }
+
+        public double getPrice() {
+            assert _pet != null;
+            return _pet.getPrice();
+        }
+
+        public String getDescription() {
+            assert _pet != null;
+            return _pet.getDescription();
+        }
+    }
+}

Propchange: beehive/trunk/samples/netui-samples/ui/repeaterediting/Controller.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/samples/netui-samples/ui/repeaterediting/index.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/samples/netui-samples/ui/repeaterediting/index.jsp?rev=232315&r1=232314&r2=232315&view=diff
==============================================================================
--- beehive/trunk/samples/netui-samples/ui/repeaterediting/index.jsp (original)
+++ beehive/trunk/samples/netui-samples/ui/repeaterediting/index.jsp Fri Aug 12 08:33:47 2005
@@ -1,76 +1,76 @@
-<%--
-   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
-
-<netui-data:declarePageInput name="totalPrice" type="java.lang.Double" required="true"/>
-
-<netui-template:template templatePage="/resources/template/template.jsp">
-  <netui-template:setAttribute name="sampleTitle" value="Editable Repeater"/>
-  <netui-template:section name="main">
-      <netui:form action="update">
-          <table border="0" cellspacing="5" cellpadding="5" width="50%">
-              <tr>
-                  <td colspan="4">
-                      <table border="0" width="100%">
-                          <tr>
-                              <td align="right">
-                                  Subtotal: <netui:label value="${pageInput.totalPrice}">
-                                                <netui:formatNumber pattern="$###,###.00"/>
-                                            </netui:label>
-                                  <br/>
-                                  <netui:anchor formSubmit="true">Update</netui:anchor>
-                              </td>
-                          </tr>
-                          <tr bgcolor="#eeeeff">
-                              <td>Items in Cart:</td>
-                          </tr>
-                      </table>
-                  </td>
-              </tr>
-              <tr>
-                  <td width="30%">Product</td><td>Price</td><td>Quantity</td><td>Gift Wrap <font size="1">(adds $4.96 / item)</font></td>
-              </tr>
-              <netui-data:repeater dataSource="actionForm.items">
-              <tr cellpadding="5" ${container.index % 2 == 1 ? "style=\"background-color:#eeeeff\"" : ""}>
-                  <td>${container.item.name}</td>
-                  <td>
-                      <netui:span value="${container.item.price}">
-                          <netui:formatNumber pattern="$#####.00"/>
-                      </netui:span>
-                  </td>
-                  <td>
-                      <netui:textBox dataSource="container.item.quantity" size="5"/><br/>
-                      <font size="2" color="#ee0000"><netui:error key="invalidQuantity${container.index}"/></font>
-                  </td>
-                  <td>
-                      <netui:checkBox dataSource="container.item.giftWrap"/>
-                  </td>
-              </tr>
-          </netui-data:repeater>
-          <tr>
-              <td colspan="4" align="right">
-                  <netui:anchor formSubmit="true">Update</netui:anchor>
-              </td>
-          </tr>
-      </table>
-  </netui:form>
-  </netui-template:section>
+<%--
+   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
+
+<netui-data:declarePageInput name="totalPrice" type="java.lang.Double" required="true"/>
+
+<netui-template:template templatePage="/resources/template/template.jsp">
+  <netui-template:setAttribute name="sampleTitle" value="Editable Repeater"/>
+  <netui-template:section name="main">
+      <netui:form action="update">
+          <table border="0" cellspacing="5" cellpadding="5" width="50%">
+              <tr>
+                  <td colspan="4">
+                      <table border="0" width="100%">
+                          <tr>
+                              <td align="right">
+                                  Subtotal: <netui:label value="${pageInput.totalPrice}">
+                                                <netui:formatNumber pattern="$###,###.00"/>
+                                            </netui:label>
+                                  <br/>
+                                  <netui:anchor formSubmit="true">Update</netui:anchor>
+                              </td>
+                          </tr>
+                          <tr bgcolor="#eeeeff">
+                              <td>Items in Cart:</td>
+                          </tr>
+                      </table>
+                  </td>
+              </tr>
+              <tr>
+                  <td width="30%">Product</td><td>Price</td><td>Quantity</td><td>Gift Wrap <font size="1">(adds $4.96 / item)</font></td>
+              </tr>
+              <netui-data:repeater dataSource="actionForm.items">
+              <tr cellpadding="5" ${container.index % 2 == 1 ? "style=\"background-color:#eeeeff\"" : ""}>
+                  <td>${container.item.name}</td>
+                  <td>
+                      <netui:span value="${container.item.price}">
+                          <netui:formatNumber pattern="$#####.00"/>
+                      </netui:span>
+                  </td>
+                  <td>
+                      <netui:textBox dataSource="container.item.quantity" size="5"/><br/>
+                      <font size="2" color="#ee0000"><netui:error key="invalidQuantity${container.index}"/></font>
+                  </td>
+                  <td>
+                      <netui:checkBox dataSource="container.item.giftWrap"/>
+                  </td>
+              </tr>
+          </netui-data:repeater>
+          <tr>
+              <td colspan="4" align="right">
+                  <netui:anchor formSubmit="true">Update</netui:anchor>
+              </td>
+          </tr>
+      </table>
+  </netui:form>
+  </netui-template:section>
 </netui-template:template>

Propchange: beehive/trunk/samples/netui-samples/ui/repeaterediting/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/samples/netui-samples/ui/select/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/samples/netui-samples/ui/select/Controller.java?rev=232315&r1=232314&r2=232315&view=diff
==============================================================================
--- beehive/trunk/samples/netui-samples/ui/select/Controller.java (original)
+++ beehive/trunk/samples/netui-samples/ui/select/Controller.java Fri Aug 12 08:33:47 2005
@@ -1,208 +1,208 @@
-/*
- * 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 ui.select;
-
-import java.util.Map;
-import java.util.LinkedHashMap;
-
-import org.apache.beehive.netui.pageflow.annotations.Jpf;
-import org.apache.beehive.netui.pageflow.PageFlowController;
-import org.apache.beehive.netui.pageflow.Forward;
-import org.apache.beehive.samples.controls.pets.Pets;
-import org.apache.beehive.samples.netui.beans.PetType;
-import org.apache.beehive.controls.api.bean.Control;
-
-@Jpf.Controller(
-    simpleActions=@Jpf.SimpleAction(name="begin",path="index.jsp")
-    )
-public class Controller
-    extends PageFlowController {
-
-    @Control
-    private Pets _petControl;
-
-    private Map _colorOptions = null;
-    private Map _colorOptionsIntKeys = null;
-
-    private PetType[] _pets = null;
-
-    protected void onCreate()
-        throws Exception {
-        _colorOptions = new LinkedHashMap();
-        _colorOptions.put("blue", "Blue");
-        _colorOptions.put("orange", "Orange");
-        _colorOptions.put("white", "White");
-        _colorOptions.put("black", "Black");
-
-        _colorOptionsIntKeys = new LinkedHashMap();
-        _colorOptionsIntKeys.put(1, "Blue");
-        _colorOptionsIntKeys.put(2, "Orange");
-        _colorOptionsIntKeys.put(3, "White");
-        _colorOptionsIntKeys.put(4, "Black");
-
-        _pets = _petControl.getPetList();
-    }
-
-    @Jpf.Action(forwards=
-        @Jpf.Forward(
-            name="success",
-            path="simpleSelect.jsp",
-            actionOutputs={
-                @Jpf.ActionOutput(name="colorMap", type=Map.class)
-            }
-    ))
-    public Forward showSimple() {
-        Forward forward = new Forward("success");
-        forward.addActionOutput("colorMap", _colorOptions);
-        return forward;
-    }
-
-    @Jpf.Action(forwards=
-        @Jpf.Forward(
-            name="success", path="simpleSelect.jsp",
-            actionOutputs = {
-                @Jpf.ActionOutput(name="colorMap", type=Map.class)
-            }
-        )
-    )
-    public Forward updateSimple(ColorForm form) {
-        Forward forward = new Forward("success");
-        forward.addActionOutput("colorMap", _colorOptions);
-        return forward;
-    }
-
-    @Jpf.Action(forwards=
-        @Jpf.Forward(
-            name="success",
-            path="simpleSelectWithIntKeys.jsp",
-            actionOutputs={
-                @Jpf.ActionOutput(name="colorMapWithIntKeys", type=Map.class)
-            }
-    ))
-    public Forward showSimpleWithIntKeys() {
-        Forward forward = new Forward("success");
-        forward.addActionOutput("colorMapWithIntKeys", _colorOptionsIntKeys);
-        return forward;
-    }
-
-    @Jpf.Action(forwards=
-        @Jpf.Forward(
-            name="success", path="simpleSelectWithIntKeys.jsp",
-            actionOutputs = {
-                @Jpf.ActionOutput(name="colorMapWithIntKeys", type=Map.class)
-            }
-        )
-    )
-    public Forward updateSimpleWithIntKeys(ColorIndexForm form) {
-        Forward forward = new Forward("success");
-        forward.addActionOutput("colorMapWithIntKeys", _colorOptionsIntKeys);
-        return forward;
-    }
-
-    @Jpf.Action(forwards=
-        @Jpf.Forward(
-            name="success",
-            path="repeatingSelect.jsp",
-            actionOutputs={
-                @Jpf.ActionOutput(name="petList", type=PetType.class)
-            }
-    ))
-    public Forward showRepeating() {
-        Forward forward = new Forward("success");
-        forward.addActionOutput("petList", _pets);
-        return forward;
-    }
-
-    @Jpf.Action(forwards=
-        @Jpf.Forward(
-            name="success", path="repeatingSelect.jsp",
-            actionOutputs = {
-                @Jpf.ActionOutput(name="petList", type=PetType.class)
-            }
-        )
-    )
-    public Forward updateRepeating(PetForm form) {
-        Forward forward = new Forward("success");
-        forward.addActionOutput("petList", _pets);
-        return forward;
-    }
-
-    @Jpf.Action(forwards=
-        @Jpf.Forward(
-            name="success",
-            path="repeatingSelectWithOptionBody.jsp",
-            actionOutputs={
-                @Jpf.ActionOutput(name="petList", type=PetType.class)
-            }
-    ))
-    public Forward showRepeatingWithOptionBody() {
-        Forward forward = new Forward("success");
-        forward.addActionOutput("petList", _pets);
-        return forward;
-    }
-
-    @Jpf.Action(forwards=
-        @Jpf.Forward(
-            name="success", path="repeatingSelectWithOptionBody.jsp",
-            actionOutputs = {
-                @Jpf.ActionOutput(name="petList", type=PetType.class)
-            }
-        )
-    )
-    public Forward updateRepeatingWithOptionBody(PetForm form) {
-        Forward forward = new Forward("success");
-        forward.addActionOutput("petList", _pets);
-        return forward;
-    }
-
-    public static class ColorForm {
-        private String _color = null;
-
-        public String getColor() {
-            return _color;
-        }
-
-        public void setColor(String color) {
-            _color = color;
-        }
-    }
-
-    public static class ColorIndexForm {
-        private Integer _colorIndex = null;
-
-        public Integer getColorIndex() {
-            return _colorIndex;
-        }
-
-        public void setColorIndex(Integer color) {
-            _colorIndex = color;
-        }
-    }
-
-    public static class PetForm {
-        private String _name = null;
-
-        public String getName() {
-            return _name;
-        }
-
-        public void setName(String name) {
-            _name = name;
-        }
-    }
+/*
+ * 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 ui.select;
+
+import java.util.Map;
+import java.util.LinkedHashMap;
+
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.samples.controls.pets.Pets;
+import org.apache.beehive.samples.netui.beans.PetType;
+import org.apache.beehive.controls.api.bean.Control;
+
+@Jpf.Controller(
+    simpleActions=@Jpf.SimpleAction(name="begin",path="index.jsp")
+    )
+public class Controller
+    extends PageFlowController {
+
+    @Control
+    private Pets _petControl;
+
+    private Map _colorOptions = null;
+    private Map _colorOptionsIntKeys = null;
+
+    private PetType[] _pets = null;
+
+    protected void onCreate()
+        throws Exception {
+        _colorOptions = new LinkedHashMap();
+        _colorOptions.put("blue", "Blue");
+        _colorOptions.put("orange", "Orange");
+        _colorOptions.put("white", "White");
+        _colorOptions.put("black", "Black");
+
+        _colorOptionsIntKeys = new LinkedHashMap();
+        _colorOptionsIntKeys.put(1, "Blue");
+        _colorOptionsIntKeys.put(2, "Orange");
+        _colorOptionsIntKeys.put(3, "White");
+        _colorOptionsIntKeys.put(4, "Black");
+
+        _pets = _petControl.getPetList();
+    }
+
+    @Jpf.Action(forwards=
+        @Jpf.Forward(
+            name="success",
+            path="simpleSelect.jsp",
+            actionOutputs={
+                @Jpf.ActionOutput(name="colorMap", type=Map.class)
+            }
+    ))
+    public Forward showSimple() {
+        Forward forward = new Forward("success");
+        forward.addActionOutput("colorMap", _colorOptions);
+        return forward;
+    }
+
+    @Jpf.Action(forwards=
+        @Jpf.Forward(
+            name="success", path="simpleSelect.jsp",
+            actionOutputs = {
+                @Jpf.ActionOutput(name="colorMap", type=Map.class)
+            }
+        )
+    )
+    public Forward updateSimple(ColorForm form) {
+        Forward forward = new Forward("success");
+        forward.addActionOutput("colorMap", _colorOptions);
+        return forward;
+    }
+
+    @Jpf.Action(forwards=
+        @Jpf.Forward(
+            name="success",
+            path="simpleSelectWithIntKeys.jsp",
+            actionOutputs={
+                @Jpf.ActionOutput(name="colorMapWithIntKeys", type=Map.class)
+            }
+    ))
+    public Forward showSimpleWithIntKeys() {
+        Forward forward = new Forward("success");
+        forward.addActionOutput("colorMapWithIntKeys", _colorOptionsIntKeys);
+        return forward;
+    }
+
+    @Jpf.Action(forwards=
+        @Jpf.Forward(
+            name="success", path="simpleSelectWithIntKeys.jsp",
+            actionOutputs = {
+                @Jpf.ActionOutput(name="colorMapWithIntKeys", type=Map.class)
+            }
+        )
+    )
+    public Forward updateSimpleWithIntKeys(ColorIndexForm form) {
+        Forward forward = new Forward("success");
+        forward.addActionOutput("colorMapWithIntKeys", _colorOptionsIntKeys);
+        return forward;
+    }
+
+    @Jpf.Action(forwards=
+        @Jpf.Forward(
+            name="success",
+            path="repeatingSelect.jsp",
+            actionOutputs={
+                @Jpf.ActionOutput(name="petList", type=PetType.class)
+            }
+    ))
+    public Forward showRepeating() {
+        Forward forward = new Forward("success");
+        forward.addActionOutput("petList", _pets);
+        return forward;
+    }
+
+    @Jpf.Action(forwards=
+        @Jpf.Forward(
+            name="success", path="repeatingSelect.jsp",
+            actionOutputs = {
+                @Jpf.ActionOutput(name="petList", type=PetType.class)
+            }
+        )
+    )
+    public Forward updateRepeating(PetForm form) {
+        Forward forward = new Forward("success");
+        forward.addActionOutput("petList", _pets);
+        return forward;
+    }
+
+    @Jpf.Action(forwards=
+        @Jpf.Forward(
+            name="success",
+            path="repeatingSelectWithOptionBody.jsp",
+            actionOutputs={
+                @Jpf.ActionOutput(name="petList", type=PetType.class)
+            }
+    ))
+    public Forward showRepeatingWithOptionBody() {
+        Forward forward = new Forward("success");
+        forward.addActionOutput("petList", _pets);
+        return forward;
+    }
+
+    @Jpf.Action(forwards=
+        @Jpf.Forward(
+            name="success", path="repeatingSelectWithOptionBody.jsp",
+            actionOutputs = {
+                @Jpf.ActionOutput(name="petList", type=PetType.class)
+            }
+        )
+    )
+    public Forward updateRepeatingWithOptionBody(PetForm form) {
+        Forward forward = new Forward("success");
+        forward.addActionOutput("petList", _pets);
+        return forward;
+    }
+
+    public static class ColorForm {
+        private String _color = null;
+
+        public String getColor() {
+            return _color;
+        }
+
+        public void setColor(String color) {
+            _color = color;
+        }
+    }
+
+    public static class ColorIndexForm {
+        private Integer _colorIndex = null;
+
+        public Integer getColorIndex() {
+            return _colorIndex;
+        }
+
+        public void setColorIndex(Integer color) {
+            _colorIndex = color;
+        }
+    }
+
+    public static class PetForm {
+        private String _name = null;
+
+        public String getName() {
+            return _name;
+        }
+
+        public void setName(String name) {
+            _name = name;
+        }
+    }
 }

Propchange: beehive/trunk/samples/netui-samples/ui/select/Controller.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/samples/netui-samples/ui/select/index.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/samples/netui-samples/ui/select/index.jsp?rev=232315&r1=232314&r2=232315&view=diff
==============================================================================
--- beehive/trunk/samples/netui-samples/ui/select/index.jsp (original)
+++ beehive/trunk/samples/netui-samples/ui/select/index.jsp Fri Aug 12 08:33:47 2005
@@ -1,43 +1,43 @@
-<%--
-   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
-
-<netui-template:template templatePage="/resources/template/template.jsp">
-  <netui-template:setAttribute name="sampleTitle" value="Select"/>
-  <netui-template:section name="main">
-    <dl>
-      <dt><netui:anchor action="showSimple" value="Simple Select with String Keys"/></dt>
-      <dd>Demonstrates a simple select box</dd>
-    </dl>
-    <dl>
-      <dt><netui:anchor action="showSimpleWithIntKeys" value="Simple Select with Integer Keys"/></dt>
-      <dd>Demonstrates a simple select box using integer keys</dd>
-    </dl>
-    <dl>
-      <dt><netui:anchor action="showRepeating" value="Repeating Select with String Keys"/></dt>
-      <dd>Demonstrates a select box rendering options from a data set</dd>
-    </dl>
-    <dl>
-      <dt><netui:anchor action="showRepeatingWithOptionBody" value="Repeating Select with Select Option Body Content and Integer Keys"/></dt>
-      <dd>Demonstrates a select box rendering options from a data set and expliicitly specifying the text of each select option.</dd>
-    </dl>
-  </netui-template:section>
+<%--
+   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
+
+<netui-template:template templatePage="/resources/template/template.jsp">
+  <netui-template:setAttribute name="sampleTitle" value="Select"/>
+  <netui-template:section name="main">
+    <dl>
+      <dt><netui:anchor action="showSimple" value="Simple Select with String Keys"/></dt>
+      <dd>Demonstrates a simple select box</dd>
+    </dl>
+    <dl>
+      <dt><netui:anchor action="showSimpleWithIntKeys" value="Simple Select with Integer Keys"/></dt>
+      <dd>Demonstrates a simple select box using integer keys</dd>
+    </dl>
+    <dl>
+      <dt><netui:anchor action="showRepeating" value="Repeating Select with String Keys"/></dt>
+      <dd>Demonstrates a select box rendering options from a data set</dd>
+    </dl>
+    <dl>
+      <dt><netui:anchor action="showRepeatingWithOptionBody" value="Repeating Select with Select Option Body Content and Integer Keys"/></dt>
+      <dd>Demonstrates a select box rendering options from a data set and expliicitly specifying the text of each select option.</dd>
+    </dl>
+  </netui-template:section>
 </netui-template:template>

Propchange: beehive/trunk/samples/netui-samples/ui/select/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/samples/netui-samples/ui/select/repeatingSelect.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/samples/netui-samples/ui/select/repeatingSelect.jsp?rev=232315&r1=232314&r2=232315&view=diff
==============================================================================
--- beehive/trunk/samples/netui-samples/ui/select/repeatingSelect.jsp (original)
+++ beehive/trunk/samples/netui-samples/ui/select/repeatingSelect.jsp Fri Aug 12 08:33:47 2005
@@ -1,43 +1,43 @@
-<%--
-   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
-
-<netui-data:declarePageInput name="petList" type="org.apache.beehive.samples.netui.beans.PetType"/>
-
-<netui-template:template templatePage="/resources/template/template.jsp">
-  <netui-template:setAttribute name="sampleTitle" value="Repeating Select Tag"/>
-  <netui-template:section name="main">
-      <br/>
-      <netui:form action="updateRepeating">
-          <br/>
-          Selected value: ${actionForm.name}
-          <br/>
-          <br/>
-          <netui:select dataSource="actionForm.name" optionsDataSource="${pageInput.petList}" repeater="true">
-              <netui:selectOption value="${container.item.name}" repeatingType="option"/>
-          </netui:select>
-          <br/>
-          <br/>
-          <netui:button value="Submit"/>
-      </netui:form>
-      <br/>
-  </netui-template:section>
+<%--
+   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
+
+<netui-data:declarePageInput name="petList" type="org.apache.beehive.samples.netui.beans.PetType"/>
+
+<netui-template:template templatePage="/resources/template/template.jsp">
+  <netui-template:setAttribute name="sampleTitle" value="Repeating Select Tag"/>
+  <netui-template:section name="main">
+      <br/>
+      <netui:form action="updateRepeating">
+          <br/>
+          Selected value: ${actionForm.name}
+          <br/>
+          <br/>
+          <netui:select dataSource="actionForm.name" optionsDataSource="${pageInput.petList}" repeater="true">
+              <netui:selectOption value="${container.item.name}" repeatingType="option"/>
+          </netui:select>
+          <br/>
+          <br/>
+          <netui:button value="Submit"/>
+      </netui:form>
+      <br/>
+  </netui-template:section>
 </netui-template:template>

Propchange: beehive/trunk/samples/netui-samples/ui/select/repeatingSelect.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/samples/netui-samples/ui/select/repeatingSelectWithOptionBody.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/samples/netui-samples/ui/select/repeatingSelectWithOptionBody.jsp?rev=232315&r1=232314&r2=232315&view=diff
==============================================================================
--- beehive/trunk/samples/netui-samples/ui/select/repeatingSelectWithOptionBody.jsp (original)
+++ beehive/trunk/samples/netui-samples/ui/select/repeatingSelectWithOptionBody.jsp Fri Aug 12 08:33:47 2005
@@ -1,45 +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-databinding-1.0" prefix="netui-data"%>
-<%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
-<%@ taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
-
-<netui-data:declarePageInput name="petList" type="org.apache.beehive.samples.netui.beans.PetType"/>
-
-<netui-template:template templatePage="/resources/template/template.jsp">
-  <netui-template:setAttribute name="sampleTitle" value="Repeating Select Tag using a Select Option Body"/>
-  <netui-template:section name="main">
-      <br/>
-      <netui:form action="updateRepeatingWithOptionBody">
-          <br/>
-          Selected value: ${actionForm.name}
-          <br/>
-          <br/>
-          <netui:select dataSource="actionForm.name" optionsDataSource="${pageInput.petList}" repeater="true">
-              <netui:selectOption value="${container.item.petID}" repeatingType="option">
-                  <netui:content value="${container.item.name}"/>
-              </netui:selectOption>
-          </netui:select>
-          <br/>
-          <br/>
-          <netui:button value="Submit"/>
-      </netui:form>
-      <br/>
-  </netui-template:section>
+<%--
+   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
+
+<netui-data:declarePageInput name="petList" type="org.apache.beehive.samples.netui.beans.PetType"/>
+
+<netui-template:template templatePage="/resources/template/template.jsp">
+  <netui-template:setAttribute name="sampleTitle" value="Repeating Select Tag using a Select Option Body"/>
+  <netui-template:section name="main">
+      <br/>
+      <netui:form action="updateRepeatingWithOptionBody">
+          <br/>
+          Selected value: ${actionForm.name}
+          <br/>
+          <br/>
+          <netui:select dataSource="actionForm.name" optionsDataSource="${pageInput.petList}" repeater="true">
+              <netui:selectOption value="${container.item.petID}" repeatingType="option">
+                  <netui:content value="${container.item.name}"/>
+              </netui:selectOption>
+          </netui:select>
+          <br/>
+          <br/>
+          <netui:button value="Submit"/>
+      </netui:form>
+      <br/>
+  </netui-template:section>
 </netui-template:template>

Propchange: beehive/trunk/samples/netui-samples/ui/select/repeatingSelectWithOptionBody.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/samples/netui-samples/ui/select/simpleSelect.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/samples/netui-samples/ui/select/simpleSelect.jsp?rev=232315&r1=232314&r2=232315&view=diff
==============================================================================
--- beehive/trunk/samples/netui-samples/ui/select/simpleSelect.jsp (original)
+++ beehive/trunk/samples/netui-samples/ui/select/simpleSelect.jsp Fri Aug 12 08:33:47 2005
@@ -1,41 +1,41 @@
-<%--
-   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
-
-<netui-data:declarePageInput name="colorMap" type="java.util.Map"/>
-
-<netui-template:template templatePage="/resources/template/template.jsp">
-  <netui-template:setAttribute name="sampleTitle" value="Simple Select Tag"/>
-  <netui-template:section name="main">
-      <br/>
-      <netui:form action="updateSimple">
-          <br/>
-          Selected value: ${actionForm.color}
-          <br/>
-          <br/>
-          <netui:select dataSource="actionForm.color" optionsDataSource="${pageInput.colorMap}"/>
-          <br/>
-          <br/>
-          <netui:button value="Submit"/>
-      </netui:form>
-      <br/>
-  </netui-template:section>
+<%--
+   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
+
+<netui-data:declarePageInput name="colorMap" type="java.util.Map"/>
+
+<netui-template:template templatePage="/resources/template/template.jsp">
+  <netui-template:setAttribute name="sampleTitle" value="Simple Select Tag"/>
+  <netui-template:section name="main">
+      <br/>
+      <netui:form action="updateSimple">
+          <br/>
+          Selected value: ${actionForm.color}
+          <br/>
+          <br/>
+          <netui:select dataSource="actionForm.color" optionsDataSource="${pageInput.colorMap}"/>
+          <br/>
+          <br/>
+          <netui:button value="Submit"/>
+      </netui:form>
+      <br/>
+  </netui-template:section>
 </netui-template:template>

Propchange: beehive/trunk/samples/netui-samples/ui/select/simpleSelect.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/samples/netui-samples/ui/select/simpleSelectWithIntKeys.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/samples/netui-samples/ui/select/simpleSelectWithIntKeys.jsp?rev=232315&r1=232314&r2=232315&view=diff
==============================================================================
--- beehive/trunk/samples/netui-samples/ui/select/simpleSelectWithIntKeys.jsp (original)
+++ beehive/trunk/samples/netui-samples/ui/select/simpleSelectWithIntKeys.jsp Fri Aug 12 08:33:47 2005
@@ -1,41 +1,41 @@
-<%--
-   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
-
-<netui-data:declarePageInput name="colorMapWithIntKeys" type="java.util.Map"/>
-
-<netui-template:template templatePage="/resources/template/template.jsp">
-  <netui-template:setAttribute name="sampleTitle" value="Simple Select Tag"/>
-  <netui-template:section name="main">
-      <br/>
-      <netui:form action="updateSimpleWithIntKeys">
-          <br/>
-          Selected value: ${actionForm.colorIndex}
-          <br/>
-          <br/>
-          <netui:select dataSource="actionForm.colorIndex" optionsDataSource="${pageInput.colorMapWithIntKeys}" defaultValue="1"/>
-          <br/>
-          <br/>
-          <netui:button value="Submit"/>
-      </netui:form>
-      <br/>
-  </netui-template:section>
+<%--
+   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://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
+
+<netui-data:declarePageInput name="colorMapWithIntKeys" type="java.util.Map"/>
+
+<netui-template:template templatePage="/resources/template/template.jsp">
+  <netui-template:setAttribute name="sampleTitle" value="Simple Select Tag"/>
+  <netui-template:section name="main">
+      <br/>
+      <netui:form action="updateSimpleWithIntKeys">
+          <br/>
+          Selected value: ${actionForm.colorIndex}
+          <br/>
+          <br/>
+          <netui:select dataSource="actionForm.colorIndex" optionsDataSource="${pageInput.colorMapWithIntKeys}" defaultValue="1"/>
+          <br/>
+          <br/>
+          <netui:button value="Submit"/>
+      </netui:form>
+      <br/>
+  </netui-template:section>
 </netui-template:template>

Propchange: beehive/trunk/samples/netui-samples/ui/select/simpleSelectWithIntKeys.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/petstoreWeb/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/petstoreWeb/build.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/petstoreWeb/src/sql/initDB.sql
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/petstoreWeb/web/WEB-INF/server-config.wsdd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/petstoreWeb/ws/PetstoreInventoryManager.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-enhanced/WEB-INF/server-config.wsdd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-enhanced/WEB-INF/src-ws/web/Service.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-enhanced/WEB-INF/src/log4j.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-enhanced/WEB-INF/src/org/apache/beehive/sample/wsm/addressbook_enhanced/Address.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-enhanced/WEB-INF/src/org/apache/beehive/sample/wsm/addressbook_enhanced/AddressBookImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-enhanced/WEB-INF/src/org/apache/beehive/sample/wsm/addressbook_enhanced/EnhancedAddressBook.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-enhanced/WEB-INF/src/org/apache/beehive/sample/wsm/addressbook_enhanced/InvalidAddressException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-enhanced/WEB-INF/src/org/apache/beehive/sample/wsm/addressbook_enhanced/InvalidNameException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-enhanced/WEB-INF/src/org/apache/beehive/sample/wsm/addressbook_enhanced/Phone.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-enhanced/WEB-INF/src/org/apache/beehive/sample/wsm/addressbook_enhanced/StateType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-enhanced/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-enhanced/happyaxis.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-enhanced/index.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-fromWSDL/WEB-INF/server-config.wsdd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-fromWSDL/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-fromWSDL/WEB-INF/wsdl/fromWSDL.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/samples/wsm-addressbook-fromWSDL/happyaxis.jsp
------------------------------------------------------------------------------
    svn:eol-style = native