[ http://issues.apache.org/jira/browse/MYFACES-1167?page=comments#action_12414066 ]
Thomas Goorden commented on MYFACES-1167: ----------------------------------------- When using the nightly build, it does indeed seem to work. The JavaScript code is generated correctly (it looks like the expected RI implementation). So JSF 1.2 + Facelets + Tomahawk seems to work pretty smoothly. I did have to include two taghandler related jars, which is a bit of a burden and might be daunting for a novice user. Too bad this isn't included in the default Tomahawk distribution, since IMHO JSF without Facelets is pretty much unworkable anyway. Thanks in return! Thomas > 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 > Assignee: Mario Ivankovits > > 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
