Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <apex:repeat... var="inputobj">
- <apex:outputpanel rendered="{!inputobj.type == 'standardinputfield'}"
- <apex:inputField required="{!inputobj.isRequired}" value="{!inputobj.data[f.apiName]}"
- </apex:outputpanel}"
- <apex:outputpanel rendered="{!inputobj.type == 'something'}"
- ...
- </apex:outputpanel}"
- <apex:outputpanel rendered="{!inputobj.type == 'something else'}"
- ...
- </apex:outputpanel}"
- ...
- </apex:repeat>
- <apex:page controller="MyPageController">
- <apex:sectionHeader title="My Section Title" />
- <apex:pageMessages id="pageMessages" />
- <apex:form id="theForm">
- <apex:dynamicComponent id="dynComp" componentValue="{!ControlTree}" />
- </apex:form>
- </apex:page>
- Component.Apex.InputText ctl = new Component.Apex.InputText();
- ctl.label = field.label;
- ctl.expressions.value = buildBindingExpression(field.name);
- private string buildBindingExpression(string fieldName) {
- String expr = '{!ViewBag['' + fieldName + '']' + '}';
- return expr;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement