Hi,
I'm trying to realize a list of option where one can be selected (one of
many).
i tried this:

=============================== formDefinition
====================================

<?xml version="1.0" encoding="ISO-8859-1"?>
<fd:form xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";>
        <fd:widgets>
                <fd:aggregatefield 
xmlns:fn="http://www.w3.org/2005/02/xpath-functions";
id="editingchoice">
                        <fd:widgets>
                                <fd:booleanfield id="product">
                                        <fd:label>product</fd:label>
                                </fd:booleanfield>
                                <fd:booleanfield id="component">
                                        <fd:label>component</fd:label>
                                </fd:booleanfield>
                                <fd:booleanfield id="track">
                                        <fd:label>track</fd:label>
                                </fd:booleanfield>
                        </fd:widgets>
                </fd:aggregatefield>
        </fd:widgets>
</fd:form>

=============================== formTemplate
====================================
<page xmlns:fn="http://www.w3.org/2005/02/xpath-functions"; 
        xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"; 
        xmlns:fi="http://apache.org/cocoon/forms/1.0#instance"; 
        xmlns:ft="http://apache.org/cocoon/forms/1.0#template";>
 
        <jx:import
uri="servlet:forms:/resource/internal/generation/jx-macros.xml"/>
        <content onselectstart="return false">
                <ft:form-template method="POST"
action="#{$cocoon/continuation/id}.continue" ajax-action="continue-form">
                        <ft:widget id="product">
                                <fi:styling list-type="radio"/>
                        </ft:widget>
                        <ft:widget-label id="product"/>
                        <br/>
                        <ft:widget id="component">
                                <fi:styling list-type="radio"/>
                        </ft:widget>
                        <ft:widget-label id="component"/>
                        <br/>
                        <ft:widget id="track">
                                <fi:styling list-type="radio"/>
                        </ft:widget>
                        <ft:widget-label id="track"/>
                        <br/>
                </ft:form-template>
        </content>
</page>

=================================================================

But there is first no one of many, every entry can be selected, and there
are no radio buttons to, there are checkboxes??
What's wrong?

regards
-- 
View this message in context: 
http://www.nabble.com/One-Of-Many-selection-list-with-radio-buttons-tp19088871p19088871.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to