[jboss-user] [JBoss Seam] - Re: Injection of NULL immediately after outjection

dkane do-not-reply at jboss.com
Thu Jul 5 16:10:15 EDT 2007


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#4061024

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061024



More information about the jboss-user mailing list