thank you for yours answers
i have an aspect "cse:client" with proprities "name of client" ……..
i like that when the space is created it will be created with this aspect (i don't like add the aspect after this creation with the web client of alfresco)
*/
createSpaceOK: function(actionEl, path)
{
// gather the input data
var panel = $(actionEl).getParent();
var spaceName = panel.getElementById("space-name").value;
var spaceTitle = panel.getElementById("space-title").value;
var spaceDesc = panel.getElementById("space-description").value;
if (spaceName.length != 0)
{
// ajax call to create space
YAHOO.util.Connect.asyncRequest(
"POST",
getContextPath() + '/ajax/invoke/MySpacesBean.createSpace',
{
success: function(response)
{
if (response.responseText.indexOf("OK:") == 0)
{
MySpaces.refreshList();
}
else
{
alert("Error during creation of new space: " + response.responseText);
}
MySpaces.closePopupPanel();
},
failure: function(response)
{
alert("Error during creation of new space: " + response.responseText);
MySpaces.closePopupPanel();
}
},
//The third argument â€â€