You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Naoki Takezoe (JIRA)" <ji...@apache.org> on 2009/04/28 04:20:30 UTC

[jira] Resolved: (CLK-399) Adding URL encoding method to Format

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

Naoki Takezoe resolved CLK-399.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.2

Fixed in trunk.
http://svn.apache.org/viewvc?view=rev&revision=769220

> Adding URL encoding method to Format
> ------------------------------------
>
>                 Key: CLK-399
>                 URL: https://issues.apache.org/jira/browse/CLK-399
>             Project: Click
>          Issue Type: Improvement
>          Components: core
>            Reporter: Naoki Takezoe
>            Assignee: Naoki Takezoe
>            Priority: Minor
>             Fix For: 2.0.2
>
>
> I propose adding URL encoding method which invokes ClickUtils#encodeUrl() to net.sf.click.util.Format.
> This method is useful to assemble link URLs in the HTML template.
> ========
> public String encodeUrl(Object object){
>   return ClickUtils.encodeUrl(object, Context.getThreadLocalContext());
> }
> ========
> <a href="test.htm?name=$format.encodeUrl($name)">Link</a>

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