target property "selectedProperty" is not called every time. I am using
f:setPropertyActionListener inside data table and I see that setPreporty is called not every time. On first select I see in logs that preporty is beint set properly..but after a while it doesn't call setProprty..below is the sample code
<p:column style="width: 10px"
...
<f:setPropertyActionListener
value="#{ma}"
target="#{bean.selectedProperty}" />
</p:commandButton>
</p:column>
<f:setPropertyActionListener > doesnot invoke setpropert eve
Here is the detailed code that I am using
<p:column style="width: 10px" headertext="Route Points" rendered="#{messageAggregator.messageAggregatorId ne null}">
<p:commandButton update= "rpTable" oncomplete="RoutingPointsDialog.show()" image="ui-icon ui-icon-search" title="show Routing Points">
<f:setPropertyActionListener value="#{messageAggregator}"
target="#{messageAggregatorBean.selectedMessageAggregator}" />
</p:commandButton>
</p:column>
.....Below is the code where I am expecting part to be updated. I tried replacing update= "rpTable" with "rpPanel", "displayRoutingPoints". What I see is setProperty is called in some cases and stops working all of a suddent. Every time I click, I see previous output and setProperty is not invoked.
<p:outputPanel id="rpPanel">
<p:dialog styleClass="popUp"
header="Routing Points for Message Aggregator : #{messageAggregatorBean.selectedMessageAggregator.aggregator}"
id="rpDialog" widgetVar="RoutingPointsDialog" width="650" visible="#{not empty facesContext.maximumSeverity and messageAggregatorBean.showDialog}">
<p:message id="routingPMsg" for="routingPMsg"/>
<h:panelGrid id="displayRoutingPoints" width="100%"> <p:dataTable id="rpTable" var="rp" styleClass="mainTable"
value="#messageAggregatorBean.selectedMessageAggregator.messageAggregatorRoutePointList}"
rowEditListener="#{messageAggregatorBean.onRowRPEdit}"
rowStyleClass="#{empty rowIx or rowIx mod 2 ne 0 ? 'even-row' : 'odd-row'}"
onRowEditUpdate="routingPMsg"
rowIndexVar="rowIx">
.....
<p:column style="width: 10px" headertext="Route Points" rendered="#{messageAggregator.messageAggregatorId ne null}">
<p:commandButton update= "rpTable" oncomplete="RoutingPointsDialog.show()" image="ui-icon ui-icon-search" title="show Routing Points">
<f:setPropertyActionListener value="#{messageAggregator}"
target="#{messageAggregatorBean.selectedMessageAggregator}" />
</p:commandButton>
</p:column>
.....Below is the code where I am expecting part to be updated. I tried replacing update= "rpTable" with "rpPanel", "displayRoutingPoints". What I see is setProperty is called in some cases and stops working all of a suddent. Every time I click, I see previous output and setProperty is not invoked.
<p:outputPanel id="rpPanel">
<p:dialog styleClass="popUp"
header="Routing Points for Message Aggregator : #{messageAggregatorBean.selectedMessageAggregator.aggregator}"
id="rpDialog" widgetVar="RoutingPointsDialog" width="650" visible="#{not empty facesContext.maximumSeverity and messageAggregatorBean.showDialog}">
<p:message id="routingPMsg" for="routingPMsg"/>
<h:panelGrid id="displayRoutingPoints" width="100%"> <p:dataTable id="rpTable" var="rp" styleClass="mainTable"
value="#messageAggregatorBean.selectedMessageAggregator.messageAggregatorRoutePointList}"
rowEditListener="#{messageAggregatorBean.onRowRPEdit}"
rowStyleClass="#{empty rowIx or rowIx mod 2 ne 0 ? 'even-row' : 'odd-row'}"
onRowEditUpdate="routingPMsg"
rowIndexVar="rowIx">
.....
Hi,
Have you tried running an example from the showcase such as http://primefaces-rocks.appspot.com/ui/ ... Column.jsf ?
Rainer
Have you tried running an example from the showcase such as http://primefaces-rocks.appspot.com/ui/ ... Column.jsf ?
Rainer
Primefaces 3.0.M3
MyFaces 2.1.3
GAE
MyFaces 2.1.3
GAE
-
- Information
-
Who is online
Users browsing this forum: No registered users and 27 guests