You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Andreas Andreou (JIRA)" <ta...@jakarta.apache.org> on 2006/11/07 06:53:37 UTC

[jira] Created: (TAPESTRY-1141) Async form fails if keyboard is used to trigger the submit...

Async form fails if keyboard is used to trigger the submit...
-------------------------------------------------------------

                 Key: TAPESTRY-1141
                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1141
             Project: Tapestry
          Issue Type: Bug
          Components: Framework, JavaScript
    Affects Versions: 4.1.1
         Environment: FF1.5.0.7
            Reporter: Andreas Andreou


An example:
        <form jwcid="@Form" async="ognl:true" listener="listener:doEmail"
            updateComponents="testme">
            <input jwcid="@TextField" value="ognl:email"/>
            <input jwcid="@Submit" value="SEND"/>
        </form>

Pressing ENTER submits correctly the first time. However, pressing ENTER again results in
[TypeError: this.forms[formId] has no properties, file: http://127.0.0.1:8080/assets/static/dojo/dojo.js, line: 419] when calling overrideSubmit$joinpoint$method on [object Object] with arguments [object Object]
FATAL exception raised: this.forms[formId] has no properties
and no ajax request is made.

Finally, if one changes the textfield value and submits again using ENTER, it will work.

So, the problem occurs when submiting with keyboard an already submitted form that hasn't changed its values.



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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Assigned: (TAPESTRY-1141) Async form fails if keyboard is used to trigger the submit...

Posted by "Andreas Andreou (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-1141?page=all ]

Andreas Andreou reassigned TAPESTRY-1141:
-----------------------------------------

    Assignee: Andreas Andreou

> Async form fails if keyboard is used to trigger the submit...
> -------------------------------------------------------------
>
>                 Key: TAPESTRY-1141
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1141
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework, JavaScript
>    Affects Versions: 4.1.1
>         Environment: FF1.5.0.7
>            Reporter: Andreas Andreou
>         Assigned To: Andreas Andreou
>
> An example:
>         <form jwcid="@Form" async="ognl:true" listener="listener:doEmail"
>             updateComponents="testme">
>             <input jwcid="@TextField" value="ognl:email"/>
>             <input jwcid="@Submit" value="SEND"/>
>         </form>
> Pressing ENTER submits correctly the first time. However, pressing ENTER again results in
> [TypeError: this.forms[formId] has no properties, file: http://127.0.0.1:8080/assets/static/dojo/dojo.js, line: 419] when calling overrideSubmit$joinpoint$method on [object Object] with arguments [object Object]
> FATAL exception raised: this.forms[formId] has no properties
> and no ajax request is made.
> Finally, if one changes the textfield value and submits again using ENTER, it will work.
> So, the problem occurs when submiting with keyboard an already submitted form that hasn't changed its values.

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-1141) Async form fails if keyboard is used to trigger the submit...

Posted by "Andreas Andreou (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-1141?page=comments#action_12447909 ] 
            
Andreas Andreou commented on TAPESTRY-1141:
-------------------------------------------

IE 6, Konqueror, Opera all work... so this looks to be FF specific.

At first i thought this to relate to how browsers treat the enter key
( http://ppewww.ph.gla.ac.uk/~flavell/www/formquestion.html )
but the fact that it works when the value of the textfield has changed
dismisses this.

The error "this.forms[formId] has no properties" is due the value of formId
Instead of having the id of the form, in this case it contains the id of the textfield.



> Async form fails if keyboard is used to trigger the submit...
> -------------------------------------------------------------
>
>                 Key: TAPESTRY-1141
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1141
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework, JavaScript
>    Affects Versions: 4.1.1
>         Environment: FF1.5.0.7
>            Reporter: Andreas Andreou
>
> An example:
>         <form jwcid="@Form" async="ognl:true" listener="listener:doEmail"
>             updateComponents="testme">
>             <input jwcid="@TextField" value="ognl:email"/>
>             <input jwcid="@Submit" value="SEND"/>
>         </form>
> Pressing ENTER submits correctly the first time. However, pressing ENTER again results in
> [TypeError: this.forms[formId] has no properties, file: http://127.0.0.1:8080/assets/static/dojo/dojo.js, line: 419] when calling overrideSubmit$joinpoint$method on [object Object] with arguments [object Object]
> FATAL exception raised: this.forms[formId] has no properties
> and no ajax request is made.
> Finally, if one changes the textfield value and submits again using ENTER, it will work.
> So, the problem occurs when submiting with keyboard an already submitted form that hasn't changed its values.

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-1141) Async form fails if keyboard is used to trigger the submit...

Posted by "Andreas Andreou (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-1141?page=comments#action_12448015 ] 
            
Andreas Andreou commented on TAPESTRY-1141:
-------------------------------------------

Fixed... in the case described, FF considers the textfield to be the target of the generated event (instead of the form)

> Async form fails if keyboard is used to trigger the submit...
> -------------------------------------------------------------
>
>                 Key: TAPESTRY-1141
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1141
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework, JavaScript
>    Affects Versions: 4.1.1
>         Environment: FF1.5.0.7
>            Reporter: Andreas Andreou
>         Assigned To: Andreas Andreou
>
> An example:
>         <form jwcid="@Form" async="ognl:true" listener="listener:doEmail"
>             updateComponents="testme">
>             <input jwcid="@TextField" value="ognl:email"/>
>             <input jwcid="@Submit" value="SEND"/>
>         </form>
> Pressing ENTER submits correctly the first time. However, pressing ENTER again results in
> [TypeError: this.forms[formId] has no properties, file: http://127.0.0.1:8080/assets/static/dojo/dojo.js, line: 419] when calling overrideSubmit$joinpoint$method on [object Object] with arguments [object Object]
> FATAL exception raised: this.forms[formId] has no properties
> and no ajax request is made.
> Finally, if one changes the textfield value and submits again using ENTER, it will work.
> So, the problem occurs when submiting with keyboard an already submitted form that hasn't changed its values.

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Resolved: (TAPESTRY-1141) Async form fails if keyboard is used to trigger the submit...

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-1141?page=all ]

Jesse Kuhnert resolved TAPESTRY-1141.
-------------------------------------

    Fix Version/s: 4.1.1
       Resolution: Fixed

Am assuming fixed. 

> Async form fails if keyboard is used to trigger the submit...
> -------------------------------------------------------------
>
>                 Key: TAPESTRY-1141
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1141
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework, JavaScript
>    Affects Versions: 4.1.1
>         Environment: FF1.5.0.7
>            Reporter: Andreas Andreou
>         Assigned To: Andreas Andreou
>             Fix For: 4.1.1
>
>
> An example:
>         <form jwcid="@Form" async="ognl:true" listener="listener:doEmail"
>             updateComponents="testme">
>             <input jwcid="@TextField" value="ognl:email"/>
>             <input jwcid="@Submit" value="SEND"/>
>         </form>
> Pressing ENTER submits correctly the first time. However, pressing ENTER again results in
> [TypeError: this.forms[formId] has no properties, file: http://127.0.0.1:8080/assets/static/dojo/dojo.js, line: 419] when calling overrideSubmit$joinpoint$method on [object Object] with arguments [object Object]
> FATAL exception raised: this.forms[formId] has no properties
> and no ajax request is made.
> Finally, if one changes the textfield value and submits again using ENTER, it will work.
> So, the problem occurs when submiting with keyboard an already submitted form that hasn't changed its values.

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org