Skip to content

Instantly share code, notes, and snippets.

@uris77
Created May 2, 2012 03:58
Show Gist options
  • Save uris77/2573500 to your computer and use it in GitHub Desktop.
Save uris77/2573500 to your computer and use it in GitHub Desktop.
package com.example
import org.zkoss.zk.grails.*
import org.zkoss.bind.annotation.Command
import org.zkoss.bind.annotation.NotifyChange
import org.zkoss.bind.annotation.Init
import org.zkoss.zk.ui.select.annotation.Wire
import org.zkoss.zk.ui.select.annotation.WireVariable
class ListViewModel {
def persons = []
@WireVariable
def personFacade
@Init init() {
persons = personFacade.all()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment