Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-879

Better Theme Control

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.0.0
    • Fix Version/s: None
    • Component/s: Components, Theme
    • Labels:

      Description

      ZK 6 makes some assumptions about Themes that I would like to be able to override.

      In org.zkoss.zkplus.theme.Themes

      getCurrentTheme()

      Would love to be able to override this method.

      For example, I have a user database and my users must login - I could keep their preferred Theme in the database and retrieve it when necessary. However, since I cannot override the getCurrentTheme() method I cannot set the Theme without playing games with cookies.

      setTheme()

      Cookie set per application Context-Path -> I would like to set it on root path (i.e. '\')
      Note also that the HTTP/HTML spec says that browsers must keep 'at least 20 cookies' per domain, with one cookie per application context plus other server cookies this 'at least' limit is not far away in my case.

      Cookie Timeout set to 30 days -> would like longer

      Dave

      P.S. Related issue: http://tracker.zkoss.org/browse/ZK-225

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            drichm drichm
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: