Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1452

selectBooleanCheckBox: Expected submitted value of type Boolean for Component

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.1.1, 1.1.4, 1.1.5-SNAPSHOT
    • None
    • JSR-127
    • None
    • Windows XP Professional SP 1; Tomcat 5.0.27

    Description

      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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            lagor Holger Niehaus
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: