[ 
https://issues.apache.org/jira/browse/MYFACES-2651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12854989#action_12854989
 ] 

Werner Punz commented on MYFACES-2651:
--------------------------------------

Yes, same behavior, but mojarra adds a message in this case


    * Eine oder mehrere Ressourcen haben das Ziel 'head', aber es wurde keine 
Komponente 'head' in der Ansicht definiert. 

So the user clearly is informed that something targets head but head is not 
there to target it, we should add that as well!


> f:ajax doesn't render scripts when h:head is not present
> --------------------------------------------------------
>
>                 Key: MYFACES-2651
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2651
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta-3
>         Environment: Java/Javascript resource rendering
>            Reporter: Ganesh Jung
>         Attachments: MyFaces_Test.war
>
>
> If a page has no h:head and contains a f:ajax we omit the jsf.js script 
> resource
> example:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml";
>       xmlns:f="http://java.sun.com/jsf/core";
>       xmlns:h="http://java.sun.com/jsf/html";
>       xmlns:ui="http://java.sun.com/jsf/facelets";>
>       <h:body>
>               <h:form id="myForm">
>               <h:inputText id="myTest1" value="#{myBean.test}">
>                               <f:ajax render="myTest2" />
>               </h:inputText>
>                       <h:inputText value="#{myBean.test}" id="myTest2" />
>               </h:form>
>       </h:body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to