Struts 2
  1. Struts 2
  2. WW-1458

UI Tag Shortcuts (key shortcut in place of name, value, and label)

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: Plugin - Tags
    • Labels:
      None
    • Flags:
      Patch

      Description

      I'm finding that I use something similar to this very often:

      <@s.textfield name="user.userName"
      value="%

      {user.userName}

      "
      label="%

      {getText('user.userName')}

      "/>

      it would be nice (per the discussion on the user list), to be able to do something like this instead:

      <@s.textfield key="user.userName"/>

      Discussed: http://mail-archives.apache.org/mod_mbox/struts-user/200609.mbox/raw/%3c8b3ce3790609261746u4014596fh92582e4f8a39ba65@mail.gmail.com%3e

        Activity

        David DeWolf created issue -
        Hide
        David DeWolf added a comment -

        Implements the new feature which allows a key attribute to be specified in place of the name, value, and label attributes on ui tags.

        Show
        David DeWolf added a comment - Implements the new feature which allows a key attribute to be specified in place of the name, value, and label attributes on ui tags.
        David DeWolf made changes -
        Field Original Value New Value
        Attachment uitag-key-shortcuts.patch [ 13156 ]
        Rainer Hermanns made changes -
        Assignee Rainer Hermanns [ rainerh ]
        Ted Husted made changes -
        Fix Version/s 2.0.2 [ 21760 ]
        xstr made changes -
        Link This issue contains WW-1484 [ WW-1484 ]
        Rainer Hermanns made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Ted Husted made changes -
        Link This issue contains WW-1484 [ WW-1484 ]
        Hide
        Rainer Hermanns added a comment -

        Commited to svn with revision 474574 and 474579

        Show
        Rainer Hermanns added a comment - Commited to svn with revision 474574 and 474579
        Rainer Hermanns made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Resolved [ 5 ]
        Hide
        Ted Husted added a comment -

        The key attribute should also work with buttons

        • <s:submit value="% {getText('button.save')}

          "/>
          + <s:submit key="button.save"/>

        • <s:reset value="% {getText('button.reset')}

          "/>
          + <s:reset key="button.reset"/>

        Show
        Ted Husted added a comment - The key attribute should also work with buttons <s:submit value="% {getText('button.save')} "/> + <s:submit key="button.save"/> <s:reset value="% {getText('button.reset')} "/> + <s:reset key="button.reset"/>
        Ted Husted made changes -
        Status Resolved [ 5 ] Reopened [ 4 ]
        Resolution Fixed [ 1 ]
        Ted Husted made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Don Brown made changes -
        Workflow jira [ 38766 ] Struts [ 40558 ]
        Jeff Turner made changes -
        Workflow Struts [ 40558 ] Struts - editable closed status [ 44012 ]
        Antonio Petrelli made changes -
        Workflow Struts - editable closed status [ 44012 ] Struts - editable closed status (temporary) [ 48390 ]
        Antonio Petrelli made changes -
        Workflow Struts - editable closed status (temporary) [ 48390 ] Struts - editable closed status [ 51587 ]
        Jeff Turner made changes -
        Project Import Mon Feb 01 01:17:42 UTC 2010 [ 1264987062082 ]
        Lukasz Lenart made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Rainer Hermanns
            Reporter:
            David DeWolf
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development