Project

General

Profile

Actions

Bug #2828

closed

Widget doesn't appear after using setFormWidget

Added by Ariel Kruger about 10 years ago. Updated over 9 years ago.

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...

Actions #1

Updated by Ariel Kruger about 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..

Actions #2

Updated by Koen Deforche about 10 years ago

  • Status changed from New to InProgress
  • Assignee set to Michael Vilsker
Actions #3

Updated by Michael Vilsker about 10 years ago

Hey Ariel,

Try to use groupButtons instated of groupSexo.

Is that the problem?

Actions #4

Updated by Michael Vilsker almost 10 years ago

  • Status changed from InProgress to Resolved
Actions #5

Updated by Koen Deforche over 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF