Project

General

Profile

Actions

Bug #2095

closed

WLineEdit doesn't become red in WBootstrapTheme when validation fails

Added by Alan Finley over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/08/2013
Due date:
% Done:

0%

Estimated time:

Description

A simple exmaple:

Wt::WLineEdit *edit = new Wt::WLineEdit;
Wt::WRegExpValidator *val = new Wt::WRegExpValidator(edit);
val->setRegExp("[0-9]*");
edit->setValidator(val);

In standard theme when WLineEdit has wrong text it gets Wt-invalid css style and becomes red. But if I set WBootstrapTheme for the application, the widget doesn't become red.

Actions #1

Updated by Alan Finley over 10 years ago

I missed that in the example description: "In order to apply validation style if the input is not valid, you should surround the input widget in a div or span section and apply the style control-group to it."

I applied that css style and it worked.

Please, close this issue.

Actions #2

Updated by Wim Dumon over 10 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF