You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Grzegorz Mrowka (JIRA)" <ta...@jakarta.apache.org> on 2006/12/28 23:28:21 UTC

[jira] Commented: (TAPESTRY-1214) @Submit with submitType="refresh" : JavaScript syntax error

    [ http://issues.apache.org/jira/browse/TAPESTRY-1214?page=comments#action_12461267 ] 
            
Grzegorz Mrowka commented on TAPESTRY-1214:
-------------------------------------------

Occures only when onClick binding is used and dojo.event.connect with anonymous function is generated:
tapestry.event1340173574=function(e){
            dojo.event.browser.stopEvent(e);
            tapestry.form.refresh("pageForm", "importantDates_addButton", );
        };
        dojo.event.connect(dojo.byId("importantDates_addButton"), "onclick", tapestry, "event1340173574");


There is one more troublesome issue.
When I use onclick="ognl:onClickEvent" binding on @Submit component and ognl expression is returning null, then there is no onclick binding in generated html element but tapestry is connecting anonymous function by dojo. In this situation it could use standard onclick method.

> @Submit with submitType="refresh" : JavaScript syntax error
> -----------------------------------------------------------
>
>                 Key: TAPESTRY-1214
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1214
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.2
>         Environment: FF 1.5
>            Reporter: Grzegorz Mrowka
>
> syntax error
> tapestry.form.refresh("myForm", "myButton", ); 

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