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 modified page/component classes. I have to stop and start container again. Very disturbing actually. I don't want to put such simple types outside of page classes because it pollutes source tree for no reason. Could you elaborate? Thanks in advance! On Sat, Jun 8, 2013 at 5:58 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 07 Jun 2013 12:50:46 -0300, Zsombor <gzsom...@gmail.com> 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 loader issue >> > > Yep. Did you put the MyPluginTab interface in a controlled package (base, > components, pages or mixins)? If yes, put it somewhere else. > > > This seem to be work ... For the first request. On the subsequent AJAX >> requests, the parent component rendering is not called, >> > > This is expected. @BeginRender, @SetupRender are only invoked when the > page is rendered, not when just a piece of it is. > > Have you tried pushing stuff into the Environment in the AJAX even handler > method you're using in addition to setupRender()? > > -- > Thiago H. de Paula Figueiredo > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > users-unsubscribe@tapestry.**apache.org<users-unsubscr...@tapestry.apache.org> > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Ilya Obshadko