[ http://issues.apache.org/jira/browse/MYFACES-244?page=all ] Martin Marinschek closed MYFACES-244: -------------------------------------
Resolution: Cannot Reproduce Assign To: Martin Marinschek As one of our users has tried this and it seems to work, I close that - we can always reopen it with a better test-case > jsp:param for subviews works in the RI but not in MyFaces > --------------------------------------------------------- > > Key: MYFACES-244 > URL: http://issues.apache.org/jira/browse/MYFACES-244 > Project: MyFaces > Type: Bug > Environment: n/a > Reporter: LeRoy Mattingly > Assignee: Martin Marinschek > > 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> > > <!-- This doesn't work in myFaces but does in the RI!!! --> > <h:outputText value="#{param.parameterXXX}"/> > </f:subview> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira