Ryszard Trojnacki created TAP5-2191: ---------------------------------------
Summary: PropertyOutputContext getAnnotation - extends AnnotationProvider Key: TAP5-2191 URL: https://issues.apache.org/jira/browse/TAP5-2191 Project: Tapestry 5 Issue Type: Improvement Components: tapestry-core Reporter: Ryszard Trojnacki Priority: Trivial For editing (PropertyEditior) there is PropertyEditContext which has method getAnnotation (its from interface AnnotationProvider). This method is very usefull to add parameters to editor. For displaying (PropertyDisplay) there is PropertyOutputContext which unfortunately doesn't has this method (is not extending interface AnnotationProvider). My proposition is to add interface AnnotationProvider to PropertyOutputContext. This change will only require to modify file PropertyOutputContext by adding interface AnnotationProvider and AbstractPropertyOutput by implementing method getAnnotation: public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { return model.getAnnotation(annotationClass); } -- This message was sent by Atlassian JIRA (v6.1#6144)