I have a button(for reset all components and LOVs) on my fragment. and it's immediate is true. The problem is that when I press the reset button then first part of my page i.e. master entry has no problem but
when i press another button for detail row insertion in the table then row retains it's old values..how can i reset it..
You need to explain your use case in more detail. The reset (button or utils) only reset values which have not been submitted.
If you enter values in a new row of a detail table you should do a rollback to remove the new row.
My module has two parts. First part is master entry and the other is detail entry.
Master Entry comes in create insert mode after loading. And detail row comes when 'Add Record' button is pressed.
I have a reset button. it's immediate is true and i am using rollback in this and again call create insert as to view the form as it was at load time.
Reset button code:
when i fill all the entries detail+master and i press reset then master refreshes bt when i press 'add record' button then the row contains it's old values(i.e. text boxes and LOVs don't refreshes)
i try to set attribute values to null and then resetting LOV..it worked bt i think this is not the rite way..
so please Suggest any Solution..
Edited by: Nivi on Jan 28, 2013 3:39 AM
immediate = true bypasses the JSF model update so the client state goes out of synch with the server state.
where "comp" is the table component showing the detail data