You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by me...@apache.org on 2009/05/21 13:04:29 UTC
svn commit: r777060 -
/incubator/click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java
Author: medgar
Date: Thu May 21 11:04:29 2009
New Revision: 777060
URL: http://svn.apache.org/viewvc?rev=777060&view=rev
Log:
CLK-551
Modified:
incubator/click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java (contents, props changed)
Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java?rev=777060&r1=777059&r2=777060&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java (original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java Thu May 21 11:04:29 2009
@@ -129,7 +129,7 @@
*
* <span class="red">#end</span> </pre>
*
- * This example uses J2EE role path based security to only display the menu items
+ * This example uses role path based security to only display the menu items
* the user is authorized to see. If you not using this security feature in your
* application you should remove the macro {@link #isUserInRoles()} checks so
* the menu items will be rendered.
@@ -140,7 +140,7 @@
*
* <h3>Security</h3>
*
- * Menus support J2EE role based security via the {@link #isUserInRoles()}
+ * Menus support role based security via the {@link #isUserInRoles()}
* method. When creating secure menus define the valid roles in the menu items.
* For example:
*
@@ -155,7 +155,7 @@
* <menu label="Home" path="admin/admin.htm" roles="admin"/>
* </menu>
* </menu> </pre>
- *
+ *
* <h3>Menu Configuration DTD</h3>
*
* The Menu config file DTD is provided below:
@@ -779,6 +779,10 @@
buffer.appendAttributeEscaped("title", getTitle());
}
+ if (isSelected()) {
+ buffer.appendAttribute("class", "selected");
+ }
+
buffer.closeTag();
if (StringUtils.isNotBlank(getImageSrc())) {
Propchange: incubator/click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java
('svn:mergeinfo' removed)