Open eserss opened 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 = {
}
}
do you used the scaffold generator?
if you configure the grails.plugin.easyui.register.marshaller = true
does not necessary to register marshaller
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"
...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'
in differit places in the view, but it had no influence
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.
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
- is a grails sample project (for grails 2.3.7) available ?
unfortunately not
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.