Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2751

Make the 'name' attribute value accessible to jsp

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2.8
    • Fix Version/s: Future
    • Component/s: Tag Libraries
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Other
    • Bugzilla Id:
      38446

      Description

      In case there is a need to have javascript or similar to access value of the
      field, its name, or id must be provided. When a field is under
      nested->nested->iterate->nested->iterate this name is rather complex and there
      is no way to read it from the taglib.
      So following extensions to html tags would be nice:

      • writeNameTo="page/session_attrName" writeNameToScope="page|session"
        and when it is set, the calculated 'name' value would be written to the property.
        Additionally when such value is needed before the field is rendered, following
        tag would be nice:
        nested:writeName property="" name="" writeNameTo="page/session_attrName"
        writeNameToScope="page|session"

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tomasz.bech@bull.com.pl Tomasz Bech
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: