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.

see also:


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -