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

Error on using ${labels.mylabel} with returning label=True or False

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • 5.0.9
    • 5.0.8
    • Components

      When using ${labels.item.value.true} or ${labels.item.value.false} in a component in my zul file to get my labels from properties 118n files, if the files contains the following values:
      item.value.true=True
      item.value.false=False

      I receive one of the following errors:
      org.zkoss.xel.XelException: Encountered "true", expected one of [<IDENTIFIER>]
      org.zkoss.xel.XelException: Encountered "false", expected one of [<IDENTIFIER>]

      A workaround is to use the old (<=5.0.7 versions) notation
      ${c:l('item.value.true')}
      ${c:l('item.value.false')}

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

              Created:
              Updated:
              Resolved: