Hi There,
I apologize in advance as this is not strictly a stripes related question
but I've searched online and can't seem to find an answer.
I'm playing around with using annotations to drive some reusable tags which
generate search forms in my applications. I want to markup fields in a
search request bean with annotations that specify a few options to the tag.
An instance of a search request bean will be passed to the tag and it will
spit out a search form for me.
I think I'm running in to problems because instances of annotations are not
actually java beans.
As an example if the annotation is defined as
*
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface SearchText{
String name();
String description();
}*
I can't access the "name" value from EL using "${<annot instance>.name}".
Any suggestions for work arounds? Is it really necessary to write bean
style wrapper classes just to get this to work? I had a thought of dumping
out all the annotation data into a <Sting,Object> map so I could at least
get to it from EL however that requires reflecting on the annotation class
itself to get the map keys and just seems to crazy.
--
Ross Sargant
Software Engineer
p: 954-623-6015 x2108
email: [email protected]
TVR Communications LLC
541 S. State Road 7,Suite 5,Margate, Florida,33068
http://www.tvrc.com
------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months. Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users