ng1}">
                    <p:ajax event="rate" listener="#{rating001.onrate}" update="form:msgs"/>
                    <p:ajax event="cancel" listener="#{rating001.oncancel}" update="form:msgs"/>
                </p:rating>

                <h:outputText value="Readonly:"/>
                <p:rating id="readonly" value="#{rating001.rating2}" readonly="true"/>

                <h:outputText value="Disabled:"/>
                <p:rating id="disabled" value="#{rating001.rating2}" disabled="true"/>

          