xiaochong / zkui

Grails ZK UI Plugin
http://grails.org/plugin/zkui
GNU Lesser General Public License v3.0
24 stars 8 forks source link

zkui grails plugin template scaffolding / ListComposer.groovy not working version 0.5.M3 #48

Closed camponuevo closed 12 years ago

camponuevo commented 12 years ago

Dear team, First thanks for this fantastic framework. We have being evaluating it and it is just awesome. With the new release of the of version 0.5.M3 + ZK 6.0.0.FL.20120210 the render method of ListitemRender, RowRender, TreeitemRender and ComboitemRender are changed, so the zkui / src / templates / zkui / scaffolding / ListComposer.groovy will require to be changed including the new parameter.

as is now private rowRenderer = {Row row, Object id -> def ${propertyName} = ${className}.get(id) row << {

should be private rowRenderer = {Row row, Object id, int index -> def ${propertyName} = ${className}.get(id) row << {

Tks. Carlos Camponuevo

xiaochong commented 12 years ago

The 0.5.M3 template scaffolding is work fine.

Are you use the old version or use the old template generate by zkui-install-templates command ?

camponuevo commented 12 years ago

xiaochong, I used the zkui-install-templates.

camponuevo commented 12 years ago

xiaochong, I checked out the sources and noticed that in deed the code is ok. Looks like i was running the older versions of the templated with the newer plugin version.

Thanks for your help.