To reproduce:

1. Create a Widget with WValidator
2. Set the widget->validator->setMandatory(true) -- This will push new
javascript, which is nice and good
3. Set the widget->validator->setMandatory(false)  -- The javascript will
not be updated this time around .. in the browser, it will still demand a
value

Lines of interest (from latest git):

WValidator.C:75 - return std::string();
WFormWidget.C:234 -  if (!validateJS.empty())

So basically WValidator::javaScriptValidate returns an empty string, which
WFormWidget::validatorChanged() takes to mean "don't bother changing things
on the client side"

Thanks :)
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to