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

getClientInfo throws ClassCastException when Javascript is Disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0-beta1
    • 1.3.0-beta2
    • wicket
    • None

    Description

      I created a page with the following in the constructor:

      WebClientInfo info = (WebClientInfo) Session.get().getClientInfo();
      TimeZone zone = info.getProperties().getTimeZone();

      If I have javascript disabled in firefox I receive the following error.

      Caused by: java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String
      at org.apache.wicket.markup.html.pages.BrowserInfoPage.<init>(BrowserInfoPage.java:505)
      ... 37 more

      Attachments

        Activity

          People

            ehillenius Eelco Hillenius
            weazelb0y Joseph Toth
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: