Today I found out an interesting thing with tag in JSF. I got this point from a BalusC's comment:
<h:form>
<h:outputText value="#{bean.text1}" styleClass="myClass" />
<p:commandButton value="Update" update="@(.myClass)" />
</h:form>
But the following example will work (note that assigning the form an ID is not necessary):
<h:form>
<h:outputText id="myText" value="#{bean.text1}" styleClass="myClass" />
<p:commandButton value="Update" update="@(.myClass)" />
</h:form>
It seems Primefaces will not generate an ID for plain HTML tag. I tried with several components, but still not sure. So, Is my conclusion correct? If so, why is this behaviour?