mirror of
https://github.com/apache/struts.git
synced 2026-08-07 07:37:20 +00:00
Solved WW-3508 - added disable property to sx:submit
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1026662 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -50,6 +50,9 @@
|
||||
<#if parameters.label?if_exists != "">
|
||||
value="${parameters.label?html}"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.disabled?default(false)>
|
||||
disabled="disabled"<#rt/>
|
||||
</#if>
|
||||
/>
|
||||
<#else>
|
||||
<#if parameters.type?exists && parameters.type=="image">
|
||||
@@ -66,6 +69,9 @@
|
||||
<#if parameters.nameValue?if_exists != "">
|
||||
value="${parameters.nameValue?html}"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.disabled?default(false)>
|
||||
disabled="disabled"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.value?if_exists != "">
|
||||
value="${parameters.value?html}"<#rt/>
|
||||
</#if>
|
||||
@@ -96,4 +102,4 @@
|
||||
</#if>
|
||||
<#if parameters.pushId>
|
||||
<script language="JavaScript" type="text/javascript">djConfig.searchIds.push("${parameters.id?html}");</script>
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
@@ -36,6 +36,7 @@ public class SubmitAjaxTest extends AbstractUITagTest {
|
||||
|
||||
tag.setId("a");
|
||||
tag.setHref("b");
|
||||
tag.setDisabled("true");
|
||||
tag.setLoadingText("c");
|
||||
tag.setErrorText("d");
|
||||
tag.setListenTopics("e");
|
||||
@@ -70,6 +71,7 @@ public class SubmitAjaxTest extends AbstractUITagTest {
|
||||
tag.setPageContext(pageContext);
|
||||
|
||||
tag.setId("a");
|
||||
tag.setDisabled("true");
|
||||
tag.setTheme("ajax");
|
||||
tag.setHref("b");
|
||||
tag.setLoadingText("c");
|
||||
@@ -100,6 +102,7 @@ public class SubmitAjaxTest extends AbstractUITagTest {
|
||||
tag.setPageContext(pageContext);
|
||||
|
||||
tag.setId("a");
|
||||
tag.setDisabled("true");
|
||||
tag.setTheme("ajax");
|
||||
tag.setHref("b");
|
||||
tag.setLoadingText("c");
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
dojoType="struts:Bind"
|
||||
events="onclick"
|
||||
value="Submit"
|
||||
disabled="disabled"
|
||||
validate="true"
|
||||
ajaxAfterValidation="true"
|
||||
id="a"
|
||||
|
||||
@@ -17,5 +17,6 @@
|
||||
indicator="l"
|
||||
scriptSeparation="true"
|
||||
value="i"
|
||||
disabled="disabled"
|
||||
/>
|
||||
<script language="JavaScript" type="text/javascript">djConfig.searchIds.push("a");</script>
|
||||
+2
-1
@@ -5,6 +5,7 @@
|
||||
alt="i"
|
||||
src="j"
|
||||
value="Submit"
|
||||
disabled="disabled"
|
||||
validate="true"
|
||||
ajaxAfterValidation="false"
|
||||
id="a"
|
||||
@@ -21,4 +22,4 @@
|
||||
indicator="l"
|
||||
scriptSeparation="true"
|
||||
/>
|
||||
<script language="JavaScript" type="text/javascript">djConfig.searchIds.push("a");</script>
|
||||
<script language="JavaScript" type="text/javascript">djConfig.searchIds.push("a");</script>
|
||||
|
||||
Reference in New Issue
Block a user