Hi,
I would like to rerender a tile with jQuery and not with Spring Dojo.
I do a get:
A ajax script is calledHTML Code:<a href="#" class="feedback" >note</a><br/>
A Spring 3 controller is called which should enable a Feedback object.Code:$(document).ready(function() { $("a.feedback").click(function(){ $.ajax({ url:'<c:url value="/feedback?ajaxSource=true" />', success: function(data){ $('#feedback').html(data); } }); });
In a template.jsp I have defined a feedback tile which I would like to be rerenderd after the GET feedbackCode:@RequestMapping(value="/feedback", method=RequestMethod.GET) public @ResponseBody void feedback(Feedback feedback) { }
I guess something is missing in the jQuery script. I just want to re-render the whole tile via jQueryHTML Code:<tiles:insertAttribute name="result" /> feedback object: <c:out value="${feedback.note}" /> <c:if test="${!empty feedback}" > <tiles:insertAttribute name="feedback" /> </c:if>
Thankx for the help,
Sanoj


Reply With Quote