p:ajax update outputpanel issue

UI Components for JSF
Post Reply
shiva1248
Posts: 23
Joined: 21 Jun 2011, 20:27

24 Jun 2015, 16:43

Hi,
p:ajax does not display updated values

<p:selectOneMenu id="quickViewOptionsMenu"
value="#{pc_LicenseeDocumentsBean.quickViewOptionSelected}">
<f:selectItems id="quickViewOptions"
value="#{pc_LicenseeDocumentsBean.quickViewOptions}" />
<p:ajax
update=":documentForm:grp2 :documentForm:tableLicenseeDocuments"
event="change" listener="#{pc_LicenseeDocumentsBean.search()}" />
</p:selectOneMenu>

<p:outputPanel id="grp2" autoUpdate="true">
<p:panelGrid columns="5" styleClass="borderlessGrid"
id="daterangepanel"
rendered="#{pc_LicenseeDocumentsBean.quickViewOptionSelected == 'daterange'}">

<h:panelGroup>

<p:calendar maxlength="10" size="10" pattern="dd/MM/yyyy"
value="#{pc_LicenseeDocumentsBean.startDate}"
id="startButtonCal" navigator="true" />

</h:panelGroup>
</p:panelGrid></p:outputPanel>

When user changes option in dropdown I'm updating startdate with new value and dropdown is selected as 'daterange' I do not see the new value on the screen for p:calendar.

If I remove rendered condition and test the same scenario I'm able to see the updated.

http://postimg.org/image/i3czv4bcf/

Image

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests