[jboss-user] [JBoss Seam] - Re: show me the right way to access row of datatable with Se

tim_ph do-not-reply at jboss.com
Wed Aug 1 14:00:00 EDT 2007


Haven't gone far on this. I made it @Factory as you suggest, Smith. Also add @Out for datamodel, otherwise it won't see personnels value on the page.


  | @DataModel
  | @Out(required=false)
  | 	private List<Personnel> personnels;
  | 

then stumble on this error:

  | 12:51:49,243 ERROR [STDERR] Aug 1, 2007 12:51:49 PM com.sun.facelets.FaceletView
  | Handler handleRenderException
  | SEVERE: Error Rendering View[/policy/ApplicationEdit.xhtml]
  | java.lang.ClassCastException: java.util.ArrayList
  |         at org.jboss.seam.databinding.DataModelBinder.isDirty(DataModelBinder.ja
  | va:14)
  |         at org.jboss.seam.Component.outjectDataModel(Component.java:1417)
  |         at org.jboss.seam.Component.outjectDataModels(Component.java:1402)
  |         at org.jboss.seam.Component.outject(Component.java:1357)
  |         at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterc
  | eptor.java:47)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation
  | Context.java:68)
  |         at org.jboss.seam.persistence.ManagedEntityIdentityInterceptor.aroundInv
  | 

BTW, I work on latest Seam 2.0.0.Beta1 with JBoss 4.2.0GA. I know it's beta, but I want to use the framework.
Thanks for the help.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069758#4069758

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



More information about the jboss-user mailing list