Sun JSF 1.2 (RI) + MyFaces  project Tomahawk 1.1.3

Hi Guys,
I wondering if someone can help me out. I'm so lost...
In general, I'm working in a new project using Tomcat 5.5.17 as Servlet container, NetBeans as IDE and Sun JSF 1.2 (RI) Framework. The combination of Tomcat and JFS 1.2 already is an issue that I believe can be solved using Servlets framework ( I hope so). For now I just crossing my fingers believing Apache Tomcat soon will be using JSP 2.1
Like most projects always start simple and then grows bigger and complicated. Now I just so confusing when I trying to use custom components not found in the JSF 1.2 specification. I really like MyFaces Tomahawk and would like to use in my project as well, specially a few components: Calendar, Schedule and so on.
Making the long history short, there you are my questions:
1 - ) Is it possible to work with Sun JSF 1.2 (RI) + Tomahawk 1.1.3 project?. Using anly a few components of Tomahawk and not the entire MyFaces specificacion.
2 - ) Where can I donwload MyFaces examples spefically using those Tomahawk components mentioned before ? I would like to deploy the examples application myself. In the web site (http://www.myfaces.org) mention two files in Installing and Running the examples:
" Unpack the MyFaces examples archive myfaces-X.X.X-examples.zip (or myfaces-X.X.X-examples.tgz) to a directory of your choice. "......
I have no clue where to find those two files. All I get is a link to and external site that show me the examples and offering services, but I have no option to download any examples file.
Thanks in advance.

Amittev,
Thank you. I really appreciate your help. Now the examples are working just fine in my computer.
By the way, I have another question for you considering your kindness taken your time to share your expertise.
I'm facing a Tiles and Facelets dilema. Which framework do you recomend me to invest my time learning it??.
Thanks again for your time and consideration.

Similar Messages

  • Sun JSF 1.1 or MyFaces Custom Validator Messages.

    Hello i must use JSF 1.1 version for some old project. The problem is that NOW i must use localization and internationalization API to make it "good" in my own language - Bulgarian ( Cyrilic language)
    The problem is that input components for 1.1 doesnt have attribute "label" i have defined in my resource bundle file the keys for standart validators such as this for example:
    javax.faces.component.UIInput.REQUIRED={0} \u041F\u043E\u043B\u0435\u0442\u043E \u0435 \u0437\u0430\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E
    but the {0} parameter is aways - null ( and is not showed ) or is equal to the ID of the component which is English (ASCII) and it is not usable .. becouse it is ugly .
    Can i make not so user friendly think like label but Something ?
    can i pass some value to the validator ? ( which can be unicode )
    Message was edited by:
    JOKe

    part of faces-config.xml:
    <application>
         <message-bundle>com....resources.Messages</message-bundle>
         <locale-config>
              <default-locale>de_DE</locale-locale>
              <supported-locale>en_GB</supported-locale>
         </locale-config>
    </application>This works for us.

  • Integrate tomahawk into sun jsf ,extensionsFilter not correctly configured.

    Hi,All
    I find a issue when I integrate tomahawk 1.1.3 into sun jsf 1.1_02:
    tomcat 5.0.28
    java.lang.IllegalStateException: ExtensionsFilter not correctly configured. Resource mapping missing. Resources cant be delivered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
    org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371)
    org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:352)
    org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288)
    org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeJavascript(HtmlTreeRenderer.java:611)
    I read information about it from "http://myfaces.apache.org/tomahawk/extensionsFilter.html"
    and reconfiguration my web.xml, but don't work. my code as follow:
    <!-- web.xml> -->
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app 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">
    <display-name>Web Configuration Info</display-name>
    <description>Platform</description>
         <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/Config/faces-config.xml,/WEB-INF/Config/faces-managed-beans.xml,/WEB-INF/Config/faces-config-validators.xml,/WEB-INF/Config/faces-config-taglibs.xml</param-value>
    </context-param>
         <filter>
              <filter-name>ExtensionsFilter</filter-name>
              <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
              <init-param>
                   <param-name>maxFileSize</param-name>
                   <param-value>20m</param-value>
              </init-param>
         </filter>
         <filter-mapping>
         <filter-name>ExtensionsFilter</filter-name>
              <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
              <servlet-name>FacesServlet</servlet-name>
         </filter-mapping>
         <filter-mapping>
    <filter-name>ExtensionsFilter</filter-name>
    <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>FacesServlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
    </servlet>
         <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.jsp</welcome-file>
         </welcome-file-list>
    </web-app>
    <!-- index.jsp -->
    <%@ page session="false" contentType="text/xml;charset=utf-8"%>
    <%
    response.sendRedirect("./test/tree.jsf");
    %>
    I write web.xml reference to extensionsFilter.html, but doesn't work!
    what's make this issue?

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

  • Using Sun JSF in JBoss-4.0.5GA

    Using Sun JSF
    1. In $JBOSS_HME/server/server-name/deploy/jbossweb-tomcat55.sar/conf/web.xml, comment out the following lines (line 243 - 247)
    <init-param>
      <description>MyFaces tlds</description>
      <param-name>tagLibJar0</param-name>
      <param-value>jsf-libs/myfaces-impl.jar</param-value>
    </init-param>2. Delete all the files under $JBOSS_HME/server/server-name/deploy/jbossweb-tomcat55.sar/jsf-libs and remove jsf-libs subdirectory.
    3. Copy the jstl.jar and standard.jar files from the $CREATOR_INSTLL_DIR/enterprise1/config/TagLibraries/JSTL11 directory to $JBOSS_HME/server/server-name/deploy/jbossweb-tomcat55.sar/.
    Since the above steps removed MyFace completely, you should not add
    <listener>
      <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>in your web.xml any more.
    Calling EJBs from Web modules
    1. Wrap all the JAR and WAR files in an EAR file.
    2. Do not put any utility JAR file except JDBC Drivers under $JBOSS_HME/server/server-name/lib/; otherwise, you could see �classloader violation�.
    3. To share the utility JAR between the EJBs and the Web modules, put it in the EAR file and declare the utility JAR in META-INF/application.xml as follows,
    <?xml version="1.0" encoding="UTF-8"?>
    <application version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
      <description>Application description</description>
      <display-name>whatever</display-name>
      <module>
        <java>webUtils.jar</java>
      </module> 
      <module>
        <web>
          <web-uri>your.war</web-uri>
          <context-root>/yourURL</context-root>
        </web>
      </module>
      <module>
        <ejb>ejb1.jar</ejb>
      </module>
      <module>
        <ejb>ejb2.jar</ejb>
      </module>
    </application>4. Modify $JBOSS_HME/server/server-name/deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml. Change <attribute name="Java2ClassLoadingCompliance">false</attribute> to true and <attribute name="UseJBossWebLoader">false</attribute> to true. The default configuration uses different classloaders to load EJB files and WAR file, thus does not allow the Web module to call any EJB.
    Message was edited by:
    xyli33
    Message was edited by:
    xyli33

    I got it working, thanks a lot to you guys.
    yes, the problem was because of the myfaces jars in the JBoss. dj had pointed this in his reply earlier but i couldnt not get it working at that time (not sure why). so after i got prasanths reply this is what i did:
    1) re-installed a clean copy of JBoss 4.0.4RC1 using the jar installer
    (Note: if you just use the unzip and copy method, the ejb 3 won't work by default)
    2) deleted the <jboss_home>/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs folder.
    3) comment out this portion in <jboss_home>/server/default/deploy/jbossweb-tomcat55.sar/cong/web.xml
    <init-param>
    <description>MyFaces tlds</description>
    <param-name>tagLibJar0</param-name>
    <param-value>jsf-libs/myfaces-impl.jar</param-value>
    </init-param>
    4) deleted the tmp, log and data folders under <jboss_home>/server/default
    directory (these were there, because i did a test start and stop)
    5) Started JBoss
    6) Deployed JSF application from JDeveloper.
    and it worked fine.
    ==>For newbie's --> watch out the the url pattern in the web.xml file created by JDeveloper if you get error : FacesContext not Found
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    Now, I want to get my EJB 3.0 working in JBoss which I created in JDeveloper and is working fine in OC4J but when i deploy to JBoss, it won't work. I will post a new thread for that in detail.
    thanks once again

  • Does jsfexcelcreator work with Sun jsf RI 1.1

    hi ,
    i want to export a datatable into excel file, i tried jsfexcelcreator tool with window.open('consultation_poste.jsp?tableId=table1')
    but it does not work.
    i read that jsfexcelcreator work with JSF 1.2, but does it work with Sun jsf RI 1.1?
    thank you for any help

    hi,
    yes, it work now, the 2 jars were not in lib folder .
    thank you very much for your help.
    a last question please.
    when i run the application with the ip adress example:
    http://111.222.11.22/context/page.faces
    the export work well.
    but when i use a DNS name example:
    http://machine_name/context/page.faces
    it does not open excel file.
    do you have any idea?
    regards
    hmm that should work. can you also check these?
    - jakarta-poi.jar under lib folder
    - id of the table is equal to table1
    - and a double-check for jsfexcelcreator.jar under lib folder :)

  • Problem with adding Sun JSF RI v1.2 as a new library in JDeveloper 10.1.3.1

    Hi,
    I have a problem with adding a latest JSF 1.2 RI from Sun (https://javaserverfaces.dev.java.net/files/documents/1866/44998/jsf-1_2_03.zip) to JDeveloper as a new library.
    I created a new User library and added into it jsf-impl.jar and jsf-api.jar from JSF 1.2 RI.
    Then I try to create two new JSP Tag libraries based from .tld files.
    When a .tld file is placed in "TLD File:" field there is no information below about Library Version and Required JSP Version. If I check "Execute Tags in JSP Visual Editor" and click "Customize" button - list of tags in "Customize Tag Library" window is empty.
    I have errors when I try to use JSF Tags from this new library in JSP page like :
    "Can't create tag instance: f:view (class: null). Make sure, that the tag class or a library contained this class is available in this application"
    (free translation to English)
    Is this possible to add JSF RI v1.2 as another library in Jdeveloper 10.1.3.1 ?
    thanks for help
    koli

    Hi,
    This solution is not exactly for Jdeveloper 10.1.3.x I think.
    - "Create a JSF system library." section, point 2. - there is not possible to add library in folder other than User I see, so I added it in User folder.
    - "Register the JSF JSP tag libraries." section, point 5. - in JD 10.1.3 there is no dialog box, I checked checkbox "Show Tag Library in Palette". A new library was added to User folder but there is no new libraries in component Palette.
    Even as I use "Edit tag libraries .." from Component Palette context menu and add manually new tag libraries to selected, there is no libraries in Component Palette after it.
    I feel so problem is with different .tld files format, not with adding libraries method.
    Sun RI tld file (from version 1.2_03) fragment:
    <taglib 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-jsptaglibrary_2_1.xsd"
    version="2.1">
    <!-- ========== Tag Library Description Elements ========================= -->
    <description>
    The core JavaServer Faces custom actions that are independent of
    any particular RenderKit.
    </description>
    <tlib-version>1.2</tlib-version>
    <short-name>f</short-name>
    <uri>http://java.sun.com/jsf/core</uri>
    tld included in JD:
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <!-- ========== Tag Library Description Elements ========================= -->
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>f</short-name>
    <uri>http://java.sun.com/jsf/core</uri>
    <description>
    The core JavaServer Faces custom actions that are independent of
    any particular RenderKit.
    </description>
    Did JDeveloper 10.1.3.x maintain with taglib version 1.2 ?
    Regards
    koli

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

  • ADF 10.1.2 vs JSF 10.1.3 - new project

    Hello all,
    This question is primarily directed towards the Oracle PM's, but I'm interested in any opinion. We are starting a new project in the next week or two, and I am trying to decide which version of JDev and which technology to use for the view layer. We will be using ADF (entity and view objects) for the data layer.
    Now, ADF/JSP/UIX is there today in 10.1.2; but 10.1.3 is hot on it's heels and supports JSF. This first phase will be a quick and simple implementation (8 weeks or so).
    My question, which version of JDev would you use, and would you use JSF or not?
    Kind regards,
    John

    Shay's question about experience is a good one. If you're not already proficient at UIX then I would choose JSF. If you've done very little J2EE/Java/JSP/HTML development work, you've got a couple of months of ramping up to be able to accomplish much tangible.
    I've been working on a project for a couple of months using ADF BC on the backend and JSF/ADF Faces for the View. The enticement was built on the expectation that 10.1.3. would be going into production very soon, and it seems that this is true, from what little hints and clues I can pick up from these tight-mouthed Oracle guys. ;-)
    The disadvantage of going that way is that the documentation sucks for doing anything but the most basic, declarative user interface development, especially if you want to use ADF Faces (there's some decent resource out in the world for JSF development, although even that is pretty thin). This is promised to be much improved with the production release.
    For the business services development, unless you already know ADF Business Components I strongly recommend grabbing a copy of the Oracle JDeveloper 10g Handbook. It fills in many of the gaps that otherwise leave you at a loss for how to tie the backend pieces together.
    Good luck!
    Johnny Lee

  • [Sun JSF 1.1] ResponseWriter in nested custom comp. is wrongly positioned.

    Always when I use responsewriter write method, eg:
              ResponseWriter writer = context.getResponseWriter();
              writer.startElement("table", component);
              writer.writeAttribute("class", cssClassPrefix + "tabPanel", "class");Resulting html source is wrongly appended in response stream.
    A more visual example:
    (snippet from my jsp page)
    <t:custom_parent>
        <t:custom_child>
            <f:verbatim>bubu</f:verbatim>
        </t:custom_child>
        <t:custom_child>
            <f:verbatim>yogi</f:verbatim>
        </t:custom_child>
    </t:custom_parent>
    ...And when custom_parent renderer is getting responseWriter in beginEncoding method all subsequent
    responsewriter.write/startElement/writeAttribute will append text where </t:custom_parent> ends.
    (ie. resulting html page will have a hudge free space in it and it'll contain those extra spaces
    used to format the jsp.page). Something like this:
    [endo_of_line]
        [end_of_line]
            [end_of_line]
        [end_of_line]
        [end_of_line]
            [end_of_line]
        [end_of_line]
    [end_of_line][cutom_component_rendering_here]
    ...It's no big deal but it looks relly ugly, and It is difficult look at html source of generated pages. :-/
    Any one have seen something like this earlier? (I'm using apache tomcat 5.0.19)
    Best regards,
    a.

    This is a known bug. We'll try to get it fixed for the next release.
    Ed (EG Member)

  • Tomahawk Regular expression Validator

    Hi,
    I am trying to use Tomahawk RegEx Validator in my application.
    My questions are as follows.
    1. I want to get the pattern of the regular expression from the bean or resource bundle. Is this possible?
    2. If I use the pattern as in <t:validateRegExpr pattern='[a-zA-Z\s]+'/> it works perfectly fine. But when I change that to <t:validateRegExpr pattern='\\p{N}+'/> it doesn't work. I want to do this as there won't be any issues with internationalsation.
    Please let me know how these issues can be addressed.
    Thanks in Advance.
    Regards,
    Raja

    manick_r wrote:
    1. I want to get the pattern of the regular expression from the bean or resource bundle. Is this possible?Read the TLD documentation of the tag in question. If the 'pattern' attribute accepts a ValueExpression, then it is possible. I can't directly answer this as you're at a Sun JSF forum, not at an Apache Tomahawk mailinglist.
    2. If I use the pattern as in <t:validateRegExpr pattern='[a-zA-Z\s]+'/> it works perfectly fine. But when I change that to <t:validateRegExpr pattern='\\p{N}+'/> it doesn't work. I want to do this as there won't be any issues with internationalsation.Please elaborate "it doesn't work". What did you expect it to do and what did it do unexpectedly instead? Does this pattern work when you just use it in String#matches()? Provide a SSCCE if you can.

  • Myfaces, tomahawk, jsf sun

    Hello,
    what is the relationship between myfaces and tomahawk. And if i want to develop a myfaces app do i have to use jsf sun components?
    thanks

    Hello,
    what is the relationship between myfaces and
    tomahawk. And if i want to develop a myfaces app do i
    have to use jsf sun components?
    thanksFrom http://myfaces.apache.org/tomahawk/
    In addition to custom components not found in the JSF specification, the MyFaces components bundle also includes an "extended" version of some of the default components. These are basically components that exist in either the core or html tag libraries but additional functionality has been addded that goes beyond the specification.
    Summarized: MyFaces implements JSF spec and Tomahawk goes beyond JSF spec.

  • Sun RI 1.2  MyFaces Tomahawk 1.1.6 Tomcat 6

    Hello,
    I have got a running little example with the Sun RI 1.2.
    Now I wanted to use the tomahawk implementation from myfaces, too.
    In the lib folder in the webapp direction from Tomcat
    C:\Programme\Apache Software Foundation\Tomcat 6.0\wtpwebapps\PlaygroundTomahawk\WEB-INF\lib
    there are the files:
    jsf-api.jar
    jsf-impl.jar
    tomahawk-1.6.6.jar
    But I get an exception when starting Tomcat 6:
    SCHWERWIEGEND: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
      Source Document: jar:file:/C:/Programme/Apache%20Software%20Foundation/Tomcat%206.0/wtpwebapps/PlaygroundTomahawk/WEB-INF/lib/tomahawk-1.1.6.jar!/META-INF/faces-config.xml
      Cause: Class 'org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener' is missing a runtime dependency: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:174)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:516)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Caused by: com.sun.faces.config.ConfigurationException:
      Source Document: jar:file:/C:/Programme/Apache%20Software%20Foundation/Tomcat%206.0/wtpwebapps/PlaygroundTomahawk/WEB-INF/lib/tomahawk-1.1.6.jar!/META-INF/faces-config.xml
      Cause: Class 'org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener' is missing a runtime dependency: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
         at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:222)
         at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:141)
         at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:114)
         at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:94)
         at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:132)
         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:202)
         ... 16 moreHere ist my web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>PlaygroundTomahawk</display-name>
      <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>
      <filter>
         <filter-name>MyFacesExtensionsFilter</filter-name>
         <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
        <init-param>
            <param-name>maxFileSize</param-name>
            <param-value>20m</param-value>
             </init-param>
    </filter>
    <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages  -->
    <filter-mapping>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.)  -->
    <filter-mapping>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
    </filter-mapping>
      <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>
    </web-app>Here is my faces-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <faces-config
        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"
        version="1.2">
         <managed-bean>
              <managed-bean-name>
              myBean</managed-bean-name>
              <managed-bean-class>
              mypackage.MyBean</managed-bean-class>
              <managed-bean-scope>
              request</managed-bean-scope>
         </managed-bean>
    </faces-config>I hope anyone can help me.
    I don�t know if it is generally possible to work with Sun Ri and Tomahawk 1.1.6?
    Thank you very much for your answer.
    NickiS

    Thank you.
    Oh, yes I remember there where some jars I need too... but there is no hint on the myfaces site that I need something else than the tomahawk.jar file.
    I looked at an old myfaces project and found those jars:
    commons-beanutils-1.7.0.jar
    commons-codec-1.3.jar
    commons-collections-3.1.jar
    commons-digester-1.6.jar
    Can you tell me if I need them too? That would be great.
    Thank you for your great tutorial "JSF tutorial with Eclipse and Tomcat" (I think you recognized your example ;-) )
    NickiS

  • JSF + Tomahawk component NullPointerException

    Hi All,
    I made a sun JSF portlet by using the tomahawk 1.1.3 file upload component. The bean "UploadedFile myFile" is not getting set in the "MyBean.java" file. I get a java.lang.NullPointerException when I am trying to myFile.getName() or myFile.getInputStream().
    The inputFileUpload method should set the myFile Bean but it seems like its not getting set
    1
    2 <t:inputFileUpload id="myFileId"
    3            value="#{myBean.myFile}"
    4 storage="file"
    5 required="true"/>
    6 <h:message for="myFileId"/>
    I am attaching the whole code below
    Can somebody please help me. I have tried various versions of tomahawk and still not able to figure out the problem.
    I am using JSF 1.1.0 and tomahawk 1.1.3
    Please let me know if you need some more information from me
    1
      2======== index.jsp ==============
      3
      4<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
      5<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      6<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
      7
      8<f:view>
      9
    10<h:form id="MyForm" enctype="multipart/form-data" >
    11
    12    <h:messages globalOnly="true" styleClass="message"/>
    13
    14    <h:panelGrid columns="3" border="0" cellspacing="5">
    15
    16        <h:outputLabel for="myFileId" value="File: "/>
    17        <t:inputFileUpload id="myFileId"
    18            value="#{myBean.myFile}"
    19            storage="file"
    20            required="true"/>
    21        <h:message for="myFileId"/>
    22
    23        <h:outputLabel for="myParamId" value="Param: "/>
    24        <h:selectOneMenu id="myParamId"
    25                value="#{myBean.myParam}"
    26                required="true">
    27            <f:selectItem itemLabel="" itemValue=""/>
    28            <f:selectItem itemLabel="MD5" itemValue="MD5"/>
    29            <f:selectItem itemLabel="SHA-1" itemValue="SHA-1"/>
    30            <f:selectItem itemLabel="SHA-256" itemValue="SHA-256"/>
    31            <f:selectItem itemLabel="SHA-384" itemValue="SHA-384"/>
    32            <f:selectItem itemLabel="SHA-512" itemValue="SHA-512"/>
    33        </h:selectOneMenu>
    34        <h:message for="myParamId"/>
    35
    36        <h:outputText value=" "/>
    37        <h:commandButton value="Submit"
    38            action="#{myBean.processMyFile}"/>
    39        <h:outputText value=" "/>
    40
    41    </h:panelGrid>
    42
    43</h:form>
    44
    45</f:view>
    46
    47
    48==========  MyBean.java ==============
    49
    50<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    51<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    52<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
    53
    54<f:view>
    55
    56<h:form id="MyForm" enctype="multipart/form-data" >
    57
    58    <h:messages globalOnly="true" styleClass="message"/>
    59
    60    <h:panelGrid columns="3" border="0" cellspacing="5">
    61
    62        <h:outputLabel for="myFileId" value="File: "/>
    63        <t:inputFileUpload id="myFileId"
    64            value="#{myBean.myFile}"
    65            storage="file"
    66            required="true"/>
    67        <h:message for="myFileId"/>
    68
    69        <h:outputLabel for="myParamId" value="Param: "/>
    70        <h:selectOneMenu id="myParamId"
    71                value="#{myBean.myParam}"
    72                required="true">
    73            <f:selectItem itemLabel="" itemValue=""/>
    74            <f:selectItem itemLabel="MD5" itemValue="MD5"/>
    75            <f:selectItem itemLabel="SHA-1" itemValue="SHA-1"/>
    76            <f:selectItem itemLabel="SHA-256" itemValue="SHA-256"/>
    77            <f:selectItem itemLabel="SHA-384" itemValue="SHA-384"/>
    78            <f:selectItem itemLabel="SHA-512" itemValue="SHA-512"/>
    79        </h:selectOneMenu>
    80        <h:message for="myParamId"/>
    81
    82        <h:outputText value=" "/>
    83        <h:commandButton value="Submit"
    84            action="#{myBean.processMyFile}"/>
    85        <h:outputText value=" "/>
    86
    87    </h:panelGrid>
    88
    89</h:form>
    90
    91</f:view>
    92
    93
    94=========== faces-config.xml ==========
    95
    96<?xml version="1.0"?>
    97<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    98
    99<faces-config xmlns="http://java.sun.com/JSF/Configuration">
    100    <managed-bean>
    101        <managed-bean-name>user</managed-bean-name>
    102        <managed-bean-class>com.sample.jsfsun.bean.UserBean</managed-bean-class>
    103        <managed-bean-scope>session</managed-bean-scope>
    104    </managed-bean>
    105    <managed-bean>
    106        <managed-bean-name>myBean</managed-bean-name>
    107        <managed-bean-class>com.sample.jsfsun.bean.MyBean</managed-bean-class>
    108        <managed-bean-scope>request</managed-bean-scope>
    109    </managed-bean>
    110    <navigation-rule>
    111        <from-view-id>/index.jsp</from-view-id>
    112        <navigation-case>
    113            <from-outcome>submit</from-outcome>
    114            <to-view-id>/welcome.jsp</to-view-id>
    115        </navigation-case>
    116    </navigation-rule>
    117    <navigation-rule>
    118        <from-view-id>/welcome.jsp</from-view-id>
    119        <navigation-case>
    120            <from-outcome>back</from-outcome>
    121            <to-view-id>/index.jsp</to-view-id>
    122        </navigation-case>
    123    </navigation-rule>
    124</faces-config>
    125
    126============= web.xml =============
    127
    128
    129<?xml version="1.0"?>
    130<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    131
    132<web-app>
    133    <display-name>friend_info_portlet</display-name>
    134    <context-param>
    135        <param-name>company_id</param-name>
    136        <param-value>liferay.com</param-value>
    137    </context-param>
    138    <context-param>
    139        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    140        <param-value>client</param-value>
    141    </context-param>
    142    <context-param>
    143        <param-name>javax.faces.application.CONFIG_FILES</param-name>
    144        <param-value>/WEB-INF/faces-config.xml</param-value>
    145    </context-param>
    146    <context-param>
    147        <param-name>com.sun.faces.validateXml</param-name>
    148        <param-value>false</param-value>
    149    </context-param>
    150    <filter>
    151        <filter-name>ExtensionsFilter</filter-name>
    152        <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
    153        <init-param>
    154            <param-name>uploadMaxFileSize</param-name>
    155            <param-value>10m</param-value>
    156        </init-param>
    157        <init-param>
    158            <param-name>uploadThresholdSize</param-name>
    159            <param-value>100k</param-value>
    160        </init-param>
    161    </filter>
    162    <filter-mapping>
    163        <filter-name>ExtensionsFilter</filter-name>
    164        <servlet-name>Faces Servlet</servlet-name>
    165    </filter-mapping>
    166    <filter-mapping>
    167        <filter-name>ExtensionsFilter</filter-name>
    168        <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
    169    </filter-mapping>
    170    <filter-mapping>
    171        <filter-name>ExtensionsFilter</filter-name>
    172        <url-pattern>*.jsf</url-pattern>
    173    </filter-mapping>
    174    <listener>
    175        <listener-class>com.liferay.portal.kernel.servlet.PortletContextListener</listener-class>
    176    </listener>
    177    <listener>
    178        <listener-class>com.liferay.util.jsf.sun.faces.config.LiferayConfigureListener</listener-class>
    179    </listener>
    180    <servlet>
    181        <servlet-name>friend_info_portlet</servlet-name>
    182        <servlet-class>com.liferay.portal.kernel.servlet.PortletServlet</servlet-class>
    183        <init-param>
    184            <param-name>portlet-class</param-name>
    185            <param-value>com.sun.faces.portlet.FacesPortlet</param-value>
    186        </init-param>
    187        <load-on-startup>0</load-on-startup>
    188    </servlet>
    189    <servlet>
    190        <servlet-name>Faces Servlet</servlet-name>
    191        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    192        <load-on-startup>1</load-on-startup>
    193    </servlet>
    194    <servlet-mapping>
    195        <servlet-name>friend_info_portlet</servlet-name>
    196        <url-pattern>/friend_info_portlet/*</url-pattern>
    197    </servlet-mapping>
    198    <servlet-mapping>
    199        <servlet-name>Faces Servlet</servlet-name>
    200        <url-pattern>/faces/*</url-pattern>
    201    </servlet-mapping>
    202    <servlet-mapping>
    203        <servlet-name>Faces Servlet</servlet-name>
    204        <url-pattern>*.faces</url-pattern>
    205    </servlet-mapping>
    206    <welcome-file-list>
    207        <welcome-file>index.jsp</welcome-file>
    208    </welcome-file-list>
    209    <taglib>
    210        <taglib-uri>http://java.sun.com/portlet</taglib-uri>
    211        <taglib-location>/WEB-INF/tld/liferay-portlet.tld</taglib-location>
    212    </taglib>
    213</web-app>

    jabalsad wrote:
    contents of /WEB-INF/lib
    jsf-api.jar
    jsf-impl.jar
    myfaces-api-1.2.7.jar
    myfaces-impl-1.2.7.jar
    You cannot mix differnet JSF implementations. Use the one or the other.
    As you stated that you're "using" Mojarra, get rid of those myfaces jars.

  • Tree2 in Tomahawk  and JSF Tiles Implementation

    hi All,
    right now i mfacing one problem. which arise due to tiles implementation in JSF with Tree2 component of Tomahawk. i had created one tree menu using Tree2.
    its working fine, but i was not able to highlight selected child node of tree menu as i m using tiles implementation so all pages gets reloaded on every click on jsp. thus color of that selected node becomes as it is.
    please note that i m using myfaces implementation.
    what i have written is as below:
    <t:tree2 id="wrapTree" value="#{frontPage.catTree}" var="node" clientSideToggle="true"
                             showRootNode="false" varNodeToggler="t">
                                  <f:facet name="parent-one">
                                  <h:panelGrid id="parentOne" columns="1" cellpadding="0" cellspacing="0" border="0">
                                            <h:commandLink styleClass="textorg" immediate="true" action="#{categoryListBean.showCategoryDetail}">
                                  <h:outputText escape="false" value="#{node.description} "/>
                                       <f:param name="categoreId" value="#{node.identifier}"/>
                             </h:commandLink>
                                  </h:panelGrid>
                   </f:facet>
                   <f:facet name="top-parent">
                   <h:panelGrid id="topParent" columns="1" cellpadding="2" cellspacing="0" border="0" align="left">
                   <h:commandLink styleClass="txtbold" immediate="true" action="#{categoryListBean.showCategoryDetail}">
                   <h:outputText escape="false" value="#{node.description} "/>
                   <f:param name="categoreId" value="#{node.identifier}"/>
                   </h:commandLink>
                   </h:panelGrid>
                   </f:facet>
                   <f:facet name="child">
                   <h:panelGroup id="Child">
                             <h:commandLink styleClass="#{t.nodeSelected ? 'headerRedText':'txt1'}" actionListener="#{t.setNodeSelected}" immediate="true">
                   <h:outputText value="#{node.description}"/>
                        <f:param name="categoreId" value="#{node.identifier}"/>
                   </h:commandLink>
                   </h:panelGroup>
                   </f:facet>
                             </t:tree2>
    please help me if u have solution of this problem.
    thank you.

    hi,
    in MyFaces there is an example using JSF and Tiles.
    MyFaces provides a custom ViewHandler faciltity.
    see http://sourceforge.net/projects/myfaces
    hope that helps.
    Regards,
    Matthias

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

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

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

Maybe you are looking for

  • No sound through HDMI alternative solution

    If you are not able to get sound through your TV through HDMI and have tried all the System Preferences/Audio MIDI steps detailed on here in other threads but nothing works, try just shutting down all running apps. I had to Force Quit Spotify, Viber,

  • Germany vs Brazil Live Streaming Fifa World Cup Semi Final 2014 Online Watch Espn

    http://www.boston.com/community/forums/sports/mixed-bag/general/germany-vs-brazil-live-streaming-fifa-world-cup-semi-final-2014-online-watch-espn/100/7232782 http://www.boston.com/community/forums/sports/mixed-bag/general/germany-vs-brazil-live-strea

  • Quicktime 7.1 won't install with MS06-015 on Windows Server 2003

    Quicktime 7.1 will not install correctly on Windows Server 2003 with MS06-015 - Vulnerability in Windows Explorer Could Allow Remote Code Execution installed. We have tried this on at least 6 machines. All fail at the last step in the install process

  • UserEventAgent(Not Responding)  Process ID 369 ?

    What is this? I have been getting it since I bought the computer. In the activity monitor it is showing as 3 threads/3.71 Real Memory/856.23MB Virtual memory I was told it would be fixed in a upgrade. Anyone else see it in Activity Monitor? Is it slo

  • Intermittent error "Detected simultaneous access"

    Since updating our Service Desk appliance to version 7.0.3 we have had an intermittent error message when a technician is updating or changing incidents. The error reads "Detected simultaneous access. This Incident has been altered by another user an