Since you are using that within your own tag, you will have to program it.. E.g.:
Code:
/**
* This method will try to replace the expressions that are set between ${ and } with the bean values that it
* corresponds to. Since the parameter can contain more then just the expression, this must be done in a loop and
* the parameter string must be parsed for each ${} combo (e.g.
* onClick="return confirm('Replace ${bean.name} with ${bean.description}?');"
* @param parameter
* @return
*/
private String convertExpression(String parameter) {
while( ExpressionEvaluationUtils.isExpressionLanguage(parameter) ) {
String tobeReplaced = StringUtils.findBetween(parameter, "${", "}");
StringBuffer sb = new StringBuffer();
sb.append("${").append(tobeReplaced).append("}");
String value = null;
try {
value = (String) ExpressionEvaluationUtils.evaluateString("", sb.toString(), pageContext);
} catch (JspException e) {
value = "";
}
parameter = StringUtils.replace(parameter, sb.toString(), value);
}
return parameter;
}
Gr
Ronald