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
Repository Revision Date User Message
Struts #474574 Mon Nov 13 23:30:17 UTC 2006 hermanns UI Tag Shortcuts (key shortcut in place of name, value, and label)

Issue Number: WW-1458
Submitted by: David H. DeWolf
Files Changed
MODIFY /struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/ui/AbstractUITag.java
MODIFY /struts/struts2/trunk/core/src/main/resources/META-INF/struts-tags.tld
MODIFY /struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/UIBean.java

Repository Revision Date User Message
Struts #474579 Mon Nov 13 23:36:36 UTC 2006 hermanns UI Tag Shortcuts (key shortcut in place of name, value, and label)
o better attribute description

Issue Number: WW-1458
Submitted by: David H. DeWolf
Files Changed
MODIFY /struts/struts2/trunk/core/src/main/resources/META-INF/struts-tags.tld

Repository Revision Date User Message
Struts #477484 Tue Nov 21 03:20:11 UTC 2006 husted WW-1421 Move struts.properties settings to struts.xml
WW-1458 Replace OGNL scriptlets with key attribute

Interim commit for discussion purposes. I'm trying to bring the blank up to date with the latest practice. As to the struts.properties, I tried moving these to struts.xml, but it doesn't seem to be working. I copied the elements from the Spring plugin struts-plugin.xml, but IDEA complains that the constant element is not defined. Strangely, I don't get the same prompt for the struts-plugin.xml. I tried deploying the application, and it seems that the struts.xml constants are ignored.
Files Changed
MODIFY /struts/struts2/trunk/apps/blank/src/main/resources/struts.xml
DEL /struts/struts2/trunk/apps/blank/src/main/webapp/WEB-INF/applicationContext.xml
MODIFY /struts/struts2/trunk/apps/blank/src/main/webapp/example/Login.jsp
DEL /struts/struts2/trunk/apps/blank/src/main/resources/struts.properties
MODIFY /struts/struts2/trunk/apps/blank/src/main/resources/example.xml
MODIFY /struts/struts2/trunk/apps/blank/src/main/webapp/WEB-INF/web.xml

Repository Revision Date User Message
Struts #478007 Wed Nov 22 01:42:01 UTC 2006 husted WW-1458 Enable key attribute for submit and reset buttons.
Files Changed
MODIFY /struts/struts2/trunk/apps/blank/src/main/resources/struts.xml
MODIFY /struts/struts2/trunk/apps/mailreader/src/main/webapp/Registration.jsp
MODIFY /struts/struts2/trunk/apps/mailreader/src/main/webapp/Login.jsp
MODIFY /struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Submit.java
MODIFY /struts/struts2/trunk/apps/mailreader/src/main/webapp/Subscription.jsp
MODIFY /struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/Restful2ActionMapper.java
MODIFY /struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Reset.java

Repository Revision Date User Message
Struts #479263 Sun Nov 26 03:13:06 UTC 2006 husted WW-1458 Enable use of both key and name attributes. Update some related Javadocs.
Files Changed
MODIFY /struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/TextField.java
MODIFY /struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Label.java
MODIFY /struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Reset.java
MODIFY /struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/UIBean.java

Repository Revision Date User Message
Struts #479382 Sun Nov 26 17:24:51 UTC 2006 husted WW-1458 Update FAQs. Drop obsolete question meant for Shale. Add "s2 stable" question. Add five reasons to migrate, or not.
Files Changed
MODIFY /struts/site/src/site/fml/roadmap.fml
MODIFY /struts/site/src/site/fml/kickstart.fml

Repository Revision Date User Message
Struts #479396 Sun Nov 26 18:32:24 UTC 2006 husted WW-1458 Update mailreader to use constant configuration and latest tag idioms.
Files Changed
MODIFY /struts/struts2/trunk/apps/mailreader/src/main/java/mailreader2/MailreaderSupport.properties
MODIFY /struts/struts2/trunk/apps/mailreader/src/main/webapp/Registration.jsp
MODIFY /struts/struts2/trunk/apps/mailreader/src/main/java/mailreader-default.xml
MODIFY /struts/struts2/trunk/apps/mailreader/src/main/webapp/tour.html
DEL /struts/struts2/trunk/apps/mailreader/src/main/java/struts.properties
MODIFY /struts/struts2/trunk/apps/mailreader/src/main/webapp/Subscription.jsp
MODIFY /struts/struts2/trunk/apps/mailreader/src/main/java/struts.xml

Repository Revision Date User Message
Struts #479850 Tue Nov 28 02:21:39 UTC 2006 husted WW-1458 Add link to XWork API docs. Move Shale reference to FAQ. Fix POM reference to assembly plugin.
Files Changed
MODIFY /struts/struts2/trunk/src/site/site.xml
MODIFY /struts/struts2/trunk/assembly/pom.xml
MODIFY /struts/site/src/site/fml/roadmap.fml
MODIFY /struts/site/src/site/xdoc/index.xml