This content has been marked as final. 
    
Show                 5 replies
    
- 
        1. Re: Date parameter at s:buttonjamesjmp Dec 11, 2007 10:56 AM (in response to rengar)Hi, did you find any solution to this problem? the same is hapenning to me! 
- 
        2. Re: Date parameter at s:buttonjamesjmp Dec 11, 2007 11:17 AM (in response to rengar)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@59227c
 
 any idea? thank you!
- 
        3. Re: Date parameter at s:buttonmcanaleta Jan 15, 2008 2:15 AM (in response to rengar)I also have this problem... You can specify a converterId at the parameter specification at pages.xml but not at f:param... Anyone knows the solution? Thanks! 
- 
        4. Re: Date parameter at s:buttonnickarls Jan 15, 2008 2:26 AM (in response to rengar)Tried passing along the time as a long value? 
- 
        5. Re: Date parameter at s:buttonjamesjmp Jan 15, 2008 3:45 AM (in response to rengar)Yeah, passing a long value works ok and solves the problem. 
 
     
     
    