posted 10 years ago
Could you kindly help me with this issue?
I'm not sure whether or not this is a datatable's row expansion misbehavior or am I doing something wrong. I'll be as simple as possible with the problem's description.
First, try making a DataTable like PrimeFaces's showcase for instance with a list of Car's in wich you may "change" car's color. It's simple!
Then implement its rowExpansion in order to do the partial processing of a property action listener set via commandButton. Till there, everything is all right. So now try expand the last row and after that try expanding middle's one then click over commandButton of the first expanded row then you'll notice that the property action listener set will be pointed or related to the second expanded row. In my example I juse populate datatable's with 3 rows.
If you try to expand only one row you get the expected behavior.
It seems that the expansion process overwrite previous processed model or some sort of other misbehavior that's away from knowledge.
See the following snippets.
Bean
For those who will point the cause of issue the fact I'm using
this misbehavior is also noticed with either
This example does not function with bean set as neither as RequestScoped nor ViewScoped.
Am I doing something wrong or this could be an issue? Any tips will be appreciated.
Thanks,