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

chosenbox rendering inconsistently and losing selections

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.5
    • Fix Version/s: 8.0.0
    • Component/s: Components
    • Security Level: Jimmy
    • gh.sprint.customfield.default.name:
      ZK 8.0.1

      Description

      running the attached example shows, that already selected items are rendered using the HTML generated in the ItemRenderer, while the choices only display escaped markup.
      When selecting a new value the escaped markup is added to the box in the escaped form.

      the ItemRenderer API docs state HTML markup is possible http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/ItemRenderer.html

      When invalidating the chosenbox, previously selected items are lost.

        Activity

        Hide
        jumperchen jumperchen added a comment -

        The current implementation uses string value to check the selection state which is not accurate for html content.
        For example,

        <div><i/>test1</div>
        

        The value above will be formatted by browser implementation as follows.

        <div><i></i>test1</div>
        

        So we should consider to refactor the current implementation and the fixed won't merge into the minor ZK version, such as 7.0.x.

        Show
        jumperchen jumperchen added a comment - The current implementation uses string value to check the selection state which is not accurate for html content. For example, <div><i/>test1</div> The value above will be formatted by browser implementation as follows. <div><i></i>test1</div> So we should consider to refactor the current implementation and the fixed won't merge into the minor ZK version, such as 7.0.x.
        Hide
        ChunfuChang ChunfuChang added a comment -

        fixed since 2015/06/17

        Show
        ChunfuChang ChunfuChang added a comment - fixed since 2015/06/17

          People

          • Assignee:
            DevChu DevChu
            Reporter:
            cor3000 cor3000
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 30 minutes Original Estimate - 30 minutes
              30m
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 3 days, 3 hours
              3d 3h

                Agile