[
https://jira.jboss.org/jira/browse/JBSEAM-2429?page=com.atlassian.jira.pl...
]
Terry commented on JBSEAM-2429:
-------------------------------
Jim, I think it's been fixed in next release of seam. so you will be able to specify
seam dateTimeconverter in page param. until then, I wrote own date/time converter to use,
eg:
@org.jboss.seam.annotations.faces.Converter
@BypassInterceptors
@Name("onlineDateConverter")
public class OnlineDateConverter extends javax.faces.convert.DateTimeConverter {
public OnlineDateConverter() {
setTimeZone( getTimeZone() );
super.setPattern(DateTime.DAY + "-" + DateTime.MONTH_NAME + "-"
+ DateTime.YEAR);
}
@Override
public TimeZone getTimeZone() {
if ( Contexts.isApplicationContextActive() ) {
return org.jboss.seam.international.TimeZone.instance();
}
else {
return TimeZone.getDefault();
}
}
}
and for seperate for datetime, if needed....
converterId in Seam page param not recognised in EAR project
structure
----------------------------------------------------------------------
Key: JBSEAM-2429
URL:
https://jira.jboss.org/jira/browse/JBSEAM-2429
Project: Seam
Issue Type: Bug
Components: Core, JSF Integration
Affects Versions: 2.0.0.GA
Environment: Windows, Project Structure EAR, JBoss 4.2 EAP. Seam2+Sun JSF
RI+Facelets+Richfaces.
Reporter: Terry
Priority: Minor
Fix For: The future
In a EAR project structure; assigning converterId in page parameter in .page.xml file is
not recognised. Throws errors:
javax.faces.FacesException: Expression Error: Named Object:
org.jboss.seam.ui.converter.DateTimeConverter not found.
<param name="settlementDateFrom"
converterId="org.jboss.seam.ui.converter.DateTimeConverter"
value="#{paymentReconciliation.settlementDateFrom}"/>
See forum issue for more details.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira