Right now i manually need to trigger isActionAuthorized(Component.RENDER); after the component has been fully initialized. I would like to abort as soon as possible.
Maurice On 7/18/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > cant you test this with the render action check? > that is always done also if the model is changed > > johan > > > On 7/18/07, Maurice Marrink <[EMAIL PROTECTED]> wrote: > > > > True you can't do setModel(foo) and expect your instantiation check to > > work. Which imho is perfectly logical if you want to use your model in > > the instantiation check you need to pass it in the constructor. > > > > As for the example > > We have a search page for students, uppon clicking on one of those > > students, you go to a detail page for that student. that page also > > contains several tabs to go to other relevant pages for the student > > (like it's school grades). on these pages we made a quicksearch > > function with contains amongst other things 2 buttons to navigate > > forth and back between the searchresults of the search page, while > > keeping the same view. Suppose i have sufficient rights to see the > > detail pages of all students but only enough rights to see the grades > > of my own students. > > > > So if i make the search wide enough to get all students and then > > select one of my own, going to the grades. That's fine. But if i then > > navigate to another student i am not allowed to see the grades > > (creating a new instance of the grades page in the process) i need to > > know if the page in combination with the student is allowed, because > > the page itself is basically allowed. > > > > Maurice > > > > On 7/18/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > I don't think I agree with that. > > > > > > MyComponent c = new MyComponent(); c.setModel(foo) wouldn't work for > > > starters, and you can even set models mutliple times. Not to mention > > > the other problems you mentioned in this thread. And finally, it would > > > just invite people to go crazy with this functionality. > > > > > > But give us a good example of where using the model to determine an > > > access restriction would actually be useful? > > > > > > Eelco > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user