struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fea jabi <zy...@hotmail.com>
Subject sjg:grid ----- Reload grid after form submit
Date Fri, 04 Sep 2015 18:55:33 GMT
 Need to reload the sjg:grid on a click of submit button. How to do this? I tried the below
 


JSP ------------ Has this

<s:url var="deptSearchResultsUrl" action="grid/deptSearchResultsAJAXAction"/>
 

<sj:submit formIds="deptFormId" href="%{deptSearchResultsUrl}" id="searchId" name="search"
value="Search" dataType="json" onSuccessTopics="onSearchSucessTopics" cssClass="button"/>


 

    <sjg:grid

    	id="searchGridId"

    	formIds="deptFormId"

    	reloadTopics="reloadGrid"

        dataType="json"       

        pager="true"

        gridModel="searchResults"

        rowList="10,15,20"

        rowNum="15"

        rownumbers="true"

        viewrecords="true"

.......

	>

        ..........

</sjg:grid>
 


<script ....>

$(document).ready(function() {

  $.subscribe('onSearchSucessTopics', function(event) {

	?????Not sure how to trigger reload grid?????

		

	});

});

</script>
 		 	   		  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message