how to add a component to the page from a managed bean in jsf / primefaces [duplicate]
问题 This question already has answers here : How to dynamically add JSF components (3 answers) Closed 3 years ago . A click on a commandButton should trigger an action in a ManagedBean: to add a new "outputText" component to the current page. The overall idea is to have the page changed dynamically with user action, with server side action because new elements added to the page need data from a db to be laid out. -> How do I add a component to the page from a managed bean in jsf / primefaces? Let