How can I create toggle buttons in JSF?
How can I create toggle buttons in JSF? Basically, I need two buttons "in" and "out". They essentially call the same managed bean, but as a result of every click the one should be disabled and the other should be enabled and vice versa. How can this be done? Should I use ajax functionality? BalusC Just have a boolean property which you inverse in action method and use exactly that property in the disabled attribute of the both buttons, inversed. Kickoff example: @ManagedBean @ViewScoped public class Bean { private boolean enabled; public void toggle() { enabled = !enabled; } public boolean