JSF and MyFaces

I'm trying to develop a site in JSF with the Studio Creator and use an existing stylesheet.
Problem: how to get the <div> structure into my JSF code. If i just do somethin like this:
<f:verbatim><div class="aboutbox"></f:verbatim>
<ui:staticText binding="#{includes$startPage.startPage_welcomeMessage}" escape="false" id="startPage_welcomeMessage" text="#{startPage.welcomeMessage}"/>
<f:verbatim></div></f:verbatim>This doesn't work. "the element <div> is missing the end-tag </div>..
So it seems the only way to get divs working is to use myFaces?
Has someone succesfully used myFaces with the Studio Creator (I read that its possible to use it, but without visual designer, that doesn't bother me..)
I'd appreciate any help or suggestions!

Drop a LayoutPanel on your page and move the StaticText into this panel. This results in something like
<ui:panelLayout binding="includes$startPage.layoutPanel1" id="layoutPanel1">
     <ui:staticText binding="#{includes$startPage.startPage_welcomeMessage}" escape="false" id="startPage_welcomeMessage" text="#{startPage.welcomeMessage}"/>
</ui:panelLayout>Now change the properties of the LayoutPanel. Set styleClass to "aboutbox".
Note: components of type LayoutPanel were rendered as <div> elements in HTML.

Similar Messages

  • JSF and MyFaces  (... PropertyNotFoundException: Base is null: ...)

    Hello to all,
    I am developing an educative system for it I am using JSF 1.1.01 and MyFaces 1.1.1 on Eclipse 3.1.0 and Exadel 3.0.4, but a problem appeared: everything walks well when I am developing on eclipse and exadel, but when I install the application in the server tomcat (I use jakarta-tocmat-5.5.9) leaves an error to me the type:
    javax.faces.el.PropertyNotFoundException: Base is null: Login
            at org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBindingImpl.java:455)
            at org.apache.myfaces.el.ValueBindingImpl.getType(ValueBindingImpl.java:169)
            at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:111)
            at javax.faces.component.UIInput.getConvertedValue(UIInput.java:713)
            at javax.faces.component.UIInput.validate(UIInput.java:638)
            at javax.faces.component.UIInput.executeValidate(UIInput.java:849)
            at javax.faces.component.UIInput.processValidators(UIInput.java:412)
            at javax.faces.component.UIForm.processValidators(UIForm.java:170)
            at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:912)
            at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:342)
            at org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:240)
            at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
            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.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
            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:667)
            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)Login is the Bean of the form of login to the system and now to know as it was the problem clears the labels and libreries of myfaces and with this I start correctly. I am something confused since in eclipse it works correctly and in the server jakarta-tomcat is not thus.
    thanks beforehand!

    Hello thanks to respond,
    Good, this are the code of the pages:
    web.xml
    <web-app>
         <display-name>Sistema Educativo TNAB</display-name>
         <context-param>
              <param-name>javax.faces.CONFIG_FILES</param-name>
              <param-value>
                   /WEB-INF/faces-config.xml,
                            /WEB-INF/navigation-default.xml,
              </param-value>
         </context-param>
         <context-param>
              <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
              <param-value>client</param-value>
         </context-param>
         <context-param>
              <param-name>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>false</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>
              <filter-name>SecurityFilter</filter-name>
              <filter-class>
                   com.empowerment.sisedu.controller.session.SecurityFilter
              </filter-class>
         </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>
         <filter-mapping>
              <filter-name>SecurityFilter</filter-name>
              <url-pattern>*.jsf</url-pattern>
         </filter-mapping>
         <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>
         <welcome-file-list>
              <welcome-file>index.jsp</welcome-file>
         </welcome-file-list>
    </web-app>
    faces-config.xml
           <managed-bean>
              <managed-bean-name>Login</managed-bean-name>
              <managed-bean-class>
                   com.empowerment.sisedu.action.session.Login
              </managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
         </managed-bean>
            <navigation-rule>
              <from-view-id>/pages/index.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>login</from-outcome>
                   <to-view-id>/pages/session.jsp</to-view-id>
              </navigation-case>
              <navigation-case>
                   <from-outcome>error</from-outcome>
                   <to-view-id>/pages/error-index.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    login.jsp
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <f:view>
         <h:form id="Formulario">
            <h:outputText value="Usuario:" />
            <h:inputText accesskey="U" id="campo_login" styleClass="inputbox"
                    size="15" value="#{Login.login}" />
            <h:outputText value="Contrasena: " />
            <h:inputSecret accesskey="C" id="campo_password" styleClass="inputbox"
                    size="15" value="#{Login.password}" />
            <h:commandButton accesskey="I"  styleClass="button" value="Ingresar"
              action="#{Login.autenticar}" />
         </h:form>
         </f:view>
    Login.java
    package com.empowerment.sisedu.action.session;
    import ....
    public class Login {
        private String login;
        private String password;
        public Login() {}
        public String getLogin() { return this.login; }
        public void setLogin(String login) { this.login = login; }
        public String getPassword() { return this.password; }
        public void setPassword(String password) { this.password = password; }
        public String autenticar() {
            String outcome = NavigationResults.ERROR;
            ErrorMessage error = new ErrorMessage();
            if (validarCamposDatosUsuario()) {
                try {
                    ControllerUtil.login(login, password);
                    outcome = NavigationResults.LOGIN;
                } catch (NoExisteException e) {
                    error.messageCustom("info", e.getMessage(), "ERROR AUTENTICACION USUARIO");
                    outcome = NavigationResults.ERROR;
                } catch (ListaVaciaException e) {
                    error.messageGeneral(e.getMessage());
                    outcome = NavigationResults.ERROR;
                } catch (FalloSesionException e) {
                    error.messageSession();
                    outcome = NavigationResults.ERROR;
                } catch (HibernateException e) {
                    error.messageGeneral(e.getMessage());
                    outcome = NavigationResults.ERROR;
                FacesUtils.resetManagedBean(BeanNames.LOGIN_BEAN);
            return outcome;
        private boolean validarCamposDatosUsuario() {
            ErrorMessage error = new ErrorMessage();
            boolean outcome = true;
            if (!ValidatorUtil.dentroLimite(this.login, 5, 20)) {
                outcome = false;
                error.messageCustom("warn", "El campo usuario tiene " + this.login.length()
                        + " letras, pero debe tener entre 5 a 20 letras.", "ERROR VALIDACION: CAMPO USUARIO");
                return outcome;
            else if (!ValidatorUtil.esLetra(this.login)) {
                outcome = false;
                error.messageCustom("warn", "El campo usuario debe ser de solamente letras.",
                        "ERROR VALIDACION: CAMPO USUARIO");
                return outcome;
            if (!ValidatorUtil.dentroLimite(this.password, 5, 20)) {
                outcome = false;
                error.messageCustom("warn", "El campo contrase��a tiene "
                        + this.password.length() + " letras, pero debe tener entre 5 a 20 letras.",
                        "ERROR VALIDACION: CAMPO CONTRASENA");
                return outcome;
            return outcome;
    }ControllerUtil.login(login, password) is the method of a class controller who validate to the user in the data base, this data base is PostgreSQL 8.0.1 and the handling with framework Hibernate 3.0....

  • Difference between Sun RI JSF and MyFaces JSF

    Hi all,
    I am using JBoss AS and have a JSF application. By default, JBoss bundle MyFaces JSF with Jboss. I have everything working fine with MyFaces. However, I encounter problem when I tried to display the banding for dataTable using Oracle ADF. From my research, it seems ADF table's banding does not work with MyFaces so I want to test out using Sun RI JSF with Jboss. I remove MyFaces jar files and put Sun RI jar file in WEB_INF/lib directory and remove the line in web.xml
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>This is done following Jboss documentation. But when Tomcat starts up, it seems still look for org.apache.myfaces.webapp.StartupServletContextListener class and throw ClassNotFoundException (because I removed myfaces jars). Has anyone benn able switched to use Sun RI in JBoss AS version 4.0.5?
    Thanks a lot,
    LNgo

    Probably I should have posted this message on the Java Server Faces forums. I will repost there but if someone happens to know the answer, please help.
    Thanks,
    Lngo

  • Jsf and tiles via myfaces

    Greetings:
    Please either confirm and/or correct following proposed solution for Myfaces tiles.
    Issue: isert a tile definition and attribute in a pure jsf page.
    First passed solution: A hybrid of Jsp programming and Jsf. I was able to create a tile page layout in pure jsf except in the portal columns i used old fashion jsp programming to insert a list of portletDefinitions which is extracted from jsf ValueBinding of its managed beans.
    The problem with the above approach is that it works well only with html portlet fragments. When a portlet fragment has some jsf elements, the page rendering has conflict of simultaneous rendering between jsf and jsp. The portlet fragments are rendered in a woring place.
    Proposed solution: use <h:dataTable ...> to render the portletList and extract the item portletDefinition as following:
    <h:dataTable var="portlet"
    value="#{portalTabbedBean.selectedPane.serviceListL}" >
    <f:verbatim>
    <h:outputText
    value="<tiles:insert name=#{portlet.portletDefinition} flush='false' /> " />
    </f:verbatim>
    </h:dataTable>
    Note on the name of tiles:insert element, which i just extracted the definition as a jsp variable to make it work in the first hybrid solution:
    <tiles:insert name="<%=portletDefinition%>" flush="false" />
    Thanks
    BaTien
    DBGROUPS

    I reply this myself. Jsf and Jsp programming either via Jstl or while loop do not go together under current version.
    I solve the problem by using Jsp programming and insert the portlet tile fragment directly rather than though a portlet template with different tile content attribute. The portlet tile is created as <h:panelGrid ...> and observe the set rules to make Jsf and jsp working together. Hopefully Jsf and Jsp will be able to work together nicely in their next specifications.

  • Using JSF and tiles

    Hi Friends,
    I'm trying to combine JSF and tiles as follows:
    Template file:
    <f:subview id="content">
    <tiles:insert attribute="content" flush="false"/>
    </f:subview>
    content file:
    <tiles:insert definition="userSpecific">
    <tiles:put name="content" type="string" >
    <h:outputText value="aaaa"/>
    </tiles:put>
    </tiles:insert>
    I get the following error when loading the content file:
    2007-06-20 10:14:10,578 [http-8080-Processor23] ERROR org.apache.myfaces.shared_impl.taglib.UIComponentTagUtils - Component javax.faces.component.UIViewRoot is no ValueHolder, cannot set value.
    I tried putting the template content in a verbatim tag and then it works
    but the content page is not displayed in correct place in the template...
    Thanks a lot in advance!

    Are you dead set on using tiles? I can see tiles including JSF but JSF including tiles? Not sure if that will work.
    My suggestion is to use Trinidad. It has the concept of Regions which is very "tiles" like and you will be far more successful.

  • JSF and Character Sets (UTF-8)

    Hi all,
    This question might have been asked before, but I'm going to ask it anyway because I'm completely puzzled by how this works in JSF.
    Let's begin with the basics, I have an application running on an OC4J servlet container, and am using JSF 1.1 (MyFaces). The problems I am having with this setup, is that it seems that the character encodings I want the server/client to use are not coming across correctly. I'm trying to enforce the application to be UTF-8, but after the response is rendered to my client, I've magically been reverted to ISO-8859-1, which is the main character set for the netherlands. However, I'm building the application to support proper internationalization; which means I NEED to use UTF-8.
    I've executed the following steps to reach this goal:
    - All JSP files contain page directives, noting the character set:
    <%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>I've checked the generated source that comes from the JSP's, it looks as expected.
    - I've created a servlet filter to set the character set directly on the request and response objects:
        public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {
            // Set the characterencoding for the request and response streams.
            req.setCharacterEncoding("UTF-8");
            res.setContentType("text/html; charset=UTF-8");       
            // Complete (continue) the processing chain.
            chain.doFilter(req, res); 
        }I've debugged the code, and this works fine, except for where JSF comes in. If I use the above situation, without going through JSF, my pages come back UTF-8. When I go through JSF, my pages come back as ISO-8859-1. I'm baffled as to what is causing this. On several forums, writing a filter was proposed as the solution, however this doesn't do it for me.
    It looks like somewhere internally in JSF the character set is changed to ISO. I've been through the sources, and I've found several pieces of code that support that theory. I've seen portions of code where the character set for the response is set to that of the request. Which in my case coming from a dutch system, will be ISO.
    How can this be prevented? Can anyone give some good insight on the inner workings of JSF with regards to character sets in specific? Could this be a servlet container problem?
    Many thanks in advance for your assistance,
    Jarno

    Jarno,
    I've been investigating JSF and character encodings a bit this weekend. And I have to say it's more than a little confusing. But I may have a little insight as to what's going on here.
    I have a post here:
    http://forum.java.sun.com/thread.jspa?threadID=725929&tstart=45
    where I have a number of open questions regarding JSF 1.2's intended handling of character encodings. Please feel free to comment, as you're clearly struggling with some of the same questions I have.
    In MyFaces JSF 1.1 and JSF-RI 1.2 the handling appears to be dependent on the raw Content-Type header. Looking at the MyFaces implementation here -
    http://svn.apache.org/repos/asf/myfaces/legacy/tags/JSF_1_1_started/src/myfaces/org/apache/myfaces/application/jsp/JspViewHandlerImpl.java
    (which I'm not sure is the correct code, but it's the best I've found) it looks like the raw header Content-Type header is being parsed in handleCharacterEncoding. The resulting value (if not null) is used to set the request character encoding.
    The JSF-RI 1.2 code is similar - calculateCharacterEncoding(FacesContext) in ViewHandler appears to parse the raw header, as opposed to using the CharacterEncoding getter on ServletRequest. This is understandable, as this code should be able to handle PortletRequests as well as ServletRequests. And PortletRequests don't have set/getCharacterEncoding methods.
    My first thought is that calling setCharacterEncoding on the request in the filter may not update the raw Content-Type header. (I haven't checked if this is the case) If it doesn't, then the raw header may be getting reparsed and the request encoding getting reset in the ViewHandler. I'd suggest that you check the state of the Content-Type header before and after your call to req.setCharacterEncoding('UTF-8"). If the header charset value is unset or unchanged after this call, you may want to update it manually in your Filter.
    If that doesn't work, I'd suggest writing a simple ViewHandler which prints out the request's character encoding and the value of the Content-Type header to your logs before and after the calls to the underlying ViewHandler for each major method (i.e. renderView, etc.)
    Not sure if that's helpful, but it's my best advice based on the understanding I've reached to date. And I definitely agree - documentation on this point appears to be lacking. Good luck
    Regards,
    Peter

  • Uploading file problem in JSF using myfaces-extensions.jar.

    Dear All,
    I'm new to JSF and trying to upload files using myfaces-extensions-1.0.9.jar and commons-fileupload-1.2.1.jar.
    I have upload.jsp and result.jsp and a bean named MyBean.java. after press the submit button it should navigate to result.jsp and shows some info.
    My problem is that it successfully run but when submit its not working and remain same page.
    upload.jsp:
    {<%@page contentType="text/html" pageEncoding="windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <f:view>
    <h:form id="MyForm" enctype="multipart/form-data" >
    <h:messages globalOnly="true" styleClass="message"/>
    <h:panelGrid columns="3" border="0" cellspacing="5">
    <h:outputLabel for="myFileId" value="File: "/>
    <x:inputFileUpload id="myFileId"
    value="#{myBean.myFile}"
    storage="file"
    required="true"/>
    <h:message for="myFileId"/>
    <h:outputLabel for="myParamId" value="Param: "/>
    <h:selectOneMenu id="myParamId"
    value="#{myBean.myParam}"
    required="true">
    <f:selectItem itemLabel="" itemValue=""/>
    <f:selectItem itemLabel="MD5" itemValue="MD5"/>
    <f:selectItem itemLabel="SHA-1" itemValue="SHA-1"/>
    <f:selectItem itemLabel="SHA-256" itemValue="SHA-256"/>
    <f:selectItem itemLabel="SHA-384" itemValue="SHA-384"/>
    <f:selectItem itemLabel="SHA-512" itemValue="SHA-512"/>
    </h:selectOneMenu>
    <h:message for="myParamId"/>
    <h:outputText value=" "/>
    <h:commandButton id = "test" value="Submit"
    action="#{myBean.processMyFile}"/>
    <h:outputText value=" "/>
    </h:panelGrid>
    </h:form>
    </f:view>
    faces-config.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <!-- =========== FULL CONFIGURATION FILE ================================== -->
    <faces-config version="1.2"
    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-facesconfig_1_2.xsd">
    <managed-bean>
    <managed-bean-name>myBean</managed-bean-name>
    <managed-bean-class>
    com.devsphere.articles.jsfupload.MyBean
    </managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/upload.jsp</from-view-id>
    <navigation-case>
    <from-outcome>OK</from-outcome>
    <to-view-id>/result.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    Can anybody there for help me whats the problem. I'm using netbeans 6.1 with bundled tomcat 6.0 and no error is shown.

    Hey All,
    I've got my solve. Now Its working.

  • 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.

  • Buling a new Web Application using JSF and Ajax.

    Hello Group,
    I am a building a new web application using JSF and AJAX. Planning to use Myfaces Tomahawk, Dojo for Ajax, Hibernate, Spring,Eclipse IDE and Jetty Server.Can some one please suggest me will this be a right one for
    building complex UI and will it support for using the jsf features and would like to know any other free open
    source framework, ide, tools which support the best way for an agile project..?. There is restriction like i have to use java1.4

    jaisheela wrote:
    Hello Friends,
    I am also in the same situation.
    I am a building a new web application using JSF and AJAX.
    Requirement is I need to use IBM version of DOJO and JSF but I need to develop the whole application using Eclipse 3.3,2 and Tomcat 5.5.
    With IBM version of DOJO and JSF, will Eclipse and Tomcat help to speed up the development or do you suggest me to go for Rational Application Developer and WebSphere Application Server.
    If I need to go with RAD and WAS, then I am new to RAD and WAS, is it easy to use RAD and WAS for this kind of application and implement web applicaiton fast.
    Any feedback will be great help.Those don't sound like requirements of the system to me. They sound more like someone wants to improve their CV/resume
    From what I've read recently, if it's just fast you want, look at Ruby on Rails

  • Migrat  jsf to myfaces

    HI,
    good evening everybody.Iam facing this prblem since morning but iam unable to solve this.My problemis that iam migrating my application from jsf to myfaces
    i replaced jsf-api and jsf-impl jars to myfaces-api and myfaces-impl jars
    and i deleted application from tomcat work folder and also i deleted all tlds to releted to jsf from WEB-INF.And also re-install the tomcat servver.
    My tomact version is 5.0 and myfaces version is 1.1.3 and also iam using tomahawk whose version is 1.1.6 and iam added startupcontextlistener in web.xml
    iam getting the following problem.from tomcat log file i seen this exception i.e
    java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
    my web.xml is
    i did not find ConfigureListener in myfaces-impl .I seen this class located in jsf-impl .So what should i do,i done all things ..but iam getting error is there alternate for this..
    plz help i stucked since morning...
    thanks in advance
    venkat

    I'm not saying that this is the solution you should go for right now, but I don't have any direct solution to offer.
    You could try creating your own selectOnRadio component with the added styling functionality. Do a google search for "jsf 1.2 custom component" and see if this idea appeals to you. I did and turned up this, perhaps it is enough for you:
    [http://technology.amis.nl/blog/6047/creating-a-custom-jsf-12-component-with-facets-resource-handling-events-and-listeners-valueexpression-and-methodexpression-attributes|http://technology.amis.nl/blog/6047/creating-a-custom-jsf-12-component-with-facets-resource-handling-events-and-listeners-valueexpression-and-methodexpression-attributes]

  • Is it possible to have different rendering for RI and Myfaces for same code

    Iam facing with a peculiar problem. I developed custom component using JSF technology. There is a different rendering when I used RI and Myfaces for the same code base. How to overcome such a problem. Please reply.
    Thanks in advance

    Hi, it is normal, the rendered classes for the standard component have been implemented differently, so you have some differences. Normally, they should follow the SUN requirement but every one can code that following its own interpretation.
    Your component is based on which standard component?

  • Difference in ADF, JSF, Trinidad, MyFace

    Hi,
    I need a brief explanation on ADF, JSF, Trinidad and MyFace. What are the similarities and the differences among them? More elaboration on price, license, the history, and the situation & condition to apply, IDE to work on for each product would be greatly appreciated.
    Thanks

    So Apache has 2 projects of ADF? i.e. MyFaces and Trinidad.
    Apache has 5 JSF related projects:
    - MyFaces: JSF implementation
    - Trinidad: JSF extension that is the evolution of ADF Faces 10g
    - Tomahawk: JSF extension with a small but useful component set
    - Tobago: A richer set than Tomahawk, but not as feature packed as Trinidad imho
    - Orchestra: A JSF extension focusing on the controller layer, not on component. It allows conversations, better web flows and such, but I didn't play a lot with that project so I cannot provide much insight
    And why Oracle would like grant ADF Faces extended component to Trinidad while Trinidad is free and ADF Faces is Oracle proprietary. People will start using Trinidad instead of Oracle ADF Faces and Oracle is not making any money then.
    Ah, a business model related question. There are many reasons why a company may decide to invest in open source:
    - Allows other people to contribute to the code base, without having to pay them, effectively reducing the maintenance cost
    - Look "cool" and open minded, not evil corporate-ish. This is therefore good for PR and is often perceived positively by the community, making the company more appealing as a potential employers. Also, contributors to open source projects, happen to be both the most passionate and skilled in their field most of the times, making them interesting resources for the company as well.
    - Increase the adoption level of the product, thus producing an Halo effect.
    Now the money side. If you cannot make money out of the product itself, nothing prevents you from offering the best tool integration as well. That tool can also happen to integrate other technologies that are themselves not free, like the AS or the remaining of the ADF stack for that matter. Most project managers will prefer to use the AS integrated with the tool rather than having to test and maintain both environment (the IDE and production one). Also, even if you don't make money that way, you can still sell expertise and who knows a technology better than the ones who created it? Last time I checked, Oracle Consulting was not the cheapest option around, but if they're the best ist's it worth it?
    Hmm this is would be a hard choice; richer UI over lesser browser selection and more CPU consumption. But People will choose the free one I guess. This lead us back to Why Oracle grant a free Trinidad to have "rich" UI?
    Actually, from my experience it's the opposite, Web 2.0 and Rich Web Application are buzz words in the industry and a hype can move market. Furthermore, the supported browser set difference is not that bad, it's mainly the horrible IE6 abomination that should not have ever existed in the first place. As for the CPU load on the client, well, most people don't use half of their CPU horsepower nowadays.
    Good point. How much ADF Faces 11g richer than Apache Trinidad? Free license could be a big impact. Can I conclude that the richness of Trinidad is much more than JSF? If yes, I will take Trinidad for sure. Or Is Trinidad has the same level of richness with JSF?
    Trinidad is infinitely richer than JSF 1.1 and 1.2 (the difference is a bit smaller with JSF 2.0, but that on is not really option just yet). ADF Faces 11g is much richer than Trinidad imho, but why not compare yourself:
    Trinidad: http://www.irian.at/trinidad-demo/faces/index.jspx
    ADF Faces 11g: http://jdevadf.oracle.com/adf-richclient-demo/faces/index.jspx
    Regards,
    ~ Simon

  • Building a Simple JSF and Web Services App in JDeveloper 10.1.3 Preview

    Hi
    I was trying out this example of JSF and webservices at:
    http://www.oracle.com/technology/products/jdev/101/howtos/jsfws/index.html
    Has anyone tried it before? I'm getting the following error:
    calling http://216.200.21.157:9090/soap
    WARNING: Unable to connect to URL: http://216.200.21.157:9090/soap due to java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html
    java.rmi.RemoteException: ; nested exception is:
         HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html
         at com.minc.ws.stockquery.proxy.runtime.NetXmethodsServicesStockquoteStockQuoteBinding_Stub.getQuote(NetXmethodsServicesStockquoteStockQuoteBinding_Stub.java:96)
         at com.minc.ws.stockquery.proxy.NetXmethodsServicesStockquoteStockQuotePortClient.getQuote(NetXmethodsServicesStockquoteStockQuotePortClient.java:40)
         at com.minc.ws.stockquery.proxy.NetXmethodsServicesStockquoteStockQuotePortClient.main(NetXmethodsServicesStockquoteStockQuotePortClient.java:29)
    Caused by: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html
         at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:142)
         at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(HttpClientTransport.java:118)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:175)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
         at com.minc.ws.stockquery.proxy.runtime.NetXmethodsServicesStockquoteStockQuoteBinding_Stub.getQuote(NetXmethodsServicesStockquoteStockQuoteBinding_Stub.java:79)
         ... 2 more
    Any ideas?
    Thanks
    Alex

    I'm not using 10.1.3 preview. I was using 10.1.3.1 production. I just copied the title of the tutorial as my subject. sorry for the confusion!! :)
    I used the HTTP analyzer and this is what I got in the header:
    <HTML><HEAD><TITLE>TCP Packet Monitor Error</TITLE></HEAD><BODY>JDeveloper TCP Packet Monitor encountered an error retrieving<P><pre>POST http://216.200.21.157:9090/soap HTTP/1.1
    Host: 216.200.21.157:9090
    Proxy-Connection: Keep-Alive
    Connection: TE
    TE: trailers, deflate, gzip, compress
    User-Agent: Oracle HTTPClient Version 10h
    SOAPAction: "urn:xmethods-delayed-quotes#getQuote"
    Accept-Encoding: gzip, x-gzip, compress, x-compress
    Content-type: text/xml; charset=UTF-8
    Content-length: 680
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="urn:xmethods-delayed-quotes"><env:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" env:mustUnderstand="1"/></env:Header><env:Body><ns0:getQuote env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><symbol xsi:type="xsd:string">orcl</symbol></ns0:getQuote></env:Body></env:Envelope></pre><P>The error was :<P><pre>IOException retrieving the response: java.net.ConnectException: Connection refused: connect</pre><P></HTML>
    It looks like I'm getting connection refused error... Hmmm.. wonder why?
    I'll download 10.1.3.2 and see if that helps..
    Thanks for looking into this!
    Alex

  • Jsf and tiles

    hi all.
    i'm developing an application using jsf and tiles.
    i've some problem in the general layout page.
    how can I refer to images and files,if I don't know where the page will be used?
    with struts i've used <html:rewrite page=" ... " /> but it doesn't work with jsf.
    I only use the TilesServlet.
    any suggestion?
    i've also try to define the url like "/css/mycss.css" but in local dosn't work.
    thank a lot for any reply!

    hi all.
    i'm developing an application using jsf and tiles.
    i've some problem in the general layout page.
    how can I refer to images and files,if I don't know where the page will be used?
    with struts i've used <html:rewrite page=" ... " /> but it doesn't work with jsf.
    I only use the TilesServlet.
    any suggestion?
    i've also try to define the url like "/css/mycss.css" but in local dosn't work.
    thank a lot for any reply!

  • JSF And Struts Integration

    Can any body give some info on integration of JSF to existing struts application

    I describe the main differences between JSF and Struts in this sample Chapter from my JSF book:
    http://www.oreilly.com/catalog/jsvrfaces/chapter/ch01.pdf
    Hope that helps.

Maybe you are looking for

  • Why won't my iCal icon display todays date ......

    ...... in the menu bar when the program is closed? It always displays Jul 17th Regards J

  • Three Questions on Address Book code scriplet

    I found this co-authored years ago by Scott Paulis and Bruce Phillips: tell application "Address Book" set thePeople to selection display dialog "What tag would you like to append?" buttons {"Cancel", "Apply"} default button "Apply" default answer "[

  • The third party database supported by SAP BW

    Hi Apart from SAP R/3 , my client has a historical data in thier legacy system so called  MFG/PRO, they wondering if SAP BW is allow to connect to such system.  Anyone know where I can check the third party database supported by SAP BW ? Panadda

  • Store number with trailing 0's

    Whatever the user enters as decimal places must be preserved. E.g. if the user enters 10.24000 then a five decimal place number must be stored. How to achieve this if i dont want data type as varchar

  • ITUNES ERASED MY SONGS. PLEASE HELP

    I had gotten some songs from Limewire and I wanted to put them in my dad's ipod mini because I lost my ipod at an airport. When i opened itunes everything was erased-my (and my dad's) songs,music videos and playlists.Everything. I plugged in the ipod