Use <f:convertDateTime>
. You can nest this in any input and output component. Pattern rules are same as java.text.SimpleDateFormat
.
<h:outputText value="#{someBean.dateField}" >
<f:convertDateTime pattern="dd.MM.yyyy HH:mm" />
</h:outputText>
More Related Contents:
- Identifying and solving javax.el.PropertyNotFoundException: Target Unreachable
- JSF returns blank/unparsed page with plain/raw XHTML/XML/EL source instead of rendered HTML output
- Invoke direct methods or methods with arguments / variables / parameters in EL
- Outcommented Facelets code still invokes EL expressions like #{bean.action()} and causes javax.el.PropertyNotFoundException on #{bean.action}
- Defining and reusing an EL variable in JSF page
- Specify conditional rendering of element inside ? The does not seem to work
- How to compare a char property in EL
- How can I check what version of EL is server using
- How does EL empty operator work in JSF?
- Invoking methods with parameters by EL in JSF 1.2
- String concatenation in EL for dynamic ResourceBundle key
- instanceof check in EL expression language
- How to set -Dorg.apache.el.parser.COERCE_TO_ZERO=false programmatically
- javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL does not work anymore since Java EE 7 / EL 3.0
- How to use EL in PrimeFaces oncomplete attribute which is updated during action method
- What exactly is #{component} in EL?
- h:inputText which is bound to Integer property is submitting value 0 instead of null
- How to concatenate Strings in EL expression?
- How to create a custom EL function to invoke a static method?
- How to install and use CDI on Tomcat?
- How to dynamically add JSF components
- How to use enum values in f:selectItem(s)
- How to programmatically send POST request to JSF page without using HTML form?
- Purpose of the h:outputLabel and its “for” attribute
- How can I set id of a component/tag inside ui:repeat
- How to create a custom Facelets tag?
- JSF 2 and Post/Redirect/Get?
- Why doesn’t JSF 2.0 RI (Mojarra) scan my class’ annotations?
- JSF/Facelets: why is it not a good idea to mix JSF/Facelets with HTML tags?
- JSF redirect to other page