4 Replies Latest reply on Mar 13, 2007 5:05 PM by Thomas Bjerch

    Skins: h:selectBooleanCheckbox ... fails

    Thomas Bjerch Newbie

      I have a form containing a set of <h:selectBooleanCheckbox... that fails if org.ajax4jsf.SKIN is set to anything else but DEFAULT_SKIN.

      Why I think the skin and selectBooleanCheckbox is to blame:

      I reduced the form to nearly nothing but the <h:selectBooleanCheckbox... to isloate the control that caused the failure

      Changed the skin from "classic" to DEFAULT_SKIN and everything worked, both with reduce form and full form.


      Any clues?

        • 1. Re: Skins: h:selectBooleanCheckbox ... fails
          Sergey Smirnov Master

          There is no option like "DEFAULT_SKIN" for org.ajax4jsf.SKIN except you created your own DEFAULT_SKIN.skin.properties file.

          So, I am still far away from the understanding what this topic about :-(

          • 2. Re: Skins: h:selectBooleanCheckbox ... fails
            Thomas Bjerch Newbie

            Sorry, meant DEFAULT. That is the following works:

            <context-param>
             <param-name>org.ajax4jsf.SKIN</param-name>
             <param-value>DEFAULT</param-value>
            </context-param>


            while any other skins provided: like:

            <context-param>
             <param-name>org.ajax4jsf.SKIN</param-name>
             <param-value>classic</param-value>
            </context-param>


            causes a failiure:

            SEVERE: Servlet.service() for servlet faces threw exception
            java.lang.NoSuchMethodError: org.ajax4jsf.framework.renderer.AjaxRendererUtils.isAjaxRequest()Z
             at com.exadel.vcp.skins.defaultskin.HtmlBooleanCheckboxRenderer.doEncodeEnd(HtmlBooleanCheckboxRenderer.java:72)
             at org.ajax4jsf.framework.renderer.RendererBase.encodeEnd(RendererBase.java:114)
             at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
             at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:442)
             at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:419)
             at org.apache.myfaces.shared_impl.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:75)
             at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
             at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:442)
             at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:216)
             at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:98)
             at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
             at javax.faces.render.Renderer.encodeChildren(Renderer.java:70)
             at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
             at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:436)
             at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:419)
             at org.apache.myfaces.shared_impl.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:75)
             at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
             at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:442)
             at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:216)
             at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:98)
             at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
             at javax.faces.render.Renderer.encodeChildren(Renderer.java:70)
             at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
             at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:252)
             at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:232)
             at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:254)
             at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:232)
             at org.richfaces.renderkit.TabRendererBase.encodeChildren(TabRendererBase.java:109)
             at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
             at javax.faces.render.Renderer.encodeChildren(Renderer.java:68)
             at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
             at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:252)
             at org.ajax4jsf.framework.renderer.AjaxChildrenRenderer.encodeAjaxChild(AjaxChildrenRenderer.java:127)
             at org.ajax4jsf.framework.renderer.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:125)
             at org.ajax4jsf.framework.ajax.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:536)
             at org.ajax4jsf.framework.ajax.AjaxViewRoot$4.invokeRoot(AjaxViewRoot.java:367)
             at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:54)
             at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:176)
             at org.ajax4jsf.framework.ajax.AjaxViewRoot.encodeChildren(AjaxViewRoot.java:382)
             at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:234)
             at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580)
             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:384)
             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
             at org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:74)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
             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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
             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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
             at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
             at java.lang.Thread.run(Unknown Source)






            • 4. Re: Skins: h:selectBooleanCheckbox ... fails
              Thomas Bjerch Newbie

              That solved the problem

              Impressed