tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Kashin (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (TAP5-930) linksubmit does not fire sumbit event in 5.1.0.5
Date Sat, 14 Nov 2009 11:11:39 GMT

    [ https://issues.apache.org/jira/browse/TAP5-930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777883#action_12777883
] 

Sergey Kashin edited comment on TAP5-930 at 11/14/09 11:10 AM:
---------------------------------------------------------------

i have debug js code
problem is in the segment

if (onsubmit == undefined || onsubmit.call(window.document, event))
        {
            this.form.submit();
        }

in my example code onsubmit = onsubmit(event) 
event = "click clientX=57, clientY=39"
and this.form.submit();  is not fired

in another my page onsubmit is undefined and all work fine
that page have many other elements. 

      was (Author: ayrton):
    i have debug js code
problem is in the segment

if (onsubmit == undefined || onsubmit.call(window.document, event))
        {
            this.form.submit();
        }

in my example code onsubmit = onsubmit(event) 
event = "click clientX=57, clientY=39"
and this.form.submit();  is not fired

in another my page onsubmit is undefined and all work fine
the page have many
  
> linksubmit does not fire sumbit event in 5.1.0.5
> ------------------------------------------------
>
>                 Key: TAP5-930
>                 URL: https://issues.apache.org/jira/browse/TAP5-930
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.1
>         Environment: java 1.6
> windows 7
> tapestry 5.1.0.5
> firefox 3.5 or google chrome
>            Reporter: Sergey Kashin
>            Priority: Critical
>
> linksubmit does not fire sumbit form
> where is no any action
> if i change linksubmit to submit buttom all works fine
> Template:
> ----------------------------------------------------------------------------------
> <?xml version="1.0" encoding="windows-1251"?>
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"  xmlns:p="tapestry:parameter">
>     <t:form t:id="frm" >
>        <t:textfield value="txt"></t:textfield><br/>
>       <t:linksubmit t:id="save" >Save</t:linksubmit> .  <t:linksubmit
t:id="cancel" >Cancel</t:linksubmit>
>     </t:form>
> </html>
> ----------------------------------------------------------------------------------
> java code:
> ----------------------------------------------------------------------------------
>   private Object formEventReturn;
>   @Property
>   private String txt;
>   void onSelectedFromSave() {
>     // do whatever;
>     formEventReturn = Index.class; // go to AnotherPage
>   }
>   void onSelectedFromCancel() {
>     // do whatever
>     formEventReturn = null; // stay on this page
>   }
> Object onSuccessFromFrm() {
>   //do things specific to form Foo
>   return formEventReturn;
> }
> ----------------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message