Saturday, July 30, 2011

ValueProxy Implementation Rule ?

Hi all,

I'm using valueProxies in order to give Criterias to a static method
"find" located in my ServerSide Entity.
Each ValueProxy had a setter and a getter.

But today I realized that only setter had to be used Client side so I
decided to remove all the getters on the Proxy but let them on
*.shared POJO which my proxy is a valueProxy for.

But It don't seems to work. The application is still compling but I'm
facing a RuntimeException:

Caused by: java.lang.IllegalArgumentException: searchKey
at
com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl.doCoderFor(AutoBeanCodexImpl.java:
524)
at
com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.setProperty(AbstractAutoBean.java:
276)

I didn't understand why but I suppose that RequestFactory don't manage
any ValueProxies without getters AND setters declared.

Maybe it has to call getters when object are created Server Side ???

If it is true, maybe this implementation rule should be documented.
Anybody in this case ?

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

2 comments: