cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Oliver <res1c...@verizon.net>
Subject Re: [cforms] Clear validation error on a widget?
Date Wed, 14 Apr 2004 21:27:33 GMT
I just committed a fix to ScriptableWidget to allow you to pass a null 
validation error.

HTH,

Chris

Mark Lundquist wrote:

>
> On Apr 14, 2004, at 12:55 PM, Joerg Heinicke wrote:
>
>> On 14.04.2004 21:48, Mark Lundquist wrote:
>>
>>>> As I wrote before I'm nearly sure it works for me with woody2.js.
>>>
>>> How are you doing it?  You don't have setValidationError(), or so  
>>> what are you doing?
>>
>>
>> Don't confuse me :)
>
>
> It's just that I hate to be alone in my confusion :-)
>
>>  Why not? The samples use it too:  
>> http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/forms/samples/ 
>> forms/form1.xml
>
>
> Ah, I see... it's not in ScriptableWidget in "v1", but you call  
> getWidget() and then you have the whole API.  OK.
>
> Still don't understand why I get the conversion of null to "null",  
> while this way does not... maybe because in v2 you're making a method  
> call on a "wrapped" widget object, while in v2 it's the Java object.
>
> Anyway, I wish there were a way to do this in flow; I don't like the  
> old way of embedding imperative code (<javascript> snippets) in the  
> form definition.   Looking at the source, it seems like it might be  
> pretty easy to introduce on-the-fly JS validators (already have the 
> JS  function object at this point, all we have to do is create the  
> JavaScriptValidator and call the widget's addValidator() method).
>
> ~mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


Mime
View raw message