-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello everybody,
is it possible to use Java 8 LocalDate (or LocalDateTime) with ZK <datebox> ? When I choose a date in the calendar it says "Cannot convert 07/06/17 00:00 of type class java.util.Date to class java.time.LocalDateTime".
Thank you for your answer.
Hello pafi,
To help you out please read the following forum post:
https://stackoverflow.com/questions/22929237/convert-java-time-localdate-into-java-util-date-type
Best,
Darksu
Still not possible... I have opened issue 1521 on Zk's Github (not able to post the link).
I'm hoping not to get stuck for too long with that old Date
s !
1) I made your link clickable, and added karma so you can create links from now on. 2) If you want to report a problem or a feature request please do so in our issue tracker (that's the place were we plan for upcoming or future releases): https://tracker.zkoss.org/
However as long as ZK still supports Java 5/6/7 (and this is due to user's demand) the core components won't be able to use JDK 8 API's.
Besides that it should be possible to implement a @Converter that does what you need (converting from Date to LocalDate as needed).
About form proxies: it would be helpful to provide the exception (in most cases of immutable classes it's enough to ignore these particular classes from proxy generation) E.g. you can override the ignoreProxyClasses list using a librarypropery https://www.zkoss.org/wiki/ZKConfigurationReference/zk.xml/TheLibraryProperties/org.zkoss.bind.proxy.IgnoredProxyClasses
For dedicated report please contact us directly: https://www.zkoss.org/support
Asked: 2017-06-06 02:47:27 +0800
Seen: 40 times
Last updated: Feb 07 '19