You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org> on 2006/04/11 21:52:21 UTC

[jira] Commented: (MYFACES-1259) login page commandLink error -- default AutoScroll setting depends on Tomahawk

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

Mario Ivankovits commented on MYFACES-1259:
-------------------------------------------

We need to update the documentation.
I dont know when this changed and who it was, but the ExtensionsFilter is required to add the javascript required by myfaces e.g. to handle the scrolling stuff.

Also we decided to move the dummyForm/ExtensionsFilter stuff out of shared to tomahawk.
I think this is somewhat reasonable, "shared" IMHO wasnt the right place, and we had some headaches - remember the classCastException and wrongly
named session/request parameters.
With the move to tomahawk we also decided to use the renderer-replacement feature of JSF to make the extended commandLink/commandButon stuff work even
after the move. This has been done only to be backward compatible - I am not sure about the scrolling, but at least the dummyForm worked with myfaces even if you used
the h: components.

Both are extensions of JSF brought by MyFaces, thus the move to tomahawk. Later we can discuss if the (new to be created) commons is the better place.

I use myfaces head with success, dummyForm and scrolling works as expected. Also the samples of myfaces show no errors.


Please double check there is no old myfaces library (e.g. the old commons) lie around somewhere.

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

>     Versions: 1.1.2-SNAPSHOT
>  Environment: JBoss 4.0.4 RC1,  MyFaces 4/4/06 night build.
>     Reporter: Dave
>     Assignee: Mario Ivankovits
>     Priority: Blocker
>      Fix For: 1.1.2-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