You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2008/07/29 17:31:13 UTC

[Tapestry Wiki] Update of "Tapestry5HowToControlAccess" by Carl

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.

The following page has been changed by Carl:
http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess

------------------------------------------------------------------------------
  
      /* Is the requested page private ? */
      Component page = componentSource.getPage(pageName);
-     Boolean privatePage = Boolean.valueOf(page.getComponentResources().getComponentModel().getMeta("private"));
+     boolean privatePage = page.getClass().getAnnotation( Private.class ) != null;
          
      if (privatePage)
      {

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org