Author: dolander
Date: Mon Feb 7 07:51:17 2005
New Revision: 151724
URL: http://svn.apache.org/viewcvs?view=rev&rev=151724
Log:
Forgot to check in the actual test.
Added:
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j189/
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j189/Controller.jpf
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j189/form.jsp
Added:
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j189/Controller.jpf
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j189/Controller.jpf?view=auto&rev=151724
==============================================================================
---
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j189/Controller.jpf
(added)
+++
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j189/Controller.jpf
Mon Feb 7 07:51:17 2005
@@ -0,0 +1,107 @@
+package bugs.j189;
+
+import javax.servlet.http.HttpSession;
+import org.apache.beehive.netui.pageflow.FormData;
+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.netui.tags.tree.TreeElement;
+
+/**
+ * This is the default controller for a blank web application.
+ */
[EMAIL PROTECTED]
+public class Controller extends PageFlowController
+{
+
+ private String _text;
+ public String getText() {
+ return _text;
+ }
+
+ private String _method;
+ public String getMethod() {
+ return _method;
+ }
+
+ private TreeElement _tree;
+
+ private TreeElement _tree2;
+
+ public TreeElement getTree(){
+ return _tree;
+ }
+ public void setTree(TreeElement t) {
+ _tree = t;
+ }
+
+ public TreeElement getTree2(){
+ return _tree2;
+ }
+ public void setTree2(TreeElement t) {
+ _tree2 = t;
+ }
+
+ @Jpf.Action(
+ forwards={
+ @Jpf.Forward(name="index", path="form.jsp")
+ }
+ )
+ protected Forward begin()
+ {
+ return new Forward("index");
+ }
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ })
+ protected Forward back(Bean form)
+ {
+ Forward success = new Forward("success");
+ return success;
+ }
+
+ public static class Bean extends FormData
+ {
+ private String text1;
+ private String text2;
+
+ public String getText1()
+ {
+ return text1;
+ }
+
+ public void setText1(String value)
+ {
+ text1 = value;
+ }
+
+ public String getText2()
+ {
+ return text2;
+ }
+
+ public void setText2(String value)
+ {
+ text2 = value;
+ }
+ }
+
+ public static class Bean2 extends FormData
+ {
+ private String text1;
+
+ public String getText1()
+ {
+ return text1;
+ }
+
+ public void setText1(String value)
+ {
+ text1 = value;
+ }
+
+ }
+
+}
Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j189/form.jsp
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j189/form.jsp?view=auto&rev=151724
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j189/form.jsp
(added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j189/form.jsp
Mon Feb 7 07:51:17 2005
@@ -0,0 +1,45 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+<%@ taglib prefix="netui-data"
uri="http://beehive.apache.org/netui/tags-databinding-1.0"%>
+<%@ taglib prefix="netui-template"
uri="http://beehive.apache.org/netui/tags-template-1.0"%>
+
+
+<netui:html>
+ <head>
+ <netui:base/>
+ </head>
+ <netui:body>
+ <p style="color:green">The JavaScript lookupIdScope method required
+ a separator character. Now it should default to the empty string.
+ You see this below, in the second test, the value "one".
+ </p>
+ <netui:scriptContainer idScope="one" >
+ <netui:form tagId="form" action="back">
+ Form JS Output Test -- JIRA169<br/>
+ <netui:textBox dataSource="actionForm.text1" /><br/>
+ <netui:button value="Submit"/><br/>
+ <p id="javaOut"></p>
+ </netui:form>
+
+ </netui:scriptContainer>
+
+ <netui:scriptBlock placement="after">
+
+ var p = document.getElementById("javaOut");
+ var val = "<b>Document Access</b><br/>";
+ var formTag = document.getElementById(lookupIdByTagId("form", p));
+ val = val + "Form Scope Id (Legacy Get): <b>" + getScopeId(formTag) +
"</b><br/>";
+ val = val + "Form Scope Id (non-Legacy Lookup): <b>" +
lookupIdScope(formTag) + "</b><br/>";
+ val = val + "Form Name: <b>" + getNetuiTagName("form", formTag) +
"</b><br/>";
+ val = val + "Form ID: <b>" + lookupIdByTagId("form", formTag) +
"</b><br/>";
+ val = val + "Form Name By Lookup: <b>" + lookupNameByTagId("form",
formTag) + "</b><br/> <br/>";
+ val = val + "<b>Lookup by lookup*(\"tagId\") signature: </b><br/>";
+ val = val + "Form ID: <b>" + lookupIdByTagId("form") + "</b><br/>";
+ val = val + "Form Name: <b>" + getNetuiTagName("form",p) + "</b><br/>";
+ val = val + "Form Name By Lookup: <b>" + lookupNameByTagId("form",p) +
"</b><br/>";
+
+ p.innerHTML = val;
+ </netui:scriptBlock>
+ </netui:body>
+</netui:html>
+
\ No newline at end of file