struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Brown (JIRA)" <j...@apache.org>
Subject [jira] Updated: (WW-1517) Streamlined link tag for single-parameter links
Date Fri, 02 May 2008 05:27:05 GMT

     [ https://issues.apache.org/struts/browse/WW-1517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Don Brown updated WW-1517:
--------------------------

         Priority: Major  (was: Critical)
    Fix Version/s:     (was: 2.1.3)
                   Future

Seems important, but with no one signing up to do the work, I'm moving it to future.

> Streamlined link tag for single-parameter links
> -----------------------------------------------
>
>                 Key: WW-1517
>                 URL: https://issues.apache.org/struts/browse/WW-1517
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Plugin - Tags
>    Affects Versions: 2.0.1
>            Reporter: Ted Husted
>            Assignee: Joe Germuska
>             Fix For: Future
>
>
> The url and param tags are very flexibile, but the most common case of a single parameter
link. 
>         <s:url id="url" action="HelloWorld" includeContext="false">
>             <s:param name="request_locale">en</s:param>
>         </s:url>
>         <s:a href="%{url}">English</s:a>
> is verbose (to the point of being silly).
> It is worthwhile to have a streamlined link tag, a al Struts 1, to cover the single-parameter
case.
>         <s:link action="HelloWorld" param="request_locale" paramValue="en">English</s:link>
> In the interest of brevity, I would suggest that includeContext default to "false" for
the single-parameter case. 
> Or, with a message resource key, from
> <a href="<s:url action="Login_input"/>">%{getText('"sign_on"')}</a>
> to 
>  <s:link action="login_input" key="sign_on" />

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message