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
In my app I'm programmatically creating a UIDecorate component:
UIDecorate component = (UIDecorate) getApplication().createComponent(UIDecorate.COMPONENT_TYPE);
This used to work in Seam 1.2.1, but with 2.0.0.Beta1 I now get
| Caused by: javax.faces.FacesException: Expression Error: Named Object: org.jboss.seam.ui.UIDecorate not found.
| at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:529)
| at org.jboss.seam.jsf.SeamApplication.createComponent(SeamApplication.java:91)
I can see UIDecorate in jboss-seam-2.0.0.BETA1\jboss-seam-ui.jar\org\jboss\seam\ui\component\
but its been deleted from CVS (http://fisheye.jboss.com/browse/JBoss/jboss-seam/src/ui/org/jboss/seam/ui)
as part of http://jira.jboss.org/jira/browse/JBSEAM-1013 (Port Seam JSF controls to Ajax4JSF CDK).
If we're not meant to be using UIDecorate anymore whats the equivalent ajax4jsf/richfaces component?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061018#4061018
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061018