All,

I am using MachII 1.8.1 on OpenBlueDragon 1.4 and am having trouble with the
RadioGroup tag.

Here is my MachII propety:
<property name="Areas">
<struct>
           <key name="Furniture" value="A1A" />
           <key name="Cleaning" value="A2A" />
           <key name="Supplies" value="A3A" />
           <key name="Keys and Locks" value="A4A" />
           <key name="Furniture Repairs" value="A5A" />
           <key name="Events Planning" value="A6A" />
           <key name="Framing" value="A7A" />
            </struct>
</property>

Here is the code I used and the output I get:

<cfset areas = getProperty("areas") />
<searchForm:radioGroup name="area" items="#areas#">
${output.radio} <label for="${output.id}">${output.label}</label>
</searchForm:radioGroup>

<input type="radio" name="area" value="Furniture"
id="area_Furniture"/><label for="area_Furniture">A1A</label>
<input type="radio" name="area" value="Cleaning"
id="area_Cleaning"/><label for="area_Cleaning">A2A</label>
<input type="radio" name="area" value="Supplies"
id="area_Supplies"/><label for="area_Supplies">A3A</label>
<input type="radio" name="area" value="Keys and Locks"
id="area_Keys_and_Locks"/><label for="area_Keys_and_Locks">A4A</label>
<input type="radio" name="area" value="Furniture Repairs"
id="area_Furniture_Repairs"/><label
for="area_Furniture_Repairs">A5A</label>
<input type="radio" name="area" value="Events Planning"
id="area_Events_Planning"/><label
for="area_Events_Planning">A6A</label>
<input type="radio" name="area" value="Framing"
id="area_Framing"/><label for="area_Framing">A7A</label>


Per the wiki, if a struct is provided the struct key is used as the value
for the radio input, with the struct value being used as the label for the
radio input.  Why would it not be that the struct key is used for the label
and the value used as the value so you end up with this instead:

<input type="radio" name="area" value="A2A" id="area_A2A"/><label
for="area_A2A">Cleaning</label>
<input type="radio" name="area" value="A6A" id="area_A6A"/><label
for="area_A6A">Events Planning</label>
<input type="radio" name="area" value="A7A" id="area_A7A"/><label
for="area_A7A">Framing</label>
<input type="radio" name="area" value="A1A" id="area_A1A"/><label
for="area_A1A">Furniture</label>
<input type="radio" name="area" value="A5A" id="area_A5A"/><label
for="area_A5A">Furniture Repairs</label>
<input type="radio" name="area" value="A4A" id="area_A4A"/><label
for="area_A4A">Keys and Locks</label>
<input type="radio" name="area" value="A3A" id="area_A3A"/><label
for="area_A3A">Supplies</label>


Am I missing something?

-- 
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://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/

Reply via email to