If I create an alias for an attribute of the bean, it is working.
For example, this is working:
<t:aliasBean alias="#{aliasB}" value="#{test.text}">
<t:outputText value="#{aliasB}" />
</t:aliasBean>
This doesn't work:
<t:aliasBean alias="#{aliasB}" value="#{test}">
<t:outputText value="#{aliasB.text}" />
</t:aliasBean>
Anyone has any idea why this is happening?
The error is still the same:
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)
On 2/27/07, Laurentiu Trica <[EMAIL PROTECTED]> wrote:
Yes, it is working...
On 2/27/07, Volker Weber <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> is <t:outputText value="#{test.text}" /> working?
>
>
>
> 2007/2/27, Laurentiu Trica <[EMAIL PROTECTED]>:
> > 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
>
--
Best regards,
Laurentiu
--
Best regards,
Laurentiu
www.codebeat.ro