Grails
  1. Grails
  2. GRAILS-8828

Paginate tag missing mapping attribute

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.1-RC1
    • Component/s: TagLib
    • Labels:
      None

      Description

      Link tag has the ability to use mapping, but paginate is missing.

      Closure paginate = { attrs ->
      ...
              def linkTagAttrs = [action: action]
              if (attrs.controller) {
                  linkTagAttrs.controller = attrs.controller
              }
      //support mapping attribute
              if (attrs.mapping) {
                  linkTagAttrs.mapping = attrs.mapping
              }
      
      ...
      }
      

        Activity

        Hide
        Divin Dmitry added a comment -

        sortableColumn is missing mapping attribute too.

        Show
        Divin Dmitry added a comment - sortableColumn is missing mapping attribute too.
        Hide
        Jeff Scott Brown added a comment -

        The sortableColumn and paginate tags each support the mapping attribute now.

        Show
        Jeff Scott Brown added a comment - The sortableColumn and paginate tags each support the mapping attribute now.

          People

          • Assignee:
            Jeff Scott Brown
            Reporter:
            Divin Dmitry
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development