Hi

I am using Spring and the bean is bound like this:
<bean id="test" class="org.kobit.ofam.gui.model.page.Test" scope="request"/>

I have to update the error I get, it is this:
Caused by: javax.faces.el.PropertyNotFoundException: /pages/test.xhtml
@11,43 value="#{aliasB.text}": Bean: java.lang.String, property: text
   at com.sun.facelets.el.LegacyValueBinding.getValue(
LegacyValueBinding.java:58)
   at javax.faces.component.UIOutput.getValue(UIOutput.java:80)
   at
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.getStringValue(
RendererUtils.java:223)

I haven't found the needed information from the wiki.

On 2/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

 Hi Laurentiu,

Please refer to the link at wiki page for usage of aliasBean.
http://wiki.apache.org/myfaces/AliasBean.

Mention the dataBean name to which property "test" is bound.(as in
faces-config.xml the managed bean name where your test bean property is
getting used).
When you want to ensure reusability of a bean.

<t:aliasBean alias="#{aliasB}" value="#{test}">
     <t:outputText value="#{aliasB.text}" />
</t:aliasBean>
Best Regards,
Pallavi

 ------------------------------
*From:* Laurentiu Trica [mailto:[EMAIL PROTECTED]
*Sent:* Tuesday, February 27, 2007 4:37 PM
*To:* MyFaces Discussion
*Subject:* Problems using <t:aliasBean

Hi

I have to use the aliasBean for my page and I get this error:
Caused by: javax.faces.el.PropertyNotFoundException: /pages/test.xhtml
@11,46 value="#{aliasB['text']}": Bean: java.lang.String, property: text
    at com.sun.facelets.el.LegacyValueBinding.getValue(
LegacyValueBinding.java:58)
    at javax.faces.component.UIOutput.getValue(UIOutput.java:80)
    at
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.getStringValue(
RendererUtils.java:223)

The page code is this:
<t:aliasBean alias="#{aliasB}" value="#{test}">
     <t:outputText value="#{aliasB.text}" />
</t:aliasBean>

The backing bean code is:
public class Test {
    private String text = "TEXT";

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}

Can anybody help?

--
Best regards,
Laurentiu

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s) and
may contain proprietary, confidential or privileged information. If you are
not the intended recipient, you should not disseminate, distribute or copy
this e-mail. Please notify the sender immediately and destroy all copies of
this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com




--
Best regards,
Laurentiu

Reply via email to