tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryszard Trojnacki (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TAP5-2191) PropertyOutputContext getAnnotation - extends AnnotationProvider
Date Tue, 01 Oct 2013 07:09:29 GMT
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

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

View raw message