[ 
http://issues.apache.org/jira/browse/MYFACES-1259?page=comments#action_12374019 
] 

Holger Benl commented on MYFACES-1259:
--------------------------------------

I have exactly the same problem. I'm using MyFaces snapshots and facelets 
1.1.4. I've tried with IE, Firefox and Opera.
When clicking on the link, IE shows an error (as described by the original 
poster) and firefox and opera don't react at
all (except for putting "#" at the end of the URL) .
More importantly, the issue also comes up with the 1.1.2 snapshot I tried! I 
tried the 04/07 snapshot of 1.1.3 and the 04/09
snapshot of 1.1.2

Here's my facelets test page:
<!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:h="http://java.sun.com/jsf/html";
      xmlns:f="http://java.sun.com/jsf/core";>
<body>
  <f:view>
    <h:form>
      <h:commandLink action="#{testBean.test}" value="Click me" />
    </h:form>
  </f:view>
</body>
</html>

and here's the generated HTML (it's the same for 1.1.2 and 1.1.3 except for the 
auto-generated IDs):
<!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";>
<body><form id="_id20" name="_id20" method="post" action="/MyJSF/cmdlink.jsf" 
enctype="application/x-www-form-urlencoded"><a href="#" 
onclick="clear__5Fid20();document.forms['_id20'].elements['autoScroll'].value=getScrolling();document.forms['_id20'].elements['_id20:_link_hidden_'].value='_id20:_id21';if(document.forms['_id20'].onsubmit){var
 result=document.forms['_id20'].onsubmit();  if( (typeof result == 'undefined') 
|| result ) 
{document.forms['_id20'].submit();}}else{document.forms['_id20'].submit();}return
 false;" id="_id20:_id21">Click me</a><input type="hidden" name="_id20_SUBMIT" 
value="1" />
<input type="hidden" name="autoScroll" />
<input type="hidden" name="jsf_sequence" value="12" /><input type="hidden" 
name="_id20:_link_hidden_" /><script type="text/javascript"><!--
function clear__5Fid20() {
  var f = document.forms['_id20'];
  f.elements['_id20:_link_hidden_'].value='';
  f.target='';
}
clear__5Fid20();
//--></script></form>
</body>
</html>


> login page commandLink error
> ----------------------------
>
>          Key: MYFACES-1259
>          URL: http://issues.apache.org/jira/browse/MYFACES-1259
>      Project: MyFaces Core
>         Type: Bug

>     Versions: 1.1.3-SNAPSHOT
>  Environment: JBoss 4.0.4 RC1,  MyFaces 4/4/06 night build.
>     Reporter: Dave
>     Priority: Blocker
>      Fix For: 1.1.3-SNAPSHOT

>
> Upgraded to  JBoss 4.0.4RC1 and MyFaces 4/4/06 night build.
> When user visit a protected page, the login.jsp will show up for user to 
> login in.
> But in the login.jsp, if clicking commandLink "Forget Password",   "Error on 
> Page" will show up on browser status bar (IE).
> nothing else happens.  It was working before: JBoss 4.0.3 RC1 and MyFaces  
> 1/16/06.
> login.jsp  (simplified for testing)
> -----------
> <%@ page contentType="text/html; charset=UTF-8"%>
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>
> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>
> <HTML>
> <body>
> <f:view>
>       <h:commandLink value="Forget Password" 
>                       action="#{bean.resetPassword}"/>
> </f:view>
> </body>
> </html>
> Browser source
> ------------------
> <HTML>
> <body>
>             <a href="#" 
> onclick="clear_linkDummyForm();document.forms['linkDummyForm'].elements['autoScroll'].value=getScrolling();document.forms['linkDummyForm'].elements['linkDummyForm:_link_hidden_'].value='_idJsp0';if(document.forms['linkDummyForm'].onsubmit){var
>  result=document.forms['linkDummyForm'].onsubmit();  if( (typeof result == 
> 'undefined') || result ) 
> {document.forms['linkDummyForm'].submit();}}else{document.forms['linkDummyForm'].submit();}return
>  false;" id="_idJsp0">ForgetPassword</a>
>       
> </body>
> </html>

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