You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Pino Silvaggio (JIRA)" <my...@incubator.apache.org> on 2005/05/24 04:03:54 UTC

[jira] Commented: (MYFACES-244) jsp:param for subviews works in the RI but not in MyFaces

     [ http://issues.apache.org/jira/browse/MYFACES-244?page=comments#action_66130 ]
     
Pino Silvaggio commented on MYFACES-244:
----------------------------------------

Well, I tried this and it seems to work for me.
Don't see any problems.

> 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

>
> 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