      <h:outputText value="Min/Max:"/>
                <p:rating id="minmax" value="#{rating001.rating3}" stars="8"/>

                <h:outputText value="Required:"/>
                <p:rating id="required" value="#{rating001.rating4}" required="true" requiredMessage="Please rate us!" />
            </h:panelGrid>

            <p:commandButton id="button" value="Submit" update="@form"/>
        </h:form>

    </h:body>
</f:view>

</html>