in XMLHttpResponse when updating PropertySelection
Mark Reynolds (JIRA)
Mon, 14 Aug 2006 10:43:58 -0700
Extraneous </div> in XMLHttpResponse when updating PropertySelection
--------------------------------------------------------------------
Key: TAPESTRY-1062
URL: http://issues.apache.org/jira/browse/TAPESTRY-1062
Project: Tapestry
Issue Type: Bug
Components: Core
Affects Versions: 4.1.1
Environment: Tapestry 4.1.1-20060813.221855-15
Reporter: Mark Reynolds
Priority: Critical
I have an @EventListener method listing to a PropertySelection named "course"
which updates another PropertySelection named "section":
@EventListener(events = "onchange", elements = "course", submitForm =
"importForm")
public void courseSelected(IRequestCycle cycle, BrowserEvent event) {
cycle.getResponseBuilder().updateComponent("section");
}
This results in a warning in the browser: "WARNING: 1:20:20 PM: No
ajax-response elements recieved."
After poking around with Venkman, I found that the response xml looks like this:
<ajax-response>
<response id="importFormhidden" type="element">
<div style="display:none;" id="importFormhidden">
<input type="hidden" name="formids" value="course,section,import"/>
<input type="hidden" name="submitmode" value=""/>
<input type="hidden" name="submitname" value=""/>
</div>
</response>
<response id="section" type="element">
<select name="section" id="section">
<option value="0" selected="selected"></option>
<option value="1">101-001</option>
</select>
</div>
</response>
</ajax-response>
Notice the unmatched </div> on the third to last line which causes a parsing
error in the response.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]