Update a single row of a dataTable using AJAX + JSF

Hi all,

I want to update a single row of a dataTable using AJAX. When the user enter a employee id and tabs out of the text field, i need to populate all the other columns in that row.

I could do it partly by using a regular Servlet and javascript. But, each row has 2 drop-downs that need to be populated based on the employee id.

How to populate the drop-downs using a regular servlet. The response is XML, so do i have to convert the list of SelectItem[] into individual tags? how do we actually update the dropdown on the browser using javascript?

I looked at Ajax4JSF, but looks like it doesn't have built-in support to do the above.

is there any framework that can give this functionality.

Any help would be greatly appreciated.

Thank you.

[797 byte] By [Seshu_Varanasia] at [2007-11-27 2:40:06]
# 1
Why did you decide Ajax4jsf does not have support for it? This is an example then one column value depends of other: http://livedemo.exadel.com/richfaces-art-datatable/pages/example10.jsf
Sergey.Smirnova at 2007-7-12 3:02:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thanks Sergey.As i mentioned, i want to populate the drop-down menu using the library. Is there support for this?
Seshu_Varanasia at 2007-7-12 3:02:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
if you point to drop-down, the drop-down will be updated.
Sergey.Smirnova at 2007-7-12 3:02:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
I have replaced the example. Now, it has a drop-down in each row: http://livedemo.exadel.com/richfaces-art-datatable/pages/example10.jsf
Sergey.Smirnova at 2007-7-12 3:02:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Thanks Sergey :)Can i get the source code for this example?I want to use "onblur" function and call this ajax functionality.
Seshu_Varanasia at 2007-7-12 3:02:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
Hi,I too will love to have the code for the sample aboveThanks
chicoa at 2007-7-12 3:02:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7
Sergey... could you please provide the code for the above example?Thank you
Seshu_Varanasia at 2007-7-12 3:02:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 8
Actually, this is a example application to my unfinished yet article about rich:dataTable. http://labs.jboss.com/wiki/RichFacesArticleDataTableThe link to the source is there.
Sergey.Smirnova at 2007-7-12 3:02:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...