You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2023/04/12 07:22:00 UTC

[jira] [Resolved] (SLING-657) inconsistent date behaviour of sling.wizard()

     [ https://issues.apache.org/jira/browse/SLING-657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved SLING-657.
------------------------------------
    Resolution: Won't Fix

> inconsistent date behaviour of sling.wizard()
> ---------------------------------------------
>
>                 Key: SLING-657
>                 URL: https://issues.apache.org/jira/browse/SLING-657
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>         Environment: Sling bundled with CRX Quickstart
>            Reporter: Michael Marth
>            Priority: Major
>
> I create a form in a .jst page that creates a new node and add the special "craeted" field like this:
> 					<form class="hform" method="POST" action="/content/myblog/posts/*">
> 	          				<legend>Post form</legend>
> 							
> 								<p><label>Title</label>
> 								<input name="title" type="text" size="80"></p>
> 								
> 								<p><label>Body</label>
> 								<textarea name="posttext" cols="40" rows="5"></textarea></p>
> 								
> 								<input type="hidden" name="created"/> 
> 								<input name=":redirect" type="hidden" value="/content/myblog/posts.admin.html"/> 
> 													
> 						<input type="submit" value="Post" class="button">
> 					</form>
> 					<script>Sling.wizard();</script>
> This will create the node with an attribute "created" of JCR type Date
> Then, I use the same .jst to edit this node and post again. This time, "created" will be a String property.
> Causes other scripts that use this property to fail



--
This message was sent by Atlassian Jira
(v8.20.10#820010)