Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Add Support for Column Formatting with MessageFormat patterns #82

Closed
tduchateau opened this issue Jan 28, 2014 · 2 comments
Closed

Comments

@tduchateau
Copy link
Member

Issue by dgeske from Tuesday Mar 26, 2013 at 03:13 GMT


Add an attribute format that supports standard java.util.MessageFormat patterns.
Example:

<datatables:column property="email" format="<a href='mailto:{0}'>{0}</a>" />
<datatables:column property="date" format="{0,date,dd-MM-yyyy}" />

results in
ab@cd.de | 01-12-2013
de@fg.hi | 03-10-2012

Inspired by the no longer maintained <display:*> tag library's format attribute.

This will not, however, resolve issue #53 (Improve sorting), because sorting is done client-side.
This feature will result in the already formatted values to be present client-side, with no reference to the original property value.

@tduchateau
Copy link
Member Author

Comment by dgeske from Sunday Apr 14, 2013 at 21:01 GMT

Thanks!

@tduchateau
Copy link
Member Author

Comment by tduchateau from Sunday Apr 14, 2013 at 21:03 GMT

You're welcome :-)
I just didn't test enough regarding sorting and filtering feature using the new format attribute. I think there will be new issues.. :-/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant