Issue Details (XML | Word | Printable)

Key: WW-1458
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Rainer Hermanns
Reporter: David H. DeWolf
Votes: 2
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Struts 2

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

Created: 28/Sep/06 02:15 AM   Updated: 28/Nov/06 01:29 AM
Return to search
Component/s: Plugin - Tags
Affects Version/s: 2.0.1
Fix Version/s: 2.0.2

File Attachments:
  Size
Text File Licensed for inclusion in ASF works uitag-key-shortcuts.patch 2006-09-28 02:16 AM David H. DeWolf 3 kB

Flags: Patch


 Description  « Hide
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

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
David H. DeWolf added a comment - 28/Sep/06 02:16 AM
Implements the new feature which allows a key attribute to be specified in place of the name, value, and label attributes on ui tags.

Rainer Hermanns added a comment - 13/Nov/06 11:43 PM
Commited to svn with revision 474574 and 474579

Ted Husted added a comment - 21/Nov/06 12:50 AM
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"/>