jluo-bgl / gwt-ent

Automatically exported from code.google.com/p/gwt-ent
0 stars 0 forks source link

smartGWT components as private members of a class #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.SmartGWT Component as a private variable in class which implements reflection

class x implements Reflection{

private IButton button;
}

will not compile from java to javascript
2.
3.

What is the expected output? What do you see instead?
When widgets are placed as private members compilation has no errors.

returning new IButton(); works
using IButton in a function works
using IButton as a function parameter does NOT
What version of the product are you using? On what operating system?

latest, xp
Please provide any additional information below.

Thank you

Original issue reported on code.google.com by lama.gh...@gmail.com on 23 Aug 2010 at 1:26

GoogleCodeExporter commented 9 years ago
Hi, Lama, could you try annotation "@Reflect_Full" instead of implements 
"Reflection" interface? Thanks.

If not compile, would you please send me the error information? Thanks.

James

Original comment by JamesLuo...@gmail.com on 23 Aug 2010 at 11:23

GoogleCodeExporter commented 9 years ago
Thank you, it is working now.
I have a question, though. What is the difference between implementing 
reflection and the annotation @Reflect_Full. Thank you

Original comment by lama.gh...@gmail.com on 24 Aug 2010 at 7:15

GoogleCodeExporter commented 9 years ago
Hi, Lama, There is no much difference, but I think there is a small bug in 
"reflection" interface. 

I will close this issue , thanks.

Original comment by JamesLuo...@gmail.com on 24 Aug 2010 at 11:48

GoogleCodeExporter commented 9 years ago
Can you please see the other post. 
http://code.google.com/p/gwt-ent/issues/detail?id=27
I posted my error. Its still not working

Original comment by lama.gh...@gmail.com on 24 Aug 2010 at 1:07