I have a working slution now but not sure about it's reliability and performance.
So I needed list of records in Shopping cart. Records can be added, removed and checked
(in special checkbox column). The problem was that all checkboxes resets after add or
remove operation.
In fact records of shopping cart are entity beans that are not yet persisted.
I have done 2 things :
1) Added a "checked" boolean field with @Transient annotation to the entity bean
class and bound checkbox to that field.
2) Added ajax4jsf "onchange" ajax support to checkbox, with
reRender="cartPanel"
It turned out that reRender writes boolean property to underlying bean and gets it back
to UI.
Any comments about such solution from experienced guys ?
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061024#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...