This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 235603
Collapse All | Expand All

(-)a/maven.j2ee/src/org/netbeans/modules/maven/j2ee/ui/customizer/impl/Bundle.properties (+1 lines)
Lines 30-35 Link Here
30
WebRunCustomizerPanel.txtContextPath.AccessibleContext.accessibleDescription=Context Path
30
WebRunCustomizerPanel.txtContextPath.AccessibleContext.accessibleDescription=Context Path
31
WebRunCustomizerPanel.txtRelativeUrl.AccessibleContext.accessibleDescription=Relative URL
31
WebRunCustomizerPanel.txtRelativeUrl.AccessibleContext.accessibleDescription=Relative URL
32
WebRunCustomizerPanel.contextPathDisabled=A server must be selected first in order to modify this field
32
WebRunCustomizerPanel.contextPathDisabled=A server must be selected first in order to modify this field
33
WebRunCustomizerPanel.contextPathDisabledConfirm=Select a server and confirm the dialog in order to modify this field
33
34
34
# frameworks were added through the customizer. 
35
# frameworks were added through the customizer. 
35
# {0} the first added framework
36
# {0} the first added framework
(-)a/maven.j2ee/src/org/netbeans/modules/maven/j2ee/ui/customizer/impl/CustomizerRunWeb.java (-2 / +11 lines)
Lines 60-65 Link Here
60
import org.netbeans.modules.maven.j2ee.ui.customizer.BaseRunCustomizer;
60
import org.netbeans.modules.maven.j2ee.ui.customizer.BaseRunCustomizer;
61
import org.netbeans.modules.maven.j2ee.ui.util.CopyStaticResourcesOnSaveCheckBoxUpdater;
61
import org.netbeans.modules.maven.j2ee.ui.util.CopyStaticResourcesOnSaveCheckBoxUpdater;
62
import org.netbeans.modules.maven.j2ee.utils.LoggingUtils;
62
import org.netbeans.modules.maven.j2ee.utils.LoggingUtils;
63
import org.netbeans.modules.maven.j2ee.utils.ServerUtils;
63
import org.netbeans.modules.maven.j2ee.web.WebModuleImpl;
64
import org.netbeans.modules.maven.j2ee.web.WebModuleImpl;
64
import org.netbeans.modules.maven.j2ee.web.WebModuleProviderImpl;
65
import org.netbeans.modules.maven.j2ee.web.WebModuleProviderImpl;
65
import org.netbeans.modules.web.api.webmodule.WebModule;
66
import org.netbeans.modules.web.api.webmodule.WebModule;
Lines 79-84 Link Here
79
80
80
    public static final String PROP_SHOW_IN_BROWSER = "netbeans.deploy.showBrowser"; //NOI18N
81
    public static final String PROP_SHOW_IN_BROWSER = "netbeans.deploy.showBrowser"; //NOI18N
81
82
83
    private final boolean noServer;
84
82
    private BrowserComboBoxModel browserModel;
85
    private BrowserComboBoxModel browserModel;
83
86
84
    private WebModule module;
87
    private WebModule module;
Lines 104-109 Link Here
104
            contextPathTField.setText(module.getContextPath());
107
            contextPathTField.setText(module.getContextPath());
105
        }
108
        }
106
109
110
        noServer = ExecutionChecker.DEV_NULL.equals(ServerUtils.findServer(project).getServerID());
111
107
        initValues();
112
        initValues();
108
        initServerModel(serverCBox, serverLabel, J2eeModule.Type.WAR);
113
        initServerModel(serverCBox, serverLabel, J2eeModule.Type.WAR);
109
        initVersionModel(javaeeVersionCBox, javaeeVersionLabel, J2eeModule.Type.WAR);
114
        initVersionModel(javaeeVersionCBox, javaeeVersionLabel, J2eeModule.Type.WAR);
Lines 403-412 Link Here
403
            if (contextPathTField.isEnabled()) {
408
            if (contextPathTField.isEnabled()) {
404
                contextPathTField.setEnabled(false);
409
                contextPathTField.setEnabled(false);
405
                oldContextPath = contextPathTField.getText();
410
                oldContextPath = contextPathTField.getText();
406
                contextPathTField.setText(NbBundle.getMessage(CustomizerRunWeb.class, "WebRunCustomizerPanel.contextPathDisabled"));
411
                if (!noServer) {
412
                    contextPathTField.setText(NbBundle.getMessage(CustomizerRunWeb.class, "WebRunCustomizerPanel.contextPathDisabled"));
413
                } else {
414
                    contextPathTField.setText(NbBundle.getMessage(CustomizerRunWeb.class, "WebRunCustomizerPanel.contextPathDisabledConfirm"));
415
                }
407
            }
416
            }
408
        } else {
417
        } else {
409
            if (!contextPathTField.isEnabled()) {
418
            if (!contextPathTField.isEnabled() && !noServer) {
410
                contextPathTField.setEnabled(true);
419
                contextPathTField.setEnabled(true);
411
                if (oldContextPath != null) {
420
                if (oldContextPath != null) {
412
                    contextPathTField.setText(oldContextPath);
421
                    contextPathTField.setText(oldContextPath);

Return to bug 235603