You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Roberto <rm...@montefiore.ch> on 2004/11/08 16:21:55 UTC

again over CForms

Hi all,
got some problems formatting the layout with tabbed panes. I can't display the layout as the example forms under blocks.

I can't display anything, if I change the forms-page-styling.xsl with the forms-field-styling.xsl I can just see the field but still not tabbed panes..

Here snippet of my file...

sitemap:

    <map:match pattern="*-display">
      <map:generate src="cforms/presentation/frm{1}.xml"/>
      <map:transform type="forms"/>
        <map:transform src="style/xsl/cforms/forms-page-styling.xsl"/>
      <map:serialize/>
    </map:match>

the file definition:

  <fd:field id="state">
    <fd:datatype base="string"/>
  </fd:field>

    <fd:field id="cmbPref" required="true">
      <fd:label>Prefisso:</fd:label>
      <fd:datatype base="string" />
      <fd:selection-list>
        <fd:item value="Avvocato"/>
        <fd:item value="Dottore"/>
        <fd:item value="Ingegnere"/>
        <fd:item value="Egregio Sig."/>
        <fd:item value="Gentile Sig.ra"/>
        <fd:item value="Spett. Ditta"/>
        <fd:item value="Spett. Studio"/>
      </fd:selection-list>
    </fd:field>

the file template:

  <ft:form-template action="#{$continuation/id}.continue" method="POST">
    <fi:group>
      <fi:styling type="tabs"/>
        <fi:state>
          <ft:widget id="state"/>
        </fi:state>
        <fi:items>

        <fi:group>
        <fi:items>
          <ft:widget-label id="cmbPref" />
    <ft:widget id="cmbPref">
      <fi:styling class="cmb"/>
    </ft:widget>
  </fi:items>
        </fi:group>

     </fi:items>
    </fi:group>
  </ft:form-template>

Any suggestion? 
Thanx in advance
Roberto