Example #1
0
 /**
  * load bean value into the attribute of the specified component.
  *
  * @param comp the component.
  */
 public void loadAttribute(Component comp) {
   if (!isLoadable()
       || _attr.startsWith("_")
       || DataBinder.isTemplate(comp)
       || comp == null // bug #1941947 Cannot find associated CollectionItem
       || comp.getPage() == null) {
     return; // cannot load, a control attribute, or a detached component, skip!
   }
   Object bean = _binder.getBeanAndRegisterBeanSameNodes(comp, _expression);
   myLoadAttribute(comp, bean);
 }