No javascript with MyFaces & Facelets
-------------------------------------

         Key: MYFACES-1167
         URL: http://issues.apache.org/jira/browse/MYFACES-1167
     Project: MyFaces Core
        Type: Bug
    Versions: 1.1.2-SNAPSHOT    
 Environment: Any OS, Resin 3.0.18, JDK 1.4.2
    Reporter: Boris Kovalenko


When MyFaces are used with Facelets 1.0.12 there is no JavaScript generated if 
no <h:form> is present.  Very simple example:

<html xmlns="http://www.w3.org/1999/xhtml";
      xmlns:ui="http://java.sun.com/jsf/facelets";
      xmlns:h="http://java.sun.com/jsf/html";
      xmlns:t="http://myfaces.apache.org/tomahawk";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Facelets: Number Guess Tutorial</title>
<head>
<link rel="STYLESHEET" type="text/css" href="/css/style.css"/>
</head>
</head>

<body>
    <h:commandLink value="Link" action="do"/>
</body>

</html>
[EMAIL PROTECTED] /mnt/work.1/www]# [EMAIL PROTECTED] /mnt/work.1/www]# cat 
test.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="http://www.w3.org/1999/xhtml";
      xmlns:ui="http://java.sun.com/jsf/facelets";
      xmlns:h="http://java.sun.com/jsf/html";
      xmlns:t="http://myfaces.apache.org/tomahawk";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Facelets: Number Guess Tutorial</title>
<head>
<link rel="STYLESHEET" type="text/css" href="/css/style.css"/>
</head>
</head>

<body>
        <h:commandLink value="Link" action="do"/>
</body>
</html>

When h:commandLink is inside h:form - all is ok. But... why we can't use 
h:commandLink without form?


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

Reply via email to