cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.D. Williams" <jdwilli...@austin.rr.com>
Subject Image in a CForm radio list
Date Sat, 19 May 2007 16:04:08 GMT
I would like to use an image as the label for an item in a CForm
selection list that is styled as radio buttons.

None of the examples in the docs I have seen maps exactly to this. I
have succeeded in getting an image to appear in a form, but not in place
of a label in the radio list.

Ideas?

    <fd:field id="elements">
      <fd:label>Choose one of the following:</fd:label>
      <fd:datatype base="string"/>
      <fd:selection-list>
        <fd:item value="0"></fd:item>
        <fd:item value="1"></fd:item>
        <fd:item value="2"></fd:item>
        <fd:item value="3"></fd:item>
        <fd:item value="4"></fd:item>
      </fd:selection-list>
    </fd:field>

    <ft:form-template action="#{$cocoon/continuation/id}.continue" 
	method="POST">
      <ft:widget-label id="elements"/>
      <ft:widget id="elements">
        <fi:styling list-type="radio"/>
      </ft:widget>
      <input type="submit"/>
    </ft:form-template>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message