myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: JSF and Portlets commandbutton path to my pic
Date Tue, 18 Apr 2006 15:04:27 GMT
have you tried something like

#{facesContext.externalContext.requestContextPath}

another thing might be using "binding" attribute. With that you'll get
"java based access" to the component inside of your managed bean

Regards,
Matthias

On 4/18/06, Benjamin Bratkus <bratkus@oio.de> wrote:
> Hello all,
>
> i want to display a pic above my commandButton but i cant find a
> resolution because
> org.apache.jasper.JasperException: /index.jsp(18,0) According to TLD or
> attribute directive in tag file, attribute image does not accept any
> expressions
>
> <h:commandButton value="&gt;"
> image="<%=renderResponse.encodeURL(renderRequest.getContextPath() +
> "/path/to/pic.gif")%>" action="#{Overview.createEmpty}" />
>
>
> any suggestions ? hints?
>
> best regards,
>
> ben
>


--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com

Mime
View raw message