Monday, September 5, 2011

Re: JAXB + GWT

Have a look at http://code.google.com/p/gwt-ent/. This library will
enable you to build UI using reflection.

I have found manually restructuring JAXB output *.java files to be
very profitable. For instance, many of the classes and datatypes can
be more simply represented as enums. Also, have a look at
xmlbeans.apache.org. It may well give you a simpler output in the
context of you application.

J.Ganesan
www.DataStoreGwt.com

On Sep 3, 11:21 pm, Kyle Anderson <kyleanderso...@gmail.com> wrote:
> I have an XML Schema defined in XSD format.  Basically, there are a
> whole lot of objects with attributes associated with them.  The
> attributes have various types (strings, enumerated types, integers).
> The restrictions on these attributes are all defined in the XSD
> format.   I would like to create an "editor" in GWT which allows the
> user to edit a file in XSD format.  The editor should be able to
> create a form using the XSD.  For example, if there is an enumerated
> type attribute, the editor should create a drop down menu.
>
> I experimented with JAXB to generate the java bean classes from the
> XSD format.  The problem with this is that you cannot do reflection in
> GWT, so there's no great way to view the attributes of the class in
> order to create the editor window.
>
> I imagine people have done similar things before.
>
> Thanks!!
> Kyle

--
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.

No comments:

Post a Comment