You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "LeRoy Mattingly (JIRA)" <my...@incubator.apache.org> on 2005/05/16 18:40:13 UTC

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

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


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

Posted by "nikolaos georgosoulos (JIRA)" <de...@myfaces.apache.org>.
    [ 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.


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

Posted by "Martin Marinschek (JIRA)" <my...@incubator.apache.org>.
     [ 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


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

Posted by "LeRoy Mattingly (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

LeRoy Mattingly reopened MYFACES-244:
-------------------------------------


I'm reopening per Stephen Cooper's request.

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


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

Posted by "Pino Silvaggio (JIRA)" <my...@incubator.apache.org>.
     [ 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


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

Posted by "Stephen Cooper (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500878 ] 

Stephen Cooper commented on MYFACES-244:
----------------------------------------

I can't re-open this bug (probably by design).  Please re-open.

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