faces icon indicating copy to clipboard operation
faces copied to clipboard

Introduce #{faceletScope}

Open BalusC opened this issue 3 weeks ago • 0 comments

Which allows mapped acces to all <ui:param> of the current facelet as requested in https://stackoverflow.com/q/79393921

<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="jakarta.faces.html" xmlns:f="jakarta.faces.core" xmlns:ui="jakarta.faces.facelets" xmlns:c="jakarta.tags.core">

    <ui:param name="param1" value="value 1" />
    <ui:param name="param2" value="value 2" />
    <ui:param name="param3" value="value 3" />

    param1: #{param1}
    <p></p>
    param2: #{param2}
    <p></p>
    param3: #{param3}

    <c:forEach begin="1" end="3" var="idx">
        <p></p>
        <h:outputText value="**How can I dynamically set the parameter name here (e.g., param${idx}) to get the corresponding value?**" />
    </c:forEach>
</ui:composition>

it would be interesting if <ui:define> instances are also mapped somewhere in faceletScope, see also among others https://stackoverflow.com/q/29410532

BalusC avatar Dec 23 '25 14:12 BalusC