h:datatable not saving input values

Hi

I've got a page with h:datatable and some other inputs. I've few actions that reload this page. What my problem is that inputs from datatable are not saved - when the page is reloaded the fields are empty, checkboxes reset to unchecked etc. But other inputs, outside the datatable remember their values. Is there any way to make datatable inputs behave like other components?

Michael

[408 byte] By [mglowackia] at [2007-10-2 17:51:00]
# 1
1.the relative managed-bean's scope should be changed to session2.dataTable's data should not be binded to backing-bean's properties!
Leo_Leunga at 2007-7-13 19:09:18 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
You can use jenia.org or adf faces datatables to have editing capabilities.
pringia at 2007-7-13 19:09:18 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Could you explain this:

"2.dataTable's data should not be binded to backing-bean's properties! "

You mean I can't put input component in there? e.g. I've got datable with rows for different languages, and in one column I have input where I put name of sth in this language. Then I press submit and it's saved into db. Works fine...

mglowackia at 2007-7-13 19:09:18 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
hello,actually i'm using myfaces, the extended datatable of tomahawk allows to use input fields. so have a look at the t:datatable the TableModel and i think you will find a solution.ben
bbratkusa at 2007-7-13 19:09:18 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
but can anyone explain me why h:datatable is not good?
mglowackia at 2007-7-13 19:09:18 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
because h:datatable doesn't save state.
pringia at 2007-7-13 19:09:18 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7
can anyone give me an example of using tomahawk extended datatable? I can't make it saving stati although is set parameter preserveDataModel="true". When I press submit button and page not proceeds because of some errors in inputs values are reseted.
mglowackia at 2007-7-13 19:09:18 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 8
ok, started to work somehow... ;)
mglowackia at 2007-7-13 19:09:18 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 9
I am using dataTable from tomahawk 1.1.3. I use it for input values and processing. For some reason only the first column values are saved into my model and rest of the columns discarded. Anyone know what could be the reason? I am following the code from myfaces example.
abdulsubahana at 2007-7-13 19:09:18 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...