users@glassfish.java.net

JSF 1.2_03 confusion....please help

From: Derick+Potgieter <derick.potgieter_at_gmail.com>
Date: Thu, 15 Mar 2007 12:29:06 -0400

 Any one please help

JSF 1.2_03 on glassfish 2 b19

Why o why does this work
        <webuijsf:textField text="#{Hdr.contextPathValue}" id="contextPathValueID" visible="false" />

But this does not
        <input id="contextPathValue2" name="test1" type="hidden" value="${Hdr.contextPathValue}"/>
        <input id="contextPathValue2" name="test2" type="hidden" value="#{Hdr.contextPathValue}"/>

I was sure that the ${...} should work because of the unified expression language.

Obviously I missed something...please help.

The reason for doing this is to get the contextPath for my javascript variables...images and so forth.

in jsf 1.1 i used this method
         <input type="text" value="${pageContext.request.contextPath}"/>

but this doesnt seem to work anymore...is it a bug...or am i just loosing the plot

Thanks
Derick