- 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/branches/STRUTS_2_0_X@515872 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
René Gielen
2007-03-08 01:07:38 +00:00
parent 0a6c72e0c7
commit 1be016ae02
3 changed files with 4 additions and 3 deletions
@@ -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>