anchor.diff:  	    var val = cell.val();
   	   
   	    return val;
  -	}
  -	
  -	
  -  
  -
  -  var _beforeShowAddForm = function(formId) {
  -	   
  -  }
  -  
  -  var _beforeShowEditForm = function(formId) {
  -  }
  - 
  -  _del_function = function (id) {
  -	     alert("Record cannot be deleted. Instead, use the 'edit' button to mark the '"+$("#grid_id").getRowData(id).login+"' record as inactive.");
  -	     return false;
  - };	
  -	
  -	
  - _errorTextFormat = function(response) {
  -		return response.responseText;
  -  }
  -
  -	
  -  _afterSubmit = function(response, data) {
  -	  
  -       waspFade('statusMessage',response.responseText);
  -	
  -	   return [true,''];     
  - }
  -
  -  
  -  var _url='/wasp/<tiles:insertAttribute name="area" />/listJSON.do?selId=${param.selId}';
  -  var _editurl='/wasp/<tiles:insertAttribute name="area" />/detail_rw/updateJSON.do';
  -  
  -  var _editAttr={
  -		  width:'auto',closeAfterEdit:true,closeOnEscape:true,afterSubmit:_afterSubmit,errorTextFormat:_errorTextFormat,beforeShowForm:_beforeShowEditForm,reloadAfterSubmit:true,recreateForm:true
  -  };
  -  
  -  var _addAttr={
  -	serializeEditData: function(data){ return $.param($.extend({}, data, {id:0}));},//pass '0' on add instead of empty string
  -	closeAfterAdd:true,closeOnEscape:true,errorTextFormat:_errorTextFormat,afterSubmit:_afterSubmit,beforeShowForm:_beforeShowAddForm,width:'auto',reloadAfterSubmit:true,recreateForm:true
  -  };
  -  
  -  var _delAttr={};
  -  
  -  var _searchAttr={drag:true,resize:true,modal:true,caption:'Lookup',closeOnEscape:true,sopt:['eq','ne'],multipleSearch: false, closeAfterSearch: true };
  -  
  -  var _navAttr={view:true,del:true,delfunc:_del_function};
  -  
  -  //these will be populated by the wasp:field tags below
  -  var colNames=[];  
  -  var colModel=[];  
  -  var colErrors=[];
  -  
  -  <tiles:insertAttribute name="grid-columns" />
  -  	
  -//add meta fields
  - <c:forEach items="${_metaList}" var="_meta" varStatus="status">
  -
  -	_field_name='${_meta.k}';
  -	_wasp_prop='${_meta.property}';
  -
  -	required='${_meta.property.constraint}'=='NotEmpty';
  -
  -	editrules={edithidden:true};
  -	formoptions={};
  -	if(required){
  -		formoptions={elmsuffix:'<font color=red>*</font>'};
  -		editrules={edithidden:true,custom:true,custom_func:_validate_required};	
  -	}
  -
  -	editoptions={size:20};
  - 	edittype='text';
  - 	   
  -   <c:if test="${not empty _meta.property.control}">
  -       editoptions={size:20,value:{}};
  -       edittype='select';
  -  		<c:if test="${_meta.property.control.items != null}">  	
  -  			<c:set var="selectItems" scope="request" value="${requestScope[_meta.property.control.items]}"/>
  -  			<c:set var="itemValue" scope="request">${_meta.property.control.itemValue}</c:set>
  -  			<c:set var="itemLabel" scope="request">${_meta.property.control.itemLabel}</c:set>   	
  -  		</c:if>
  - 		<c:if test="${_meta.property.control.items == null}">
  -	  		<c:set var="selectItems" scope="request" value="${_meta.property.control.options}" />
  - 			<c:set var="itemValue" scope="request">value</c:set>
  - 			<c:set var="itemLabel" scope="request">label</c:set>  	
  - 		</c:if>
  -  	              
  - 		selectItems=<wasp:json object="${selectItems}" />;
  -
  - 		editoptions['value']['']=' --- select --- ';
  - 		for(sKey in selectItems) {
  - 			_option=selectItems[sKey];
  - 			_value=_option['${itemValue}'];
  - 			_label=_option['${itemLabel}'];
  - 			
  - 			editoptions['value'][_value]=_label;
  - 		}
  - 		//
  -  </c:if>          
  - 		
  -  //populate jq structures
  -  colNames.push('${_meta.property.label}');
  -
  -	colModel.push(
  -			{name:'${_meta.k}', width:80, edittype:edittype, align:'right',hidden:true,editable:true,editrules:editrules,formoptions:formoptions,editoptions:editoptions}
  -	);
  -	
  -	colErrors.push('${_meta.property.error}');
  -
  -</c:forEach>
  -
  +  }
  +  
  + <%-- created main jqgrid object --%> 
    function createGrid() {
    
   $(function(){
   		
  +<%--  call to JQGrid API
  +// see JQGrid documentation for parameter descriptions --%>
   var navGrid=$("#grid_id").jqGrid({
     url:_url,
     editurl:_editurl,
  
positive.code: 		  _editAttr
  );
  
  
  <tiles:insertAttribute name="toolbar-buttons" />
  
  if (_enableFilterToolbar) {
  	$('#grid_id').jqGrid('filterToolbar', { stringResult: true, searchOnEnter: false });
  }
  
negative.code:   	return output;
     }
  
    <%-- display message / fade it after 5 seconds. --%>
    function waspFade(el, msg) {
  		
  	  $('#'+el).text(msg);
  