JSF Version problems

I have a backing bean that extends com.sun.rave.web.ui.appbase.AbstractPageBean and I'm having some troubles with it. I put some output in some of the methods I overrode, for example the constructor, init(), destroy(), preprocess(), prerender(), and afterRenderResponse() and I'm noticing that when I use different versions of JSF, some of the methods don't get called. If I use the JSF 1.1_02 versions of jsf-api.jar and jsf-impl.jar, the afterRenderResponse() method gets called, but if I use the JSF 1.2_04 version of jsf-api.jar and jsf-impl.jar, the afterRenderResponse() method doesn't get called, but I need to be able to call that method. Does anyone know why it that method doesn't get called in the 1.2 version?

I'd estimate the current number of facelets users to be a fraction of a percent of JSP users, maybe thousand or so.
I'v used facelets since very early versions, and it does deliver it's promise. However, at the same time it introduces it's own layer of new problems.
For the recent projects i'v went back to JSP. My crystal ball does not see wide adaptation of facelets in the fortune 500.
You can see some discussion about GlassFish hosting here:
http://forums.java.net/jive/thread.jspa?messageID=103589&tstart=0#103589
Another thing worth considering is that if you start development now tomcat 6 will be probably out before you go public.
-Henri

Similar Messages

  • Running JSF ToyStore problem

    Hi,
    I just download the JSF version of the ToyStore and then I create the two users.
    I right-click the index.jsp to run it but it shows the following error
    Request URI:/ADFToyStore/index.jsp
    Exception:
    OracleJSP:java.io.FileNotFoundException: C:\adf_example\ADFToyStoreJSF\ToyStoreModel\public_html\index.jsp (The system cannot find the file specified.
    Any suggestion ?
    Ivan

    thanks frank for ur reply
    i know that the problem is not with JSF it is the problem with OC4J server
    and another thing I was able to deploy it in a tomcat server but when I am trying 2 run it it gives some exception...but I am sure that I will be able to correct it as soon as possible
    basically I am working in solaris box so my thought is that there is a problem in "ojc.sh" file...anyways I am trying 2 sort it out
    keep in touch

  • A solution for Secure Static Versioning problem in 1.5.0_10

    Hi,
    I have JRE 1.3.1_09 and 1.5.0_10 on my computer and I think I have solved static versioning problem.
    My test computer:
    - Windows XP sp2
    - Internet Explorer 7 (on another computer also IE 6)
    - Firefox 2.0.0.1
    - JRE 1.3.1_09
    - JRE 1.5.0_10
    I. Solution for Internet Explorer 6 and Internet Explorer 7
    1. Edit registry and add:
    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Deployment\Policy
    DWORD: EnableSecureStaticVersioning = 0 (Hex)
    2. Restart browser if started.
    3. Start web page with java applet.
    II. Solution for Firefox 2.0.0.1:
    1. Install 1.3 JRE in the same parent directory as 1.5 JRE.
    Because default default installation path for 1.5 JRE is C:\Program Files\Java\jre1.5.0_10 you need to modify
    1.3 installation path from default C:\Program Files\JavaSoft\JRE\1.3.1_09 to C:\Program Files\Java\jre1.3.1_09
    After installation check out that "bin" directory is in the following path:
    C:\Program Files\Java\jre1.3.1_09\bin
    2. Install 1.5 JRE in default installation directory: C:\Program Files\Java\jre1.5.0_10.
    After installation check out that "bin" directory is in the following path:
    C:\Program Files\Java\jre1.3.1_09\bin
    3. Restart browser if started.
    4. Start web page with java applet.
    Note: HTML page must use <object> tabs for Internet Explorer or <embed> tabs for any other browser (e.g. Firefox). You need to specify correct classid in object and/or embed tag.
    P.S. If anyone would like to discuss with me send me an e-mail to [email protected], but please post question to forum and just mail me a link to forum. I will write my answer to forum.
    Hope this helps,
    Grofaty

    I have been trying to find a solution for this issue at our organization for over 6 months. Finally, we have a work around to run multiple java versions for newer and aging java apps.
    Thanks,
    Adunlow

  • Version problem in DMS

    Hi All,
    In DMS
    When i create a document with bapi_document_create2 it is creating the document with what i have given the inputs
    documentnumber
    documenttype
    documentpart
    documentversion
    but version problem is there . Ex: if i give version as 03 but is creating the docuemnt with version from 01 . next if i give 10 as a version it is creating the document with version 02...like that..
    Please advice me .. i want to create the document with the version what iam giving.
    Regards,
    RSK

    Hi,
    Transaction Code: SE18
    Selecting the radio button "BADI name" and enter "DOCUMENT_NUMBER01" in the text box to right to see the definition.
    The method is: DOCVERSION_CHECK
    Hope this helps.
    Regards,
    Benu

  • Labview version problem?

    Hello guys,
    I have made a subVI that controls the rpm % of a wind tunnel vane. This consists in adquiring 2 values of data within 30 seconds and compare both to see the uniformity of the flux. I use a Labview 2011 version. The problem occurs when i use this subvi in a 2012 version. The 30 seconds turn to 1 minute... I want to ask if its possible for this to be a version problem.

    I'm concerned that you are reading a file and then reading it again 3 seconds later.  This tells me you are looking for when the other process stops writing data.  File IO is a terrible way to share data.  Use a Notifier or Queue instead.  Much more efficient.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • OCCI version problem

    Hi,
    I am having a version problem with 9i.
    How can i compile OCCI with 9i database installetion?
    Which library would i need?
    my server is a SOL-Sparc-64 machine
    and oracle database server is installed there versiion oracle 9i 32bit.
    I tried to compile but it gives me error like....
    Undefined first referenced
    symbol in file
    main /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/crt1.o
    __1cG__CrunKpure_error6F_v_ /data/Indranil/prasenjit/clientlib/libocci.so
    __1cDstdbC__RTTI__1nDstdMlength_error__ /data/Indranil/prasenjit/clientlib/libocci.so
    __1cDstdMout_of_range2T6M_v_ /data/Indranil/prasenjit/clientlib/libocci.so
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mpkc_r1_ /data/Indranil/prasenjit/clientlib/libocci.so
    __1cG__CrunIex_alloc6FI_pv_ /data/Indranil/prasenjit/clientlib/libocci.so
    __1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_ /data/Indranil/prasenjit/clientlib/libocci.so
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mrk1_r1_ /data/Indranil/prasenjit/clientlib/libocci.so
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6MpkcIrkn0C__v_ /data/Indranil/prasenjit/clientlib/libocci.so
    __1cH__rwstdRexcept_msg_string2t6MIE_v_ /data/Indranil/prasenjit/clientlib/libocci.so
    Please tell me how to do it.
    Edited by: user652233 on Oct 16, 2008 1:18 AM

    Hello,
    I am trying to compile my C++ code (using OCCI) on Sun Solaris 5.9 (SPARC64PLUS) environment.
    We have compiled and tested it on RHEL 5 Linux.
    The Oracle (10g R3) database is on RHEL 5 server while OCCI/C++ application would be running on Sun Solaris 5.9 server.
    Since we have no Oracle installation on the Sun Solaris 5.9 server, there are no OCCI related libraries on this server and hence we are not able to compile our C++ code on Sun Solaris 5.9
    Can someone help me on how/where to download OCCI libraries (compile time as well as run time) for Solaris 5.9 ? I could find only Windows and RHEL versions of OCCI libraries on the Oracle website.
    Also, how stable is OCCI on Solaris 5.9 ?
    Regards,

  • Trial version problem with the wrie Create with the trial version

    help me
    trial version problem with the write Create with the trial version
    i wanna delete the Create with the trail version

    Publication on businCata I am sorry I do not understand your inquiry.  Can you please restate your question?  What Adobe software or service is your inquiry in relation too?

  • Service pack versioning problem

    Can anyone help me solve service pack versioning problem please. This
    problem may solve some of my other problems.
    I am trying to check if my service pack has been installed properly or not.
    I issue following command from command prompt:
    C:\>java weblogic.Admin t3://localhost:7001 VERSION
    I get the following error: "Failed to connect to t3://localhost:7001 due to:
    [java.net.ConnectException: No server found at T3://localhost:7001]"
    At this time, I have weblogic 5.1 installed with service pack 2 installed.
    If I run server seems to be running, and connecting to my
    database.Eventually I am planning to upgrade to SP6 and run with jdk1.3.
    2nd problem: When I make JAVA_HOME= JDK1.3, wls does not run.

    Thanks Mike, you are right. The server was not running while I was testing
    service pack test.
    And service pack is installed. Thanks
    WLAS5.1 does not run once I change JAVA_HOME TO "C:\jdk1.3.0_02", that
    where I have jdk1.3
    I get following error message:"wlserver.exe has generated error and will be
    closed by windows. You will need to restart the program."
    John
    "Mike Reiche" <[email protected]> wrote in message
    news:3ac8fe17$[email protected]..
    >
    1) You WLAS does not seem to be listening on port 7001 of your
    localhost. Is it listening on a different port? Running on a
    different machine?
    2) What error message do you get when trying to run WLAS with
    JDK 1.3? WLAS does definitely run with JDK 1.3
    Mike Reiche
    "John" <[email protected]> wrote:
    Can anyone help me solve service pack versioning problem please. This
    problem may solve some of my other problems.
    I am trying to check if my service pack has been installed properly or
    not.
    I issue following command from command prompt:
    C:\>java weblogic.Admin t3://localhost:7001 VERSION
    I get the following error: "Failed to connect to t3://localhost:7001
    due to:
    [java.net.ConnectException: No server found at T3://localhost:7001]"
    At this time, I have weblogic 5.1 installed with service pack 2
    installed.
    If I run server seems to be running, and connecting to my
    database.Eventually I am planning to upgrade to SP6 and run with jdk1.3.
    2nd problem: When I make JAVA_HOME= JDK1.3, wls does not run.

  • Jsf version-please help

    how can i understand my jsf version. am using Sun RI Implementation using Studo creator
    thanks

    Unpack the jsf-api.jar and/or jsf-impl.jar and read the manifest file.

  • MAC OS/X JSF "hang" problem in 10.1.3 preview

    I'm experiencing some really odd delays in JDev 10.1.3 on my Mac:
    Machine Name:     PowerBook G4 15"
    Machine Model:     PowerBook5,6
    CPU Type:     PowerPC G4 (1.2)
    Number Of CPUs:     1
    CPU Speed:     1.5 GHz
    L2 Cache (per CPU):     512 KB
    Memory:     1 GB
    Bus Speed:     167 MHz
    Boot ROM Version:     4.9.1f1
    State:     Enabled
    Version:     1.0
    System Version:     Mac OS X 10.4.2 (8C46)
    Kernel Version:     Darwin 8.2.0
    The problem only seems to occur with JSF projects. When I switch from a JSF-JSP document "code" tab to a "design" tab in a project, it takes 60+ seconds... always. The entire IDE freezes up at this point.
    I've also noticed the following start-up errors in JDev:
    /Users/rhayes/jdevhome/lib/ext/junit_addin.jar!/meta-inf/jdev-ext.xml
    Converting JDeveloper 10.1.2 extension manifest to 10.1.3
    /Users/rhayes/jdevhome/lib/ext/bc4j_junit_addin.jar!/meta-inf/jdev-ext.xml
    Converting JDeveloper 10.1.2 extension manifest to 10.1.3
    /Users/rhayes/jdevhome/lib/ext/jalopy-jdeveloper-1.1.4.jar!/META-INF/jdev-ext.xml
    Error: <Line 3, Column 21>: XML-24534: (Error) Element 'feature' not expected.
    Error: <Line 11, Column 14>: XML-24521: (Error) Element not completed: 'extensions'
    I have JDev 10.1.2 and 10.1.3 installed on the same Mac with different ".app" extensions. Is this a problem?
    I'm running 10.1.3 on WinXP Pro and I don't notice any of these problems...

    Doing what you mentioned improves the speed by about 50%.
    However, the JSF form then becomes a little more difficult to work with.
    Thanks.

  • JSF rendering problem in IE

    Hi,
    I am having a problem with the following JSF page:
    <f:view>
    <afh:html binding="#{backing_add_Sponsor.html1}" id="html1">
    <afh:body binding="#{backing_add_Sponsor.body1}" id="body1">
    <h:form binding="#{backing_add_Sponsor.form1}" id="form1">
    <af:panelPage title="Add - Sponsor"
    binding="#{backing_add_Sponsor.panelPage1}"
    id="panelPage1">
    <af:message binding="#{backing_add_Sponsor.message1}" id="message1"/>
    <h:panelGrid columns="3" binding="#{backing_add_Sponsor.panelGrid1}"
    id="panelGrid1">
    <af:outputText value="Sponsor Name"
    binding="#{backing_add_Sponsor.outputText2}"
    id="outputText2" inlineStyle="font-size:small;"/>
    <h:inputText binding="#{backing_add_Sponsor.inputText1}"
    id="inputText1" size="30" tabindex="1"/>
    <af:outputText value="Sponsor Address 1"
    binding="#{backing_add_Sponsor.outputText3}"
    id="outputText3" inlineStyle="font-size:small;"/>
    <h:inputText binding="#{backing_add_Sponsor.inputText2}"
    id="inputText2" size="30" tabindex="2"
    style="background-color:transparent;"/>
    Problem is that some fields in this form are displayed differently in Internet Explorer and Firefox. In IE some of them have yellow background, that disappears during the page refresh and is displayed again after the page is refreshed. For example, the "Sponsor Name" field has no background color, while "Sponsor Address 1" has. In Firefox all the fields are correctly displayed without the background color.
    Did anyone have similar problem?
    Thank you,
    Zrinka

    Hi,
    which version of IE do you use. If this occurs in IE7, please check with IE6. Also, make sure there is no browser setting causing this issue. Different behavior in color usually doesn't point to a rendering but a browser problem
    Frank

  • TinyMCE / Mojarra Scales HtmlEditor +  JSF RI problems

    I am trying to add a Rich Text editor on my project, so far I've tried TinyMCE and Mojarra Scales HtmlEditor without complete success, both are being rendered but after that I have the following problems:
    TinyMCE:
    Is being displayed but when I click on the "Save" button to execute the action and go to the following page the tinyMCE editor on the second page is not being rendered, and if click on the "Back" button to go back to the first page then the tinyMCE editor on that page is not being rendered anymore.
    MojarraScales"
    The component is being rendered but when I click on the "Save" button to go to the next page all it does is reload the first page, so I'm not able to access the second page.
    Thanks in advance

    Hi Raymond, yes the "Save" button use to work with an ordinary textarea. I added the <h:messages/> tag and I'm not getting anything and Firebug is not reporting any error, here is the code on the first page:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
         xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:a4j="http://richfaces.org/a4j"
         xmlns:rich="http://richfaces.org/rich" version="2.0"
         xmlns:sc="http://java.sun.com/mojarra/scales">
         <ui:composition template="/templates/member_t.jspx">
              <f:loadBundle basename="resources/messages" var="msg" />
              <ui:define name="body">
                   <f:view contentType="text/html">
                   <head>
                        <sc:links />
                   </head>
                        <h:form id="descForm">
                             <h:panelGrid columns="1">
                                  <h:outputText value="#{msg.newCntTitle}" />
                                  <h:inputText size="68" />
                                  <h:outputText value="#{msg.newDescTitle}" />                              
                                  <sc:htmlEditor id="one" width="500px" height="300px" value="#{ArticleBean.description}" />   
                                  <h:panelGroup>
                                       <h:commandButton value="#{msg.newBtnBack}" disabled="true" />
                                       <h:commandButton value="#{msg.newBtnCont}"
                                            action="#{ArticleBean.saveNewArt}" />
                                  </h:panelGroup>
                             </h:panelGrid>
                        </h:form>     
    <h:messages/>          
                   </f:view>
              </ui:define>
         </ui:composition>
    </jsp:root>I followed the configuration on Mojarra's website, first I added this jsftemplating-base-1.2-SNAPSHOT.jar and the dependency to Maven, and then I added this code to my faces-config.xml
         <lifecycle>
              <phase-listener>
                   com.sun.jsftemplating.util.fileStreamer.FileStreamerPhaseListener
              </phase-listener>
         </lifecycle>If you have any suggestions please let me know

  • Facelets and jsf-extensions problem.

    I'm fairly certain I've run into a problem between facelets and jsf-extensions. I'm working with JSF 1.2 RI, Woodstock, Facelets 1.1.13, on Tomcat 6.
    When trying to get Woodstock autoValidation to work I get a javascript error the "I has no properties". The error occurs in the com_sun_faces_ajax.js file in the jsf-extensions-dynamic-faces-0.1.jar (I've used both the RC4 and a build today ,10/18/07 from source with the same results). Here is the code snippet where it happens (with my comment).
    var I = G.getElementsByTagName("components")[0];
    var C = I.getElementsByTagName("render");
    for(var F = 0; F < C.length; F++) {
    In the second line there it looks like the variable I is null, but based on the post response below I don't know why.
    The response from the post looks like this:
    <partial-response><components><render id="PayableForm:vendorGci"><markup><![CDATA[{"valid":true,"id":"PayableForm:vendorGci"}]]></markup></render></components>
    However the server side code (validation method) never gets executed. I'm willing to do some digging and debug work, but I'd need to be pointed in the right direction.
    The following is more potentially useful code snippets.
    Here is the textField code:
    <w:form id="PayableForm">
    <w:textField style="display:none;" />
    <w:message for="vendorGci" />
    <w:label id="vendorGciLabel" for="vendorGci" text="Vendor: " />
    <w:textField id="vendorGci" autoValidate="true"
    text="${vendorBean.searchGci}" maxlength="8" required="true"
    validatorExpression="#{ vendorBean.validateVendor}" />
    Here is the javascript in the page (the init function is called from the body: onLoad="setTimeout('init();', 0);" , this does happen):
    <w:script type="text/javascript">
    function VendorListener(){
    function VendorNotify(props){
    alert("VendorNotify called!"); <--------------- I never see this alert message
    if ( props.id != "PayableForm:vendorGci") { return; }
    var field = document.getElementById("PayableForm:vendorGciLabel");
    field.setProps({
    valid: props.valid
    VendorListener.prototype.notify = VendorNotify;
    function initAccountRows(){
    var table = document.getElementById("PayableForm:vendorAccountTable");
    table.initAllRows();
    function init(){
    initAccountRows();
    var listener = new VendorListener();
    dojo.subscribe(
    webui.suntheme.widget.textField.event.validation.endTopic ,
    listener, listener.notify);
    Here is the validator method. It currently doesn't do anything, just trying to get something to work. I never see the output, and I never hit the breakpoint in the method.
    public void validateVendor(FacesContext context, UIComponent comp, Object value){
    System.out.println("**********************************");
    System.out.println("validateVendor called");
    System.out.println(value);
    System.out.println("**********************************");
    }

    Actually I don't need a global variable. I need to refer in my included template the actual backing bean used in the current page. As all my backing bean extends a abstract class I could bind my component to a property of the current backing bean, no matters which one. Just like a polymorphic call but without the parameter. Let's imagine I could get this object of the facesContext object I would be able to do:
    <rich:datascroller renderIfSinglePage="false" align="right" for="listagem" maxPages="12" fastStep="10"
    pageIndexVar="pageIndex" pagesVar="pages" stepControls="show" fastControls="hide" boundaryControls="show"
    inactiveStyleClass="paginacaoInativa" selectedStyleClass="paginacaoSelecionada"
    styleClass="paginacao" tableStyleClass="paginacaoTabela"
    binding="#{facesContext.currentBackingbean.formDataScroller}" id="paginacao">
    Instead of pass the backing bean to the ui:param of this template... Dou you get the point?

  • Oracle IDS Version problem (IDS is not compatible )

    Please address my technical query mentioned below.
    We are facing problems while porting/deploying our application on the Oracle 10g application server.
    The application server version is 10g R-2 (64bit)(10.1.2.0.2), the IDS version is 10g (9.0.4) and OS is HP-UX 11.23.
    Earlier when I tried doing the IDS installation, the pre-installation check failed saying that the OS is not supported, the supported OS version for IDS 10g-9.0.4 was HP-UX 11.00 & 11.11. I then bypassed the pre-installation check using the -sysPreRequisite option of the runInstaller same and the installation succeeded.
    The forms even got compiled but when I tried to execute the forms from the browser, it throws the error message number FRM-40011, which says that the form was created by an older version of the form builder.
    This was the problem we have been facing since the start even when we have done installtion on other site, and even though we had installed the application server and the IDS afresh, the same problem persists. The only thing I can conclude from the above is that the IDS is not compatible with the current version of the OS/Application server and we need to upgrade to IDS 10g so that it works on HP-UX 11.23, with Oracle Application Server 10g R-2(10.1.2.0.2).
    Kindly provide your technical support in the above matter and supply us the correct version of the Oracle 10g IDS.

    I can't even understand this reply; unless I can do it with one single click, it's not good for me! I have always been Firefox user but right now I regret updating to 5.0!

  • XMl parser version problem for running struts project in jdeveloper 10.1.3

    Dear All.
    I am trying to run a struts (v 1.2.9) based project in Jdeveloper 10.1.3.1.0.The struts version in Jdeveloper is 1.1.
    when i am trying to run the index.jsp i get an error:
    org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/dynamic
    I think the XML parser version is a problem.Jdeveloper has OracleXMLParser v2 and i think the XML Parser apis used in building the project is different.I have placedcustiom xml parser apis and the xerces.jar in the jdevbin/jdev/lib folder and included these jar in the bootclasspath as follows:
    AddVMOption -Xbootclasspath/p:../lib/xml-apis.jar
    AddVMOption -Xbootclasspath/p:../lib/xerces-2.6.2.jar
    But even then the Exception persists.Is the syntax for Xbootclasspath wrong or i need to place these custom api's in some other location of jdev.
    I am not being able to figure out the XMl parser problem.
    Any help wud be great.
    Is it that i cant run the project in jdeveloper.Just to mention the application is deployed in OC4J on the server and runs fine..But its only that i kant run it locally through jdeveloper

    I am also facing the same issue on my laptop. I searched for forum but no luck.
    appreciate if anybody can throw some light on this.

Maybe you are looking for

  • Formatting options in SAP

    i have a problem in displaying the formatting options available in the Standard text editor into the ABAP Report list. In the editor, i have text with bold and underline. So, these Bold and Underline are not displaying in the ABAP Report LISTS. Is th

  • Icons in DagaGrid Fields

    I'd like to know how can I put an icon instead of text in a DataGrid field. I saw it done in this application. The first column of every row can be marked with a heart icon. Here is a screenshot. I'd highly appreciate any help! Thanks!

  • IllegalArgumentException, getKeyCode

    Anyone know why I get an IllegalArgumentException from the following code in the constructor of an extended Canvas: prevMonthKey = getKeyCode(Canvas.KEY_NUM9); (I get IllegalArgumentException for all KEY_NUM{0-9} but Canvas.LEFT and Canvas.RIGHT work

  • Error message "Pro.sparsebundle" is already in use when trying to back up computer

    My computer will not back up to Time Capsule and gives me the Error Message  pro.sparsebundle is already in use - how do I reset so I can back up

  • Credit release time for a given sales document or delivery doc...

    Hello Experts, I need to get the credit release time of a given sales document or a delivery document. What table can I get this info? Thank you guys and take care!