Re: [Cppcms-users] Setting field value after form.load() still fails validation
Brought to you by:
artyom-beilis
From: <ele...@ex...> - 2012-06-14 13:59:19
|
> I've looked through the form.h header into widgets::numeric::load > > and found this: > > ss.imbue(context.locale()); > ss>>value_; > if(ss.fail() || !ss.eof()) > valid(false); > else > set(true); > Sorry for the repeat emails, I pressed space key several times without realizing that the focus was set on the "send" button and ive been working for 14 hours today. Question is, is it proper to set a validation flag without to running form::validate()? What I have is a numeric<int> widget which can either take an int or a date. Ive overloaded form::load to calculate days from a given date. Petr |