ExtensionsFilter with t:inputHtml

Hi all,
it looks like my extension filter is not configured well to make my tomahawk inputHtml work. When I try to open the page, I get the following 500 error:
java.lang.IllegalStateException: ExtensionsFilter not correctly configured. Resource mapping missing. Resources cant be delivered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
     at org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371)
     at org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:352)
     at org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288)
     at org.apache.myfaces.custom.inputHtml.InputHtmlRenderer.encodeEndNormalMode(InputHtmlRenderer.java:240)
     at org.apache.myfaces.custom.inputHtml.InputHtmlRenderer.encodeEnd(InputHtmlRenderer.java:87)
     at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:740)
     at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:645)
     at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:568)
     at _dynamic._info._jspService(_info.java:120)Here follows my extension filter:
    <filter>
        <filter-name>ExtensionsFilter</filter-name>
        <filter-class>
            org.apache.myfaces.webapp.filter.ExtensionsFilter
        </filter-class>
        <init-param>
            <param-name>uploadMaxFileSize</param-name>
            <param-value>40m</param-value>
        </init-param>
        <init-param>
            <param-name>uploadThresholdSize</param-name>
            <param-value>100k</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>ExtensionsFilter</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>ExtensionsFilter</filter-name>
        <url-pattern>/static/*</url-pattern>
    </filter-mapping>Has anyone experience this before?
Thank you very much

Hi
I am also facing the same issue.Appriciate if you provide more info about what to change in web.xml
Thanks in Advance

Similar Messages

  • Having trouble with Tomahawk inputHTML

    I'm having weird results when trying to use the Tomahawk <t:inputHTML> tag. It throws malformed control objects all over the screen. In the Javascript error console, I get the error: "myFacesKupuSet is not defined" and "myFacesKupuReactivateDesignMode is not defined."
    I'm either missing a library or I have a library that conflicts with Tomahawk. Other Tomahawk tags work fine.
    My recipe is:
    GlassFish 2.1. (This runs the RI JSF not the MyFaces version)
    Facelets 1.1.14
    Tomahawk-1.1.9
    IDE is NetBeans 6.7 (I don't think that's a factor).
    I've tried to find the "Kupu" library but it doesn't seem to be available anywhere as a separate item. Also the outfit that originated it (www.oscom.org) seems to be out of business.
    Any suggestions?

    BalusC wrote:
    Is the Tomahawk's ExtensionsFilter properly configured and initialized?Looks like you hit it out of the park. I was fooled because the installation would run some Tomahawk tags but not others. Thanks again BalusC.
    For anyone else looking at this: When I figured out the right filter settings, I found I had to import two Apache commons libraries I didn't have before: commons-io and commons-fileupload.

  • Can you help me with these exceptions??

    Hi guys,
    from sunday i try to eliminate these exceptions from my jsf application and i've lost any confidence in my possibility to realize it.....
    It's surely a simple problem but i'm a newbie of jsf and java.
    These are the exadel msg
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: #{MyBean.retrieveblob}: javax.faces.el.EvaluationException: java.lang.NullPointerException
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
         org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
    root cause
    javax.faces.FacesException: #{MyBean.retrieveblob}: javax.faces.el.EvaluationException: java.lang.NullPointerException
         com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)
         javax.faces.component.UICommand.broadcast(UICommand.java:312)
         javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
         javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
         com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
    ant these are the files
    MyBean.java
    package giu;
    import org.apache.myfaces.custom.fileupload.UploadedFile;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.StringTokenizer;
    import java.util.Vector;
    public class MyBean {
         private UploadedFile myFile;
         private String geneid=null;
        private int row=0;
        private int numberOfNumericColumns=0;
        private int col=0;
        String[]intest=null;
        private ArrayList rows = new ArrayList();
        Head h;
        byte middlerow=' ';
        byte endrow=';';
        byte[] data=null;
        Vector temp=new Vector(100000);
        String g=null;
        Riga r;
        Double val[];
        private String[] arraylinee;
        public boolean insRighe(Riga nuovo){
               return rows.add(nuovo);
        public List stampaRows(){
             return rows;}
        public Head stampaHead(){
             return h;}
        public byte[] getdata(){
             return data;
        public UploadedFile getMyFile() {
            return myFile;
        public void setMyFile(UploadedFile myFile) {
            this.myFile = myFile;
        public int getcol(){
             return col;
        public void setcol(int col){
             this.col=col;
        public int getrow(){
             return row;
        public void setrow(int row){
             this.row=row;
        public String[] getarraylinee(){
             return arraylinee;
        public void setarraylinee(String[] arraylinee){
             this.arraylinee=arraylinee;
    public String retrieveblob(){
              Database2 db = new Database2("nomeDB","root","shevagol");     
              try
              Connection dbo=db.getConnection();
              System.out.println("eccezione buona2");
                   System.out.println("eccezione buona2,5");
                   Statement st = dbo.createStatement();
                   System.out.println("eccezione buona3");
                   ResultSet rs;
                   rs = st.executeQuery("SELECT Data FROM tbl WHERE Nome='16'");
                   rs.first();
                   Blob blob = rs.getBlob("Data");
                   byte[] read = blob.getBytes(1, (int) blob.length());
                   st.close();
                   String lettura=new String(read);
                   String[] arraylinee=lettura.split(";");
                   /*for (int i = 0; i < arraylinee.length; i++) {
                     System.out.println(arraylinee);
              catch(SQLException e)
                   System.out.println("Si � verificato il seguente errore: " + e.getMessage());
                   e.printStackTrace();
              return "retrOk";
    This is my result.jsp page
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ page import="giu.MyBean" %>
    <%-- Instantiate class --%>
    <jsp:useBean id="myBean" class="giu.MyBean" scope="request"/>
    <html>
         <head>
              <title></title>
         </head>
         <body>
              <f:view>
                   <c:forEach items="${myBean.arraylinee}" var="linea" >
    <tr>
    <td>
    <c:out value="${linea}" />
    </td>
    </tr>
    </c:forEach>
              </f:view>
         </body>     
    </html>
    and these are 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>
         <context-param>
              <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
              <param-value>client</param-value>
         </context-param>
         <filter>
              <filter-name>ExtensionsFilter</filter-name>
              <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
              <init-param>
                   <param-name>uploadMaxFileSize</param-name>
                   <param-value>100m</param-value>
              </init-param>
              <init-param>
                   <param-name>uploadThresholdSize</param-name>
                   <param-value>100k</param-value>
              </init-param>
         </filter>
         <filter-mapping>
              <filter-name>ExtensionsFilter</filter-name>
              <servlet-name>FacesServlet</servlet-name>
         </filter-mapping>
         <servlet>
              <servlet-name>FacesServlet</servlet-name>
              <servlet-class>
              javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
         </servlet>
         <servlet-mapping>
              <servlet-name>FacesServlet</servlet-name>
              <url-pattern>/faces/*</url-pattern>
         </servlet-mapping>
         <servlet-mapping>
              <servlet-name>FacesServlet</servlet-name>
              <url-pattern>*.faces</url-pattern>
         </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.jsp</welcome-file>
         </welcome-file-list>
    </web-app>
    and faces-config.xml
    <?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>
    <managed-bean>
      <managed-bean-name>MyBean</managed-bean-name>
      <managed-bean-class>giu.MyBean</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
      <from-view-id>/pages/MyForm.jsp</from-view-id>
      <navigation-case>
       <from-outcome>success</from-outcome>
       <to-view-id>/pages/MyResult.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    <navigation-rule>
      <from-view-id>/pages/Login.jsp</from-view-id>
      <navigation-case>
       <from-outcome>Ok</from-outcome>
       <to-view-id>/pages/Menu.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    <navigation-rule>
      <from-view-id>/pages/Menu.jsp</from-view-id>
      <navigation-case>
       <from-outcome>upload</from-outcome>
       <to-view-id>/pages/MyForm.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
       <from-outcome>admin</from-outcome>
       <to-view-id>/pages/UserForm.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
       <from-outcome>view</from-outcome>
       <to-view-id>/pages/ViewForm.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
       <from-outcome>register</from-outcome>
       <to-view-id>/pages/Register.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    <navigation-rule>
      <from-view-id>/pages/ViewForm.jsp</from-view-id>
      <navigation-case>
       <from-outcome>Result</from-outcome>
       <to-view-id>/pages/Result.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    </faces-config>I hope someone can helps me...............
    P.S.
    Can someone says me a good program to debug my applications...?
    I try with exadel but i find it bit intuitive....

    I don't know JSF, but it appears you haven't included part of your application - the one causing the error with the line: #{MyBean.retrieveblob}
    I would assume the error is that you instantiate the bean with the name "myBean" (<jsp:useBean id="myBean" class="giu.MyBean" scope="request"/>) then refer to it as "MyBean". Java is case sensitive.

  • Threading problem during File Upload with Apache faces upload tag

    First I am going to tell you "My Understanding of how JSF Apache Upload works, Correct me if i am wrong".
    1) Restores View (to show Input box and Browse button to facilitate users to select a file for upload)
    2) Translates Request Parameters to Component Values (Creates equivalent components to update them with request values).
    3) Validates Input(Checks to see whether the User has input the correct file)
    4) Updates Backing Bean or Model to reflect the values.
    5) Renders response to user.
    I am uploading huge files of sizes 400MB and above with the help of JSF apache extensions tag
    <h:form id="uploadForm" enctype="multipart/form-data">
    <x:inputFileUpload style="height:20px;" id="upload" value="#{backingbean.fileContents}" storage="file" size="50" />
    </h:form>
    In the backing bean
    private UploadedFile fileContents;
         public UploadedFile getFileContents() {
              return fileContents;
         public void setFileContents(UploadedFile fileContents) {
              System.out.println("File being uploaded...");
              this.fileContents = fileContents;
    Since, the file size is so huge, I am using temp folder to use for the apache tag instead of memory.
    In web.xml i am using like this
    <filter>
    <filter-name>ExtensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
    <init-param>
    <param-name>uploadMaxFileSize</param-name>
    <param-value>600m</param-value>
    </init-param>
    <init-param>
    <param-name>uploadThresholdSize</param-name>
    <param-value>10m</param-value>
    </init-param>
         <init-param>
    <param-name>uploadRepositoryPath</param-name>
    <param-value>/uploadfolder/</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>ExtensionsFilter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    The upload process is working perfectly fine.
    Now coming to the problem:
    Suppose one user is logging into the application & uploading say 400MB of files.
    Until these files are linked to the model objects as my understanding of step 2, if second user tries to open the application he gets stuck with the loading page.
    The page gets loaded only after the request files are linked to the component values(Step 2 above) and updates the backing bean's values.
    I don't see any error in the logs. User is getting stuck. The user is getting stuck only when uploading the files. The other operations like searching are not blocking any other activities performed by the user.
    Server used: IBM Application Server V6.0. CPU is normal, memory usage is normal.

    Dear friend,
    i am also trying to upload using the common file upload.
    when try to run the file error is coming
    can give some suggestion.
    can i use if concurrent user file upload at a time

  • Problems with Java and Business Objects

    <p>Hello everybody,<br /><br />I&#39;m new in BusinessObjects/Crystal Report. Now, I have some problems with Business Objects for Java (Business Objects XI Release 2 Developer).</p><p> </p><p>1)  I create a report in the report designer. This report has a parameterfield. Before I run this report within a jsp web application I want fill the parameterfield with some values from the database. I found the following code snippet for this problem in your forum. But it don&#39;t works right, because it occurs a simple input field instead of a combo box with my database values. Where is my mistake? I need the combo box! (In debug mode I saw that the parameterfield was filled with my data!)</p><p><%@page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,com.crystaldecisions.sdk.occa.report.application.ReportClientDocument,<br />com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,<br />com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,<br />java.io.IOException,<br />java.sql.Connection,<br />java.sql.DriverManager,<br />java.sql.ResultSet,<br />java.sql.SQLException,<br />java.sql.Statement,<br />java.util.Locale,<br />com.crystaldecisions.sdk.occa.report.application.DataDefController,<br />com.crystaldecisions.sdk.occa.report.data.FieldDisplayNameType,<br />com.crystaldecisions.sdk.occa.report.data.ParameterField,<br />com.crystaldecisions.sdk.occa.report.data.ParameterFieldDiscreteValue,<br />com.crystaldecisions.sdk.occa.report.data.Values,<br />com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%><%<br /><br />    try {<br /><br />        String reportName = "avoParameterfeld.rpt";<br />        ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);<br /><br />        if (clientDoc == null) {<br />            // Report can be opened from the relative location specified in the CRConfig.xml, or the report location<br />            // tag can be removed to open the reports as Java resources or using an absolute path<br />            // (absolute path not recommended for Web applications).<br /><br />            clientDoc = new ReportClientDocument();<br />            clientDoc.setReportAppServer("inproc:jrc");<br />            // Open report<br />            clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);<br /><br />             // Connection Info for fetching the resultSet<br />            String connectStr = "jdbc:oracle:thin:@it1srv19:1521:itoracle";<br />            String driverName = "oracle.jdbc.driver.OracleDriver";<br />            String userName = "user";        <br />            String password = "password";    <br /><br />            // TODO: Ensure this query is valid in your database. An exception will be thrown otherwise.<br />            String query = "SELECT DISTINCT AVONR FROM MBDEADM.AVO ORDER BY AVONR";<br />            ResultSet paramData = null;<br />           <br />            //we will now pass the resultset to the parameter to use as Default Values<br />            String parameterName = "AVONR2";<br />            int colIndex = 1; //this is the column in the ResultSet to use as the values<br />           <br />//            Load JDBC driver for the database that will be queried   <br />            Class.forName(driverName);<br /><br />            Connection connection = DriverManager.getConnection(connectStr, userName, password);<br />            Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE , ResultSet.CONCUR_READ_ONLY);<br />           <br />            paramData = statement.executeQuery(query);<br />           <br />            DataDefController dataDefController = clientDoc.getDataDefController();<br />           <br />            ParameterField origParamField = (ParameterField)dataDefController.getDataDefinition().getParameterFields().findField(parameterName, FieldDisplayNameType.fieldName, Locale.getDefault());<br />            ParameterField newParamField = (ParameterField)origParamField.clone(true);<br />           <br />            Values newVals = (Values)newParamField.getDefaultValues().clone(true);<br />            newVals.clear(); <br />            paramData.first();<br />            while(!paramData.isLast()){<br />                ParameterFieldDiscreteValue value = new ParameterFieldDiscreteValue();<br />                value.setValue(paramData.getObject(colIndex));<br />                newVals.add(value);<br />                paramData.next();<br />            }<br />            <br />            dataDefController.getParameterFieldController().modify(origParamField, newParamField);<br />            // Store the report document in session<br />            session.setAttribute(reportName, clientDoc);<br /><br />        }<br /><br />            // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** <br />            {<br />                // Create the CrystalReportViewer object<br />                CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();<br /><br />                //    set the reportsource property of the viewer<br />                IReportSource reportSource = clientDoc.getReportSource();               <br />                crystalReportPageViewer.setReportSource(reportSource);<br /><br />                // set viewer attributes<br />                crystalReportPageViewer.setOwnPage(true);<br />                crystalReportPageViewer.setOwnForm(true);<br /><br />                // Apply the viewer preference attributes<br /><br />                // Process the report<br />                crystalReportPageViewer.processHttpRequest(request, response, application, null);<br /><br />            }<br />            // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************       <br /><br />    } catch (ReportSDKExceptionBase e) {<br />        out.println(e);<br />    }<br />   <br />%><br /><br /><br /><br />2) In a other report I tried to update the data source used by the report at runtime. I used the method &#39;setDataSource(ResultSet rs, String oldTableAlias, String newTableAlias)&#39; of the &#39;DatabaseController&#39;. I got a message like this: &#39;At present in Java reporting Component does not implement&#39;. I use JRC and the docs (http://support.businessobjects.com/global/interactive/xi/om/JRC/default.html) show me this method. Is it not possible to change the data at runtime in JRC? (I tried it with the methods &#39;setDataSource(IXMLDataSet rs, String oldTableAlias, String newTableAlias)&#39;, &#39;setDataSource(Object newds)&#39;, &#39;setDataSource(IDataSet ds, String oldTableAlias, String newTableAlias)&#39;, too. But the result was the same!)<br /><br /><br /><br />3) I tried to use Business Objects in JSF framework (Ver MyFaces 1.1.3) with the same samples above. But in JSF nothing work! I got the following exception. What is my problem? Can you get me a tutorial for jsf/BusinessObjects?<br /><br />08:21:43,165 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception<br />javax.faces.FacesException: com.businessobjects.reports.sdk.JRCCommunicationAdapter<br />    at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:435)<br />    at org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:233)<br />    at org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:219)<br />    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)<br />    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)<br />    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<br />    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />    at de.itinformatik.mes.web.filter.SynchronizingFilter.doFilter(SynchronizingFilter.java:42)<br />    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br />    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />    at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)<br />    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br />    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />    at de.itinformatik.mes.web.ajax.aa.AAFilter.doFilter(AAFilter.java:54)<br />    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br />    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)<br />    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br />    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)<br />    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)<br />    at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)<br />    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)<br />    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)<br />    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)<br />    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)<br />    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)<br />    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)<br />    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)<br />    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)<br />    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)<br />    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)<br />    at java.lang.Thread.run(Thread.java:595)<br />Caused by: java.lang.ClassCastException: com.businessobjects.reports.sdk.JRCCommunicationAdapter<br />    at com.crystaldecisions.sdk.occa.report.application.ReportClientDocumentState.saveContents(Unknown Source)<br />    at com.crystaldecisions.sdk.occa.report.application.ReportClientDocumentState.save(Unknown Source)<br />    at com.crystaldecisions.xml.serialization.XMLObjectSerializer.save(Unknown Source)<br />    at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.writeExternal(Unknown Source)<br />    at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.writeExternal(Unknown Source)<br />    at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.writeExternal(Unknown Source)<br />    at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)<br />    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)<br />    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)<br />    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)<br />    at java.util.Hashtable.writeObject(Hashtable.java:813)<br />    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />    at java.lang.reflect.Method.invoke(Method.java:585)<br />    at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)<br />    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)<br />    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)<br />    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)<br />    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)<br />    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)<br />    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)<br />    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)<br />    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)<br />    at java.util.ArrayList.writeObject(ArrayList.java:569)<br />    at sun.reflect.GeneratedMethodAccessor669.invoke(Unknown Source)<br />    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />    at java.lang.reflect.Method.invoke(Method.java:585)<br />    at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)<br />    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)<br />    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)<br />    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)<br />    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)<br />    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)<br />    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)<br />    at java.util.ArrayList.writeObject(ArrayList.java:569)<br />    at sun.reflect.GeneratedMethodAccessor669.invoke(Unknown Source)<br />    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />    at java.lang.reflect.Method.invoke(Method.java:585)<br />    at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)<br />    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)<br />    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)<br />    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)<br />    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)<br />    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)<br />    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)<br />    at org.apache.myfaces.application.jsp.JspStateManagerImpl.serializeView(JspStateManagerImpl.java:590)<br />    at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedViewInServletSession(JspStateManagerImpl.java:493)<br />    at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:332)<br />    at org.apache.myfaces.taglib.core.ViewTag.doAfterBody(ViewTag.java:122)<br />    at org.apache.jsp.testCR_jsp._jspx_meth_f_view_0(org.apache.jsp.testCR_jsp:149)<br />    at org.apache.jsp.testCR_jsp._jspService(org.apache.jsp.testCR_jsp:83)<br />    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)<br />    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)<br />    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)<br />    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)<br />    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)<br />    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)<br />    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<br />    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)<br />    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)<br />    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)<br />    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)<br />    at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)<br />    ... 32 more<br /><br /><br />Thanks for your assistance <br /><br />Tosch</p>

    Which Business Objects are you referring to.
    MS .NET has a thing called Business Objects but they only work in .NET.

  • Problems with combination of ADF Faces, Tomahawk, Facelets and MyFaces

    Hello,
    I am trying to combine all things named in the Subject and run into several problems:
    1. ADF Render Kit forces the Tomahawk Components to be rendered in a wrong way or stop there functionality.
    Example 1: The clickable parts of the t:dataScroller Tag can not be accessed because an empty a Tag will be rendered after the outputText.
    Example 2: The t:commandSortHeader Tag can be clicked but the table content will not be sorted anymore.
    The given examples works if i remove the default-render-kit-id element from the faces-config.xml
    2. The ad:table Tag runs into an ClassCastException, only when I put a simple example code snipped into my xhtml file.
    Code snipped:
    <af:table>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Firstname"/>
    </f:facet>
    </af:column>
    <af:column>
    <f:facet name="header">
    <h:outputText value="Lastname"/>
    </f:facet>
    </af:column>
    </af:table>
    The stack trace look like this:
    java.lang.ClassCastException at oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer._renderRegularColumns(DesktopTableRenderer.java:1029)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer.renderSingleRow(DesktopTableRenderer.java:109)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.TableRenderer.encodeAll(TableRenderer.java:229)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer.encodeAll(DesktopTableRenderer.java:79)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:159)
         at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
         at oracle.adf.view.faces.component.UIXCollection.encodeEnd(UIXCollection.java:438)
         at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:54)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:232)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:255)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:65)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:147)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:159)
         at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:521)
         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 com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         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.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    I followed all steps for the ADF installation and the suggested steps for using ADF with Facelets.
    Used versions:
    - Oracle ADF Faces 10.1.3 Early Access
    - myFaces 1.1.1
    - Facelets 1.1.1
    - oc4j 10.1.2.0.2
    Has somebody try to use these things together, too?
    Thanks,
    Carsten

    Hi,
    Inside our fusion applications(ADF/Webcenter) using combination of JSTL and ADF Faces is good practice or pitfal?
    To suggest a a rule of thumb: Try ADF Faces on-board functionality first before reaching out to JSTL. The difference between JSF in general and JSTL is that the JSTL expressions are evaluated at page compile time wheras JSF expressions are evaluated deferred. This difference may have an impact to PPR refreshes and the data rendering (which in many cases I assume you can fix by setting the ADF Faces component content delivery to immediate instead of deferred). On a training slight I flagged JSTL with a "heads up" alert because of this
    Frank

  • Problem in Tiles2 intrigation with jsf when we keep jsp in folder location

    I have download “myfaces-example-tiles-1.1.10” from official apache web site. As it is code and I hvae create new one application it is working fine with java 1.5 and tomcat 6 in my eclipse.
    This example keep jsp file page1.jsp in root folder when we move this file in any other folder it geives error.
    When I put the home.jsp file in any folder it is given the error below are details what I have done and what I want and wht is the error.
    Error message which I got:
    An Error Occurred:
    javax.faces.FacesException
    Caused by:
    java.io.IOException - Error including path '/template/template.jsp'. java.lang.NullPointerException: context
    +- Stack Trace
    javax.faces.FacesException
    at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.renderTilesView(JspTilesTwoViewHandlerImpl.java:126)
    at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.renderView(JspTilesTwoViewHandlerImpl.java:110)
    at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:146)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:147)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
    at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:426)
    at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:255)
    at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.renderView(JspTilesTwoViewHandlerImpl.java:92)
    at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:146)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:147)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:349)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
    at java.lang.Thread.run(Unknown Source)
    Caused by: org.apache.tiles.TilesException: Error including path '/template/template.jsp'. java.lang.NullPointerException: context
    at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:427)
    at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
    at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.renderTilesView(JspTilesTwoViewHandlerImpl.java:124)
    ... 31 more
    Caused by: java.io.IOException: Error including path '/template/template.jsp'. java.lang.NullPointerException: context
    at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:201)
    at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
    at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
    ... 33 more
    This is the project struture:::----
    /MCMS/WebContent
    /MCMS/WebContent/common
    /MCMS/WebContent/common/footer.jsp
    /MCMS/WebContent/common/header.jsp
    /MCMS/WebContent/common/menu.jsp
    /MCMS/WebContent/css
    /MCMS/WebContent/css/tiles.css
    /MCMS/WebContent/images
    /MCMS/WebContent/images/logo.jpg
    /MCMS/WebContent/jsp
    /MCMS/WebContent/jsp/home.jsp
    /MCMS/WebContent/META-INF
    /MCMS/WebContent/template
    /MCMS/WebContent/template/template.jsp
    /MCMS/WebContent/WEB-INF
    /MCMS/WebContent/WEB-INF/lib
    /MCMS/WebContent/WEB-INF/tlds
    /MCMS/WebContent/WEB-INF/faces-config.xml
    /MCMS/WebContent/WEB-INF/struts-tiles.tld
    /MCMS/WebContent/WEB-INF/tiles.xml
    /MCMS/WebContent/WEB-INF/tiles-config_1_1.dtd
    /MCMS/WebContent/WEB-INF/web.xml
    /MCMS/WebContent/index.jsp
    This is the jar file which I am using in my proect:
    batik-awt-util-1.6-1.jar
    batik-ext-1.6-1.jar
    batik-gui-util-1.6-1.jar
    batik-util-1.6-1.jar
    commons-beanutils-1.7.0.jar
    commons-codec-1.3.jar
    commons-collections-3.2.1.jar
    commons-digester-1.8.jar
    commons-el-1.0.jar
    commons-fileupload-1.2.1.jar
    commons-io-1.3.2.jar
    commons-lang-2.4.jar
    commons-logging-1.1.1.jar
    commons-logging-api-1.1.jar
    commons-validator-1.3.1.jar
    jstl-1.2.jar
    myfaces-api-1.1.8.jar
    myfaces-impl-1.1.8.jar
    oro-2.0.8.jar
    standard-1.1.2.jar
    tiles-api-2.0.5.jar
    tiles-core-2.0.5.jar
    tiles-jsp-2.0.5.jar
    tomahawk-1.1.10.jar
    xmlParserAPIs-2.0.2.jar
    Web.xml:------
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
    <display-name>MCMS</display-name>
    <!-- Tiles ViewHandler config file -->      
    <context-param>      
    <description>Tiles configuration      
    definition files and a listener need to be defined.      
    the listener will initialize JspTilesViewHandlerImpl with tiles definitions.      
    </description>
    <param-name>tiles-definitions</param-name>      
    <param-value>/WEB-INF/tiles.xml</param-value>      
    </context-param>
    <filter>
    <filter-name>extensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.webapp.filter.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>
    </filter>
    <filter-mapping>
    <filter-name>extensionsFilter</filter-name>
    <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>extensionsFilter</filter-name>
    <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>SourceCodeServlet</servlet-name>
    <servlet-class>org.apache.myfaces.shared_tomahawk.util.servlet.SourceCodeServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/jsp/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>SourceCodeServlet</servlet-name>
    <url-pattern>*.source</url-pattern>
    </servlet-mapping>
    </web-app>
    faces-config.xml:---
    <?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>
    <application>
    <view-handler>org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl</view-handler>
    </application>
         <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>nav_page1</from-outcome>
    <to-view-id>/jsp/home.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    tiles.xml:---
    <!DOCTYPE tiles-definitions
    <!ENTITY % Boolean "(true|false)">
    <!ENTITY % ContentType "(string|template|definition|object)">
    <!ENTITY % ClassName "CDATA">
    <!ENTITY % RequestPath "CDATA">
    <!ENTITY % DefinitionName "CDATA">
    <!ENTITY % BeanName "CDATA">
    <!ENTITY % PropName "CDATA">
    <!ENTITY % Location "#PCDATA">
    <!ELEMENT tiles-definitions (definition+)>
    <!ELEMENT definition (icon?, display-name?, description?, put-attribute*, put-list-attribute*)>
    <!ATTLIST definition id ID #IMPLIED>
    <!ATTLIST definition preparer CDATA #IMPLIED>
    <!ATTLIST definition extends CDATA #IMPLIED>
    <!ATTLIST definition name CDATA #REQUIRED>
    <!ATTLIST definition role CDATA #IMPLIED>
    <!ATTLIST definition template CDATA #IMPLIED>
    <!ELEMENT put-attribute (#PCDATA)>
    <!ATTLIST put-attribute id ID #IMPLIED>
    <!ATTLIST put-attribute name CDATA #REQUIRED>
    <!ATTLIST put-attribute type (string|template|definition|object) #IMPLIED>
    <!ATTLIST put-attribute value CDATA #IMPLIED>
    <!ATTLIST put-attribute role CDATA #IMPLIED>
    <!ELEMENT put-list-attribute ( (add-attribute* | item* | bean* | add-list-attribute*)+) >
    <!ATTLIST put-list-attribute id ID #IMPLIED>
    <!ATTLIST put-list-attribute name CDATA #REQUIRED>
    <!ATTLIST put-list-attribute role CDATA #IMPLIED>
    <!ELEMENT add-attribute (#PCDATA)>
    <!ATTLIST add-attribute id ID #IMPLIED>
    <!ATTLIST add-attribute type (string|template|definition|object) #IMPLIED>
    <!ATTLIST add-attribute value CDATA #IMPLIED>
    <!ATTLIST add-attribute role CDATA #IMPLIED>
    <!ELEMENT add-list-attribute ( (add-attribute* | item* | bean* | add-list-attribute*)+) >
    <!ATTLIST add-list-attribute id ID #IMPLIED>
    <!ATTLIST add-list-attribute role CDATA #IMPLIED>
    <!ELEMENT bean (set-property*)>
    <!ATTLIST bean id ID #IMPLIED>
    <!ATTLIST bean classtype CDATA #REQUIRED>
    <!ELEMENT set-property EMPTY>
    <!ATTLIST set-property id ID #IMPLIED>
    <!ATTLIST set-property property CDATA #REQUIRED>
    <!ATTLIST set-property value CDATA #REQUIRED>
    <!ELEMENT item (#PCDATA)>
    <!ATTLIST item id ID #IMPLIED>
    <!ATTLIST item classtype CDATA #IMPLIED>
    <!ATTLIST item icon CDATA #IMPLIED>
    <!ATTLIST item link CDATA #REQUIRED>
    <!ATTLIST item tooltip CDATA #IMPLIED>
    <!ATTLIST item value CDATA #REQUIRED>
    <!ELEMENT description (#PCDATA)>
    <!ATTLIST description id ID #IMPLIED>
    <!ELEMENT display-name (#PCDATA)>
    <!ATTLIST display-name id ID #IMPLIED>
    <!ELEMENT icon (small-icon?, large-icon?)>
    <!ATTLIST icon id ID #IMPLIED>
    <!ELEMENT large-icon (#PCDATA)>
    <!ATTLIST large-icon id ID #IMPLIED>
    <!ELEMENT small-icon (#PCDATA)>
    <!ATTLIST small-icon id ID #IMPLIED>
    ]>
    <tiles-definitions>
    <definition name="layout.example" template="/template/template.jsp" >
    <put-attribute name="header" value="/common/header.jsp" />
    <put-attribute name="menu" value="/common/menu.jsp" />
    </definition>
    <definition name="/home.tiles" extends="layout.example" >
    <put-attribute name="body" value="/jsp/home.jsp" />
    </definition>
    </tiles-definitions>
    template.jsp:--
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"
    %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <head>
    <meta http-equiv="Content-Type" content="text/html;CHARSET=iso-8859-1" />
    <title>Myfaces - Tiles</title>
    <link rel="stylesheet" type="text/css" href="css/tiles.css" />
    </head>
    <f:view>
    <body>
    <div id="lftBar">
    <f:subview id="menu">
    <tiles:insertAttribute name="menu" flush="false" />
    </f:subview>
    </div>
    <div id="level0">
    <div id="level1">
    <div id="topBar">
    <f:subview id="header">
    <tiles:insertAttribute name="header" flush="false"/>
    </f:subview>
    </div>
    <div id="level2">
    <f:subview id="content">
    <tiles:insertAttribute name="body" flush="false"/>
    </f:subview>
    </div>
    </div>
    </div>
    </body>
    </f:view>
    header.jsp:---
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"
    %><h:graphicImage id="logo" url="/images/logo.jpg" />
    menu.jsp:--
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <h:form>
    <h:panelGrid columns="1" >
    <h:commandLink action="nav_page1">
    <h:outputText value="Page1" />
    </h:commandLink>
    </h:panelGrid>
    </h:form>
    ----------------------------------------

    Despite the fact that in preferences it says the folder is located in "C:\itunes
    Setting iTunes prefs -> Advanced simply sets the locaion of the iTunes Music/Media folder. It does not set the location of the iTunes folder, which the default location is \My Music\iTunes\. This contains the library files, which tells iTunes where/what everything is.
    We have drive space for 'personal' use on the C Drive. This is where I keep my itunes folder,
    Is this the \iTunes\ folder an in it is the iTunes library.itl file, iTunes music library.xml, iTunes media folder, Artwork folder, Previous iTunes libraries folder and a few other files?
    If so, hold Shift and launch iTunes. Select *Choose library* and select the *iTunes library.itl* file in this folder.
    iTunes will not create an iTunes folder in \My Music\.

  • JSF Visual Editor does not work with Tomahawk 1.1.3

    hi,
    i am using JDeveloper 10.1.3.0.4 (SU4) with tomahawk 1.1.3 and myfaces-core 1.1.3.
    All Tomahawk components that need the extensions filter to be rendered properly cannot be displayed
    in the UI Designer anymore (e.g. Calendar). More painfully: all compontents in the container that comes after the component
    that failed rendering will not be rendered too.
    I have enabled JSP Visual Editor Preferendes 'Show Design Time Messages in Log' and got the following
    exception:
    Error exercising tag : h:panelGrid
    java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
         at org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371)
         at org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:333)
         at org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288)
    But the ExtensionsFilter is configured correctly - all works fine when running the page.
    A little help was to disable the ExtensionsFilter Check in web.xml
    <context-param>
    <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
    <param-value>false</param-value>
    </context-param>
    So only the components that need the extensions filter will not be rendered - others will not be affected.
    But this is not really satisfying (btw. all worked fine with myfaces 1.1.1)
    Has anyone else got the same expirience?
    thanks

    hi,
    to work with myfaces-1.1.1 and the newer versions in jdeveloper i have changed the tlib-versionS for myfaces-impl-1.1.3 and tomahawk-1.1.3 so that they differ from the 1.1.1 libs.
    then i registered the JSP libraries tomahawk.tld from tomahawk-1.1.3.jar, myfaces_html.tld and myfaces_core.tld from myfaces-impl-1.1.3.jar
    then i have created a user library containing myfaces-api-1.1.3.jar and myfaces-impl-1.1.3.jar
    on a new created JSF i allways have to manually remove the jsf-impl.jar from WEB-INF/lib directory because it conflicts with myfaces.
    i hope this helps

  • Tomahawk1.1.3 ugrade exception...ExtensionsFilter not correctly configured.

    Hi Experts,
    I new to the world of JSF and im presently playing around with MyFaces Tomhawk implementation.
    I tried the tree example using tomahawk.jar ,myfaces-api and myfaces-impl.
    I was able to get the tree working with these version of jars.
    But now when i upgraded to the latest jars i.e
    myfaces-api 1.1.3
    myfaces-imple1.1.3 and
    tomahawk-1.1.3
    I'm getting the following error...see the stack trace below:
    java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
    org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371)
    org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:333)
    org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288)
    org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeJavascript(HtmlTreeRenderer.java:611)
    org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeBegin(HtmlTreeRenderer.java:152)
    javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)
    I googled for this also did the required changes.
    here are the links i visited.
    1) http://wiki.apache.org/myfaces/Upgrading_to_Tomahawk_1.1.3
    2) http://www.mail-archive.com/[email protected]/msg23110.html
    3) http://www.mail-archive.com/[email protected]/msg23094.html
    Here's my web.xml
    <?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">
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</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>org.apache.myfaces.AUTO_SCROLL</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
    </context-param>
    <!-- The following listener is needed when using the Apache MyFaces
    JSF implementation -->
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
    <!-- Extensions Filter -->
    <filter>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
    <init-param>
    <param-name>maxFileSize</param-name>
    <param-value>20m</param-value>
    </init-param>
    </filter>
    <!-- extension mapping for adding <script/>, <link/>, and other resource
    tags to JSF-pages -->
    <filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <!-- 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>
    <!-- Extensions Filter -->
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    </web-app>
    Please help me out in fixing this exception.....im sure lot of people must have encountered this exception.
    Thanks
    Ved

    Hi,
    I have made some changes and it is now working.But i want it work in a portlet.There it is showing the text box but not the pop up button.It works fine as a stand alone application.How can i resolve this??
    My code is as follows...
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="conference-room" 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>Conference Room</display-name>
         <context-param>
              <param-name>
                   org.apache.myfaces.CHECK_EXTENSIONS_FILTER
              </param-name>
              <param-value>false</param-value>
         </context-param>
         <context-param>
              <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
              <param-value>server</param-value>
         </context-param>
         <context-param>
              <param-name>javax.faces.application.CONFIG_FILES</param-name>
              <param-value>/WEB-INF/faces-config.xml</param-value>
         </context-param>
         <context-param>
              <description>
                   This parameter tells MyFaces if javascript code should be
                   allowed in the rendered HTML output. If javascript is
                   allowed, command_link anchors will have javascript code that
                   submits the corresponding form. If javascript is not
                   allowed, the state saving info and nested parameters will be
                   added as url parameters. Default: "true"
              </description>
              <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
              <param-value>true</param-value>
         </context-param>
         <context-param>
              <description>
                   This parameter tells MyFaces if javascript code should be
                   allowed in the rendered HTML output. If javascript is
                   allowed, command_link anchors will have javascript code that
                   submits the corresponding form. If javascript is not
                   allowed, the state saving info and nested parameters will be
                   added as url parameters. Default: "false"
                   Setting this param to true should be combined with
                   STATE_SAVING_METHOD "server" for best results.
                   This is an EXPERIMENTAL feature. You also have to enable the
                   detector filter/filter mapping below to get JavaScript
                   detection working.
              </description>
              <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
              <param-value>false</param-value>
         </context-param>
         <context-param>
              <description>
                   If true, rendered HTML code will be formatted, so that it is
                   "human readable". i.e. additional line separators and
                   whitespace will be written, that do not influence the HTML
                   code. Default: "true"
              </description>
              <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
              <param-value>true</param-value>
         </context-param>
         <context-param>
              <description>
                   If true, a javascript function will be rendered that is able
                   to restore the former vertical scroll on every request.
                   Convenient feature if you have pages with long lists and you
                   do not want the browser page to always jump to the top if
                   you trigger a link or button action that stays on the same
                   page. Default: "false"
              </description>
              <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
              <param-value>true</param-value>
         </context-param>
         <!-- 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>
         </filter>
         <!-- Filter Mappings -->
         <filter-mapping>
              <filter-name>extensionsFilter</filter-name>
              <url-pattern>*.jsf</url-pattern>
         </filter-mapping>
         <filter-mapping>
              <filter-name>extensionsFilter</filter-name>
              <url-pattern>/faces/*</url-pattern>
         </filter-mapping>
         <!-- Listener, that does all the startup work (configuration, init). -->
         <listener>
              <listener-class>
                   org.apache.myfaces.webapp.StartupServletContextListener
              </listener-class>
         </listener>
         <!-- Faces Servlet -->
         <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
         </servlet>
         <!-- Jetspeed Servlet -->
         <servlet>
              <description>
                   MVC Servlet for Jetspeed Portlet Applications
              </description>
              <display-name>Jetspeed Container</display-name>
              <servlet-name>JetspeedContainer</servlet-name>
              <servlet-class>
                   org.apache.jetspeed.container.JetspeedContainerServlet
              </servlet-class>
              <init-param>
                   <param-name>contextName</param-name>
                   <param-value>conference-room</param-value>
              </init-param>
              <load-on-startup>0</load-on-startup>
         </servlet>
         <!-- servlet mapping -->
         <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.jsf</url-pattern>
         </servlet-mapping>
         <servlet-mapping>
              <servlet-name>JetspeedContainer</servlet-name>
              <url-pattern>/container/*</url-pattern>
         </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.html</welcome-file>
              <welcome-file>index.htm</welcome-file>
              <welcome-file>index.jsp</welcome-file>
              <welcome-file>default.html</welcome-file>
              <welcome-file>default.htm</welcome-file>
              <welcome-file>default.jsp</welcome-file>
         </welcome-file-list>
    </web-app>
    Thanks and regards,
    Gaurav Goel.

  • Jsf 1.2_08 gives me blank page when i use h:panelGrid with binding attribut

    I am using jsf 1.2_08 (Mojarra 1.2_08-b06-FCS) + jstl-1.2.jar + Apache Tomcat/6.0.6 + jdk1.5.0_08 on linux suse server. when i load a jsp page with a h:panelGrid, i get a blank page
    my panelGrid is as follows
    <h:panelGrid id="financialProjections" binding="#{veusSituationMonitorDisplayBean.financialProjections}" border="0" cellpadding="0" cellspacing="0" columnClasses="nspLabel w200,ra bl,ra bl,ra bl,ra bl,ra bld,ra bl,ra bl" columns="8" width="100%"/>
    when i remove the binding attribute, rest of the page displays fine.
    Thanks in Advance
    my web.xml is
    <?xml version="1.0"?>
    <web-app version="2.5" 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_5.xsd">
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>AJAXServlet</servlet-name>
    <servlet-class>net.em.servlets.AJAXServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>InitialLizeApplicationbeansServlet</servlet-name>
    <servlet-class>net.em.servlets.InitialLizeApplicationBeanServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>AJAXServlet</servlet-name>
    <url-pattern>/abc.ajax</url-pattern>
    </servlet-mapping>
    <filter>
    <filter-name>ExtensionsFilter</filter-name>
    <filter-class>
    net.em.emrp.filters.EMExtensionsFilter
    </filter-class>
    <init-param>
    <param-name>uploadMaxFileSize</param-name>
    <param-value>10m</param-value>
    </init-param>
    <init-param>
    <param-name>uploadThresholdSize</param-name>
    <param-value>100k</param-value>
    </init-param>
    </filter>
    <filter>
    <filter-name>ResponseOverrideFilter</filter-name>
    <filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
    </filter>
    <session-config>
    <session-timeout>
    720 <!-- minutes -->
    </session-timeout>
    </session-config>
    <filter-mapping>
    <filter-name>ExtensionsFilter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    <filter-mapping>
    <filter-name>ResponseOverrideFilter</filter-name>
    <url-pattern>*.do</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>ResponseOverrideFilter</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <error-page>
    <error-code>404</error-code>
    <location>/error404.html</location>
    </error-page>
    <error-page>
    <error-code>500</error-code>
    <location>/error500.html</location>
    </error-page>
    <taglib>
    <taglib-uri>http://ajaxtags.org/tags/ajax</taglib-uri>
    <taglib-location>/WEB-INF/ajaxtags.tld</taglib-location>
    </taglib>
    </web-app>

    BalusC wrote:
    I rather mean that you shouldn't instantiate the HtmlPanelGrid in the bean yourself, but just use the instance which is set through the setter during the restore_view phase.BalusC, why do you recommend this? The spec allows for the bean to create the component:
    *JSF 1.2, section 3.1.5* says:
    When a component instance is first created (typically by virtue of being referenced by a UIComponentELTag in a JSP page), the JSF implementation will retrieve the ValueExpression for the name binding, and call getValue() on it. If this call returns a non-null UIComponent value (because the JavaBean programmatically instantiated and configured a component already), that instance will be added to the component tree that is being created. If the call returns null, a new component instance will be created, added to the component tree, and setValue() will be called on the ValueBinding (which will cause the property on the JavaBean to be set to the newly created component instance).

  • JSF + Facelets + Tomahawk: ExtensionsFilter not correctly configured.

    Hello,
    I want to use JSF with facelets and tomahawk...
    I have a standard facelets configuration like the demo on their website...
    But at the moment, there is a tomahawk component in one of the pages I get the following error:
    java.lang.IllegalStateException: ExtensionsFilter not correctly configured. Resource mapping missing. Resources cant be delivered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
    I googled the entire internet (two times), but nothing helps...
    I'm using Glassfish v2.1
    My web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
             version="2.5">
        <welcome-file-list>
            <welcome-file>welcome.jsp</welcome-file>
        </welcome-file-list>
        <context-param>
            <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
            <param-value>.xhtml</param-value>
        </context-param>
        <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.jsf</url-pattern>
        </servlet-mapping>
        <filter>
            <filter-name>MyFacesExtensionsFilter</filter-name>
            <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
            <init-param>
                <param-name>maxFileSize</param-name>
                <param-value>20m</param-value>
            </init-param>
        </filter>
        <filter-mapping>
            <filter-name>MyFacesExtensionsFilter</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
        </filter-mapping>
        <error-page>
            <error-code>500</error-code>
            <location>/errors/fatal.jsf</location>
        </error-page>
    </web-app>It didn't work with the JSF RI or MyFaces.
    Hoping, somebody could help me.

    I think you need the following additional mapping:
        <filter-mapping>
            <filter-name>MyFacesExtensionFilter</filter-name>
            <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
        </filter-mapping>

  • Tiles works with jsf but....

    Hi guys,
    i've a jsf application and i've tried to improve its layout with Tiles of Struts and everythings work,infact each page has its layout fixed.
    I've used one header,one footer,one left menu(for quickly navigation and language selection and personal content of each page.
    My question is:
    if i navigate throught my application it's ok,when i use quickly navigation on left menu it's ok.
    The problem is when i click on buttons that performs not only navigation,but also java logic,i've this exception (but the operation requested,as insert in database,delete etc...are done!!!!)
    GRAVE: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.NullPointerException
         at giu.NavigationManager.handleNavigation(NavigationManager.java:23)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:89)
         at javax.faces.component.UICommand.broadcast(UICommand.java:312)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at giu.AuthorizationFilter.doFilter(AuthorizationFilter.java:61)
         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)i've used this NavigationManager
    package giu;
    import javax.faces.application.NavigationHandler;
    import javax.faces.context.FacesContext;
    public class NavigationManager extends NavigationHandler {
         final String menuId ="@mainMenu";
         NavigationHandler _base;
         public NavigationManager (NavigationHandler base) {
              super();
              _base = base;
         public void handleNavigation(FacesContext fc, String actionMethod, String action) {
              int atPosition = action.indexOf(menuId);
              if (atPosition < 0) {
                   _base.handleNavigation(fc, actionMethod, action);
              } else {
                   String viewId = fc.getViewRoot().getViewId();
                   fc.getViewRoot().setViewId(menuId);
                   String newAction = action.substring(0, atPosition);
                   _base.handleNavigation(fc, actionMethod, newAction);
    }that comes from a jsf-tiles example downloaded from core Java server faces book..i'vent understood too well this navigation,can someone help me to understand it and solve my exception??
    Thanks very much....(i use exadel studio pro 4,jsf 1.1.0.1,servlet 2.3 and tiles from struts 1.1)

    giubat: I've stuggled with getting Tiles to work correctly with JSF.
    If your not to far into your project, I strongly recommend Facelets, it is very simple to include other JSF files and the syntax is XML formatted which allows Exadel Studio 4.0 to check your pages.
    You'll need to change you actual page extension to .xhtml, which Exadel Studio handles nicely...
    Tiles is just a waste of time when combined with JSF...

  • Problem using Tomahawk tree2 with JSF RI 1.1

    Hello,
    When I try to run Tomahawk tree2 component on JSF RI 1.1 I am getting the following exception.
    java.lang.IllegalStateException: Duplicate component ID 'billsearch:billSearchForm:NewTabadvanceSearch:subTabOne:clientTree:t2c' found in view.
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:191)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:199)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:181)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:181)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:181)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:181)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:181)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:181)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:181)
         at com.sun.faces.application.StateManagerImpl.saveSerializedView(StateManagerImpl.java:85)
         at org.ajax4jsf.framework.ajax.AjaxStateManager.saveSerializedView(AjaxStateManager.java:90)
         at com.sun.faces.taglib.jsf_core.ViewTag.doAfterBody(ViewTag.java:169)
         at jsp_servlet._pages.__billsearchinit._jspService(__billsearchinit.java:156)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:500)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)
         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:108)
         at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
         at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:501)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)
         at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:148)
         at jsp_servlet.__index._jspService(__index.java:101)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3243)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2003)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1909)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)Any help would be highly appreciated. I have tried setting my own id's to each and every component. But this throws me a different error and it doesn't let me set the id's manually. The error message is:
    Error 500--Internal Server Error
    java.lang.IllegalArgumentException: 1
         at javax.faces.component.UIComponentBase.validateId(UIComponentBase.java:462)
         at javax.faces.component.UIComponentBase.setId(UIComponentBase.java:279)
         at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1016)
         at javax.faces.webapp.UIComponentTag.createFacet(UIComponentTag.java:1059)
         at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:740)
         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:429)
    Any help or hint on solving this problem is highly appreciated.
    Thanks in adv.
    ~SirG

    Richfaces is compatible with JSF 1.1 and 1.2 and also with great ui part
    but it may conflict with the other tomahawk component and filters

  • Problem with subproperties with Facelets

    I'm using JSF 1.1. Recently I added Facelets to my project and I got the following exception in a page:
    javax.el.PropertyNotFoundException: Error getting property 'scrollFirstDisabled' from bean of type com.primemessage.pmweb.jsf.bean.recipient.PMWebRecipientBean
         com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:146)
         com.sun.el.parser.AstValue.getValue(Unknown Source)
         com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
         com.sun.facelets.el.ELText$ELTextVariable.toString(ELText.java:174)
         com.sun.facelets.el.ELText$ELTextComposite.toString(ELText.java:115)
         com.sun.facelets.compiler.CommentInstruction.write(CommentInstruction.java:38)
         com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
         com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:463)
         com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:150)
         javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
         com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:465)
         com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:253)
         javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
         com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:465)
         com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:253)
         javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
         com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:465)
         com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:470)
         com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:253)
         javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
         com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:244)
         com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
         com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:594)
         org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
         org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
         org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97)
         com.eclerisy.primemessage.access.filter.PMSpamDetectFilter.doFilter(PMSpamDetectFilter.java:183)
         com.primemessage.pmgui.jsf.servlet.PMGuiUploadFilter.doFilter(PMGuiUploadFilter.java:88)
         org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)The problem is caused by the following tag:
    <h:commandLink rendered="#{!recipientBean.recipientPagination.scrollFirstDisabled}" ... /> (the rest is truncated)Is this becuase I have a subproperty? If yes, Is this a bug or is there a way to work around this problem? I didn't have this problem before adding Facelets.
    Thanks

    abolourian wrote:
    Thanks for the answer Raymond. The bean was all OK, however I found out that the problem is coming from an old commented line that referred to a non existing field. It's weird that after adding Facelets, page doesn't ignore commented lines with <!-- --> anymore.That is a Facelets gotcha; for whatever reason Facelets interprets that you want the comments to be included in the resulting HTML. Perhaps <ui:remove> will be suitable, but I can't remember off the top of my head if it tries to parse its contents into the component tree.

  • Cannot add component with id '_id0' and path

    Hello together!
    Thanks for your help so far you really helped me a lot.
    Now most of the time my application is working fine, but I get sometimes the error:
    javax.servlet.ServletException: cannot add component with id '_id0' and path : {Component-Path : [Class: javax.faces.component.html.HtmlOutputText,Id: _id0]} to its parent component. This might be a problem due to duplicate ids.
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
         org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
    What can I do to prevent that?
    Thanks a lot.

    I don't know if the html could would help, but I post it anyways as I am really going crazy:
    This is the code at the begining:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <link rel="stylesheet" href="style.css" type="text/css">
    <title>Guardar Rayos X</title>
    <script src="/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/JSCookMenu.js" type="text/javascript"><!--
    //--></script>
    <script src="/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/MyFacesHack.js" type="text/javascript"><!--
    //--></script>
    <script type="text/javascript"><!--
    myThemeOfficeBase='/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/ThemeOffice/';
    //--></script>
    <script src="/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/ThemeOffice/theme.js" type="text/javascript"><!--
    //--></script>
    <link rel="stylesheet" href="/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/ThemeOffice/theme.css" type="text/css" /></head>
    <body>
       <link rel="stylesheet" href="style.css" type="text/css">
            <table>
              <tr>
                   <td>
                           <h1>
                                Rayos X
                           </h1>
                      </td>
                 </tr>
            </table>
    <script language="JavaScript" src="jscookmenu/JSCookMenu.js" type="text/javascript"></script>
    <script language="JavaScript" src="jscookmenu/ThemeOffice/theme.js"></script>
    <link rel="stylesheet" href="jscookmenu/ThemeOffice/theme.css" type="text/css">
    <script language="JavaScript" src="jscookmenu/ThemeMiniBlack/theme.js"></script>
    <link rel="stylesheet" href="jscookmenu/ThemeMiniBlack/theme.css" type="text/css">
    <script language="JavaScript" src="jscookmenu/ThemeIE/theme.js"></script>
    <link rel="stylesheet" href="jscookmenu/ThemeIE/theme.css" type="text/css">
    <script language="JavaScript" src="jscookmenu/ThemePanel/theme.js"></script>
    <link rel="stylesheet" href="jscookmenu/ThemePanel/theme.css" type="text/css">
         <table>
              <tr>
                   <td>
                        <table id="header_group2" border="0"><tbody><tr><td><script type="text/javascript"><!--
    var id3_menu =
    [[null, 'Salir', 'id3_menu:#{user.logout}', 'linkDummyForm', null],
    [null, 'Persona', null, 'linkDummyForm', null,[null, 'Buscar persona', 'id3_menu:searchPerson', 'linkDummyForm', null],
    [null, 'Modificar persona', 'id3_menu:modifyPerson', 'linkDummyForm', null]],
    [null, 'Consulta', null, 'linkDummyForm', null,[null, 'Buscar por consulta', 'id3_menu:searchVisit', 'linkDummyForm', null],
    [null, 'Modificar consulta', 'id3_menu:modifyVisit', 'linkDummyForm', null]],
    [null, 'Exportar', null, 'linkDummyForm', null,[null, 'Paciente', 'id3_menu:patientExport', 'linkDummyForm', null]],
    [null, 'Preferencias', null, 'linkDummyForm', null,[null, 'Idioma', null, 'linkDummyForm', null,[null, 'Espa�ol', 'id3_menu:#{message.setLanguageToSpanish}', 'linkDummyForm', null],
    [null, 'Ingles', 'id3_menu:#{message.setLanguageToEnglish}', 'linkDummyForm', null]]]];
    //--></script><div id="id3_menu"></div>
    <script type="text/javascript"><!--
         cmDraw ('id3_menu', id3_menu, 'hbr', cmThemeOffice, 'ThemeOffice');
    //--></script></td></tr>
    </tbody></table>
                   </td>
                 </tr>
            </table>
         <form id="visitForm" name="visitForm" method="post" action="/Webprojekt/modifyVisit.faces" enctype="multipart/form-data">
             <table>
                   <tr>
                        <td>
                             <label for="visitForm:patient">
                                  <span id="visitForm:lPatient">Paciente: </span>
                             </label>
                        </td>
                        <td><input id="visitForm:patient" name="visitForm:patient" type="text" value="" />
                             <input id="visitForm:btnPatient" name="visitForm:btnPatient" type="submit" value="..." onclick="clear_visitForm();" />
                        </td>               
                   </tr>
                   <tr>
                        <td>
                             <label for="visitForm:doctor">
                                  <span id="visitForm:lDoctor">Doctor: </span>
                             </label>
                        </td>
                        <td><input id="visitForm:doctor" name="visitForm:doctor" type="text" value="" />
                             <input id="visitForm:btnDoctor" name="visitForm:btnDoctor" type="submit" value="..." onclick="clear_visitForm();" />
                        </td>               
                   </tr>
                   <tr>
                        <td>
                             <label for="visitForm:type">
                                  <span id="visitForm:lType">Estudio: </span>
                             </label>
                        </td>
                        <td>
                             <select id="visitForm:selectOneType" name="visitForm:selectOneType" size="1">     <option value="X-Ray Full">X-Ray Full</option>     <option value="X-Ray Arm">X-Ray Arm</option>     <option value="X-Ray Leg">X-Ray Leg</option>     <option value="X-Ray Foot">X-Ray Foot</option></select>
                        </td>                         
                   </tr>
                   <tr>
                        <td>
                             <label for="visitForm:location">
                                  <span id="visitForm:lLocation">Lugar: </span>
                             </label>
                        </td>
                        <td>
                             <select id="visitForm:selectOneLocation" name="visitForm:selectOneLocation" size="1">     <option value="Mexico City">Mexico City</option>     <option value="Hermosillo">Hermosillo</option></select>
                        </td>                         
                   </tr>
                   <tr>
                        <td>
                             <input type="checkbox" name="visitForm:nextVisit" id="visitForm:nextVisit" value="true" />
                        </td>
                        <td>
                             <label for="visitForm:nextVisit">
                                  <span id="visitForm:lNextVisit">Requiere otra consulta.</span>
                             </label>
                        </td>
                   </tr>
                   <tr>
                        <td>
                             <hr width=100%>
                        </td>
                        <td>
                             <hr width=100%>
                        </td>
                   </tr>
                   <tr>
                       <td>
                             <label for="visitForm:fileUpload">
                                  <span id="visitForm:lFileUploas">Rayos X: </span>
                             </label>
                        </td>
                       <td>
                            <input type="file" id="visitForm:upload" name="visitForm:upload" />
                            <!--
                             <input type="file" id="visitForm:_id25" name="visitForm:_id25" />-->     
                       </td>
                  </tr>
                  <tr>
                       <td>
                             <label for="visitForm:diagnostic">
                                  <span id="visitForm:lDiagnistic">Diagnostico: </span>
                             </label>
                        </td>
                       <td><textarea name="visitForm:diagnostic" id="visitForm:diagnostic"></textarea></td>
                  </tr>
                  <tr>
                       <td>
                            <input id="visitForm:btnAdd" name="visitForm:btnAdd" type="submit" value="A�adir" onclick="clear_visitForm();" />
                            <input id="visitForm:btnSearch" name="visitForm:btnSearch" type="submit" value="Buscar" onclick="clear_visitForm();" />
                       </td>
                  </tr>
                  <tr>
                   </tr>
             </table>
        <input type="hidden" name="visitForm_SUBMIT" value="1" /><input type="hidden" name="visitForm:_link_hidden_" /><script type="text/javascript"><!--
    function clear_visitForm() {
      var f = document.forms['visitForm'];
      f.elements['visitForm:_link_hidden_'].value='';
      f.target='';
    clear_visitForm();
    //--></script></form>
        <p>
        <div>
    <table id="diagnostics" class="list-background">
    <thead>
    <tr><th>Imagen</th><th>Diagnostico</th><th></th><th></th><th></th></tr></thead>
    <tbody id="diagnostics:tbody_element"></tbody></table>
              </div>
              <form id="_id42" name="_id42" method="post" action="/Webprojekt/modifyVisit.faces" enctype="application/x-www-form-urlencoded">
                   <table>
                        <tr>
                             <td>
                                  <input id="_id42:btnAddVisit" name="_id42:btnAddVisit" type="submit" value="A�adir" onclick="clear__5Fid42();" />
                             </td>
                             <td>
                                  <input id="_id42:btnUpdateVisit" name="_id42:btnUpdateVisit" type="submit" value="Grabar" onclick="clear__5Fid42();" />
                             </td>
                             <td>
                                  <input id="_id42:btnAllToWord" name="_id42:btnAllToWord" type="submit" value="Pasar todo a Word." onclick="clear__5Fid42();" />
                             </td>
                        </tr>
                   </table>
              <input type="hidden" name="_id42_SUBMIT" value="1" /><input type="hidden" name="_id42:_link_hidden_" /><script type="text/javascript"><!--
    function clear__5Fid42() {
      var f = document.forms['_id42'];
      f.elements['_id42:_link_hidden_'].value='';
      f.target='';
    clear__5Fid42();
    //--></script></form>
         <p>
    <link rel="stylesheet" href="style.css" type="text/css">
    <table>
         <tr>
              <td>
                X-Ray, Copyright (c) 2006  Markus Sz�ky
            </td>
            </tr>
    </table>
    </body>
    <form id="linkDummyForm" name="linkDummyForm" style="display:inline" method="post" action="/Webprojekt/modifyVisit.faces"><input type="hidden" name="jscook_action" /><script type="text/javascript"><!--
    function clear_linkDummyForm() {
      var f = document.forms['linkDummyForm'];
      f.elements['jscook_action'].value='';
      f.target='';
    clear_linkDummyForm();
    //--></script></form>
    </html>and this is the code after I press a button, without any functionality, but the footer is already wrong.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <link rel="stylesheet" href="style.css" type="text/css">
    <title>Guardar Rayos X</title>
    <script src="/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/JSCookMenu.js" type="text/javascript"><!--
    //--></script>
    <script src="/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/MyFacesHack.js" type="text/javascript"><!--
    //--></script>
    <script type="text/javascript"><!--
    myThemeOfficeBase='/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/ThemeOffice/';
    //--></script>
    <script src="/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/ThemeOffice/theme.js" type="text/javascript"><!--
    //--></script>
    <link rel="stylesheet" href="/Webprojekt/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/ThemeOffice/theme.css" type="text/css" /></head>
    <body>
       <link rel="stylesheet" href="style.css" type="text/css">
            <table>
              <tr>
                   <td>
                           <h1>
                                Rayos X
                           </h1>
                      </td>
                 </tr>
            </table>
    <script language="JavaScript" src="jscookmenu/JSCookMenu.js" type="text/javascript"></script>
    <script language="JavaScript" src="jscookmenu/ThemeOffice/theme.js"></script>
    <link rel="stylesheet" href="jscookmenu/ThemeOffice/theme.css" type="text/css">
    <script language="JavaScript" src="jscookmenu/ThemeMiniBlack/theme.js"></script>
    <link rel="stylesheet" href="jscookmenu/ThemeMiniBlack/theme.css" type="text/css">
    <script language="JavaScript" src="jscookmenu/ThemeIE/theme.js"></script>
    <link rel="stylesheet" href="jscookmenu/ThemeIE/theme.css" type="text/css">
    <script language="JavaScript" src="jscookmenu/ThemePanel/theme.js"></script>
    <link rel="stylesheet" href="jscookmenu/ThemePanel/theme.css" type="text/css">
         <table>
              <tr>
                   <td>
                        <table id="header_group2" border="0"><tbody><tr><td><script type="text/javascript"><!--
    var id3_menu =
    [[null, 'Salir', 'id3_menu:#{user.logout}', 'linkDummyForm', null],
    [null, 'Persona', null, 'linkDummyForm', null,[null, 'Buscar persona', 'id3_menu:searchPerson', 'linkDummyForm', null],
    [null, 'Modificar persona', 'id3_menu:modifyPerson', 'linkDummyForm', null]],
    [null, 'Consulta', null, 'linkDummyForm', null,[null, 'Buscar por consulta', 'id3_menu:searchVisit', 'linkDummyForm', null],
    [null, 'Modificar consulta', 'id3_menu:modifyVisit', 'linkDummyForm', null]],
    [null, 'Exportar', null, 'linkDummyForm', null,[null, 'Paciente', 'id3_menu:patientExport', 'linkDummyForm', null]],
    [null, 'Preferencias', null, 'linkDummyForm', null,[null, 'Idioma', null, 'linkDummyForm', null,[null, 'Espa�ol', 'id3_menu:#{message.setLanguageToSpanish}', 'linkDummyForm', null],
    [null, 'Ingles', 'id3_menu:#{message.setLanguageToEnglish}', 'linkDummyForm', null]]]];
    //--></script><div id="id3_menu"></div>
    <script type="text/javascript"><!--
         cmDraw ('id3_menu', id3_menu, 'hbr', cmThemeOffice, 'ThemeOffice');
    //--></script></td></tr>
    </tbody></table>
                   </td>
                 </tr>
            </table>
         <form id="visitForm" name="visitForm" method="post" action="/Webprojekt/modifyVisit.faces" enctype="multipart/form-data">
             <table>
                   <tr>
                        <td>
                             <label for="visitForm:patient">
                                  <span id="visitForm:lPatient">Paciente: </span>
                             </label>
                        </td>
                        <td><input id="visitForm:patient" name="visitForm:patient" type="text" value="" />
                             <input id="visitForm:btnPatient" name="visitForm:btnPatient" type="submit" value="..." onclick="clear_visitForm();" />
                        </td>               
                   </tr>
                   <tr>
                        <td>
                             <label for="visitForm:doctor">
                                  <span id="visitForm:lDoctor">Doctor: </span>
                             </label>
                        </td>
                        <td><input id="visitForm:doctor" name="visitForm:doctor" type="text" value="" />
                             <input id="visitForm:btnDoctor" name="visitForm:btnDoctor" type="submit" value="..." onclick="clear_visitForm();" />
                        </td>               
                   </tr>
                   <tr>
                        <td>
                             <label for="visitForm:type">
                                  <span id="visitForm:lType">Estudio: </span>
                             </label>
                        </td>
                        <td>
                             <select id="visitForm:selectOneType" name="visitForm:selectOneType" size="1">     <option value="X-Ray Full" selected="selected">X-Ray Full</option>     <option value="X-Ray Arm">X-Ray Arm</option>     <option value="X-Ray Leg">X-Ray Leg</option>     <option value="X-Ray Foot">X-Ray Foot</option></select>
                        </td>                         
                   </tr>
                   <tr>
                        <td>
                             <label for="visitForm:location">
                                  <span id="visitForm:lLocation">Lugar: </span>
                             </label>
                        </td>
                        <td>
                             <select id="visitForm:selectOneLocation" name="visitForm:selectOneLocation" size="1">     <option value="Mexico City" selected="selected">Mexico City</option>     <option value="Hermosillo">Hermosillo</option></select>
                        </td>                         
                   </tr>
                   <tr>
                        <td>
                             <input type="checkbox" name="visitForm:nextVisit" id="visitForm:nextVisit" value="true" />
                        </td>
                        <td>
                             <label for="visitForm:nextVisit">
                                  <span id="visitForm:lNextVisit">Requiere otra consulta.</span>
                             </label>
                        </td>
                   </tr>
                   <tr>
                        <td>
                             <hr width=100%>
                        </td>
                        <td>
                             <hr width=100%>
                        </td>
                   </tr>
                   <tr>
                       <td>
                             <label for="visitForm:fileUpload">
                                  <span id="visitForm:lFileUploas">Rayos X: </span>
                             </label>
                        </td>
                       <td>
                            <input type="file" id="visitForm:upload" name="visitForm:upload" />
                            <!--
                             <input type="file" id="visitForm:_id25" name="visitForm:_id25" />-->     
                       </td>
                  </tr>
                  <tr>
                       <td>
                             <label for="visitForm:diagnostic">
                                  <span id="visitForm:lDiagnistic">Diagnostico: </span>
                             </label>
                        </td>
                       <td><textarea name="visitForm:diagnostic" id="visitForm:diagnostic"></textarea></td>
                  </tr>
                  <tr>
                       <td>
                            <input id="visitForm:btnAdd" name="visitForm:btnAdd" type="submit" value="A�adir" onclick="clear_visitForm();" />
                            <input id="visitForm:btnSearch" name="visitForm:btnSearch" type="submit" value="Buscar" onclick="clear_visitForm();" />
                       </td>
                  </tr>
                  <tr>
                   </tr>
             </table>
        <input type="hidden" name="visitForm_SUBMIT" value="1" /><input type="hidden" name="visitForm:_link_hidden_" /><script type="text/javascript"><!--
    function clear_visitForm() {
      var f = document.forms['visitForm'];
      f.elements['visitForm:_link_hidden_'].value='';
      f.target='';
    clear_visitForm();
    //--></script></form>
        <p>
        <div>
    <table id="diagnostics" class="list-background">
    <thead>
    <tr><th>Imagen</th><th>Diagnostico</th><th></th><th></th><th></th></tr></thead>
    <tbody id="diagnostics:tbody_element"></tbody></table>
              </div>
                   <table>
                        <tr>
                             <td>
                                  <input id="btnAddVisit" name="btnAddVisit" type="submit" value="A�adir" onclick="clear_linkDummyForm();" />
                             </td>
                             <td>
                                  <input id="btnUpdateVisit" name="btnUpdateVisit" type="submit" value="Grabar" onclick="clear_linkDummyForm();" />
                             </td>
                             <td>
                                  <input id="btnAllToWord" name="btnAllToWord" type="submit" value="Pasar todo a Word." onclick="clear_linkDummyForm();" />
                             </td>
                        </tr>
                   </table>
         <p>
    <link rel="stylesheet" href="style.css" type="text/css">
    <table>
         <tr>
              <td>
                Guardar Rayos X
            </td>
            </tr>
    </table>
    </body>
    <form id="linkDummyForm" name="linkDummyForm" style="display:inline" method="post" action="/Webprojekt/modifyVisit.faces"><input type="hidden" name="linkDummyForm:_link_hidden_" /><input type="hidden" name="jscook_action" /><script type="text/javascript"><!--
    function clear_linkDummyForm() {
      var f = document.forms['linkDummyForm'];
      f.elements['linkDummyForm:_link_hidden_'].value='';
      f.elements['jscook_action'].value='';
      f.target='';
    clear_linkDummyForm();
    //--></script></form>
    </html>

Maybe you are looking for

  • Camera Raw 6.2 update issue

    I tried to install a camera raw 6.2. update for my Photoshop CS 5.1 (OSX 7.5.1). I got the error code U44M2P7. What to do?

  • Oracle MERGE in to a single table error.

    Experts, please find any errors in this merge query as it throws following exception when trying to execute, MERGE INTO md.PER_USER PU USING ( SELECT +'aaa.bbb.ccc' AS NAME,+ +'222' AS VALUE,+ +( SELECT U_ID+ FROM  md.USER U WHERE  upper(U.NAME) = up

  • Error while starting Integration Repository and Integration Directory

    Hi Friends, When I am trying to start Integration repository,it giving me error 'Unable to load resource: http://SPCC-SAPPIDEV:50000/rep/repository/iaik_jsse.jar' How to solve this? please gve ur suggestions. Thanks & Regards, Brijesh Soni

  • Unable to reset password on sub accounts

    I'm struggling to change the password on a couple of sub accounts that my family has forgotten, unfortunately when I use the password resetter it seems to get confused. I checked to make sure the security info on my primary email address was correct.

  • I am having trouble re-installing cs4 on my macosx 10.6.8

    I uninstalled cs4 as it was not working properly the cloning tool developed a pattern that I could not get rid of, so thought I would uninstall it.  Unfortunately it will not now re-install, the disc gets part-way through and then clicks out and the