convertDateTime « Control « JSF Q&A

1. convertDateTime reload problem

I'm working on a JSF 2.0 project using Mojarra, PrimeFaces and Tomcat 6.x. I display the date like this

<h:outputText styleClass="date" value="#{}">
    <f:convertDateTime pattern="#{msg['date.shortPattern']}" />
and date.shortPattern is in resource bundle:

2. Set a default timezone for f:convertDateTime

I use JSF1.2 and I have a little problem with timezones. Calendar respects my timezone and save the correct time in the Database. When I show it using a h:outputtext with a ...

3. convertDateTime

4. f:convertDateTime

5. f:convertDateTIme problem

Hi, According to the JavaDocs * SHORT is completely numeric, such as 12.13.52 or 3:30pm * MEDIUM is longer, such as Jan 12, 1952 * LONG is longer, such as January 12, 1952 or 3:30:32pm * FULL is pretty completely specified, such as Tuesday, April 12, 1952 AD or 3:30:42pm PST so I have used Full. Now my question is--- Whatever ...

6. f:convertDateTime issue

7. convertDateTime seconds???

8. F:convertDateTime display

hi, I have a to be displayed in the JSF page. I'm using t:outputText and f:convertDateTime to display in (MM/dd/yyyy hh:mm:ss a) format. But when the page is rendered, I'm getting the corresponding GMT time instead of the correct one. For Eg, my date is Feb 9 2009 07:30:29 AM but i get 02/09/2009 12:30:29 PM when the page is ...

9. f:convertDateTime issue

11. f:convertDateTime substracting a day

13. f:convertDateTime not working

Hi, I have a JSF outputText for which I am using f:convertDateTime to format the output. The problem is that the date gets formatted but its value is set incorrectly. For example, I have a date 26-12-2010 and when I format the date using f:convertDateTime, I get 25-12-2010 instead. I don't know why the formatting takes date 1 day in past. ...