Grails
  1. Grails
  2. GRAILS-7746

Misleading documentation for remoteFunction tag

    Details

    • Type: Task Task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3.7
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None

      Description

      The documentation page for remoteFunction should more explicitly define the differences between using this tag from a GSP compared to code.

      For example, the documentation says:
      "method (optional) - The method to use the execute the call (defaults to "post", specified in 'options' array)"

      Note that it says "specified in the 'options' array." However, the correct usage from a GSP is to define an attribute for the method, like this:
      <g:remoteFunction controller="activity" action="history" method="GET"/>

        Activity

        Hide
        Peter Ledbrook added a comment -

        This depends on the provider. Certainly the standard Prototype provider will ignore the above. This really needs looking into because there may be an underlying issue in the provider implementations.

        Show
        Peter Ledbrook added a comment - This depends on the provider. Certainly the standard Prototype provider will ignore the above. This really needs looking into because there may be an underlying issue in the provider implementations.

          People

          • Assignee:
            Peter Ledbrook
            Reporter:
            Jason
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Last Reviewed:

              Development