I have a
<apex:pageblocktable> whose columns need to be created dynamically, and I've done this before using an
<apex:repeat> as demonstrated in a different answer.
However, here's the catch: I need to determine the type of form element for each column (
<apex:selectlist>) at run time (after a button is clicked).
I thought I could use Dynamic Components to create the
<apex:pageblocktable> and all of its columns and fields, but this is proving difficult. All examples (1, 2, and 3) I've seen define Dynamic Components using a get property, but I'd like to create the Dynamic Component once a button is clicked (after I get data based on User input). Is there a way to do this?
Does anyone have any other suggestions to accomplish what I'm looking for?