Skip to main content
June 22, 2007
Answered

Creating a Checkbox at runtime?

  • June 22, 2007
  • 1 reply
  • 206 views
So I am going to be making a list of items received from a database, each with a checkbox. Obviously I do not know how many items there will be, so I must create the checkboxes at runtime. I am having a hard time getting anything to show up. Can anyone say what I may be doing incorrectly?

Thanks for any help!
This topic has been closed for replies.
Correct answer Newsgroup_User
Look at the createClassObject() method for the component. You need to
use that to create a new component instance, not new().

1 reply

Newsgroup_UserCorrect answer
Inspiring
June 22, 2007
Look at the createClassObject() method for the component. You need to
use that to create a new component instance, not new().
June 23, 2007
That is exactly what I needed.

Thanks!