Martin Marinschek wrote:
You know that there is something like a converter tag already in JSF, right?
Sure, I know. And it is sufficient during setting the value, a custom converter to convert the string to joda-time do the job, ...

what would your variant b be different from that?
... but during getting the value the HtmlCalendarRenderer.encodeEnd uses RendererUtils.getDateValue() which requires the valueHolder to provide a java.util.Date.

Now the inputCalendar need to now how to convert from this class to java.util.Date. Or at least it need to know how to get the needed informations out of the object.

Another solution could be to add (beside the joda-converter) a valueInterpreter="" attribute to inputCalendar which provides a class to get the needed informations out of the whatever-date object. Those methods called on timeKeeper in HtmlCalendarRenderer should then be routed through this "Interpreter" (better name is welcome). If no inpterpreter was set the default is used which is able to deal with java.util.Date.

---
Mario

Reply via email to