I'm trying to figure out how to invoke, by focusing with Tab key the plus sign on the panel and then pressing Space on keyboard, the toggle()
method. Assuming that I've got more than one panel and can't use the widgetVar
attribute.
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<p:panel
header="panel-1"
id="panel-1"
toggleable="true"
collapsed="true">
</p:panel>
<p:panel
header="panel-2"
id="panel-2"
toggleable="true"
collapsed="true">
</p:panel>
</ui:composition>