You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "nikolaos georgosoulos (JIRA)" <de...@myfaces.apache.org> on 2007/08/14 11:17:30 UTC
[jira] Commented: (MYFACES-244) jsp:param for subviews works in the
RI but not in MyFaces
[ https://issues.apache.org/jira/browse/MYFACES-244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519634 ]
nikolaos georgosoulos commented on MYFACES-244:
-----------------------------------------------
I just found out that in the RI it only works when the jsp:include is not inside an h:panelGrid. PanelGrid seam to be causing problems anyway. Yet, in myfaces impl. the problem exists even without the panelgrid
> jsp:param for subviews works in the RI but not in MyFaces
> ---------------------------------------------------------
>
> Key: MYFACES-244
> URL: https://issues.apache.org/jira/browse/MYFACES-244
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 1.1.5
> Environment: tomcat 5.0.28, myfaces 1.1.5
> Reporter: LeRoy Mattingly
> Assignee: Martin Marinschek
> Priority: Critical
>
> 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.
-
You can reply to this email to add a comment to the issue online.