leandrogehlen / grails-easyui

jQuery EasyUI resources and taglibs
6 stars 3 forks source link

use of depricated API #11

Open eserss opened 10 years ago

eserss commented 10 years ago

Hi leandrogehlen, I get a note when compile my app in grails 2.4.0: Note: C:\Users\Романов.grails\2.4.0\projects\analiz\plugins\easyui-1.6\src\java\org\grails\plugins\easyui\EasyuiDomainClassMarshaller.java uses or overrides a deprecated API.

Can you do something to prevent this note to appear?

This note also appear when comiling project in grails 2.3.4. In grails 2.3.4 all working OK.

fronzal commented 10 years ago

Hello, in my test application, i can create a new row with the form, but the grid is not shown ....

Is it a problem of the marshaller ?? The code in BootStrap.groovy:

import grails.converters.JSON import org.codehaus.groovy.grails.commons.GrailsApplication import org.grails.plugins.easyui.EasyuiDomainClassMarshaller

class BootStrap { GrailsApplication grailsApplication

def init = { servletContext ->
    JSON.registerObjectMarshaller(new EasyuiDomainClassMarshaller(true, grailsApplication))

}

def destroy = {
}

}

leandrogehlen commented 10 years ago

do you used the scaffold generator?

leandrogehlen commented 10 years ago

if you configure the grails.plugin.easyui.register.marshaller = true does not necessary to register marshaller

fronzal commented 10 years ago

 

Hello Leandro,

thank you for the prompt answer,

 

i created the controller with easyui-generate-controlller   and also the view with ....generate-view

The problem is, the grid is not visible,  ( creating of a new row-object (with form) is possible)

Visible are only the the buttons "create", "edit", "delete", "refresh"

 

 

  1. where,  in which file/section  should i put this statement

...register.marshaller = true    ??

 

2. is the marshaller necessary for showing data in the grid?

 

3.   may be this settings are missed?    And where should i put this settings?

// available "en", "pt_BR" grails.plugin.easyui.locale = 'en' //folder name found in "jquery-easyui/themes" grails.plugin.easyui.theme = 'black' //version defined in the file "jquery-1.8.0.min.js" found in "jquery-easyui" grails.plugin.easyui.jquery.version = '1.8.0'

 

  1. tried to put

in  differit places in the view, but  it had no influence

 

  1. is a grails sample project (for grails 2.3.7) available ?

 

 

Best regards,

Franz

 

 

Gesendet: Freitag, 29. August 2014 um 14:44 UhrVon: "Leandro Gehlen" notifications@github.comAn: leandrogehlen/grails-easyui grails-easyui@noreply.github.comCc: fronzal Franz.Irlweg@online.deBetreff: Re: [grails-easyui] use of depricated API (#11)

if you to configure the grails.plugin.easyui.register.marshaller = true does not necessary to register marshaller

— Reply to this email directly or view it on GitHub.

leandrogehlen commented 10 years ago

where, in which file/section should i put this statement

grails-app/conf/Config.groovy

is the marshaller necessary for showing data in the grid?

Yes

may be this settings are missed? And where should i put this settings?

grails-app/conf/Config.groovy

tried to put

usually in grails-app/views/layouts/main.gsp

  1. is a grails sample project (for grails 2.3.7) available ?

unfortunately not