rem: cocoon.sendPage("redirect.html", { "url" : redirectUri }); 
add: cocoon.redirectTo(redirectUri); 
context: function groupChangeProfile() {	resolve();	try {		    var redirectUri = getRequestUri();        var groupId = getAccreditableId();        	    var groupManager = getAccreditableManager().getGroupManager();	    var group = groupManager.getGroup(groupId);		var name = group.getName();		var description = group.getDescription();				// at the moment the loop is executed only once (no form validation)			    while (true) {		    cocoon.sendPageAndWait("groups/profile.xml", {		    	"group-id" : groupId,		    	"name" : name,		    	"description" : description,		    	"page-title" : "Edit Group"		    });		    		    if (cocoon.request.get("cancel")) {		    	break;		    }		    		    if (cocoon.request.get("submit")) {			    name = cocoon.request.get("name");		       	group.setName(name);		       	description = cocoon.request.get("description");		       	group.setDescription(description);		   		group.save();		    	break;		    }		    }	    	   	cocoon.sendPage("redirect.html", { "url" : redirectUri });   	}   	finally {	   	release();   	}}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/5b9c6ae2fb641effa76e35efe68abb2bee660da7/group-admin.js/clean/src/webapp/lenya/content/admin/groups/group-admin.js