porno porno rokettube
Results 1 to 3 of 3

Thread: Grails application groovy controller issue

  1. #1

    Grails application groovy controller issue

    I'm building a grails application and loading my backend by converting my csv tables into json files and rendering them to index.gsp for reading.

    Most of the functionality of the dashboard is done, but there is a major flaw in my code as in, i'm loading JSON files of size 55 mb onto the browser everytime a selection is made. This is absolutely not recommended and there should be a middletier(or socket etc) or something, which takes the main json file and gives the browser exactly what is needed to show the data visualization, the size of which should be in kB for best performance

    I am very new to this and was trying to resolve this via the javascript part of my code, but the problem lies with my groovy controller part and I must have a placeholder to store the json file and pull only relevant data on my browser to prevent a crash.

    So, after consultation with a javascript guy, I have realized that we have to use AJAX calls in both index.gsp and controller groovy part such that I pick only the relevant data in the browser and the remaining data lies in the controller such that every time a filer is changed, only the relevant data comes to the browser

    I'm a beginner in AJAX, groovy and grails. After searching for a while, it seems I can use AJAX driven selects in GSP and also the remotefunction() Also, using filters plugin or some kind of "params" have to be used to solve this issue

    Any suggestions/approached will be appreciated as to how to proceed in the same.

  2. #2
    Administrator dave's Avatar
    Join Date
    Mar 2010
    Location
    West Yorkshire, UK - Valencia Spain
    Posts
    110
    Be wary of using remoteFunction as that's now deprecated.

    Is there no reason your data is not being brought into a database?
    Connect with me on twitter : @davebrown1975 http://twitter.com/davebrown1975

    Web & Mobile Development by Tucanoo Solutions Ltd

  3. #3
    I am very new to this and was trying to resolve this via the javascript part of my code, but the problem lies with my groov


    ______
    shafiq

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Forum Design by Tucanoo Solutions Ltd Grails Development Specialists.