Grails 3.0.0 M1 states that g:remoteLink is deprecated and in 3.0.1 it no longer exists in the g: namespace. There is nothing in the documentation that suggests replacement of this functionality. Will someone please respond with a replacement option for GSP files to execute a controller action using the Prototype JavaScript library? If also possible, would a solution utilizing a Groovy custom tag library to eliminate embedded code directly in GSP files be presented?
Grails 3.0 <g:remoteLink ...> Ajax call replacement due to deprecation
3k Views Asked by TeamDitto At
1
There are 1 best solutions below
Related Questions in JAVASCRIPT
- Angular Show All When No Filter Is Supplied
- Why does a function show up as not defined
- I count the time the user takes to solve my quiz using Javascript but I want the same time displayed on another page
- Set "More" "Less" font size
- Using pagination on a table in AngularJS
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- State with different subviews
- Ajax jQuery firing multiple time display event for the same result
- Getting and passing MVC Model data to AngularJS controller
- Disable variable in eval
- javascript nested loops waiting for user input
- .hover() seems to overwrite .click()
- How to sort a multi-dimensional array by the second array in descending order?
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
Related Questions in AJAX
- Ajax jQuery firing multiple time display event for the same result
- Implement Onfailure in webApi controller
- AJAX PHP - Reload div after submit
- ajax load data from mysql
- Ajax-update only a component attribute, not the whole component nor its children
- using ajax to get a php database result and then show the result in a button
- How to prevent browser from executing some JavaScript when person clicks Back button?
- ajax async: true statement execution order
- Rails 4.2 jQuery loads only after refresh
- WebForms GET Json requests (JsonRequestBehavior.AllowGet)
- Rails - Ajax do not work properly on production server
- Angular js Button click
- Make jQuery/AJAX perform instantly on page load
- jQuery Ajax Uncaught TypeError: Cannot use 'in' operator to search
- Show success or error messages in Ajax response to Wordpress custom registration form
Related Questions in GRAILS
- No such property: id for class: java.lang.String
- Using like to non-string columns in Grails
- How to convert object reference that are in string form to that refrence class object?
- Restrict access to java-melody monitoring url
- Intercepting springsecurity behavior in grails
- Sort a Grails Domain list using a column index instead of column name
- Using service beans and dependency Injection in Geb Functional Tests
- how to create a pdf editor for grails
- Remove method of the List is not working
- Grails query based on Date
- Unit tests fail to run after upgrade from grails 2.3 to 2.5
- GGTS Classpath won't recognize folder on classpath after gradle eclipse
- Grails 2.4.4. hierarchical domain structure: find
- change input field value via javascript in grails
- Create skinny War file using Maven in Mavenized Grails
Related Questions in GRAILS-3.0
- Grails 3 Oracle AssertionFailure on Save action with getGeneratedKeys support not enabled
- Sorting on nullable fields in GORM
- Running Grails 3 on Heroku
- grails 3.0.1 gradle exceptions on OSX
- Defining a Grails 3.0 plugin domain class to be extendable
- Grails 3.0 <g:remoteLink ...> Ajax call replacement due to deprecation
- Mapping with Hibernate Annotations in Grails 3.0.1
- Grails 3.0.2 cannot resolve @Secured annotation in controller
- How do I use Bintray with Grails when applying plugins to my app?
- how to avoid having mongodb as default datasource when working with multiple datasources in grails 3
- What is the equivalent class for GrailsControllerHandlerMapping in Grails3
- How can I exclude classes from a Grails 3 plugin
- Why is grails.gorm.autoFlush set to true not working?
- How to upload file asynchronously in grails 3
- How to get Session in UserDetailsService with Grails 3?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The tags use inline javascript embedded into HTML tags which has long been considered bad practise. At the same time the APIs for creating remote links with JavaScript frameworks like jQuery and so on have advanced to the point where it is just as easy to use them and they have the advantage that the static resources can be optimised by asset pipeline and your application will perform better.
So given how things have changed over the last few years the Grails team decided to deprecate the tags as they are no longer considered best practise and you are better off using the native JavaScript APIs (jQuery etc.) as an alternative.
The original tags are still available at https://bintray.com/grails/plugins/ajax-tags
If you want them you have to declare a dependency: