That's legal. You can also omit the "!= null" as in <span
jwcid="@If" condition="ognl:object">
Or, getting rid of the external @If and using ?:
<span jwcid="@Insert" value="ognl: object ? object.name: '' "/>
where the last part is colon, two single-quotes, and a double-quote
to finish.
?: is especially nice for alternating row colors in a table:
<span jwcid="@Foreach" source="ognl:things" value="ognl:thing"
index="ognl:index">
<tr jwcid="@Any" style="ognl: index band 0x01 ? 'background-color:
yellow' : 'background-color: white' ">
<td> blah blah blah <td>
</tr>
</span>
...Richard
On Jan 6, 2006, at 11:32, Chris Chiappone wrote:
I had a real quick question to know if its legal to do this
following with
ognl:
<span jwcid="@If" condition="ognl:object != null">
<span jwcid="@Insert" value="ognl:object.name"/>
</span>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]