cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Omar Adobati" <omar.adob...@gmail.com>
Subject Re: CForm Definition and CForm Template issue
Date Tue, 29 Aug 2006 14:50:43 GMT
Do I need a <fd:widgets> for each <fd:field> or I could have just one
<fd:widgets> for each <fd:group> tag?

thanks again a lot,
  Omar

On 8/29/06, Jason Johnston <cocoon@lojjic.net> wrote:
> Omar Adobati wrote:
> > Jason,
> >
> > I tried your solution but it won't work... here is my form definition
> > snippet, there's any mistake?
> >
> >    <fd:group id="name">
> >      <fd:field id="firstname" required="true">
> >        <fd:label>Nome</fd:label>
> >        <fd:help>First name of the sender of the message</fd:help>
> >        <fd:datatype base="string"/>
> >        <fd:validation>
> >          <fd:length min="2"/>
> >        </fd:validation>
> >      </fd:field>
> >
> >      <fd:field id="lastname" required="true">
> >        <fd:label>Cognome</fd:label>
> >        <fd:help>Last name of the sender of the message</fd:help>
> >        <fd:datatype base="string"/>
> >        <fd:validation>
> >          <fd:length min="2"/>
> >        </fd:validation>
> >      </fd:field>
> >    </fd:group>
> >
>
> Ah, didn't notice before... but you have to wrap the fd:field's within
> an fd:widgets element, they cannot be direct children of fd:group.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


-- 
Dr. Omar Adobati
omar.adobati@gmail.com

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


Mime
View raw message