[
https://issues.jboss.org/browse/JBSEAM-4654?page=com.atlassian.jira.plugi...
]
Nicolas U. commented on JBSEAM-4654:
------------------------------------
Hello.
I have same bug without ui:debug.
My code works fine with jboss 4.2.3 but not with jboss 6 final...
I use seam 2.2.1.CR2
JSF:
<h:selectOneMenu value="#{personneListBean.selectedTitre}">
<s:selectItems noSelectionLabel="All"
value="#{personneListBean.allTitre}" var="titre"
label="#{titre.titre}" />
<s:convertEntity />
<a4j:support event="onchange" reRender="renderPanel"
action="#{personneQuery.gotoPage(1)}" />
</h:selectOneMenu>
Error:
ATTENTION [javax.enterprise.resource.webcontainer.jsf.lifecycle] For input string:
"All": java.lang.NumberFormatException: For input string: "All"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
[:1.6.0_22]
at java.lang.Integer.parseInt(Integer.java:449) [:1.6.0_22]
at java.lang.Integer.<init>(Integer.java:660) [:1.6.0_22]
at org.jboss.seam.ui.EntityIdentifierStore.get(EntityIdentifierStore.java:46)
[:2.2.1.CR2]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[:1.6.0_22]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[:1.6.0_22]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_22]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [:2.2.1.CR2]
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
[:2.2.1.CR2]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
[:2.2.1.CR2]
at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
[:2.2.1.CR2]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
[:2.2.1.CR2]
at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
[:2.2.1.CR2]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
[:2.2.1.CR2]
at
org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
[:2.2.1.CR2]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
[:2.2.1.CR2]
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
[:2.2.1.CR2]
at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
[:2.2.1.CR2]
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
[:2.2.1.CR2]
at
org.jboss.seam.ui.EntityIdentifierStore_$$_javassist_seam_6.get(EntityIdentifierStore_$$_javassist_seam_6.java)
[:2.2.1.CR2]
at org.jboss.seam.ui.AbstractEntityLoader.get(AbstractEntityLoader.java:27) [:2.2.1.CR2]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[:1.6.0_22]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[:1.6.0_22]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_22]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [:2.2.1.CR2]
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
[:2.2.1.CR2]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
[:2.2.1.CR2]
at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
[:2.2.1.CR2]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
[:2.2.1.CR2]
at
org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:97)
[:2.2.1.CR2]
at org.jboss.seam.util.Work.workInTransaction(Work.java:61) [:2.2.1.CR2]
at
org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)
[:2.2.1.CR2]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
[:2.2.1.CR2]
at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
[:2.2.1.CR2]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
[:2.2.1.CR2]
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
[:2.2.1.CR2]
at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
[:2.2.1.CR2]
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
[:2.2.1.CR2]
at
org.jboss.seam.ui.JpaEntityLoader_$$_javassist_seam_5.get(JpaEntityLoader_$$_javassist_seam_5.java)
[:2.2.1.CR2]
at org.jboss.seam.ui.EntityConverter.getAsObject(EntityConverter.java:76) [:2.2.1.CR2]
at
org.jboss.seam.ui.converter.PrioritizableConverter.getAsObject(PrioritizableConverter.java:61)
[:2.2.1.CR2]
at org.jboss.seam.ui.converter.ConverterChain.getAsObject(ConverterChain.java:110)
[:2.2.1.CR2]
at
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:167)
[:2.0.3-]
at
com.sun.faces.renderkit.html_basic.MenuRenderer.convertSelectOneValue(MenuRenderer.java:198)
[:2.0.3-]
at
com.sun.faces.renderkit.html_basic.MenuRenderer.getConvertedValue(MenuRenderer.java:315)
[:2.0.3-]
at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1023) [:2.0.3-]
at javax.faces.component.UIInput.validate(UIInput.java:953) [:2.0.3-]
at javax.faces.component.UIInput.executeValidate(UIInput.java:1204) [:2.0.3-]
at javax.faces.component.UIInput.processValidators(UIInput.java:693) [:2.0.3-]
at javax.faces.component.UIForm.processValidators(UIForm.java:240) [:2.0.3-]
at org.ajax4jsf.component.AjaxViewRoot$3.invokeContextCallback(AjaxViewRoot.java:447)
[:3.3.3.CR1]
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:240) [:3.3.3.CR1]
at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:463)
[:3.3.3.CR1]
at
com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:72)
[:2.0.3-]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) [:2.0.3-]
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114) [:2.0.3-]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308) [:2.0.3-]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)
[:6.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
[:6.0.0.Final]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
[:2.2.1.CR2]
at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) [:2.2.1.CR2]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[:2.2.1.CR2]
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) [:2.2.1.CR2]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[:2.2.1.CR2]
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) [:2.2.1.CR2]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[:2.2.1.CR2]
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) [:2.2.1.CR2]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[:2.2.1.CR2]
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) [:3.3.3.CR1]
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) [:3.3.3.CR1]
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
[:3.3.3.CR1]
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) [:3.3.3.CR1]
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56) [:2.2.1.CR2]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[:2.2.1.CR2]
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) [:2.2.1.CR2]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[:2.2.1.CR2]
at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53) [:2.2.1.CR2]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[:2.2.1.CR2]
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [:2.2.1.CR2]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
[:6.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
[:6.0.0.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
[:6.0.0.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
[:6.0.0.Final]
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)
[:6.0.0.Final]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
[:6.0.0.Final]
at
org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)
[:1.1.0.Final]
at
org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)
[:1.1.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
[:6.0.0.Final]
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)
[:6.0.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
[:6.0.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[:6.0.0.Final]
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
[:6.0.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[:6.0.0.Final]
at
org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)
[:6.0.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
[:6.0.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
[:6.0.0.Final]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)
[:6.0.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
[:6.0.0.Final]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
s:selectItems noSelectionLabel does not generate option value
-------------------------------------------------------------
Key: JBSEAM-4654
URL:
https://issues.jboss.org/browse/JBSEAM-4654
Project: Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.2.1.CR1
Environment: JBoss 6 M3
Reporter: Andrew Wheeler
When a selectOneMenu has no items other than the no selection option it does not render
the option value as org.jboss.seam.ui.NoSelectionConverter.noSelectionValue. In this case
the there are no values in person.images.
<h:selectOneMenu id="portrait" value="#{person.portrait}">
<s:selectItems value="#{person.images}" var="i"
label="#{i.annotation}" hideNoSelectionLabel="false"
noSelectionLabel="Select a portrait..."/>
<s:convertEntity/>
</h:selectOneMenu>
This renders:
<select id="person:portraitDecoration:portrait"
name="person:portraitDecoration:portrait" size="1"> <option
selected="selected">Select a portrait...</option>
</select>
The result is that any form submit causes a java.lang.NumberFormatException with message:
"For input string: "Select a portrait...""
I have debugged a little and I can see that the converter is not firing when rendering
the page. It does however fire for other selectOneMenu items on the page that have one or
more items.
A similar and perhaps related issue is referenced in the JBoss Forum.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira