Skip to content

Instantly share code, notes, and snippets.

@emorgado
Created September 19, 2017 18:45
Show Gist options
  • Save emorgado/7e09bd50f9dc8dbafb55939405d5f55d to your computer and use it in GitHub Desktop.
Save emorgado/7e09bd50f9dc8dbafb55939405d5f55d to your computer and use it in GitHub Desktop.
Grails fieldsPlugin override select with inLIst constraint
<%--
<pre>
controllerName: ${controllerName}
actionName: ${actionName}
themeName: ${themeName}
superClass: ${superclass}
propertyName: ${propertyName}
propertyType: ${propertyType}
propertySuperclass: ${propertySuperclass}
associationType: ${associationType}
------------------------------
bean: ${bean}
property: ${property}
type: ${type}
label: ${label}
value: ${value}
constraints: ${constraints}
persistentProperty: ${persistentProperty}
errors: ${errors}
required: ${errors}
invalid: ${invalid}
prefix: ${prefix}
widget: ${widget}
beanClass: ${beanClass}
associationType: ${associationType}
</pre>
--%>
<g:select name="${property}"
from="${constraints.inList}"
value="${value}"
class="form-control one-to-one"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment