1. #1
    Ext User paco_online's Avatar
    Join Date
    Jan 2009
    Location
    Vienna
    Posts
    65
    Vote Rating
    0
    paco_online is on a distinguished road

      0  

    Default Custom Annotations in GWT on Client side

    Custom Annotations in GWT on Client side


    hi,

    i know this is part of GWT - but let me please ask this question.

    is it possible to use custom annotations in GWT on the client side?

    i tried this for a class and wanted to get the annotation data with this.getClass().getAnnotations() in the constructor. But i get the error "The method getAnnotations() is undefined for the type Class ..."

    thx paco

  2. #2
    Ext User
    Join Date
    Dec 2009
    Posts
    1
    Vote Rating
    0
    syshex is on a distinguished road

      0  

    Default


    Need answer to this aswell.
    Did you find out why this is happening?
    Thanks

  3. #3
    Ext User paco_online's Avatar
    Join Date
    Jan 2009
    Location
    Vienna
    Posts
    65
    Vote Rating
    0
    paco_online is on a distinguished road

      0  

    Default


    Annotations in client code can be used during GWT's rebind phase of the
    compilation, but they are not accessible at runtime on the client side.

    have a look at:
    ---------------
    http://groups.google.com/group/googl...d66440f4c6a59f

  4. #4
    Sencha User
    Join Date
    Apr 2011
    Posts
    2
    Vote Rating
    0
    TopCoder is on a distinguished road

      0  

    Default


    you can use a GWT reflection library, i.e., gwtent
    Code:
    ClassType type = TypeOracle.Instance.getClassType(getClass().getName());
    
    Annotation[] annotations = type.getAnnotations();

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."