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
Assigned to: Eddie O'Neil
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira