You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by StoicxPhilia Nguyen <st...@yahoo.com> on 2002/09/05 21:24:44 UTC

is it a known bug with DynaForm and validation ???

I am getting NullPointer Exception in JavaScriptValidatorTag.doStartTag(297) while trying to use client side validation with DynaValidatorForm, which seems like a bug.

(297: String javascript = va.getJavascript(); //nullpointer)

the error is encountered when it tries to load the fields from this form:

<html:javascript formName="accountForm" />.. In which accountForm is a DynaForm whose type is DynaValidatorForm.

It works fine with server side validation though.  Just wonder if anybody has the same problem.

Thanks.

vn.



---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

Re: is it a known bug with DynaForm and validation ???

Posted by Struts Rodolphe <st...@yahoo.com>.
I'd interested to know what you found 'cause I was planning to do the same. 
Did anybody get this client side validation working with DynaForm? 
- 
 StoicxPhilia Nguyen wrote: 
I am getting NullPointer Exception in JavaScriptValidatorTag.doStartTag(297) while trying to use client side validation with DynaValidatorForm, which seems like a bug.

(297: String javascript = va.getJavascript(); //nullpointer)

the error is encountered when it tries to load the fields from this form:

.. In which accountForm is a DynaForm whose type is DynaValidatorForm.

It works fine with server side validation though. Just wonder if anybody has the same problem.

Thanks.

vn.



---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes


---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

Re: is it a known bug with DynaForm and validation ???

Posted by StoicxPhilia Nguyen <st...@yahoo.com>.
I see what happened! If the  value "depend" atttibue of the form's field in validation.xml  does not match or exist  the  value of validator's name attribute in validator-rules.xml, then the ValidationAction is null.
It's the user error in this case, but it should have been handled or caught though.
vn
 StoicxPhilia Nguyen wrote:
I am getting NullPointer Exception in JavaScriptValidatorTag.doStartTag(297) while trying to use client side validation with DynaValidatorForm, which seems like a bug.

(297: String javascript = va.getJavascript(); //nullpointer)

the error is encountered when it tries to load the fields from this form:

.. In which accountForm is a DynaForm whose type is DynaValidatorForm.

It works fine with server side validation though. Just wonder if anybody has the same problem.

Thanks.

vn.



---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes


---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes