Philipp Thomas created WICKET-5044:
--------------------------------------
Summary: Atmosphere + DateLabel
Key: WICKET-5044
URL: https://issues.apache.org/jira/browse/WICKET-5044
Project: Wicket
Issue Type: Bug
Components: wicket-atmosphere
Affects Versions: 6.4.0, 6.3.0, 6.2.0
Reporter: Philipp Thomas
Assignee: Emond Papegaaij
When i add a new DateLabel from atmosphere subscribed method. I get an
exception, because of the
DateConverter.getClientTimeZone().
There is only an AtmosphereWebRequest, not a ServletWebRequest which is needed
by WebClientInfo class. There is no client info available from atmosphere.
------------------------
The exception:
java.lang.ClassCastException: org.apache.wicket.atmosphere.AtmosphereWebRequest
cannot be cast to org.apache.wicket.protocol.http.servlet.ServletWebRequest
at
org.apache.wicket.protocol.http.request.WebClientInfo.<init>(WebClientInfo.java:65)
at
org.apache.wicket.protocol.http.WebSession.getClientInfo(WebSession.java:148)
at
org.apache.wicket.protocol.http.WebSession.getClientInfo(WebSession.java:37)
at
org.apache.wicket.datetime.DateConverter.getClientTimeZone(DateConverter.java:193)
at
org.apache.wicket.datetime.DateConverter.convertToString(DateConverter.java:152)
at
org.apache.wicket.datetime.DateConverter.convertToString(DateConverter.java:43)
at
org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1671)
at
org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1643)
at
org.apache.wicket.datetime.markup.html.basic.DateLabel.onComponentTagBody(DateLabel.java:297)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira