Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
4.1.2
-
None
-
java 1.5.0_07, osx 10.4.9
Description
In the .html:
<span jwcid="category@RadioGroup" displayName="literal:Category" selected="ognl:category">
<input type="radio" jwcid="@Radio" value="ognl:@Category@VIDEO"/> Video
<input type="radio" jwcid="@Radio" value="ognl:@Category@PROJECT"/> Project
<input type="radio" jwcid="@Radio" value="ognl:@Category@OTHER"/> Other
</span>
In the .java:
@EventListener(events = "onclick", targets = "category", async = true, submitForm = "editTimeEventForm", validateForm = false)
public void categorySelected(IRequestCycle cycle)
Nothing happens if you click on a radio button. It works fine if the RadioGroup component is changed to a PropertySelection:
<select jwcid="category@PropertySelection" 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=
;
tapestry.event.buildEventProperties(e, content);
if (!content["beventtarget.id"])
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");});