You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Eddie O'Neil (JIRA)" <be...@incubator.apache.org> on 2005/02/09 16:04:14 UTC
[jira] Resolved: (BEEHIVE-157) Choosing data grid column types based on value to be displayed
[ http://issues.apache.org/jira/browse/BEEHIVE-157?page=history ]
Eddie O'Neil resolved BEEHIVE-157:
----------------------------------
Resolution: Fixed
Fix Version: V1Beta
This has been fixed and with the recent switch from <netui-data:columns> to <netui-data:rows>, the JSP tag model makes more sense when displaying a different UI for each row of data. To do this, just nest JSTL tags inside of a <netui-data:rows> tag and pick the data to display based on your criteria.
> 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: Eddie O'Neil
> 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