You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Alvaro Cabrerizo <to...@gmail.com> on 2010/03/12 23:42:20 UTC

Re: Versioning - Default POST behaviour

Hi:

Try to add the mixinType in the form. For example:

<form ...>
...
<input type="hidden" name="jcr:mixinTypes" value="mix:versionable" />
...
</form>


Regards.



2010/3/12 Carpenter Ngo <cn...@columbia.edu>

> Hi there,
>
>
>
> I am interested in making use of JackRabbit's versioning capabilities,
> but can not seem to find any evidence of this in the Sling default post
> servlets (SlingPostServlet.java) in trunk.  Currently, it seems that
> subsequent form submissions to an existing node will just generate a new
> node with an appended sequential identifier (generateName() of
> ModifyOperation.java). Am I overlooking something?
>
>
>
> Thanks.
>
> Carpenter
>
>

Re: Versioning - Default POST behaviour

Posted by Justin Edelson <ju...@gmail.com>.
Be nice if someone created a JIRA issue for this.

Justin

On 3/13/10 1:49 AM, Kent Barber wrote:
> Even with the mixinType set currently there is no way of creating more than one version using Sling. This is something that i think they want to add to Sling at some point in the future. It is apparently possible to do this yourself somehow but I am not a java user so have no idea how to do this myself (using servlets or something?). So I myself have abandoned using Sling and Jackrabbit for now until this functionality is available.
> 
> On Mar 12, 2010, at 11:42 PM, Alvaro Cabrerizo wrote:
> 
>> Hi:
>>
>> Try to add the mixinType in the form. For example:
>>
>> <form ...>
>> ...
>> <input type="hidden" name="jcr:mixinTypes" value="mix:versionable" />
>> ...
>> </form>
>>
>>
>> Regards.
>>
>>
>>
>> 2010/3/12 Carpenter Ngo <cn...@columbia.edu>
>>
>>> Hi there,
>>>
>>>
>>>
>>> I am interested in making use of JackRabbit's versioning capabilities,
>>> but can not seem to find any evidence of this in the Sling default post
>>> servlets (SlingPostServlet.java) in trunk.  Currently, it seems that
>>> subsequent form submissions to an existing node will just generate a new
>>> node with an appended sequential identifier (generateName() of
>>> ModifyOperation.java). Am I overlooking something?
>>>
>>>
>>>
>>> Thanks.
>>>
>>> Carpenter
>>>
>>>
> 


Re: Versioning - Default POST behaviour

Posted by Kent Barber <wh...@gmail.com>.
Even with the mixinType set currently there is no way of creating more than one version using Sling. This is something that i think they want to add to Sling at some point in the future. It is apparently possible to do this yourself somehow but I am not a java user so have no idea how to do this myself (using servlets or something?). So I myself have abandoned using Sling and Jackrabbit for now until this functionality is available.

On Mar 12, 2010, at 11:42 PM, Alvaro Cabrerizo wrote:

> Hi:
> 
> Try to add the mixinType in the form. For example:
> 
> <form ...>
> ...
> <input type="hidden" name="jcr:mixinTypes" value="mix:versionable" />
> ...
> </form>
> 
> 
> Regards.
> 
> 
> 
> 2010/3/12 Carpenter Ngo <cn...@columbia.edu>
> 
>> Hi there,
>> 
>> 
>> 
>> I am interested in making use of JackRabbit's versioning capabilities,
>> but can not seem to find any evidence of this in the Sling default post
>> servlets (SlingPostServlet.java) in trunk.  Currently, it seems that
>> subsequent form submissions to an existing node will just generate a new
>> node with an appended sequential identifier (generateName() of
>> ModifyOperation.java). Am I overlooking something?
>> 
>> 
>> 
>> Thanks.
>> 
>> Carpenter
>> 
>>