Re: Revisiting the resource super type handling

2009-06-26 Thread Tobias Bocanegra
On Fri, Jun 26, 2009 at 10:30 AM, Carsten Ziegelercziege...@apache.org wrote: Hi, while changing the script resolution in the last days a little bit to make it cacheable, I stumbled across the handling of the resource super type. The jcr resource implementation checks if the node has the

Re: ACL permissions on nodes.

2009-06-23 Thread Tobias Bocanegra
hi, according to jsr283 (see 16.2.3), the jcr:write is an aggregate privilege: • jcr:write: An aggregate privilege that contains: o jcr:modifyProperties o jcr:addChildNodes o jcr:removeNode o jcr:removeChildNodes so, jcr:write should be sufficient. i can imagine, that the individual privilege

[jira] Commented: (SLING-649) checkboxes not handled by SlingPostServlet

2009-05-26 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12713080#action_12713080 ] Tobias Bocanegra commented on SLING-649: Even with the value attribute included

Re: creating new properties with HTTP request

2009-05-12 Thread Tobias Bocanegra
try '' as delimiter. see: http://en.wikipedia.org/wiki/Query_string and: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/encodeURIComponent regards, toby 2009/5/12 vkrejcirik vkrejci...@gmail.com: I need to create more properties with HTTP request. When I

Re: Event Listeners

2009-05-05 Thread Tobias Bocanegra
On Tue, May 5, 2009 at 3:26 PM, Carsten Ziegeler cziege...@apache.org wrote: Ian Boston wrote: Are there any facilities in sling for registering jcr event listeners ? Both the external javax.jcr.observation.EventListener and the SynchronousEventListener type. No we don't have extra support

Re: Security in Sling

2009-04-22 Thread Tobias Bocanegra
On Wed, Apr 22, 2009 at 12:41 PM, Felix Meschberger fmesc...@gmail.com wrote: Hi, Jukka Zitting schrieb: Hi, I was thinking about the implications of giving a user write access to a subtree of the repository. With that access the user could now upload a new script and create a node that

Re: svn commit: r766087 - in /incubator/sling/trunk/bundles/commons/json/src: main/java/org/apache/sling/commons/json/jcr/JsonJcrNode.java test/java/org/apache/sling/commons/json/jcr/JsonJcrNodeTest

2009-04-17 Thread Tobias Bocanegra
hi, those 2 files are missing the apache license header. regards, toby btw: i think .* imports are discouraged by apache coding conventions. On Fri, Apr 17, 2009 at 7:12 PM, vram...@apache.org wrote: Author: vramdal Date: Fri Apr 17 17:12:57 2009 New Revision: 766087 URL:

[jira] Commented: (SLING-902) add java annotation support for sling scr components/servlets

2009-03-29 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12693622#action_12693622 ] Tobias Bocanegra commented on SLING-902: see also my suggestions in http

[jira] Commented: (SLING-538) SlingPropertyValueHelper.setPropertyAsIs() handles impossible empty-value-list case

2009-03-10 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12680619#action_12680619 ] Tobias Bocanegra commented on SLING-538: the value handling should work like

[jira] Commented: (SLING-590) Add resource.adaptTo(ValueMap.class) to page context attributes

2009-03-06 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12679593#action_12679593 ] Tobias Bocanegra commented on SLING-590: while a think that backward compatibility

Re: [VOTE] Source Tree Restructuring

2009-02-18 Thread Tobias Bocanegra
On 2/18/09, Carsten Ziegeler cziege...@apache.org wrote: Tobias Bocanegra wrote: just out of curiosity: why is jcrinstall not in jcr ? i find it awkward, that a JCR based framework keeps a JCR based bundle/config loading in contrib :-) :) Actually I agree that jcrinstall should

Re: [VOTE] Source Tree Restructuring

2009-02-17 Thread Tobias Bocanegra
just out of curiosity: why is jcrinstall not in jcr ? i find it awkward, that a JCR based framework keeps a JCR based bundle/config loading in contrib :-) regards, toby On 2/17/09, Carsten Ziegeler cziege...@apache.org wrote: Hi, we recently discussed the new structure for our source tree.

[jira] Commented: (SLING-848) Support getting versioned resources by using uri path parameters

2009-02-05 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12670740#action_12670740 ] Tobias Bocanegra commented on SLING-848: content/home/tobi.selector.html?sling:v

[jira] Created: (SLING-850) PostServlet :order does not set any changes

2009-02-05 Thread Tobias Bocanegra (JIRA)
Versions: Servlets Post 2.0.2 Reporter: Tobias Bocanegra Priority: Minor when sending a POST with only an order parameter, no changes are recorded. eg: POST /content/a :order before b i see 3 solutions: 1) either a new modification type order should be added, 2) or the parent

[jira] Commented: (SLING-848) Support getting versioned resources by using uri path parameters

2009-02-04 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12670288#action_12670288 ] Tobias Bocanegra commented on SLING-848: that's was i feared. using the ; parameters

[jira] Commented: (SLING-848) Support getting versioned resources by using uri path parameters

2009-02-03 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12669988#action_12669988 ] Tobias Bocanegra commented on SLING-848: but do you want to add this to the resource

[jira] Commented: (SLING-848) Support getting versioned resources by using uri path parameters

2009-02-03 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12669953#action_12669953 ] Tobias Bocanegra commented on SLING-848: you mean: something/hello.html;v=1.1

[jira] Issue Comment Edited: (SLING-848) Support getting versioned resources by using uri path parameters

2009-02-03 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12670136#action_12670136 ] tripod edited comment on SLING-848 at 2/3/09 2:06 PM: so

[jira] Commented: (SLING-848) Support getting versioned resources by using uri path parameters

2009-02-03 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12670136#action_12670136 ] Tobias Bocanegra commented on SLING-848: so consequently (according to rfc3986

[jira] Created: (SLING-838) Remove/reduce 90 seconds wait time

2009-01-23 Thread Tobias Bocanegra (JIRA)
Remove/reduce 90 seconds wait time -- Key: SLING-838 URL: https://issues.apache.org/jira/browse/SLING-838 Project: Sling Issue Type: Wish Components: Event Reporter: Tobias Bocanegra

[jira] Created: (SLING-832) ValueMapDecorator does not support arrays.

2009-01-16 Thread Tobias Bocanegra (JIRA)
: Scripting API 2.0.2 Reporter: Tobias Bocanegra albeit the JcrPropertyMap supports arrays, the wrapper does not and yields to unexpected problems when using it. eg: i use the following code, to get a detached copy of a jcr property map: Node content = node.getNode

[jira] Updated: (SLING-832) ValueMapDecorator does not support arrays.

2009-01-16 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tobias Bocanegra updated SLING-832: --- Attachment: ValueMapDecorator.r735030.patch fixes this issues by supported array types

Re: Can't use some JCR classes in Sling

2009-01-05 Thread Tobias Bocanegra
hi josh, only the packages exported by the bundles or the ones specified as bootclasspath (via sling.properties config) are visible by other bundles and jsps. in this case it's a bit difficult, since the crx-explorer stuff is not available as bundle and i doubt that it will work. why would you

[jira] Commented: (SLING-799) Job Folder is not ordered and results in unordered queue

2009-01-03 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12660456#action_12660456 ] Tobias Bocanegra commented on SLING-799: now I would prefer to use a sorted query

[jira] Created: (SLING-799) Job Folder is not ordered and results in unordered queue

2009-01-02 Thread Tobias Bocanegra (JIRA)
Affects Versions: Extensions Event 2.0.2 Reporter: Tobias Bocanegra check code of AbstractRepositoryEventHandler.ensureRepositoryPath() /** * Check if the repository path already exists. If not, create it. */ protected Node ensureRepositoryPath() throws

[jira] Commented: (SLING-799) Job Folder is not ordered and results in unordered queue

2009-01-02 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12660385#action_12660385 ] Tobias Bocanegra commented on SLING-799: the net effect should

Re: Programmatically Triggering Replication

2008-12-30 Thread Tobias Bocanegra
hi josh, this is not quite the correct place to ask this question :-) however, take a look at the browser/content.jsp in crx how to do it. regards, toby On 12/30/08, Joshua Oransky cazza...@gmail.com wrote: How exactly can I programmatically trigger replication on a node on CRX?

[jira] Updated: (SLING-797) EventUtil.getNodePropertyValue wrong check for basic types

2008-12-30 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tobias Bocanegra updated SLING-797: --- Attachment: EventUtil-r712058.patch patch that fixes this issue

[jira] Created: (SLING-797) EventUtil.getNodePropertyValue wrong check for basic types

2008-12-30 Thread Tobias Bocanegra (JIRA)
: Event Affects Versions: Extensions Event 2.0.2 Reporter: Tobias Bocanegra Attachments: EventUtil-r712058.patch The type checks in getNodePropertyValue() are the wrong way around and never find the respective JCR property type. -- This message is automatically generated

Re: User identity for event scripts (was: [jira] Created: (SLING-788)...)

2008-12-19 Thread Tobias Bocanegra
On 12/19/08, Torgeir Veimo torg...@pobox.com wrote: On 19 Dec 2008, at 23:44, Felix Meschberger wrote: Really, so then we have be slightly different: cron_root +--- admin + crontab of admin +--- xyz + crontab of user xyz If you're

[jira] Commented: (SLING-784) SlingPostServlet does not allow setting mixin types on existing nodes

2008-12-18 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12657739#action_12657739 ] Tobias Bocanegra commented on SLING-784: either you create a new node, and then you

[jira] Commented: (SLING-784) SlingPostServlet does not allow setting mixin types on existing nodes

2008-12-17 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12657520#action_12657520 ] Tobias Bocanegra commented on SLING-784: imo the mixins should work the same

Re: [RT] Handling html output

2008-12-14 Thread Tobias Bocanegra
On 12/14/08, Carsten Ziegeler cziege...@apache.org wrote: Tobias Bocanegra wrote: what's wrong with commons-lang StringEscapeUtils.escapeHTML [0] ? or with jstl c:out [1] ? Nothing, but it adds another dependency. Writing an escape function is not rocket science, so we might rather add

Re: [RT] Handling html output

2008-12-13 Thread Tobias Bocanegra
hi all, On 12/13/08, Carsten Ziegeler cziege...@apache.org wrote: Hi, currently we don't have support in Sling for encoding outputted text according to HTML. Values of properties are directly written into the output stream. If these values contain angle brackets the content will be

[jira] Commented: (SLING-760) Filter characters in http error messages

2008-12-05 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12653712#action_12653712 ] Tobias Bocanegra commented on SLING-760: me neither - i think it's the task

Re: List of available resource types

2008-11-30 Thread Tobias Bocanegra
On 11/28/08, Alexander Klimetschek [EMAIL PROTECTED] wrote: IMHO a good practice for sling apps is to always define a node type for all the resources (or at least a mixin) they will handle. This node type a) defines a sling:resourceType with a default value (but one that can be changed

Re: Servlet Resolution

2008-11-26 Thread Tobias Bocanegra
On 11/26/08, Felix Meschberger [EMAIL PROTECTED] wrote: Hi all, After the big reorganization of servlet resolution in April of this year and some more experiences with using Sling, I propose the extension of our servlet/script resolution process. Actually it is a single change only:

Re: Making jcrinstall folder names runmode aware

2008-11-17 Thread Tobias Bocanegra
On 11/17/08, Bertrand Delacretaz [EMAIL PROTECTED] wrote: Hi, Currently the names of folders where jcrinstall looks for bundles and configuration nodes are based on configurable regular expressions, independent from the RunMode service. Rethinking that, I'd like to introduce a

[jira] Created: (SLING-728) JcrInstall should prefer config in /apps/{xyz} over /libs/{xyz}

2008-11-12 Thread Tobias Bocanegra (JIRA)
Components: JCR Install Affects Versions: JCR Install 2.0.4 Reporter: Tobias Bocanegra Fix For: JCR Install 2.0.4 currently jcrinstall does not respect the search paths correctly. the idea is, that configuration (and bundles) residing in /apps/{path} should win over

Re: Can't get JSPs to execute

2008-10-29 Thread Tobias Bocanegra
hi, can you check the node type of the jcr:content node of your jsp file? if it's nt:unstructured, try to change it to nt:resource and see if it works. regards, toby On 10/29/08, Joshua Oransky [EMAIL PROTECTED] wrote: I'm at a loss here... for some reason, I can not get JSPs to execute... a

Re: adding namespaces via a URL query

2008-10-29 Thread Tobias Bocanegra
On 10/29/08, Dan Tenenbaum [EMAIL PROTECTED] wrote: Is it possible? Similarly, can one add a node type via a URL query? unfortunately, not. regards, toby

Re: SlingRepository: Dropping Session Pooling

2008-10-21 Thread Tobias Bocanegra
On 10/21/08, Felix Meschberger [EMAIL PROTECTED] wrote: Hi all, Just out of curiosity, I profiled, my stupid test. And this profiling revealed an intersting situation Without the session pool, logging out is fast. Logging in is not that fast at all. With the session pool, logging in

[jira] Created: (SLING-706) Change default value of max idle pool sessions to 0

2008-10-20 Thread Tobias Bocanegra (JIRA)
Affects Versions: JCR Jackrabbit Client 2.0.2 Reporter: Tobias Bocanegra the JCR repository client session pool should initially be disabled. change the default value of max idle pool sessions to 0. the overhead of acquiring and releasing sessions is bigger than the performance gain from

Re: Trying to upload a package in CRX from dev to test... getting error

2008-09-30 Thread Tobias Bocanegra
hi josh, make sure you installed all recent sling bundles on your target crx. it seems that some node have a wrong nodetype. regards, toby On 9/29/08, Joshua Oransky [EMAIL PROTECTED] wrote: I create and download a package fine on my dev machine. I upload the zip to the main test in CRX and I

[jira] Created: (SLING-684) JcrInstall fails to read multivalued properties from config

2008-09-30 Thread Tobias Bocanegra (JIRA)
: JCR Install Reporter: Tobias Bocanegra -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.

[jira] Updated: (SLING-684) JcrInstall fails to read multivalued properties from config

2008-09-30 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tobias Bocanegra updated SLING-684: --- Attachment: jcrinstall-r698192.patch uses ConfigurationHandler to read the properties

[jira] Commented: (SLING-686) Change i18n storage structure for less redundancy

2008-09-30 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12635838#action_12635838 ] Tobias Bocanegra commented on SLING-686: another drawback of this suggestion

Re: prefix :jcr: in json

2008-09-23 Thread Tobias Bocanegra
hi, i think this is intended and the value is the length of the binary property. regards, toby On 9/23/08, Michael Marth [EMAIL PROTECTED] wrote: Hi, for the json presentation of nt:resource nodes I get one property with prefix :jcr: instead of jcr:. Is this the expected behavior?

Re: sling:Folder vs. nt:unstructured

2008-09-19 Thread Tobias Bocanegra
On 9/19/08, Felix Meschberger [EMAIL PROTECTED] wrote: Hi all, Until SLING-663 [1] the sling:Folder node type was turned into an extension of nt:folder. This is basically good. The consequence of this is more restrictions on child nodes: Before SLING-663 a sling:Folder a child node of

[jira] Created: (SLING-662) ValueMap#get(java.lang.String name, T defaultValue) should support arrays transparently

2008-09-17 Thread Tobias Bocanegra (JIRA)
Project: Sling Issue Type: Improvement Components: JCR Resource Reporter: Tobias Bocanegra when calling ValueMap.get(name, String[].class) and empty array is returned if the underlying jcr property is not multivalued. this is very inconvenient. imo get() for arrays

[jira] Created: (SLING-663) Make sling:Folder more folder like

2008-09-17 Thread Tobias Bocanegra (JIRA)
Make sling:Folder more folder like -- Key: SLING-663 URL: https://issues.apache.org/jira/browse/SLING-663 Project: Sling Issue Type: Wish Components: API Reporter: Tobias Bocanegra

Re: Static includes

2008-09-17 Thread Tobias Bocanegra
hi josh, one solution is to use another selector or resource type for your included script. eg: /page page.jsp content.jsp and in page.jsp you do: sling:include forceSelector=content / this will select the content.jsp as script when including 'this' resource. the draw back of this is, that

Re: [jira] Created: (SLING-646) jcrinstall - take two

2008-09-07 Thread Tobias Bocanegra
On 9/7/08, Carsten Ziegeler [EMAIL PROTECTED] wrote: Bertrand Delacretaz wrote: IIUC what you're saying is that you wouldn't want to support reading OSGi configurations from text files found in the repository? That is supported by the Felix fileinstall stuff (IIRC), and we'd like

Re: Annoyance during update of bundles

2008-08-30 Thread Tobias Bocanegra
On 8/30/08, Alexander Klimetschek [EMAIL PROTECTED] wrote: On Fri, Aug 29, 2008 at 8:33 PM, Tobias Bocanegra [EMAIL PROTECTED] wrote: how about stalling requests until the update is complete ? Good idea. This would also save one from all the other problems you can get (html node render

Re: Creating paths in the post servlet

2008-08-29 Thread Tobias Bocanegra
On 8/29/08, Alexander Klimetschek [EMAIL PROTECTED] wrote: Hi all, I currently have the need to create a path by posting to the SlingPostServlet, eg. /some/very/long/path, where only /some exists, and very/long/path has to be created in the repo. Now I miss two features in the current

Re: Annoyance during update of bundles

2008-08-29 Thread Tobias Bocanegra
how about stalling requests until the update is complete ? regards, toby On 8/29/08, Alexander Klimetschek [EMAIL PROTECTED] wrote: Hi all, when I update a bundle containing a servlet (eg. servlet path = /bin/myservlet) and I hit my curl command for testing that servlet (POST to

[jira] Commented: (SLING-627) Virtual URLs break script resolution

2008-08-25 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12625354#action_12625354 ] Tobias Bocanegra commented on SLING-627: i think virtual url should just allow

[jira] Commented: (SLING-601) Request Inclusion Counter operating too rigid

2008-08-25 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12625487#action_12625487 ] Tobias Bocanegra commented on SLING-601: initially the counter just counted

[jira] Issue Comment Edited: (SLING-619) Add a java servlet scripting engine

2008-08-22 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12624982#action_12624982 ] tripod edited comment on SLING-619 at 8/22/08 2:20 PM: -

[jira] Updated: (SLING-587) JcrBundlesManager

2008-08-21 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tobias Bocanegra updated SLING-587: --- Attachment: jcr_bundles-r687661.patch provided patch implements a very simple queue

Re: Umlaut problem

2008-08-19 Thread Tobias Bocanegra
hi, the FormEncoding parameter was renamed to _charset_ (see [0]): so: input name=_charset_ type=hidden value=UTF-8/ should do the trick. regards, toby [0] https://issues.apache.org/jira/browse/SLING-298 On 8/19/08, Juerg Meier [EMAIL PROTECTED] wrote: Hi all, This problem is driving me

Re: Script resolution based on node types in /libs/*/my/type instead of just /libs/my/type?

2008-08-15 Thread Tobias Bocanegra
On 8/15/08, Alexander Klimetschek [EMAIL PROTECTED] wrote: Hi all, if you use both the standard servlet/script resolution using an explicit resource type (eg. myapp/foobar) and sometimes (for convenience) via the node type (eg. my:type) you get mixed locations for both scripts:

Re: Scripts for Basic Versioning

2008-08-13 Thread Tobias Bocanegra
On 8/13/08, Felix Meschberger [EMAIL PROTECTED] wrote: Hi Outta, Outta Sight schrieb: I'm looking for an example of how to perform versioned POSTs (POST.esp) and also how to access a list of these versions (versions.esp) for any node. It seems that this sort of capability must be scripted

[jira] Commented: (SLING-611) Save OSGi event properties as JCR properties

2008-08-13 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12622331#action_12622331 ] Tobias Bocanegra commented on SLING-611: ... only props who's name or type

Using java annotations for servlet resolution mapping

2008-08-12 Thread Tobias Bocanegra
hi, currently sling uses @scr javadoc comments to specify the bindings from the request infos to servlets. for example: /** * @scr.service * @scr.property name=sling.servlet.resourceTypes values=bin/test * @scr.property name=sling.servlet.extensions values=txt, html */ public class

Re: Build error (dojo)

2008-08-07 Thread Tobias Bocanegra
On 8/7/08, Felix Meschberger [EMAIL PROTECTED] wrote: Hi, It seems that your cached version of the dojo release file is corrupt. Just remove the download-cache folder and rebuild. This should do the trick. ok, i'll try. thanks. -- toby Regards Felix Tobias Bocanegra schrieb: hi

Re: Need more information on replaceSuffix and flush

2008-08-04 Thread Tobias Bocanegra
/ServletResponse.html#isCommitted() regards, toby On Mon, Aug 4, 2008 at 1:19 AM, Tobias Bocanegra [EMAIL PROTECTED]wrote: On 8/3/08, janandith jayawardena [EMAIL PROTECTED] wrote: Hi, *replaceSuffix:* I read the following blog post while exploring replaceSuffix

Re: SlingPostServlet: How to handle resource paths when creating content (Re: [jira] Commented: (SLING-588) Sling ignores specified node path when creating content)

2008-08-04 Thread Tobias Bocanegra
On 8/4/08, Felix Meschberger [EMAIL PROTECTED] wrote: Hi all, After following this discussion, I fear we are missing some facts. Let me recount them here: (1) Not (only) the SlingPostServlet treats existing and non-existing resources differently. Sling's resource resolver

Re: Need more information on replaceSuffix and flush

2008-08-04 Thread Tobias Bocanegra
:-). Janandith. On Mon, Aug 4, 2008 at 6:42 PM, Tobias Bocanegra [EMAIL PROTECTED] wrote: On 8/4/08, janandith jayawardena [EMAIL PROTECTED] wrote: Hi Toby, i see mainly 2 purposes for the suffix,: 1. as an additional way of transporting a path

Re: SlingPostServlet: How to handle resource paths when creating content (Re: [jira] Commented: (SLING-588) Sling ignores specified node path when creating content)

2008-08-01 Thread Tobias Bocanegra
hi, On 7/31/08, Lars Trieloff [EMAIL PROTECTED] wrote: Hi Toby, On Jul 31, 2008, at 21:01 , Tobias Bocanegra wrote: Hi, we are not violating the idempotency of the PUT (disguised as a POST) 1. POST /foo.bar.html (foo=bar) 2. GET /foo.bar.html 3. POST

Re: SlingPostServlet: How to handle resource paths when creating content (Re: [jira] Commented: (SLING-588) Sling ignores specified node path when creating content)

2008-08-01 Thread Tobias Bocanegra
On 8/1/08, Lars Trieloff [EMAIL PROTECTED] wrote: Hi, Not necessarily. The HTTP spec mentions headers explicitly for content negotiation (http://www.w3.org/Protocols/rfc2616/rfc2616-sec12.html) and there might be enough cases where a resource (!) happens to have a name

[jira] Commented: (SLING-592) add SNS (Same Name Siblings) support

2008-07-31 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12618647#action_12618647 ] Tobias Bocanegra commented on SLING-592: i think in this picture the node name just

Re: SlingPostServlet: How to handle resource paths when creating content (Re: [jira] Commented: (SLING-588) Sling ignores specified node path when creating content)

2008-07-31 Thread Tobias Bocanegra
to browser limitations...) based on the existence of a node. I think that would violate the idempotent behavior that we had on the PUT oriented operations in the slingpostservlet. regards, david On Wed, Jul 30, 2008 at 1:46 PM, Tobias Bocanegra [EMAIL PROTECTED] wrote: On 7

Re: SlingPostServlet: How to handle resource paths when creating content (Re: [jira] Commented: (SLING-588) Sling ignores specified node path when creating content)

2008-07-31 Thread Tobias Bocanegra
On 7/31/08, Lars Trieloff [EMAIL PROTECTED] wrote: Hi Toby, On Thu, Jul 31, 2008 at 1:27 PM, Tobias Bocanegra [EMAIL PROTECTED]wrote: On 7/30/08, Lars Trieloff [EMAIL PROTECTED] wrote: Hi, we are not violating the idempotency of the PUT (disguised as a POST) 1. POST

[jira] Commented: (SLING-594) Add pre and post processing hooks to the sling post servlet

2008-07-31 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12618813#action_12618813 ] Tobias Bocanegra commented on SLING-594: As there is no real use case for pre

[jira] Closed: (SLING-569) Add ValueWrappedMap (implements ValueMap)

2008-07-30 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tobias Bocanegra closed SLING-569. -- great, thanks. Add ValueWrappedMap (implements ValueMap

[jira] Created: (SLING-589) JcrPropertyMap shoud allow retrieving of properties

2008-07-30 Thread Tobias Bocanegra (JIRA)
Reporter: Tobias Bocanegra Priority: Minor the JcrPropertyMap should check for a javax.jcr.Property type class and return the property if exists. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.

[jira] Created: (SLING-590) Add resource.adaptTo(ValueMap.class) to page context attributes

2008-07-30 Thread Tobias Bocanegra (JIRA)
Components: Scripting JSP Reporter: Tobias Bocanegra Priority: Minor sling:defineObject/ should add a 'properties' as page context variable from resource.adaptTo(ValueMap.class) -- This message is automatically generated by JIRA. - You can reply to this email to add

[jira] Commented: (SLING-589) JcrPropertyMap shoud allow retrieving of properties

2008-07-30 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12618278#action_12618278 ] Tobias Bocanegra commented on SLING-589: i want to 'inspect' a jcr property

[jira] Commented: (SLING-589) JcrPropertyMap shoud allow retrieving of properties

2008-07-30 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12618296#action_12618296 ] Tobias Bocanegra commented on SLING-589: yes. sorry, i was a bit unclear

Re: SlingPostServlet: How to handle resource paths when creating content (Re: [jira] Commented: (SLING-588) Sling ignores specified node path when creating content)

2008-07-30 Thread Tobias Bocanegra
On 7/30/08, Felix Meschberger [EMAIL PROTECTED] wrote: Hi, all taking this to the list for discussion because Lars it making some important points. Lars Trieloff (JIRA) schrieb: If you could decide for a way of fixing the NPE, I would be glad to have a working workaround. (and

Re: SlingPostServlet: How to handle resource paths when creating content (Re: [jira] Commented: (SLING-588) Sling ignores specified node path when creating content)

2008-07-30 Thread Tobias Bocanegra
On 7/30/08, Felix Meschberger [EMAIL PROTECTED] wrote: Hi, Tobias Bocanegra schrieb: On 7/30/08, Felix Meschberger [EMAIL PROTECTED] wrote: Now, in the meantime we have applied various changes to the SlingPostServlet, which influence the creation of the name of a node to create

[jira] Commented: (SLING-592) add SNS (Same Name Siblings) support

2008-07-30 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12618368#action_12618368 ] Tobias Bocanegra commented on SLING-592: what do you mean by property ? SNS is about

[jira] Commented: (SLING-592) add SNS (Same Name Siblings) support

2008-07-30 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12618460#action_12618460 ] Tobias Bocanegra commented on SLING-592: no, a jcr node name does never reflect

[jira] Commented: (SLING-588) Sling ignores specified node path when creating content

2008-07-29 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12617735#action_12617735 ] Tobias Bocanegra commented on SLING-588: i would rather not change the way how node

[jira] Commented: (SLING-588) Sling ignores specified node path when creating content

2008-07-29 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12617779#action_12617779 ] Tobias Bocanegra commented on SLING-588: because the 'addressed resource' would

Re: [RT] JcrBundlesManager

2008-07-29 Thread Tobias Bocanegra
On 7/29/08, Bertrand Delacretaz [EMAIL PROTECTED] wrote: Hi, On Mon, Jul 28, 2008 at 7:33 PM, Carsten Ziegeler [EMAIL PROTECTED] wrote: ...There is already an OSGi specification - the deployment admin specification - which allows you to package a set of bundles together with

Re: script include

2008-07-28 Thread Tobias Bocanegra
On 7/28/08, David Nuescheler [EMAIL PROTECTED] wrote: On Mon, Jul 28, 2008 at 9:42 AM, Bertrand Delacretaz [EMAIL PROTECTED] wrote: On Fri, Jul 25, 2008 at 2:25 PM, Tobias Bocanegra [EMAIL PROTECTED] wrote: ...i'm looking for a way to include a jsp script from within another

Re: script include

2008-07-28 Thread Tobias Bocanegra
On 7/28/08, Felix Meschberger [EMAIL PROTECTED] wrote: Hi, Bertrand Delacretaz schrieb: On Fri, Jul 25, 2008 at 10:10 PM, Tobias Bocanegra [EMAIL PROTECTED] wrote: ...i think it would be sufficient if i could set a temporary selector that takes precedence from the real ones

[jira] Created: (SLING-585) Add scriptSelector to the sling:include tag

2008-07-28 Thread Tobias Bocanegra (JIRA)
Reporter: Tobias Bocanegra I'm looking for a way to include a jsp script from within another but respecting the resource type hierarchy. so for example: + myapp + A + A.jsp + content.jsp + B - sling:resourceSuperType = A + B.jsp and in my B.jsp i want to include

[jira] Created: (SLING-586) Respect resource type hierarchy in static @include directive.

2008-07-28 Thread Tobias Bocanegra (JIRA)
Components: Scripting JSP Reporter: Tobias Bocanegra Priority: Minor I'm looking for a way to include a jsp script from within another but respecting the resource type hierarchy. so for example: + myapp + A + A.jsp + content.jsp + B

Re: Node creation form best practice

2008-07-28 Thread Tobias Bocanegra
hi, On 7/28/08, Rory Douglas [EMAIL PROTECTED] wrote: I have registered a couple of custom nodetypes with corresponding rendering scripts html.jsp in the appropriate folder. Now I'd like to include a few simple forms to create that node type (re-using as much existing functionality as

script include

2008-07-25 Thread Tobias Bocanegra
hi all, i'm looking for a way to include a jsp script from within another but respecting the resource type hierarchy. so for example: + myapp + A + A.jsp + content.jsp + B - sling:resourceSuperType = A + B.jsp and in my B.jsp i want to do something like:

Re: script include

2008-07-25 Thread Tobias Bocanegra
to resource.txt replaceSuffix=.html / hmm...iirc, in this case the 'html' scripts are used instead of the .txt scripts. On Fri, Jul 25, 2008 at 7:48 PM, Felix Meschberger [EMAIL PROTECTED] wrote: Hi Toby, Tobias Bocanegra schrieb: hi all, i'm looking for a way to include a jsp

Re: script include

2008-07-25 Thread Tobias Bocanegra
hi felix, On 7/25/08, Felix Meschberger [EMAIL PROTECTED] wrote: Hi Toby, Tobias Bocanegra schrieb: hi all, i'm looking for a way to include a jsp script from within another but respecting the resource type hierarchy. so for example: + myapp + A + A.jsp

[jira] Commented: (SLING-577) Patch Submission: JSP tag to evaluate JCR properties using EL

2008-07-23 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12615924#action_12615924 ] Tobias Bocanegra commented on SLING-577: this is already possible when using JSTL

Re: what's the correct way to use addSelector in sling:include tag

2008-07-18 Thread Tobias Bocanegra
On 7/18/08, Paul Noden [EMAIL PROTECTED] wrote: Janandith, I think I misunderstood what sling:include does slightly, it seems sling:include is only designed to include different scripts for the same resource, useful if you have broken your output into several scripts driven by

[jira] Created: (SLING-571) JspServletWrapper swallows jsp exceptions if root cause is null

2008-07-15 Thread Tobias Bocanegra (JIRA)
Components: Scripting JSP Affects Versions: Scripting JSP 2.0.2 Reporter: Tobias Bocanegra For example for a JSP compile error the 'realException' is null and the following stack-frame resolution fails: (JspServletWrapper.java, line 492ff) // First identify the stack

Re: How can I use selectors and suffix with sling:include

2008-07-15 Thread Tobias Bocanegra
On 7/15/08, janandith jayawardena [EMAIL PROTECTED] wrote: Hi, How can I use selectors and suffix with sling:include tag. you can either replace the selectors by: sling:include ... replaceSelectors=foo.bar / or add an additional ones by: sling:include ... addSelectors=foo.bar / and set

[jira] Created: (SLING-569) Add ValueWrappedMap (implements ValueMap)

2008-07-10 Thread Tobias Bocanegra (JIRA)
: Scripting API 2.0.2 Reporter: Tobias Bocanegra Priority: Minor Currently the ValueMap is only implemented by the JcrPropertyMap. suggest to add a ValueWrappedMap that wraps a Map. further the ValueMap should then provide a EMPTY static map. -- This message

  1   2   3   4   >