How do I create HtmlSelectManyListbox, HtmlSelectOneRadio, HtmlSelectOneMenu dynamically with clay?
In the rolodex example I found a function with the name "createInputElementMetadata" which teaches me how to create links. // create a command link attribute ElementBean link = new ElementBean(); link.setRenderId(generateId()); link.setJsfid("commandLink"); link.setComponentType("javax.faces.HtmlCommandLink"); I tried this: ElementBean inputElement = new ElementBean(); inputElement.setComponentType("javax.faces.HtmlSelectOneMenu"); inputElement.setJsfid("securitycheck"); inputElement.setId("securitycheck"); root.addChild(inputElement); This is the output <select id="systemform:securitycheck" name="systemform:securitycheck" size="1"></select> Well I am missing the <option>-Tags .. any idea how to add the option attributes dynamically is appreciated as well as any documentation about the subject :-) Best Regards Mike