1

I want to create a simple Eclipse template showing me all current page parameters and its values.

First approach would be something like:

        <c:forEach var="pname" items="$<PARAM_NAMES>">
            <tr>  
                <td>  
                    <h:outputText value="${param}" />
                </td>  
                <td>
                    <h:outputText value="${param.pname}" />
                </td>
            </tr>
        </c:forEach>

Do you have any idea?

John Rumpel
  • 4,535
  • 5
  • 34
  • 48

1 Answers1

2

Your idea to build this is invalid because it is included out of the box.

<ui:debug hotkey="x" rendered="#{initParam['javax.faces.PROJECT_STAGE'] == 'Development'}" />

Tips to get started with ui:debug:

<ui:debug/> tag not working in Facelets (JSF 2.0)

This assumes JSF 2.0. If you are not on JSF 2.0 why not just create it in a bean with ExternalContext().getRequestParameterMap()?

Community
  • 1
  • 1
Karl Kildén
  • 2,415
  • 22
  • 34