[wise-commits] wise SVN: r467 - in webgui/branches/cdi-jsf/src/main: webapp and 1 other directory.
wise-commits at lists.jboss.org
wise-commits at lists.jboss.org
Mon Jan 28 18:25:09 EST 2013
Author: alessio.soldano at jboss.com
Date: 2013-01-28 18:25:09 -0500 (Mon, 28 Jan 2013)
New Revision: 467
Modified:
webgui/branches/cdi-jsf/src/main/java/org/jboss/wise/gui/ClientConversationBean.java
webgui/branches/cdi-jsf/src/main/webapp/index.xhtml
Log:
Prevent double click / submission of wsdl url
Modified: webgui/branches/cdi-jsf/src/main/java/org/jboss/wise/gui/ClientConversationBean.java
===================================================================
--- webgui/branches/cdi-jsf/src/main/java/org/jboss/wise/gui/ClientConversationBean.java 2013-01-28 22:43:00 UTC (rev 466)
+++ webgui/branches/cdi-jsf/src/main/java/org/jboss/wise/gui/ClientConversationBean.java 2013-01-28 23:25:09 UTC (rev 467)
@@ -93,6 +93,7 @@
}
public void parseOperationParameters() {
+ if (currentOperation == null) return;
StringTokenizer st = new StringTokenizer(currentOperation, ";");
String serviceName = st.nextToken();
String portName = st.nextToken();
Modified: webgui/branches/cdi-jsf/src/main/webapp/index.xhtml
===================================================================
--- webgui/branches/cdi-jsf/src/main/webapp/index.xhtml 2013-01-28 22:43:00 UTC (rev 466)
+++ webgui/branches/cdi-jsf/src/main/webapp/index.xhtml 2013-01-28 23:25:09 UTC (rev 467)
@@ -19,8 +19,8 @@
<rich:panel header="WSDL selection">
<h:form id="wsdlSelection">
<h:outputLabel value="URL:" for="wsdlUrlInput"/>
- <h:inputText id="wsdlUrlInput" value="#{clientConversationBean.wsdlUrl}" />
- <a4j:commandButton value="OK" render="epSelection" action="#{clientConversationBean.readWsdl}" />
+ <h:inputText id="wsdlUrlInput" value="#{clientConversationBean.wsdlUrl}" onclick="document.getElementById('wsdlSelection:okButton').disabled=false" />
+ <a4j:commandButton id="okButton" value="OK" render="epSelection" action="#{clientConversationBean.readWsdl}" onclick="this.disabled=true" />
</h:form>
</rich:panel>
<br />
More information about the wise-commits
mailing list