Relative Content

Tag Archive for javaspringjsf

How to add a custom composite component dynamically in JSF?

I’m trying to add two components dynamically to the page: “selectOneTreeList.xhtml” and “selectManyTreeList.xhtml”. When I add them directly in the XHTML, they work correctly. However, when added dynamically, with “selectOneTreeList”, nodes can be selected, but if anything is entered in the search field, all nodes disappear. With “selectManyTreeList”, the search field issue remains, and it’s also not possible to select any elements.