Actions
Bug #2828
closedWidget 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...
Updated by Ariel Kruger over 10 years ago
I just realized that now with the second code, if I call the method
view->updateModel(model);
this method doesn't work anymore...what should I do to make this work?
Thanks..
Updated by Koen Deforche over 10 years ago
- Status changed from New to InProgress
- Assignee set to Michael Vilsker
Updated by Michael Vilsker over 10 years ago
Hey Ariel,
Try to use groupButtons instated of groupSexo.
Is that the problem?
Updated by Michael Vilsker over 10 years ago
- Status changed from InProgress to Resolved
Updated by Koen Deforche about 10 years ago
- Status changed from Resolved to Closed
Actions