You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Antonio Gallardo <ag...@agssa.net> on 2006/03/07 07:32:36 UTC
Re: Error when adding in Javascript for form validation
Derek Hohls wrote:
>Antonio
>
>I do not understand - I thought Javascript validation was
>pretty much a standard and tested part of CForms for a
>while now... are you saying it *never* worked in 2.1.5?!
>
>
Nope. Sorry for my previous mail. It works in 2.1.5. I though the
problem was 2 javascript statements in the same line.
Question, do you have the javascript validator defined in your cocoon.xconf?
Have you tried to use:
<fd:validation>
<fd:javascript>
return true;
</fd:javascript>
</fd:validation>
To check if this works? Can you post the NPE stack trace?
Best Regards,
Antonio Gallardo.
>
>Thanks
>Derek
>
>
>
>>>>agallardo@agssa.net 2006/02/28 09:17 AM >>>
>>>>
>>>>
>
>Derek Hohls wrote:
>
>
>
>>(Cocoon 2.1.5)
>>
>>I get the dreaded java.lang.NullPointerException when
>>I try and introduce Javascript validation into a form.
>>I strippped all the logic out down to an abolsutely basic:
>>
>> <fd:validation>
>> <fd:javascript>
>> var success = true;
>> return success;
>> </fd:javascript>
>> </fd:validation>
>>
>>but this does not work - commenting out the
>>
>> <fd:javascript>
>> var success = true; return success;
>> </fd:javascript>
>>
>>immediately allows the form to be displayed.
>>
>>This error happens no matter which field of the form
>>the above code block is assigned to.
>>
>>What obvious issue am I overlooking??
>>
>>
>>
>>
>
>Seems to be a bug.
>
>Best Regards,
>
>Antonio Gallardo.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org