[richfaces-issues] [JBoss JIRA] Commented: (RF-11360) UI Iteration tests failing
Brian Leathem (JIRA)
jira-events at lists.jboss.org
Tue Aug 30 01:06:26 EDT 2011
[ https://issues.jboss.org/browse/RF-11360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625010#comment-12625010 ]
Brian Leathem commented on RF-11360:
------------------------------------
>From a sample application made out of the failing test, I stepped through the javascript and everything looks fine up until the ajax call is placed via the JSF ajax mechanism.
I then looked at the ajax communication itself.
When I click the "last page" button, I see:
{code}
<?xml version='1.0' encoding='UTF-8'?>
<partial-response>
<changes>
<update id="form:scroller1"><![CDATA[<span class="rf-ds" id="form:scroller1"><a class="rf-ds-btn rf-ds-btn-first" href="javascript:void(0);" id="form:scroller1_ds_f">««««</a><a class="rf-ds-btn rf-ds-btn-fastrwd" href="javascript:void(0);" id="form:scroller1_ds_fr">««</a><a class="rf-ds-btn rf-ds-btn-prev" href="javascript:void(0);" id="form:scroller1_ds_prev">«</a><a class="rf-ds-nmb-btn " href="javascript:void(0);" id="form:scroller1_ds_1">1</a><a class="rf-ds-nmb-btn " href="javascript:void(0);" id="form:scroller1_ds_2">2</a><a class="rf-ds-nmb-btn " href="javascript:void(0);" id="form:scroller1_ds_3">3</a><a class="rf-ds-nmb-btn " href="javascript:void(0);" id="form:scroller1_ds_4">4</a><span class="rf-ds-nmb-btn rf-ds-act " id="form:scroller1_ds_5">5</span><span class="rf-ds-btn rf-ds-btn-next rf-ds-dis" id="form:scroller1_ds_next">»</span><span class="rf-ds-btn rf-ds-btn-fastfwd rf-ds-dis" id="form:scroller1_ds_ff">»»</span><span class="rf-ds-btn rf-ds-btn-last rf-ds-dis" id="form:scroller1_ds_l">»»»»</span><script type="text/javascript">new RichFaces.ui.DataScroller("form:scroller1",function(event,element,data){RichFaces.ajax("form:scroller1",event,{"parameters":{"form:scroller1:page":data.page} ,"incId":"1"} )},{"digitals":{"form:scroller1_ds_1":"1","form:scroller1_ds_3":"3","form:scroller1_ds_2":"2","form:scroller1_ds_5":"5","form:scroller1_ds_4":"4"} ,"buttons":{"left":{"form:scroller1_ds_prev":"previous","form:scroller1_ds_fr":"fastrewind","form:scroller1_ds_f":"first"} } ,"currentPage":5} )</script></span>]]></update>
<update id="form:richTable:scroller2"><![CDATA[<span class="rf-ds" id="form:richTable:scroller2"><a class="rf-ds-btn rf-ds-btn-first" href="javascript:void(0);" id="form:richTable:scroller2_ds_f">««««</a><a class="rf-ds-btn rf-ds-btn-fastrwd" href="javascript:void(0);" id="form:richTable:scroller2_ds_fr">««</a><a class="rf-ds-btn rf-ds-btn-prev" href="javascript:void(0);" id="form:richTable:scroller2_ds_prev">«</a><a class="rf-ds-nmb-btn " href="javascript:void(0);" id="form:richTable:scroller2_ds_1">1</a><a class="rf-ds-nmb-btn " href="javascript:void(0);" id="form:richTable:scroller2_ds_2">2</a><a class="rf-ds-nmb-btn " href="javascript:void(0);" id="form:richTable:scroller2_ds_3">3</a><a class="rf-ds-nmb-btn " href="javascript:void(0);" id="form:richTable:scroller2_ds_4">4</a><span class="rf-ds-nmb-btn rf-ds-act " id="form:richTable:scroller2_ds_5">5</span><span class="rf-ds-btn rf-ds-btn-next rf-ds-dis" id="form:richTable:scroller2_ds_next">»</span><span class="rf-ds-btn rf-ds-btn-fastfwd rf-ds-dis" id="form:richTable:scroller2_ds_ff">»»</span><span class="rf-ds-btn rf-ds-btn-last rf-ds-dis" id="form:richTable:scroller2_ds_l">»»»»</span><script type="text/javascript">new RichFaces.ui.DataScroller("form:richTable:scroller2",function(event,element,data){RichFaces.ajax("form:richTable:scroller2",event,{"parameters":{"form:richTable:scroller2:page":data.page} ,"incId":"1"} )},{"digitals":{"form:richTable:scroller2_ds_5":"5","form:richTable:scroller2_ds_4":"4","form:richTable:scroller2_ds_3":"3","form:richTable:scroller2_ds_2":"2","form:richTable:scroller2_ds_1":"1"} ,"buttons":{"left":{"form:richTable:scroller2_ds_prev":"previous","form:richTable:scroller2_ds_f":"first","form:richTable:scroller2_ds_fr":"fastrewind"} } ,"currentPage":5} )</script></span>]]></update>
<update id="form:richTable:tb"><![CDATA[<tbody id="form:richTable:tb" class="rf-dt-b"><tr id="form:richTable:0" class="rf-dt-r rf-dt-fst-r"><td id="form:richTable:4:j_idt6" class="rf-dt-c"><span id="form:richTable:4:pageContent">5 page content</span></td></tr></tbody>]]></update>
<update id="form:richTable:sc"><![CDATA[<tbody id="form:richTable:sc"><tr><td style="display: none"><script type="text/javascript">new RichFaces.ui.DataTable("form:richTable",{"ajaxEventOptions":{} } )</script></td></tr></tbody>]]></update>
<update id="javax.faces.ViewState"><![CDATA[-949751792756128810:762307929571065312]]></update>
</changes>
</partial-response>
{code}
When I subsequently click the "first page" button, I see:
{code}
<?xml version='1.0' encoding='UTF-8'?>
<partial-response><changes><update id="javax.faces.ViewState"><![CDATA[-949751792756128810:762307929571065312]]></update></changes></partial-response>
{code}
So it seems what is coming back from the server is incorrect. Next I will step through the server side piece of the AJAX response.
> UI Iteration tests failing
> --------------------------
>
> Key: RF-11360
> URL: https://issues.jboss.org/browse/RF-11360
> Project: RichFaces
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: component-ScrollableDataTable
> Reporter: Brian Leathem
> Assignee: Pavol Pitonak
> Fix For: 4.1.0.Milestone2
>
>
> UI Iteration tests are failing:
> Failed tests:
> testOutDataScrollerFirstLastButtons(org.richfaces.renderkit.DataScrollerRenderTest)
> testInnerDataScrollerFirstLastButtons(org.richfaces.renderkit.DataScrollerRenderTest)
> testOutDataScrollerNextPreviousButtons(org.richfaces.renderkit.DataScrollerRenderTest)
> testInnerDataScrollerNextPreviousButtons(org.richfaces.renderkit.DataScrollerRenderTest)
> testOutDataScrollerFastButtons(org.richfaces.renderkit.DataScrollerRenderTest)
> testInnerDataScrollerFastButtons(org.richfaces.renderkit.DataScrollerRenderTest)
> testOutDataScrollerDigitalButtons(org.richfaces.renderkit.DataScrollerRenderTest)
> testInnerDataScrollerDigitalButtons(org.richfaces.renderkit.DataScrollerRenderTest)
> I deployed the test.jsf file in a sample app, and the behavior is indeed broken.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list