How to get init param in JSF 1x using EL -
i have context param follows:
<context-param> <param-name>myinitparam</param-name> <param-value>myvalue</param-value> </context-param> i want init param in jsf 1x (exact version 1.1.02) follows:
<object> <param name="httpport" value="#{initparam.myinitparam}" /> but getting compiler error in jsp:
the attributes standard action or uninterpreted tag cannot deferred expressions please advise how init param in jsf 1x, , reference el used in jsf 1x.
the el variable correct, can't use deferred el #{} in template text in legacy jsp default view technology in jsf 1.x. error message trying tell you.
you need print using <h:outputtext>.
<f:verbatim><param name="httpport" value="</f:verbatim><h:outputtext value="#{initparam.myinitparam}" /><f:verbatim>" /></f:verbatim> (note assume emitting plain html using <f:verbatim>)
yes, that's 1 line of ugliness, that's payoff of using jsp , 1 of main reasons why facelets introduced.
Comments
Post a Comment