Problem with {facesContext.externalContext.requestContextPath}

Hello,

I would like for my app to evaluate the above expression. If I use the following sign (#) I get this error: the attributes for a standard action cannot be deferred expressions. If I use the dollar sign the expression is copied as is and not evaluated. My question is as follows: how can use context path in jsf?

Thanks in advance,

Julien Martin.

<f:view xmlns:h="http://java.sun.com/jsf/html"

xmlns:f="http://java.sun.com/jsf/core"

xmlns:jsp="http://java.sun.com/JSP/Page"

xmlns:ice="http://www.icesoft.com/icefaces/component">

<ice:outputDeclaration

doctypeRoot="HTML"

doctypePublic="-//W3C//DTD XHTML 1.0 Strict//EN"

doctypeSystem="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<title>JSP Page</title>

<link href="${facesContext.externalContext.requestContextPath}/css/xp/xp.css" rel="stylesheet" type="text/css"/>

<link href="${facesContext.externalContext.requestContextPath}/css/console-style.css" rel="stylesheet" type="text/css"/>

</head>

<body>

<ice:outputConnectionStatus/>

<ice:form>

<ice:inputFile

progressListener="#{consoleInputFile.progress}"

actionListener="#{consoleInputFile.action}"/>

<ice:outputProgress

indeterminate="true"

value="#{consoleInputFile.percent}" />

<ice:messages

showDetail="true"

styleClass="consoleInputFileMessages"/>

</ice:form>

</body>

</html>

</f:view>

[2250 byte] By [balteoa] at [2007-11-26 15:49:56]
# 1
What version of JSP is supported by the container you're running in?
rlubkea at 2007-7-8 22:09:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hello,I use jboss 4.0.5 and j2ee 1.4.Julien.
balteoa at 2007-7-8 22:09:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Did you try to use<h:outputLink "${facesContext.externalContext.requestContextPath}/css/xp/xp.css" ..... />
melvinganta at 2007-7-8 22:09:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
sorry use # instead of $ in the outputLink
melvinganta at 2007-7-8 22:09:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...