glassfish
  1. glassfish
  2. GLASSFISH-18164

[508] Duplicate labels in Form Elements

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: future release
    • Component/s: admin_gui
    • Labels:
      None
    • Environment:

      All

      Description

      Derived from GLASSFISH-14944

      OGHAG toolbar Form output reports indicate the duplicate labels and Multiple labels on the buttons. To be accessible the, Form elements should not have duplicate, empty or multiple labels.
      The below elements in the console have Multiple Labels:

      Form elements Domain/Applications configuration page :
      Reload Enabled ERROR: Multiple Labels found: Reload Enabled
      Auto Deploy Enabled ERROR: Multiple Labels found: Auto Deploy Enabled
      Verifier Enabled ERROR: Multiple Labels found: Verifier Enabled
      Precompile Enabled ERROR: Multiple Labels found: Precompile Enabled

      Form elements in JVM General Settings:
      Debug: Enabled ERROR: Multiple Labels found: Debug: Enabled

      Form elements in Logger Settings
      Write to system log: Enabled ERROR: Multiple Labels found: Write to system log: Enabled
      Log to Console: Enabled ERROR: Multiple Labels found: Log to Console: Enabled

      The below elements in the console have Duplicate Labels:

      Form elements in DOmain/Applications Configuration
      Save WARNING: Duplicate Label

      Form elements in Module Log Levels
      Save WARNING: Duplicate Label

      Form elements in server Instance Properties
      Save WARNING: Duplicate Label
      Cancel WARNING: Duplicate Label

      Form elements in server System Properties
      Save WARNING: Duplicate Label
      Cancel WARNING: Duplicate Label

      Multiple Labels problem for checkboxes like "Reload Enabled" is because two labels (e.g. 'Reload' and 'Enabled') have identical 'for' element, pointing to checkbox. Fix would be to remove 'for' in 'Enabled' label rendered by CheckboxComponent from woodstock, however this is problematic to determine whether checkbox has separate label. It might be possible to look in JSF component tree for label element that has 'for' pointing to this checkbox component and if found render static text instead of label element.

      Reason of Duplicate Labels problem for buttons like Save is not clear.

        Issue Links

          Activity

            People

            • Assignee:
              andriy.zhdanov
              Reporter:
              andriy.zhdanov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: