• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

[JSF 2.0] re-render a dataTable with Ajax ?

 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I found several posts dealing with my problem :
http://forums.java.net/jive/thread.jspa?messageID=332548
http://forums.java.net/jive/thread.jspa?messageID=373960

None gives answers unfortunately.

My problem is simple : I have a dataTable which contains a list of products, the last column has a link to delete a product.



My delete method in my managed bean looks like this :




It deletes the product. However it does not re-render the dataTable. What am i missing ?
What value should the render attribute be set to in that case ?

Thanks in advance for helping.

 
Ranch Hand
Posts: 101
Spring Flex Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why can't you use ajax4jsf? It is very easy to use these kind of things with that. You can assign an id(say dataTableId) to your datatable and on click of the commandlink call an a4j function and onComplete you can reRender the dataTableId.
 
A berm makes a great wind break. And we all like to break wind once in a while. Like this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic