Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-244

jsp:param for subviews works in the RI but not in MyFaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Won't Fix
    • 1.1.5
    • None
    • None
    • None
    • tomcat 5.0.28, myfaces 1.1.5

    Description

      In the myFaces implementation you can't pass parameters to subviews but you can in the Ref. Impl.

      ------------------------------------------------------------
      <!-- welcome.jsp -->
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
      <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>

      <html>
      <head>
      <title>Welcome!</title>
      </head>
      <body>
      <f:view>
      <h:form>

      Hello, this is content from the calling page.

      <f:subview id="mySubviewPage">
      <jsp:include page="mySubviewPage.jsp" flush="true">
      <jsp:param name="parameterXXX" value="The value of parameter XXX is this string."/>
      </jsp:include>
      </f:subview>

      </h:form>
      </f:view>
      </body>
      </html>

      ------------------------------------------------------------
      <!-- mySubviewPage.jsp -->
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
      <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>

      <f:subview id="headerSubview">

      <f:verbatim>
      <p>This is mySubviewPage content.</p>
      </f:verbatim>

      <Unable to render embedded object: File (-- This doesn't work in myFaces but does in the RI) not found.!! -->
      <h:outputText value="#

      {param.parameterXXX}

      "/>

      </f:subview>

      Attachments

        Activity

          People

            mmarinschek Martin Marinschek
            lmattingly LeRoy Mattingly
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: