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


This has been verified with the addition of some JSP functions BVTs. Closing 
issue.

> it's hard to build data grid UI that is aware of a column's sort direction
> --------------------------------------------------------------------------
>
>          Key: BEEHIVE-507
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-507
>      Project: Beehive
>         Type: Improvement
>   Components: NetUI
>     Versions: V1
>     Reporter: Eddie O'Neil
>     Assignee: Nathan Jantz
>      Fix For: V1

>
> When building grid UI, it's often useful to build a custom header cell that 
> can render images (text, etc) that reflects the direction of the current 
> sort.  This isn't easy today and requires writing code to make it work.  A 
> better solution would be to have a set of JSP 2.0 functions that can be 
> invoked from the JSP as:
> <c:if test="${netuidata:isSortedAscending(dataGrid.state.sortModel, 
> 'customerid')}">
>     <netui:image 
> src="${pageContext.request.contextPath}/resources/images/up.gif" 
> border="false" />
> </c:if>
> <c:if test="${netuidata:isSortedDescending(dataGrid.state.sortModel, 
> 'customerid')}">
>     <netui:image 
> src="${pageContext.request.contextPath}/resources/images/down.gif" 
> border="false" />
> </c:if>
>   

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to