Author: alessio.soldano(a)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 />
Show replies by date