You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org> on 2006/08/15 01:50:14 UTC

[jira] Resolved: (TAPESTRY-1062) Extraneous in XMLHttpResponse when updating PropertySelection

     [ http://issues.apache.org/jira/browse/TAPESTRY-1062?page=all ]

Jesse Kuhnert resolved TAPESTRY-1062.
-------------------------------------

    Resolution: Invalid

Hooray! I love invalid tickets..less work for me to try and re-produce :)

> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org