myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Goorden (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (MYFACES-1167) No javascript with MyFaces & Facelets
Date Wed, 31 May 2006 12:06:31 GMT
    [ http://issues.apache.org/jira/browse/MYFACES-1167?page=comments#action_12414037 ] 

Thomas Goorden commented on MYFACES-1167:
-----------------------------------------

It seems to me the issue is either unfixed or popping back up:

When using Facelets + JSF 1.2 RI (JSF12Kickstart used as a basis), h:commandLink works as
expected. However, when one drops in tomahawk.jar (not MyFaces in total), those same links
break. The JavaScript "clear" funtion is generated in the <a> tag, but the corresponding
JavaScript function itself is not present in the page.

I'm  using the latest binary distribution of Tomahawk (1.1.2, dated the 6th of may 2006 so
it should include the afformentioned bugfix). Can somebody describe what the bugfix did, so
I might verify it or provide further feedback?

Regards,
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>
> [root@boris /mnt/work.1/www]# [root@boris /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


Mime
View raw message