This post shows how to change the default icon for Primefaces tree.
From the Primefaces demo, we can see that there are attributes for us to change the opened and closed icon - expandedIcon, collapsedIcon, and also icon.
These attributes are not referring to image files. Instead, there are css classes.
Thus, we have to define css classes to overwrite the existing.
From the Primefaces demo, we can see that there are attributes for us to change the opened and closed icon - expandedIcon, collapsedIcon, and also icon.
These attributes are not referring to image files. Instead, there are css classes.
Thus, we have to define css classes to overwrite the existing.