[
https://issues.apache.org/jira/browse/TAPESTRY-1405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marcus Schulte resolved TAPESTRY-1405.
--------------------------------------
Resolution: Duplicate
Fix Version/s: (was: 4.2)
4.1.6
Assignee: Marcus Schulte
duplicate of and fixed with TAPESTRY-1039
> EventListeners on RadioGroups don't fire asynchronously
> -------------------------------------------------------
>
> Key: TAPESTRY-1405
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1405
> Project: Tapestry
> Issue Type: Improvement
> Components: Core Components
> Affects Versions: 4.1.2
> Environment: java 1.5.0_07, osx 10.4.9
> Reporter: Julian Wood
> Assignee: Marcus Schulte
> Priority: Minor
> Fix For: 4.1.6
>
>
> In the .html:
> <span jwcid="[EMAIL PROTECTED]" displayName="literal:Category"
> selected="ognl:category">
> <input type="radio" jwcid="@Radio" value="ognl:@[EMAIL PROTECTED]"/> Video
> <input type="radio" jwcid="@Radio" value="ognl:@[EMAIL PROTECTED]"/>
> Project
> <input type="radio" jwcid="@Radio" value="ognl:@[EMAIL PROTECTED]"/> Other
> </span>
> In the .java:
> @EventListener(events = "onclick", targets = "category", async = true,
> submitForm = "editTimeEventForm", validateForm = false)
> public void categorySelected(IRequestCycle cycle)
> {
> log.info("Chose a category: " + getCategory());
> }
> Nothing happens if you click on a radio button. It works fine if the
> RadioGroup component is changed to a PropertySelection:
> <select jwcid="[EMAIL PROTECTED]" displayName="literal:Category"
> value="ognl:category" model="ognl:categorySelectionModel">
> <option>Video</option>
> <option>Project</option>
> <option>Other</option>
> </select>
> The latter includes some initialization js (while the former doesn't include
> any):
> tapestry.cleanConnect(dojo.byId("category"), "onclick", "formEvent193333026");
> tapestry.formEvent193333026=function(e){
> var content={beventname:"onclick"};
> tapestry.event.buildEventProperties(e, content);
> if (!content["beventtarget.id"]){
> content["beventtarget.id"]="category";
> }
>
> var validateState=tapestry.form.forms["editTimeEventForm"].validateForm;
> var validateForm=false;
> tapestry.form.setFormValidating("editTimeEventForm", validateForm);
> tapestry.form.submitAsync("editTimeEventForm", content);
> tapestry.form.setFormValidating("editTimeEventForm", validateState);
> };
> dojo.event.connect(dojo.byId("category"), "onclick", tapestry,
> "formEvent193333026");});
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]