Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6809489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:05:34+00:00 2026-05-26T20:05:34+00:00

The Grails documentation for the remoteFunction update attribute states: update (optional) – Either a

  • 0

The Grails documentation for the remoteFunction update attribute states:

update (optional) – Either a Map containing the elements to update for ‘success’ or ‘failure’ states, or a string with the element id to update, in which case failure events would be ignored

I’m a little confused why the indicate a Map and not a List here, is this wrong? I imagine I want my remote action to return a Map, where the keys match the name of the list elements specified in the update attribute??

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:05:35+00:00Added an answer on May 26, 2026 at 8:05 pm

    Use update, if you want to replace a part of the current page, which is identified by the (html)-id in the update tag. E.g.:

    <div id="resultOfAJAX"></div>
    
    <g:remoteFunction update="resultOfAJAX" [..] />
    

    However this is not useful, if the AJAX call fails. That is why you can define which element is to be updated in the failure case:

    <div id="resultOfAJAX"></div>
    <div id="someErrorField"></div>
    
    <g:remoteFunction update="[success: 'resultOfAJAX', failure: 'someErrorField']" [..] />
    

    I am not sure, whether this clarifies your question regarding update, but maybe it helps 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Documentation says: The Grails team discourages the embedding of core application logic inside controllers,
In a Grails domain class, how do I set the constraint for a String
Basically I have 2 questions regarding grails filters. According to grails documentation you can
I have read the documentation for Grails and Webtest in this site: http://www.grails.org/plugin/webtest And
Can someone explain how to define multi column indexes in Grails? The documentation is
My Grails app has the following domain objects class ProductType { String name static
In grails if you want to map to particular HTTP methods you normally use
I followed the tutorial on the grails documentation was successfully able to create project
I'm having some problems getting Grails to map my 404 errors to an errors
The documentation created by running grails doc is not completely satisfactory in my eyes.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.