Changeset 672
- Timestamp:
- Oct 3, 2010, 10:57:45 PM (14 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 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 """ -
trunk/grails-app/views/report/inventoryValueDetailed.gsp
r671 r672 67 67 </td> 68 68 <td valign="top" class="value"> 69 <custom:jasperButtons formName="inventoryValueDetailed" format="PDF, XLS" text="PDF" />69 <custom:jasperButtons jasper="inventoryValueDetailed" format="PDF, XLS" text="PDF" /> 70 70 </td> 71 71 </tr>
Note: See TracChangeset
for help on using the changeset viewer.