You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Ulrich Stärk (JIRA)" <ji...@apache.org> on 2009/09/01 10:53:32 UTC
[jira] Commented: (TAP5-711) Submit component: using image
parameter brakes "Selected" events
[ 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.