p:dataTable existing bug

UI Components for JSF
Post Reply
mark
Posts: 1
Joined: 22 Oct 2010, 04:11

22 Oct 2010, 04:25

I am using 2 primefaces datatable to show the data. It try to update the second datatable when clicking the link on the first datatable. Basically, I have to refresh the browser manually in order to show the latest data. I change to h:dataTable, It worked like a charm.
The following is my source code. I hope the primefaces team can look into this bug. Thanks

<h:form id="viewGruopForm">
<p:layout style="width:950px;height:600px;">
<p:layoutUnit id="groupOwnLayout" position="left" width="480" resizable="true" minWidth="200" maxWidth="500">
<h:inputHidden value="#{PrivGroupBean.privGroupNameListViewInit}" />

<p:dataTable var="unitGroup" value="#{PrivGroupBean.privGroupNameList}" scrollable="true"
selection="#{PrivGroupBean.selectedGroups}" style="width:450px" height="200">

<p:column selectionMode="multiple" />

<p:column headerText="Group you own">
<h:outputText value="#{unitGroup.privGroupName}"/>
</p:column>

<p:column>
<p:commandLink actionListener="#{PrivGroupBean.loadPrivGroup}" value="Browser" update="privGroupDataTable">
<f:attribute name="vPrivGroupSeq" value="#{unitGroup.privGroupSeq}" />
<f:attribute name="vOwnerId" value="#{unitGroup.ownerId}" />
</p:commandLink>
</p:column>
</p:dataTable>

</p:layoutUnit>

<p:layoutUnit position="center">

<p:dataTable id="privGroupDataTable" var="unitUser" value="#{PrivGroupBean.privGroupUserList}" scrollable="true"
selection="#{PrivGroupBean.selectedUsers}" style="width:200px">

<p:column selectionMode="multiple" />

<p:column headerText="#{PrivGroupBean.privGroupName}">
<h:outputText value="#{unitUser.userName}"/>
</p:column>

</p:dataTable>
</p:layoutUnit>

</p:layout>
</h:form>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 22 guests