ajax - Primefaces inside dynamic jsf fragment not working -


i have dynamically rendered jsf fragment has date element on selection supposed perform logic in request scoped bean never fires.

when take element out of fragment works fine.

<p:calendar id="dob_calendar"     value="#{registrationdetailshandler.dateofbirth}"     showbuttonpanel="true" navigator="true" yearrange="c-80:c+1"     required="true"      requiredmessage="date of birth required"     immediate="true">     <p:ajax event="dateselect" update="kid_panel"         listener="#{registrationdetailshandler.calculateage()}"         process="@this,firstname" /> </p:calendar> 

try use class name instead of id, , use jquery selector

eg

<h:panelgroup styleclass="kid_panel"> 

and in dynamic block

update="@(.kid_panel)" or process="@(.kid_panel)"


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -