Actions
Bug #2828
closed
AK
MV
Widget doesn't appear after using setFormWidget
Bug #2828:
Widget doesn't appear after using setFormWidget
Status:
Closed
Priority:
Normal
Assignee:
Michael Vilsker
Target version:
-
Start date:
03/18/2014
Due date:
% Done:
0%
Estimated time:
Description
Hello guys,
I think is a bug, I have this code
Wt::WButtonGroup *groupButtons = new Wt::WButtonGroup();
Wt::WRadioButton *b1 = new Wt::WRadioButton(Wt::WString::fromUTF8("Button1"));
groupSexo->addButton(b1);
setFormWidget(PessoaFormModel::SEXO, b1);
with my code like this the WRadioButton is not showed.
The work around to make it work was inverting two lines of the code as follow
Wt::WButtonGroup *groupButtons = new Wt::WButtonGroup();
Wt::WRadioButton *b1 = new Wt::WRadioButton(Wt::WString::fromUTF8("Button1"));
setFormWidget(PessoaFormModel::SEXO, b1);
groupSexo->addButton(b1);
Is it supposed to be like this or it is a bug??
Thanks...
AK Updated by Ariel Kruger over 12 years ago
KD Updated by Koen Deforche over 12 years ago
- Status changed from New to InProgress
- Assignee set to Michael Vilsker
MV Updated by Michael Vilsker over 12 years ago
Hey Ariel,
Try to use groupButtons instated of groupSexo.
Is that the problem?
MV Updated by Michael Vilsker over 12 years ago
- Status changed from InProgress to Resolved
KD Updated by Koen Deforche almost 12 years ago
- Status changed from Resolved to Closed
Actions