You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by do...@apache.org on 2004/12/12 16:55:15 UTC

svn commit: r111654 - in incubator/beehive/trunk/netui: src/tags-html/org/apache/beehive/netui/tags src/tags-html/org/apache/beehive/netui/tags/html src/tags-html/org/apache/beehive/netui/tags/tree src/tags-template/org/apache/beehive/netui/tags/template test/webapps/drt/coreWeb/WEB-INF test/webapps/drt/testRecorder/tests

Author: dolander
Date: Sun Dec 12 07:55:14 2004
New Revision: 111654

URL: http://svn.apache.org/viewcvs?view=rev&rev=111654
Log:
Finish the JavaScript support for JSP pages without ScriptContainer support.
Rename the addTagIdMapping() method to mapLegacyTagId.
Update test results for changes.
Turn on both default and legacy javascript support in the DRT webapp



Modified:
   incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/AbstractClassicTag.java
   incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/AbstractSimpleTag.java
   incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/IScriptReporter.java
   incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java
   incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlBaseTag.java
   incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/JavaScriptUtils.java
   incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/RewriteName.java
   incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/ScriptContainer.java
   incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/javaScript.properties
   incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/Tree.java
   incubator/beehive/trunk/netui/src/tags-template/org/apache/beehive/netui/tags/template/DivPanel.java
   incubator/beehive/trunk/netui/src/tags-template/org/apache/beehive/netui/tags/template/Section.java
   incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/WEB-INF/local-netui-config.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34263.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ButtonSubmitTagId.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridPagerCustomSelect.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsAllScript.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsAllScriptHtml.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsFind.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsNoContainers.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/OnTest.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/RtexpTagId.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/TagIds.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/XhtmlFormLabel.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/cr183774.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsScriptScopeId.xml

Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/AbstractClassicTag.java
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/AbstractClassicTag.java?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/AbstractClassicTag.java&r1=111653&p2=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/AbstractClassicTag.java&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/AbstractClassicTag.java	(original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/AbstractClassicTag.java	Sun Dec 12 07:55:14 2004
@@ -95,7 +95,6 @@
         DefaultNamingChain = Collections.unmodifiableList(l);
     }
 
-    private ExpressionEvaluator ee = null;      // cache the expression evaluator
     private ErrorHandling _eh;                  // This class will track and handle errors
 
     /////////////////////////// Generic Services support ////////////////////////////
@@ -112,7 +111,6 @@
      */
     protected void localRelease()
     {
-        ee = null;
        _eh = null;
     }
 
@@ -436,11 +434,11 @@
      * @param value
      * @return String 
      */
-    protected String addTagIdMapping(String tagId, String value)
+    protected String mapLegacyTagId(String tagId, String value)
     {
         IScriptReporter scriptReporter = getScriptReporter();
         if (scriptReporter != null) {
-            scriptReporter.addTagId(tagId, value);
+            scriptReporter.addLegacyTagIdMappings(tagId, value);
             return null;
         }
         return tagId;

Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/AbstractSimpleTag.java
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/AbstractSimpleTag.java?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/AbstractSimpleTag.java&r1=111653&p2=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/AbstractSimpleTag.java&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/AbstractSimpleTag.java	(original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/AbstractSimpleTag.java	Sun Dec 12 07:55:14 2004
@@ -32,6 +32,13 @@
      */
     public abstract String getTagName();
 
+    /**
+     *
+     * @param trim
+     * @return
+     * @throws JspException
+     * @throws IOException
+     */
     protected String getBufferBody(boolean trim)
             throws JspException, IOException
     {
@@ -105,6 +112,7 @@
         JspContext ctxt = getJspContext();
         if (ctxt instanceof PageContext)
             return (PageContext) ctxt;
+
         // @todo: need to log an error
         assert(false) : "The JspContext was not a PageContext";
         return null;
@@ -220,11 +228,11 @@
      * @param value
      * @return String
      */
-    protected String addTagIdMapping(String tagId, String value)
+    protected String mapLegacyTagId(String tagId, String value)
     {
         IScriptReporter scriptReporter = getScriptReporter();
         if (scriptReporter != null) {
-            scriptReporter.addTagId(tagId, value);
+            scriptReporter.addLegacyTagIdMappings(tagId, value);
             return null;
         }
         return tagId;

Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/IScriptReporter.java
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/IScriptReporter.java?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/IScriptReporter.java&r1=111653&p2=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/IScriptReporter.java&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/IScriptReporter.java	(original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/IScriptReporter.java	Sun Dec 12 07:55:14 2004
@@ -19,8 +19,6 @@
 
 import org.apache.beehive.netui.tags.rendering.AbstractRenderAppender;
 
-import javax.servlet.jsp.PageContext;
-
 /**
  * A <code>ScriptReporter</code> acts as a container for JavaScript generated by children of
  * the tag.  Usually a <code>ScriptReporter</code> will gather up all of the JavaScript
@@ -63,7 +61,7 @@
      * @param tagId   - the id of a child tag.
      * @param tagName - the name of a child tag.
      */
-    void addTagId(String tagId, String tagName);
+    void addLegacyTagIdMappings(String tagId, String tagName);
 
     void addTagIdMappings(String tagId, String realId, String realName);
 

Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java&r1=111653&p2=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java	(original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java	Sun Dec 12 07:55:14 2004
@@ -682,7 +682,7 @@
         // if tagId is set we need to add a mapping to the 'id'
         String tagId = getTagId();
         if (tagId != null) {
-            idScript = addTagIdMapping(tagId, _realName);
+            idScript = mapLegacyTagId(tagId, _realName);
         }
 
         // create real form name attribute

Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlBaseTag.java
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlBaseTag.java?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlBaseTag.java&r1=111653&p2=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlBaseTag.java&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlBaseTag.java	(original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlBaseTag.java	Sun Dec 12 07:55:14 2004
@@ -495,40 +495,42 @@
         String id = state.id;
         state.id = rewriteName(id);
 
-        // @todo: add this back under the compat javascript flag
         // Legacy Java Script support -- This writes out a single table with both the id and names
         // mixed.  This is legacy support to match the pre beehive behavior.
         String idScript = null;
         if (TagConfig.isLegacyJavaScript()) {
             if (!ctrlState) {
-                idScript = addTagIdMapping(id, state.id);
+                idScript = mapLegacyTagId(id, state.id);
             }
             else {
                 AbstractHtmlControlState cState = (AbstractHtmlControlState) state;
                 if (cState.name != null)
-                    idScript = addTagIdMapping(id, cState.name);
+                    idScript = mapLegacyTagId(id, cState.name);
                 else
-                    idScript = addTagIdMapping(id, state.id);
+                    idScript = mapLegacyTagId(id, state.id);
             }
         }
-        //if (idScript != null)
-        //    javaScript.setRef(idScript);
-        //}
 
         // map the tagId to the real id
-       if (TagConfig.isDefaultJavaScript()) {
+        if (TagConfig.isDefaultJavaScript()) {
+            String script;
             if (ctrlState) {
                 AbstractHtmlControlState cState = (AbstractHtmlControlState) state;
-                idScript = addTagIdMappings(id, cState.id, cState.name);
+                script = mapTagId(id, cState.id, cState.name);
             }
             else {
-                idScript = addTagIdMapping(id, state.id);
+                script = mapLegacyTagId(id, state.id);
             }
-       }
-        //String idScript = addTagIdMapping(id, state.id);
-        //return idScript;
 
-        return idScript;
+            // if we wrote out script in legacy mode, we need to make sure we preserve it.
+            if (idScript != null) {
+                idScript = idScript + script;
+            }
+            else {
+                idScript = script;
+            }
+       }
+       return idScript;
     }
 
     /**
@@ -551,22 +553,21 @@
      * @param value
      * @return String
      */
-    protected String addTagIdMapping(String tagId, String value)
+    protected String mapLegacyTagId(String tagId, String value)
     {
-        String s = super.addTagIdMapping(tagId, value);
+        String s = super.mapLegacyTagId(tagId, value);
         if (s == null)
             return null;
 
-        // without a scripRepoter we need to create the actual
-        // JavaScript that will be written out
+        // without a scripRepoter we need to create the actual JavaScript that will be written out
         JavaScriptUtils jsu = getJavaScriptUtils((HttpServletRequest) pageContext.getRequest());
-        StringBuilder sb = new StringBuilder(32);
+        StringBuilder sb = new StringBuilder(64);
         StringBuilderRenderAppender writer = new StringBuilderRenderAppender(sb);
         jsu.getTagIdMapping(tagId, value, writer);
         return sb.toString();
     }
 
-    protected String addTagIdMappings(String tagId, String realId, String realName)
+    protected String mapTagId(String tagId, String realId, String realName)
     {
         IScriptReporter scriptReporter = getScriptReporter();
         if (scriptReporter != null) {
@@ -574,13 +575,11 @@
             return null;
         }
 
-        // without a scripRepoter we need to create the actual
-        // JavaScript that will be written out
+        // without a scripRepoter we need to create the actual JavaScript that will be written out
         JavaScriptUtils jsu = getJavaScriptUtils((HttpServletRequest) pageContext.getRequest());
-        StringBuilder sb = new StringBuilder(32);
+        StringBuilder sb = new StringBuilder(128);
         StringBuilderRenderAppender writer = new StringBuilderRenderAppender(sb);
-        // @todo: need to do this correctly this needs to map to the other javascript
-        jsu.getTagIdMapping(tagId, realId, writer);
+        jsu.getTagIdMapping(tagId, realId, realName, writer);
         return sb.toString();
     }
 

Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/JavaScriptUtils.java
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/JavaScriptUtils.java?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/JavaScriptUtils.java&r1=111653&p2=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/JavaScriptUtils.java&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/JavaScriptUtils.java	(original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/JavaScriptUtils.java	Sun Dec 12 07:55:14 2004
@@ -32,19 +32,36 @@
  */
 public class JavaScriptUtils implements Serializable
 {
+    // bit positions for the JavaScript features that can be written out.
+    private static final int LEGACY_LOOKUP      = 0x0001;
+    private static final int ID_LOOKUP          = 0x0002;
+    private static final int NAME_LOOKUP        = 0x0004;
+    private static final int SCOPE_LOOKUP       = 0x0008;
+    private static final int ROLLOVER           = 0x0010;
+    private static final int ANCHOR_SUBMIT      = 0x0020;
+    private static final int ALLOCATE_LEGACY    = 0x0040;
+    private static final int ALLOCATE_ID        = 0x0080;
+    private static final int ALLOCATE_NAME      = 0x0100;
+
     private static final String BUNDLE_NAME = "org.apache.beehive.netui.tags.html.javaScript";
-    private boolean _anchorFormSubmit = false;
-    private boolean _rollover = false;
-    private boolean _writeLookupMethods = false;
+
+    // this is a integer bitmap indicating various feature have been written out or not
+    private int _javaScriptFeatures;
+
+    // This points to the bundle
     private static ResourceBundle _bundle;
 
+    /**
+     *
+     * @param scriptReporter
+     * @param results
+     */
     public void writeAnchorFormSubmit(IScriptReporter scriptReporter, AbstractRenderAppender results)
     {
         // check to see if we have already written out the form submit
-        if (_anchorFormSubmit)
+        if ((_javaScriptFeatures & ANCHOR_SUBMIT) != 0)
             return;
-
-        _anchorFormSubmit = true;
+        _javaScriptFeatures |= ANCHOR_SUBMIT;
 
         // get the method and write it.
         String s = getString("anchorFormSubmit", null);
@@ -61,6 +78,10 @@
     }
 
     /**
+     *
+     * @param action
+     * @param newAction
+     * @return
      */
     public String writeAnchorFormSubmitAction(String action, String newAction)
     {
@@ -75,6 +96,9 @@
 
     /**
      * this will write out the form focus script block
+     * @param formName
+     * @param fieldName
+     * @param results
      */
     public static void getFocusScript(String formName, String fieldName, AbstractRenderAppender results)
     {
@@ -89,25 +113,79 @@
     /**
      * This method will write out a tagId map entry for when there
      * isn't a ScriptContainer defined.
+     * @param tagId the tagId value
+     * @param value the "real" value of the written out
+     * @param results the JavaScript that will be output
      */
     public void getTagIdMapping(String tagId, String value, AbstractRenderAppender results)
     {
-        String s = getString("singleIdMappingTable", new Object[]{
-            tagId, value});
-        String meths = writeNetuiNameFunctions(null,true,true,true);
-        if (meths != null)
-            s += meths;
-        writeScriptBlock(results, s);
+        if ((_javaScriptFeatures & ALLOCATE_LEGACY) == 0) {
+            _javaScriptFeatures |= ALLOCATE_LEGACY;
+            String s = getString("singleIdMappingTable", new Object[] {tagId, value});
+            String meths = writeNetuiNameFunctions(null,true,false,false);
+            if (meths != null)
+                s += meths;
+            writeScriptBlock(results, s);
+        }
+        else {
+            String s = getString("idMappingEntry", new Object[]{tagId, value});
+            writeScriptBlock(results, s);
+
+        }
+    }
+
+    /**
+     *
+     * @param tagId
+     * @param realId
+     * @param realName
+     * @param results
+     */
+    public void getTagIdMapping(String tagId, String realId, String realName, AbstractRenderAppender results)
+    {
+        StringBuilder sb = new StringBuilder(128);
+        if (realId != null) {
+            if ((_javaScriptFeatures & ALLOCATE_ID) == 0) {
+                _javaScriptFeatures |= ALLOCATE_ID;
+                String s = getString("singleIdToIdMappingTable", new Object[]{tagId, realId});
+                String meths = writeNetuiNameFunctions(null, false, true, false);
+                if (meths != null)
+                    s += meths;
+                sb.append(s);
+            } else {
+                String s = getString("tagIdMappingEntry", new Object[]{tagId, realId});
+                sb.append(s);
+            }
+        }
+
+        if (realName != null) {
+            if ((_javaScriptFeatures & ALLOCATE_NAME) == 0) {
+                _javaScriptFeatures |= ALLOCATE_NAME;
+                String s = getString("singleIdToNameMappingTable", new Object[] {tagId, realName});
+                String meths = writeNetuiNameFunctions(null,false,false,true);
+                if (meths != null)
+                    s += meths;
+                sb.append(s);
+            }
+            else {
+                String s = getString("tagIdNameMappingEntry", new Object[]{tagId, realName});
+                sb.append(s);
+            }
+        }
+        writeScriptBlock(results, sb.toString());
     }
 
     /**
      *
+     * @param scriptReporter
+     * @param results
      */
     public void writeRollover(IScriptReporter scriptReporter, AbstractRenderAppender results)
     {
-        if (_rollover)
+        // check if we have already written out the rollover feature
+        if ((_javaScriptFeatures & ROLLOVER) != 0)
             return;
-        _rollover = true;
+        _javaScriptFeatures |= ROLLOVER;
 
         String s = getString("rollover", null);
         if (scriptReporter != null) {
@@ -119,6 +197,13 @@
         return;
     }
 
+    /**
+     *
+     * @param scriptRepoter
+     * @param mapObj
+     * @param entries
+     * @return
+     */
     public String writeIdMap(IScriptReporter scriptRepoter, String mapObj, String entries)
     {
         String s = getString(mapObj, new Object[]{entries});
@@ -129,61 +214,36 @@
         return s;
     }
 
+    /**
+     *
+     * @param scriptReporter
+     * @param writeLegacy
+     * @param writeId
+     * @param writeName
+     * @return
+     */
     public String writeNetuiNameFunctions(IScriptReporter scriptReporter, boolean writeLegacy, boolean writeId, boolean writeName)
     {
-        if (_writeLookupMethods)
-            return null;
-        _writeLookupMethods = true;
-
         // allocate a String Buffer only if there is no script reporter
         StringBuilder sb = null;
         if (scriptReporter == null)
             sb = new StringBuilder(256);
 
-        String s;
         // if we are supporting legacy javascript then output the original javascript method
         if (TagConfig.isLegacyJavaScript() && writeLegacy) {
-            s = getString("getNetuiTagNameAdvanced", null);
-            if (scriptReporter != null)
-                scriptReporter.addScriptFunction(s);
-            else {
-                sb.append(s);
-                sb.append("\n");
-            }
+            writeLookupMethod(scriptReporter,sb,"getNetuiTagNameAdvanced",LEGACY_LOOKUP);
         }
 
         // if we are supporting the default javascript then output the lookup methods for id and name
         if (TagConfig.isDefaultJavaScript()) {
-            if (writeId) {
-                s = getString("lookupIdByTagId", null);
-                if (scriptReporter != null)
-                    scriptReporter.addScriptFunction(s);
-                else {
-                    sb.append(s);
-                    sb.append("\n");
-                }
-            }
+            if (writeId)
+                writeLookupMethod(scriptReporter,sb,"lookupIdByTagId",ID_LOOKUP);
 
-            if (writeName) {
-                s = getString("lookupNameByTagId", null);
-                if (scriptReporter != null)
-                    scriptReporter.addScriptFunction(s);
-                else {
-                    sb.append(s);
-                    sb.append("\n");
-                }
-            }
-        }
-
-        // output the scopeId lookup method.
-        s = getString("getScopeId", null);
-        if (scriptReporter != null)
-            scriptReporter.addScriptFunction(s);
-        else {
-            sb.append(s);
-            sb.append("\n");
+            if (writeName)
+                writeLookupMethod(scriptReporter,sb,"lookupNameByTagId",NAME_LOOKUP);
         }
 
+        writeLookupMethod(scriptReporter,sb,"getScopeId",SCOPE_LOOKUP);
         return (sb != null) ? sb.toString() : null;
     }
 
@@ -202,12 +262,20 @@
         writeScriptEnd(results);
     }
 
+    /**
+     *
+     * @param results
+     */
     public static void writeScriptStart(AbstractRenderAppender results)
     {
         results.append("\n\n<script language=\"JavaScript\" type=\"text/JavaScript\">\n");
         results.append("<!--\n");
     }
 
+    /**
+     *
+     * @param results
+     */
     public static void writeScriptEnd(AbstractRenderAppender results)
     {
         results.append("-->\n");
@@ -241,8 +309,21 @@
     {
         if (_bundle == null)
             _bundle = ResourceBundle.getBundle(BUNDLE_NAME);
-
         return _bundle;
     }
 
+    private void writeLookupMethod(IScriptReporter scriptReporter,StringBuilder sb,String bundleString, int feature)
+    {
+        if ((_javaScriptFeatures & feature) != 0)
+            return;
+        _javaScriptFeatures |= feature;
+
+        String s = getString(bundleString, null);
+        if (scriptReporter != null)
+            scriptReporter.addScriptFunction(s);
+        else {
+            sb.append(s);
+            sb.append("\n");
+        }
+    }
 }

Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/RewriteName.java
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/RewriteName.java?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/RewriteName.java&r1=111653&p2=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/RewriteName.java&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/RewriteName.java	(original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/RewriteName.java	Sun Dec 12 07:55:14 2004
@@ -104,7 +104,7 @@
         // there is now script container, we will eat the <script> blocks
         // because we cannot write them out in the middle of the tag being
         // written
-        addTagIdMapping(_name, realName);
+        mapLegacyTagId(_name, realName);
         write(realName);
         localRelease();
         return SKIP_BODY;

Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/ScriptContainer.java
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/ScriptContainer.java?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/ScriptContainer.java&r1=111653&p2=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/ScriptContainer.java&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/ScriptContainer.java	(original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/ScriptContainer.java	Sun Dec 12 07:55:14 2004
@@ -123,7 +123,7 @@
      * @param tagId   - the id of a child tag.
      * @param tagName - the name of a child tag.
      */
-    public void addTagId(String tagId, String tagName)
+    public void addLegacyTagIdMappings(String tagId, String tagName)
     {
         assert (tagId != null) : "The parameter 'tagId' must not be null";
         assert (tagName != null) : "The parameter 'tagName' must not be null";
@@ -436,10 +436,8 @@
             }
         }
 
-        if (writeLegacy || writeId || writeName) {
+        if (writeLegacy || writeId || writeName)
             jsu.writeNetuiNameFunctions(this, writeLegacy, writeId, writeName);
-        }
-
 
         if (_codeBlocks != null && _codeBlocks.size() > 0) {
             if (!script) {

Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/javaScript.properties
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/javaScript.properties?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/javaScript.properties&r1=111653&p2=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/javaScript.properties&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/javaScript.properties	(original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/javaScript.properties	Sun Dec 12 07:55:14 2004
@@ -140,13 +140,28 @@
 \   return getScopeId(tag.parentElement);\n\
 }\n
 
-# JavaScript that will become the mapping between the id and real name
+# JavaScript that will become the mapping between the id and real name (legacy mode)
 singleIdMappingTable=\
 // Build the netui_names table to map the tagId attributes\n\
 // to the real id written into the HTML\n\
 if (netui_names == null)\n\
 \   var netui_names = new Object();\n\
 netui_names.{0}="{1}"\n
+
+#JavaScript that will become the mapping between the id and the real name
+singleIdToNameMappingTable=\
+\n// map tagId to "real name"\n\
+if (netui_tagIdNameMap == null)\n\
+\   var netui_tagIdNameMap = new Object();\n\
+netui_tagIdNameMap.{0}="{1}"\n
+
+#JavaScript that will become the mapping between the id and the real id
+singleIdToIdMappingTable=\
+\n// map tagId to "real name"\n\
+if (netui_tagIdMap == null)\n\
+\   var netui_tagIdMap = new Object();\n\
+netui_tagIdMap.{0}="{1}"\n
+
 
 # Define the base NetUI variable for scoping all our JavaScript into it
 defineNetUI=\

Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/Tree.java
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/Tree.java?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/Tree.java&r1=111653&p2=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/Tree.java&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/Tree.java	(original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/tree/Tree.java	Sun Dec 12 07:55:14 2004
@@ -1133,7 +1133,7 @@
         assert(_tagId != null);
 
         String realName = rewriteName(tagId);
-        String idScript = addTagIdMapping(tagId, realName);
+        String idScript = mapLegacyTagId(tagId, realName);
 
         // some tags will output the id attribute themselves so they don't write this out
         if (realName != null) {

Modified: incubator/beehive/trunk/netui/src/tags-template/org/apache/beehive/netui/tags/template/DivPanel.java
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-template/org/apache/beehive/netui/tags/template/DivPanel.java?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/src/tags-template/org/apache/beehive/netui/tags/template/DivPanel.java&r1=111653&p2=incubator/beehive/trunk/netui/src/tags-template/org/apache/beehive/netui/tags/template/DivPanel.java&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-template/org/apache/beehive/netui/tags/template/DivPanel.java	(original)
+++ incubator/beehive/trunk/netui/src/tags-template/org/apache/beehive/netui/tags/template/DivPanel.java	Sun Dec 12 07:55:14 2004
@@ -174,7 +174,7 @@
         assert(_tagId != null);
 
         String realName = rewriteName(_tagId);
-        String idScript = addTagIdMapping(_tagId, realName);
+        String idScript = mapLegacyTagId(_tagId, realName);
 
         // some tags will output the id attribute themselves so they don't write this out
         renderAttribute(buffer, "id", realName);

Modified: incubator/beehive/trunk/netui/src/tags-template/org/apache/beehive/netui/tags/template/Section.java
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-template/org/apache/beehive/netui/tags/template/Section.java?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/src/tags-template/org/apache/beehive/netui/tags/template/Section.java&r1=111653&p2=incubator/beehive/trunk/netui/src/tags-template/org/apache/beehive/netui/tags/template/Section.java&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-template/org/apache/beehive/netui/tags/template/Section.java	(original)
+++ incubator/beehive/trunk/netui/src/tags-template/org/apache/beehive/netui/tags/template/Section.java	Sun Dec 12 07:55:14 2004
@@ -329,7 +329,7 @@
         assert(_name != null);
 
         String realName = rewriteName(_name);
-        String idScript = addTagIdMapping(_name, realName);
+        String idScript = mapLegacyTagId(_name, realName);
 
         // some tags will output the id attribute themselves so they don't write this out
         renderAttribute(buffer, "id", realName);

Modified: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/WEB-INF/local-netui-config.xml
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/WEB-INF/local-netui-config.xml?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/WEB-INF/local-netui-config.xml&r1=111653&p2=incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/WEB-INF/local-netui-config.xml&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/WEB-INF/local-netui-config.xml	(original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/WEB-INF/local-netui-config.xml	Sun Dec 12 07:55:14 2004
@@ -49,7 +49,7 @@
 
     <jsp-tag-config>
        <doctype>html4-loose</doctype>
-       <id-javascript>Legacy-JavaScript-Only</id-javascript>
+       <id-javascript>Legacy-JavaScript</id-javascript>
        <tree-image-location>resources/images</tree-image-location>
     </jsp-tag-config>
 

Modified: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34263.xml
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34263.xml?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34263.xml&r1=111653&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34263.xml&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34263.xml	(original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34263.xml	Sun Dec 12 07:55:14 2004
@@ -2,7 +2,7 @@
 <ses:recorderSession xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
    <ses:sessionName>B34263</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>04 Dec 2004, 09:28:03.795 AM MST</ses:startDate>
+   <ses:startDate>10 Dec 2004, 02:28:11.308 PM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>8C4C4AD4D25F31DBE4D46D004C53B35E</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -40,7 +40,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=8C4C4AD4D25F31DBE4D46D004C53B35E; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-2822f2fd:1009eb4ff6e:-7a0d</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7f38</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -151,6 +151,28 @@
 netui_names.FormTwo="FormTwo"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.CustomizeReset="CustomizeReset"
+netui_tagIdMap.SearchAdvanced="SearchAdvanced"
+netui_tagIdMap.SearchEnter="SearchEnter"
+netui_tagIdMap.NameEnter="NameEnter"
+netui_tagIdMap.CustomizeUpdate="CustomizeUpdate"
+netui_tagIdMap.NameDelete="NameDelete"
+netui_tagIdMap.MiscOne="MiscOne"
+netui_tagIdMap.MiscTwo="MiscTwo"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.SearchAdvanced="actionOverride:EnterAdvancedSearch"
+netui_tagIdNameMap.NameDelete="actionOverride:DeleteName"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -166,6 +188,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -188,7 +230,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>04 Dec 2004, 09:28:07.650 AM MST</ses:endDate>
+   <ses:endDate>10 Dec 2004, 02:28:12.891 PM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>1</ses:testCount>
    <ses:passedCount>0</ses:passedCount>

Modified: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ButtonSubmitTagId.xml
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ButtonSubmitTagId.xml?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ButtonSubmitTagId.xml&r1=111653&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ButtonSubmitTagId.xml&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ButtonSubmitTagId.xml	(original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ButtonSubmitTagId.xml	Sun Dec 12 07:55:14 2004
@@ -2,7 +2,7 @@
 <ses:recorderSession xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
    <ses:sessionName>ButtonSubmitTagId</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>04 Dec 2004, 09:30:42.433 AM MST</ses:startDate>
+   <ses:startDate>10 Dec 2004, 02:30:35.896 PM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>8C4C4AD4D25F31DBE4D46D004C53B35E</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -40,7 +40,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=8C4C4AD4D25F31DBE4D46D004C53B35E; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-2822f2fd:1009eb4ff6e:-7938</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7e63</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -119,6 +119,21 @@
 netui_names.FormOne="FormOne"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.NameEnter="NameEnter"
+netui_tagIdMap.NameDelete="NameDelete"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.NameDelete="actionOverride:DeleteName"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -134,6 +149,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -177,7 +212,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>8C4C4AD4D25F31DBE4D46D004C53B35E</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -211,7 +246,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=8C4C4AD4D25F31DBE4D46D004C53B35E; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -227,7 +262,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-2822f2fd:1009eb4ff6e:-7938</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7e63</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -290,6 +325,21 @@
 netui_names.FormOne="FormOne"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.NameEnter="NameEnter"
+netui_tagIdMap.NameDelete="NameDelete"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.NameDelete="actionOverride:DeleteName"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -305,6 +355,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -352,7 +422,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>8C4C4AD4D25F31DBE4D46D004C53B35E</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -386,7 +456,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=8C4C4AD4D25F31DBE4D46D004C53B35E; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -402,7 +472,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-2822f2fd:1009eb4ff6e:-7938</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7e63</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -465,6 +535,21 @@
 netui_names.FormOne="FormOne"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.NameEnter="NameEnter"
+netui_tagIdMap.NameDelete="NameDelete"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.NameDelete="actionOverride:DeleteName"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -480,6 +565,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -502,7 +607,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>04 Dec 2004, 09:30:44.165 AM MST</ses:endDate>
+   <ses:endDate>10 Dec 2004, 02:30:38.109 PM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>3</ses:testCount>
    <ses:passedCount>0</ses:passedCount>

Modified: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridPagerCustomSelect.xml
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridPagerCustomSelect.xml?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridPagerCustomSelect.xml&r1=111653&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridPagerCustomSelect.xml&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridPagerCustomSelect.xml	(original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridPagerCustomSelect.xml	Sun Dec 12 07:55:14 2004
@@ -2,7 +2,7 @@
 <ses:recorderSession xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
    <ses:sessionName>DataGridPagerCustomSelect</ses:sessionName>
    <ses:tester>ekoneil</ses:tester>
-   <ses:startDate>03 Nov 2004, 02:30:44.409 PM MST</ses:startDate>
+   <ses:startDate>11 Dec 2004, 07:12:34.334 PM MST</ses:startDate>
    <ses:description>ekoneil</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>D8C6463BE90B058F6CB913D763EBB403</ses:value>
+                  <ses:value>5CB94584F5ADFC667E97E9D4ACDB59F3</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -44,7 +44,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=D8C6463BE90B058F6CB913D763EBB403; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=5CB94584F5ADFC667E97E9D4ACDB59F3; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>5d613590:ffff08a735:-7f2d</ses:value>
+                  <ses:value>-1819bc83:100c5045530:-7dbc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -71,7 +71,7 @@
 	"http://www.w3.org/TR/html4/loose.dtd">
 <html lang="en">
 
-<head>
+  <head>
     <title>NetUI Data Grid Samples</title>
     <link rel="stylesheet" href="/coreWeb/databinding/datagrid/site/css/default.css" type="text/css"/>
   </head>
@@ -263,7 +263,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>D8C6463BE90B058F6CB913D763EBB403</ses:value>
+                  <ses:value>5CB94584F5ADFC667E97E9D4ACDB59F3</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -289,7 +289,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=D8C6463BE90B058F6CB913D763EBB403; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=5CB94584F5ADFC667E97E9D4ACDB59F3; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -301,7 +301,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>5d613590:ffff08a735:-7f2d</ses:value>
+                  <ses:value>-1819bc83:100c5045530:-7dbc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -316,7 +316,7 @@
 	"http://www.w3.org/TR/html4/loose.dtd">
 <html lang="en">
 
-<head>
+  <head>
     <title>NetUI Data Grid Samples</title>
     <link rel="stylesheet" href="/coreWeb/databinding/datagrid/site/css/default.css" type="text/css"/>
   </head>
@@ -508,7 +508,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>D8C6463BE90B058F6CB913D763EBB403</ses:value>
+                  <ses:value>5CB94584F5ADFC667E97E9D4ACDB59F3</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -534,7 +534,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=D8C6463BE90B058F6CB913D763EBB403; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=5CB94584F5ADFC667E97E9D4ACDB59F3; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -546,7 +546,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>5d613590:ffff08a735:-7f2d</ses:value>
+                  <ses:value>-1819bc83:100c5045530:-7dbc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -561,7 +561,7 @@
 	"http://www.w3.org/TR/html4/loose.dtd">
 <html lang="en">
 
-<head>
+  <head>
     <title>NetUI Data Grid Samples</title>
     <link rel="stylesheet" href="/coreWeb/databinding/datagrid/site/css/default.css" type="text/css"/>
   </head>
@@ -744,7 +744,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>D8C6463BE90B058F6CB913D763EBB403</ses:value>
+                  <ses:value>5CB94584F5ADFC667E97E9D4ACDB59F3</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -770,7 +770,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=D8C6463BE90B058F6CB913D763EBB403; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=5CB94584F5ADFC667E97E9D4ACDB59F3; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -782,7 +782,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>5d613590:ffff08a735:-7f2d</ses:value>
+                  <ses:value>-1819bc83:100c5045530:-7dbc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -797,7 +797,7 @@
 	"http://www.w3.org/TR/html4/loose.dtd">
 <html lang="en">
 
-<head>
+  <head>
     <title>NetUI Data Grid Samples</title>
     <link rel="stylesheet" href="/coreWeb/databinding/datagrid/site/css/default.css" type="text/css"/>
   </head>
@@ -989,7 +989,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>D8C6463BE90B058F6CB913D763EBB403</ses:value>
+                  <ses:value>5CB94584F5ADFC667E97E9D4ACDB59F3</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1015,7 +1015,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=D8C6463BE90B058F6CB913D763EBB403; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=5CB94584F5ADFC667E97E9D4ACDB59F3; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -1027,7 +1027,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>5d613590:ffff08a735:-7f2d</ses:value>
+                  <ses:value>-1819bc83:100c5045530:-7dbc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -1042,7 +1042,7 @@
 	"http://www.w3.org/TR/html4/loose.dtd">
 <html lang="en">
 
-<head>
+  <head>
     <title>NetUI Data Grid Samples</title>
     <link rel="stylesheet" href="/coreWeb/databinding/datagrid/site/css/default.css" type="text/css"/>
   </head>
@@ -1234,7 +1234,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>D8C6463BE90B058F6CB913D763EBB403</ses:value>
+                  <ses:value>5CB94584F5ADFC667E97E9D4ACDB59F3</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1260,7 +1260,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=D8C6463BE90B058F6CB913D763EBB403; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=5CB94584F5ADFC667E97E9D4ACDB59F3; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -1272,7 +1272,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>5d613590:ffff08a735:-7f2d</ses:value>
+                  <ses:value>-1819bc83:100c5045530:-7dbc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -1287,7 +1287,7 @@
 	"http://www.w3.org/TR/html4/loose.dtd">
 <html lang="en">
 
-<head>
+  <head>
     <title>NetUI Data Grid Samples</title>
     <link rel="stylesheet" href="/coreWeb/databinding/datagrid/site/css/default.css" type="text/css"/>
   </head>
@@ -1453,7 +1453,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>03 Nov 2004, 02:30:47.854 PM MST</ses:endDate>
+   <ses:endDate>11 Dec 2004, 07:12:39.021 PM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>6</ses:testCount>
    <ses:passedCount>0</ses:passedCount>

Modified: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsAllScript.xml
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsAllScript.xml?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsAllScript.xml&r1=111653&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsAllScript.xml&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsAllScript.xml	(original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsAllScript.xml	Sun Dec 12 07:55:14 2004
@@ -2,7 +2,7 @@
 <ses:recorderSession xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
    <ses:sessionName>JsAllScript</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>03 Dec 2004, 09:58:22.981 AM MST</ses:startDate>
+   <ses:startDate>10 Dec 2004, 02:35:20.696 PM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -40,7 +40,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7ce8</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7ce6</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -136,6 +136,22 @@
 netui_names.lastName="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.firstName="firstName"
+netui_tagIdMap.lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.firstName="{actionForm.firstName}"
+netui_tagIdNameMap.lastName="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -172,6 +188,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -220,7 +256,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -254,7 +290,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -270,7 +306,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7ce8</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7ce6</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -324,7 +360,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -346,7 +382,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -362,7 +398,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7ce8</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7ce6</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -442,6 +478,22 @@
 netui_names.lastName="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.firstName="firstName"
+netui_tagIdMap.lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.firstName="{actionForm.firstName}"
+netui_tagIdNameMap.lastName="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -478,6 +530,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -526,7 +598,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -560,7 +632,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -576,7 +648,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7ce8</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7ce6</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -630,7 +702,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -652,7 +724,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -668,7 +740,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7ce8</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7ce6</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -748,6 +820,22 @@
 netui_names.lastName="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.firstName="firstName"
+netui_tagIdMap.lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.firstName="{actionForm.firstName}"
+netui_tagIdNameMap.lastName="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -784,6 +872,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -832,7 +940,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -866,7 +974,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -882,7 +990,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7ce8</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7ce6</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -936,7 +1044,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -958,7 +1066,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -974,7 +1082,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7ce8</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7ce6</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -1054,6 +1162,22 @@
 netui_names.lastName="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.firstName="firstName"
+netui_tagIdMap.lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.firstName="{actionForm.firstName}"
+netui_tagIdNameMap.lastName="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -1090,6 +1214,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -1138,7 +1282,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1172,7 +1316,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -1188,7 +1332,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7ce8</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7ce6</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -1242,7 +1386,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1264,7 +1408,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -1280,7 +1424,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7ce8</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7ce6</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -1360,6 +1504,22 @@
 netui_names.lastName="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.firstName="firstName"
+netui_tagIdMap.lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.firstName="{actionForm.firstName}"
+netui_tagIdNameMap.lastName="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -1396,6 +1556,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -1448,7 +1628,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1482,7 +1662,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -1498,7 +1678,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7ce8</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7ce6</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -1552,7 +1732,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1574,7 +1754,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -1590,7 +1770,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7ce8</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7ce6</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -1670,6 +1850,22 @@
 netui_names.lastName="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.firstName="firstName"
+netui_tagIdMap.lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.firstName="{actionForm.firstName}"
+netui_tagIdNameMap.lastName="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -1706,6 +1902,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -1729,7 +1945,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>03 Dec 2004, 09:58:26.726 AM MST</ses:endDate>
+   <ses:endDate>10 Dec 2004, 02:35:24.692 PM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>11</ses:testCount>
    <ses:passedCount>5</ses:passedCount>

Modified: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsAllScriptHtml.xml
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsAllScriptHtml.xml?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsAllScriptHtml.xml&r1=111653&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsAllScriptHtml.xml&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsAllScriptHtml.xml	(original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsAllScriptHtml.xml	Sun Dec 12 07:55:14 2004
@@ -2,7 +2,7 @@
 <ses:recorderSession xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
    <ses:sessionName>JsAllScriptHtml</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>03 Dec 2004, 09:58:26.866 AM MST</ses:startDate>
+   <ses:startDate>10 Dec 2004, 02:35:24.832 PM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -40,7 +40,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cdc</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7cda</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -140,6 +140,22 @@
 netui_names.lastName="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.firstName="firstName"
+netui_tagIdMap.lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.firstName="{actionForm.firstName}"
+netui_tagIdNameMap.lastName="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -176,6 +192,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -223,7 +259,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -257,7 +293,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -273,7 +309,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cdc</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7cda</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -331,7 +367,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -353,7 +389,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -369,7 +405,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cdc</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7cda</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -453,6 +489,22 @@
 netui_names.lastName="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.firstName="firstName"
+netui_tagIdMap.lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.firstName="{actionForm.firstName}"
+netui_tagIdNameMap.lastName="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -489,6 +541,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -536,7 +608,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -570,7 +642,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -586,7 +658,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cdc</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7cda</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -644,7 +716,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -666,7 +738,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -682,7 +754,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cdc</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7cda</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -766,6 +838,22 @@
 netui_names.lastName="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.firstName="firstName"
+netui_tagIdMap.lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.firstName="{actionForm.firstName}"
+netui_tagIdNameMap.lastName="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -802,6 +890,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -849,7 +957,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -883,7 +991,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -899,7 +1007,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cdc</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7cda</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -957,7 +1065,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -979,7 +1087,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -995,7 +1103,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cdc</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7cda</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -1079,6 +1187,22 @@
 netui_names.lastName="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.firstName="firstName"
+netui_tagIdMap.lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.firstName="{actionForm.firstName}"
+netui_tagIdNameMap.lastName="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -1115,6 +1239,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -1162,7 +1306,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1196,7 +1340,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -1212,7 +1356,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cdc</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7cda</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -1270,7 +1414,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1292,7 +1436,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -1308,7 +1452,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cdc</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7cda</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -1392,6 +1536,22 @@
 netui_names.lastName="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.firstName="firstName"
+netui_tagIdMap.lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.firstName="{actionForm.firstName}"
+netui_tagIdNameMap.lastName="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -1428,6 +1588,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -1479,7 +1659,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1513,7 +1693,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -1529,7 +1709,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cdc</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7cda</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -1587,7 +1767,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1609,7 +1789,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -1625,7 +1805,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cdc</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7cda</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -1709,6 +1889,22 @@
 netui_names.lastName="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.firstName="firstName"
+netui_tagIdMap.lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.firstName="{actionForm.firstName}"
+netui_tagIdNameMap.lastName="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -1745,6 +1941,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -1767,7 +1983,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>03 Dec 2004, 09:58:31.994 AM MST</ses:endDate>
+   <ses:endDate>10 Dec 2004, 02:35:28.207 PM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>11</ses:testCount>
    <ses:passedCount>5</ses:passedCount>

Modified: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsFind.xml
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsFind.xml?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsFind.xml&r1=111653&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsFind.xml&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsFind.xml	(original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsFind.xml	Sun Dec 12 07:55:14 2004
@@ -2,7 +2,7 @@
 <ses:recorderSession xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
    <ses:sessionName>JsFind</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>03 Dec 2004, 09:58:32.084 AM MST</ses:startDate>
+   <ses:startDate>10 Dec 2004, 02:35:28.337 PM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -40,7 +40,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cd0</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7cce</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -120,6 +120,20 @@
 netui_names.select="wlw-select_key:{actionForm.type}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.select="select"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.select="wlw-select_key:{actionForm.type}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -135,6 +149,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -178,7 +212,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -212,7 +246,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -228,7 +262,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cd0</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7cce</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -292,6 +326,20 @@
 netui_names.select="wlw-select_key:{actionForm.type}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.select="select"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.select="wlw-select_key:{actionForm.type}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -307,6 +355,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -350,7 +418,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -384,7 +452,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -400,7 +468,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cd0</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7cce</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -464,6 +532,20 @@
 netui_names.select="wlw-select_key:{actionForm.type}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.select="select"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.select="wlw-select_key:{actionForm.type}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -479,6 +561,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -522,7 +624,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -556,7 +658,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -572,7 +674,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cd0</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7cce</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -636,6 +738,20 @@
 netui_names.select="wlw-select_key:{actionForm.type}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.select="select"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.select="wlw-select_key:{actionForm.type}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -651,6 +767,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -673,7 +809,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>03 Dec 2004, 09:58:34.067 AM MST</ses:endDate>
+   <ses:endDate>10 Dec 2004, 02:35:30.680 PM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>4</ses:testCount>
    <ses:passedCount>0</ses:passedCount>

Modified: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsNoContainers.xml
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsNoContainers.xml?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsNoContainers.xml&r1=111653&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsNoContainers.xml&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsNoContainers.xml	(original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/JsNoContainers.xml	Sun Dec 12 07:55:14 2004
@@ -2,7 +2,7 @@
 <ses:recorderSession xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
    <ses:sessionName>JsNoContainers</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>03 Dec 2004, 09:58:34.147 AM MST</ses:startDate>
+   <ses:startDate>11 Dec 2004, 07:14:58.922 PM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>5CB94584F5ADFC667E97E9D4ACDB59F3</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -40,7 +40,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=5CB94584F5ADFC667E97E9D4ACDB59F3; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7ccb</ses:value>
+                  <ses:value>-1819bc83:100c5045530:-7cca</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -122,6 +122,43 @@
 &lt;/script>
 
 
+
+&lt;script language="JavaScript" type="text/JavaScript">
+&lt;!--
+
+// map tagId to "real name"
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.lastName="lastName"
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+
+// map tagId to "real name"
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.lastName="{actionForm.lastName}"
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
+-->
+&lt;/script>
+
+
                         &lt;/td>
                     &lt;/tr>
                     &lt;tr class="tablehead">
@@ -131,15 +168,20 @@
 
 &lt;script language="JavaScript" type="text/JavaScript">
 &lt;!--
-// Build the netui_names table to map the tagId attributes
-// to the real id written into the HTML
-if (netui_names == null)
-   var netui_names = new Object();
 netui_names.firstName="{actionForm.firstName}"
 -->
 &lt;/script>
 
 
+
+&lt;script language="JavaScript" type="text/JavaScript">
+&lt;!--
+netui_tagIdMap.firstName="firstName"
+netui_tagIdNameMap.firstName="{actionForm.firstName}"
+-->
+&lt;/script>
+
+
                         &lt;/td>
                     &lt;/tr>
                 &lt;/table>
@@ -215,7 +257,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>03 Dec 2004, 09:58:37.271 AM MST</ses:endDate>
+   <ses:endDate>11 Dec 2004, 07:15:00.824 PM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>1</ses:testCount>
    <ses:passedCount>0</ses:passedCount>

Modified: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/OnTest.xml
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/OnTest.xml?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/OnTest.xml&r1=111653&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/OnTest.xml&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/OnTest.xml	(original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/OnTest.xml	Sun Dec 12 07:55:14 2004
@@ -2,7 +2,7 @@
 <ses:recorderSession xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
    <ses:sessionName>OnTest</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>24 Jul 2004, 05:39:05.618 PM MDT</ses:startDate>
+   <ses:startDate>11 Dec 2004, 07:16:29.272 PM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -15,7 +15,12 @@
             <ses:uri>/coreWeb/tags/onTest/Controller.jpf</ses:uri>
             <ses:method>GET</ses:method>
             <ses:parameters/>
-            <ses:cookies/>
+            <ses:cookies>
+               <ses:cookie>
+                  <ses:name>JSESSIONID</ses:name>
+                  <ses:value>5CB94584F5ADFC667E97E9D4ACDB59F3</ses:value>
+               </ses:cookie>
+            </ses:cookies>
             <ses:headers>
                <ses:header>
                   <ses:name>accept</ses:name>
@@ -34,6 +39,10 @@
                   <ses:value>Keep-Alive, TE</ses:value>
                </ses:header>
                <ses:header>
+                  <ses:name>cookie</ses:name>
+                  <ses:value>$Version=0; JSESSIONID=5CB94584F5ADFC667E97E9D4ACDB59F3; $Path=/coreWeb</ses:value>
+               </ses:header>
+               <ses:header>
                   <ses:name>cookie2</ses:name>
                   <ses:value>$Version="1"</ses:value>
                </ses:header>
@@ -47,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>4b58bc9d:fdf37c62e7:-7cee</ses:value>
+                  <ses:value>-1819bc83:100c5045530:-7c3e</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -278,6 +287,14 @@
 -->
 &lt;/script>
 
+
+
+&lt;script language="JavaScript" type="text/JavaScript">
+&lt;!--
+netui_names.Godzilla="Godzilla"
+-->
+&lt;/script>
+
 &lt;br />
 &lt;!-- IMAGEANCHOR: formSubmit, forward, href, ismap, linkName, location,
         lowsrc, page, scope, style, styleClass, tabindex,
@@ -289,10 +306,14 @@
 
 &lt;script language="JavaScript" type="text/JavaScript">
 &lt;!--
-// Build the netui_names table to map the tagId attributes
-// to the real id written into the HTML
-if (netui_names == null)
-   var netui_names = new Object();
+netui_names.Godzilla="Godzilla"
+-->
+&lt;/script>
+
+
+
+&lt;script language="JavaScript" type="text/JavaScript">
+&lt;!--
 netui_names.Godzilla="Godzilla"
 -->
 &lt;/script>
@@ -324,9 +345,9 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>24 Jul 2004, 05:39:07.341 PM MDT</ses:endDate>
+   <ses:endDate>11 Dec 2004, 07:16:31.635 PM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>1</ses:testCount>
    <ses:passedCount>0</ses:passedCount>
    <ses:failedCount>1</ses:failedCount>
-</ses:recorderSession>
+</ses:recorderSession>
\ No newline at end of file

Modified: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/RtexpTagId.xml
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/RtexpTagId.xml?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/RtexpTagId.xml&r1=111653&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/RtexpTagId.xml&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/RtexpTagId.xml	(original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/RtexpTagId.xml	Sun Dec 12 07:55:14 2004
@@ -2,7 +2,7 @@
 <ses:recorderSession xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
    <ses:sessionName>RtexpTagId</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>03 Dec 2004, 10:07:34.233 AM MST</ses:startDate>
+   <ses:startDate>10 Dec 2004, 02:42:45.475 PM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -40,7 +40,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-799f</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-799d</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -123,6 +123,22 @@
 netui_names.tagid2="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.tagid1="tagid1"
+netui_tagIdMap.tagid2="tagid2"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.tagid1="{actionForm.firstName}"
+netui_tagIdNameMap.tagid2="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -138,6 +154,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -181,7 +217,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -215,7 +251,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -231,7 +267,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-799f</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-799d</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -298,6 +334,22 @@
 netui_names.tagid2="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.tagid1="tagid1"
+netui_tagIdMap.tagid2="tagid2"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.tagid1="{actionForm.firstName}"
+netui_tagIdNameMap.tagid2="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -313,6 +365,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -335,7 +407,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>03 Dec 2004, 10:07:35.935 AM MST</ses:endDate>
+   <ses:endDate>10 Dec 2004, 02:42:46.998 PM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>2</ses:testCount>
    <ses:passedCount>0</ses:passedCount>

Modified: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/TagIds.xml
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/TagIds.xml?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/TagIds.xml&r1=111653&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/TagIds.xml&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/TagIds.xml	(original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/TagIds.xml	Sun Dec 12 07:55:14 2004
@@ -2,7 +2,7 @@
 <ses:recorderSession xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
    <ses:sessionName>TagIds</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>03 Dec 2004, 10:09:20.373 AM MST</ses:startDate>
+   <ses:startDate>10 Dec 2004, 02:44:17.107 PM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -40,7 +40,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7934</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-792e</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -143,6 +143,25 @@
 netui_names.anchor="anchor"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.submit="submit"
+netui_tagIdMap.firstName="firstName"
+netui_tagIdMap.select="select"
+netui_tagIdMap.lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.firstName="{actionForm.firstName}"
+netui_tagIdNameMap.select="wlw-select_key:{actionForm.type}"
+netui_tagIdNameMap.lastName="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -158,6 +177,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -180,7 +219,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>03 Dec 2004, 10:09:23.538 AM MST</ses:endDate>
+   <ses:endDate>10 Dec 2004, 02:44:18.639 PM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>1</ses:testCount>
    <ses:passedCount>0</ses:passedCount>

Modified: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/XhtmlFormLabel.xml
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/XhtmlFormLabel.xml?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/XhtmlFormLabel.xml&r1=111653&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/XhtmlFormLabel.xml&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/XhtmlFormLabel.xml	(original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/XhtmlFormLabel.xml	Sun Dec 12 07:55:14 2004
@@ -2,7 +2,7 @@
 <ses:recorderSession xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
    <ses:sessionName>XhtmlFormLabel</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>03 Dec 2004, 10:11:38.417 AM MST</ses:startDate>
+   <ses:startDate>10 Dec 2004, 02:46:06.404 PM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -40,7 +40,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-789a</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7894</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -133,6 +133,24 @@
 netui_names.labelTwo="{actionForm.valueTwo}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.labelThree="labelThree"
+netui_tagIdMap.labelOne="labelOne"
+netui_tagIdMap.labelTwo="labelTwo"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.labelThree="{actionForm.valueThree}"
+netui_tagIdNameMap.labelOne="{actionForm.valueOne}"
+netui_tagIdNameMap.labelTwo="{actionForm.valueTwo}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -148,6 +166,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -195,7 +233,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -229,7 +267,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -245,7 +283,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-789a</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7894</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -305,7 +343,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>03 Dec 2004, 10:11:43.104 AM MST</ses:endDate>
+   <ses:endDate>10 Dec 2004, 02:46:10.029 PM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>2</ses:testCount>
    <ses:passedCount>1</ses:passedCount>

Modified: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/cr183774.xml
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/cr183774.xml?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/cr183774.xml&r1=111653&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/cr183774.xml&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/cr183774.xml	(original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/cr183774.xml	Sun Dec 12 07:55:14 2004
@@ -2,7 +2,7 @@
 <ses:recorderSession xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
    <ses:sessionName>Cr183774</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>03 Dec 2004, 09:55:12.140 AM MST</ses:startDate>
+   <ses:startDate>10 Dec 2004, 02:31:19.389 PM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>9E1C404A5E39DB474034E5088F33FB5C</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -40,7 +40,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=9E1C404A5E39DB474034E5088F33FB5C; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -48,7 +48,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7e26</ses:value>
+                  <ses:value>-4ecb55c9:100bedee2b2:-7e26</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -92,6 +92,22 @@
 netui_names.fooId="{actionForm.foo}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.barId="barId"
+netui_tagIdMap.fooId="fooId"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.barId="{actionForm.bar}"
+netui_tagIdNameMap.fooId="{actionForm.foo}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -107,6 +123,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -128,7 +164,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>03 Dec 2004, 09:55:13.843 AM MST</ses:endDate>
+   <ses:endDate>10 Dec 2004, 02:31:20.871 PM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>1</ses:testCount>
    <ses:passedCount>0</ses:passedCount>

Modified: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsScriptScopeId.xml
Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsScriptScopeId.xml?view=diff&rev=111654&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsScriptScopeId.xml&r1=111653&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsScriptScopeId.xml&r2=111654
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsScriptScopeId.xml	(original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsScriptScopeId.xml	Sun Dec 12 07:55:14 2004
@@ -2,7 +2,7 @@
 <ses:recorderSession xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
    <ses:sessionName>jsScriptScopeId</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>03 Dec 2004, 09:58:40.916 AM MST</ses:startDate>
+   <ses:startDate>11 Dec 2004, 07:15:03.018 PM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>5CB94584F5ADFC667E97E9D4ACDB59F3</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -40,7 +40,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=5CB94584F5ADFC667E97E9D4ACDB59F3; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cc3</ses:value>
+                  <ses:value>-1819bc83:100c5045530:-7cc2</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -138,6 +138,22 @@
 netui_names.one__lastName="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.one__firstName="firstName"
+netui_tagIdMap.one__lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.one__firstName="{actionForm.firstName}"
+netui_tagIdNameMap.one__lastName="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -174,6 +190,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -227,6 +263,22 @@
 netui_names.two__firstName="{actionForm.firstName}"
 netui_names.two__lastName="{actionForm.lastName}"
 
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.two__firstName="firstName"
+netui_tagIdMap.two__lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.two__firstName="{actionForm.firstName}"
+netui_tagIdNameMap.two__lastName="{actionForm.lastName}"
+
 -->
 &lt;/script>
 
@@ -291,7 +343,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>5CB94584F5ADFC667E97E9D4ACDB59F3</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -325,7 +377,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=5CB94584F5ADFC667E97E9D4ACDB59F3; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -341,7 +393,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cc3</ses:value>
+                  <ses:value>-1819bc83:100c5045530:-7cc2</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -396,7 +448,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>5CB94584F5ADFC667E97E9D4ACDB59F3</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -418,7 +470,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=5CB94584F5ADFC667E97E9D4ACDB59F3; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -434,7 +486,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cc3</ses:value>
+                  <ses:value>-1819bc83:100c5045530:-7cc2</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -516,6 +568,22 @@
 netui_names.one__lastName="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.one__firstName="firstName"
+netui_tagIdMap.one__lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.one__firstName="{actionForm.firstName}"
+netui_tagIdNameMap.one__lastName="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -552,6 +620,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -605,6 +693,22 @@
 netui_names.two__firstName="{actionForm.firstName}"
 netui_names.two__lastName="{actionForm.lastName}"
 
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.two__firstName="firstName"
+netui_tagIdMap.two__lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.two__firstName="{actionForm.firstName}"
+netui_tagIdNameMap.two__lastName="{actionForm.lastName}"
+
 -->
 &lt;/script>
 
@@ -665,7 +769,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>5CB94584F5ADFC667E97E9D4ACDB59F3</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -699,7 +803,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=5CB94584F5ADFC667E97E9D4ACDB59F3; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -715,7 +819,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cc3</ses:value>
+                  <ses:value>-1819bc83:100c5045530:-7cc2</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -770,7 +874,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>B33C5C2CB9C5BC5C22E5604B14C44D62</ses:value>
+                  <ses:value>5CB94584F5ADFC667E97E9D4ACDB59F3</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -792,7 +896,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; JSESSIONID=B33C5C2CB9C5BC5C22E5604B14C44D62; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; JSESSIONID=5CB94584F5ADFC667E97E9D4ACDB59F3; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -808,7 +912,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-29203c0f:10099d5dab1:-7cc3</ses:value>
+                  <ses:value>-1819bc83:100c5045530:-7cc2</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -890,6 +994,22 @@
 netui_names.one__lastName="{actionForm.lastName}"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.one__firstName="firstName"
+netui_tagIdMap.one__lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.one__firstName="{actionForm.firstName}"
+netui_tagIdNameMap.one__lastName="{actionForm.lastName}"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -926,6 +1046,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId is not found.
 function getScopeId(tag)
@@ -979,6 +1119,22 @@
 netui_names.two__firstName="{actionForm.firstName}"
 netui_names.two__lastName="{actionForm.lastName}"
 
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.two__firstName="firstName"
+netui_tagIdMap.two__lastName="lastName"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.two__firstName="{actionForm.firstName}"
+netui_tagIdNameMap.two__lastName="{actionForm.lastName}"
+
 -->
 &lt;/script>
 
@@ -1010,7 +1166,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>03 Dec 2004, 09:58:45.973 AM MST</ses:endDate>
+   <ses:endDate>11 Dec 2004, 07:15:09.938 PM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>5</ses:testCount>
    <ses:passedCount>2</ses:passedCount>