public void edit(String namespace, String name, String value)
{
if (!element.hasAttribute("id"))
{
throw new DexteritySyntaxException("ajax target must have an `id' attribute");
}
String id = element.getAttribute("id");
String pre = getDexterAttribute(element, "pre");
String post = getDexterAttribute(element, "post");
String params = getDexterAttribute(element, "params");
if(params != null)
{
element.setUserData(PARAMS, params,null);
}
boolean applyToChildren = false;
String method;
if(value.startsWith("#"))
{
applyToChildren = true;
value = value.substring(1);
}
if(value.charAt(0) == '!')
{
method="post";
value = value.substring(1);
}
else if(value.charAt(1) == '!')
{
switch(value.charAt(0))
{
case 'P' :
method = "put";
break;
case 'H' :
method = "head";
break;
case 'D' :
method = "delete";
break;
case 'O' :
method = "options";
break;
default :
throw new DexteritySyntaxException("illegal method specifier");
}
value = value.substring(2);
}
else
{