I really like the look and functionality of the DateRangeItem, but I am having a lot of trouble getting any data out of it. DateRangeItem.getValue() returns a non null DateRange when either of the dates are set, but calling DateRange.getStartDate() or DateRange.getEndDate() or the relative versions of those always causes an exception.
So I looked in the showcase and the only place I found using DateRangeItem is for filtering ListGrids. Those examples obviously work fine, but they use DateRangeItem.getCriterion() and I can't figure out how to actually get the dates out of the Criteria object. What type of object are the criteria stored as? When I call DateRangeItem.getCriterion().getAttribute("criteria").toString() it prints out as "[object Object],[object Object]". Trying to convert this to a Map or List both cause exceptions.
So I looked in the showcase and the only place I found using DateRangeItem is for filtering ListGrids. Those examples obviously work fine, but they use DateRangeItem.getCriterion() and I can't figure out how to actually get the dates out of the Criteria object. What type of object are the criteria stored as? When I call DateRangeItem.getCriterion().getAttribute("criteria").toString() it prints out as "[object Object],[object Object]". Trying to convert this to a Map or List both cause exceptions.
Comment