You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Daniel, de la Cuesta Navarrete" <cu...@gmail.com> on 2009/07/01 09:29:49 UTC

Delete value in a multi-valued property

Hi,

First of all, congratulations for the designation of Sling as  a Apache
top-level project, great job!

Here is the question,

Is there any way to delete a value in a multi-valued property vía Sling POST
Servlet?

Something like

<input type="hidden" name="myproperty@Delete" value="the-value-to--delete"
/>

I know the value attribute is ignored in this case, but is there any way to
do this?

Thank you.

Re: Delete value in a multi-valued property

Posted by Alexander Klimetschek <ak...@day.com>.
On Wed, Jul 1, 2009 at 9:29 AM, Daniel, de la Cuesta
Navarrete<cu...@gmail.com> wrote:
> Is there any way to delete a value in a multi-valued property vía Sling POST
> Servlet?
>
> Something like
>
> <input type="hidden" name="myproperty@Delete" value="the-value-to--delete"
> />
>
> I know the value attribute is ignored in this case, but is there any way to
> do this?

AFAIK you have to "recreate" the whole multivalue property, ie. post
the full property again as an array of values but with the value
missing that you want to delete.

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com