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

BindComposer not set automatically if custom Composer is applied

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Normal Normal
    • None
    • 8.0.0
    • None
    • None
    • ZK 8.0.1

      With ZK8, we're told to not apply the BindComposer to an element having the viewModel property defined, as ZK handles that automatically. In case, we have set our own composer, the BindComposer isn't applied. In case we add the BindComposer as well, we are notified with a warning not to apply it manually.

      Problematic code is in Parser:

      if (apply != null && apply.indexOf("org.zkoss.bind.BindComposer") != -1) {
      	//Warnning
      	log.warn(message("If the attribute of viewModel is being used, then \"org.zkoss.bind.BindComposer\" will be applied automatically", el));
      } else if (apply == null || apply.length() == 0){ //ZK-2763: only auto apply "BindComposer" when the attribute "apply" isn't used.
      	compInfo.setApply("org.zkoss.bind.BindComposer");
      }
      

            DevChu DevChu
            aznavour aznavour
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: