mirror of
https://github.com/apache/struts.git
synced 2026-08-05 14:47:09 +00:00
WW-5117 Adds a new attribute to test the new behaviour
This commit is contained in:
@@ -346,7 +346,8 @@ public class TextfieldTest extends AbstractUITagTest {
|
||||
tag.setName("myname");
|
||||
tag.setValue("%{foo}");
|
||||
tag.setSize("10");
|
||||
tag.setDynamicAttribute(null, "anotherAttr", "another_%{foo}");
|
||||
tag.setDynamicAttribute(null, "anotherAttr", "%{foo}");
|
||||
tag.setDynamicAttribute(null, "secondAttr", "second_%{foo}");
|
||||
|
||||
tag.doStartTag();
|
||||
tag.doEndTag();
|
||||
@@ -372,7 +373,8 @@ public class TextfieldTest extends AbstractUITagTest {
|
||||
tag.setName("myname");
|
||||
tag.setValue("%{foo}");
|
||||
tag.setSize("10");
|
||||
tag.setDynamicAttribute(null, "anotherAttr", "another_%{foo}");
|
||||
tag.setDynamicAttribute(null, "anotherAttr", "%{foo}");
|
||||
tag.setDynamicAttribute(null, "secondAttr", "second_%{foo}");
|
||||
|
||||
tag.doStartTag();
|
||||
setComponentTagClearTagState(tag, true); // Ensure component tag state clearing is set true (to match tag).
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<tr>
|
||||
<td class="tdLabel"><label for="myname" class="label">mylabel:</label></td>
|
||||
<td class="tdInput"><input type="text" name="myname" size="10" value="%{1+1}" id="myname" anotherAttr="another_%{1+1}"/></td>
|
||||
<td class="tdInput"><input type="text" name="myname" size="10" value="%{1+1}" id="myname" anotherAttr="%{1+1}" secondAttr="second_%{1+1}"/></td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user