This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes [JSF 2.0] re-render a dataTable with Ajax ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "[JSF 2.0] re-render a dataTable with Ajax ?" Watch "[JSF 2.0] re-render a dataTable with Ajax ?" New topic
Author

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

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

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.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

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.
 
 
subject: [JSF 2.0] re-render a dataTable with Ajax ?
 
Similar Threads
Show HashMap in Datatable. UIColumn with embedded Datatable. Help Needed
Submit dataTable fields
Displaying Two Buttons in one Row from HashMap
commandLink inside dataTable not working
Using of nested Datatables