Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

use of depricated API #11

Open
eserss opened this issue Jun 10, 2014 · 5 comments
Open

use of depricated API #11

eserss opened this issue Jun 10, 2014 · 5 comments

Comments

@eserss
Copy link

eserss commented Jun 10, 2014

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
Copy link

fronzal commented Aug 29, 2014

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
Copy link
Owner

do you used the scaffold generator?

@leandrogehlen
Copy link
Owner

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

@fronzal
Copy link

fronzal commented Sep 1, 2014

 

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
    <r:require modules="easyui_core"/>
    <r:layoutResources />

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" [email protected]: leandrogehlen/grails-easyui [email protected]: fronzal [email protected]: 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
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants