Re: Tapestry-Security @RequiresPermission("xxx:yyy:zzz") on class

2014-06-22 Thread Thiago H de Paula Figueiredo
On Sun, 22 Jun 2014 22:56:46 -0300, Chris Mylonas wrote: Ah bugger, it always happens after sending to a list or forum. Found a suitable response to try from Listing 3.25 from Igor's book. e.g. Object onActivate(Long articleId) { this.article = blogService.findArticleById(articleId);

Re: Tapestry-Security @RequiresPermission("xxx:yyy:zzz") on class

2014-06-22 Thread Thiago H de Paula Figueiredo
On Sun, 22 Jun 2014 22:51:46 -0300, Chris Mylonas wrote: Hi Tapestry Users, Hi! Whilst waiting for customs clearance in a Fijian port, I have a query. Sounds fun! :P In my else, I'd like to redirect to a page, "you don't have permissions for this action". All examples I've come acr

Re: Tapestry-Security @RequiresPermission("xxx:yyy:zzz") on class

2014-06-22 Thread Chris Mylonas
Ah bugger, it always happens after sending to a list or forum. Found a suitable response to try from Listing 3.25 from Igor's book. e.g. Object onActivate(Long articleId) { this.article = blogService.findArticleById(articleId); if (this.article == null) { return new StreamPa