JSF Beginner

Hello,
I am new JSF. When I compiles the application which has almost the correct settings, i have come across the error
"Error(8): Unable to instantiate tag: h:form (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 am using JDeveloper IDE.
What can be done to avoid this?

I have the same problem now as the person who posted this a good 2 years back - and its amazing that there really isnt a solution that i have come across so far. It shows that JSF is still maturing.
The funny thing is that MyEclipse is able to compile and run the same code on Tomcat just fine - its when i try to move the code to JDeveloper or try to use Oracle Application Server that i get these problems. On top of the fact that i cannot even use standard JSF tags, i am trying to using RichFaces 3.1 - all this works perfectly in MyEclipse/Tomcat.
As a little experiment, i tried exporting the web application from MyEclipse as a WAR file and tried deploying it on OC4j - the RichFaces content was rendered but all the rich styles provided were gone ! - no more scrollbars, tabbed panes etc from RichFaces - but I could view them while running on the Tomcat container.
If all these JSF implementations are going to be dependent on the IDEs/Containers etc, i think the J from JSF needs to be removed.
If any one on this forum has been successful in using JSF, RichFaces on OC4J/JDeveloper you will be doing a huge favor by letting other developers know how the heck you managed to get all this working !

Similar Messages

  • JSF Beginner's Guide

    Looking for JSF 1.2 tutorial
    http://jsflessons.blogspot.com

    really nice work actually. But why do you use the outdated JSPs in stead of facelets?

  • JSF beginner needs help

    Hello,
    I am experimenting with JSF and I tried to run the guessNumber sample application. I would like to add some functionality to that application by saving to database the number entered in the form provided it matches duke's random number.
    It appears that whatever is filled in the form, the same code is executed in the ApplicationHandler class.
    Therefore I don't know where to insert the code that saves the number to database.
    Can somebody help?
    Thanks in advance,
    Julien.

    Thanks for your response vaidhykumar,
    My java class is actually a bit more complicated than the sample user number bean as it has several fields to be persisted/saved to database. (I am posting this new message as I don't want to make any mistake.) How would you save a userNumberBean with, say, three member variables (instead of the one member variable of the sample) with matching fields in the database?
    Balteo.

  • Building the site structure for a dynamic website with JSF

    Hi,
    I am still a JSF-beginner.
    I try to build a fully-functional base-demo-application with a fix and a dynamic part.
    Fix part for menu, dynamic part for site-content.
    At the moment, the JSF-hyperlinks of the main menu work, but any JSF-parts in the included documents of the dynamic part are not shown. I guess, this is dued to inclusion of subviews, but I cannot find any similar examples in the web to come one step further.
    Here my complete demo:
    faces-config.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>site1</from-outcome>
    <to-view-id>/site1.jsp</to-view-id>
    <redirect>
    </redirect>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>site2</from-outcome>
    <to-view-id>/site2.jsp</to-view-id>
    <redirect>
    </redirect>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.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/web-app_2_4.xsd">
    <context-param>
    <param-name>com.sun.faces.verifyObjects</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>com.sun.faces.validateXml</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <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>
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
         <welcome-file>
    index.jsp
    </welcome-file>
    </welcome-file-list>
    </web-app>
    index.jsp:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <% response.sendRedirect("/jsfportal/site1.jsf"); %>
    site1.jsp:
    <?xml version="1.0" encoding="UTF-8" ?>
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <% String site = "1"; %>
    <%@ include file="base.jsp" %>
    dynamic_site1.jsp:
    <h1>Welcome to site 1</h1>
    Have fun visiting our portal
    site2.jsp:
    <?xml version="1.0" encoding="UTF-8" ?>
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <% String site = "2"; %>
    <%@ include file="base.jsp" %>
    dynamic_site2.jsp:
    <h1>Welcome to site 2</h2>
    Go to site 1: *<!-- And this is the JSF-link that is NOT shown: -->*
    <f:view>
    <h:form>
    <h:panelGrid border="0" columns="0">
    <h:commandLink id="p1" action="site1" value="Site 1" />
    </h:panelGrid>
    </h:form>
    </f:view>
    base.jsp:
    <%@ page language="java" %>
    <%@ page import = "java.io.*" %>
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%
    String title = "";
    int siteInteger = 0;
    String dynamic_site = "";
    if ( site != null )
    if (
    ( site.length ( ) > 0 )
    ( site.length ( ) <= 30 )
    if ( isNumeric ( site ) )
    siteInteger = Integer.valueOf ( site ).intValue ( );
    switch ( siteInteger )
    case 2: title = "Site 2";
    dynamic_site = "dynamic_site2.jsp";
    break;
    default:
    title = "Site 1";
    dynamic_site = "dynamic_site1.jsp"; // Start page
    %>
    <html xmlns="http://www.w3.org/1999/xhtml"
    lang="de" xml:lang="de">
    <head>
    <title>
    <%= title %>
    </title>
    <meta name="description" content="test site" />
    <meta name="keywords" content="test site" />
    </head>
    <body>
    <div width="100%" style="text-align:left">
    <table width="970" border="0" cellspacing="0" cellpadding="0" style="background-color:#ffffaa;margin-top:25px;">
    *<!-- this is not good style putting CSS directly into HTML but it is a demo now ;) -->*
    <colgroup>
    <col width="970" />
    </colgroup>
    <tr>
    <td valign="top" align="left" style="padding:25px;">
    +<h1>+
    JSF portal
    +</h1>+
    </td>
    </tr>
    </table>
    <table width="970" border="2" cellspacing="0" cellpadding="0" style="background-color:#f5f5f0">
    <colgroup>
    <col width="270" />
    <col width="700" />
    </colgroup>
    <tr>
    <td valign="top" align="left" style="padding:25px; padding-left:40px;padding-bottom:320px;">
    <f:view>
    <h:form>
    <h:panelGrid border="0" columns="0">
    <h:commandLink id="p1" action="site1" value="Site 1" />
    <h:commandLink id="p2" action="site2" value="Site 2" />
    </h:panelGrid>
    </h:form>
    </f:view>
    </td>
    <td valign="top" align="justify" class="haupttext" style="padding:24px;">
    <p align="justify">
    <f:subview id="subview1">
    <jsp:include page="<%= dynamic_site %>" flush="true">
    <jsp:param name="" value="" />
    </jsp:include>
    </f:subview>
    </p>
    </td>
    </tr>
    </table>
    </div>
    </body>
    </html>
    <%!
    public boolean isNumeric ( String myInput )
    if (myInput == null || myInput.length() < 1)
    return false;
    int start = 0;
    if (myInput.charAt(0) == '-')
    start = 1;
    for(int i = start; i < myInput.length(); i++)
    if (!Character.isDigit(myInput.charAt(i)))
    return false;
    return true;
    %>
    Who can name me that code positions responsible for that the JSF link in the dynamic part is not shown?
    It is not that it does not work it is not shown. The JSF tree seems to be cut because of wrong use of view and subview etc.
    (To put view tags in site1.jsp and site2.jsp does not help.)
    (Once having afforded an example it should go... (*Then* with JSTL, external CSS, etc. ;) )
    Dynamical site structure with include files is the big problem at the moment.)
    bye, Maik

    I found your following suggestions for such cases (seems you are the only profound JSF freak in the world...? :-) )
    Switch between subviews in one main page
    http://balusc.blogspot.com/2007/01/dynamic-jsf-subviews.html
    But the main problem for me is that I never find complete examples, but always fragments and it would be important for a beginner to have at least once a complete JSF example over a few subviews, especially here where it is very easy to corrupt the internal tree.
    (Some examples use the subview tags in the calling JSP, some in the called e.g.... Does not matter where to put it? Some use verbatim tags for HTML code outside JSF, some don't... and so on)
    Can anyone give me an URL for a complete example of a JSF site (with all files as possible, I am not very patient, too, but in this case it makes sense to have it entire ;-) ) with dynamic switches of subviews as preferentially used for bigger portal sites?

  • CommandButton tag will not display

    Hello, I'm a jsf beginner and have just tried deploying and viewing my first jsp .xhtml page (using netbeans). I am trying to display a simple command button, but for some reason, it does not get displayed in my browser -- I get a blank page. Obviously, I'm doing something wrong. Any help would be appreciated. The markup is as follows:
    <?xml version='1.0' encoding='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:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core">
        <h:head>
            <title>Facelet Title</title>
            <link href="bradcss.css" rel="stylesheet" type="text/css"/>
        </h:head>
        <h:body>
            <f:view>
                <h:form>
                    <h:commandButton value="Submit" action="response"/>
                </h:form>
            </f:view>
        </h:body>
    </html>

    How do you have the Faces Servelt mapped in your web.xml? What URL are you using to access the page? Where exactly is the page in the WAR? What do you get when you view the source of the page?

  • Javax.el.ValueExpression

    Hi all,
    I am new JSF beginner, I am using J2EE1.4 for compile my class which rejected as javax.el.ValueExpression.class not found. So where can I download the javax.el package and still using J2EE1.4 version for my container / other container.
    Thanks a lot.

    javax.el.ValueExpression is part of JSF 1.2 and so it's in EE 5. You need to move to JSF 1.2 which can be done by using Glassfish version 9.
    Tomcat does not support JSF 1.2 yet as far as I know.

  • Setting global component defaults / Inheritance of components

    Hi all,
    I'm a JSF beginner, working with VWP & Netbeans. I got two questions :
    1) What is the best way to set �n application wide default value for a specific component property? (eg, setting the row-property for all rowgroup components to 5)
    2) Is it possible (and good practice) to implement an inherited component (from sun.ui.components) ? (I want to overwrite/extend some of the base functionality of the vwp-components. Do i have to implement an inherited class or can i use some kind of callbacksfor this?).
    Thanks for any help!

    Hi, I suppose you should use b1.setBounds() rather than setLocation()
    Regards,
    /Michael

  • Beginner's JSF problems

    Hi - I'm a beginner at using JSF. I've worked with Java and Struts, and I'm comfortable with Netbeans. I'm working through some example code from one of the JSF books and I'm having the following problems:
    1) The following code simply doesn't work...
    <h:commandLink action="logout">
    <h:graphicImage url="images/logout.gif"
    styleClass="header-icon"
    alt="Logout" />
    <h:outputText value="Logout" styleClass="header-command" />
    </h:commandLink>
    This code should load the 'logout' JSP page. The navigation is set correctly.
    I replaced this code with the following line, and it does exactly what I want - load the JSP page:
    <h:commandButton title="Logout" value="Logout" action="logout"/>
    What have I done wrong with the command link? The page prints the link, and it looks like it can be selected (when the mouse moves over it) but it won't go to the logout page...
    2) I added a button, which I want to gray out based on a value in the 'User' javabean. This works (arbitrarily):
    <h:commandButton title="Admin" value="Admin"
    action="admin" disabled="false" />
    But this doesn't:
    <h:commandButton id="cmd_Admin" title="Admin" value="Admin" acti
    on="admin" disabled="#{user.admin}" />
    The 'user' variable maps to a bean class named 'User'. The routine
    "public boolean user.isAdmin() " gets called, and logs a message that it is about to return a value of 'false'. But the button is not grayed out, and in fact the generated HTML code does not have a 'disabled' entry. I'm obviously not getting the right information back from the bean - or I'm calling the wrong routine entirely... What should I be doing in this case?
    Thanks in advance.
    nbc

    Your command button should have an "action" parameter
    that points to a method in the backing bean. No .. This is not the problem .. The action="#{myBean.action}" where action() returns a String will just be expressed to action="returnedString" and then the navigationhandler will pick up the String value to handle navigation.
    And now the real problem with commandLink: such a construction just works here. Probably you've made a typo somewhere else? Which JSF version are you using? Ive tested it at 1.1_02 and 1.2_02. The basic example i've used looks like:
    test.jsp<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <f:view>
        <html>
        <head>
        </head>
        <body>
        <h:form>
            <h:commandLink action="logout">
                <h:graphicImage url="logout.gif" />
                <h:outputText value="logout" />
            </h:commandLink>
        </h:form>
        </body>
        </html>
    </f:view>logout.jsp<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <f:view>
        <html>
        <head>
        </head>
        <body>
            <h:outputText value="You're logged out." />
        </body>
        </html>
    </f:view>faces-config.xml navigation:<navigation-rule>
        <navigation-case>
            <from-outcome>logout</from-outcome>
            <to-view-id>logout.jsf</to-view-id>
        </navigation-case>
    </navigation-rule>And now the problem with EL in the disabled attribute: this also just works here.
    JSF<h:form>
        <h:commandButton value="action" action="#{myBean.action}" disabled="#{myBean.disabled}" />
    </h:form>MyBeanpublic void action() {
        System.out.println("action");
    public boolean isDisabled() {
        return true;
    // this also works
    public Boolean getDisabled() {
        // null or Boolean.FALSE will be handled as false and Boolean.TRUE will be handled as true
    }Probably you're doing something wrong again?

  • How can I test a JSF application?

    Hi all,
    I'm beginner in JSF applications.
    I'd like to know how could I to do a little project using JSF.
    Does anyone send me a link with that steps?
    So, for example, I tried this: http://myfaces.apache.org/risamples.html
    But it does not run!
    I got this error: "HTTP Status 503 - Servlet Faces Servlet is currently unavailable"
    I'd like to config an application with:
    - myfaces-tobago
    - or tomahawk
    But I don't know where I must to place each jar files in order to the application can work fine. That is the big issue:
    Where MUST I to place EACH jar file in order to application does not complain!
    is there any template with a bit project pre-configured?
    I will be very pleased with any help!
    Regards!
    PS:
    I'm using:
    - Eclipse with Exadel plugin
    - Tomcat Tomcat 5.5
    - Windows

    Hi!
    I solved that problems!
    Related the JSF, It was about the correct <managed-property> .
    Now would be only about the following:
    - myfaces-tobago
    - or tomahawk
    thanks anyway

  • Inserting values into multiple tables in one jsf page with single commit op

    hi all,
    i have two tables ,
    one is parent table and other is child record.
    record details:
    table1:(parent table)
    emplid (primary key)
    empl_name
    table 2:(child table)
    empl id ( Foreign key)
    empl_name ( Foreign key)
    contact_no (primary key)
    my senario is , i need insert values into both parent and child table in one save option.
    and both the tables will be in one jsf page.
    is this possible to do?
    thanks all,
    regards,
    M vijayalakshmi

    hi,
    i feel my question is not clear.
    let me explain my question clearly.
    1. i have two records
    *1. emp_names*
    attributes of this table is 1.emplid
    2.emp_name.
    emplid is a primary key.
    2. emp_contact
    attributes of this table is 1.emplid
    2. contact_no
    In this table emplid is forigen key from emp_name table
    contact_no is primary key.
    and my senerio is,
    for one emplid there are many contact no.
    in database diagram i have created these two entities. and from that i have generated two views objects.
    now in jsf page ,
    i shd have all fields from both the records.
    wn ever i click on add button , i shd be able to insert one complete row of data to both the tables.
    means,
    emplid
    empl_name
    contact_no.
    and if i click on commit button data shd be insert in both the tables.
    so how to achive this?
    am very beginner to the jdeveloper tool.
    regards,
    m vijayalakshmi.

  • Beginners question : http 500 error when starting my first jsf-app

    i�ve just read a book about jsf, and now i�ve tried my first own jsf-app, but it seems that i have some kind of configuration problems with my tomcat, but have a look for yourself :
    after deploying my app out of eclipse with ant without any errors, i get the following screen in my firefox when i try to get to the first jsf page :
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Exception in JSP: /pages/start.jsp:13
    10: <link rel="stylesheet" type="text/css" href="basic.css">
    11: </head>
    12: <body>
    13: <f:view>
    14:      <h:form>
    15:           <h:commandButton action="#{naviHandler.startButton1}" value="Seite Eins" />
    16:           <h:commandButton action="#{naviHandler.startButton2}" value="Seite Zwei" />
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
         javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929)
         javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
         org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:70)
         org.apache.jsp.pages.start_jsp._jspx_meth_f_view_0(start_jsp.java:93)
         org.apache.jsp.pages.start_jsp._jspService(start_jsp.java:68)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
    it says that i have a problem in the line where the first jsf-tag appears : <f:fiew> , but i don�t get it what should be wrong with this?!
    i think theres a kind of config problem with my tomcat or something else, but i dont know where to look after it, the book i�ve read didn�t say much about those things, unfortunately..
    anyone out here who can help me?
    thanks in advance,
    stefan

    ok, i use :
    tomcat 5.5
    myfaces 1.1.4
    jre 1.5.0_09
    anything more you need? as i said in the topic, i�m a real beginner with this..
    and one more thing that i don�t understand :
    all example applications that come with the book that i�ve read are working perfectly with this configuration, but when i try to start my own app i get this error. quite strange for me..
    Message was edited by:
    elliptic

  • How to make Javascript access standard JSF component

    Hello all,
    I'm in need of a proper javascript code that access standard jsf component.
    Like we do for html tags;
    if( el.tagName.toLowerCase() != 'select')
    I need to do the same thing for a jsf tag i.e; <h:selectOneMenu>. How to make javascript access <h:selectOneMenu> like it does with <select> tag ? Please let me know asap. Extremely sorry if the question is kind of stupid....cause I'm a beginner for JSF environment.
    Any sort of help, suggestion or advice would highly be appreciated.
    Thanks in advance.

    Ummmm, I may be off the beaten path, but by the time your javascript is called the h:selectOneMenu would be a select tag within the dom. You should be able to reference that tag as you normally would.

  • Need info for Beginner in ADF Faces

    Hie,,,
    I am a total beginner in ADF and have even no background with JSF.
    So, could anybody please point me to some resources talking about managed bean and all...
    vik

    I've published a dummies guide to JSF here
    http://groundside.com/blog/GrantRonald.php?title=introducing_java_server_faces_to_4gl_dev&more=1&c=1&tb=1&pb=1
    might help you a bit.
    Regards
    Grant

  • How to access/identify components in JSF Declarative Components?

    Hi,
    I am beginner on ADF. Trying to build first Declarative Components.
    Use Case is as follows -
    I have put 2 InputTexts in Declarative Component.
    Want to set some value in second InputText (txtAddressLine2) in Validator/ValueChangeListner method of first InputText(txtAddressLine2).
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <af:componentDef var="attrs" componentVar="component">
    <af:xmlContent>
    <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
    <display-name>Test</display-name>
    <attribute>
    <attribute-name>
    AddressLine2
    </attribute-name>
    <attribute-class>
    java.lang.String
    </attribute-class>
    </attribute>
    <component-extension>
    <component-tag-namespace>Address3</component-tag-namespace>
    <component-taglib-uri>/Address3</component-taglib-uri>
    </component-extension>
    </component>
    </af:xmlContent>
    <af:inputText label="Address Line 1"
    binding="#{backing_Address3.txtAddressLine1}"
    id="txtAddressLine1"
    validator="#{backing_Address3.txtAddressLine1_validator}"
    autoSubmit="true" immediate="true" rendered="true"
    valueChangeListener="#{backing_Address3.txtAddressLine1_valueChangeListener}"/>
    <af:inputText label="Address Line 2" binding="#{backing_Address3.txtAddressLine2}"
    id="txtAddressLine2"
    validator="#{backing_Address3.txtAddressLine2_validator}"
    autoSubmit="true" immediate="true"/>
    </af:componentDef>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_Address3-->
    </jsp:root>
    This is sample I am working on.
    I am trying following approaches in bean of Component itself.
    Approach I: This does not give any error, value is not set in txtAddressLine2
    this.getTxtAddressLine2().setValue("Some Value");
    Approach II: Not able to access txtAddressLine2 using findComponent() method
    UIViewRoot uiViewRoot = facesContext.getViewRoot();
    RichInputText inputText;
    inputText = null;
    if (uiViewRoot.findComponent("txtAddressLine2") != null) {
    System.out.println("Found ");
    inputText = (RichInputText)uiViewRoot.findComponent("txtAddressLine2");
    inputText.setValue("my value");
    } else {
    System.out.println("Not Found "); //Always not found
    Can anybody tell me correct way to access components and set their values inside Declarative Components itself?

    Thanks buddies....its resolved!
    This is how I have done it -
    Components have these 2 Input Texts :
    <af:inputText label="Label 1" id="txt1" autoSubmit="true" immediate="true"
    binding="#{DC2.txt1}" validator="#{DC2.txt1_validator}"/>
    <af:inputText label="Label 2" binding="#{DC2.txt2}" id="txt2"
    immediate="true" autoSubmit="true" partialTriggers="txt1"/>
    Code in Component Bean setting value is as follows:
    RichInputText txt22;
    txt22 = getTxt2();
    txt22.setSubmittedValue("Some Value");

  • UIX or JSF

    Hi,
    I know pretty little of Java so forgive me if this should turn out to be a beginner question.
    Could some one please shed some light on the difference between UIX and JSF? I am just starting to make my own "Pet Shop" application and was wondering if I should be implementing it with UIX or JSF prerelease?
    JSF seems to have pretty many controlls and it is a standard. On the other hand UIX is heres since over a year or two, it should be more stable. Is Oracle going to support both on the long run? If yes then why and when should I use UIX and when JSF? If no, then will there be an automatic migration utility or I better start using right away the JSF contolls? As far as I know the event handling of UIX and JSF is different so why learn both?
    Every help is highly appreciated.
    Regards,
    Tamas Szecsy

    Well start by reading the UIX roadmap document:
    http://www.oracle.com/technology/products/jdev/collateral/papers/9.0.5.0/adfuix_roadmap/adfuix_roadmap.html
    Then consider your options - UIX actually has more components today than JSF, it has a visual editor in JDeveloper and it has databinding.
    JSF is still new, you can use it in JDeveloper but you'll be missing the visual editing and drag and drop data binding right now. ADF Faces adds many of the components that UIX has to JSF. And future versions of JDeveloper will have visual editing and databinding for JSF also.
    More on JSF in JDeveloper today here:
    http://www.oracle.com/technology/products/jdev/jsf.html
    The next issue of the Oracle Java Newsletter has more on JSF so register now to make sure you'll get it:
    http://www.oracle.com/go/?&Src=1952635&Act=34

Maybe you are looking for

  • No keyboard sound after 3.1 update

    ever since i downloaded the 3.1 update anytime i type something there is no keyboard click sound. i checked in my sound settings, and its on i hear the click when i switch it off then back on but still no sound while i'm typing. any ideas how to fix

  • How to pass Multivalue parameters from main report to the subreport to a database stored procedure

    I am having a Main Report, where the user selects the parameters, and calls the subreport which in turn calls the stored proc which updates the report parameters table, which will be used by all the other sub reports to filter data on. It works fine

  • Loaing huge amount of records every secons

    Hi 11g Version. I have a source file locating in unix file system. Every SECOND about 5,000 records are APPENDED to this logfile. I need to load those new records , as fast as possible to real time, into the database. The source of the file is writte

  • CORBA Errors

    I am new to CORBA Programming. Are the below errors very common errors occur due to some misunderstanding on Java ORB & CORBA Programming? ERROR: org.omg.CORBA.MARSHAL: minor code:0 complete: Maybe org.omg.CORBA.MARSHAL: minor code:0 complete: Maybe

  • A way to view ALL of a genre without using "Browse"?

    I would love to be able to view all of a genre of movie without having to use the Browse feature, but I can't find an option. The problem I have with Browse is it doesn't show you art for the titles, and sometimes I need the art to help recognise the