Created
May 2, 2012 03:58
-
-
Save uris77/2573500 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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