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

@ComponentAnnotation not working when using model:@ZKBIND(CONVERTER=vipconnect.framework.zk.converter)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • None
    • 6.0.2
    • Container, Databind 2
    • None

      Actual code read my @ComponentAnnotation but decide to use System Converter.

      After debug code i see problem in:

      AnnotationUtil.java
      @SuppressWarnings("rawtypes")
      public static Annotation getOverrideAnnotation(ComponentCtrl compCtrl, String propName, String annoName){
      		Collection<Annotation> annos = compCtrl.getAnnotations(propName, annoName);
      		if(annos.size()<=0) return null;
      		//TODO the real implementation, currently I use the last one
      		if(annos instanceof List){
      			return (Annotation)((List)annos).get(((List)annos).size()-1);
      		}
      		Iterator<Annotation> it = annos.iterator();
      		Annotation anno = it.next();
      		while(it.hasNext()){
      			anno = it.next();
      		}
      		return anno;
      	}
      

            Unassigned Unassigned
            mgvv mgvv
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: