Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5044

Atmosphere + DateLabel

    XMLWordPrintableJSON

Details

    Description

      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)

      Attachments

        Activity

          People

            papegaaij Emond Papegaaij
            floaz Philipp Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: