Re: Embedding content from separate modules (a.k.a plugins)

2013-06-12 Thread Thiago H de Paula Figueiredo
On Tue, 11 Jun 2013 23:15:21 -0300, Ilya Obshadko wrote: Ok. It's interesting however - if I declare an inner class inside a page class, is it going to be accessible via URL? No. -- Thiago H. de Paula Figueiredo - To unsu

Re: Embedding content from separate modules (a.k.a plugins)

2013-06-11 Thread Ilya Obshadko
On Tue, Jun 11, 2013 at 11:04 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 11 Jun 2013 02:14:18 -0300, Ilya Obshadko > wrote: > > I actually encounter the same problem: >> >> x.y.z.Login$EnumType cannot be cast to x.y.z.Login$EnumType >> > > Move EnumType to a non-cont

Re: Embedding content from separate modules (a.k.a plugins)

2013-06-11 Thread Thiago H de Paula Figueiredo
On Tue, 11 Jun 2013 02:14:18 -0300, Ilya Obshadko wrote: I actually encounter the same problem: x.y.z.Login$EnumType cannot be cast to x.y.z.Login$EnumType Move EnumType to a non-controlled package (i.e. one that isn't components, pages, base or mixins) and it'll work. We can't stress th

Re: Embedding content from separate modules (a.k.a plugins)

2013-06-11 Thread Ilya Obshadko
Thanks, that makes sense. Declaring the enum static doesn't help, though (already tried it). Will check with serial. On Tue, Jun 11, 2013 at 5:34 PM, mailingl...@j-b-s.de wrote: > And I forgot: > Try to make the enum static and/or set a serialuid in your page class, > maybe this helps too... > >

Re: Embedding content from separate modules (a.k.a plugins)

2013-06-10 Thread mailingl...@j-b-s.de
And I forgot: Try to make the enum static and/or set a serialuid in your page class, maybe this helps too... Sent from my iPhone On 11.06.2013, at 08:23, "mailingl...@j-b-s.de" wrote: > Hi Ilya > > I make a shot into the dark: you are using persist therefore an instance of > your enum is sto

Re: Embedding content from separate modules (a.k.a plugins)

2013-06-10 Thread mailingl...@j-b-s.de
Hi Ilya I make a shot into the dark: you are using persist therefore an instance of your enum is stored in the session. When you recompile a new class is loaded and the two enums belong to different classes/classloaders now, thus you get a CCE. If you move it out of your page it should work. J

Re: Embedding content from separate modules (a.k.a plugins)

2013-06-10 Thread Ilya Obshadko
I actually encounter the same problem: x.y.z.Login$EnumType cannot be cast to x.y.z.Login$EnumType EnumType is a simple enum embedded in a page class: @Property @Persist private EnumType something; enum EnumType { ONE, TWO }; What is this? Happens every time container reloads modifi

Re: Embedding content from separate modules (a.k.a plugins)

2013-06-07 Thread Thiago H de Paula Figueiredo
On Fri, 07 Jun 2013 12:50:46 -0300, Zsombor wrote: Hi, Hi! 1, MyPluginTab tab = (MyPluginTab) page.getRootComponent(); tab.init(...); This creates a nice exception: *java.lang.ClassCastException: x.y.z.MyPluginTab cannot be cast to x.y.z.MyPluginTab * Clearly a class loade

Embedding content from separate modules (a.k.a plugins)

2013-06-07 Thread Zsombor
Hi, In our application, we would like to have a modular structure, where for a certain DTO, we would like to have different tabs, depending on the actual deployed application, so the core webapp doesn't need to know all the possible tabs in advance. We have the following interface: interface Tab