facebook

JSF Referenced Bean not being used for var on jsf page

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #257263 Reply

    I have the following in my jsf page:

    <h:form id="projectForm">
                    <h:outputLabel for="projectName" value="Name">
                        <h:inputText required="true" value="#{projectForm.project.name}" />
                    </h:outputLabel>

    and in the faces-config.xml file:

    <referenced-bean>
            <referenced-bean-name>projectForm</referenced-bean-name>
            <referenced-bean-class>
                com.barrowsdevelopment.projectmanagement.ui.jsf.ProjectForm
            </referenced-bean-class>
    
        </referenced-bean>

    Which gives me the following warning:

    projectForm cannot be resolved

    When I use a managed bean declaration I have to add in the managed property name of the project and it works.
    A referenced bean doesn’t. Since I use Spring to configure my beans, I really don’t want to use managed beans declarations, I have to inject my business object classes and dao classes into the bean class.
    This is something I can live with, it’s only a warning, but it would be nice to see it work.

    *** Date: Mon Aug 21 11:01:48 MST 2006

    *** System properties:
    OS=Linux
    OS version=2.6.17-1.2157_FC5smp
    Java version=1.5.0_06

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.0 GA
    Build id: 20060805-5.0-GA

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.0.1 GA
    Build id: 20060810-5.0.1-GA

    Eclipse Platform

    Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
    Build id: M20060629-1905

    Eclipse Java Development Tools

    Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
    Build id: M20060629-1905

    Eclipse Project SDK

    Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
    Build id: M20060629-1905

    Eclipse RCP

    Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
    Build id: M20060629-1905

    Eclipse Plug-in Development Environment

    Version: 3.2.0.v20060609m——6zXJJzJzJq
    Build id: M20060629-1905

    Eclipse Graphical Editing Framework

    Version: 3.2.0.v20060626
    Build id: 20060627-0816

    Eclipse startup command=-os
    linux
    -ws
    gtk
    -arch
    x86
    -launcher
    /usr/local/eclipse3.2/eclipse
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    98b801c
    -product
    com.genuitec.myeclipse.product.ide
    -vm
    /usr/bin/java

    #257290 Reply

    Riyad Kalla
    Member

    I ran into the same problem locally trying to setup a universal message bundle in my faces-config file and reported it. I’ll add your comments to the bug, thanks for filing it.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JSF Referenced Bean not being used for var on jsf page

You must be logged in to post in the forum log in