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

datebox constraint works even when datebox is invisible

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 7.0.1
    • Components
    • windows 7, spring

    • None

      I need a conditional constraint and to achieve this I make two dateboxes making one of them invisible depending on fx.id

      <!-edit->
      <datebox id="editDtbx" format="dd/MM/yyyy" readonly="true" disabled="true" visible="@load(not empty fx.id)" value="@bind(fx.date)" />
      <!-create new->
      <datebox id="createDtbx" format="dd/MM/yyyy" readonly="true" visible="@load(empty fx.id)" constraint="no future, after ${vm.someDate}" value="@bind(fx.date)" />

      The strange (buggy) behavior is the following: When the fx.id is not empty (thus only the first datebox should be displayed) I can only see the first datebox as expected but it carries with it the constraint that is given only to the second (invisible) datebox.

            Unassigned Unassigned
            nk10ere nk10ere
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: