I dont think you are doing anything wrong..
I then tried to use date , then got the error mentioned
in Jira tiem.
I then tried to use calendar with rich:calendar
api,
and it gave class cast exception-GregorianCalendar
I then changed it to use date.time
(ie using get/setTime
method in calendar) and the calendar did appear, but
when I did a search
then I got below..
ERROR (org.jboss.seam.jsf.SeamPhaseListener:189)- uncaught exception
javax.el.ELException: java.lang.IllegalArgumentException: argument type mismatch
at javax.el.BeanELResolver.setValue(BeanELResolver.java:116)
at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:68)
at com.sun.faces.el.FacesCompositeELResolver.setValue(FacesCompositeELResolver.java:93)
at org.jboss.el.parser.AstPropertySuffix.setValue(AstPropertySuffix.java:73)
I finally tried to use simple input text
to map
to calendar
as well as date
.
It again did not work.
Well I wont use Seam for now - Plain JSF and Hibernate rocks for me.
Zahid,
this is working for me now! I´ve moved to RF 3.2.0.GA and I´ve recoded, cleaned and redeployed.
It works, but what puzzles me is that I´ve achieved it with the same logic as before, I mean, using the converter pointed out by Pete and java.util.Date in the backing bean.
This is the converter:
<param name="prueba" value="#{instrumentFundExList.navDateRich}" converterId="org.jboss.seam.ui.DateTimeConverter" />
By the way, I´ve tested that this converter works just a as well.
<param name="navDate" value="#{instrumentFundExList.navDateRich}" converterId="javax.faces.DateTime" />
regards!
I was using seam 2.0.0.0 GA..
Anyway I realized that I was not able to continue due to
below bug:
http://jira.jboss.com/jira/browse/RF-2578
So I did a work around, I am binding Rich calendar
to java.util.date
. But I am binding
the page parameter
in page.xml to a dateStr
string-
which is proxy to the above date
.
The whole functionality works fine in 2.0.2.SP1. Unfortunately, it's broken in 2.0.3.CR1..
PS
RichFaces 3.2.1.GA