Potential bug:
CommandLinks or CommandButtons that reside inside a dataTable component's column and have an update attribute defined to refresh another component, are causing no refresh at all. Notice below the following update attribute:
Code: Select all
<p:commandLink actionListener="#{myBean.myListener}" update="tabGroup" oncomplete="alert(123)" >
<p:graphicImage style="border-width:0px;vertical-align: bottom;" url="/resources/images/buttons/application_view_detail.png"/>
<f:param name="id" value="#{item.id}" />
</p:commandLink>
Please notice that if the commandLink is outside of the dataTable, everything works. My scenario requires it to be inside the dataTable as these are links that perform some logic and activate state that renders other tabs in the parent tabView. It seems to me that this is a bug.
Here is the complete dataTable code:
Code: Select all
......
<p:dataTable value="#{myController.items}"
var="item"
rows="10"
height="300"
dynamic="true"
styleClass="tableStyle"
paginator="true"
selectionMode="single"
<p:column>
<f:facet name="header" >
<h:outputText value="edit" />
</f:facet>
<p:commandLink actionListener="#{actionBean.itemEditListener}" update="tabGroup">
<p:graphicImage style="border-width:0px;vertical-align: bottom;" url="/resources/images/buttons/application_view_detail.png"/>
<f:param name="id" value="#{item.id}" />
</p:commandLink>
</p:column>
......
......