You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Michael Marth (JIRA)" <ji...@apache.org> on 2008/08/18 11:11:44 UTC

[jira] Commented: (SLING-615) Some jst's do not work on Mac

    [ https://issues.apache.org/jira/browse/SLING-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623291#action_12623291 ] 

Michael Marth commented on SLING-615:
-------------------------------------

I attached the app. Use it like this:

fill in content at .../content/tss/posts/*.post.html
aprrove content at .../content/tss/posts.admin.html
view list at .../content/tss/posts.html

on my Windows machine all these steps work. On a Mac the first and the third seem not to work.

> Some jst's do not work on Mac
> -----------------------------
>
>                 Key: SLING-615
>                 URL: https://issues.apache.org/jira/browse/SLING-615
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Felix Meschberger
>         Attachments: tss.zip
>
>
> Michael Marth reported on some JSTs not working on Mac OS X:
> "I saw this problem during a presales training, but thought it is with a
> particular machine only. Now Kathy has sent the mail below where the problem
> with jst's on Macs is described in detail.
> The problem does not occur on Windows
> --
> For some reason, on the mac, Phil and I have had to name some of the files that
> you use as jst to esp. (Bertrand suggested this solution while we were in for
> training.) The two problem files are post.jst/esp and html.jst/esp.  Naming
> these two files with the .jst extension just returns an empty page.   (None of
> our XP buddies are having this problem, only us mac users.) For some reason,
> admin.jst works just fine...    (and, yes, I am moving the files up to the tss
> directory as described in the errata)
> Once renamed, post.esp also works just fine. 
> However, html.esp is throwing a '"Sling" is not defined' error for the following
> statement:
> posts=Sling.getContent("/content/tss/posts", 2);
> I saw in a PDF file on the wiki that I might have to include sling.js as a
> script in the file.  And the notes say that I also have to sling-551.js.  So I
> included both files in the following fashion, as suggested by the Non CMS Web
> App.pdf document:
> <script src="/system/sling.js"></script>
> <script src="/system/sling-551.js"></script>
> (and yes, both of those files are in /system)
> However, it is throwing the same error.  So I have two questions:
> 1) Why is jst working only intermittently on the mac?
> 2) If we have to rename the files to esp, how can I get html.esp to recognize
> the sling library? Do I have to put sling.js in a different place?"
> I do not have an assessment for this issue. Maybe someone else here ?
> In addition, I also asked for the sample files and logs etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.