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 PROTECTED]> wrote:
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 <s:select/> tag to: > > <s:select name="adminGroupMapData.adminRid" > headerKey="" headerValue="------" > list="adminList" listKey="adminRid" > listValue="adminRid" > value="%{adminGroupMapData.adminRid.toString()}" /> > > And it works now. > Is this a bug of struts 2.0.6??? > > On 7/25/07, Vincent Lin <[EMAIL PROTECTED]> wrote: The 'value' property/parameter: > value="%{adminGroupMapData.adminRid.toString()}" /> is what sets what is selected, or what gets 'jumped' to. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]