Environment: JSF 2.0 (Mojarra 4.0), Facelets, Richfaces, Websphere 7.0
I have a custom inputText component, which needs to execute EL expressions in the JSTL EL Context. I have a special situation, where I need JSTL "foreach" to create a complex table (can't use "a4j:reapeat").
Custom Component example:
<c:forEach var="cell" items="#{line.cellDescriptorList}" >
<rich:column>
<k:inputText onkeyup="#{cell.onKeyup}" id="#{cell.jsfId}" value="#{cell.wert.wert}">
<f:converter converterId="PercentageConverterBigDecimal" />
</k:inputText>
</rich:column>
</c:forEach>
In my custom component Renderer I need to evaluate an expression on #{cell}. This variable is stored in the JSTL (JSP?) EL context. Executing expressions in the JSF EL context or the Facelets EL context works just fine. But how can I access the JSTL EL context programatically?
Example for JSF EL Context:
final ELContext elContext = facesContext.getELContext();
final Application application = facesContext.getApplication();
ExpressionFactory expressionFactory = application.getExpressionFactory();
ValueExpression exp = expressionFactory.createValueExpression(elContext, expression, Object.class);
Object result = exp.getValue(elContext);
Example for Facelets EL context here.
Can you please point me to a solution for the JSTL EL context?
Thanks in advance. Kai