Re: Is Run Time Annotation Possible?

2008-12-08 Thread [EMAIL PROTECTED]

Sorry, Now I'm writting a wiki for how to use gwt-ent.

this implement is based gwt generator, for each all class which need
reflection information, then wrote all information into a class file,
gwt will compile this class file into javascript, so that you can
using all of these in client side.

On 12月3日, 下午1时24分, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> Actually i am running your code gwtent-sample and other also but none
> of the testcase work. I want to see how you make theannotationwork
> in runtime.
>
> On Wed, Dec 3, 2008 at 8:37 AM, [EMAIL PROTECTED]
>
> <[EMAIL PROTECTED]> wrote:
>
> > What's the error message? Have you append " > name="com.gwtent.GwtEnt"/>" to your Moudle.gwt.xml?
>
> > On Dec 3, 3:47 am, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> >> I do not know how the testannotation 
> >> inhttp://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
> >> work.
> >> Can you explain?
>
> >> I get error in hosted mode when i try to run...
> >> public class Application implements EntryPoint {
>
> >>   public void testReflection(){
> >>   ClassType classType2 =
> >> TypeOracle.Instance.getClassType(TestReflection.class);
> >> //Class Annotations
>
> >>   
> >> System.out.println(classType2.getAnnotation(Entity.class).getValue("name").equals("TestReflection"));
> >> ..
>
> >> On Tue, Dec 2, 2008 at 10:24 AM, [EMAIL PROTECTED]
>
> >> <[EMAIL PROTECTED]> wrote:
>
> >> > No, any annotations
>
> >> > On Dec 2, 1:00 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> >> >> Is it it only support yourannotation? 
> >> >> ->com.gwtent.client.test.annotations.
>
> >> >> On Mon, Dec 1, 2008 at 6:22 PM, [EMAIL PROTECTED]
>
> >> >> <[EMAIL PROTECTED]> wrote:
>
> >> >> > You can have a look the Wiki page 
> >> >> > :http://code.google.com/p/gwt-ent/wiki/UseReflection
> >> >> > need include GWT-ENT module into your project.
> >> >> > then include "Reflection" flag interface into your class
> >> >> > ClassType classType = TypeOracle.Instance.getClassType
> >> >> > (YourClass.class);
>
> >> >> > done :)
>
> >> >> > On 12月1日, 下午1时33分, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> >> >> >> Do you want to configure anything in order to make class the 
> >> >> >> following
> >> >> >> code work?
> >> >> >> Test.class.getAnnotation(Id.class);
>
> >> >> >> On Fri, Nov 28, 2008 at 6:30 AM, [EMAIL PROTECTED]
>
> >> >> >> <[EMAIL PROTECTED]> wrote:
>
> >> >> >> > Sorry, what do you mean? My English is not so good, but If you got 
> >> >> >> > any
> >> >> >> > question, please welcome to ask me :D
> >> >> >> > James
>
> >> >> >> > On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> >> >> >> >> How do you make the com.gwtent.client.test.annotations.Id to be
> >> >> >> >> understandable by GWT?
>
> >> >> >> >> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED]
>
> >> >> >> >> <[EMAIL PROTECTED]> wrote:
>
> >> >> >> >> > Hi, zujee,
>
> >> >> >> >> >  I have a reflection implement for GWT client code, and it 
> >> >> >> >> > support
> >> >> >> >> > getAnnotation'svalue at runtime.
>
> >> >> >> >> >  http://code.google.com/p/gwt-ent/
> >> >> >> >> >  The test case:
> >> >> >> >> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
>
> >> >> >> >> >  Hope that helps :)
> >> >> >> >> > James
>
> >> >> >> >> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
> >> >> >> >> >> Hi experts,
> >> >> >> >> >> I have an interface which extends ImmutableResourceBundle
>
> >> >> >> >> >> and inside that
> >> >> >> >> >> @Resource("com/MyPath/MyConstants.properties")
> >> >> >> >> >> public abstract TextResource properties();
>
> >> >> >> >> >> and its working fine.
> >> >> >> >> >> but I need to change the filename after reading the XML file .
> >> >> >> >> >> eg:
> >> >> >> >> >> 
> >> >> >> >> >>  >> >> >> >> >> TYPE="STRING">MyConstants_C1.properties
> >> >> >> >> >> 
>
> >> >> >> >> >> from that I need to set the reosuece path as
> >> >> >> >> >> @Resource("com/MyPath/MyConstants_C1.properties") in run 
> >> >> >> >> >> time.. is
> >> >> >> >> >> that possible?
>
> >> >> >> >> >> thanks and regards
> >> >> >> >> >> Zujee
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Is Run Time Annotation Possible?

2008-12-02 Thread Au Lai Seong
Actually i am running your code gwtent-sample and other also but none
of the testcase work. I want to see how you make the annotation work
in runtime.

On Wed, Dec 3, 2008 at 8:37 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> What's the error message? Have you append " name="com.gwtent.GwtEnt"/>" to your Moudle.gwt.xml?
>
> On Dec 3, 3:47 am, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> I do not know how the testannotation 
>> inhttp://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
>> work.
>> Can you explain?
>>
>> I get error in hosted mode when i try to run...
>> public class Application implements EntryPoint {
>>
>>   public void testReflection(){
>>   ClassType classType2 =
>> TypeOracle.Instance.getClassType(TestReflection.class);
>> //Class Annotations
>>
>>   
>> System.out.println(classType2.getAnnotation(Entity.class).getValue("name").equals("TestReflection"));
>> ..
>>
>> On Tue, Dec 2, 2008 at 10:24 AM, [EMAIL PROTECTED]
>>
>> <[EMAIL PROTECTED]> wrote:
>>
>> > No, any annotations
>>
>> > On Dec 2, 1:00 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> >> Is it it only support your annotation ? 
>> >> ->com.gwtent.client.test.annotations.
>>
>> >> On Mon, Dec 1, 2008 at 6:22 PM, [EMAIL PROTECTED]
>>
>> >> <[EMAIL PROTECTED]> wrote:
>>
>> >> > You can have a look the Wiki page 
>> >> > :http://code.google.com/p/gwt-ent/wiki/UseReflection
>> >> > need include GWT-ENT module into your project.
>> >> > then include "Reflection" flag interface into your class
>> >> > ClassType classType = TypeOracle.Instance.getClassType
>> >> > (YourClass.class);
>>
>> >> > done :)
>>
>> >> > On 12月1日, 下午1时33分, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> >> >> Do you want to configure anything in order to make class the following
>> >> >> code work?
>> >> >> Test.class.getAnnotation(Id.class);
>>
>> >> >> On Fri, Nov 28, 2008 at 6:30 AM, [EMAIL PROTECTED]
>>
>> >> >> <[EMAIL PROTECTED]> wrote:
>>
>> >> >> > Sorry, what do you mean? My English is not so good, but If you got 
>> >> >> > any
>> >> >> > question, please welcome to ask me :D
>> >> >> > James
>>
>> >> >> > On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> >> >> >> How do you make the com.gwtent.client.test.annotations.Id to be
>> >> >> >> understandable by GWT?
>>
>> >> >> >> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED]
>>
>> >> >> >> <[EMAIL PROTECTED]> wrote:
>>
>> >> >> >> > Hi, zujee,
>>
>> >> >> >> >  I have a reflection implement for GWT client code, and it support
>> >> >> >> > get Annotation's value at runtime.
>>
>> >> >> >> >  http://code.google.com/p/gwt-ent/
>> >> >> >> >  The test case:
>> >> >> >> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
>>
>> >> >> >> >  Hope that helps :)
>> >> >> >> > James
>>
>> >> >> >> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
>> >> >> >> >> Hi experts,
>> >> >> >> >> I have an interface which extends ImmutableResourceBundle
>>
>> >> >> >> >> and inside that
>> >> >> >> >> @Resource("com/MyPath/MyConstants.properties")
>> >> >> >> >> public abstract TextResource properties();
>>
>> >> >> >> >> and its working fine.
>> >> >> >> >> but I need to change the filename after reading the XML file .
>> >> >> >> >> eg:
>> >> >> >> >> 
>> >> >> >> >> > >> >> >> >> TYPE="STRING">MyConstants_C1.properties
>> >> >> >> >> 
>>
>> >> >> >> >> from that I need to set the reosuece path as
>> >> >> >> >> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. 
>> >> >> >> >> is
>> >> >> >> >> that possible?
>>
>> >> >> >> >> thanks and regards
>> >> >> >> >> Zujee
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Is Run Time Annotation Possible?

2008-12-02 Thread [EMAIL PROTECTED]

What's the error message? Have you append "" to your Moudle.gwt.xml?

On Dec 3, 3:47 am, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> I do not know how the testannotation 
> inhttp://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
> work.
> Can you explain?
>
> I get error in hosted mode when i try to run...
> public class Application implements EntryPoint {
>
>   public void testReflection(){
>   ClassType classType2 =
> TypeOracle.Instance.getClassType(TestReflection.class);
> //Class Annotations
>
>   
> System.out.println(classType2.getAnnotation(Entity.class).getValue("name").equals("TestReflection"));
> ..
>
> On Tue, Dec 2, 2008 at 10:24 AM, [EMAIL PROTECTED]
>
> <[EMAIL PROTECTED]> wrote:
>
> > No, any annotations
>
> > On Dec 2, 1:00 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> >> Is it it only support your annotation ? 
> >> ->com.gwtent.client.test.annotations.
>
> >> On Mon, Dec 1, 2008 at 6:22 PM, [EMAIL PROTECTED]
>
> >> <[EMAIL PROTECTED]> wrote:
>
> >> > You can have a look the Wiki page 
> >> > :http://code.google.com/p/gwt-ent/wiki/UseReflection
> >> > need include GWT-ENT module into your project.
> >> > then include "Reflection" flag interface into your class
> >> > ClassType classType = TypeOracle.Instance.getClassType
> >> > (YourClass.class);
>
> >> > done :)
>
> >> > On 12月1日, 下午1时33分, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> >> >> Do you want to configure anything in order to make class the following
> >> >> code work?
> >> >> Test.class.getAnnotation(Id.class);
>
> >> >> On Fri, Nov 28, 2008 at 6:30 AM, [EMAIL PROTECTED]
>
> >> >> <[EMAIL PROTECTED]> wrote:
>
> >> >> > Sorry, what do you mean? My English is not so good, but If you got any
> >> >> > question, please welcome to ask me :D
> >> >> > James
>
> >> >> > On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> >> >> >> How do you make the com.gwtent.client.test.annotations.Id to be
> >> >> >> understandable by GWT?
>
> >> >> >> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED]
>
> >> >> >> <[EMAIL PROTECTED]> wrote:
>
> >> >> >> > Hi, zujee,
>
> >> >> >> >  I have a reflection implement for GWT client code, and it support
> >> >> >> > get Annotation's value at runtime.
>
> >> >> >> >  http://code.google.com/p/gwt-ent/
> >> >> >> >  The test case:
> >> >> >> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
>
> >> >> >> >  Hope that helps :)
> >> >> >> > James
>
> >> >> >> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
> >> >> >> >> Hi experts,
> >> >> >> >> I have an interface which extends ImmutableResourceBundle
>
> >> >> >> >> and inside that
> >> >> >> >> @Resource("com/MyPath/MyConstants.properties")
> >> >> >> >> public abstract TextResource properties();
>
> >> >> >> >> and its working fine.
> >> >> >> >> but I need to change the filename after reading the XML file .
> >> >> >> >> eg:
> >> >> >> >> 
> >> >> >> >>  >> >> >> >> TYPE="STRING">MyConstants_C1.properties
> >> >> >> >> 
>
> >> >> >> >> from that I need to set the reosuece path as
> >> >> >> >> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
> >> >> >> >> that possible?
>
> >> >> >> >> thanks and regards
> >> >> >> >> Zujee
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Is Run Time Annotation Possible?

2008-12-02 Thread Au Lai Seong
I do not know how the testannotation in
http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/gwtent/client/test/ReflectionTestCase.java
work.
Can you explain?

I get error in hosted mode when i try to run...
public class Application implements EntryPoint {

  public void testReflection(){
  ClassType classType2 =
TypeOracle.Instance.getClassType(TestReflection.class);
//Class Annotations

  
System.out.println(classType2.getAnnotation(Entity.class).getValue("name").equals("TestReflection"));
..

On Tue, Dec 2, 2008 at 10:24 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> No, any annotations
>
> On Dec 2, 1:00 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> Is it it only support your annotation ? ->com.gwtent.client.test.annotations.
>>
>> On Mon, Dec 1, 2008 at 6:22 PM, [EMAIL PROTECTED]
>>
>> <[EMAIL PROTECTED]> wrote:
>>
>> > You can have a look the Wiki page 
>> > :http://code.google.com/p/gwt-ent/wiki/UseReflection
>> > need include GWT-ENT module into your project.
>> > then include "Reflection" flag interface into your class
>> > ClassType classType = TypeOracle.Instance.getClassType
>> > (YourClass.class);
>>
>> > done :)
>>
>> > On 12月1日, 下午1时33分, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> >> Do you want to configure anything in order to make class the following
>> >> code work?
>> >> Test.class.getAnnotation(Id.class);
>>
>> >> On Fri, Nov 28, 2008 at 6:30 AM, [EMAIL PROTECTED]
>>
>> >> <[EMAIL PROTECTED]> wrote:
>>
>> >> > Sorry, what do you mean? My English is not so good, but If you got any
>> >> > question, please welcome to ask me :D
>> >> > James
>>
>> >> > On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> >> >> How do you make the com.gwtent.client.test.annotations.Id to be
>> >> >> understandable by GWT?
>>
>> >> >> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED]
>>
>> >> >> <[EMAIL PROTECTED]> wrote:
>>
>> >> >> > Hi, zujee,
>>
>> >> >> >  I have a reflection implement for GWT client code, and it support
>> >> >> > get Annotation's value at runtime.
>>
>> >> >> >  http://code.google.com/p/gwt-ent/
>> >> >> >  The test case:
>> >> >> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
>>
>> >> >> >  Hope that helps :)
>> >> >> > James
>>
>> >> >> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
>> >> >> >> Hi experts,
>> >> >> >> I have an interface which extends ImmutableResourceBundle
>>
>> >> >> >> and inside that
>> >> >> >> @Resource("com/MyPath/MyConstants.properties")
>> >> >> >> public abstract TextResource properties();
>>
>> >> >> >> and its working fine.
>> >> >> >> but I need to change the filename after reading the XML file .
>> >> >> >> eg:
>> >> >> >> 
>> >> >> >> MyConstants_C1.properties
>> >> >> >> 
>>
>> >> >> >> from that I need to set the reosuece path as
>> >> >> >> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
>> >> >> >> that possible?
>>
>> >> >> >> thanks and regards
>> >> >> >> Zujee
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Is Run Time Annotation Possible?

2008-12-01 Thread [EMAIL PROTECTED]

No, any annotations

On Dec 2, 1:00 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> Is it it only support your annotation ? ->com.gwtent.client.test.annotations.
>
> On Mon, Dec 1, 2008 at 6:22 PM, [EMAIL PROTECTED]
>
> <[EMAIL PROTECTED]> wrote:
>
> > You can have a look the Wiki page 
> > :http://code.google.com/p/gwt-ent/wiki/UseReflection
> > need include GWT-ENT module into your project.
> > then include "Reflection" flag interface into your class
> > ClassType classType = TypeOracle.Instance.getClassType
> > (YourClass.class);
>
> > done :)
>
> > On 12月1日, 下午1时33分, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> >> Do you want to configure anything in order to make class the following
> >> code work?
> >> Test.class.getAnnotation(Id.class);
>
> >> On Fri, Nov 28, 2008 at 6:30 AM, [EMAIL PROTECTED]
>
> >> <[EMAIL PROTECTED]> wrote:
>
> >> > Sorry, what do you mean? My English is not so good, but If you got any
> >> > question, please welcome to ask me :D
> >> > James
>
> >> > On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> >> >> How do you make the com.gwtent.client.test.annotations.Id to be
> >> >> understandable by GWT?
>
> >> >> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED]
>
> >> >> <[EMAIL PROTECTED]> wrote:
>
> >> >> > Hi, zujee,
>
> >> >> >  I have a reflection implement for GWT client code, and it support
> >> >> > get Annotation's value at runtime.
>
> >> >> >  http://code.google.com/p/gwt-ent/
> >> >> >  The test case:
> >> >> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
>
> >> >> >  Hope that helps :)
> >> >> > James
>
> >> >> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
> >> >> >> Hi experts,
> >> >> >> I have an interface which extends ImmutableResourceBundle
>
> >> >> >> and inside that
> >> >> >> @Resource("com/MyPath/MyConstants.properties")
> >> >> >> public abstract TextResource properties();
>
> >> >> >> and its working fine.
> >> >> >> but I need to change the filename after reading the XML file .
> >> >> >> eg:
> >> >> >> 
> >> >> >> MyConstants_C1.properties
> >> >> >> 
>
> >> >> >> from that I need to set the reosuece path as
> >> >> >> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
> >> >> >> that possible?
>
> >> >> >> thanks and regards
> >> >> >> Zujee
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Is Run Time Annotation Possible?

2008-12-01 Thread Au Lai Seong
Is it it only support your annotation ? ->com.gwtent.client.test.annotations.

On Mon, Dec 1, 2008 at 6:22 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> You can have a look the Wiki page : 
> http://code.google.com/p/gwt-ent/wiki/UseReflection
> need include GWT-ENT module into your project.
> then include "Reflection" flag interface into your class
> ClassType classType = TypeOracle.Instance.getClassType
> (YourClass.class);
>
> done :)
>
> On 12月1日, 下午1时33分, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> Do you want to configure anything in order to make class the following
>> code work?
>> Test.class.getAnnotation(Id.class);
>>
>> On Fri, Nov 28, 2008 at 6:30 AM, [EMAIL PROTECTED]
>>
>> <[EMAIL PROTECTED]> wrote:
>>
>> > Sorry, what do you mean? My English is not so good, but If you got any
>> > question, please welcome to ask me :D
>> > James
>>
>> > On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> >> How do you make the com.gwtent.client.test.annotations.Id to be
>> >> understandable by GWT?
>>
>> >> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED]
>>
>> >> <[EMAIL PROTECTED]> wrote:
>>
>> >> > Hi, zujee,
>>
>> >> >  I have a reflection implement for GWT client code, and it support
>> >> > get Annotation's value at runtime.
>>
>> >> >  http://code.google.com/p/gwt-ent/
>> >> >  The test case:
>> >> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
>>
>> >> >  Hope that helps :)
>> >> > James
>>
>> >> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
>> >> >> Hi experts,
>> >> >> I have an interface which extends ImmutableResourceBundle
>>
>> >> >> and inside that
>> >> >> @Resource("com/MyPath/MyConstants.properties")
>> >> >> public abstract TextResource properties();
>>
>> >> >> and its working fine.
>> >> >> but I need to change the filename after reading the XML file .
>> >> >> eg:
>> >> >> 
>> >> >> MyConstants_C1.properties
>> >> >> 
>>
>> >> >> from that I need to set the reosuece path as
>> >> >> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
>> >> >> that possible?
>>
>> >> >> thanks and regards
>> >> >> Zujee
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Is Run Time Annotation Possible?

2008-12-01 Thread [EMAIL PROTECTED]

You can have a look the Wiki page : 
http://code.google.com/p/gwt-ent/wiki/UseReflection
need include GWT-ENT module into your project.
then include "Reflection" flag interface into your class
ClassType classType = TypeOracle.Instance.getClassType
(YourClass.class);

done :)

On 12月1日, 下午1时33分, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> Do you want to configure anything in order to make class the following
> code work?
> Test.class.getAnnotation(Id.class);
>
> On Fri, Nov 28, 2008 at 6:30 AM, [EMAIL PROTECTED]
>
> <[EMAIL PROTECTED]> wrote:
>
> > Sorry, what do you mean? My English is not so good, but If you got any
> > question, please welcome to ask me :D
> > James
>
> > On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> >> How do you make the com.gwtent.client.test.annotations.Id to be
> >> understandable by GWT?
>
> >> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED]
>
> >> <[EMAIL PROTECTED]> wrote:
>
> >> > Hi, zujee,
>
> >> >  I have a reflection implement for GWT client code, and it support
> >> > get Annotation's value at runtime.
>
> >> >  http://code.google.com/p/gwt-ent/
> >> >  The test case:
> >> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
>
> >> >  Hope that helps :)
> >> > James
>
> >> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
> >> >> Hi experts,
> >> >> I have an interface which extends ImmutableResourceBundle
>
> >> >> and inside that
> >> >> @Resource("com/MyPath/MyConstants.properties")
> >> >> public abstract TextResource properties();
>
> >> >> and its working fine.
> >> >> but I need to change the filename after reading the XML file .
> >> >> eg:
> >> >> 
> >> >> MyConstants_C1.properties
> >> >> 
>
> >> >> from that I need to set the reosuece path as
> >> >> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
> >> >> that possible?
>
> >> >> thanks and regards
> >> >> Zujee
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Is Run Time Annotation Possible?

2008-11-30 Thread Au Lai Seong

Do you want to configure anything in order to make class the following
code work?
Test.class.getAnnotation(Id.class);


On Fri, Nov 28, 2008 at 6:30 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Sorry, what do you mean? My English is not so good, but If you got any
> question, please welcome to ask me :D
> James
>
> On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> How do you make the com.gwtent.client.test.annotations.Id to be
>> understandable by GWT?
>>
>> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED]
>>
>> <[EMAIL PROTECTED]> wrote:
>>
>> > Hi, zujee,
>>
>> >  I have a reflection implement for GWT client code, and it support
>> > get Annotation's value at runtime.
>>
>> >  http://code.google.com/p/gwt-ent/
>> >  The test case:
>> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
>>
>> >  Hope that helps :)
>> > James
>>
>> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
>> >> Hi experts,
>> >> I have an interface which extends ImmutableResourceBundle
>>
>> >> and inside that
>> >> @Resource("com/MyPath/MyConstants.properties")
>> >> public abstract TextResource properties();
>>
>> >> and its working fine.
>> >> but I need to change the filename after reading the XML file .
>> >> eg:
>> >> 
>> >> MyConstants_C1.properties
>> >> 
>>
>> >> from that I need to set the reosuece path as
>> >> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
>> >> that possible?
>>
>> >> thanks and regards
>> >> Zujee
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Is Run Time Annotation Possible?

2008-11-27 Thread [EMAIL PROTECTED]

Sorry, what do you mean? My English is not so good, but If you got any
question, please welcome to ask me :D
James

On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> How do you make the com.gwtent.client.test.annotations.Id to be
> understandable by GWT?
>
> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED]
>
> <[EMAIL PROTECTED]> wrote:
>
> > Hi, zujee,
>
> >  I have a reflection implement for GWT client code, and it support
> > get Annotation's value at runtime.
>
> >  http://code.google.com/p/gwt-ent/
> >  The test case:
> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
>
> >  Hope that helps :)
> > James
>
> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
> >> Hi experts,
> >> I have an interface which extends ImmutableResourceBundle
>
> >> and inside that
> >> @Resource("com/MyPath/MyConstants.properties")
> >>     public abstract TextResource properties();
>
> >> and its working fine.
> >> but I need to change the filename after reading the XML file .
> >> eg:
> >> 
> >> MyConstants_C1.properties
> >> 
>
> >> from that I need to set the reosuece path as
> >> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
> >> that possible?
>
> >> thanks and regards
> >> Zujee
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Is Run Time Annotation Possible?

2008-11-26 Thread Au Lai Seong

How do you make the com.gwtent.client.test.annotations.Id to be
understandable by GWT?



On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Hi, zujee,
>
>  I have a reflection implement for GWT client code, and it support
> get Annotation's value at runtime.
>
>  http://code.google.com/p/gwt-ent/
>  The test case:
> http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/gwtent/client/test/ReflectionTestCase.java
>
>  Hope that helps :)
> James
>
> On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
>> Hi experts,
>> I have an interface which extends ImmutableResourceBundle
>>
>> and inside that
>> @Resource("com/MyPath/MyConstants.properties")
>> public abstract TextResource properties();
>>
>> and its working fine.
>> but I need to change the filename after reading the XML file .
>> eg:
>> 
>> MyConstants_C1.properties
>> 
>>
>> from that I need to set the reosuece path as
>> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
>> that possible?
>>
>> thanks and regards
>> Zujee
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Is Run Time Annotation Possible?

2008-11-26 Thread [EMAIL PROTECTED]

Hi, zujee,

  I have a reflection implement for GWT client code, and it support
get Annotation's value at runtime.

  http://code.google.com/p/gwt-ent/
  The test case:
http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/gwtent/client/test/ReflectionTestCase.java

  Hope that helps :)
James

On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
> Hi experts,
> I have an interface which extends ImmutableResourceBundle
>
> and inside that
> @Resource("com/MyPath/MyConstants.properties")
>     public abstract TextResource properties();
>
> and its working fine.
> but I need to change the filename after reading the XML file .
> eg:
> 
> MyConstants_C1.properties
> 
>
> from that I need to set the reosuece path as
> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
> that possible?
>
> thanks and regards
> Zujee
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Is Run Time Annotation Possible?

2008-11-26 Thread Arthur Kalmenson

Hi Zujee,

AFAIK, it is not possible to modify annotations during runtime (on the
client side). Annotation modification would require reflections which
is not supported on the client side.

--
Arthur Kalmenson



On Wed, Nov 26, 2008 at 1:46 AM, zujee <[EMAIL PROTECTED]> wrote:
>
> Hi experts,
> I have an interface which extends ImmutableResourceBundle
>
> and inside that
> @Resource("com/MyPath/MyConstants.properties")
>public abstract TextResource properties();
>
> and its working fine.
> but I need to change the filename after reading the XML file .
> eg:
> 
> MyConstants_C1.properties
> 
>
> from that I need to set the reosuece path as
> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
> that possible?
>
>
> thanks and regards
> Zujee
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---