tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ulrich Stärk (JIRA) <j...@apache.org>
Subject [jira] Commented: (TAP5-711) Submit component: using image parameter brakes "Selected" events
Date Tue, 01 Sep 2009 08:53:32 GMT

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

Ulrich Stärk commented on TAP5-711:
-----------------------------------

the problem is this code:

        String value = request.getParameter(elementName);

        if (value == null) return;

        Runnable sendNotification = new Runnable()
        {
            public void run()
            {
                resources.triggerEvent(event, context, null);
            }
        };

With an image submit there is no request parameter with the name of the element, instead there
are 2 parameters, name.x and name.y indicating where the user clicked on the image. Thus request.getParameter(elementName)
always returns null and the selected event is never fired.

> Submit component: using image parameter brakes "Selected" events
> ----------------------------------------------------------------
>
>                 Key: TAP5-711
>                 URL: https://issues.apache.org/jira/browse/TAP5-711
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5
>            Reporter: Sergey Didenko
>         Attachments: VoteForm3.java, VoteForm3.tml
>
>
> When I change <t:submit...> to <t:submit t:image="..."..> onSelectedX() handlers
stop working.

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