selectBooleanCheckBox: Expected submitted value of type Boolean for Component
-----------------------------------------------------------------------------

                 Key: MYFACES-1452
                 URL: http://issues.apache.org/jira/browse/MYFACES-1452
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-127
    Affects Versions: 1.1.4, 1.1.1
         Environment: Windows XP Professional SP 1; Tomcat 5.0.27
            Reporter: Holger Niehaus


I use following code in JSF:

<h:selectBooleanCheckbox value="#{conf.zero}" 
converter="NumberBooleanConverter" />

conf.zero returns an Integer ( 0 or 1). Converter returns "true" or "false" 
(String), but getAsString isn`t called. Instead the exception is thrown (see 
below). Same effect with extension (x:selectBooleanCheckbox). For inputText 
(<h:inputText value="#{conf.one}" converter="NumberBooleanConverter" />) it 
works. Is it a similar reason as in Bug ADFFACES-38? Or am I on the wrong track?

Thrown exception:
javax.faces.FacesException: Expected submitted value of type Boolean for 
Component : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: 
/jsp/common/rechte/matrix_behoerde.jsp][Class: 
javax.faces.component.html.HtmlForm,Id: behoerde_matrix][Class: 
javax.faces.component.html.HtmlPanelGroup,Id: _id0][Class: 
org.apache.myfaces.component.html.ext.HtmlDataTable,Id: matrix][Class: 
javax.faces.component.UIColumn,Id: _id33][Class: 
org.apache.myfaces.component.html.ext.HtmlSelectBooleanCheckbox,Id: _id35]}
        
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
        
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
        
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
        
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:92)
        
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
        de.filter.AccessFilter.doFilter(AccessFilter.java:93)



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to