mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-1747:
- updated test to show number formatting issue pointed out by Mike Baroukh - fixed issue by preventing freemarker from formatting numbers for this template git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@515871 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
<#setting number_format="#">
|
||||
<select<#rt/>
|
||||
name="${parameters.name?default("")?html}"<#rt/>
|
||||
<#if parameters.get("size")?exists>
|
||||
|
||||
@@ -275,13 +275,13 @@ public class SelectTest extends AbstractUITagTest {
|
||||
Collection collection = new ArrayList(2);
|
||||
|
||||
collection.add(1l);
|
||||
collection.add(3l);
|
||||
collection.add(300000000l);
|
||||
testAction.setCollection(collection);
|
||||
|
||||
List selectList = new ArrayList();
|
||||
selectList.add(new LongObject(1l, "foo"));
|
||||
selectList.add(new LongObject(2l, "bar"));
|
||||
selectList.add(new LongObject(3l, "foobar"));
|
||||
selectList.add(new LongObject(300000000l, "foobar"));
|
||||
testAction.setList2(selectList);
|
||||
|
||||
SelectTag tag = new SelectTag();
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
<td><select name="collection" id="collection" multiple="multiple" onmousedown="alert('onmousedown');" onmouseup="alert('onmouseup');" onmouseover="alert('onmouseover');" onmousemove="alert('onmousemove');" onmouseout="alert('onmouseout');">
|
||||
<option value="1" selected="selected">foo</option>
|
||||
<option value="2">bar</option>
|
||||
<option value="3" selected="selected">foobar</option>
|
||||
<option value="300000000" selected="selected">foobar</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user