Have you considered the type-safe approach, using Gin ?

On 6 août, 10:07, Stephan T <[email protected]> wrote:
> The reason why I try to do this is that GWT doesn't support
> reflections. I'm trying to use a helper method on the server side
> which receivs the class name, the server side then instatiates the
> class and returns it to the client.
>
> Any other suggestions how to solve this problem?
>
> On 5 Aug, 15:47, Mikael Couzic <[email protected]> wrote:
>
>
>
> > Sounds like you violated the SRP principle...
> > If I got it right, Composite depends on the DOM, which doesn't exist
> > server-side, so I don't think it is possible.
> > A solution would be to encapsulate the functionnality you want to use
> > server-side in a POJO. Your composite would then delegate to the POJO,
> > which could be reused server-side.
> > And if you wish to push further towards great design, embrace MVP !
>
> > On 5 août, 14:42, Stephan T <[email protected]> wrote:
>
> > > For several reasons I need to instansiate a Composite on the server
> > > side that is in the client package. Is it possible? Now I think I'm
> > > getting class not found exception when trying...

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