<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="jakarta.faces.html"
      xmlns:f="jakarta.faces.core"
      xmlns:p="primefaces">

<f:view contentType="text/html;charset=UTF-8" encoding="UTF-8">
    <h:head>

    </h:head>

    <h:body>

        <h:form id="form">
            <p:sidebar id="sidebar1" widgetVar="sidebar1">
                sidebar1 content
            </p:sidebar>
            <p:button id="button1" onclick="PF('sidebar1').show(); return false" value="Show sidebar1" 