PrimeFaces dataTable not updating after Ajax request?

Up vote 0 down vote favorite share g+ share fb share tw.

I'm currently working with a PrimeFaces dataTable and am trying endlessly to append a new to the dataTable immediately after the user adds it. Server-side, everything is working -- data is saved to both the database and hard disk. I'd like to see a partial-page update following the successful request, and I just can't seem to get it to work.

Here is my XHTML code: File Name File Size And finally, here is my backing bean. Public String createNew(){ newDir. SetDateCreated(new Date()); newDir.

SetDateModified(new Date()); newDir. SetId(BigDecimal. ZERO); newDir.

SetLocation(ROOT_DIRECTORY + currentUser.getUsername() + "/"); newDir. SetFilesCollection(f); newDir. SetDescription(""); newDir.

SetOwner(currentUser); current = newDir; create(); persistDirectoryFromObject(newDir); newDir = new Directory(); RequestContext. GetCurrentInstance(). AddPartialUpdateTarget("dGrid"); return null; } jsf primefaces link|improve this question asked Aug 10 '11 at 15:37john m.776 67% accept rate.

If you are using 3.0. M4 you could do: ... ... File Name File Size or you could simply.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions