You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ratnakar Parakala <ra...@yahoo.com> on 2004/10/20 18:33:16 UTC
Scriptlets in JSF tag attribute
Hi,
Anyone used scriptlets in JSF tag attributes? For ex: <h:graphicImage url="<%= imageRoot%>/gifs/login.gif" />. When I tried, I'm getting compilation error stating that "expressions cannot be used in tag attribute". Pl help.
Thanx
Ratnakar
---------------------------------
Do you Yahoo!?
Yahoo! Mail � CNET Editors' Choice 2004. Tell them what you think. a
Re: Scriptlets in JSF tag attribute
Posted by Ratnakar Parakala <ra...@yahoo.com>.
Tried. Getting compilation error...
Hubert Rabago <hr...@gmail.com> wrote:Try
" />
On Wed, 20 Oct 2004 09:33:16 -0700 (PDT), Ratnakar Parakala
wrote:
> Hi,
>
> Anyone used scriptlets in JSF tag attributes? For ex: /gifs/login.gif">. When I tried, I'm getting compilation error stating that "expressions cannot be used in tag attribute". Pl help.
>
> Thanx
> Ratnakar
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail – CNET Editors' Choice 2004. Tell them what you think. a
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: Scriptlets in JSF tag attribute
Posted by Hubert Rabago <hr...@gmail.com>.
Try
<h:graphicImage url="<%= imageRoot + "/gifs/login.gif" %>" />
On Wed, 20 Oct 2004 09:33:16 -0700 (PDT), Ratnakar Parakala
<ra...@yahoo.com> wrote:
> Hi,
>
> Anyone used scriptlets in JSF tag attributes? For ex: <h:graphicImage url="<%= imageRoot%>/gifs/login.gif" />. When I tried, I'm getting compilation error stating that "expressions cannot be used in tag attribute". Pl help.
>
> Thanx
> Ratnakar
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail – CNET Editors' Choice 2004. Tell them what you think. a
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Scriptlets in JSF tag attribute
Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
it is not possible, only JSF expressions
(e.g. #{bean.property}) or plain (e.g. "foo")
since all attributes have in tld-files:
<rtexprvalue>false</rtexprvalue>
JSF-EL is able to look for example
in application, session or request scope
(and some other things more)
the SPEC for more
(Chapter 5.3.1.2 Default VariableResolver Implementation)
HTH,
Matthias
> -----Original Message-----
> From: Ratnakar Parakala [mailto:ratnakarpv@yahoo.com]
> Sent: Wednesday, October 20, 2004 6:33 PM
> To: user@struts.apache.org
> Subject: Scriptlets in JSF tag attribute
>
>
> Hi,
>
> Anyone used scriptlets in JSF tag attributes? For ex:
> <h:graphicImage url="<%= imageRoot%>/gifs/login.gif" />. When
> I tried, I'm getting compilation error stating that
> "expressions cannot be used in tag attribute". Pl help.
>
> Thanx
> Ratnakar
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail - CNET Editors' Choice 2004. Tell them what you think. a
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org