Project

General

Profile

Actions

Improvements #14234

open

Add validate(type) to Typed Validators

Added by Christian Meyer 17 days ago. Updated 17 days ago.

Status:
New
Priority:
Normal
Target version:
-
Start date:
01/04/2026
Due date:
% Done:

90%

Estimated time:

Description

Currently, All Typed Validators only accept WString

It would be fantastic to have an overload of validate() that takes the Type of the Validator...

This would help to run a Serverside Validation on a Programatic Level as well.
Keeping the interface Consistent if the chance to use it presents itself.

I am building a widget that does not have text input, but outputs a number. (Star Rating Widget)

I added a patch that Implements validate() for each Typed Validator:

  • WDateValidator
  • WDoubleValidator
  • WIntValidator
  • WTimeValidator

using the internal algorithm after parsing. Then using that new function instead of copying code


Files

wt_TypedValidator.patch (8.59 KB) wt_TypedValidator.patch Christian Meyer, 01/04/2026 07:23 PM
wt_TypedValidator.patch (8.35 KB) wt_TypedValidator.patch v1 with LF Format Christian Meyer, 01/04/2026 09:24 PM
Actions #1

Updated by Christian Meyer 17 days ago

Would have liked to Change this into review ... but forgot I have no access...

Actions #2

Updated by Christian Meyer 17 days ago

every time the same trouble with the line endings ...
need a better process in this regard =D

Actions

Also available in: Atom PDF