You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Joerg Heinicke <jo...@gmx.de> on 2004/04/01 00:13:05 UTC
Re: DO NOT REPLY [Bug 27785] - [PATCH] Form redisplays with
validation errors after submit from
On 25.03.2004 04:02, bugzilla@apache.org wrote:
>>It was added so that the value of a field could be validated before being used
>>to select a case for a "union" widget.
>
>
> Unfortunately I have not worked with those new/class/struct/union widgets, so I
> do not really understand what it is for.
>
>
>>We should change it to only validate the
>>field widgets that are actually put to this use (selecting a case for a
>>"union" widget)
>
>
> But this is not determinable at the moment, is it?
>
>
>>Whether we should hide the messages in that case like the proposed patch
>>does, I do not know.
>
>
> If the validation is needed or at least good for further processing, what should
> be the sense of not showing an error?
>
>
>>When "union" get replaced by the redesigned "choice"
>>widget we will still have this issue, but it will get triggered by the "expr"
>>attributes' expressions referencing the values in various widgets.
>
>
> Ok, just a proposal, don't know if you can live with it: If there is a
> refactoring still to be done and the validation is only "good" not necessary,
> what about removing this stuff (at least additional getValue()) for now. This
> will make all other fields behave normally again while it seems not to break the
> new widgets (which are furthermore not that common in use I guess).
>
> WDYT?
Tim? Any response?
Joerg
Re: DO NOT REPLY [Bug 27785] - [PATCH] Form redisplays with validation errors after submit from
Posted by Tim Larson <ti...@keow.org>.
On Thu, Apr 01, 2004 at 12:13:05AM +0200, Joerg Heinicke wrote:
> On 25.03.2004 04:02, bugzilla@apache.org wrote:
>
> >>It was added so that the value of a field could be validated before being
> >>used
> >>to select a case for a "union" widget.
<snip/>
> >Ok, just a proposal, don't know if you can live with it: If there is a
> >refactoring still to be done and the validation is only "good" not
> >necessary,
> >what about removing this stuff (at least additional getValue()) for now.
> >This
> >will make all other fields behave normally again while it seems not to
> >break the
> >new widgets (which are furthermore not that common in use I guess).
> >
> >WDYT?
>
> Tim? Any response?
Sorry for the delay. I will work on a solution tomorrow (Thursday), and
get back to you with the results for you to check.
--Tim Larson