I have an entity that should render as a form in a detailview and as a
row in a grid, in another view.
This is the class:
public class Employee implements IsViewBean{ ... }
A third party test.gwt.xml tells the compiler to generate as View,
based on the interface IsViewBean:
<generate-with class="org.test.rebind.ViewGenerator">
<when-type-assignable class="org.test.user.client.IsViewBean"/>
</generate-with>
Another third party demo.gwt.xml tells the compiler to generate as
Form, based on the class Employee:
<generate-with class="org.demo.rebind.FormGenerator">
<when-type-assignable class="com.mycompany.client.model.Employee"/
>
</generate-with>
So, when compiling only one generator gets picked for generation:
View view = GWT.create(Employee.class); (used when displaying as a row
in a grid)
...
Form form = GWT.create(Employee.class); (in another class, used when
displaying in a form)
resulting in a "ClassCastException, ..., cannot be cast to ...View"
Can this conflict be resolved with <and>/<none> etc tags ?
(At the moment I can't see how...)
I read this thread,
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/78c21e18d77980df/9db98d0cddfbe613?pli=1
that makes me think you cannot have two generators matching the same
type ?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
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=.