You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Jonathon -- Improov <jo...@improov.com> on 2007/06/06 04:35:27 UTC

questions about widget forms and conditionals

Is it advisable to add "<condition>" blocks in widget forms? It gets really tiring when using 
"use-when".

Or should I simply dump widget forms and move to Freemarker?

Or is it too messy to riddle a form with conditionals, and is it better to simply create 2 
separate forms, one for "create" and one for "update"?

Jonathon

Re: questions about widget forms and conditionals

Posted by Daniel Martínez <da...@paradisosistemas.es>.
Hi Jonathon,

I have used conditional forms in order to reuse them for create/update
and I am happy with the results in terms of maintenance. I think the
messy part is always with the <use-when> parts. If your update/create
forms are very similar I would advice to use one conditional form. If
they are very different use two forms.

Freemarker templates are more difficult to maintain in the long run.

--
Daniel

Jonathon -- Improov escribió:
> Is it advisable to add "<condition>" blocks in widget forms? It gets
> really tiring when using "use-when".
>
> Or should I simply dump widget forms and move to Freemarker?
>
> Or is it too messy to riddle a form with conditionals, and is it
> better to simply create 2 separate forms, one for "create" and one for
> "update"?
>
> Jonathon