You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2005/05/25 13:54:16 UTC
svn commit: r178422 -
/myfaces/trunk/src/components/org/apache/myfaces/custom/navigation/HtmlNavigationRenderer.java
Author: manolito
Date: Wed May 25 04:54:15 2005
New Revision: 178422
URL: http://svn.apache.org/viewcvs?rev=178422&view=rev
Log:
MYFACES-117
Modified:
myfaces/trunk/src/components/org/apache/myfaces/custom/navigation/HtmlNavigationRenderer.java
Modified: myfaces/trunk/src/components/org/apache/myfaces/custom/navigation/HtmlNavigationRenderer.java
URL: http://svn.apache.org/viewcvs/myfaces/trunk/src/components/org/apache/myfaces/custom/navigation/HtmlNavigationRenderer.java?rev=178422&r1=178421&r2=178422&view=diff
==============================================================================
--- myfaces/trunk/src/components/org/apache/myfaces/custom/navigation/HtmlNavigationRenderer.java (original)
+++ myfaces/trunk/src/components/org/apache/myfaces/custom/navigation/HtmlNavigationRenderer.java Wed May 25 04:54:15 2005
@@ -217,6 +217,13 @@
protected String getNavigationItemClass(HtmlPanelNavigation navPanel,
HtmlCommandNavigation navItem)
{
+ // MYFACES-117, if a styleClass is supplied for a HtmlCommandNavigation,
+ // panelNavigation active/open/normal styles for items will be overriden
+ if (navItem.getStyleClass() != null)
+ {
+ return navItem.getStyleClass();
+ }
+
if (navItem.isActive())
{
return navPanel.getActiveItemClass();