diff -r 019b620aea7d maven.j2ee/src/org/netbeans/modules/maven/j2ee/ui/customizer/impl/Bundle.properties --- a/maven.j2ee/src/org/netbeans/modules/maven/j2ee/ui/customizer/impl/Bundle.properties Tue Sep 17 06:35:45 2013 +0000 +++ b/maven.j2ee/src/org/netbeans/modules/maven/j2ee/ui/customizer/impl/Bundle.properties Tue Sep 17 10:53:56 2013 +0200 @@ -30,6 +30,7 @@ WebRunCustomizerPanel.txtContextPath.AccessibleContext.accessibleDescription=Context Path WebRunCustomizerPanel.txtRelativeUrl.AccessibleContext.accessibleDescription=Relative URL WebRunCustomizerPanel.contextPathDisabled=A server must be selected first in order to modify this field +WebRunCustomizerPanel.contextPathDisabledConfirm=Select a server and confirm the dialog in order to modify this field # frameworks were added through the customizer. # {0} the first added framework diff -r 019b620aea7d maven.j2ee/src/org/netbeans/modules/maven/j2ee/ui/customizer/impl/CustomizerRunWeb.java --- a/maven.j2ee/src/org/netbeans/modules/maven/j2ee/ui/customizer/impl/CustomizerRunWeb.java Tue Sep 17 06:35:45 2013 +0000 +++ b/maven.j2ee/src/org/netbeans/modules/maven/j2ee/ui/customizer/impl/CustomizerRunWeb.java Tue Sep 17 10:53:56 2013 +0200 @@ -60,6 +60,7 @@ import org.netbeans.modules.maven.j2ee.ui.customizer.BaseRunCustomizer; import org.netbeans.modules.maven.j2ee.ui.util.CopyStaticResourcesOnSaveCheckBoxUpdater; import org.netbeans.modules.maven.j2ee.utils.LoggingUtils; +import org.netbeans.modules.maven.j2ee.utils.ServerUtils; import org.netbeans.modules.maven.j2ee.web.WebModuleImpl; import org.netbeans.modules.maven.j2ee.web.WebModuleProviderImpl; import org.netbeans.modules.web.api.webmodule.WebModule; @@ -79,6 +80,8 @@ public static final String PROP_SHOW_IN_BROWSER = "netbeans.deploy.showBrowser"; //NOI18N + private final boolean noServer; + private BrowserComboBoxModel browserModel; private WebModule module; @@ -104,6 +107,8 @@ contextPathTField.setText(module.getContextPath()); } + noServer = ExecutionChecker.DEV_NULL.equals(ServerUtils.findServer(project).getServerID()); + initValues(); initServerModel(serverCBox, serverLabel, J2eeModule.Type.WAR); initVersionModel(javaeeVersionCBox, javaeeVersionLabel, J2eeModule.Type.WAR); @@ -403,10 +408,14 @@ if (contextPathTField.isEnabled()) { contextPathTField.setEnabled(false); oldContextPath = contextPathTField.getText(); - contextPathTField.setText(NbBundle.getMessage(CustomizerRunWeb.class, "WebRunCustomizerPanel.contextPathDisabled")); + if (!noServer) { + contextPathTField.setText(NbBundle.getMessage(CustomizerRunWeb.class, "WebRunCustomizerPanel.contextPathDisabled")); + } else { + contextPathTField.setText(NbBundle.getMessage(CustomizerRunWeb.class, "WebRunCustomizerPanel.contextPathDisabledConfirm")); + } } } else { - if (!contextPathTField.isEnabled()) { + if (!contextPathTField.isEnabled() && !noServer) { contextPathTField.setEnabled(true); if (oldContextPath != null) { contextPathTField.setText(oldContextPath);