"var campaignArray = #{campaignForm.campaignArray};" is valid in JSP
2.1 or Facelets only. For JSP (not facelets) use:
var campaignArray = <t:outputText value="#{campaignForm.campaignArray}" />;
On 7/26/06, William Noto <[EMAIL PROTECTED]> wrote:
I'm trying to use some javascript that will call one of the properties of a
managed bean.
I'd like to do something to the effect of:
var campaignArray = #{campaignForm.campaignArray};
but the HTML source shows that the expression was never evaluated.
Long ago I would have written:
var var = <%=Obj.getWhatever()%>
but I'm supposed to avoid the <% %> right?