dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #10699
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2936: Minor fix
------------------------------------------------------------
revno: 2936
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2011-02-28 21:34:04 +0100
message:
Minor fix
modified:
dhis-2/dhis-web/dhis-web-commons/src/main/resources/grid.vm
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/resources/grid.vm'
--- dhis-2/dhis-web/dhis-web-commons/src/main/resources/grid.vm 2011-02-27 22:34:30 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/resources/grid.vm 2011-02-28 20:34:04 +0000
@@ -104,12 +104,12 @@
#set( $x = 10 )
#foreach( $header in $grid.getVisibleHeaders() )
#if( $header.meta ) #set( $offset = 110 ) #else #set( $offset = 55 ) #end
- <textField>
+ <textField isBlankWhenNull="true">
<reportElement x="${x}" y="0" width="${offset}" height="20"/>
<textElement #if( !$header.meta )textAlignment="Center"#end>
<font size="9"/>
</textElement>
- <textFieldExpression class="java.lang.String"><![CDATA[ ( ${dollar}F{${header.column}} != null ? String.valueOf( ${dollar}F{${header.column}} ) : "" ) ]]></textFieldExpression>
+ <textFieldExpression class="${header.type}"><![CDATA[${dollar}F{${header.column}}]]></textFieldExpression>
</textField>
#set( $x = ( $x + $offset ) )
#end