You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Emond Papegaaij (JIRA)" <ji...@apache.org> on 2013/02/19 15:53:21 UTC

[jira] [Resolved] (WICKET-5044) Atmosphere + DateLabel

     [ https://issues.apache.org/jira/browse/WICKET-5044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emond Papegaaij resolved WICKET-5044.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 6.7.0

AtmosphereWebRequest is now a ServletWebRequest.
                
> 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.2.0, 6.3.0, 6.4.0
>            Reporter: Philipp Thomas
>            Assignee: Emond Papegaaij
>              Labels: DateLabel, ServletWebRequest, WebClientInfo, atmosphere
>             Fix For: 6.7.0
>
>
> 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