Form with button and table

Hi,

I am using Visual Web Pack for Netbeans and I have a problem.

For simplicity:

Let us consider a page with a table and an minimalistic form containing a text field and a submit button.

Table displays only one column with a text recieved from (for example) database. By pressing the button app should save the content of the text field to db and add this line to the table (update the table from db), but it doesn't. Table is updated as late as reloading the page.

I've found that the problem is the table updates it's content before invoking the button-press handling method.

How to postpone or re-invoke the updating of the table to/in 'Render Response' phase (after invoking action-handling methost)?

Thanks for answers.

[780 byte] By [moprendeka] at [2007-11-26 20:28:45]
# 1
Put the data in session and reload after submit. Or reload the data via the getter of the list. This might give you some hints: http://balusc.xs4all.nl/srv/dev-jep-dat.html The EAR there also contains a CRUD example which might be useful.
BalusCa at 2007-7-10 1:17:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...