[
https://issues.jboss.org/browse/RF-10072?page=com.atlassian.jira.plugin.s...
]
Andrey Markhel resolved RF-10072.
---------------------------------
Resolution: Done
There are only three modes:
-ajax,
-server,
-client;
none mode was replaced with client mode.
If an incorrect mode is submitted, the exception is thrown.
Showcase: IllegalArgumentException in drop down menu sample
-----------------------------------------------------------
Key: RF-10072
URL:
https://issues.jboss.org/browse/RF-10072
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: examples, showcase
Affects Versions: 4.0.0.Milestone5
Environment: RichFaces/Showcase 4.0.0.20101220-M5
JBoss 6 CR1
Reporter: Pavol Pitonak
Assignee: Andrey Markhel
Fix For: 4.0.0.CR1
1. deploy showcase
2. open
http://localhost:8080/richfaces-showcase/richfaces/component-sample.jsf?s...
result:
java.lang.IllegalArgumentException: No enum const class
org.richfaces.component.Mode.none
at java.lang.Enum.valueOf(Enum.java:214)
at org.richfaces.component.Mode.valueOf(Mode.java:24)
at
org.richfaces.renderkit.html.MenuItemRendererBase.resolveSubmitMode(MenuItemRendererBase.java:120)
at
org.richfaces.renderkit.html.MenuItemRendererBase.getOnClickFunction(MenuItemRendererBase.java:99)
at org.richfaces.renderkit.html.MenuItemRenderer.encodeEnd(MenuItemRenderer.java:118)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
at
org.richfaces.renderkit.html.DropDownMenuRendererBase.renderChildren(DropDownMenuRendererBase.java:49)
at
org.richfaces.renderkit.html.DropDownMenuRenderer.encodeEnd(DropDownMenuRenderer.java:222)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879)
at
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:308)
at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:181)
at
com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:125)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:849)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1643)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646)
at
com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:389)
at
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:269)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)
at
org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)
at
org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
at java.lang.Thread.run(Thread.java:636)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira