I know I don't need to mention this, but code needs to get changed in line
102, 114, 128, 140 & 167.


On Sun, Jan 10, 2010 at 11:15 PM, Sumit Verma <[email protected]> wrote:

> 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]> 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]
>> 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/
>>
>
>
-- 
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/

Reply via email to