JSF 1.2 RI and facelets

Hello, we have some component library that builds on JSF 1.2 RI and facelets. Usually JSF 1.2 cannot run on WLS 9.2 because it requires JSP 2.1 (thus weblogic 10). However,
since we use facelets and thus no JSP, in this case JSF 1.2 can run on WLS 9.2 (and it does work).
However to run as portlet, we need to use some JSF portlet bridge.
Does anyone have experience with this? We would like to try two ways:
1. Bridge to JSR 168 as local portlet, then run this afterwards as a WSRP remote portlet (once you have a local portlet running this should cause no issues).
We already have it running (with some issues, using the sun jsf portlet bridge which is tuned towards JSF 1.2) inside pluto, no I'll try out WLS portal and I would expect no extra issues since we already have a JSR-168 compliant portlet. What do you think?
2. Bridge directly to WSRP bypassing JSR 168. I read that BEA provides a bridge (which then can even run as a simple producer not requiring a portal domain but may run in a normal WLS domain) that does this. I do suspect that this bridge is specifically tuned to JSF 1.1 and JSP (maybe even to weblogic provided JSF tags) and it might be quite hopeless to get JSF 1.2 RI + facelets to run in this way.
Before wasting my time I would be grateful if someone could shed some light on this.
Regards,
Peter Mutsaers
Edited by mutsaers at 03/21/2007 5:49 AM

I'm having issues with JSR 168 portlet with JSF v1.1 (Sun RI) on BEA Portal 9.2. See http://forums.bea.com/bea/thread.jspa?threadID=400002399. I've not had any luck with BEA support so far. It'll be great if you can share your thoughts/experiences with JSF and JSR 168.
Thanks.

Similar Messages

  • Netbeans 6.0 Visual Web Pack and facelets

    Is it current possible to use Netbeans 6.0 Visual Web Pack and facelets and/or Seams?
    If so please point me to some useful resource.

    >
    ...Below is from the Launch tab:>What exactly is a 'launch tab'? Are you talking about some NetBeans window?
    The reason I ask is that the 'JNLP file' shown, is complete rubbish. It is a bunch of symbols pretending to be a JNLP file. The fundamental problem is that it is invalid (and hence it is not the 'JNLP format' it claims to be).
    How any particular Java implementation deals with an invalid JNLP file is quite unpredicatable.*
    Please people, do not just 'presume' that you (or your IDE) can write a valid JNLP file. Instead - validate it against a DTD or XSD.
    After all.. Garbage in, Garbage out!
    * And to the poster who mentioned that adding the first Jar line twice solved the problem. That is a dangerous and fragile kludge. If it works in some specific microversion of Java, it might (probably will) break in the next.
    Edit 1 - Highlit the most major error in that file using 'code' tags. Hopefully that will make the basic problem more obvious..
    <j2se version="1.5+" java-vm-args="-Djava.endorsed.dirs="C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api" "/>Edited by: AndrewThompson64 on May 21, 2008 9:20 AM
    Edit 2 - Added possible alternatives..
    <j2se version="1.5+" java-vm-args="-Djava.endorsed.dirs='C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api' "/>
    <j2se version="1.5+" java-vm-args='-Djava.endorsed.dirs="C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api" '/>The hard coded path, as well as the use of unescaped backslashes (e.g. '\' as opposed to '\\') also looks suspiciously wrong, but since I only deploy off the internet, I am not entirely sure.
    Edited by: AndrewThompson64 on May 21, 2008 9:26 AM

  • How to invoke JSF With Standard Urls and parameters

    Hi,
    Could some one please help me how to invoke JSF with standard Urls and parameters?
    My requirement is:
    http://localhost:8080/myapp/faces/jsf_page.jsp?trackerID=11&viewPage="products"
    then i want to save the tracker details into database and redirect the user to "products" page.
    Would some one suggest me where can i get some example?

    Hi BalusC,
    It didn't solve my proble.....Your solutions are fantastic for most of the issues. But mine problem is unclear where JSF page tags.
    If possible, Could you please provide me how to invoke the method from JSF page....
    same code works if the user click on command button but my requirement is as soon as the user click on the link from 3rd party website, then he need to come to our web application and invoke the JSF page along with ManagedBean for saving details and redirect to disganted webpage.
    I will provide the following link to 3rd party websites. the URL is :: http://somedomain.com/myApp/Tracker.JSF?trackerID=111
    Could you please provide me the code i need to write in JSF ....just for invoking ManagedBean class...? how i code for page on load call the managedBean for specific method?

  • Eclipse and Facelets support

    Hey Guys,
    I was investigating Facelets in the last couple days and it seams, that Facelets are straightforward for my purposes. Unfortunately, there is no real auto suggestion/competition for eclipse wtp. It's really annoying to spend time, just for locking spelling errors.
    Do you have any suggestions? I appreciate any help in advance.
    konfri

    hello,
    i use wtp and facelets. To have code completion in facelet files i save them under .jsp-extension and use a xml-file with jsp:root as root element. this is no problem for facelets, because it will ignore everything outside the facelets-tags and wtp will support it with code-completion.
    also available is the jboss tools suite, but they currently have problems with 3rd party taglibs if you doesn't copy the taglib-description.
    bye

  • JSF vs. JSP and IDE Question

    I'd like to get an opinion from the forum, I'm looking to build a web application that provides a front-end to a back-end, batch Java app. The back-end app has pre-existing common classes and methods with all of the essential business logic.
    My first question is, what platform should I be looking at, Javaserver Faces or JSP? JSF is so new and all of the bugs surely haven't been worked out, but it is the heir apparent new direction of J2EE. JSP is a little more proven, but a little more difficult to work in. This "more difficult" might not be so bad for us, because we've developed most of our back-end app without an IDE or drag-and-drop tools.
    My second question regards IDE's. I'm relatively new to OO programming, and I've never used an IDE. So, of the many free IDE's out there (Eclipse, Netbeans, etc.), are there any that you would recommend for your answer to the first question? How large of a process improvement would you judge from a move to an IDE with drag-and-drog functionality?
    So, in short, I would appreciate any of your opinions on moving to a new JSF standard as well as your thoughts on IDE's.
    Thanks.

    If you don't want to sepnd much time and want to do something in the middle between JSF and JSP, you can use JSTL. Lots of cool JSTL components are available for free. Using struts (which is timetested) is also a good idea.
    If you have never used any Java IDE, I would suggest you to use netbeans ide. Netbeans is really cool ide and has some good features like refactoring, jsp debugging etc. You will have to use Tomact as your server if you want to use JSP debugging effectively.
    Eclipse with right plugin (My Eclipse) would be the best choice but you will have to understand some eclipse concepts before jumping on eclipse. It took me little time to figure out view, perpectives, plugins jargon.
    Also My Eclipse is not free but it's very inexpensive - $30 per year.
    All these are my experiances. I hope it helps you.
    Vaibhav Puranik

  • JSF equivalent to  td and tr

    what are the JSF components for html td and tr
    Thanks

    Let me answer the question this way. <td> <tr> are HTML tags used inside an HTML <table>. They are not components.
    JSF is a component technology that is supposed to be separate of the view device. That is why JSF has "Render Kits" and has one out of the box for HTML.
    There is no such thing as a <td> component. Now you might find a JSF component like h:datatable that creates and HTML table. It uses h:column which is roughly equivalient to producing <td>. It has a datamodel that is iterated over producing the equivalent of <tr>. There are other 3rd party versions of table as well.

  • JSF and Facelets on OC4J 10.1.2 / 10.1.3_dp4

    Hi,
    I am developing a web application using JSF and it works properly on OPC4J (JSF RI and myFaces). But I cannot find a way to get Facelets running.
    When I simply deploy the sample application from exadel here I get strange errors:
    1) Using JSP 2.4
    java.io.IOException: code-source:/D:/dev/Server/oc4j_10.1.3_dp4/j2ee/home/applications/JSF/JSF63622/WEB-INF/lib/xhtml-lat1.ent has no "!<path>" suffix so does not name a path within the code-source.
         at oracle.oc4j.loader.SharedCodeSourceSet.getResourceStream(SharedCodeSourceSet.java:396)
         at oracle.oc4j.loader.SharedCodeSourceURL$Connection.getInputStream(SharedCodeSourceURL.java:93)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.xml.parser.v2.XMLReader.openURL(XMLReader.java:2367)
         at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:280)
         at oracle.xml.parser.v2.XMLReader.pushEntityRef(XMLReader.java:2240)
         at oracle.xml.parser.v2.XMLReader.pushEntityRef(XMLReader.java:2168)
         at oracle.xml.parser.v2.XMLExternalReader.pushEntityRef(XMLExternalReader.java:157)
         at oracle.xml.parser.v2.XMLExternalReader.checkEntityStart(XMLExternalReader.java:167)
         at oracle.xml.parser.v2.XMLExternalReader.setMarkupDepth(XMLExternalReader.java:285)
         at oracle.xml.parser.v2.NonValidatingParser.parseMarkupDecl(NonValidatingParser.java:617)
         at oracle.xml.parser.v2.NonValidatingParser.parseDoctypeDecl(NonValidatingParser.java:484)
         at oracle.xml.parser.v2.NonValidatingParser.parseProlog(NonValidatingParser.java:310)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:289)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:199)
         at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:292)
         at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:230)
         at com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:219)
         at com.sun.facelets.compiler.Compiler.compile(Compiler.java:99)
         at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:187)
         at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:137)
         at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:88)
         at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:396)
         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:434)
         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 com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:382)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:701)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:397)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:291)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:48)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:225)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:173)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:230)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:305)
         at index2e_jsp._jspService(_index_2e_jsp.java:46)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:408)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:525)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:447)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:382)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:701)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:397)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:833)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:430)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:215)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    2) Using JSP 2.4:
    java.lang.NullPointerException
         at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
         at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:76)
         at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:398)
         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:432)
         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 com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:382)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:701)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:397)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:291)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:48)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:225)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:173)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:230)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:305)
         at index2e_jsp._jspService(_index_2e_jsp.java:46)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:644)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:364)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:525)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:447)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:382)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:701)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:397)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:833)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:430)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:215)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Has anyone some tips for me why Facelets does not work or how i can get it to work?
    Thanks, Daniel

    Copy the META-INF folder of the
    jsf-facelets.jar to a folder called "config" in the WEB-INF folder of your web and add
    <context-param>
    <param-name>facelets.LIBRARIES</param-name>
    <param-value>/WEB-INF/config/jsf-core.taglib.xml;/WEB-INF/config/jsf-html.taglib.xml;/WEB-INF/config/jsf-ui.taglib.xml;/WEB-INF/config/jstl-core.taglib.xml;/WEB-INF/config/jstl-fn.taglib.xml</param-value>
    </context-param>
    to the web.xml.
    This helped for me.

  • Jsf and facelets

    Hi all,
    I have to include some html-file from the file system in a facelet. The html-file contains java-script and is not a valid xhtml-file . Is there a chance to do this with faclets?
    Thanks in advance
    Rainer

    I can´t influence the javascript in the file. It´s a birt report, which is dynamically generated at runtime.. So, any other ideas?

  • JSF 1.2 and facelets 1.1.11 problems with css

    I've started using facelets to get the templating features - which is working great.
    The problem is that I can't load my css files. The HTML generator converts all of my links into a relative path.
    For example, in my .xhtml file I have this line
    h5. <link rel="stylesheet" type="text/css" href="../../style/themes/smi.css"></link>When it gets to the browser, it becomes this line
    h5. <link href="style/themes/smi.css" rel="stylesheet" type="text/css" />
    Even if I use absolute paths, the compiler converts it to a relative path.
    I've tried adding a <base element, but that just gets removed when the HTML file gets to the browser.

    I'm fairly certain Facelets isn't interested in modified the href attribute of your link tags. I imagine something else is going on here. If you have a simple example, I could try to run it here.
    There was a recent thread on how to use absolute paths in CSS references; I suggest you search the forum for it for tips.

  • JSF RI 1.2_4 and before bug in encodings i think

    im from Bulgaria and Im using cyrelic characters in one JSF page using SUn JSF RI implementation .
    The problem is that sometimes ( 1 from 30 openings of a page ) the Cyrlic characters looks like "???" only when i refresh it is okei .
    im using facelets but i try without them the result is the same.
    Every character is getted from resource bundle in UTF 8 encoding
    keys are somethink like :
    steptwo_livein_rent=\u043F\u043E\u0434 \u043D\u0430\u0435\u043Cand from time to time everythink looks ???? or not all fields just one of them not only input fields not only output fields i think random fields looks like ????
    that is realy realy very strange have somebody have solution ?
    what have i try :
    1)i try to use <f:view locale="bg_BG" >
    2) i try to use charset=utf-8 and charset=1251
    the result is the same.
    i see somethink like this :
    http://isy-dc.com/~naiden/JSFBug.JPG
    can i use some phase listener and to be able to set the encoding to the response ? or can i make something ?
    Message was edited by:
    JOKe

    im from Bulgaria and Im using cyrelic characters in one JSF page using SUn JSF RI implementation .
    The problem is that sometimes ( 1 from 30 openings of a page ) the Cyrlic characters looks like "???" only when i refresh it is okei .
    im using facelets but i try without them the result is the same.
    Every character is getted from resource bundle in UTF 8 encoding
    keys are somethink like :
    steptwo_livein_rent=\u043F\u043E\u0434 \u043D\u0430\u0435\u043Cand from time to time everythink looks ???? or not all fields just one of them not only input fields not only output fields i think random fields looks like ????
    that is realy realy very strange have somebody have solution ?
    what have i try :
    1)i try to use <f:view locale="bg_BG" >
    2) i try to use charset=utf-8 and charset=1251
    the result is the same.
    i see somethink like this :
    http://isy-dc.com/~naiden/JSFBug.JPG
    can i use some phase listener and to be able to set the encoding to the response ? or can i make something ?
    Message was edited by:
    JOKe

  • JSP and Facelets same application issues.

    Hi guys,
    I am trying to add Faceletes into an existing application using jsf, tiles and jsp.
    I have been reading several articles about how to move into Facelets without success.
    These are the urls I have reviewed.
    http://wiki.java.net/bin/view/Projects/FaceletsFAQ#How_do_I_use_Facelets_and_JSP_in
    http://osdir.com/ml/java.facelets.user/2006-12/msg00064.htmlWill this work and how do I achieve it?
    Thanks
    Phil

    Thanks for your reply. I agree with you that we need to move to Facelets. We have a large application and it is hard to sell a total rewrite today. All new development is to be done with Facelets.
    My question is why I am having a problem using jsp with jsf tags together with facelets ?? I have followed the wiki advice. When I try to load the app I get a 404. There are no errors in the log files. We are using Jboss.
    This is what I put in my web.xml.
    <web-app>
      <context-param>
        <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
        <param-value>.jsp</param-value>
      </context-param>
      <!-- Facelets pages will use the .xhtml extension -->
      <context-param>
        <param-name>facelets.VIEW_MAPPINGS</param-name>
        <param-value>*.xhtml</param-value>
      </context-param>    
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      </servlet>
      <!-- Use prefix mapping for Facelets pages, e.g. http://localhost:8080/webapp/faces/mypage.xhtml -->
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
      </servlet-mapping>
    </web-app>This is in my faces-config.xml
      <application>
        <locale-config>
          <default-locale>en</default-locale>
        </locale-config>
         <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
      </application>Thanks
    Phil

  • Upgrade from JSF 1.1 to JSF 1.2 (Mojarra and MyFaces) failed.

    Dear all,
    I tried to upgrade from JSF 1.1 to JSF 1.2 but failed. The application starts OK in jsf 1.1 both myfaces and RI, but failed to start using JSF 1.2.
    My environment is as follows.
    - JDK 1.5
    - Tomcat 6.0
    - Facelet
    - JSF Mojarra 1.2
    The error is as follows, occurs when starting tomcat (my application is in context /web)
    INFO: Initializing Sun's JavaServer Faces implementation (1.2_01-b04-FCS) for context '/web'
    Feb 12, 2009 10:39:40 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_01-b04-FCS) for context '/web'
    Feb 12, 2009 10:39:40 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Feb 12, 2009 10:39:40 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [web] startup failed due to previous errors
    What I have included in WEB-INF/lib are:
    - JSTL 1.2 (standard.jar and jstl.jar)
    - JSF mojarra 1.2 (jsf-api.jar and jsf-impl.jar)
    - Facelets( el-api.jar, el-impl.jar, and jsf-facelet.jar)
    - commons-digester.jar
    - commons-beanutils.jar
    - commons-logging.jar
    - commons-collection.jar
    Documentation that I read from mojarra FAQ states that i need EL, but EL has been included in Facelets.
    Am i missing something? The following is the part of web.xml that i used, maybe useful to locate what i am missing.
    <web-app 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]"
    version="2.4">
    <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.xhtml</param-value>
    </context-param>
    <!-- Special Debug Output for Development -->
    <context-param>
    <param-name>facelets.DEVELOPMENT</param-name>
    <param-value>true</param-value>
    </context-param>
    <!-- Optional JSF-RI Parameters to Help Debug -->
    <context-param>
    <param-name>com.sun.faces.validateXml</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>com.sun.faces.verifyObjects</param-name>
    <param-value>true</param-value>
    </context-param>
    <!--use this if start using JSF 1.2 -->
    <context-param>
    <param-name>com.sun.faces.injectionProvider</param-name>
    <param-value>com.sun.faces.vendor.GlassFishInjectionProvider</param-value>
    </context-param>
    <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
    </servlet

    Hi BalusC,
    Thank you for your time answering my question.
    For the first point, you were right. Now I have downloaded the latest Mojarra release.
    As for the case of web.xml, i should mentioned that I have tried declaring it as Servlet API 2.4 and Servlet API 2.5, and still got the error. My web.xml that declares as 2.5 looks as follows:
    <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/javaeeweb-app_2_5.xsd"
    version="2.5">
    On the third point, maybe i stated my problem in a wrong way. What I meant was, I tried each implementation separately, and both implementation did not work.
    About Glassfish injection, i followed the step in Mojarra FAQ regarding the following error.
    JSF1033: Resource injection is DISABLED
    This error showed when i started tomcat. However, since I use the latest Mojarra release, the message error disappear. I have deleted the "glasshfish injection provider" from web.xml, and the error has disappeared.
    Here's the latest of my tomcat startup messages (after i replaced the Mojarra libraries, declared as servlet 2.5 in web xml, and removed glassfish injection provider from web.xml).
    Feb 18, 2009 9:41:58 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
    Feb 18, 2009 9:41:58 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].
    Feb 18, 2009 9:41:59 AM org.apache.coyote.http11.Http11AprProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-80
    Feb 18, 2009 9:41:59 AM org.apache.coyote.ajp.AjpAprProtocol init
    INFO: Initializing Coyote AJP/1.3 on ajp-8009
    Feb 18, 2009 9:41:59 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 772 ms
    Feb 18, 2009 9:41:59 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Feb 18, 2009 9:41:59 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
    Feb 18, 2009 9:42:01 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Mojarra (1.2_12-b01-FCS) for context '/web'
    Feb 18, 2009 9:42:01 AM com.sun.faces.config.ConfigureListener contextInitialized
    WARNING: JSF1059: WARNING! The com.sun.faces.verifyObjects feature is to aid developers not using tools. It shouldn''t be enabled if using an IDE, or if this application is being deployed for production as it will impact application start times.
    Feb 18, 2009 9:42:06 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Feb 18, 2009 9:42:06 AM org.apache.catalina.core.StandardContext start
    *SEVERE: Context [web] startup failed due to previous errors*
    Feb 18, 2009 9:42:07 AM org.apache.coyote.http11.Http11AprProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-80
    Feb 18, 2009 9:42:07 AM org.apache.coyote.ajp.AjpAprProtocol start
    INFO: Starting Coyote AJP/1.3 on ajp-8009
    Feb 18, 2009 9:42:07 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 8116 ms
    The application still failed to start.There wasnt enough information for me to digest what is actually went wrong, other than SEVERE: Listener start. And let me say this again, the application starts OK when I used JSF 1.1 (Reference Implementation or MyFaces).
    Anyone has the same experience.?
    Thanks in advance.
    Edited by: niner on Feb 17, 2009 7:11 PM

  • Faces and Facelets

    Hello Guys,
    I have a project with JSF. Everything is working fine. Now I have to add Faceletes capabilities to the project in a way that I implement facelets techniques to some pages and leave the rest of JSF pages as they are. So that I am able to run both the full pages and template pages. Is there any possbile way to do so? Or I would have to convert each and every .jsp page to .xhtml page? Please help.
    Kashif
    Edited by: JANATKash on Oct 13, 2008 11:03 AM

    I add the line you told me to add. But I am still unable to solve the problem. Here is 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" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee   http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>0</load-on-startup>
      </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.faces</url-pattern>
      </servlet-mapping>
      <context-param>
        <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
        <param-value>.jsp</param-value>
      </context-param>
      <!-- Facelets pages will use the .xhtml extension -->
      <context-param>
        <param-name>facelets.VIEW_MAPPINGS</param-name>
        <param-value>*.xhtml</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>
      <!-- Birt Reports Configuration -->
      <context-param>
        <description>If usr can only access the reprot resources under working folder. Default is false</description>
        <param-name>WORKING_FOLDER_ACCESS_ONLY</param-name>
        <param-value>false</param-value>
      </context-param>
      <context-param>
        <description>The generated document files directory. Default to ${Context Root}/documents</description>
        <param-name>BIRT_VIEWER_DOCUMENT_FOLDER</param-name>
        <param-value>WEB-INF/report-engine/documents</param-value>
      </context-param>
      <context-param>
        <description>If turn on the function that supports print on the server side(ON|OFF).Default to on.</description>
        <param-name>BIRT_VIEWER_PRINT_SERVERSIDE</param-name>
        <param-value>ON</param-value>
      </context-param>
      <context-param>
        <description>Memory size(MB) for creating cube.</description>
        <param-name>BIRT_VIEWER_CUBE_MEMORY_SIZE</param-name>
        <param-value />
      </context-param>
      <context-param>
        <description>Directory to store all birt report script libraries (JARs). Default to ${Context Root}/scriptlib</description>
        <param-name>BIRT_VIEWER_SCRIPTLIB_DIR</param-name>
        <param-value>WEB-INF/report-engine/scriptlib</param-value>
      </context-param>
      <context-param>
        <description>If always overwrite generated document file. Default to true</description>
        <param-name>BIRT_OVERWRITE_DOCUMENT</param-name>
        <param-value>true</param-value>
      </context-param>
      <context-param>
        <description>Output images/charts directory. Default to ${Context Root}/report/images</description>
        <param-name>BIRT_VIEWER_IMAGE_DIR</param-name>
        <param-value>WEB-INF/report-engine/images</param-value>
      </context-param>
      <context-param>
        <description>BIRT viewer extended configuration file</description>
        <param-name>BIRT_VIEWER_CONFIG_FILE</param-name>
        <param-value>WEB-INF/report-engine/viewer.properties</param-value>
      </context-param>
      <context-param>
        <description>Dataset rows limited when preview report. Default to return all rows</description>
        <param-name>BIRT_VIEWER_MAX_ROWS</param-name>
        <param-value />
      </context-param>
      <context-param>
        <description>Cube fetch row levels limited when preview report (Only support to preview a report design file using preview pattern). Default to return all levels</description>
        <param-name>BIRT_VIEWER_MAX_CUBE_ROWLEVELS</param-name>
        <param-value />
      </context-param>
      <context-param>
        <description>Default locale setting</description>
        <param-name>BIRT_VIEWER_LOCALE</param-name>
        <param-value>en-US</param-value>
      </context-param>
      <context-param>
        <description>Cube fetch column levels limited when preview report (Only support to preview a report design file using preview pattern). Default to return all levels</description>
        <param-name>BIRT_VIEWER_MAX_CUBE_COLUMNLEVELS</param-name>
        <param-value />
      </context-param>
      <context-param>
        <description>Report resources(design files or document files) directory for preview. Default to ${Context Root}</description>
        <param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
        <param-value />
      </context-param>
      <context-param>
        <description>Report Engine logs directory. Default to ${Context Root}/logs</description>
        <param-name>BIRT_VIEWER_LOG_DIR</param-name>
        <param-value>WEB-INF/report-engine/logs</param-value>
      </context-param>
      <context-param>
        <description>Resource location directory(library files, images files or others). Default to ${Context Root}</description>
        <param-name>BIRT_RESOURCE_PATH</param-name>
        <param-value />
      </context-param>
      <context-param>
        <description>If force optimized HTML output.Default to true</description>
        <param-name>HTML_ENABLE_AGENTSTYLE_ENGINE</param-name>
        <param-value>true</param-value>
      </context-param>
      <context-param>
        <description>Report engine log level.( ALL|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST|OFF )</description>
        <param-name>BIRT_VIEWER_LOG_LEVEL</param-name>
        <param-value>WARNING</param-value>
      </context-param>
      <!--  RichFaces configuration -->
      <context-param>
        <param-name>org.richfaces.SKIN</param-name>
        <param-value>blueSky</param-value>
      </context-param>
      <filter>
        <display-name>RichFaces Filter</display-name>
        <filter-name>richfaces</filter-name>
        <filter-class>org.ajax4jsf.Filter</filter-class>
      </filter>
      <filter>
        <filter-name>AccessFilter</filter-name>
        <filter-class>eu.digitania.dls.frontend.filters.AccessFilter</filter-class>
        <init-param>
          <param-name>loginPage</param-name>
          <param-value>login.faces</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>richfaces</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>INCLUDE</dispatcher>
      </filter-mapping>
      <!-- <filter-mapping>
      <filter-name>AccessFilter</filter-name>
       <url-pattern>/dlsreports/*</url-pattern>
       <url-pattern>/push_service/*</url-pattern> 
       <dispatcher>FORWARD</dispatcher>
    </filter-mapping>-->
      <listener>
        <listener-class>org.eclipse.birt.report.listener.ViewerHttpSessionListener</listener-class>
      </listener>
      <listener>
        <listener-class>org.eclipse.birt.report.listener.ViewerServletContextListener</listener-class>
      </listener>
      <servlet>
        <servlet-name>EngineServlet</servlet-name>
        <servlet-class>org.eclipse.birt.report.servlet.BirtEngineServlet</servlet-class>
        <load-on-startup>0</load-on-startup>
      </servlet>
      <servlet>
        <servlet-name>ViewerServlet</servlet-name>
        <servlet-class>org.eclipse.birt.report.servlet.ViewerServlet</servlet-class>
        <load-on-startup>0</load-on-startup>
      </servlet>
      <servlet>
        <description>This is the description of my J2EE component</description>
        <display-name>This is the display name of my J2EE component</display-name>
        <servlet-name>EditServiceServlet</servlet-name>
        <servlet-class>eu.digitania.dls.frontend.servlets.EditServiceServlet</servlet-class>
      </servlet>
      <servlet>
        <description>Starts the Emulator</description>
        <display-name>Starts the Emulator</display-name>
        <servlet-name>InitializerServlet</servlet-name>
        <servlet-class>eu.digitania.dls.emulator.InitializerServlet</servlet-class>
        <load-on-startup>4</load-on-startup>
      </servlet>
      <servlet-mapping>
        <servlet-name>InitializerServlet</servlet-name>
        <url-pattern>/servlet/InitializerServlet</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>EditServiceServlet</servlet-name>
        <url-pattern>/servlet/EditServiceServlet</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>ViewerServlet</servlet-name>
        <url-pattern>/frameset</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>EngineServlet</servlet-name>
        <url-pattern>/document</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>EngineServlet</servlet-name>
        <url-pattern>/download</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>EngineServlet</servlet-name>
        <url-pattern>/parameter</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>EngineServlet</servlet-name>
        <url-pattern>/extract</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>ViewerServlet</servlet-name>
        <url-pattern>/run</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>EngineServlet</servlet-name>
        <url-pattern>/preview</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>EngineServlet</servlet-name>
        <url-pattern>/output</url-pattern>
      </servlet-mapping>
      <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
      <jsp-config>
        <taglib>
          <taglib-uri>/birt.tld</taglib-uri>
          <taglib-location>/WEB-INF/report-engine/tlds/birt.tld</taglib-location>
        </taglib>
      </jsp-config>
       <filter>
         <filter-name>MyFacesExtensionsFilter</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>10</param-value>
        </init-param>
        <init-param>
            <description>
                Set the path where the intermediary files will be stored.
            </description>
            <param-name>uploadRepositoryPath</param-name>
            <param-value>/temp</param-value>
        </init-param>
         </filter>
         <filter-mapping>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
        <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    </web-app>

  • ADF Faces and Facelets.

    How to use Facelets with ADF Faces I'm getting the ADF Components displayed, but the alignments are not working.And also , the JDeveloper is not recognising the <ui:insert> and <ui;composition> saying, No grammer available.
    Further , In the source for the HTML page rendered we could see the Facelets tags. these are not being converted to HTML.
    So where lies the problem?
    I added all the jar files neeed, added all web.xml entries; but could not get the correct out put.
    Can any one help me?
    Thanking you,
    Samba.

    Hi Samba,
    If you get any headway, please post it here. I am in the same boat!
    Are there other people out there using facelets with ADF? I would really appreciate any insight. Thanks!

  • JSF integration with Webwork and Freemarker ?

    My company is investing a lot in an application that uses Webwork and Freemarker. I'd like to reuse chunks of that but with JSF components for new development. I know it's possible to link to and from external URLs using JSF's navigation, but I don't think that buys me much in this case. Is it possible to use the JSF View (as in Model-View-Controller) with someone else's (Webwork's) front controller? I'm guessing JSF can coexist with Freemarker as it does with JSP and HTML. Or, does anyone know of any successful approach to Webwork integration anywhere?
    thx!

    My company is investing a lot in an application that uses Webwork and Freemarker. I'd like to reuse chunks of that but with JSF components for new development. I know it's possible to link to and from external URLs using JSF's navigation, but I don't think that buys me much in this case. Is it possible to use the JSF View (as in Model-View-Controller) with someone else's (Webwork's) front controller? I'm guessing JSF can coexist with Freemarker as it does with JSP and HTML. Or, does anyone know of any successful approach to Webwork integration anywhere?
    thx!

Maybe you are looking for

  • NI DAQMX Driver performanc​e

    Hello all, I would like to build a SubVI to generate digital & analog output, but am concerned about possible performance issues.   In some extreme cases I will need to call this SubVI in rapid succession(50ms interval) hundreds of times.   It will c

  • File Lock - How to lock and unlock a file ? Can we do that for an FTP File?

    Hi All, I like to retrieve a file from the FTP server using Apache Commons Net libraries. for example if the file size is 20MB. When the file is in the progress of copying or transferring from the FTP server i need to lock the local file which is in

  • Error occured when upgrading  PI (7.0) system  from SP10 to SP 20.

    We have upgrade our PI (7.0) system  from SP10 to SP 20. Here the proxy is used to update the database. Itu2019s failing at the synchronous proxy when XI is sending data to Proxy. Problem still exists even after regenerating the proxy. The following

  • Problem with using new Upload to FTP Host feature...

    I tried using the "Upload to FTP Host" feature to upload to GoDaddy.com. It worked fine the first time but now I get this message: Error: Error creating folder //images. Click Resume to try again. If this problem persists, try again later. I tried a

  • Invalid Materialized view

    Hi ALL: some of MVs become invalid (yes, we did app upgrade over the weekend). I looked on every object reference in the MV, all permissions - can't find anything. I dropped MVs and created them no errors. Status changed to VALID. I decided to re-COM