Sumit, thanks for testing and finding this issue. It shows that the
Mach-II community is integral in making new releases of Mach-II a
success. If you could do me a favor, could you please surf over to
trac.mach-ii.com and file a ticket with this issue so it doesn't get
lost in the shuffle? I'd appreciate it and we'll get this fixed in the
main trunk and nightlies soon. As an aside, Team Mach-II use Trac for
all action items -- even small fixes like this -- as it bring
documentation / history and transparency to the project.
Best,
.Peter
Sumit Verma said the following on 10/01/10 22:15:
Found the issue! Here is the issue:
<option value="html" id="formatPreference_html
selected="selected">HTML</option>
You will see a missing " in the id. It was working in chrome and it
caches the code view also so I couldn't see the issue. I works in FF,
but I was could see the source to find the issue :)
And this is the culprit, line 114 in options.cfm:
<cfset variables.option = ReplaceNoCase(variables.option, '">', '
selected="selected">', "one") />
Changed it to:
<cfset variables.option = ReplaceNoCase(variables.option, '">', '"
selected="selected">', "one") />
and everything is hunky-dory now...
On Sun, Jan 10, 2010 at 10:22 PM, Sumit Verma <[email protected]
<mailto:[email protected]>> wrote:
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]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:[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/
--
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/