You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Daryl Olander (JIRA)" <be...@incubator.apache.org> on 2005/02/12 16:06:12 UTC

[jira] Resolved: (BEEHIVE-176) HTML validation error: Two forms should not be created using the same name

     [ http://issues.apache.org/jira/browse/BEEHIVE-176?page=history ]
     
Daryl Olander resolved BEEHIVE-176:
-----------------------------------

     Assign To: Alejandro Ramirez  (was: Daryl Olander)
    Resolution: Fixed

I changed how we generate the name and id attribute values for the Form.  This is how it works now:

1) By default, we don't output either the name or id attributes on a form.  We use to output the bean name or a generated name for all forms.

2) If you specify a tagId, then we will create a scoped version of that id and output it.  For XHTML we only output the id attribute.  For HTML, we output the same value for both the name and id attributes.

3) If tagId is not set, a number of conditions can cause the name to be generated.  For example, if you use an anchor to submit the form, we will output a generated name (that has been scoped).

In the test case, this works now.  In addition, you should be able to use the ScopeContainer to create unique "real" ids.

> HTML validation error: Two forms should not be created using the same name
> --------------------------------------------------------------------------
>
>          Key: BEEHIVE-176
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-176
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Reporter: Karen Stutesman
>     Assignee: Alejandro Ramirez
>     Priority: Minor

>
> 1. In any JSP page, set the documentType on the <netui:html> tag to xhtml-transitional as follows:
> <netui:html documentType="xhtml-transitional">
> 2. Add two netui forms that both refer to the same action like this:
> <netui:form action="submitForm"></netui:form>
> <netui:form action="submitForm"></netui:form>
> 3. View source and you will see the following:
> <form name="submitFormForm" action="/qaWeb/htmlValidation/html/button/submitForm.do" method="post"></form>
> <form name="submitFormForm" action="/qaWeb/htmlValidation/html/button/submitForm.do" method="post"></form>
>  
> If you run this through an XHTML validation tool you will receive a message that 'submitFormForm' should not occur twice.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira