Ohhhh...It works! Thanks.
2011/8/18 Gal Dolber <[email protected]>
> Make sure the annotation has rentention(runtime):
>
> @Retention(RUNTIME)
> public @interface Caption { ...
>
> On Thu, Aug 18, 2011 at 8:21 AM, Adolfo Panizo Touzon <
> [email protected]> wrote:
>
>> Hi everybody,
>>
>> I have this class:
>>
>> *class Person{*
>>
>> *@Caption(name="Name")*
>>
>> *String name;*
>>
>> *}*
>>
>> How can acces to this annotation in deferred binding?.
>>
>> When I access to the JField that represents the field name, the method
>> *nameJField.getDeclaredAnnotations()
>> *or *nameJField.getAnnotation(Caption.class)* or any related method not
>> find that Annotation.
>>
>> It's a bit strange because the class is responsible for performing the
>> deferred binding has other Annotations that I can access.
>>
>> The response to this fact I think it is because I have no GeneratorContext
>> about the Person class but, someone have an idea?
>>
>> One of the restrictions I have is that the Person class I can not change.
>>
>> Thanks.
>>
>>
>> --
>> El precio es lo que pagas. El valor es lo que recibes.
>> Warren Buffet
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>
>
> --
> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> http://code.google.com/p/guit/
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
--
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.