Hello! Can anybody help me out? I created a report and used a vm template as its report file... When testing the report, data was indeed read and page numbers are displayed in the query result page but no data displayed (Why?).. this is the code of the loaded .vm file...
Does the page say something along the lines of 'nothing to display'? If so the query is not returning data. If not the property names are probably wrong. I think displaytag is looking for property names the match JavaBean conventions. Try lowercasing the first letter of the property...
- Erik
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ERROR - StandardWrapperValve.invoke(253) | Servlet.service() for servlet default threw exception
java.lang.IllegalArgumentException: can't parse argument number " ...
"
at java.text.MessageFormat.makeFormat(MessageFormat.java:1330)
at java.text.MessageFormat.applyPattern(MessageFormat.java:450)
at java.text.MessageFormat.<init>(MessageFormat.java:350)
at com.opensymphony.xwork2.util.LocalizedTextUtil.buildMessageFormat(LocalizedTextUtil.java:622)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello! Can anybody help me out? I created a report and used a vm template as its report file... When testing the report, data was indeed read and page numbers are displayed in the query result page but no data displayed (Why?).. this is the code of the loaded .vm file...
<br>
<div align="center">
<table class="dialog">
<tr>
<td>
<ul>
<li><b>Report - </b>$report.name</li>
#foreach ($param in $reportParameters.entrySet())
<li>$param.key = $param.value </li>
#end
</ul>
</td>
</tr>
</table>
<br>
$req.setAttribute("resulta", $results)
#bodytag( Table "name=resulta" "class=displayTag" "sort=list" "pagesize=10")
#tag( Column "property=MYPREFIX" "title=PREFIX" "sortable=true" "headerClass=sortable" )
#tag( Column "property=PROD_CODE" "title=PROD CODE" "sortable=true" "headerClass=sortable")
#tag( Column "property=CNT" "title=COUNT" "sortable=true" "headerClass=sortable")
#end
</body>
</html>
Does the page say something along the lines of 'nothing to display'? If so the query is not returning data. If not the property names are probably wrong. I think displaytag is looking for property names the match JavaBean conventions. Try lowercasing the first letter of the property...
- Erik
I've tried darkannihilator's approach but I keep get the following exception, any ideas ? Tnx
ERROR - ReportRunAction.execute(207) | Encountered "#end\r\n" at line 10, column 1.
Was expecting one of:
<EOF>
"(" ...
<RPAREN> ...
<ESCAPE_DIRECTIVE> ...
<SET_DIRECTIVE> ...
"\\\\" ...
"\\" ...
<TEXT> ...
<SINGLE_LINE_COMMENT> ...
"*#" ...
"*#" ...
<STRING_LITERAL> ...
"if" ...
"stop" ...
<NUMBER_LITERAL> ...
<WORD> ...
<IDENTIFIER> ...
<DOT> ...
"{" ...
"}" ...
ERROR - StandardWrapperValve.invoke(253) | Servlet.service() for servlet default threw exception
java.lang.IllegalArgumentException: can't parse argument number " ...
"
at java.text.MessageFormat.makeFormat(MessageFormat.java:1330)
at java.text.MessageFormat.applyPattern(MessageFormat.java:450)
at java.text.MessageFormat.<init>(MessageFormat.java:350)
at com.opensymphony.xwork2.util.LocalizedTextUtil.buildMessageFormat(LocalizedTextUtil.java:622)