myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmarinsc...@apache.org
Subject svn commit: r375283 - /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/collapsiblepanel/HtmlCollapsiblePanelTag.java
Date Mon, 06 Feb 2006 14:20:54 GMT
Author: mmarinschek
Date: Mon Feb  6 06:20:53 2006
New Revision: 375283

URL: http://svn.apache.org/viewcvs?rev=375283&view=rev
Log:
fix for MYFACES-850

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/collapsiblepanel/HtmlCollapsiblePanelTag.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/collapsiblepanel/HtmlCollapsiblePanelTag.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/collapsiblepanel/HtmlCollapsiblePanelTag.java?rev=375283&r1=375282&r2=375283&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/collapsiblepanel/HtmlCollapsiblePanelTag.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/collapsiblepanel/HtmlCollapsiblePanelTag.java
Mon Feb  6 06:20:53 2006
@@ -16,6 +16,7 @@
 package org.apache.myfaces.custom.collapsiblepanel;
 
 import org.apache.myfaces.taglib.html.HtmlInputTagBase;
+import org.apache.myfaces.component.UserRoleAware;
 
 import javax.faces.component.UIComponent;
 import javax.servlet.jsp.tagext.BodyTag;
@@ -45,13 +46,16 @@
     private String _title;
     private String _var;
     private String _titleVar;
-    // User Role support --> already handled by HtmlPanelGroupTag
+    private String _enabledOnUserRole;
+    private String _visibleOnUserRole;
 
     public void release() {
         super.release();
         _title=null;
         _var=null;
         _titleVar=null;
+        _enabledOnUserRole=null;
+        _visibleOnUserRole=null;
         bodyContent = null;
     }
 
@@ -62,6 +66,9 @@
         setStringProperty(component, "title", _title);
         setStringProperty(component,"var",_var);
         setStringProperty(component,"titleVar",_titleVar);
+        setStringProperty(component, UserRoleAware.ENABLED_ON_USER_ROLE_ATTR, _enabledOnUserRole);
+        setStringProperty(component, UserRoleAware.VISIBLE_ON_USER_ROLE_ATTR, _visibleOnUserRole);
+
     }
 
 
@@ -79,6 +86,17 @@
     {
         _titleVar = titleVar;
     }
+
+    public void setEnabledOnUserRole(String enabledOnUserRole)
+    {
+        _enabledOnUserRole = enabledOnUserRole;
+    }
+
+    public void setVisibleOnUserRole(String visibleOnUserRole)
+    {
+        _visibleOnUserRole = visibleOnUserRole;
+    }
+
 
     // API field
     protected BodyContent bodyContent;



Mime
View raw message