[jboss-user] [JBoss Seam] - Re: Date parameter at s:button
jamesjmp
do-not-reply at jboss.com
Tue Dec 11 11:17:06 EST 2007
By the way, in my case I am not using a s:button but a s:link.
| <s:link view="/RstInstrumentValuationExList.xhtml"
| id="rstInstrumentValuation2"
| rendered="#{(rstRepProc.rstProcess.rstStatus.code != 0)}">
| <h:graphicImage url="img/view.gif" border="0"/>
| <f:param name="processDate"
| value="#{rstRepProc.rstProcess.processDate}">
| </f:param>
| </s:link>
|
processDate is a java.util.Date field, but in spite of that I have this error:
16:46:22,119 ERROR [SeamPhaseListener] uncaught exception
javax.faces.convert.ConverterException: java.text.ParseException: Unparseable date: "2006-08-31"
at javax.faces.convert.DateTimeConverter.getAsObject(DateTimeConverter.java:84)
...
Caused by: java.text.ParseException: Unparseable date: "2006-08-31"
at java.text.DateFormat.parse(DateFormat.java:335)
at javax.faces.convert.DateTimeConverter.getAsObject(DateTimeConverter.java:80)
... 44 more
16:46:22,181 ERROR [SeamPhaseListener] swallowing exception
javax.faces.convert.ConverterException: java.text.ParseException: Unparseable date: "2006-08-31"
at javax.faces.convert.DateTimeConverter.getAsObject(DateTimeConverter.java:84)
at org.jboss.seam.pages.Param.getValueFromRequest(Param.java:144)
at org.jboss.seam.core.Pages.applyRequestParameterValues(Pages.java:633)
..
Caused by: java.text.ParseException: Unparseable date: "2006-08-31"
at java.text.DateFormat.parse(DateFormat.java:335)
at javax.faces.convert.DateTimeConverter.getAsObject(DateTimeConverter.java:80)
... 44 more
I have tried with convertDateTime this way:
| <f:param name="processDate"
| value="#{rstRepProc.rstProcess.processDate}">
| <s:convertDateTime type="date" dateStyle="short" pattern="dd/MM/yyyy"/>
| </f:param>
|
Using s:convertDateTime the following error happens:
/RstReport.xhtml @318,112 <s:convertDateTime> Parent not an instance of ValueHolder: javax.faces.component.UIParameter at 59227c
any idea? thank you!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111995#4111995
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111995
More information about the jboss-user
mailing list