Skip to content

Commit

Permalink
clean spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwit committed May 29, 2009
1 parent 0973fea commit 3758718
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions ZkGrailsPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ZkGrailsPlugin {

def watchedResources = ["file:./grails-app/composers/**/*Composer.groovy",
"file:./plugins/*/grails-app/composers/**/*Composer.groovy",
"file:./grails-app/facade/**/*Facade.groovy",
"file:./grails-app/facade/**/*Facade.groovy",
"file:./plugins/*/grails-app/facade/**/*Facade.groovy"]

// resources that are excluded from plugin packaging
Expand Down Expand Up @@ -46,13 +46,13 @@ support to Grails applications.
bean.autowire = "byName"
}
}

application.facadeClasses.each { facadeClass ->
"${facadeClass.propertyName}"(facadeClass.clazz) { bean ->
bean.scope = "session"
bean.autowire = "byName"
}
}
}
}

def doWithApplicationContext = { applicationContext ->
Expand All @@ -75,7 +75,7 @@ support to Grails applications.
'filter-name' ("requestContextFilter")
'filter-class' ("org.springframework.web.filter.RequestContextFilter")
}
}*/
}*/

// filter for each ZK urls
def filterMappingElements = xml.'filter-mapping'[0]
Expand All @@ -92,8 +92,8 @@ support to Grails applications.
'filter-name'("requestContextFilter")
'url-pattern'("${p}")
}
}
*/
}
*/
}

// quick hack for page filtering
Expand All @@ -107,7 +107,7 @@ support to Grails applications.
'listener-class' ("org.zkoss.zk.ui.http.HttpSessionListener")
}
}

def servletElements = xml.'servlet'[0]
def mappingElements = xml.'servlet-mapping'[0]

Expand Down Expand Up @@ -153,8 +153,8 @@ support to Grails applications.
} else {
throw new MissingPropertyException(name, delegate.class)
}
}
}

org.zkoss.zk.ui.AbstractComponent.metaClass.append = { closure ->
closure.delegate = new ZkBuilder(parent: delegate)
closure.resolveStrategy = Closure.DELEGATE_FIRST
Expand All @@ -166,16 +166,16 @@ support to Grails applications.
delegate.removeItemAt(0)
}
}

org.zkoss.zul.Listbox.metaClass.setModel = { java.util.List list ->
delegate.getModel().clear()
delegate.getModel().addAll(list)
}

org.zkoss.zul.Listbox.metaClass.getModel = { ->
delegate.getModel()
}

org.zkoss.zul.AbstractListModel.metaClass.getAt = { Integer i ->
return delegate.getElementAt(i)
}
Expand Down

0 comments on commit 3758718

Please sign in to comment.