How to determine default value for facelet template parameter? Consider the following element using a template parameter:
<h:outputText value="#{templParam}"></h:outputText>
The line above will print the templParam template templParam , which is passed by the ui:param tag to ui:composition using the template:
<ui:param name="templParam" value="Hello world"></ui:param>
But if the ui:param tag is missing, nothing will be printed. Although, how can I print, for example, "Default value" in this case?
Paranaix
source share