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

Labels.reset() won't clear the cache in which come from the ${labels} instance

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.9
    • 5.0.7
    • None

      According to this example - http://books.zkoss.org/wiki/ZK_Developer%27s_Reference/Internationalization/Labels#Use_labels
      If you use the method of "org.zkoss.util.resource.Labels.reset();" to clear the cache, the labels instance still keeps the old value.

      For example,

      Test.zul,

      <button label="${labels.title}" onClick='org.zkoss.util.resource.Labels.reset();Executions.sendRedirect("")'/>

      i3-label.properties

      title=Test
      

            jumperchen jumperchen
            jumperchen jumperchen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: