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-764) URLBean improvements
Date Sat, 10 Jun 2006 03:17:19 GMT
     [ http://issues.apache.org/struts/browse/WW-764?page=all ]

Don Brown updated WW-764:
-------------------------

    Fix Version: Future
                     (was: 2.0.0)

> URLBean improvements
> --------------------
>
>          Key: WW-764
>          URL: http://issues.apache.org/struts/browse/WW-764
>      Project: Struts Action 2
>         Type: Improvement

>   Components: Misc
>     Versions: WW 2.2
>  Environment: N/A
>     Reporter: mike haberman
>      Fix For: Future

>
> I would like to see the following added to the URLBean class:
> URLBean setPage(String page)
> {
> // this would be consistent with addParameter()
> // currently its return type is void 
> }
> URLBean clear()
> {
> // clears the params hash table
> }
> Also, I would like to request that all the intance variables be made protected so one
can subclass URLBean
> this would allow for reuse in templates:
> #set ($href = $linkTool.clear())
> #set( $href = $href.setPage("accounts.vm")
> #set ($href = $href.addQueryParamenter("id", "234")
> <a href = "$href">test</a>
> #set ($href  = $linkTool.clear().setPage("hello.vm").addQueryParameter("id", "123"))
> <a href = "$href ">test</a>
> thanks
> mike

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message