jsf - primefaces panelgrid update from datatable -


i getting "cannot find component identifier "contentform:tabview:form:addressdialogpanel" referenced "contentform:tabview:form:addressbooktable" " error. how can update panelgrid inside widget?

<h:form id="form">  <p:datatable id="addressbooktable">  <p:ajax event="rowselect" listener="#{addressbookcontroller.onrowselect}"                    update="contentform:tabview:form:addressdialogpanel" oncomplete="addressdialog.show()" /> </p:datatable>  <p:dialog id="addressdialogid" widgetvar="addressdialog">   <h:panelgrid id="addressdialogpanel" columns="2" cellpadding="4">   </h:panelgrid> </p:dialog>  </h:form> 

the main problem giving wrong client id of component's. p:tabview component not form. when define h:form, generates standart html form element. , when submit page jsf uses post submit data backing bean. nesting them going occur lot's of issues don't expect. should seperate forms sections sideform or searchform or etc.

you should detect correct client id of component when try update it. can browser's developer settings(press f12 chrome). select component magnifier button , give id update property. here:

enter image description here

you should read learn basics of jsf example here


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -