MyFaces anyone?

Now that reef-shark, with it's promise of easier external component importing, has been out a few weeks, anyone been able to get the myfaces (specifically, upload) working with JSC?

I think you will find that using Myfaces requires their libraries to replace the sun ones, so you probably won't see that happen, probably won't even work.
There are other options for upload, I have put a servlet example on this forum, and I have also got the Oracle ADF upload working.
Jonathan

Similar Messages

  • Anyone using facelets with ADF Faces and myfaces implementation?

    There is a Howto document for using facelets with ADF Faces, but it assumes you're using Sun's RI. I'd like to use the Apache myfaces implementation of JSF with ADF and facelets, but I keep getting a NoSuchElementException thrown when the pages are accessed.
    Here's the error and stack trace:
    09:15:18,790 INFO [STDOUT] Jan 19, 2006 9:15:18 AM com.sun.facelets.FaceletViewHandler handleRenderException
    SEVERE: Error Rendering View
    java.util.NoSuchElementException
         at java.util.AbstractList$Itr.next(AbstractList.java:426)
         at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:520)
         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:450)
         at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:356)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:325)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:190)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    09:15:18,790 INFO [STDOUT] Jan 19, 2006 9:15:18 AM com.sun.facelets.FaceletViewHandler handleRenderException
    SEVERE: Took Type: java.io.PrintWriter
    I followed Adam Winer's instructions for incorporating ADF with facelets (using Sun's RI) and this works fine. But when I try to swap out the Sun RI for the Apache myfaces 1.1.1 implementation I get the exception.
    Here's the info from my web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>Facelets</display-name>
    <description>Facelets StarterKit</description>
    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/applicationContext*.xml</param-value>
    </context-param>
    <context-param>
    <param-name>facelets.REFRESH_PERIOD</param-name>
    <param-value>2</param-value>
    </context-param>
    <context-param>
    <param-name>facelets.DEVELOPMENT</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
         <context-param>
              <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
              <param-value>.xhtml</param-value>
         </context-param>
         <context-param>
              <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
              <param-value>true</param-value>
         </context-param>
         <context-param>
              <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
              <param-value>false</param-value>
         </context-param>
         <context-param>
              <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
              <param-value>true</param-value>
         </context-param>
         <context-param>
    <param-name>oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER</param-name>
         <param-value>com.sun.facelets.FaceletViewHandler</param-value>
         </context-param>
         <filter>
         <filter-name>adfFaces</filter-name>
         <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
         </filter>
    <filter>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
         <init-param>
         <param-name>maxFileSize</param-name>
         <param-value>20m</param-value>
         </init-param>
         </filter>
         <filter-mapping>
         <filter-name>adfFaces</filter-name>
         <servlet-name>faces</servlet-name>
         </filter-mapping>
         <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <url-pattern>*.jsf</url-pattern>
         </filter-mapping>
    <filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
         <listener>
              <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
         </listener>
    <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>
    <listener>
    <listener-class>net.sf.acegisecurity.ui.session.HttpSessionEventPublisher</listener-class>
    </listener>
    <!-- Faces Servlet -->
    <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
         <!-- resource loader servlet -->
         <servlet>
         <servlet-name>resources</servlet-name>
         <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
         </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
         <servlet-mapping>
         <servlet-name>faces</servlet-name>
         <url-pattern>/faces/*</url-pattern>
         </servlet-mapping>
         <servlet-mapping>
         <servlet-name>resources</servlet-name>
         <url-pattern>/adf/*</url-pattern>
         </servlet-mapping>
    </web-app>
    And in my faces-config.xml, I have set it to use the oracle.adf.core render kit:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
    <!-- from project setup -->
    <application>
    <!-- Use the ADF RenderKit -->
    <default-render-kit-id>
    oracle.adf.core
    </default-render-kit-id>
    <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
    </application>
    <managed-bean>
         <managed-bean-name>keyTable</managed-bean-name>
         <managed-bean-class>example.KeyInfoNodeData</managed-bean-class>
         <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    </faces-config>
    It doesn't seem to matter whether I use <jsp:root xmlns..> tags or <html xmlns ..> tags or whether I use the facelet ui tags or not. I've tried it with several of the ADF components. I always get the pretty facelets exception at the bottom of the page after the ADF component displays.
    Am I missing something? Has anyone gotten these three (ADF w/ myfaces impl and facelets) to work together properly?

    Hi,
    It is supposed to work fine and is working okay, in general, for me. I was setting up a test app yesterday and logged the steps in my blog (http://www.jroller.com/page/mjdenham). I think I logged everything.
    Regards
    Martin

  • MyFaces not rendering, ADF faces IS rendering

    I'm installing my app on the websphere application server, Version 6.1 After having issues of both adf and myfaces not working, I came accross this link which helped me somewhat. http://wiki.apache.org/myfaces/Websphere_Installation .
    By "not working" I mean that my jsp would have <h:commandLink>'s and <af:commandButton/> however the html was never actually generated. (You could view the pages source and the resulting html page was blank).
    After following those instructions, ADF components are correctly rendered, and the html works. However, I can not use any <h:> or <h:> components.
    Keep in mind, every single part of this used to work while using Tomcat (I think it was 5.5, not 6).
    faces-config-app.xml (our replacement for faces-config).
    <?xml version="1.0"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
         <!-- ************ Application wide settings **************** -->
         <application>
              <!-- Spring resolve allows access to spring managed beans from <managed-bean> tags -->
              <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
              <!-- Local setup -->
              <locale-config>
                   <default-locale>en</default-locale>
                   <supported-locale>en</supported-locale>
              </locale-config>
              <!-- Message bundle base name -->
              <message-bundle>messages</message-bundle>
              <!-- Use the ADF Faces render kit -->
              <default-render-kit-id>oracle.adf.core</default-render-kit-id>
         </application>
         <lifecycle>
                <phase-listener id="responseHeaderController">com.unyric.cias.cm.web.util.HttpResponseHeaderController</phase-listener>
         </lifecycle>
    </faces-config>web.xml (Yes there is a lot of extra things in there such as application context params, but I wanted to paste the whole thing. Please bear with me).
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
         <display-name>CIAS Case Management Web</display-name>
         <context-param>
              <description>JSF state setting: Keep state of views on client</description>
             <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
             <param-value>client</param-value>
         </context-param>
         <context-param>
              <description>JSF configuration files</description>
             <param-name>javax.faces.CONFIG_FILES</param-name>
             <!-- faces-config.xml contains applicaiton level configuration
                   faces-config-nav.xml contains screen flow configuration
                   faces-config-beans.xml contains managed bean definitions -->
             <param-value>/WEB-INF/faces-config-app.xml,/WEB-INF/faces-config-nav.xml,/WEB-INF/faces-config-beans.xml</param-value>
         </context-param>
         <context-param>
              <description>Spring configuration files</description>
              <param-name>contextConfigLocation</param-name>
              <!-- presentationContext.xml contains presentation tier object configuration
                         applicationContext.xml contains Service & Dao object configuration as well as transaction demarcation
                         securityContext.xml contains Acegi Security configuration
                         hibernate.cfg.xml contains Hibernate specific configuration -->
                <param-value>/WEB-INF/presentationContext.xml classpath*:spring/applicationContext.xml classpath*:spring/validationContext.xml classpath*:spring/securityContext.xml classpath*:spring/hibernate.cfg.xml</param-value>
         </context-param>
         <context-param>
              <description>Validates JSF configuration files on startup</description>
             <param-name>org.apache.myfaces.validate</param-name>
             <param-value>true</param-value>
            </context-param>  
         <context-param>
              <description>Timmer Setting for Case Queue screen</description>
                 <param-name>pollingTimer</param-name>
                 <!-- Units are milliseconds -->
                 <param-value>60000</param-value>
         </context-param>
         <context-param>
              <description>Maximum number of rows shown in tables.</description>
                 <param-name>tableRowsPerPage</param-name>
                 <param-value>25</param-value>
         </context-param>
         <servlet>
              <description>JSF controller</description>
                 <servlet-name>FacesServlet</servlet-name>
                 <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                 <load-on-startup>1</load-on-startup>
         </servlet>
         <!-- Requests handled by JSF -->      
         <servlet-mapping>
               <servlet-name>FacesServlet</servlet-name>
                <url-pattern>*.do</url-pattern>
         </servlet-mapping>
         <servlet>
                <description>Serves up ADF Faces resources</description>
                <servlet-name>AdfResourceServlet</servlet-name>
                <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
         </servlet>
         <servlet-mapping>
             <servlet-name>AdfResourceServlet</servlet-name>
             <url-pattern>/adf/*</url-pattern>
         </servlet-mapping>
         <listener>
              <description>Initializes Spring on application startup.</description>
              <display-name>Spring context loader</display-name>
              <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
         </listener>
         <filter>
              <description>Enables Acegi Security framework integration. Acegi is used to secure services.
              Standard J2EE is used to secure web requests.</description>
              <filter-name>AcegiFilterChainProxy</filter-name>
              <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
              <init-param>
                   <param-name>targetClass</param-name>
                   <param-value>org.acegisecurity.util.FilterChainProxy</param-value>
              </init-param>
         </filter>
         <filter-mapping>
              <filter-name>AcegiFilterChainProxy</filter-name>
              <servlet-name>FacesServlet</servlet-name>
         </filter-mapping>
         <filter>
                <description>Pre-processes requests to enable MyFaces extensions</description>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
             <init-param>
             <!-- Set the size limit for uploaded files.
               Format: 10 - 10 bytes
                       10k - 10 KB
                       10m - 10 MB
                       1g - 1 GB
               -->
                   <param-name>uploadMaxFileSize</param-name>
                    <param-value>6m</param-value>
             </init-param>
             <init-param>
                   <param-name>uploadThresholdSize</param-name>
                    <param-value>100k</param-value>
             </init-param>        
         </filter>
         <!-- MyFaces extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages  -->
           <filter-mapping>
                <filter-name>MyFacesExtensionsFilter</filter-name>
             <servlet-name>FacesServlet</servlet-name>
         </filter-mapping>
         <!-- MyFaces extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.)  -->
         <filter-mapping>
             <filter-name>MyFacesExtensionsFilter</filter-name>
             <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
         </filter-mapping>
         <filter>
              <description>Pre-processes requests to enable ADF Faces functionality</description>
              <filter-name>AdfFacesFilter</filter-name>
              <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
         </filter>
           <filter-mapping>
                <filter-name>AdfFacesFilter</filter-name>
             <servlet-name>FacesServlet</servlet-name>
         </filter-mapping>
         <!-- Sitemesh Template Filter --> 
         <filter>
              <filter-name>sitemesh</filter-name>
              <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
         </filter>
         <filter-mapping>
              <filter-name>sitemesh</filter-name>
              <url-pattern>/*</url-pattern>
         </filter-mapping>     
         <!-- Keep Hibernate sessions open until request completes. This allows lazy loading
              of data in all tiers. -->
         <filter>
              <filter-name>OpenSessionInViewFilter</filter-name>
              <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
              <init-param>
                   <param-name>sessionFactoryBeanName</param-name>
                   <param-value>ciasSessionFactory</param-value>
              </init-param>
              <init-param>
                   <param-name>singleSession</param-name>
                   <param-value>false</param-value>
              </init-param>
         </filter>
         <filter-mapping>
              <filter-name>OpenSessionInViewFilter</filter-name>
              <servlet-name>FacesServlet</servlet-name>
         </filter-mapping>
         <!-- The application automatically sends requests at timed intervals. This causes
                    the standard J2EE session to be refreshed at the timed intervals and thus it will
                    never timeout. This filter is used to distinguish between user prompted and
                    automatic requests. -->
         <filter>
              <filter-name>SessionTimeout Filter</filter-name>
              <filter-class>com.unyric.cias.cm.web.filter.SessionTimeoutFilter</filter-class>
              <init-param>
                   <!-- URL to be displayed after session timeout -->
                   <param-name>redirectUrl</param-name>
                   <param-value>timeOut.jsp</param-value>
              </init-param>
              <init-param>
                   <param-name>sessionTimeout</param-name>
                   <!-- Units are in minutes -->
                   <param-value>20</param-value>
              </init-param>
         </filter>
         <filter-mapping>
              <filter-name>SessionTimeout Filter</filter-name>
              <url-pattern>/secure/*</url-pattern>
         </filter-mapping>
         <!-- Session Timeout (in minutes)
              We are essentially disabling container session
              handling in favor of SessionTimout Filter -->
           <session-config>
                <session-timeout>99</session-timeout>
           </session-config>
           <!-- Security Configuration -->
           <security-constraint>
                <web-resource-collection>
                     <web-resource-name>FacesServlet security</web-resource-name>
                     <url-pattern>*.do</url-pattern>
                     <!-- No <http-method> tag implies all methods -->
                </web-resource-collection>
                <web-resource-collection>
                     <web-resource-name>View security</web-resource-name>
                     <url-pattern>/secure/*</url-pattern>
                     <!-- No <http-method> tag implies all methods -->
                </web-resource-collection>
                <auth-constraint>
                     <description>Allow any authenticated user</description>
                     <role-name>*</role-name>
                </auth-constraint>
          </security-constraint>
           <login-config>
                <auth-method>BASIC</auth-method>
                <realm-name>CIAS-CM</realm-name>
           </login-config>
           <security-role>
                <!-- Roles recognized by Case Management. -->
                <!-- EXACT NAMES MUST BE COORDINATED WITH CHOICEPOINT -->
                 <role-name>case</role-name>
         </security-role>
         <welcome-file-list>
              <welcome-file>index.jsp</welcome-file>
         </welcome-file-list>
         <!--  CIAS CM Database -->
         <resource-ref>
              <res-ref-name>jdbc/cias</res-ref-name>
                <res-type>javax.sql.DataSource</res-type>
                <res-auth>Container</res-auth>
                <res-sharing-scope>Shareable</res-sharing-scope>
            </resource-ref>
         <!--  CIAS Error Handling   -->
           <error-page>
                 <error-code>500</error-code>
                 <location>/secure/errorPage.jsp</location>
           </error-page>
           <error-page>
              <exception-type>javax.faces.FacesException</exception-type>
              <location>/secure/errorPage.jsp</location>
           </error-page>     
    </web-app>Does anyone have any suggestions? Telling websphere to load the web-inf\lib directory before the AppServer\lib directory seems to have somewhat worked, but not completely.
    On a side note, if I have a page such as (ignoring the extra h, f and t declarations)
    <%@ taglib prefix="h"uri="http://java.sun.com/jsf/html" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk" %>
    <%@ taglib prefix="af" uri="http://xmlns.oracle.com/adf/faces" %>
    <f:view>
         <af:document>
              <af:form>
                   <af:outputText value="hello2"/>
                   <af:commandLink id="button" action="#{exploreCaseListAction.promptPersonalQueue}" text="Login"/>
              </af:form>
         </af:document>
    </f:view>When I click on the commandLink button, I receive an error that states
    java.lang.ClassCastException: org.apache.xalan.processor.TransformerFactoryImpl incompatible with javax.xml.transform.TransformerFactory
    at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
    at com.ibm.ws.jsp.translator.visitor.validator.PageDataImpl._getInputStream(PageDataImpl.java:125)
    at com.ibm.ws.jsp.translator.visitor.validator.PageDataImpl.getInputStream(PageDataImpl.java:117)
    at org.apache.taglibs.standard.tlv.JstlBaseTLV.validate(JstlBaseTLV.java:156)
    at org.apache.taglibs.standard.tlv.JstlCoreTLV.validate(JstlCoreTLV.java:96)
    at com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.validateTagLib(ValidateVisitor.java:988)
    at com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.visitJspRootStart(ValidateVisitor.java:467)
    at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:138)
    at com.ibm.ws.jsp.translator.visitor.JspVisitor.visit(JspVisitor.java:121)
    at com.ibm.ws.jsp.translator.JspTranslator.processVisitors(JspTranslator.java:121)
    at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java:181)
    at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java:83)
    at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.translateJsp(AbstractJSPExtensionServletWrapper.java:349)
    at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper._checkForTranslation(AbstractJSPExtensionServletWrapper.java:317)
    at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.checkForTranslation(AbstractJSPExtensionServletWrapper.java:226)
    at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:131)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:308)
    at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
    at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
    at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
    at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
    at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
    at com.unyric.cias.cm.web.filter.ThreadContextSessionIntegrationFilter.doFilter(ThreadContextSessionIntegrationFilter.java:46)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
    at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at com.unyric.cias.cm.web.filter.CiasIntegrationFilter.doFilter(CiasIntegrationFilter.java:112)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:193)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
    at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)I believe they are related, though I can't 100% say for sure. Any thoughts?

    I'm having the same problem, did you get any luck with this ?
    Thanks

  • MyFaces on OC4J 10.1.2.0.2 - JspParseException

    I just completed an application and it works fine at my test server (Win2003).
    Deploying the very same EAR-file at the production server went smooth, but calling any page returns the following error:
    500 Internal Server Error
    OracleJSP: oracle.jsp.parse.JspParseException: Line # 7, <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    Error: oracle.xml.parser.v2.XMLParseException ( /index.jsp ):
    line #:3 column #:48 : FIXED type Attribute value not equal to the default value 'http://java.sun.com/xml/ns/j2ee'.
    line #:4 column #:14 : Attribute 'xmlns:xsi' used but not declared.
    line #:5 column #:23 : Attribute 'xsi:schemaLocation' used but not declared.
    line #:6 column #:12 : Attribute 'version' used but not declared.
    line #:8 column #:15 : Invalid element 'description' in content of 'taglib', expected elements '[tlibversion]'.
    line #:8 column #:15 : Element 'description' used but not declared.
    line #:9 column #:16 : Invalid element 'display-name' in content of 'taglib', expected elements '[tlibversion]'.
    line #:9 column #:16 : Element 'display-name' used but not declared.
    line #:10 column #:16 : Invalid element 'tlib-version' in content of 'taglib', expected elements '[tlibversion]'.
    line #:10 column #:16 : Element 'tlib-version' used but not declared.
    line #:11 column #:14 : Invalid element 'short-name' in content of 'taglib', expected elements '[tlibversion]'.
    line #:11 column #:14 : Element 'short-name' used but not declared.
    line #:12 column #:7 : Invalid element 'uri' in content of 'taglib', expected elements '[tlibversion]'.
    line #:14 column #:13 : Invalid element 'validator' in content of 'taglib', expected elements '[tlibversion]'.
    line #:14 column #:13 : Element 'validator' used but not declared.
    line #:15 column #:17 : Element 'description' used but not declared.
    line #:18 column #:21 : Element 'validator-class' used but not declared.
    line #:23 column #:7 : Invalid element 'tag' in content of 'taglib', expected elements '[tlibversion]'.
    line #:24 column #:17 : Invalid element 'description' in content of 'tag', expected elements '[name]'.
    line #:24 column #:17 : Element 'description' used but not declared.
    I have another application running fine at this server - using the same technology, but older versions (MyFaces 1.1.1 vs. 1.1.3, Tomahawk 1.1.1 vs. 1.1.2).
    I'm stuck - could anybody push me out?
    thx

    Has anyone had any luck with this yet? I'm running into a similar situation with a webapp using Tomahawk 1.1.3 on OC4J 9.0.4. The web browser returns the following exception:
    OracleJSP: oracle.jsp.parse.JspParseException: Line # 2, <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
    Error: oracle.xml.parser.v2.XMLParseException ( /test4.jsp ):
    line #:3 column #:48 : FIXED type Attribute value not equal to the default value 'http://java.sun.com/xml/ns/j2ee'.
    line #:4 column #:14 : Attribute 'xmlns:xsi' used but not declared.
    line #:5 column #:23 : Attribute 'xsi:schemaLocation' used but not declared.
    line #:6 column #:12 : Attribute 'version' used but not declared.
    line #:8 column #:15 : Invalid element 'description' in content of 'taglib', expected elements '[tlibversion]'.
    line #:8 column #:15 : Element 'description' used but not declared.
    line #:9 column #:16 : Invalid element 'display-name' in content of 'taglib', expected elements '[tlibversion]'.
    line #:9 column #:16 : Element 'display-name' used but not declared.
    line #:10 column #:16 : Invalid element 'tlib-version' in content of 'taglib', expected elements '[tlibversion]'.
    line #:10 column #:16 : Element 'tlib-version' used but not declared.
    line #:11 column #:14 : Invalid element 'short-name' in content of 'taglib', expected elements '[tlibversion]'.
    line #:11 column #:14 : Element 'short-name' used but not declared.
    line #:12 column #:7 : Invalid element 'uri' in content of 'taglib', expected elements '[tlibversion]'.
    line #:14 column #:13 : Invalid element 'validator' in content of 'taglib', expected elements '[tlibversion]'.
    line #:14 column #:13 : Element 'validator' used but not declared.
    line #:15 column #:17 : Element 'description' used but not declared.
    line #:18 column #:21 : Element 'validator-class' used but not declared.
    line #:23 column #:7 : Invalid element 'tag' in content of 'taglib', expected elements '[tlibversion]'.
    line #:24 column #:17 : Invalid element 'description' in content of 'tag', expected elements '[name]'.
    line #:24 column #:17 : Element 'description' used but not declared.
    The funny thing in my case is that the application works like a champ on 10.1.2 and also on my local instance of 9.0.4 standalone. My mind is sufficiently boggled.

  • Error on using MyFaces component

    Hy all,
    I don't know if someone as already tested to work with JSF and MyFaces on its WebAS.
    In fact I've started by developping a simple JSF page
    and next I would like to add some sweet component  by using MyFaces and Tomawakh.
    For the JSF page, no problem, it rulez, but, when I <b>just</b> add "myfaces-api-1.1.3.jar" and
    "my-faces-impl-1.1.3.jar" and deploy it to my server.
    No error during deploying but when I'm trying to open a
    JSF page I get this long error :
    #1.5#000D606F6C2B0026000000270000137800041B1DE87681AB#1155715175094#com.sap.engine.services.servlets_jsp.server.jsp.JSPParser#sap.com/NewsDisplayJSFApp#com.sap.engine.services.servlets_jsp.server.jsp.JSPParser#Guest#2####2839db702cfd11db94ff000d606f6c2b#SAPEngine_Application_Thread[impl:3]_12##0#0#Error#1#/System/Server#Plain###Runtime error in compiling of the JSP file <D:/usr/sap/DEP/JC00/j2ee/cluster/server0/apps/sap.com/NewsDisplayJSFApp/servlet_jsp/newsDisplayJSF/root/NewsError.jsp> !
    The error is: java.lang.NullPointerException: null
    Exception id: [000D606F6C2B0026000000260000137800041B1DE8767EC8]#
    #1.5#000D606F6C2B0026000000280000137800041B1DE8768B06#1155715175094#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#sap.com/NewsDisplayJSFApp#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#Guest#2####2839db702cfd11db94ff000d606f6c2b#SAPEngine_Application_Thread[impl:3]_12##0#0#Error##Plain###Processing HTTP request to servlet [Faces Servlet] finished with error. The error is: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: Internal error while parsing JSP page [D:/usr/sap/DEP/JC00/j2ee/cluster/server0/apps/sap.com/NewsDisplayJSFApp/servlet_jsp/newsDisplayJSF/root/NewsError.jsp].
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:117)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.getClassName(JSPServlet.java:238)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.compileAndGetClassName(JSPServlet.java:429)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:169)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:316)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:372)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:117)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:62)
         at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:64)
         at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:224)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:373)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: java.lang.NullPointerException
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.validate(JSPParser.java:235)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.initParser(JSPParser.java:348)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:105)
         ... 30 more
    I mean, in each JSP page I'm trying to use those standard taglib :
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    It crashes.
    I've try to add in my web-inf/lib some jar like : servlet_api.jar, servlet.jar, and so on but nothing seam to be working.
    I've also try to define the extensionFilter of myfaces in my web.xml but it doesn't help me
    Anyone has an idea ? I'll give reward
    Thx.

    Hy,
    try do do this:
    1) extract the JSF Tag-Lib's from the Jar-File in a folder under the WebContent folder (in my example named as "tld")
    2) Add some TagLib- Entries in the WEB.XML like this:
    <taglib>
       <taglib-uri>http://java.sun.com/jsf/core</taglib-uri>
       <taglib-location>tld/jsf_core.tld</taglib-location>
    </taglib>
      <taglib>
       <taglib-uri>http://java.sun.com/jsf/html</taglib-uri>
       <taglib-location>tld/html_basic.tld</taglib-location>
    </taglib>
    <taglib-uri> ist the URL that you use in the JSF Pages and <taglib-location> is the location of the expanded Tag-Libary.
    The example above ist based on the Sun-Faces components but it works in the same way for Myfaces oder for the Oracle ADF faces.
    Instead of the both Jar's myFaces-api and mafaces-imp I have use the myfaces-all.jar.
    I hope this informatin will help you.

  • Getting MyFaces jsCookMenu to work in JDEV?

    I am trying to get the MyFaces jsCookMenu to work in Jdev but it keeps generating a blank page in the browser (view source shows the div and javascripts are there and I get no errors). My source is as follows, any suggestions appreciated:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:x="http://myfaces.apache.org/extensions">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <title> menuTest </title>
    <script language="JavaScript" src="jscookmenu/JSCookMenu.js" type="text/javascript"/>
    <script language="JavaScript" src="jscookmenu/ThemeOffice/theme.js"/>
    <link rel="stylesheet" href="jscookmenu/ThemeOffice/theme.css" type="text/css"/>
    </head>
    <body>
    <x:jscookMenu layout="hbr" theme="ThemeOffice">
    <x:navigationMenuItem itemLabel="Clients"/>
    </x:jscookMenu>
    </body>
    </html>
    </f:view>
    </jsp:root>
    The jscookmenu directory (and contents) are in my public_html directory and myfaces-extensions.jar is in WEB-INF/lib

    Poking around recommendations for installing MyFaces in other IDEs I figured out I should copy commons-fileupload-1.0.jar into WEB-INF/lib and add the following to my web.xml:
    <!-- Extensions Filter -->
    <filter>
            <filter-name>extensionsFilter</filter-name>
            <filter-class>
                    org.apache.myfaces.component.html.util.ExtensionsFilter
            </filter-class>
            <init-param>
                    <description>
                            Set the size limit for uploaded files. Format: 10 - 10
                            bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
                    </description>
                    <param-name>uploadMaxFileSize</param-name>
                    <param-value>100m</param-value>
            </init-param>
            <init-param>
                    <description>
                            Set the threshold size - files below this limit are
                            stored in memory, files above this limit are stored on
                            disk.
                            Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
                    </description>
                    <param-name>uploadThresholdSize</param-name>
                    <param-value>100k</param-value>
            </init-param>
            <!--
            <init-param>
                    <param-name>uploadRepositoryPath</param-name>
                    <param-value>/temp</param-value>
                    <description>Set the path where the intermediary files will be stored.
                    </description>
            </init-param>
            -->
    </filter>
    <filter-mapping>
            <filter-name>extensionsFilter</filter-name>
            <url-pattern>*.faces</url-pattern>
    </filter-mapping>
    <filter-mapping>
            <filter-name>extensionsFilter</filter-name>
            <url-pattern>/faces/*</url-pattern>
    </filter-mapping>Unfortunately the last filter-mapping above appears to mess up the modal dialog capability in ADF (all modal dialogs contain only <HTML><BODY></BODY><HTML>).
    Also I still could not get the actions defined on my <x:jscookMenu> entries to fire (the form is submitted and the page reloads but the action functions are never invoked nor do any navigation rules fire).
    Can anyone recommend another set of menu components they have used successfully with ADF Faces?

  • MyFaces in JDeveloper 10.1.3.0.3 EA1

    I was using the JSCookMenu from MyFaces (ver. 1.0.9) in JDeveloper preview addition 10.1.3.0.2
    I am now trying to use JSCookMenu from MyFaces (ver. 1.1.0) in JDeveloper 10.1.3.0.3 EA1.
    The page loads in IE without the menu, status bar says "done, but with errors on page"
    Has anyone encountered this error in the new EA release of JDeveloper?

    Hi,
    what is teh exact error message you are getting? is it a Javascript error ?
    Frank

  • h:form problem with myfaces 1.1.4

    Hi,
    I have a jsf page whose body is wrapped by tag <h:form>. This seems to be necessary with myfaces 1.1.4.
    My page contains:
    1 - A "sign out" commandLink which simply logs out current logged user
    2 - an inputText tag, bound to a validation method of a backinbg bean, that verifies if inserted text is a valid email or not.
    When I insert an invalid email address in the input text and press "sign out", the "email address not valid" message it's showed, and signout performs only when I insert a valid address!
    This is not good, as signiing out must not have any relation with form validation.
    Can anyone help me ?
    Pietro

    A form is required around any input and command components (ones that need a HTML form rendered to the client). You can have multiple forms per page.
    When the user does something that submits the page, only the surounding form is actually submitted. So in your example you want to use seperate forms for the logout link and the email input.
    So for example:
    <h:form id="logoutForm">
       ... logout link here ...
    </h:form>
    <h:form id="emailForm">
    ... email input stuff here ...
    </h:form>

  • Richfaces fileupload with myfaces 1.1.5. Cant make it work

    Hello ,
    I am a newbie to jsf technologies. I use myfaces 1.1.5 with tomcat 5.5 and richfaces 3.2.0 and trying to use richfaces fileupload component. I use netbeans IDE. When i try to run the project it fails building the project and the error in tomcat log is like below.
    16.Tem.2008 11:11:47 org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    java.lang.NoClassDefFoundError: javax/faces/component/ActionSource2
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
            at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1853)
            at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:875)
            at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1330)
            at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
            at java.lang.Class.getDeclaredConstructors0(Native Method)
            at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
            at java.lang.Class.getConstructor0(Class.java:2699)
            at java.lang.Class.newInstance0(Class.java:326)
            at java.lang.Class.newInstance(Class.java:308)
            at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:896)
            at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:945)
            at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:426)
            at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:348)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
            at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1116)
            at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1214)
            at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
            at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306)
            at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
            at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
            at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
            at java.lang.Thread.run(Thread.java:619)I guess it is about the expression language i use in my jsp page. I made it work with jsf 1.2 and tomcat 6.0. But i need to do it with tomcat 5.5 now. Is the expression language different with servlet 2.4 version ? My jsp page is below :
    <%--
        Document   : main
        Created on : 15.Tem.2008, 17:38:00
        Author     : brhn
    --%>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
    <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body>
            <f:view>
                <h:form id="fileUpload" enctype="multipart/form-data">
                    <rich:fileUpload                  
                        acceptedTypes="txt"
                        maxFilesQuantity="2"
                        uploadData="${upload_backing.data}"
                        fileUploadListener="${upload_backing.fileUploadListener}"
                    />
                </h:form>
            </f:view>
        </body>
    </html>and my web.xml is this
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
            <welcome-file>index.jsp</welcome-file>
            </welcome-file-list>
            <context-param>
            <param-name>org.richfaces.SKIN</param-name>
            <param-value>blueSky</param-value>
        </context-param>
        <filter>
            <display-name>RichFaces Filter</display-name>
            <filter-name>richfaces</filter-name>
            <filter-class>org.ajax4jsf.Filter</filter-class>
        </filter>
        <filter-mapping>
            <filter-name>richfaces</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>REQUEST</dispatcher>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>INCLUDE</dispatcher>
        </filter-mapping>
        </web-app>I cant get what is the problem. Anyone has any idea ? I really need to make this work.

    Yea i solved the problem. I mean at least i know what is the problem :) As you said richfaces 3.2.0 is not working with jsf 1.1. Richfaces 3.1.6 works fine with it. But the funny thing is there is no file upload component in 3.1.6 version :) So, i am using myfaces.

  • ADF , MyFaces problem

    Anyone help me on this, Please.
    I got an Error org.apache.myfaces.application.ApplicationImpl - Undefined component type oracle.adf.CoreCommandButton.
    Is there any web.xml that I can follow to make ADF work with Myfaces?
    Thanks

    You need to use at least MyFaces 1.0.8:
    http://incubator.apache.org/myfaces/downloads.html
    -- Adam Winer (ADF Faces)

  • What's the relationship between JSF api, JSFRI, Myfaces API, Myfaces impl

    JSF RI is an implementation of JSF reference, so is Myfaces impl, right?
    i just confused about the two APIs, could anyone explain it for me.
    thanks!

    JSF is a specification.
    Sun Mojarra is an implementation of the JSF specification.
    Sun JSF RI (Reference Implementation) is an old name of Mojarra, used up to 1.2_07.
    Apache MyFaces is another implementation of the JSF specification.
    You cannot mix multiple implementations with each other. You can however add any component library to your taste on top of a JSF implementation, e.g. Apache Tomahawk, JBoss RichFaces, IceFaces, etcetera.

  • Help me out to get the jar files for FileUpload using MyFaces.

    hi,
    Can anyone help to get the jar files for FileUpload using MyFaces.
    I want myfaces-extensions.jar and commons-fileupload-1.0.jar.
    Thank you.

    you can't control the speed of a for-loop.
    you can remove your code from a for-loop and use a function to execute the code in your for-loop and you control how frequently you call the function.

  • JSF, MyFaces and accessibility

    Apologies for this question which seems like it really ought to be a matter for Google - I've looked but not found much of use.
    Does anyone have any links or resources which discuss providing accessibilty when implementing a JSF/MyFaces site? I've really only just picked up JSF so my knowledge is far from in-depth; at the moment I'm looking more for a high level appraisal of how accessible JSF pages can be made (and how expensive it is to achieve that) than the details of actually how to do it.
    Essentially I'd like to know whether the adoption of JSF and MyFaces is going to lead to a major headache in this regard. Similar information regarding standards compliance would be a bonus.
    Thanks.

    My understanding is that JSF specification is compatible with accessibility guidelines but I would like to point that JSF is a specification not an implementation.
    Having said that, AJAX and most of the implementation sout there today are NOT compatible with accessibility guidelines.
    I believe that WCAG 1.0 says any javascript != accessiblity while WCAG 2.0 has backed off a bit. Point being most RIA applications are not accessible.
    Since I have never desiged an accessible site I cannot speak to all of the difficulties. Like I said you would have to look at the JSF implementation you were using for additional details, I assume core JSF is compatible with accessibility guidelines.

  • MyFaces'  JspTilesViewHandlerImpl   &   dynamic component rendering

    Hi,
    First -- if you're on the myfaces user list, this is a repeat post. Skip!
    Second, I don't mean to offend the RI dev guys with this myfaces post!
    Has anyone dynamically rendered JSF components while using myfaces� JspTilesViewHandlerImpl view handler?
    I have a WebGalileoFaces tabbed panel component. Its listener attaches sub-tabs to it dynamically. The rendering works without using the view handler above. Yet, when I use the myfaces handler, I get an NPE. My listener impl is below.
    The view handler appears to cut off access to the actual UIViewRoot so the form cannot be found. I�ve tried a couple calls directly to the handler using context.getApplication().getViewHandler() yet, none of the methods gave me access to it (well, that I could figure out).
    Ideas anyone?
    Thanks
    Lorinda
        public void processTabSelected(TabSelectedEvent event)
                throws AbortProcessingException {
            context = FacesContext.getCurrentInstance();
            // who sent the event?
            FacesTabbedPanel eventSource = (FacesTabbedPanel) event.getSource();
            UIComponent tabbedPanel = event.getComponent();
            String tabName = tabbedPanel.getId();
            String formId = tabbedPanel.getParent().getId();
            LOG.info("Tab selected:   " + tabName);
            LOG.info("Parent form:   " + formId);
         UIForm form = (UIForm) context.getViewRoot().findComponent(formId);             
    NPE HERE ----  UIPanel panel =  (UIPanel) form.findComponent("childTabsGrid");
    // NOTE:  the childTabsGrid must be used to attach children.
            if (panel == null) {
                LOG.error("PanelGrid   'childTabsGrid'   could not be found.  ");
            } else {
    //  ATTACH SUB TABS
                // clear the childTabsGrid to prevent stacking child tabs      
                panel.getChildren().clear();
              ListSelectionModel selectionModel = eventSource.getListSelectionModel();
               UIComponent newTabbedPanel = createSubTabbedPanel(selectionModel);
               panel.getChildren().add(newTabbedPanel);
            }

    Yes, i have created a complete portal page using a custom portal tab and JspTilesViewHandlerImpl with all components dynamically rendered and inserted by tiles: dynamic partal tabs, i18n implementation for mesages and SelectItems, dynamically change company layout with its own look-and-feel if a requested information belongs to a company (division, department, branch office, etc). There is some abnormality and how i go around to get the solution up and running. I will post the details in myfaces dev list in the next couple days.
    In essence, the navigation page dispatched by JspTilesViewHandlerImpl works properly with all Jsf UI components. However, within this tile definition and its own layout, any fragment inserted by tiles such as portlets in the left/right columns and the display fragment does not have jsf <h:commandButton> and <h:commandLink> correctly picked up the action while <h:outputLink> properly linked to the intended page.
    I temporarily solve the issue to get the portal up and running. However, this is only a temporary solution since it will severly limit a complete integration of Jsf+Tiles. A complete solution needs to be addressed, which i thing myfaces developers can quickly patch it.
    BaTien
    DBGROUPS

  • How to reset the calendar from myfaces?

    I want to realize a "logoff" feature on my main jsp page. And that page contains a calendar component.
    I simply "redirect" main page to the login page by return a string, however when I login again, the calendar is still like the one of the last login action. Eg: in first login action, I change the current month in the calendar to January, and then I log off. After next login, the month stays January, instead of the current month!
    I tried to reset the members of backing bean, it remains the same.
    I use the component calendar from myfaces, does anyone know how to solve this problem, or simply, how to reset the component calendar?
    Thanks!
    db

    let the thread die, i got it......

Maybe you are looking for

  • Outlook won't load

    My computer crashed and I had to reinitialize it. Win 8.1 In setting it back up, I have logged into my 365 bus premium account and tried to set up the outlook on my desktop. I posted this question in the business 365 page and THEY told me to post it

  • An FSCommand Question

    I've used the FSCommand to make my presentation run in full screen. The .swf file runs in full screen when executed locally in a browser. But when run from the Internet, the same .swf runs in a window. What would be causing it to work locally but not

  • Query.setMaxRows(10) Error .......

    I got the following error when I tried to use: ReadAllQuery query = new ReadAllQuery(); query.setMaxRows(10); It seems that TopLink formed a SQL that my Oracle DB (10g) does not like for ...... and rownum <= 10 Please help..... Exception [TOPLINK-400

  • JBO-27101: Attempt to access dead entity in MfgRmItems, key=oracle.jbo.Key[

    I was hoping someone would be able to help me with this error. JBO-27101: Attempt to access dead entity in MfgRmItems, key=oracle.jbo.Key[001122 ] I'm using ADF and Struts and get this error when I try to delete a record. When I hit the delete button

  • Satellite P300 (PSPC4E) - BIOS is corrupted

    I have some trouble with my Toshiba Satellite P300 (PSPC4E). The BIOS is corrupted and I'm trying to recover it. I've disconnected the battery, HDD and DVD. I successfully created an USB boot disk using HP USB Tool and CrisDisk. It was empty after I