[ http://issues.apache.org/jira/browse/BEEHIVE-157?page=history ]
     
Nathan Jantz closed BEEHIVE-157:
--------------------------------

    Assign To: Nathan Jantz  (was: Eddie O'Neil)

This is verified to be fixed with the switch from <netui-data:columns> paradigm 
to <netui-data:rows>.  I can now construct JSTL conditionals on a row by row 
basis.  This is issue is now closed.

> Choosing data grid column types based on value to be displayed
> --------------------------------------------------------------
>
>          Key: BEEHIVE-157
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-157
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Alpha
>  Environment: Beehive Alpha 1.0 snapshot 
>     Reporter: Adrian Grealish
>     Assignee: Nathan Jantz
>      Fix For: V1Beta

>
> An error occurs when trying to choose the type of column in a data grid based 
> on the value to be displayed. For example of the column value to be displayed 
> is > 0 then I want an anchor column else a literal column. 
> Details below
> The error I get (with spelling mistake included) is: 
> javax.servlet.ServletException: javax.servlet.jsp.JspException: A data gird 
> column tag must be contained inside of a Columns tag.
> My JSP snippet
> <netui-data:dataGrid dataSource="pageInput.testSuiteRuns" 
> name="testSuiteRuns" disableDefaultPager="false">
>                   <netui-data:configurePager pageSize="10" 
> pageAction="viewGrid" />
>             <netui-data:columns >
>                         <netui-data:literalColumn 
> headerText="${bundle.default.testSuiteRunNameLabel}" 
> value="${container.item.suiteName}" />
>                         
>                         <c:choose>
>                               <c:when test="${container.item.testCount > 0}">
>                                     <netui-data:anchorColumn  
> headerText="${bundle.default.testSuiteRunTestCountLabel}" 
> action="viewTestCaseResults" value="${container.item.testCount}">
>                               <netui:parameter name="testSuiteRunId" 
> value="${container.item.testSuiteRunId}"/>
>                             </netui-data:anchorColumn>
>                         </c:when>
>                         <c:otherwise>
>                                     <netui-data:literalColumn 
> headerText="${bundle.default.testSuiteRunTestCountLabel}" 
> value="${container.item.testCount}" />
>                         </c:otherwise>
>                         </c:choose>
>  
>                         <netui-data:literalColumn 
> headerText="${bundle.default.testSuiteRunFailureCountLabel}" 
> value="${container.item.failureCount}" />
>                         <netui-data:literalColumn 
> headerText="${bundle.default.testSuiteRunErrorCountLabel}" 
> value="${container.item.errorCount}" />
>                         <netui-data:literalColumn 
> headerText="${bundle.default.testSuiteRunTimeLabel}" 
> value="${container.item.timeTaken}" />
>                         <netui-data:literalColumn 
> headerText="${bundle.default.testSuiteRunManual}" 
> value="${container.item.manualRun}" />
>  
>                   </netui-data:columns>
>      </netui-data:dataGrid>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to