Package org.zkoss.zk.ui.ext

Examples of org.zkoss.zk.ui.ext.DynamicPropertied


    } catch (ClassCastException ex) {
      throw UiException.Aide.wrap(ex);
    } catch (NoSuchMethodException ex) {
      //Bug #1813278, Annotations do not work with xhtml tags
      if (comp instanceof DynamicPropertied) {
        final DynamicPropertied dpcomp = (DynamicPropertied) comp;
         if (dpcomp.hasDynamicProperty(_attr)) {
          //no way to know destination type of the property, use bean as is
           dpcomp.setDynamicProperty(_attr, bean);
         } else {
           throw UiException.Aide.wrap(ex);
         }
      } else { //Feature# 2855116. Save into component custom-attribute(also a variable in ZK5).
        comp.setAttribute(_attr, bean);
View Full Code Here


    try {
      rawval = Fields.get(comp, _attr);
    } catch (NoSuchMethodException ex) {
      //Bug #1813278, Annotations do not work with xhtml tags
      if (comp instanceof DynamicPropertied) {
        final DynamicPropertied dpcomp = (DynamicPropertied) comp;
         if (dpcomp.hasDynamicProperty(_attr)) {
           rawval = dpcomp.getDynamicProperty(_attr);
         } else {
           throw UiException.Aide.wrap(ex);
         }
      } else if (comp.getAttributes().containsKey(_attr)) { //Feature #2855116. Get value from component custom-attribute(also a variable in ZK5).
        rawval = comp.getAttribute(_attr);
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.ext.DynamicPropertied

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.