I’m trying to display a table with messages based on a users input. If they
entered a wrong input I want to change the formatting of the message. (see
image)
http://www.nabble.com/file/p16396513/Untitled-1.gif 

Here is the code that prints the columns, 

<ec:table title="Physical File Results" 
         items="cmslist" 
         var="phyFileResult" 
         filterable="false" 
         sortable="false" 
         showPagination="true"
         showExports="true"
         autoIncludeParameters="false">
 <ec:row>
  <ec:column property="docNumber" title="Docket Number" style="width:20%;"/>
  <ec:column property="docMessage" title="Message" />
 </ec:row>
</ec:table>

I’m not sure how to write the the <c:choose> to check for the message
“Error: Docket number is wrong”

<ec:row>
    <ec:column property="docNumber" title="Docket Number"
style="width:20%;"/>
  <c:choose>
     <c:when test='${}'>
        <ec:column property="docMessage" title="Message"
style="font-weight:bold; color: #990000" />
     </c:when>
     <c:otherwise>
        <ec:column property="docMessage" title="Message" style="color: 
#000000"/>
     </c:otherwise>
  </c:choose>
</ec:row>

-- 
View this message in context: 
http://www.nabble.com/Format-ec%3Acolumns-by-value-tp16396513p16396513.html
Sent from the stripes-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to