You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Adriaan Joubert (JIRA)" <de...@tapestry.apache.org> on 2008/04/17 07:57:25 UTC
[jira] Commented: (TAPESTRY-2324) Wrong Submit 'selected' event
fired when using a Form with a Zone parameter
[ https://issues.apache.org/jira/browse/TAPESTRY-2324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589835#action_12589835 ]
Adriaan Joubert commented on TAPESTRY-2324:
-------------------------------------------
Problem seems to be that when serialising the form components prototype simply picks the first submit button. So the wrong id is returned in the Ajax request (always the id of the first button that is encountered).
I do have a second problem as well: no selected event is issued at all. Peter's example indicates that he is getting selected events, but I only get an onSuccess. When taking the zone out everything works fine, so this is not a simple typing error.
Cheers,
Adriaan
> Wrong Submit 'selected' event fired when using a Form with a Zone parameter
> ---------------------------------------------------------------------------
>
> Key: TAPESTRY-2324
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2324
> Project: Tapestry
> Issue Type: Bug
> Components: Core Components
> Affects Versions: 5.0.12
> Environment: Jetty 5.1.12; Tapestry 5.0.12-SNAPSHOT
> Reporter: Peter Beshai
>
> Given the following code:
> void onSelectedFromSave()
> {
> System.out.println("save");
> }
> void onSelectedFromCancelChanges()
> {
> System.out.println("cancel");
> }
> The following template outputs 'save' when clicking on the save button and 'cancel' when clicking on the cancel button
> <t:form t:id="finalizeChanges" zone="testZone">
> <t:submit t:id="save"/>
> <t:submit t:id="cancelChanges"/>
> </t:form>
> The following template/code outputs 'save' when clicking on the save button and 'save' when clicking on the cancel button
> <t:zone t:id="testZone">
> <t:form t:id="finalizeChanges" zone="testZone">
> <t:submit t:id="save"/>
> <t:submit t:id="cancelChanges"/>
> </t:form>
> </t:zone>
> The following template/code outputs 'cancel' when clicking on the save button and 'cancel' when clicking on the cancel button
> <t:zone t:id="testZone">
> <t:form t:id="finalizeChanges" zone="testZone">
> <t:submit t:id="cancelChanges"/>
> <t:submit t:id="save"/>
> </t:form>
> </t:zone>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org