I have seen Apache beanutils used to copy from an "encumbered" object graph 
such as that provided by Hibernate and JAXB into simple POJOs.

Though this DTO use should be carefully managed as it can quickly become an 
anti-pattern. 

laolaoyu <[email protected]> wrote:

I need to forward the data to the client. If not using the data types
generated by these frameworks, what else can I use?

On Jul 7, 12:06 am, Deepak Singh <[email protected]> wrote:
> You will use these data binding frameworks only on server side. They dont
> have any role to play on client side.
>
>
>
>
>
>
>
> On Wed, Jul 6, 2011 at 9:04 PM, laolaoyu <[email protected]> wrote:
> > Hi,
>
> > I have some XML data on my web server side (which is received from
> > some web service). At the moment I used Axis2 DataBinding (ADB)
> > framework to generated all the data types in Java.
>
> > However when I tried to forward these Java objects to the web client
> > side thru GWT-RPC, it failed because all the library dependencies are
> > not available on the client-side. I have read thru some posts in this
> > group and on google and it seems that it is the same problem also for
> > other data binding framework like Jaxb, Xmlbeans, JiBX, etc.
>
> > For what I have seen, one way to solve it is to include the dependent
> > libraries as "super-source" on the client-side so GWT compiler to find
> > them during Java to JavaScript compilation. This doesn't sound like an
> > elegant solution to me?
>
> > Is there a better to solve the problem?
>
> > Thanks,
>
> > --
> > 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=en.

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

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

Reply via email to