Missing dataTable data after navigating back
-
- Posts: 37
- Joined: 27 Feb 2012, 03:44
It exists in the "new" model that is rendered after refreshing the page. For example if the first DataTable had IDs A,B,C,D and you view "C" and then refresh the DataTable now has E,F,G,H and when you view the details of "G" it is null, however the ajax request sends back carId="G"
-
- Posts: 37
- Joined: 27 Feb 2012, 03:44
Here is the Ajax post for both the working and not-working calls, they are basically identical other than the ID of the car (which existed in the Id column of the table rendered.)
Here is the working POST
Here is the working Response
Here is the not working POST
Here is the not working Response
Here is the working POST
Code: Select all
javax.faces.partial.ajax=true&
javax.faces.source=form%3AcarTable&
javax.faces.partial.execute=form%3AcarTable&
javax.faces.partial.render=form%3AcarDetail&
javax.faces.behavior.event=rowSelect&
javax.faces.partial.event=rowSelect&
form%3AcarTable_instantSelectedRowKey=684fd157&
form%3AcarTable_selection=684fd157&
form_SUBMIT=1&
javax.faces.ViewState=D8tmf%2BZk8kUNVseO4jnRmPkvkLRAi9DbLfJc84XWXkoBP6Aq
Code: Select all
<?xml version="1.0" encoding="UTF-8"?><partial-response><changes><update id="growl"><![CDATA[<span id="growl"></span><script id="growl_s" type="text/javascript">$(function(){PrimeFaces.cw('Growl','widget_growl',{id:'growl',sticky:false,life:800,escape:true,msgs:[{summary:"Car Selected",detail:"",severity:'info'}]});});</script>]]></update><update id="form:carDetail"><![CDATA[<div id="form:carDetail" class="ui-outputpanel ui-widget" style="text-align:center;"><table id="form:j_id_l" class="ui-panelgrid ui-widget" role="grid"><thead class="ui-panelgrid-header"><tr class="ui-widget-header" role="row"><td colspan="2" role="columnheader"><img id="form:j_id_m" src="RES_NOT_FOUND" alt="" /></td></tr></thead><tbody><tr class="ui-widget-content" role="row"><td role="gridcell" class="ui-panelgrid-cell label">Id:</td><td role="gridcell" class="ui-panelgrid-cell value">684fd157</td></tr><tr class="ui-widget-content" role="row"><td role="gridcell" class="ui-panelgrid-cell label">Year</td><td role="gridcell" class="ui-panelgrid-cell value">1993</td></tr><tr class="ui-widget-content" role="row"><td role="gridcell" class="ui-panelgrid-cell label">Color:</td><td role="gridcell" class="ui-panelgrid-cell value"><span style="color:Blue">Blue</span></td></tr><tr class="ui-widget-content" role="row"><td role="gridcell" class="ui-panelgrid-cell label">Price:</td><td role="gridcell" class="ui-panelgrid-cell value">$63,917.00</td></tr></tbody></table></div>]]></update><update id="j_id__v_0:javax.faces.ViewState:1"><![CDATA[D8tmf+Zk8kUNVseO4jnRmPkvkLRAi9DbLfJc84XWXkoBP6Aq]]></update></changes></partial-response>
Code: Select all
javax.faces.partial.ajax=true&
javax.faces.source=form%3AcarTable&
javax.faces.partial.execute=form%3AcarTable&
javax.faces.partial.render=form%3AcarDetail&
javax.faces.behavior.event=rowSelect&
javax.faces.partial.event=rowSelect&
form%3AcarTable_instantSelectedRowKey=4cff07a7&
form%3AcarTable_selection=4cff07a7&
form_SUBMIT=1&
javax.faces.ViewState=qoRphhp5jpENVseO4jnRmEkpjgquftJNz%2BxwKSuRWDQ%2BsFJf
Code: Select all
<?xml version="1.0" encoding="UTF-8"?><partial-response><changes><update id="growl"><![CDATA[<span id="growl"></span><script id="growl_s" type="text/javascript">$(function(){PrimeFaces.cw('Growl','widget_growl',{id:'growl',sticky:false,life:800,escape:true,msgs:[{summary:"Car Selected IS NULL",detail:"",severity:'info'}]});});</script>]]></update><update id="form:carDetail"><![CDATA[<div id="form:carDetail" class="ui-outputpanel ui-widget" style="text-align:center;"></div>]]></update><update id="j_id__v_0:javax.faces.ViewState:1"><![CDATA[qoRphhp5jpENVseO4jnRmEkpjgquftJNz+xwKSuRWDQ+sFJf]]></update></changes></partial-response>
-
- Information
-
Who is online
Users browsing this forum: No registered users and 77 guests