Hello,

there is a bug report for this issue: https://issues.apache.org/jira/browse/TAP5-2602. I met this same issue when porting from Tapestry 5.2 to 5.4.

I solved it with a hack. I replaced the tapestry t5/core/dom prototype module file and added code to the ElementWrapper.trigger method. I made it call .submit on a form when a native submit event is triggered. I did it this way, because the jquery variant works correctly. I added this code:

        var runDefault = fireNativeEvent(this.element, eventName);
        // in chrome, dispatchEvent('submit') will not actually submit a form
        if (runDefault && eventName == 'submit') {
            this.closest('form').element.submit();
        }
        return runDefault;
Regards, Raigo

14.02.20 11:19 Lothar Nieswandt kirjutas:
Hello again,
my second problem while porting an existing T5.3 app to T5.5 is the following: I tend to use the 'linkSubmit' component quite often to enable menu like structures: FILE: Menu.tml
<t:form t:id="menuForm">
     <t:linkSubmit t:id="sdUserImport" class="button"><img src="images/tick.png"/>SdUser 
Import</t:linkSubmit> <br/>
:
:
</t:form>
FILE: Menu.java     @InjectPage
     private SdUserImport sdUserImport;
    SdUserImport onSelectedFromsdUserImport() {
         return sdUserImport;
     }
This used to work perfectly in T5.3. In T5.5, however, the respective event handler does not get called anymore after pressing the button. Any explanations on this one? Regards,
Lothar
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to