According to the ZKGrails creator, Chanwit Kaewkasi, only proper MVC architecture is supported, so no more
So, therefore, no more rapid prototyping inside the .zul pages. Now, all the coding must be done inside the "composer" classes.
Also, there is a Groovy DSL/Builder to facilitate the coding, but I haven't found any documentation for exactly how to use it yet.
I've been attempting to duplicate a "Grid Hierarchy" like the one found in the ZK Demo page here: http://www.zkoss.org/zkdemo/grid/hierarchy
Inside the composer we may have code like this:
def afterCompose = { window -> // initialize components here def vendors = Vendor.findAll() $('rows').append{ vendors.each{ v -> if(v.intl){ v.vendorStats.each{ vs -> if(vs.local){ row { label(value:v.id) label(value:v.name) label(value:v.intl) label(value:vs.minutes) } } } } } } }
0 comments:
Post a Comment