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

Invalid property path throws exceptions in some versions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 6.0.1
    • Databind 2

      The very same source code works differently with different versions of ZK:

        <vlayout form="@id('fx') @save(vm.selectedItem.item, before='saveSection') @load(vm.selectedItem.item)">
              ${labels.forum_structure.section_dialog.section_name}
              <textbox id="sectionNameBox" value="@bind(fx.name) @validator('beanValidator')" hflex="1" vflex="min"
                       errorMessage="@load(vmsgs[sectionNameBox])"/>
              ${labels.forum_structure.section_dialog.section_description}
              <textbox id="sectionDescriptionBox" value="@bind(fx.description) @validator('beanValidator')"
                       errorMessage="@load(vmsgs[sectionDescriptionText])" rows="6" hflex="1"/>
              <cell>
                <button id="saveSectionButton" label="${labels.dialogs.save_button}" onClick="@command('saveSection')"/>
                <button label="${labels.dialogs.cancel_button}" onClick="editSectionDialog.visible=false;"/>
              </cell>
            </vlayout>

      In version 6.0.1.FL.20120413 everything is okay.
      In version 6.0.1.FL.20120501 (and I remember such issue was in some previous versions) it throws exception on saving:

      May 05, 2012 2:18:57 PM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1351
      SEVERE: >>org.zkoss.zk.ui.UiException: Invalid property path. There is no property name in entity org.zkoss.bind.SimpleForm
      >>java.lang.IllegalArgumentException: Invalid property path. There is no property name in entity org.zkoss.bind.SimpleForm

      As I said this is

            Unassigned Unassigned
            ctapobep ctapobep
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: