rem: cocoon.sendPage("redirect.html", { "url" : redirectUri }); 
add: cocoon.redirectTo(redirectUri); 
context: function groupAddGroup() {	resolve();	try {	    var redirectUri = getRequestUri();        	    var groupManager = getAccreditableManager().getGroupManager();		var groupId = "";		var name = "";		var description = "";		var message = "";				while (true) {			cocoon.sendPageAndWait("groups/profile.xml", {				"page-title" : "Add Group",				"group-id" : groupId,		    	"name" : name,		    	"description" : description,		    	"message" : message,		    	"new-group" : true			});					    if (cocoon.request.get("cancel")) {		    	break;		    }		    			message = "";			groupId = cocoon.request.get("group-id");			name = cocoon.request.get("name");			description = cocoon.request.get("description");						var existingGroup = groupManager.getGroup(groupId);			if (existingGroup != null) {				message = "This group already exists.";			}			else if (!Packages.org.apache.lenya.ac.impl.AbstractItem.isValidId(groupId)) {	          	message = "This is not a valid group ID.";			}			else {				var configDir = groupManager.getConfigurationDirectory();				var group = new Packages.org.apache.lenya.ac.file.FileGroup(configDir, groupId);				group.setName(name);				group.setDescription(description);				group.save();				groupManager.add(group);				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