Hi Guys,
It looks like the form:select tag does not select the value defined in
the binding. Not sure if I'm missing something here. Here is my code:
<cfset variables.formatPreferenceOptions = {html="HTML", text="Text"} /
>
<form:form actionEvent="" bind="users">
<form:select path="formatPreference"
items="#variables.formatPreferenceOptions#">
<form:option value="" label="Select Format Preference" />
</form:select>
</form:form>
I see that the selected attribute is set on option.cfm in line 76.
<cfif ListFindNoCase(attributes.checkValue, attributes.value)>
<cfset setAttribute("selected", "selected") />
<cfelse>
<cfset setAttributeIfDefinedAndTrue("selected", "selected") />
</cfif>
But, when I tried to output the value of attribute.value before that
line and I get "${output.value}", which I'm guessing gets replaced
some other place with the proper value.
As always, thanks in advance for the help!
Sumit
--
You received this message because you are subscribed to Mach-II for CFML list.
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/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets:
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/