myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Reznick (JIRA)" <>
Subject [jira] [Created] (MYFACES-3546) <h:outputScript is not being loaded when located in ui:include that is initially rendered="false"
Date Thu, 10 May 2012 20:46:51 GMT
Daniel Reznick created MYFACES-3546:

             Summary: <h:outputScript is not being loaded when located in ui:include that
is initially rendered="false"
                 Key: MYFACES-3546
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 2.1.7, 2.0.11
         Environment: Windows / Tomcat 6
            Reporter: Daniel Reznick


I'm trying to load some heavy js file only after a user have clicked on button

so basically when user loads the main page there is a hidden page inside <ui:include

            <h:commandButton value="ClickMe" action="#{myBean.callme()}" >
                <f:ajax render="includeWrapper"></f:ajax>
            <h:panelGroup id="includeWrapper">
                <h:panelGroup rendered="#{}">
                    <ui:include src="/page2.xhtml"></ui:include>

that hidden page got <h:outputScript that should be rendered when  user will click on the

page2.xhtml looks like this

<ui:composition xmlns="" xmlns:ui=""
    xmlns:h="" xmlns:f=""

    <h:outputScript library="js" name="myscript.js" rendered="#{}"/>

and my callme looks like this

    public void callme(){
        show = !show;
        System.out.println("caaaaaaaaaaaal me\t"+show);

This works perfectly in my mojarra sandbox , but for some reason it is not being loaded in
my Myfaces 2.0.11 application I even tried the latest 2.1.8 snapshot

After I click on the show button and the script was supposed to be loaded , it gets loaded
if I click F5 / Ctrl + F5 / or hit Enter in the URL of the browser... 

Thanks ahead.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message