Re: [S2] Preselected option in tag

2007-07-25 Thread Vincent Lin
I just checked jira and found this: https://issues.apache.org/struts/browse/WW-1711 It's a bug and has been fixed in 2.0.7. I migrated my struts library to 2.0.9 and the problem was gone. Thanks. On 7/26/07, Vincent Lin <[EMAIL PROTECTED]> wrote: The generated html content of is:

Re: [S2] Preselected option in tag

2007-07-25 Thread Vincent Lin
The generated html content of is: -- 741501 741406 741405 741404 741403 741402 741200 741156 741155 741154 741153 741152 741151 1050 50 There is no comma in the numeric value. On 7/26/07, Laurie Harper <[EMAIL PROTECTED]> wrote: My bet is

Re: [S2] Preselected option in tag

2007-07-25 Thread Laurie Harper
My bet is that it's a bug. If the limit is at 1000, I'm guessing the problem is that the value is being rendered as 1,000 (i.e. with a comma separator), and that's what causes the problem. You can verify this by viewing the HTML source of the rendered page. If that is indeed the case, a JIRA is

Re: [S2] Preselected option in tag

2007-07-25 Thread Vincent Lin
But I already specified name="adminGroupMapData.adminRid" in the tag. Shouldn't the preselected option be the value of "adminGroupMapData.adminRid "? If the preselected option won't be the value of the attribute 'name', why does it work when the value is less than 1000? On 7/26/07, yitzle <[EMAIL

Re: [S2] Preselected option in tag

2007-07-25 Thread yitzle
On 7/25/07, Vincent Lin <[EMAIL PROTECTED]> wrote: I found some people are discussing this problem. When the data type of the attribute is Integer, the value can't be too large. We can use toString() to make pre-selecting work. So I changed my tag to: And it works now. Is this a bug o

Re: [S2] Preselected option in tag

2007-07-25 Thread Vincent Lin
I found some people are discussing this problem. When the data type of the attribute is Integer, the value can't be too large. We can use toString() to make pre-selecting work. So I changed my tag to: And it works now. Is this a bug of struts 2.0.6??? On 7/25/07, Vincent Lin <[EMAIL PR

[S2] Preselected option in tag

2007-07-25 Thread Vincent Lin
Hi! I am using struts 2.0.6 and I encountered a problem in tag today. In my JSP: In my Action, I have a method: public List getAdminGroupList() { return this.adminGroupList; } The data bean of the list has a get method: public Integer getAdminGroupRid() { return this.a