fmt

With facelets what is the equivalent to fmt:formatDate?

I am converting a JSP web page to facelets view handler. What is the equivalent to fmt:formatDate etc.? I know that it isn't supported. But is there an alternative? A third level implementation? ...

fmt:formatDate and timeZone

I have fields in a Mysql database typed datetime. I store, for example, a payment's date with next Java code: payment.setCreatedOn(new Date(System.currentTimeMillis())); In my view layer I use fmt:formatDate to format dates: <fmt:formatDate value="${payment.createdOn}" pattern="EEE, dd MMM yyyy HH:mm:ss"/> My ...

How to hide ANSI colour escape codes from fmt

I use (GNU) fmt to format longer texts with nice (‘optimal’) line breaks. However, if the text contains any ANSI colour escape sequences (which are never displayed, and only serve to colour the text when displaying it), fmt considers these as normal characters, and calculates the wrong line lengths. I’m not sure how good literal escape ...