Hi, I am developing an application which has some protected pages. I am using some ideas taken from the VLib example.
I use the validate method to redirect the page flow to a login page when the user tries to access a page which is protected. I redirect the page flow using PageRedirectException. I find the concept very nice. I have noticed that the method validate from my page object is called when the page flow is handled by the engine's service mechanism but it is not when one page change the page flow with the method cycle.setPage(page). That means that for example if the user invoke my application for the first time he will be directed to my home page, and then my home page can decide to redirect to an other page because its validate method is called, but if within my application I want to branch to the page "home" then the validate method is not called. The bottom line is: is there a page method from which I can throw a PageRedirectException and which is always called before rendering it? Instead of using the validate method, I have used the method beginResponse... This seems to work. Is there a better way to do this? I find it awkward to subclass beginResponse to do what I want to do. Thanks for your help... Best regards Jean Thomson Corporation Switzerland AG Dialog/DataStar Jean Tremblay Laupenstrasse 18a CH-3008 Bern Switzerland
<<application/ms-tnef>>
