I have a constant declared as following:
protected static final String LOC_RC_ELT = "[id*='rcLine'][id$='paxIndex{0}']";
And then I use MessageFormat:
MessageFormat.format(LOC_RC_ELT, paxIndex)
In this case MessageFormat fails to format the string declared as constant:
This is not true for other cases like:
LOC_RC_SELECTED_TAB = "[id*=_rc-tabs{0}] .tabSelected"
This works just fine:
Why I'm getting this weird behavior ? and how can I solve it ?
Thanks in advance.