[jboss-user] [JBoss Seam] - Set do not work

KoniKoni do-not-reply at jboss.com
Tue Jun 19 16:01:40 EDT 2007


  <rich:dataTable rendered="#{not empty entList}"
  |                         onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
  |                         onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
  |                         cellpadding="0" cellspacing="0" 
  |                         width="100%" border="0" var="cat" value="#{catList}">
  |             
  |             
  |             
  |             <rich:column>
  |                 
  |                 <f:facet name="header">
  |                     <h:outputText  value="Datum"/>
  |                 </f:facet>
  |                 <h:outputText value="#{cat.bezeichnung}" />
  |             </rich:column>  
  |             
  |             
  |             <rich:subTable
  |                 onRowMouseOver="this.style.backgroundColor='#F8F8F8'"
  |                 onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
  |                 var="tournament" value="#{cat.tournaments}">
  |                 <rich:column>
  |                     <f:facet name="header">
  |                         <h:outputText  value="Datum"/>
  |                     </f:facet>
  |                     <h:outputText value="#{tour.bezeichnung}" />
  |                 </rich:column>
  |                 
  |             </rich:subTable>
  |         </rich:dataTable>       


 @DataModel  private List<Category> catList;

AND Entitybean:

 @OneToMany(mappedBy="category",cascade=CascadeType.ALL, fetch=FetchType.LAZY)
  |     private Set<Tournament> tournaments;


SCHWERWIEGEND: Error Rendering View[/sports.xhtml]
  | java.lang.IllegalArgumentException: value of context variable is not an instance of the component bound to the context variable: tournament
  |         at org.jboss.seam.Component.getInstance(Component.java:1659)
  |         at org.jboss.seam.Component.getInstance(Component.java:1614)
  |         at org.jboss.seam.Component.getInstance(Component.java:1608)
  |         at org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
  |         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  |         at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  |         at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
  |         at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
  |         at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
  |         at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
  |         at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
  |         at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:189)
  |         at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:320)
  |         at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200)
  |         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
  |         at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:286)
  |         at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
  |         at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:284)
  |         at org.richfaces.renderkit.AbstractRowsRenderer.encodeCellChildren(AbstractRowsRenderer.java:274)
  |         at org.richfaces.renderkit.AbstractTableRenderer.encodeOneRow(AbstractTableRenderer.java:216)
  |         at org.richfaces.renderkit.AbstractRowsRenderer.process(AbstractRowsRenderer.java:75)
  |         at org.ajax4jsf.ajax.repeat.SequenceDataModel.walk(SequenceDataModel.java:101)
  |         at org.ajax4jsf.ajax.repeat.UIDataAdaptor.walk(UIDataAdaptor.java:917)
  |         at org.richfaces.renderkit.AbstractRowsRenderer.encodeRows(AbstractRowsRenderer.java:92)
  |         at org.richfaces.renderkit.AbstractRowsRenderer.encodeChildren(AbstractRowsRenderer.java:124)
  |         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
  |         at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:282)
  |         at org.richfaces.renderkit.AbstractRowsRenderer.encodeCellChildren(AbstractRowsRenderer.java:274)
  |         at org.richfaces.renderkit.AbstractTableRenderer.encodeOneRow(AbstractTableRenderer.java:216)
  |         at org.richfaces.renderkit.AbstractRowsRenderer.process(AbstractRowsRenderer.java:75)
  |         at org.ajax4jsf.ajax.repeat.SequenceDataModel.walk(SequenceDataModel.java:101)
  |         at org.ajax4jsf.ajax.repeat.UIDataAdaptor.walk(UIDataAdaptor.java:917)
  | 



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

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



More information about the jboss-user mailing list