tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tapestry Wiki] Update of "Tapestry5HowToControlAccess" by Carl
Date Tue, 29 Jul 2008 15:31:13 GMT
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


Mime
View raw message