I am having a devil of a time getting a simple if test condition to work
properly.  

Here is the jist of what I am trying to do:

<display:table id="idContract" name="contracts" class="results">
        <display:column         titleKey="label.select">
                <s:if test="${idContract.status}=='NEW'">
                        <s:checkbox name="selectedContracts"
fieldValue="${idContract.id}"/>
                </s:if>
                <s:else>
                        &nbsp;${idContract.status}&nbsp;
                </s:else>
        </display:column>
        <display:column         property="number"
titleKey="label.contractNumber" />
        <display:column         property="status"
titleKey="label.contractStatus" />
        <display:column         property="numAuthFacilities"
titleKey="label.authFacilities" />
</display:table>

I have tried the following and do not seem to be able to get any of them
to work:
"${idContract.status}=='NEW'"
'${idContract.status}=="NEW"'
"%{idContract.status}=='NEW'"
"${idContract.status=='NEW'}"
"%{idContract.status=='NEW'}"
"idContract.status=='NEW'"
"#idContract.status=='NEW'"

And a host of others that I cannot recall.

Does anyone happen to know the correct syntax?  I am getting tired of
guessing and cannot seem to make rhyme or reason out of the syntax rules
:-)

Thanks in advance!

-----------------------------------------
***Note:The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify the Sender
immediately by replying to the message and deleting it from your
computer. Thank you. Premier Inc.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to