<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Use a PrimeFaces  with a ivy-date as datatype</title><link>https://answers.axonivy.com/questions/846/use-a-primefaces-with-a-ivy-date-as-datatype</link><description>&lt;p&gt;Hello everyone, &lt;/p&gt;
&lt;p&gt;how is it possible to use the primefaces &amp;lt;p:calendar&amp;gt;-element with a "date"-object (ch.ivyteam.ivy.scripting.objects.Date) as destination to save the entered date?
In the example on &lt;a href="http://www.xpertivy.ch/releases/Xpert.ivy/5.0.latest/documents/DesignerGuideHtml/ivy.htmldialogs.html#Converters"&gt;THIS&lt;/a&gt; page (see section "Converters") they used&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;f:convertDateTime pattern="dd.MM.yyyy" /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;this solution worked well on my local Xpert.ivy Designer, but does not on our testserver - it just crashed with an error, that it can't convert a java.util.Date-object into a ch.ivyteam.ivy.scripting.objects.Date-object which is  a obviously message, that the "converteDateTime" does not work.&lt;/p&gt;
&lt;p&gt;In &lt;a href="http://vimeo.com/95734833"&gt;THIS&lt;/a&gt; video, someone showed that it is definitively possible to save the value of an calendar-component into a ivy-date. Unfortunately i have no possibility to take a look on the automatic generatred code of the Designer.&lt;/p&gt;
&lt;p&gt;Looking forward for your answers,
&lt;br&gt;Nick&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/846/use-a-primefaces-with-a-ivy-date-as-datatype" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 11 Jul 2014 09:51:04 -0400</lastBuildDate><item><title>Comment by NickSinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/846/use-a-primefaces-with-a-ivy-date-as-datatype#848</link><description>&lt;p&gt;Thanks for your answer, but i still got an error on our testserver. I'll open a service ticket.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">NickSinger</dc:creator><pubDate>Fri, 11 Jul 2014 09:51:04 -0400</pubDate><guid>https://answers.axonivy.com/questions/846/use-a-primefaces-with-a-ivy-date-as-datatype#848</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/846/use-a-primefaces-with-a-ivy-date-as-datatype/847</link><description>&lt;p&gt;The ivy-date usage within Html Dialogs should work with the converter you mentioned. &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;p:calendar id="Birthday" value="#{data.birthday}" navigator="true" required="true" pattern="dd.MM.yyyy"&amp;gt;
    &amp;lt;f:convertDateTime pattern="dd.MM.yyyy" /&amp;gt;
&amp;lt;/p:calendar&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A sample project which uses this converter is also delivered with the Designer. See the Designer folder: &lt;em&gt;applications/samples/HtmlDialogDemos&lt;/em&gt;
Import this project into your workspace and inspect the Html Dialog &lt;em&gt;ch.ivyteam.htmldialog.demo.input.FormDemo&lt;/em&gt; to see an example in action.&lt;/p&gt;
&lt;p&gt;I've just deployed and tested this Demo application on an ivyServer and it runs as expected. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 10 Jul 2014 16:54:54 -0400</pubDate><guid>https://answers.axonivy.com/questions/846/use-a-primefaces-with-a-ivy-date-as-datatype/847</guid></item></channel></rss>