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

Adding URL encoding method to Format

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.1.0
    • core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: