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 2009/10/20 20:12:06 UTC

[Tapestry Wiki] Trivial Update of "Tapestry5LayoutWithMenuMenuItem" by deian

Dear Wiki user,

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

The "Tapestry5LayoutWithMenuMenuItem" page has been changed by deian.
http://wiki.apache.org/tapestry/Tapestry5LayoutWithMenuMenuItem?action=diff&rev1=2&rev2=3

--------------------------------------------------

  The className property will return the currentPage className for the html tags when the pagename matches the current node we render
  
  ---- 
+ {{{
  import org.apache.tapestry5.BindingConstants;
  import org.apache.tapestry5.ComponentResources;
  import org.apache.tapestry5.annotations.Parameter;
@@ -39, +40 @@

      	return null;
      }
  }
- 
+ }}}
  ----
  
  == MenuItem.tml ==
  
  ----
  
+ {{{
  <li xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd" xmlns:p="tapestry:parameter">
  	<t:if test="isPage">
  		<t:pageLink page="${page}" class="${className}">${pageTitle}</t:pageLink>
@@ -58, +60 @@

  	</ul>
  </li>
  						
+ }}}
  

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