<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Master/Detail integration with Spring MVC not calling server side in onSelectRow event</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/masterdetail-integration-with-spring-mvc-not-calling-server-side-in-onselectrow-event</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/masterdetail-integration-with-spring-mvc-not-calling-server-side-in-onselectrow-event/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>danw on Master/Detail integration with Spring MVC not calling server side in onSelectRow event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/masterdetail-integration-with-spring-mvc-not-calling-server-side-in-onselectrow-event#p21926</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/masterdetail-integration-with-spring-mvc-not-calling-server-side-in-onselectrow-event#p21926</guid>
        	        	<description><![CDATA[<p>Hello:</p>
</p>
<p>I am trying to get a master/detail form to work with Spring MVC.&#160; Below is my code.&#160; In Firefox, I use Firebug to step through the javascript code.&#160; The master table loads fine.&#160; I also see my breakpoint hit when I select a row in the master table.&#160; In the onSelectRow event, I see the line:</p>
</p>
<p>jq("#detailgrid").jqGrid(&#39;setGridParam&#39;,{url:&#39;/spring-jqgrid-integration/krams/crud/edit?ids=&#39; + ids}).trigger(&#39;reloadGrid&#39;);</p>
</p>
<p>being hit.&#160; I know the URL may look odd, but I already tried &#39;/spring-jqgrid-integration/krams/crud/edit&#39; and changed mtype to &#39;POST&#39;, but that did not work either.&#160; By not working, I mean simply that the server side doesn&#39;t even get called....this is my first problem.&#160; Note that in my code, I removed all the paging stuff.&#160; Is it possible that this is causing my problem?</p>
</p>
<p>Do you have any insight as to why the server side is not being called?</p>
</p>
<p>Dan</p>
</p>
<p>&#60;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %&#62;<br />&#60;%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %&#62;</p>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62;<br />&#60;html xmlns="http://www.w3.org/1999/xhtml"&#62;</p>
<p>&#60;head&#62;<br />&#160;&#160; &#160;&#60;link rel="stylesheet" type="text/css" media="screen" href="/spring-jqgrid-integration/resources/css/jquery/ui-lightness/jquery-ui-1.8.6.custom.css" /&#62;<br />&#160;&#160; &#160;&#60;link rel="stylesheet" type="text/css" media="screen" href="/spring-jqgrid-integration/resources/css/jqgrid/ui.jqgrid.css" /&#62;</p>
<p>&#160;&#160; &#160;&#60;script type="text/javascript" src="/spring-jqgrid-integration/resources/js/jquery/jquery-1.4.4.min.js"&#62;&#60;/script&#62;<br />&#160;&#160; &#160;&#60;script type="text/javascript"&#62;<br />&#160;&#160; &#160;&#160;&#160;&#160; var jq = jQuery.noConflict();<br />&#160;&#160; &#160;&#60;/script&#62;<br />&#160;&#160; &#160;&#60;script type="text/javascript" src="/spring-jqgrid-integration/resources/js/jquery/jquery-ui-1.8.6.custom.min.js"&#62;&#60;/script&#62; <br />&#160;&#160; &#160;&#60;script type="text/javascript" src="/spring-jqgrid-integration/resources/js/jqgrid/grid.locale-en.js" &#62;&#60;/script&#62;<br />&#160;&#160; &#160;&#60;script type="text/javascript" src="/spring-jqgrid-integration/resources/js/jqgrid/jquery.jqGrid.min.js"&#62;&#60;/script&#62;<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;&#60;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&#62;<br />&#160;&#160; &#160;&#60;title&#62;JqGrid - Spring 3 MVC Integration Tutorial&#60;/title&#62;<br />&#160;&#160; &#160;<br />&#60;/head&#62;</p>
<p>&#60;body &#62;</p>
<p>&#60;script type="text/javascript"&#62;<br />&#160;&#160; &#160;jq(function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;jq("#headergrid").jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;url:&#39;/spring-jqgrid-integration/krams/crud&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;json&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;colNames:[&#39;Id&#39;, &#39;First Name&#39;, &#39;Last Name&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;id&#39;,index:&#39;id&#39;, width:55,editable:false,editoptions:{readonly:true,size:10},hidden:true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;firstName&#39;,index:&#39;lastName&#39;, width:100,editable:true, editrules:{required:true}, editoptions:{size:10}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;lastName&#39;,index:&#39;firstName&#39;, width:100,editable:true, editrules:{required:true}, editoptions:{size:10}}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum:20,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;rowList:[20,40,60],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;height: 200,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;autowidth: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rownumbers: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;sortname: &#39;id&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; multiselect: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; caption:"Users",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; emptyrecords: "Empty records",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; loadonce: false,<br />&#160;&#160; &#160;&#160;&#160; &#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; jsonReader : {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: "rows",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page: "page",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; total: "total",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; records: "records",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cell: "cell",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; id: "id"<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;onSelectRow: function(ids) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; if(ids == null) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; ids=0;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; if(jq("#detailgrid").jqGrid(&#39;getGridParam&#39;,&#39;records&#39;) &#62; 0 )<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jq("#detailgrid").jqGrid(&#39;setGridParam&#39;,{url:&#39;/spring-jqgrid-integration/krams/crud/edit?ids=&#39; + ids}).trigger(&#39;reloadGrid&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jq("#detailgrid").jqGrid(&#39;setCaption&#39;,"Invoice Detail: "+ids);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; } else {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; jq("#detailgrid").jqGrid(&#39;setGridParam&#39;,{url:&#39;/spring-jqgrid-integration/krams/crud/edit?ids=&#39; + ids}).trigger(&#39;reloadGrid&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; jq("#detailgrid").jqGrid(&#39;setCaption&#39;,"Invoice Detail: "+ids);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;});<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;jq("#detailgrid").jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;height: 100,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url:&#39;/spring-jqgrid-integration/krams/crud/edit&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;mtype: &#39;GET&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;json&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;colNames:[&#39;Id&#39;, &#39;First Name&#39;, &#39;Last Name&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;id&#39;,index:&#39;id&#39;, width:55,editable:false,editoptions:{readonly:true,size:10},hidden:true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;firstName&#39;,index:&#39;lastName&#39;, width:100,editable:true, editrules:{required:true}, editoptions:{size:10}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;lastName&#39;,index:&#39;firstName&#39;, width:100,editable:true, editrules:{required:true}, editoptions:{size:10}}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum:20,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;rowList:[20,40,60],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;height: 200,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;autowidth: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rownumbers: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;sortname: &#39;id&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; multiselect: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; caption:"Users",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; emptyrecords: "Empty records",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; loadonce: false,<br />&#160;&#160; &#160;&#160;&#160; &#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; jsonReader : {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: "rows",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page: "page",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; total: "total",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; records: "records",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cell: "cell",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; id: "id"<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;caption:"Invoice Detail"<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});<br />&#160;&#160; &#160;});</p>
<p>&#160;&#160; &#160;<br />&#60;/script&#62;<br />&#160; <br />&#160; <br />&#60;p&#62;JqGrid - Spring 3 MVC Integration Tutorial&#60;/p&#62;<br />&#60;div id="jqgrid"&#62;<br />&#160;&#160; &#160;&#60;table id="headergrid"&#62;&#60;/table&#62;<br />&#160;&#160; &#160;&#60;table id="detailgrid"&#62;&#60;/table&#62;<br />&#60;/div&#62;</p>
<p>&#60;/body&#62;</p>
<p>&#60;/html&#62;</p>
]]></description>
        	        	<pubDate>Thu, 03 Feb 2011 15:52:23 +0200</pubDate>
        </item>
</channel>
</rss>