Changeset 672 for trunk/grails-app/taglib/CustomTagLib.groovy
- Timestamp:
- Oct 3, 2010, 10:57:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/taglib/CustomTagLib.groovy
r667 r672 201 201 def jasperButtons = {attrs -> 202 202 if(!attrs['format']){throw new Exception(message(code:"jasper.taglib.missingAttribute", args:'format'))} 203 if(!attrs[' formName']){throw new Exception(message(code:"jasper.taglib.missingAttribute", args:'formName'))}204 String formName = attrs['formName']203 if(!attrs['jasper']){throw new Exception(message(code:"jasper.taglib.missingAttribute", args:'jasper'))} 204 String jasper = attrs['jasper'] 205 205 String buttonClass = attrs['class'] ?: "jasperButton" 206 206 String format = attrs['format'].toUpperCase() … … 230 230 def fmt = it.trim() 231 231 out << """ 232 <a href="#" class="${buttonClass}" title="${it.trim()}" onClick="return submit_jasperForm('${ formName}', '${fmt}')">232 <a href="#" class="${buttonClass}" title="${it.trim()}" onClick="return submit_jasperForm('${jasper}', '${fmt}')"> 233 233 <img border="0" src="${imgSrc}"${heightAttr} /></a> 234 234 """
Note: See TracChangeset
for help on using the changeset viewer.