[jboss-user] [JBoss Seam] - selectItems

hager do-not-reply at jboss.com
Thu Aug 9 11:32:36 EDT 2007


Hello,
i'm using <s:selectItems and i have an exception

this is my code

<h:selectOneMenu id="selectOneSituationDeFamille" value="#{collaborateurHome.instance.situationDeFamille}" >
  | 				<s:selectItems value="#{collaborateurHome.situationFamilleMap.keySet}" var="situationFamilleIterator" label="#{collaborateurHome.situationFamilleMap[situationFamilleIterator]}" id="selectSituations"/>
  | </h:selectOneMenu>

situationFamilleMap is a Map<String,String>


Exception:

GRAVE: Error Rendering View[/CollaborateurEdit.xhtml]
  | javax.faces.el.PropertyNotFoundException: /CollaborateurEdit.xhtml @201,199 label="#{collaborateurHome.situationFamilleMap[situationFamilleIterator]}": Bean: com.fitnetapplication.resources.model.CollaborateurHome_$$_javassist_143, property: situationFamilleMap
  | 	at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:58)
  | 	at org.jboss.seam.ui.JSF.getStringValue(JSF.java:186)
  | 	at org.jboss.seam.ui.UISelectItems.getLabel(UISelectItems.java:109)
  | 	at org.jboss.seam.ui.UISelectItems.asSelectItems(UISelectItems.java:223)
  | 	at org.jboss.seam.ui.UISelectItems.getValue(UISelectItems.java:170)
  | 	at org.apache.myfaces.util.SelectItemsIterator.hasNext(SelectItemsIterator.java:103)
  | 	at org.apache.myfaces.renderkit.RendererUtils.internalGetSelectItemList(RendererUtils.java:485)
  | 	at org.apache.myfaces.renderkit.RendererUtils.getSelectItemList(RendererUtils.java:461)
  | 	at org.apache.myfaces.renderkit.html.HtmlRendererUtils.internalRenderSelect(HtmlRendererUtils.java:272)
  | 	at org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderMenu(HtmlRendererUtils.java:246)
  | 	at org.apache.myfaces.renderkit.html.HtmlMenuRendererBase.encodeEnd(HtmlMenuRendererBase.java:54)
  | 	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
  | 	at org.jboss.seam.ui.JSF.renderChild(JSF.java:180)
  | 	at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
  | 	at org.jboss.seam.ui.JSF.renderChild(JSF.java:178)
  | 	at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
  | 	at org.jboss.seam.ui.UIDecorate.encodeChildren(UIDecorate.java:234)
  | 	at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:444)
  | 	at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:203)
  | 	at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:85)
  | 	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
  | 	at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:450)
  | 	at org.apache.myfaces.renderkit.RendererUtils.renderChildren(RendererUtils.java:427)
  | 	at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:448)
  | 	at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:203)
  | 	at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:85)
  | 	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
  | 	at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:450)
  | 	at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:203)
  | 	at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:85)
  | 	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
  | 	at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:450)
  | 	at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:203)
  | 	at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:85)
  | 	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
  | 	at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:252)
  | 	at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
  | 	at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
  | 	at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  | 	at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
  | 	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
  | 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | 	at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 	at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 	at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 	at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 	at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
  | 	at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
  | 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | 	at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | 	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | 	at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | 	at java.lang.Thread.run(Thread.java:595)


Can I use the method keySet? (value="#{collaborateurHome.situationFamilleMap.keySet}" )
what's the problem, because i didn't understand it?

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

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



More information about the jboss-user mailing list