sdc
19 Mar 2009, 9:17 AM
Hi,
If we have non-public getters (even protected) in a bean (implementing BeanModelTag or with a marker and the @BEAN annotation), we get a GWT error :
[ERROR] Errors in 'transient source for com.extjs.gxt.ui.client.data.BeanModel_MyBean
[ERROR] Line 15: The method getFoo() from the type MyBean is not visibleI think there is a very simple way to fix that : put the generated beans in the same package that the bean.
In BeanModelGenerator (1.2.3), replace :
private String createBean(JClassType bean, TreeLogger logger, GeneratorContext context)
throws Exception {
final String genPackageName = "com.extjs.gxt.ui.client.data";
by
private String createBean(JClassType bean, TreeLogger logger, GeneratorContext context)
throws Exception {
final String genPackageName = bean.getPackage().getName();
If we have non-public getters (even protected) in a bean (implementing BeanModelTag or with a marker and the @BEAN annotation), we get a GWT error :
[ERROR] Errors in 'transient source for com.extjs.gxt.ui.client.data.BeanModel_MyBean
[ERROR] Line 15: The method getFoo() from the type MyBean is not visibleI think there is a very simple way to fix that : put the generated beans in the same package that the bean.
In BeanModelGenerator (1.2.3), replace :
private String createBean(JClassType bean, TreeLogger logger, GeneratorContext context)
throws Exception {
final String genPackageName = "com.extjs.gxt.ui.client.data";
by
private String createBean(JClassType bean, TreeLogger logger, GeneratorContext context)
throws Exception {
final String genPackageName = bean.getPackage().getName();