cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Chávez <ccha...@agsoftware.dnsalias.com>
Subject Re: woody-forms and templates - bug or feature?
Date Wed, 18 Feb 2004 00:36:54 GMT

Stefan Burkard Escribio :-)
> hi cocoon-users
>
> i was very glad to read in the woody-wiki that xml-based
> form-definitions and templates that "call" the form-widgets are
> separated, so that many templates can use one single form-definition.
> but now, i ran into a problem and i don't know if it's a bug or a
> feature :-)
>
> i have a contact-form on my website, but to provide the visitor just the
> form-fields he need, i let him first choose what subject his contact is
> about. if he wanna report me any problems with the page, he gets other
> form-fields than when he wanna send me a link for my link-list.
>
> so, i wrote a single contact-form-definition with all possible widgets.
> these include
> - name
> - e-mail
> - message
> - link
> - description
> and others
>
> while "name" and "e-mail" are widgets that every form-template uses,
> some of the widgets are only used by one single form-template. for
> example just the the form to send me new links shows the link-field.
>
> and now the problem: because it makes no sense, when the form to send
> new links can be submited without a link, i set the link-widget
> required="true". BUT, if any other template don't display the link-field
> at all, it can never be submited because the link-field is not true
> (what a wonder when it's not in the form at all :-)).
>
> is this a bug or a feature? do i really need to write a form-definition
> for every "type" of my contact-form?
>
> for the moment it's no problem to set all required-attributes of the
> widgets to "false", but it's not a smart solution at all...
>
> thanks for your input and greetings
> stefan

  Hi stefan.

  See http://wiki.cocoondev.org/Wiki.jsp?page=TimLarson

  I think the "union" help you.

  Cheers,

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


-- 
Carlos Chávez

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


Mime
View raw message