in XMLHttpResponse when updating PropertySelection
Mark Reynolds (JIRA)
Mon, 14 Aug 2006 14:24:08 -0700
[
http://issues.apache.org/jira/browse/TAPESTRY-1062?page=comments#action_12427968
]
Mark Reynolds commented on TAPESTRY-1062:
-----------------------------------------
Never mind. So sorry. My bad.
I have extended the validation delegate to change the decoration of invalid
fields. I surround the label/input pair with a single div by writing the open
<div> in IValidationDelegate.writeLabelPrefix() and the closing </div> in
IValidationDelegate.writeSuffix(). Obviously, this won't work with
@EventListener as it handles each element separately.
> 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]