How to avoid repetitions / use constants in Facelets page?
问题 In a Facelets page, I have various <h:inputText> and <h:outputText> components, which all need the same converter. I'd like to avoid repeating the converter with all its parameters, like this: <h:inputText id="bla" value="#{mybean.val}" > <f:convertNumber locale="en" maxFractionDigits="3" minFractionDigits="3"/> </h:inputText> [...] <h:outputText id="bla2" value="#{mybean.val2}" > <f:convertNumber locale="en" maxFractionDigits="3" minFractionDigits="3"/> </h:outputText> [...] <h:inputText id=