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

[jira] Commented: (MYFACES-1497) h:form produces action with double slash

    [ http://issues.apache.org/jira/browse/MYFACES-1497?page=comments#action_12451213 ] 
            
Ted Leung commented on MYFACES-1497:
------------------------------------

oops accidentally submitted half way through typing.

Above is the jsf code, and the java code in the java bean. The first time the page is rendered everything is okay, the action="/marketer/users/u.jsf" (u.jsf was the test jsf page I made)

Once you click the submit button, the page refreshes and now the action is incorrect, it has a double slash in the front which causes the next form post to fail. action="//marketer/users/u.jsf"

it essentially renders return(null) useless as the next action is always wrong. A simple work around I've used right now is to add a <navication-case> for every form post I have and not return null, but it's a little annoying.

> h:form produces action with double slash
> ----------------------------------------
>
>                 Key: MYFACES-1497
>                 URL: http://issues.apache.org/jira/browse/MYFACES-1497
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.1.4
>         Environment: fedora core 4, jdk 1.5.0_08-b03, apache-tomcat-5.5.20, myfaces 1.1.4
>            Reporter: Ted Leung
>
> With jsf code of :
> 	<h:form enctype="multipart/form-data" >
> 		<h:commandButton value="Upload" action="#{uploadUsersUIBean.testSubmit}" />
> 	</h:form>
> and java code of : 	
> public String testSubmit()
> 	{
> 		return(null);
> 	}

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