jsf - p:ajax update of ID that doesn't exists -


i'm using primefaces , have line:

<p:ajax update="toupdate"> 

the problem is, id not exists on page. ( page dynamic , contains part have specific id , not) when exists, works great, when id doesn't exist, component crash - (probably it's validation issue)

how can fix it?

is known issue?

thanks!

you need provide rendered component update, example:

<p:ajax update="toupdate">  <h:panelgroup id="toupdate">      <p:datatable id="tableid" rendered="#{bean.somecondition>"...  </h:panelgroup> 

so, if have component can o or not visible, not use update, because can out of components tree. instead, use component (container) sure rendered , present in components tree.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -