On 12 May 2014 16:32, Erik de Hair <[email protected]> wrote: > Hi, > > Is it possible to add pagetypes (that bypass security and have access to > the Isis context) or is there some reason why the number of page types is > limited right now? >
As you've probably figured out, its currently fixed to those in the PageType enum. Why? Only that there's been no need to make this extensible before now. The different page types form a close loop; we only ever have to render those different sorts. > > I tried to extend the PageClassRegistry and PageType enum. This kind of > works only without access to the Isis context. > > I'm looking at the code at it would seem that I don't correctly use the PageType or PageClassRegistry mechanism everywhere. For example, the ActionResultResponseType class simply new's up the next page to traverse to. Ignoring that inconsistency for a minute, I do think that it might me that if you subclass from PageAbstract (as the other pages all do), then you should have all the usual menus etc. In terms of the Isis context etc, that is setup through the WicketFilter calling WebRequestCycleForIsis's onBeginRequest and onEndRequest. This is configured as a callback by IsisWicketApplication when first started. > I need some pages for users self service (forgotten passwords etc.). > > If you manage to get something working, this would be a nice contribution :-) Cheers Dan > Thanks, > Erik > > >
