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

[Apache Beehive Wiki] New: HTML Controls are named and how JavaScript support

   Date: 2004-12-03T07:39:01
   Editor: DarylOlander <do...@bea.com>
   Wiki: Apache Beehive Wiki
   Page: HTML Controls are named and how JavaScript support
   URL: http://wiki.apache.org/beehive/HTML Controls are named and how JavaScript support

   no comment

New Page:

= HTML Control Naming and JavaScript support =

== Overview ==

The HTML Controls are found inside of HTML Forms.  There are two supported names for the HTML Controls, the '''name''' and '''id''' attributes.  When a form is submitted for processing, the successfull controls will have their control name and current value submitted.  The control name is given by the '''name''' attribute.  The '''id''' attribute is a unique identifier within an HTML and XHTML document.  

Both names are determined when the page is rendered.  Typically the '''name''' attribute is the databinding expression.  The actual value is both dependent on the tag through the naming chain and scoping through the URL rewriter service.  The '''tagId''' attribute is used to set the '''id'''.  This value is always passed through the URL Rewriter service to provide scoping.

This presents a problem for Java``````Script authors.  In order to support Java``````Script the tags write out a simple lookup mechanism allowing Java``````Script access to the "real" names of things.   

== Control Descriptions ==

=== TextBox ===

=== TextArea ===