Uploaded image for project: 'Click'
  1. Click
  2. CLK-399

Adding URL encoding method to Format

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: core
    • Labels:
      None

      Description

      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>

        Attachments

          Activity

            People

            • Assignee:
              takezoe Naoki Takezoe
              Reporter:
              takezoe Naoki Takezoe
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: