Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to refresh only datatable in a jsf page

843844Sep 8 2009 — edited Sep 9 2009
Hello all,

I have a jsp page has a <h:datatable which will display some information with add, edit and delete buttons to add new row to dataTable, edit and delete corresponding row from the dataTable.

Below this data table i have some fields.

now If i want to add onother row to my datatable for that i need to press add button. this will open an popup window to add the data and that popup window contains save button to save that data in DB and then i will send some information back to refresh the parent window so that i can get newly added row dataTable but whole page is refreshing when i am refreshing the page to get the newly added data. So previos values in the fields in my jsp page (i.e. the fields which are under the dataTable) are also setting back, because the whole page getting refreshed so i want that datatable only get refreshed.

And from the below link i came to know using "a4j " tag library "a4j:poll" we can refresh the datatable dynamically with specified seconds but i want to populate my datatable when ever the return value is there in my backing bean(the value will sent back from my child window to my parent window).

http://forums.sun.com/thread.jspa?threadID=5405123&tstart=1.

please anybody help me to use "a4j" libraries to do that.

Edited by: indira_need_help on Sep 8, 2009 11:55 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 7 2009
Added on Sep 8 2009
3 comments
1,943 views