messages"/>
                    <p:ajax event="cancel" listener="#{ratingView.oncancel}" update="messages"/>
                </p:rating>

                <h5>Readonly</h5>
                <p:rating id="ratingReadOnly" value="#{ratingView.rating3}" readonly="true"/>

                <h5>Disabled</h5>
                <p:rating id="ratingDisabled" value="#{ratingView.rating3}" disabled="true"/>

                <h5>Required</h5>
                <div class="flex flex-col gap-2">
                    <p:rating id