JSF: Using of MyFaces Tomahawk UI Components

Hello,
is it possible to use MyFaces Tomahawk UI Components or other MyFaces UI Components with the SAP NetWeaver CE 7.1 Application Server?
Regards,
Armin

MyFaces Tomahawk works!
workaround:
1. Copy commons-el-1.0.jar, commons-fileupload-1.0.jar, commons-lang-2.1.jar, commons-logging-1.1.1.jar and tomahawk-1.1.6.jar into the lib folder.
2. Add the following lines to your web.xml file:
<!-- Extensions Filter -->
<filter>
        <filter-name>extensionsFilter</filter-name>
        <filter-class>
                org.apache.myfaces.component.html.util.ExtensionsFilter
        </filter-class>
        <init-param>
                <description>
                        Set the size limit for uploaded files. Format: 10 - 10
                        bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
                </description>
                <param-name>uploadMaxFileSize</param-name>
                <param-value>100m</param-value>
        </init-param>
        <init-param>
                <description>
                        Set the threshold size - files below this limit are
                        stored in memory, files above this limit are stored on
                        disk.
                        Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
                </description>
                <param-name>uploadThresholdSize</param-name>
                <param-value>100k</param-value>
        </init-param>
        <!--
        <init-param>
                <param-name>uploadRepositoryPath</param-name>
                <param-value>/temp</param-value>
                <description>Set the path where the intermediary files will be stored.
                </description>
        </init-param>
        -->
</filter>
<filter-mapping>
        <filter-name>extensionsFilter</filter-name>
        <url-pattern>*.faces</url-pattern>
</filter-mapping>
<filter-mapping>
        <filter-name>extensionsFilter</filter-name>
        <url-pattern>/faces/*</url-pattern>
</filter-mapping>

Similar Messages

  • JSF 1.2 + myFaces Tomahawk

    Hi,
    I'm trying to use tomahawk component (t:inputFileUpload) in JSF 1.2 application.
    When I'm runing the app this kind of warrning apperas
    2007-04-23 15:39:41 com.sun.faces.renderkit.html_basic.HtmlBasicRenderer getForComponent
    WARNING: Unable to find component with ID cover in view.
    2007-04-23 15:39:41 com.sun.faces.renderkit.html_basic.HtmlBasicRenderer getForComponent
    WARNING: Unable to find component with ID cover in view.cover is an ID of tomahawk component.
    Can somebody help?
    Thx 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.

  • Errors using themes and tomahawk within portlets

    I've been developing a portlet using Creator2 Update 1 that uses the myfaces tomahawk library of components. Besides the difficulty of not being able to use the visual designer, I've managed to get my portlet functioning the way I want.
    My next step was to apply styles to my portlet. The difficulty here is that since portlets are aggregated within a portal, the portlet does not have access to the <head> tag of the container page (meaning I couldn't just add my own stylesheets and link them in.) I'm not sure how Creator works around this problem - I just know that it manages to using <ui:themeLinks> somehow.
    Changing the theme for a regular Creator-components-only (read: no tomahawk) is a no-brainer. I simply pick a different theme in the Project view and set it as the Current Theme. I can even set my own user-defined theme. Running the portlet either through Creator or Liferay shows the applied theme.
    However, once I start using tomahawk components, the theme system breaks down, throwing exceptions, such as the following:
    com.sun.rave.web.ui.theme.ThemeConfigurationException: WARNING: the Sun Web Components could not load any themes.
    at com.sun.rave.web.ui.theme.ThemeFactory.createThemeManager(ThemeFactory.java:274)
    Curiously, it only breaks if I use one of my user-defined themes. The Creator-provided themes will work with the tomahawk components portlet.
    In short, I am baffled. Creator-provided themes work regardless of tomahawk components present. My own themes work so long as there aren't tomahawk components present.

    Sorry, I don't think that's going to work. Themes are not used in the standard SES index, and therefore the Oracle Text knowledgebase is not installed - hence the DRG-11446 error you're seeing.
    If you figured out a way to install the knowledgebase from another system (and I'm NOT recommending that), you would still need to recreate the text index with INDEX_THEMES turned on.
    You should be able to connect to the SES instance from a remote machine by commenting out both "tcp.invited_nodes" and "tcp.validnode_checking" from the sqlnet.ora file. Not sure why just adding an entry to tcp.invited_nodes didn't work for you.

  • How to use Apache MyFaces components in JSF pages + Eclipse?

    I've managed to write my JSF web app. in Eclipse jee, and test it on JBoss 4.2 GA, within Eclipse, but how to import Apache MyFaces components into Eclipse JSF plug-in?
    If I can't import it nicely, how to use those components directly in JSF pages?

    The Tomahawk component library provides MyFaces components. Install it as you would any other component library.
    http://myfaces.apache.org/tomahawk/

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

  • Using myfaces tomahawk inputFileUpload componet

    I am using myfaces tomahawk inputFileUpload componet for the following requirement
    1. I need to upload images to my user profile page.
    2. Resize the image to fit my desired image size to be shown on the page
    Promblems
    1. The file i upload is done fine and images also show but
    the image is stored or refrenced to the local machine , so if i delete or change file location the image dosent show.
    what i need is to store the images in a seperate folder on the server or any other place and image should point to that location.
    2. Now the image uploaded displayed using jsf's
    <h:graphicImage url="fileupload_showimg.faces"/>component where "fileupload_showimg.faces"
    is a jsp page containing the following code
    which is a scriplet
    <%@ page import="java.io.File,
                     java.io.InputStream,
                     java.io.FileInputStream,
                     java.io.OutputStream"%><%@ page session="false" %><%
        String contentType = (String)application.getAttribute("fileType");
        String fileName = (String)application.getAttribute("fileName");
        String allowCache = request.getParameter("allowCache");
        String openDirectly = request.getParameter("openDirectly");
        if(allowCache == null || allowCache.equalsIgnoreCase("false"))
            response.setHeader("pragma", "no-cache");
            response.setHeader("Cache-control", "no-cache, no-store, must-revalidate");
            response.setHeader("Expires", "01 Apr 1995 01:10:10 GMT");
        if(contentType!=null)
            response.setContentType(contentType);
        if(fileName != null)
            fileName = fileName.substring(fileName.lastIndexOf('\\')+1);
            fileName = fileName.substring(fileName.lastIndexOf('/')+1);
            StringBuffer contentDisposition = new StringBuffer();
            if(openDirectly==null || openDirectly.equalsIgnoreCase("false"))
                contentDisposition.append("attachment;");
            contentDisposition.append("filename=\"");
            contentDisposition.append(fileName);
            contentDisposition.append("\"");
            response.setHeader ("Content-Disposition", contentDisposition.toString());
        byte[] bytes = (byte[])application.getAttribute("fileSizeBytes");
        if (bytes != null)
             response.getOutputStream().write(bytes);
    %>works fine but the image shown in its original size most of the time very large.
    I tried to fix the image size by changing the code to
    <h:graphicImage url="fileupload_showimg.faces" width="300" height="500"/>But now the image is shown is deformed
    i need it to be fixed in size and not deformed

    me again I think the first part of the problem is been solved now
    the 2nd problem is still there hope i can fix that also

  • Tiles jsf 1.2 and web ui components

    Hello,
    I'm using standalone tiles for my jee5 application which also happens to use and require the ui: components as supplied with Studio Creator.
    I am able to get the tiles to work, with the only issue being that the ui components are not rendering as html. For example, <ui:html> should be rendered as <html>, but it is being rendered as <ui:html>. This holds for true for all of the ui components.
    Has anyone come up against this and resolved it? Thanks so much,
    W.

    The answer is that you need to be remove the jsf-impl and jsf-api jars from the runtime distributions that come from the Studio Creator. Otherwise, they are deployed with the ear and the app server then runs as JSF 1.1.
    W

  • How to use ternary operator in JSF using EL expression

    how to use ternary operator in JSF using EL expression

    I want to use ternary operator for h:datatable columnclasses attribute like as below
    <h:datatable
    columnClasses="#{booleanExpression ? style1,style2 : style3,style4}"
    />
    But it's not working.Is there any other alternative to do this?

  • Catching events on Desktop , without using any AWT or Swing components.

    How can I catch events(for eg: mouse clicks) on the Desktop? I do not want to use any AWT or Swing components in my application.
    Also, i want to get events even some other java/non-java application windows are visible on desktop, as long as my application is running.

    Myrequirement is to capture all AWT events, regardless of on which component its being happened.
    I mean I have to capture events outside the current running application (on desktop and any other java/no-java appliation windows also).
    I couldn't find any other forum which discusses about event handling.
    This is part of my app. other end extensively uses awt.

  • MyFaces Tomahawk more than one tree2

    Hi everybody, I'm new with JSP and I'll appreciate some help with this:
    I have a JSP app implementing MyFaces Tomahawk tree2 with TreeBacker class modified, the component renders pretty well, but I need to show another tree completely different, I made a new class almost equal than TreeBacker but the name and the new tree structure, but at runtime the tree doesn't renders.
    In the running tree2:
    <t:tree2 id="clientTree" value="#{treeBacker.treeData}" var="node" varNodeToggler="t" clientSideToggle="true">Additionaly, why if I change treeBacker.treeData to TreeBacker.treeData the tree2 doesn't renders ??
    In the rebel tree2:
    <t:tree2 id="clientTree" value="#{treeBacker2.treeData}" var="node" varNodeToggler="t" clientSideToggle="true">this tree2 doesn't work....
    What I'm doing wrong ?

    I don't understand very good who works the repeater that you put there. And in the dataprovider I have to know how many trees I will have? Because I don't know how many trees I will have(in one moment 1, later 4, later 2... I could put a variable but I don't understand very good how can I do the repeater and..).
    I get create a dinamic Vbox with X tress, but putting all the xml in one, something like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <Cuentas>
        <Cuenta id="cuenta1" label="cuenta1">
        <node label="INBOX">
            <node label="Nombre">
        </node>
        </node>
        </Cuenta>
        <Cuenta id="cuenta2" label="cuenta2">
        <node label="INBOX">
            <node label="Apellido">
        </node>
        </node>
        </Cuenta>
    </Cuentas>
    With my treeLoad code I create 2 tress in one Vbox, if the xml document have 3 diferents Cuenta I will create 3 trees. But now I have different xml and I don't how can I do the same.

  • Use javaBeans with Microsoft ActiveX Components

    Hello,
    I would like to use javaBeans with Microsoft ActiveX Components.
    As I start the Packager and my jdk is installed in c:\jdk1.4
    I set the following command
    "c:\jdk1.4:bin\java.exe -cp jre\lib\rt.jar;jre\lib\jaws.jar
    sun.beans.ole.Packager"
    and receive error messages "Exception in thread main
    java.lang.NoClassDeFoundErrror:sun/beans/ole/Packager"
    Please give me some suggestions.
    Thanks a lot.

    Hello Twupack,
    Thank you provide me the information.
    If I just want to use javaBeans to create Microsoft ActiveX Components
    used in VBScript.
    sdk v1.4.2 is not suitable,right?
    Any Suggestion?
    Thank you very much.

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

  • BUG: JSP disappears from design view with MyFaces / Tomahawk

    Hi,
    When I try to create a JSF JSP in design view (as opposed to code view) using MyFaces and Tomahawk 1.1.3, the design view will blank and display "Type, paste or drag and drop content onto this blank....". This usually happens after I've dragged half a dozen JSF outputlabels and inputtext boxes. The code still exists in code view, and will even compile and deploy ok, it's just the design view that stops working. The design view usually blanks while I'm switching between the code tabs at the top of the screen, although I'm fairly sure it blanked as I dropped a textbox onto the form once.
    I've restarted JDev, tried to create a second page, clicked refresh etc but I can't get it back. This has happened starting from scratch 3 times now.
    I've switched back to the builtin reference implementation JSF (and no Tomahawk), and JDeveloper works fine, so it seems to be a problem using MyFaces. I've added MyFaces and Tomahawk via Manage Libraries.
    This Oracle article - http://www.oracle.com/technology/products/jdev/101/howtos/myfaces/index.html
    states that the RI version can't be swapped out in JDev Developer Preview version but I understand that's not true now?
    I'm using :-
    JDeveloper SU4
    java 1.5
    Windows XP SP1
    Thanks for any help.

    I found the answer. I went to View, Style Rendering and clicked several of the boxes  Display Media was one.

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

  • JSF screws IDs I specify for components padding them with "j_id_1"

    Hi everyone.
    Have anybody faced such a problem? When I specify the ID for the component, say, "logn", it is added to view as "loginj_id_1" padded with "j_id_1". Sometimes it happends, sometimes it doesn't. It may happen only for some of the components on the page. It wouldn't be a problem if the id under which the component is known was the same in all cases. But it's not the case. When the form validation fails and it's time to fill <h:message for="login">, I get the lines in the log saying:
    Unable to find component with ID loginj_id_1 in view.whereas the component exists under id "login". As for components at the same page whose IDs were padded with "j_id_1" there's no such an error and their <h:message>'s are filled as expected.
    Does anyone know what can make JSF override the ID that I specify? How come that one component is treated under differend IDs all around the project? Could it be a result of incorrect mixing RI & MyFaces for I have both of them in classpath? I haven't noticed that problem before upgrading to JSF RI 1.2_02 that comes with SJSAS 9.0_1.

    Each component is responsible for producing its own output, including it's HTML "id" attribute in the correct location. JSF does provide support for calculating the "id": UIComponent.getClientId(). The default implementation of this method is in UIComponentBase. I don't know if MyFaces has a different implementation or not... nor do I know if every component in your application produces HTML w/ id's formatted via this method. Some components may use serveral id's and create some or all of the id's by modifying the value rerturned by "getClientId()". Some containers (such as tables) may even manipulate the id's of their child components.
    So w/o a concrete example, I can't answer your question.
    Good luck!
    Ken Paulsen
    https://jsftemplating.dev.java.net

Maybe you are looking for

  • Adding a new LAN segment

    Hi, Currently I only have 1 Cisco 2600 router, which connects serially to a leased line device, with an Ethernet port that connects to my LAN. Currently, I would like to add a new LAN segment (different network) to my LAN. My idea is to get a new Cis

  • Unlocking front panel

    Is there a way to unlock a front panel with no menu items available?

  • Esscommand and MDX in 7.x

    Can someone please provide an example of how to automatically update a product dimension and load data in Essbase 7.x. In version 6.5, I used Esscommand to do this. My understanding is I need to use MDX with version 7.x. <BR><BR>Here is a sample of t

  • Java for work on Excel and Access

    I have a program that imports an EXCEL file as an Access database. One field in the EXCEL file contains ZIP codes which, when imported into the database are stored as numbers/double. I would , however, like to import these as char. Any way I could do

  • How do I play my Xbox360/PS3 on my MacBook Pro?

    Hello! I was wondering if there was a way to set up my MacBook Pro as my monitor for my 360 or my PS3 so that I can play games in HD. Now I know there are tuners out there that support just standard composite cables, but is there any way to have HD s