You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Bob Schellink (JIRA)" <ji...@apache.org> on 2010/07/11 11:16:50 UTC

[jira] Closed: (CLK-402) Fieldset field id/names are not unique per form

     [ https://issues.apache.org/jira/browse/CLK-402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Schellink closed CLK-402.
-----------------------------

    Resolution: Won't Fix

I don't see this as a major issue. While a user could outsmart Click and use FieldSets to create fields with the same name and ID, this is really a user problem, and can easily be avoided by using unique names.

Its always possible to set a field ID explicitly in case you want to target it with JS.

> Fieldset field id/names are not unique per form
> -----------------------------------------------
>
>                 Key: CLK-402
>                 URL: https://issues.apache.org/jira/browse/CLK-402
>             Project: Click
>          Issue Type: Bug
>          Components: core
>         Environment: 1.5 M1
>            Reporter: harryw
>
> Id's and names of (text) fields in a fieldset are not unique per form (this may apply to other containers placed in a form as well).
> Example of generated html:
> <form method="post" name="form" id="form" action="/clickhw/pages/simplelayout/simple-layout.htm">
> <input type="hidden" name="form_name" id="form_form_name" value="form"/>
> <table class="form" id="form-form">
> <tr><td>
> <table class="fields" id="form-fields">
> <form ....>
> <tr class="fields">
> <td class="fields" align="left"><label for="form_field0">label0</label>&nbsp;</td>
> <td align="left" colspan="1"><input type="text" name="field0" id="form_field0" value="" size="20"/></td>
> </tr>
> ...
> <td class="fields" colspan="2">
> <fieldset id="Fieldset1">
> <legend>Fieldset 1 legend</legend>
> <table class="fields" id="Fieldset1-fields">
> <tr class="fields">
> <td class="fields" align="left"><label for="form_field0">label0</label>&nbsp;</td>
> <td align="left"><input type="text" name="field0" id="form_field0" value="" size="20"/></td>
> </tr>
> </form>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.