Julian Ray wrote:
Try

<h:outputText value="#{Welcome authedUser.firstName}"/>

-----Original Message-----
From: Troy Bull [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 3:07 PM
To: users@myfaces.apache.org
Subject: Something Simple

Greetings:

I have an attribute in a backing bean and I want to display it in a jsp
"inline".  I tried to use OutputText and it doesn't seem to work correctly.

Here is what I want to do:

<f:verbatim>
<h2>Welcome #{authedUser.firstName}</h2> </f:verbatim>

This doesn't work.  So I tried

<f:verbatim>
<h2>Welcome             <af:outputText value="#{authedUser.firstName}"
                            binding="#{backing_mainMenu.outputText1}"
                            id="outputText1"/></h2> </f:verbatim>

This doesnt work either.  The first one prints out the #{authedUs..., the
second one prints out the firstName but "outside" the h2 tag.

Thanks
troy

Hello,

I use

<h:outputText value="Welcome #{authedUser.firstName}" />

and it works fine.

Best regards

Ondrej Svetlik

Reply via email to