Console.debug("Response-- " + response.getText());
AutoBean<MyBean> ab = AutoBeanCodex.decode(factory, MyBean.class, response.getText());
Console.debug("Decode 1");
InitResult result = ab.as();
Console.debug("Decode 2: " + result.toString());
Console.debug("Result: " + result.getValue());
public interface MyBean extends Serializable
{
public String getValue();
public void setValue(String value);
}
public interface RequestBeanFactory extends AutoBeanFactory
{
public AutoBean<MyBean> myBean();
}
RequestBeanFactory factory = GWT.create(RequestBeanFactory.class);
AutoBean<MyBean> ab = AutoBeanCodex.decode(factory, MyBean.class, "{\"value\":\"ciao\"}");
GWT.log("Decode 1");
MyBean result = ab.as();
GWT.log("Decode 2: " + result.toString());
GWT.log("Result: " + result.getValue());
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/RzsjqX2gGd4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
Is there a way to upgrade to the trunk version via maven?
This issue was fixed when i switched from 2.7.0 to 2.8.0-Snapshot . However, in the snapshot, beans which have only primitives and Strings work. But, beans that have any collections ( lists / maps) don't work, giving a similar error as this.
Any ideas what the issue might be then? Do you use intellij for running SDM? And, can you repro the issue if you clone the repo I linked in the other post?
--
public Clerk<D> setEvents(HasValue<?>... fields)
{
for (HasValue<?> f : fields)
{
f.addValueChangeHandler( e -> validate() );
}
return this;
}