You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Mark Reynolds (JIRA)" <ta...@jakarta.apache.org> on 2006/08/14 19:34:13 UTC
[jira] Created: (TAPESTRY-1062) Extraneous in
XMLHttpResponse when updating PropertySelection
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
[jira] Commented: (TAPESTRY-1062) Extraneous in
XMLHttpResponse when updating PropertySelection
Posted by "Mark Reynolds (JIRA)" <ta...@jakarta.apache.org>.
[ 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-1062) Extraneous in
XMLHttpResponse when updating PropertySelection
Posted by "Mark Reynolds (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-1062?page=comments#action_12427990 ]
Mark Reynolds commented on TAPESTRY-1062:
-----------------------------------------
I see the solution. I just needed to wrap the FieldLabel/PropertySelection or FieldLabel/TextField pair with an Any div and call updateCompoonent on the div. This is fun. Thanks for all your hard work Jesse! Sorry for the bogus issue.
> 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
[jira] Resolved: (TAPESTRY-1062) Extraneous in
XMLHttpResponse when updating PropertySelection
Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
[ 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