JSF - MyFaces / Trinidad on NW CE 711 or 72

I need step by step help on how to get Trinidad (MyFaces) working on a NW CE 711 or 72 application server.
- What to do with the Trinidad jar files?
- Correct configuration of web.xml and faces-config.xml
Any help appreciated,
Walter

ok for the part related to the command; properly setting up NWDS help accessing the command.
http://help.sap.com/saphelp_nwce711/helpdata/EN/47/e9909ee81d6c68e10000000a42189b/content.htm
but what I was trying to achieve did not work.
act -U -a myAct -w //ws/myWS/
-U to revert the sources from  my activity myAct in the workspace myWS...
any help still appreciated,
Cheers,
Arnaud

Similar Messages

  • How to apply external CSS file with MyFaces Trinidad?

    In my original JSF page, I used to have
    <head>
        <link href="css/app.css" rel="stylesheet" type="text/css" />
    </head>However, after I switched to MyFaces Trinidad and used <tr:document> tag, the external stylesheet could not be applied.
    <tr:document inlineStyle="css/app.css">I wonder the external stylesheet is not applied in this way with the inlineStyle attribute. So what is the correct way of applying an external stylesheet for the whole page? Thanks.

    ...and which kind of files can be included under
    resources: [] ??
    I have a .json file that I need to be included in a template (and also included in projects created from that template).
    The only way I found to do this is to add it as a script. The problem then is that all included "scripts" will be evaluated when the page is loaded, which will fail since it's a json file. External dependencies makes it impossible for me to change the format of the json file...

  • JSF and Trinidad

    The code is
    <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:tr="http://myfaces.apache.org/trinidad" >
    <jsp:directive.page contentType="text/html;charset=utf-8"/>
    <f:view>
    <tr:document title="CD ACCOUNTS">
    the line of code highlighted is <tr:document title="CD ACCOUNTS">
    and the error is
    C:\JDeveloper\jdev\mywork\accounting\WebContent\clerk\uploadFile.jspx
    Error: Unable to instantiate tag: f:view (class: null) Make sure that the tag class is available and that the tag library containing the class is not excluded from this application.
    i have all xml files and all jar files included in my project, i am stumped

    Hi,
    copying the answer I provided on the Stack Overflow forum to the same question:
    Apparently you are correct and the ADF Mobile developer guide for 11g R1 doesn't mention Android as a target platform: http://docs.oracle.com/cd/E23943_01/web.1111/e10140/toc.htm
    However, JDeveloper 11g R2 does : http://docs.oracle.com/cd/E26098_01/web.1112/e16178/toc.htm
    Just search for "Android" and you see what I mean. As you mention the base technology is Apache MyFaces Trinidad and the version of Trinidad thus determines the support for mobile devices.
    Apparently JDeveloper 11g R2 uses the Trinidad libraries (JSF 2) that support the Android platform while JDeveloper 11g R1 does not.
    Given that Trinidad 1.2 supports Android (though it might not have been tested as mentioned here: http://myfaces.apache.org/trinidad/devguide/mobile.html) you should be able to create your own skin for Android as documented here: http://myfaces.apache.org/trinidad/devguide/mobileSkinning.html
    The RequestContext object in Trinidad returns the calling agent and you may want to check first if this returns Android. If it does then creating and applying a skin is easy to do.
    Frank

  • MyFaces Trinidad and Disabled Javascript (Accessibility)

    Hi All
    I have a requirement for the application to be rendered and viewed even when javascript is disabled on the browser. MyFaces Trinidad seem (or seemed) like a good choice based on the claim that the javascript will degrade gracefully when javascript is not enabled.
    As a sample, I am trying to do a simple form with the basic <tr:inputText....
    The ALLOW_JAVASCRIPT context param in web.xml is set to false but doesnt seem to make any difference. When i disable js in the browser there is a message that javascript is required for this page.
    1 - Any idea what i might be missing here?
    2- Is there a way to allow or disallow javascript per user session? as in detect the user environment initially and modify the context params accordingly, when a session or a conversation starts.
    3- Any another jsf library that worked for you that way? My other alternative is SWF Faces and the dojo kit.
    Would like to know if anyone else faced such issue.
    Thanks
    Shai

    So you want unobtrusive Javascript? Then just go through the specs/docs of component libraries until you find one which supports it.

  • Migrating from Eclipse/Ant/MyFaces Trinidad to using JDeveloper--need help

    I recently downloaded JDeveloper 11.1.1.2.0. Several years ago, I used JDev to do some very simple JSP/servlet development with no formal framework. Times have changed a lot.
    For the past few years, I have been developing server-side Java web apps using Eclipse JEE and Ant (ie, everything is set up so that the developer does not depend on the IDE). We currently implement web apps using Apache MyFaces Trinidad JSF components (but not Facelets). Any developer here can check out our code and simply run Ant to build the projects--no need to even have Eclipse installed. Anyone here can build and develop with a text editor and Ant, if they prefer.
    I am impressed and yet overwhelmed by the robust functionality of the latest JDev--so impressive, but I feel almost a bit too removed from "seeing" what is going on in the code and deployment. I like the notion of drag-and-drop along with wizards, but I want to also know how the JDev project is set up manually; ie, where everything goes, without having to guess on this. I get the impression that I need to learn, very specifically, the framework of ADF. But unfortunately, the tutorials seem to focus on only using the wizards and drag-drop functionality.
    For example, how do I set up JDev to build a project only by running Ant using my properties files and build.xml? This is trivial to do in Eclipse by specifying the Project Builder. Is there some similar setting I can use in JDev?
    Is there full compatibility with Trinidad--didn't Oracle make the original Trinidad?
    Has anyone posted advice on migrating from Eclipse JEE to JDev?
    Sorry if this is an old set of questions; if I had known where to search for this information, I would not be posting this thread.
    Many thanks!
    Mike Quentel

    The basic steps for bringing your existing code into JDeveloper are:
    Import->WAR File - or alternatively create a new application and in it create a new projects->project from existing source
    The next couple of steps have to do with setting the project properties:
    Then you need to set up your project content path (specifically things like Web content and resources content)
    Then you need to add the jars/libraries in your project classpath and libraries.
    A few related link:
    http://blogs.oracle.com/shay/2010/01/migrating_from_netbeans_to_jde.html - netbeans migration but similar concepts
    http://www.oracle.com/technology/products/jdev/howtos/1013/w4wljdev/workshopandjdev.html - basic migration from Eclipse to JDeveloper
    http://blogs.oracle.com/shay/2009/02/using_trinidad_in_jdeveloper_1.html - Using trinidad in JDeveloper
    Also don't forget that you can now set your JDeveloper accelerators to be based on Eclipse key mapping - might make the migration easier.

  • Shared library for  MyFaces Trinidad

    Hello!
    I'm having some trouble trying to create a shared library in OC4J 10.1.3.3.0. My goal is to deploy multiple applications that use MyFaces and Trinidad, but using a shared library that contains every JAR required.
    This is what I've done so far:
    1. I created the directory D:\workspace\oc4j_10.1.3\j2ee\home\shared-lib\sidi\1 and put there every JAR included in MyFaces Trinidad Demo.
    2. Edited server.xml and added the following lines:
    <shared-library name="sidi" version="1">
    <code-source path="*"/>
    </shared-library>
    3.- Edited the orion-application.xml in each application that needs MyFaces Trinidad support and added the following lines:
    <imported-shared-libraries>
    <import-shared-library name="sidi" />
    </imported-shared-libraries>
    When I try to run any application that uses MyFaces Trinidad, I get this error message:
    java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
    If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
    A typical config looks like this;
    <listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
         at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:93)
         at javax.faces.webapp.FacesServlet.init(FacesServlet.java:91)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2371)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4824)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4748)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2971)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:741)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    If I add that listener to web.xml, the error changes to this:
    9/08/2007 02:37:28 PM org.apache.myfaces.config.FacesConfigurator feedStandardConfig
    INFO: Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
    9/08/2007 02:37:28 PM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
    INFO: Reading config code-source:/D:/workspace/oc4j_10.1.3/j2ee/home/shared-lib/sidi/1/tomahawk-1.1.6.jar!/META-INF/faces-config.xml
    9/08/2007 02:37:29 PM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
    INFO: Reading config code-source:/D:/workspace/oc4j_10.1.3/j2ee/home/shared-lib/sidi/1/trinidad-impl-1.0.1.jar!/META-INF/faces-config.xml
    9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator feedWebAppConfig
    INFO: Reading config /WEB-INF/faces-config.xml
    9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator logMetaInf
    INFO: MyFaces-package : myfaces-api not found.
    9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator logMetaInf
    INFO: MyFaces-package : myfaces-impl not found.
    9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator logMetaInf
    INFO: MyFaces-package : tomahawk-sandbox not found.
    9/08/2007 02:37:31 PM org.apache.myfaces.config.FacesConfigurator logMetaInf
    INFO: MyFaces-package : tomahawk not found.
    If I place the JARs inside each WEB-INF/lib the applications work, but I'm trying to avoid doing this to have smaller EARs when the applications are packaged for deployment in the production servers.
    What am I doing wrong? Hope you can help me with this.

    Hi Aram,
    The default behaviour of OC4J is to NOT run the listeners provided inside the taglibs. As for java server faces, tomahawk and trinidad use taglibs that rely on the listener configured in the tld file
    You'd need not only to deploy the "shared library", but also, drop the jars in the $OC4J/j2ee/home/taglibs directory
    And, make sure that in your "global-web-application.xml" you have:
    <orion-web-app
    [... whatever ...]
         jsp-cache-tlds="on"
         jsp-taglib-locations="../taglibs"
    >
    that means, the attribute "jsp-taligb-locations is defined for the orion-web-app tag. With that, the listener is going to be loaded, and you'd not need to configure it in the web.xml

  • JSF, MyFaces and accessibility

    Apologies for this question which seems like it really ought to be a matter for Google - I've looked but not found much of use.
    Does anyone have any links or resources which discuss providing accessibilty when implementing a JSF/MyFaces site? I've really only just picked up JSF so my knowledge is far from in-depth; at the moment I'm looking more for a high level appraisal of how accessible JSF pages can be made (and how expensive it is to achieve that) than the details of actually how to do it.
    Essentially I'd like to know whether the adoption of JSF and MyFaces is going to lead to a major headache in this regard. Similar information regarding standards compliance would be a bonus.
    Thanks.

    My understanding is that JSF specification is compatible with accessibility guidelines but I would like to point that JSF is a specification not an implementation.
    Having said that, AJAX and most of the implementation sout there today are NOT compatible with accessibility guidelines.
    I believe that WCAG 1.0 says any javascript != accessiblity while WCAG 2.0 has backed off a bit. Point being most RIA applications are not accessible.
    Since I have never desiged an accessible site I cannot speak to all of the difficulties. Like I said you would have to look at the JSF implementation you were using for additional details, I assume core JSF is compatible with accessibility guidelines.

  • JDeveloper overwriting org.apache.myfaces.trinidad.CHANGE_PERSISTENCE?

    We're using some Web Center features, notably Composer, but require a custom change manager (our change manager chains to oracle.adf.view.page.editor.change.ComposerChangeManager)
    I'm seeing strange behavior in jdev when running our app in WLS (jdev 11.1.1.5.0):
    Doing a simple test, before starting jdev, make web.xml writable. Modify the org.apache.myfaces.trinidad.CHANGE_PERSISTENCE parameter and then start jdev. Do a Make All & then run your main web project – when the app is fully running, open web.xml from a terminal and the modification to the CHANGE_PERSISTENCE parameter has disappeared.
    (you need MDS enabled and Composer as a library for this to happen)
    Has anyone else noticed this behavior / is aware of a work around?
    Thanks,
    Colm.

    @John had replied to this in one of my post and i take it from that
    This is by default in Integrated weblogic Server so trackand show the changes on the spot. Once deployed on Standalone WS this error will go of. You cannot control this behavior in JDev 11.1.2.1

  • Org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION

    Hello OTN,
    When I run my ADF application (intergrated WLS) there's a warning in console, that I have org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION = true in my web.xml.
    I tried to rerun the application (and the server) like this:
      <context-param>
        <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
        <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
        <param-value>false</param-value>
      </context-param>and like this:
    <!--
    <context-param>
        <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
        <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
        <param-value>true</param-value>
      </context-param>
    -->But still I receive the same warning.
    How do I turn CHECK_FILE_MODIFICATION off?
    Thanks.
    JDev 11.1.2.1

    @John had replied to this in one of my post and i take it from that
    This is by default in Integrated weblogic Server so trackand show the changes on the spot. Once deployed on Standalone WS this error will go of. You cannot control this behavior in JDev 11.1.2.1

  • Request "org.apache.myfaces.trinidad.webapp.ResourceServlet"

    I recive this request on my adf application
    *defowMenu(event){       var adfRichMenu = event.getSource();       adfRichMenu.getPeer().show();       } function href(link){        location.href = link;      } </script> <div id*
    on "org.apache.myfaces.trinidad.webapp.ResourceServlet" servelet
    request:
    GET /IugStdPortal-StdPortalView-context-root/afr/partition/ie/defowMenu(event)%7B%20%20%20%20%20%20%20var%20adfRichMenu%20=%20event.getSource();%20%20%20%20%20%20%20adfRichMenu.getPeer().show();%20%20%20%20%20%20%20%7D%20%20%20%20%20%20%20%20%20%20%20%20%20function%20href(link)%7B%20%20%20%20%20%20%20%20location.href%20=%20link;%20%20%20%20%20%20%7D%20%20%20%20%3C/script%3E%20%20%20%20%20%20%20%3Cdiv%20id= HTTP/1.1
    I belive this is XSS injection
    is there any thing I must do or waht?
    can you help me?
    BR,
    Alaa

    Hi,
    the resource servlet handles the download of resources like JS files, image files etc that should not use the "expensive" faces lifecycle for download. The script seems to be an event handler that opens a menu item (for display)
    Frank
    Edited by: Frank Nimphius on Feb 8, 2012 5:17 PM

  • MyFaces Trinidad Page Not Found..

    Hi
    Currently attempting to use Trinidad with Facelets but get "404 Page Not found". I've followed the WIKI and think its all correctly configured so hopefully this error is something obvious..
    Tomahawk and Facelets worked fine.
    Last few lines of log..
    View after rendering
    ========================================
    <org.ajax4jsf.framework.ajax.AjaxViewRoot id="_viewRoot" ajaxListener="NULL" ajaxListeners="[Lorg.ajax4jsf.framework.ajax.AjaxListener;@1619bca" family="javax.faces.ViewRoot" havePage="false" immediate="false" locale="en" renderKitId="org.apache.myfaces.trinidad.core" renderRegionOnly="false" rendered="true" rendererType="javax.faces.ViewRoot" rendersChildren="false" selfRendered="false" submitted="false" transient="false" viewId="/pages/secure/trinidad.jsp"/>
    ========================================
    exiting RENDER_RESPONSE(6) in org.apache.myfaces.lifecycle.LifecycleImpl
    service end
    Chain processed normally
    SecurityContextHolder set to new context, as request processing completedThanks,
    James

    Hi,
    Please check the log file to find more information about this issue. The path of the log file is:
    C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS.
    In addition, please make sure the URL of the site is correct.
    Please check whether you could access other pages in the problematic site.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Error/Warning Messages. via org.apache.myfaces.trinidad.................

    Hi,
    I use Jdeveloper Studio version 11.1.2.3.0
    Each time i open the Jdeveloper to build my app i get these warning messages....
    WARNING: Apache Trinidad is running with time-stamp checking enabled. This should not be used in a production environment. See the org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
    Mar 27, 2013 5:23:12 PM org.apache.myfaces.trinidad.component.UIXEditableValue _isBeanValidationAvailable
    WARNING: A Bean Validation provider is not present, therefore bean validation is disabled
    Mar 27, 2013 5:23:23 PM org.apache.myfaces.trinidadinternal.agent.AgentFactoryImpl _populateUnknownAgentImpl
    WARNING: The User-Agent "null" is unknown; creating an agent with "unknown" agent attributes.
    Mar 27, 2013 5:23:23 PM org.apache.myfaces.trinidadinternal.agent.AgentFactoryImpl _populateUnknownAgentImpl
    WARNING: The User-Agent "null" is unknown; creating an agent with "unknown" agent attributes.
    Despite these messages, when i run my application on Integrated Weblogic Server, it runs just fine.... Also i tried accessing the WEB-INF/web.xml for "org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION" and it was set to FALSE..... then i changed it to TRUE restarted the Jdeveloper but the Warning message kept showing, so later changed it back to FALSE...
    Please any suggestion on how i can rectify these before deploying my app to Standalone Weblogic Server on a production environment?
    Thanks..
    OBI

    Also i tried accessing the WEB-INF/web.xml for "org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION" and it was set to FALSEAs I recall, the integrated WLS (the one that runs when you run from JDeveloper) always automagically sets this to TRUE, regardless of the web.xml settings.
    The other warnings:
    WARNING: A Bean Validation provider is not present, therefore bean validation is disabledYou can ignore
    WARNING: The User-Agent "null" is unknown; creating an agent with "unknown" agent attributes.You can probably ignore - this seems to me to be related to the browser you're using
    John

  • Spring & JSF - myFaces?

    Hello guys,
    I'm new to JSF, so anyone feeling nice enough to answer, please keep it 'simple' :-)
    Anyway, the situation is as follows:
    I've got a pretty basic project. Bunch of tables, a bunch of pojo's, dao's...
    Technologies I'm using:
    Spring 2.x
    MySQL & Tomcat 6
    Toplink
    myFaces
    So I'm able to create my business logic, wire everything into Spring and create some nice GUI's using Swing.
    I'm using auto-transactioning through Spring so my entire DB connections are regulated by Spring. Basically all I do in DAO's is 'getJpaTemplate().persist(myPojo)' etc. No messing around with DB connection pooling or opening & commiting transactions... all that is done in my application-context.xml
    So now I need to change my GUI layer towards JSF.
    I pretty much get the idea to link my beans to my JSF pages, to connect the different pages using navigation rules in combination with methods in my beans...
    What I don't get however is how I'm supposed to wire my Spring dependency injection (which I like very much) into my JSF...
    How to combine my application-context.xml with my faces-config.xml etc...
    So here's the question:
    Any of you guys able to explain to me like I'm a 6-year old how to do this?
    OR
    Do any of you know of any clear and precise Tutorials on the web somewhere?
    I browsed RoseIndia, these forums,...
    Thanks in advance!

    The Spring framework offers the org.springframework.web.jsf.DelegatingVariableResolver to integrate Spring in JSF.
    http://www.google.com/search?q=org.springframework.web.jsf.DelegatingVariableResolver
    http://static.springframework.org/spring/docs/2.0.x/reference/webintegration.html#jsf
    I would like to share my humble opinion about RoseIndia: it is basically a handy site with good potential, but most of those tutorials are written by users who have too few background knowledge about the real stuff and those generally shows "bad practices". Read the RoseIndia tutorials with a bag of salt and rather read the official documentations of the manfacturer of the API. E.g. http://javaserverfaces.dev.java.net, http://www.springframework.org, http://www.hibernate.org and so on.

  • JSF myfaces character encoding issues

    The basic problem i have is that i cannot get the copyright symbol or the chevron symbols to display in my pages.
    I am using:
    myfaces 2.0.0
    facelets 1.1.14
    richfaces 3.3.3.final
    tomcat 6
    jdk1.6
    I have tried a ton of things to resolve this including:
    1.) creating a filter to set the character encoding to utf-8.
    2.) overridding the view handler to force calculateCharacterEncoding to always return utf-8
    3.) adding <meta http-equiv="content-type" content="text/html;charset=UTF-8" charset="UTF-8" /> to my page.
    4.) setting different combinations of 'URIEncoding="UTF-8"' and 'useBodyEncodingForURI="true"' in tomcat's server.xml
    5.) etc... like trying set encoding on an f:view, using f:verbatim, specifying escape attirbute on some output components.
    all with no success.
    There is a lot of great information on BalusC's site regarding this problem (http://balusc.blogspot.com/2009/05/unicode-how-to-get-characters-right.html) but I have not been able to resolve it yet.
    i have 2 test pages i am using.
    if i put these symbols in a jsp (which does NOT go through the faces servlet) it renders fine and the page info shows that it is in utf-8.
    <html>
    <head>
         <!-- <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> -->
    </head>
    <body>     
              <br/>copy tag: &copy;
              <br/>js/jsp unicode: &#169;
              <br/>xml unicode: &#xA9;
              <br/>u2460: \u2460
              <br/>u0080: \u0080
              <br/>arrow: &#187;
              <p />
    </body>
    </html>if i put these symbols in an xhtml page (which does go through the faces servlet) i get the black diamond symbols with a ? even though the page info says that it is in utf-8.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
         xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:rich="http://richfaces.org/rich"
         xmlns:c="http://java.sun.com/jstl/core"
           xmlns:a4j="http://richfaces.org/a4j">
    <head>
         <meta http-equiv="content-type" content="text/html;charset=UTF-8" charset="UTF-8" />
         <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    </head>
    <body>     
         <f:view encoding="utf-8">
              <br/>amp/copy tag: &copy;
              <br/>copy tag: &copy;
              <br/>copy tag w/ pound: #&copy;
              <br/>houtupt: <h:outputText value="&copy;" escape="true"/>
              <br/>houtupt: <h:outputText value="&copy;" escape="false"/>
              <br/>js/jsp unicode: &#169;
              <br/>houtupt: <h:outputText value="&#169;" escape="true"/>
              <br/>houtupt: <h:outputText value="&#169;" escape="false"/>
              <br/>xml unicode: &#xA9;
              <br/>houtupt: <h:outputText value="&#xA9;" escape="true"/>
              <br/>houtupt: <h:outputText value="&#xA9;" escape="false"/>
              <br/>u2460: \u2460
              <br/>u0080: \u0080
              <br/>arrow: &#187;
              <br/>cdata: <![CDATA[©]]>
              <p />
         </f:view>               
    </body>
    </html>on a side note, i have another application that is using myfaces 1.1, facelets 1.1.11, and richfaces 3.1.6 and the unicode symbols work fine.
    i had another developer try to use my test xhtml page in his mojarra implementation and it works fine there using facelets 1.1.14 but NOT myfaces or richfaces.
    i am convinced that somewhere between the view handler and the faces servlet the encoding is being set or reset but i havent been able to resolve it.
    if anyone at all can point me in the right direction i would be eternally greatful.
    thanks in advance.

    UPDATE:
    I was unable to get the page itself to consume the various options for unicode characters like the copyright symbol.
    Ultimately the content I am trying to display is coming from a web service.
    I resolved this issue by calling the web service from my backing bean instead of using ui:include on the webservice call directly in the page.
    for example:
    public String getFooter() throws Exception
              HttpClient httpclient = new HttpClient();
              GetMethod get = new GetMethod(url);
              httpclient.executeMethod(get);
              String response = get.getResponseBodyAsString();
              return response;
         }I'd still love to have a solution to the page usage of the unicode characters, but for the time being this solves my problem.

  • JSF/MyFaces tree navigation

    Hi All,
    i am writing a web-app that renders a tree style menu on the left handside of the page, and on the right hand side will be rendered the page that the clicked tree node is mapped to. What is the best component with which to implement the latter part? The tree2 from MyFaces works absolutely fine for the tree navigation panel, but I don't know what to use for the second half of the page.
    Any help would be greatlly appreciated.
    Angus

    it should be action="admin", but not onClick="admin"

Maybe you are looking for