Click
  1. Click
  2. CLK-399

Adding URL encoding method to Format

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor 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>

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development