summaryrefslogtreecommitdiffstats
path: root/pki/base
diff options
context:
space:
mode:
authorawnuk <awnuk@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2009-03-06 23:10:17 +0000
committerawnuk <awnuk@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2009-03-06 23:10:17 +0000
commitd47e3a559a4b38d4bee69a92c7e8726a75a30cc1 (patch)
tree43623a362a28142267a5b059135c5371d7cb5668 /pki/base
parentcf2366469a7dbaf787b449d8148363ac3f98c301 (diff)
downloadpki-d47e3a559a4b38d4bee69a92c7e8726a75a30cc1.tar.gz
pki-d47e3a559a4b38d4bee69a92c7e8726a75a30cc1.tar.xz
pki-d47e3a559a4b38d4bee69a92c7e8726a75a30cc1.zip
Fixed bugzilla bug #241423.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@283 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base')
-rw-r--r--pki/base/console/src/com/netscape/admin/certsrv/config/CMSCRLCachePanel.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/pki/base/console/src/com/netscape/admin/certsrv/config/CMSCRLCachePanel.java b/pki/base/console/src/com/netscape/admin/certsrv/config/CMSCRLCachePanel.java
index b50b241a5..6ccf27d9c 100644
--- a/pki/base/console/src/com/netscape/admin/certsrv/config/CMSCRLCachePanel.java
+++ b/pki/base/console/src/com/netscape/admin/certsrv/config/CMSCRLCachePanel.java
@@ -55,6 +55,7 @@ public class CMSCRLCachePanel extends CMSBaseTab {
private String mId = null;
private static final String HELPINDEX =
"configuration-ca-ldappublish-crl-help";
+ private CMSCRLFormatPanel mCRLFormatPanel = null;
/*==========================================================
* constructors
@@ -168,6 +169,13 @@ public class CMSCRLCachePanel extends CMSBaseTab {
gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE,0,COMPONENT_SPACE);
cachePanel.add(mEnableCacheRecovery, gbc);
+ int nTabs = mParent.mTabbedPane.getTabCount();
+ for (int i = 0; i < nTabs; i++) {
+ Object p = mParent.mTabbedPane.getComponentAt(i);
+ if (p instanceof CMSCRLFormatPanel) {
+ mCRLFormatPanel = (CMSCRLFormatPanel)p;
+ }
+ }
refresh();
}
@@ -247,7 +255,6 @@ public class CMSCRLCachePanel extends CMSBaseTab {
else
nvps.add(Constants.PR_ENABLE_CACHE, Constants.FALSE);
-
cacheFreq = mCacheFreq.getText().trim();
if (cacheFreq.equals("")) {
showMessageDialog("BLANKFIELD");
@@ -312,6 +319,7 @@ public class CMSCRLCachePanel extends CMSBaseTab {
private void enableFields() {
boolean enable = mEnableCache.isSelected();
Color color = (enable)? mActiveColor: getBackground();
+ mCRLFormatPanel.setCacheEnabled(enable);
mCacheFreqLabel.setEnabled(enable);
CMSAdminUtil.repaintComp(mCacheFreqLabel);