'Jasper Report style isBold="true" not working in a conditionalStyle

I'm using the Jasper Report library for Java v6.19.1 and the Report Design plugin for Eclipse.

I created this conditional style and I applied it to a text field.

<style name="myStyleBold">
<conditionalStyle>
<conditionExpression><![CDATA[$F{misura} == null]]></conditionExpression>
<style isBold="true" isItalic="true" isUnderline="true" isStrikeThrough="true"/>
</conditionalStyle>
</style>

All formats are working (isItalic="true" isUnderline="true" isStrikeThrough="true"), but the isBold="true" is never applied.

Anyone has the same issue or solved it?



Solution 1:[1]

Solved. The value must be < EREDITATO >. It was "false".

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Andrea Bevilacqua