public class DateProducer extends Object
Producer for #{startup}
and #{now}
.
Since 4.0 it produces by default Instant
whereas it previously produced Date
.
Historical note: since 1.0 these were registered as beans in faces-config.xml. Since 3.5.1 these were migrated to CDI producers, because the CDI implementation being used may emit warnings on them not being proxyable.
Constructor and Description |
---|
DateProducer() |
Modifier and Type | Method and Description |
---|---|
Instant |
getNow()
This makes an instance of
Instant as current datetime available by #{now} . |
Instant |
getStartup()
This makes an instance of
Instant as startup datetime available by #{startup} . |
Copyright © 2012–2020 OmniFaces. All rights reserved.