Ok, it looks like you have to use the FormHelper.Select overload that
takes the "selectedValue" parameter (the second parameter):
${FormHelper.Select("Regions", null, Regions, {
@value : @ID,
@text : @Description,
@firstoption : @All,
@firstoptionvalue : @All})}
Not sure why it's doing this (maybe a bug in brail -- not picking the
correct overloaded method?). In the code above, since I'm forcing a
first option, the "selectedValue" doesn't need to match the
firstoptionvalue.
On Tue, Dec 16, 2008 at 1:57 PM, M Kenyon II <[email protected]> wrote:
>
> As I test, I put these two controls on the page:
> ${FormHelper.Select("Regions", Regions, {"value":"ID",
> "text":"Description", "firstoption":"All", "firstoptionvalue":"All"})}
> <br />
> ${FormHelper.Select("Regions", Regions, {...@value:@ID,
> @text:@Description, @firstoption:@All, @firstoptionvalue:@All})}<br />
>
> They default to the last option in the list.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---