• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Trouble updating primefaces component w/ajax

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello! I'm basically building a file manager and using a PrimeFaces dataTable to output a list of the users' directories/files. I'm trying to allow a user to create a new folder using a modal window, and would like it to append the new row to the dataTable upon a successful request. So far, everything is working server-side, but I can't seem to append the changes to the dataTable without a refresh. I feel like I'm missing something simple and was hoping that one of you all might be able to point out my mistake.

Here is the xHTML...



and finally the backing bean method that is called....

 
Jim Rocard
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Figured it out... I'm not updating the list used to populate my dataTable after insert, therefore it's not being sent in the response. Pretty easy fix for anyone that falls into the same trap.
 
A tiny monkey bit me and I got tiny ads:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic