08-17-07 06:23 PM
You can't use JSP expressions, only EL expressions on JSF tags, so <%= isn't
goping to work.
Maybe I didn't quite understand what you are trying to do. You mentioned Jav
aScript, so I thought you were trying to move the same EL expression you had
for 'value' into some JavaScript code.
If you are just trying to replace the expression for value, then what you ca
n do is use a method of a managed bean (pagecode bean, for example) that doe
s what you need and use that method for the expression on the value attribut
e.
For example:
value="#{pc_MyPage.servletUrl}"
and
public String getServletUrl() {
return ((RenderRequest)getFacesContext().getExternalContext().getRequest()).
encodeURL(... and so on
}
[ Post a follow-up to this message ]
|