summer of code weekly progress report.(10th August 2008 to 17th August 2008)

2008-08-17 Thread janandith jayawardena
summer of code weekly progress report. Duration : 10th August 2008 to 17th August 2008. Progress: completed SLING-475. completed blog sample. SLING-617 Problems: Unable to add self descriptive test for SLING-475 that passes at first attempt. i.e. when adding self descriptive test the first ti

Re: Usability of all tags in taglib.tld for jsp

2008-08-13 Thread janandith jayawardena
Hi, Thank you Felix for showing me the correct way to use replaceSuffix. It works fine :-). I've also managed to use the resulting output as suggested by Bertrand. Janandith On Mon, Aug 11, 2008 at 1:12 PM, Bertrand Delacretaz <[EMAIL PROTECTED] > wrote: > On Mon, Aug 11, 2008 at 9:33 AM, Felix

Re: Usability of all tags in taglib.tld for jsp

2008-08-10 Thread janandith jayawardena
le in the included request and not in the including request. Thus, > the suffix.jsp script is not expected to see the new suffix. > > Regards > Felix > > > janandith jayawardena schrieb: > >> Hi, >> Thanks Felix. I wrote the test for replaceSelector :). >&

Re: how can i use href in scripts.

2008-08-10 Thread janandith jayawardena
hi, Thanks Felix.It works :) janandith. On Mon, Aug 11, 2008 at 1:02 AM, Felix Meschberger <[EMAIL PROTECTED]>wrote: > Hi, > > janandith jayawardena schrieb: > > Hi, >> >> How can I give hrefs in sling scrpits. >> >> ex: if both a.jsp and b.j

Re: Need more information on replaceSuffix and flush

2008-08-10 Thread janandith jayawardena
>things out. How can I debug the source code. Usually I look at the mvn output when there is an error and try to find the reason. janandith On Fri, Aug 8, 2008 at 7:54 PM, Bertrand Delacretaz <[EMAIL PROTECTED]>wrote: > Hi, > > On Tue, Aug 5, 2008 at 6:59 AM, janandith j

summer of code weekly progress report.(4th August 2008 to 10th August 2008)

2008-08-10 Thread janandith jayawardena
summer of code weekly progress report. Duration : 4th August 2008 to 10th August 2008. Progress: sling:include with path , resource , resourceType , addSelector and replaceSelector and flush is done. (add and replace selector needs more refining) Problems: Having Problem with Archive function

Re: Usability of all tags in taglib.tld for jsp

2008-08-06 Thread janandith jayawardena
%> This test fails. Also you can have a look at the current test at, http://code.google.com/p/sling-scala/source/browse/trunk/sling475/?r=85 regards, Janandith. On Wed, Aug 6, 2008 at 3:34 AM, Felix Meschberger <[EMAIL PROTECTED]>wrote: > Hi Janandith, > > janandith jayaward

Re: Need more information on replaceSuffix and flush

2008-08-04 Thread janandith jayawardena
On Tue, Aug 5, 2008 at 1:39 AM, Tobias Bocanegra <[EMAIL PROTECTED]>wrote: > On 8/4/08, janandith jayawardena <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Another question Toby how do I create file.bin stated in the following. > Is > > it an extention for

Re: Need more information on replaceSuffix and flush

2008-08-04 Thread janandith jayawardena
at 12:53 AM, janandith jayawardena <[EMAIL PROTECTED]>wrote: > Hi Toby, > > >afaik, there is not way of checking this. you can check if the > >response was already comitted by response.isComitted() but this does > >not reflect the actual state of the jsp output buff

Re: Need more information on replaceSuffix and flush

2008-08-04 Thread janandith jayawardena
alot. I'm really greatfull for pointing me to this option :-). 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, > > > > > > > >

Re: build error

2008-08-04 Thread janandith jayawardena
hi , If you want only to build sling then skip tests and build with, mvn -Dmaven.test.skip=true as in http://maven.apache.org/general.html#skip-test When tests fail I've used mvn -s dev/null clean install and it works sometimes. This is as appearing in http://incubator.apache.org/sling/site/

Re: Usability of all tags in taglib.tld for jsp

2008-08-04 Thread janandith jayawardena
TED]>wrote: > Hi, > > janandith jayawardena schrieb: > >> Hi, >> >> Thanks Bertrand. >> >> When I use , >> >> >> >> I get the content of replace.jsp >> > > Point is, that the addSelectors and replaceSelectors are also i

Re: Need more information on replaceSuffix and flush

2008-08-03 Thread janandith jayawardena
nd. otherwise you don't get the correct > sequence of output. Is there a way I can know whether the buffer is flushed. can I get the buffer in a script and check this. regards, Janandith. On Mon, Aug 4, 2008 at 1:19 AM, Tobias Bocanegra <[EMAIL PROTECTED]>wrote: > On 8/3/0

Need more information on replaceSuffix and flush

2008-08-03 Thread janandith jayawardena
Hi, *replaceSuffix:* I read the following blog post while exploring replaceSuffix for SLING-475. http://weblogs.goshaky.com/weblogs/lars/entry/an_architecture_for_content_centric2 it says , "With the suffix you could for instance address parts of a resource." under suffix: description. How c

summer of code weekly report (27th July 2008 to 3rd August 2008.)

2008-08-03 Thread janandith jayawardena
summer of code weekly progress report. Duration : 27th July 2008 to 3rd August 2008. Progress: sling:include with path , resource , resourceType , addSelector and replaceSelector is done. (add and replace selector needs more refining) blog sample saves and displays a post. Currently trying to a

how can i use href in scripts.

2008-07-31 Thread janandith jayawardena
Hi, How can I give hrefs in sling scrpits. ex: if both a.jsp and b.jsp reside under same folder and all are under content/x resource should the path be using href="/content/x.b.html" to link form a.jsp to b.jsp. janandith.

Re: How can i add 3rd party OSGi modules to sling.

2008-07-31 Thread janandith jayawardena
sling/content/blogs/main/slingosgimaven.html > > Cheers > Michael > > On Wed, Jul 16, 2008 at 5:33 AM, janandith jayawardena > <[EMAIL PROTECTED]>wrote: > > > Hi , > > > > how are the current 3rd party libraries accessed in sling. are they all > in > >

Re: Usability of all tags in taglib.tld for jsp

2008-07-31 Thread janandith jayawardena
> Hi, > > On Thu, Jul 31, 2008 at 7:52 AM, janandith jayawardena > <[EMAIL PROTECTED]> wrote: > > ...There are the following properties(options) in the taglib.tld for JSP > tags > > in sling > > I assume you mean sling:include, as the only other tag is > sl

Is there a possibility to create resource at load time instead of ROOT.json.

2008-07-30 Thread janandith jayawardena
Hi, Instead of using ROOT.json like in webloader ui sample what other methods are available to create a resource automatically when loading to sling either using mvn -P autoInstallBundle or using launch pad webapp. janandith.

Usability of all tags in taglib.tld for jsp

2008-07-30 Thread janandith jayawardena
Hi, There are the following properties(options) in the taglib.tld for JSP tags in sling. resource path resourceType addSelectors replaceSelectors replaceSuffix flush I have used path , resourceType , addSelectors and what happens is clear for me. The rest is bit unclear for me. I can't un

summer of code weekly report (21st July 2008 to 27th July 2008)

2008-07-27 Thread janandith jayawardena
summer of code weekly progress report. Duration : 21st July 2008 to 27th July 2008. Progress: Started work on Sling blog sample based on notes sample for JSP. Extending sling:include tests for replaceSuffix. Problems: Extending sling:include tests for replaceSuffix needs help to work cor

Re: script include

2008-07-25 Thread janandith jayawardena
Hi, taking the given layout >+ myapp > + A > + A.jsp > + content.jsp > + B > - sling:resourceSuperType = "A" > + B.jsp If I use in B.jsp can I use the rendering in content.jsp in B.jsp. I've tried something similar for SLING-475 but it didn't work. Also can I use the

summer of code weekly report (14th July 2008 to 20th July 2008)

2008-07-20 Thread janandith jayawardena
summer of code weekly progress report. Duration : 14th July 2008 to 20th July 2008. Progress: Completed SLING-572 task of creating a bundle for notes example for deploying under samples/notes. Completed writing integrating test for Sling include with path and Sling include with same node addSe

Re: quick .jsp question

2008-07-19 Thread janandith jayawardena
Hi Langley , > So... > a) drag and drop testFile.jsp to dav://localhost:8080/myApps using my > webdav client > b) using firefox access http://localhost:8080/myApps/testFile.jsp as far as I know you can't As far as I know you cannot run (b) if your myApps folder is not under apps folder in w

Re: [jira] Updated: (SLING-572) example application

2008-07-19 Thread janandith jayawardena
Hi Bertrand, I've uploaded a patch for creating a bundle for this example. :) janandith. On Wed, Jul 16, 2008 at 8:12 PM, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote: > On Wed, Jul 16, 2008 at 4:26 PM, Michael Marth (JIRA) <[EMAIL PROTECTED]> > wrote: > >>> ...I have written a Sling example

Re: how can i run webloader sample

2008-07-17 Thread janandith jayawardena
Hi Bertrand, I'll try that. A small question, How do I get the revision number and checkout the correct code in svn janandith. On Fri, Jul 18, 2008 at 1:40 AM, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote: > Hi, > > On Thu, Jul 17, 2008 at 8:59 PM, janandith jayawardena

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

2008-07-17 Thread janandith jayawardena
Hi Paul, Do you mean janandith On Fri, Jul 18, 2008 at 2:46 AM, Paul Noden <[EMAIL PROTECTED]> wrote: > Janandith, > > Try setting multiple resources to have a resource type=foo you should > find the two scripts work for all resource with this resource type. > > Paul Noden > [EMAIL PROTECTED]

Question to clear out my picture of Integration test writing.

2008-07-17 Thread janandith jayawardena
hi, I'm taking the following approach to write integration tests. I want to verify whether it's correct. This is how i create nodes and upload scripts. Map props = new HashMap(); rootNodeUrl = testClient.createNode(HTTP_BASE_URL +pathToRoot, null); testTextA = pathToR

how can i run webloader sample

2008-07-17 Thread janandith jayawardena
Hi, I would like to know how to run the samples/webloader . I've followed the README.txt file. but I get the error , "cant find org.apache.sling.scripting.core.scripthelper.getService(object) (apps/sling/webloader/html.esp#34)" line 34 is this, "loader = sling.getService(Packages.org.apache.s

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

2008-07-17 Thread janandith jayawardena
Hi Bertrand, I tried as you suggested. It works for a single resource. How can I use it for multiple resources. janandith. On Thu, Jul 17, 2008 at 4:06 PM, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote: > > Hi Janandith > > On Thu, Jul 17, 2008 at 12:15 PM, janandith jay

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

2008-07-17 Thread janandith jayawardena
hi , I want to use sling:include tag's addSelector propert. The scenario is as follows, I have two resources /a/b and /a/c . the script for /a/b is html.jsp and script for /a/c was renamed to selector.jsp. Now in the html.jsp when I use and type "http://localhost:8080/b.html"; it displays det

Re: How can i add 3rd party OSGi modules to sling.

2008-07-15 Thread janandith jayawardena
> > You can simply upload your new package via the sling web console and it > will > appear in the list. > Finally the tld file will also be resolved based on the you declare > inside it. > > David > > > > > On Tue, Jul 15, 2008 at 9:43 AM, janandith jayaward

How can I use selectors and suffix with

2008-07-15 Thread janandith jayawardena
Hi, How can I use selectors and suffix with tag. It's bit confusing , Ex: The sling.api page has a table with examples like "/a/b.s1.s2.html/c/d" saying s1.s2 is a selector and c/d is a suffix. does means s1 = a/b and s2=c/d such that in a script /a/b can be replaced with s1 and /c/d replaced

How can i add 3rd party OSGi modules to sling.

2008-07-15 Thread janandith jayawardena
Hi , Is it possible to add pre compiled 3rd party OSGi bundles without doing any modification to sling. Can I directly load them and see it in the sling/console. janandith.

Re: Where can I find all sling tags.

2008-07-14 Thread janandith jayawardena
Hi, here is the link, http://cwiki.apache.org/confluence/display/SLING/Using+sling.include+in+JSP janandith. On Tue, Jul 15, 2008 at 12:52 AM, janandith jayawardena <[EMAIL PROTECTED]> wrote: > Hi Alexander, > > Thanks a lot. I've created a wiki page based on

Re: sling:include in JSP wiki page

2008-07-14 Thread janandith jayawardena
Sorry the link is wrong here's the correct one. http://cwiki.apache.org/confluence/display/SLING/Using+sling.include+in+JSP On Tue, Jul 15, 2008 at 12:48 AM, janandith jayawardena <[EMAIL PROTECTED]> wrote: > Hi, > > Here is the link to the page I've created on ho

Re: Where can I find all sling tags.

2008-07-14 Thread janandith jayawardena
ng/jsp-taglib/src/main/resources/META-INF/taglib.tld?view=markup > > Regards, > Alex > > On Mon, Jul 14, 2008 at 6:57 AM, janandith jayawardena > <[EMAIL PROTECTED]> wrote: > > Hi , > > > > Thanks Bryce I found it. > > Is there a possibility to cal

sling:include in JSP wiki page

2008-07-14 Thread janandith jayawardena
Hi, Here is the link to the page I've created on how to use sling:include in JSP taking the example from Discover sling in 15 minutes page. http://cwiki.apache.org/confluence/pages/editpage.action?pageId=90610 janandith.

Re: Where can I find all sling tags.

2008-07-13 Thread janandith jayawardena
e: > Hi, > > Have a look in the org.apache.sling.scripting.jsp.taglib bundle. > IncludeTagHandler is the sling:include tag class. > > Bryce > > > janandith jayawardena wrote: > >> Hi, >> >> Where can I find all the tags in sling like in sling >> source >> code. >> >> >> janandith >> >> >> >

Where can I find all sling tags.

2008-07-13 Thread janandith jayawardena
Hi, Where can I find all the tags in sling like in sling source code. janandith

weekly progress report for sling-scala (7th July 2008 to 13th July 2008)

2008-07-13 Thread janandith jayawardena
Sling/Scala weekly progress report. Duration : 7th July 2008 to 13th July 2008. Progress: 1. Upadated patch for jira issue Sling475 based on Sling457Test.java as a guide. Problems: 1. Extending tests for sling:include. Perspective: 1. Continue with work on jira issue Sling4

weekly progress report for sling-scala (30th June 2008 to 6th July 2008)

2008-07-13 Thread janandith jayawardena
Sling/Scala weekly progress report. Duration : 30th June 2008 to 6th July 2008. Progress: 1.writing unit tests and a test case to show the inability to cast in scala. Problems: Unsolved: 1. Still unable to cast the Object currentNode back to javax.jcr.Node within scala code.

weekly progress report for sling-scala (23rd June 2008 to 29th June 2008)

2008-07-13 Thread janandith jayawardena
Sling/Scala weekly progress report. Duration : 23rd June 2008 to 29th June 2008. Progress: 1.Trying to bind the SlingBindings into scala's interpreter. Can bind java's Object except the situation in Problem 1 and 2. Problems: Unsolved: 1. It's not possible to cast a scala Obje

Re: [jira] Commented: (SLING-475) Create Integration tests for the sling:include tag

2008-07-10 Thread janandith jayawardena
Hi, > The test still fails: >junit.framework.AssertionFailedError: JSP script executed as expected... >As the "JSP rendering result" string is not produced by the script. I changed it to JSP "rendering for sling.include result" in the test script but haven't modified in the unit test. I changed

Re: sling build fails when trying to run tests

2008-07-07 Thread janandith jayawardena
Hi, Resolved the problem. When running using mvn -s /dev/null clean install it works. janandith. On Mon, Jul 7, 2008 at 11:29 PM, janandith jayawardena <[EMAIL PROTECTED]> wrote: > Hi, > > I'm currently working on SLING-475 . > > When I build sling using "m

sling build fails when trying to run tests

2008-07-07 Thread janandith jayawardena
Hi, I'm currently working on SLING-475 . When I build sling using "mvn clean install" it fails when running tests. Build Succeeds only when I skip tests. So I skipped all tests built sling and did "mvn clean install" in /launchpad/webapp. Here too first the test failed. Then again I ran it with

Re: How can i setup eclipse for development.

2008-06-30 Thread janandith jayawardena
cool. Janandith On Mon, Jun 30, 2008 at 6:01 PM, Andreas Hartmann <[EMAIL PROTECTED]> wrote: > janandith jayawardena schrieb: > >> Hi Andreas, >> >> I've retried it in Ubuntu and the steps work.I couldn't try it in another >> platform because I

Re: Requesting your support to complete Google Summer of Code project related to scala.

2008-06-29 Thread janandith jayawardena
Dear Sir , To the queations I've asked before I would like to add the following, How can I cast an Object to a package I've imported which is not in the JDK .I use the Interpreter .interpret after binding to interpreter as follows. interpreter.bind("bindings" , "javax.script.Bindings" , bin

Re: How can i setup eclipse for development.

2008-06-29 Thread janandith jayawardena
t. Janandith. On Thu, Jun 19, 2008 at 11:25 PM, janandith jayawardena <[EMAIL PROTECTED]> wrote: > Hi, > > I'll try it again and tell. > > janandith. > > > On Thu, Jun 19, 2008 at 6:20 PM, Andreas Hartmann <[EMAIL PROTECTED]> > wrote: > >>

Re: Requesting your support to complete Google Summer of Code project related to scala.

2008-06-29 Thread janandith jayawardena
Sorry I think time it will show. >Dear Sir, >I'm so grateful you considered reading this mail spending a moment of your valuable time. >Please accept my humble gratitude . >I'm an Undergraduate of the Department of Computer Science & Engineering , University of Moratuwa , Sri Lanka [1] . >I w

Re: Requesting your support to complete Google Summer of Code project related to scala.

2008-06-29 Thread janandith jayawardena
On Sun, Jun 29, 2008 at 10:08 PM, janandith jayawardena <[EMAIL PROTECTED]> wrote: > Hi please click on the "hide quoted text" area to view or here is the post > again. > > >> >> >> >From: janandith jayawardena <[EMAIL PROTECTED]> >>

Re: Requesting your support to complete Google Summer of Code project related to scala.

2008-06-29 Thread janandith jayawardena
Hi please click on the "hide quoted text" area to view or here is the post again. On Sun, Jun 29, 2008 at 10:05 PM, janandith jayawardena <[EMAIL PROTECTED]> wrote: > Hi, > > This is the mail I've sent to Martin Odersky in seek of a solution to our > problems.

Fwd: Requesting your support to complete Google Summer of Code project related to scala.

2008-06-29 Thread janandith jayawardena
Hi, This is the mail I've sent to Martin Odersky in seek of a solution to our problems. I don't know whether this is good enough but I didn't find a better way. janandith From: janandith jayawardena <[EMAIL PROTECTED]> Date: Sat, Jun 28, 2008 at 2:34 AM Subject: Reque

Sling/Scala weekly progress report.(15-06-2008 to 22-06-2008)

2008-06-22 Thread janandith jayawardena
Sling/Scala weekly progress report. Duration : 15th June 2008 to 22nd June 2008. Progress: 1. I tried to understand and use the JavaScriptEngine's wrapper code initially to enable jcr support. I abandoned this because it uses Rhino's internal classes.This code is available in the tag "slin

Re: Weekly Report for Sling/Scala [Need help in solving problem]

2008-06-19 Thread janandith jayawardena
Hi Bertrand, Thanks for the ideas. I will be able to get the classpath hack you've shown. >The current scripting engines use a "binding" mechanism to make java >objects accessible in java scripts, is this done using "org.mozilla.javascript.ScriptRuntime" . This is used quite frequently

Re: How can i setup eclipse for development.

2008-06-19 Thread janandith jayawardena
Hi, I'll try it again and tell. janandith. On Thu, Jun 19, 2008 at 6:20 PM, Andreas Hartmann <[EMAIL PROTECTED]> wrote: > janandith jayawardena schrieb: > > Hi all, >> >> The wiki post on setting up the Eclipse IDE for sling is now available >> under

Re: Weekly Report for Sling/Scala [Need help in solving problem]

2008-06-16 Thread janandith jayawardena
Hi, Thanks for throwing me a lifeline Bertrand.I'll write tests and proceed with the rest until a solution is found. I think Bertrand it would be best to ask from scala folks if possible. I posted about this in the scala mailing list some time ago but there was no positive reply. You can check thi

Weekly Report for Sling/Scala [Need help in solving problem]

2008-06-15 Thread janandith jayawardena
Hi, The report is a bit different this week because my intention was to load the scala Interpreter in sling. I tried to fix the scala interpreter loading problem this week. This is the most important thing in sling-scala. In doing so I found that the Scala Interpreter is a special case of the co

Re: unable to load dependancy "scala.tools.nsc" in Sling.

2008-06-11 Thread janandith jayawardena
Hi Felix , Bertrand, I've done the modification but still it's same :-(. There's got to be a way to run the interpreter without setting classpath. If by any means it's required to follow the classpath specifying method to get things working in the compiler (I'm not sure yet) can I use it as a temp

Re: unable to load dependancy "scala.tools.nsc" in Sling.

2008-06-10 Thread janandith jayawardena
Hi Felix, I tried the above but the exception continues. I did the following , ClassLoader c = Thread.currentThread().getContextClassLoader(); c.loadClass("scala.tools.nsc.Interpreter"); Thread.currentThread().setContextClassLoader(c.getClass().getClassLoader()); I thin

Re: Sling/Scala weekly progress report.(02-06-2008 to 08-06-2008)

2008-06-09 Thread janandith jayawardena
Hi Bertrand, Today I managed remove the errors shown in red in the launchpad saying it cannot resolve "scala.tools.nsc" using Felix's answer as a guide. But when calling the script an exception is thrown. I have mailed it as a reply to my mail stating the earlier problem. Based on the reply I ho

Re: unable to load dependancy "scala.tools.nsc" in Sling.

2008-06-09 Thread janandith jayawardena
Hi Felix, Thanks for the advice. I added the following to the pom.xml . scala-library;scala-compiler;inline=true org.apache.tools.ant.*;resolution:=optional, * Now the error messages do not appear in launchpad. But w

Re: Sling/Scala weekly progress report.(02-06-2008 to 08-06-2008)

2008-06-09 Thread janandith jayawardena
Hi Bertrand , Thanks for reviewing the report. The DummyScriptEngine is the do nothing engine which I managed to get to work. I updated the code yesterday in http://code.google.com/p/sling-scalabut seems there has been an error I can't view it either. I'll upload it again to night. I couldn't lo

unable to load dependancy "scala.tools.nsc" in Sling.

2008-06-08 Thread janandith jayawardena
Hi, When Sling/Scala bundle loads in Sling it gives an exception saying it cannot load "scala.tools.nsc". I want to use the library to use Scala Interpreter and Compiler. How can I fix this problem. I have attached the screen shots showing the error to the JIRA issue created for the pro

Sling/Scala weekly progress report.(02-06-2008 to 08-06-2008)

2008-06-08 Thread janandith jayawardena
Sling/Scala weekly progress report. Duration : 2nd June 2008 to 8th June 2008. Progress: 1. Dummy ScalaScriptEngine loads successfully and prints the script given to it. Script is displayed in the launchpad using ScriptContext. Problems: Unsolved: 1. The library which is nece

Re: [sling-scala commit] r12 - in trunk/sling-scala: . .settings src src/main src/main/java src/main/java/org src/main/jav...

2008-06-06 Thread janandith jayawardena
Hi Craig , Yes you're correct. I sent the whole folder and didn't check it again. I will remove them. Sorry about that. janandith.

Re: what is the correct way to run non javascript embedded in html using sling.

2008-06-05 Thread janandith jayawardena
Hi, > IMHO you're currently struggling with two distinct problems: > 1) How to integrate a new scripting language into Sling > 2) How to run scripts/templates with Scala. You are correct Bertrand. I was trying to tackle it together at once but the way you've suggested is less confusing so I'll

Re: creating a jira issue to submit progress.

2008-06-05 Thread janandith jayawardena
Hi, I updated the Scratchpad for sling-scala. It now contains the code I attached in JIRA : 510. Thanks alot . It's easy to maintain my code now because I can access my project from any place (home , campus etc..). janandith.

Re: Sling/Scala weekly progress report.(26-05-2008 to 01-06-2008)

2008-06-04 Thread janandith jayawardena
Hi Bertrand, I have created a jira issue to submit my code untill I'm able commit to the google project. Hope it's fine for the moment. janandith.

Re: what is the correct way to run non javascript embedded in html using sling.

2008-06-04 Thread janandith jayawardena
Hi Felix, I've created a jira issue and attached the code as scala.tar.gz till I'm able to commit to the google project. Please have a look at it. janandith.

creating a jira issue to submit progress.

2008-06-04 Thread janandith jayawardena
Hi , I cannot commit my code to http://code.google.com/p/sling-scala although I tried several times. I think I need access rights. Therefore I created a jira issue to submit my code and experiments related to the project. This is the first time I've created a jira issue so please correct me i

Re: Sling/Scala weekly progress report.(26-05-2008 to 01-06-2008)

2008-06-03 Thread janandith jayawardena
Hi Bertrand, I clicked on the "join project" link at http://code.google.com/p/sling-scala/. I think you have to add my e-mail address to the group for me to view the project. It's [EMAIL PROTECTED] I didn't post the ICLA yet. I will do it this Saturday sorry for the delay :-). janandith.

Re: what is the correct way to run non javascript embedded in html using sling.

2008-06-03 Thread janandith jayawardena
Hi, I think the reason is because the scala library which contains the interpreter is not correctly loading for the script to run. This is because in the launchpad I don't see the scala.tools.nsc library loaded. I can only see the following, "imported Packagesjavax.script,version=0.0.0 from Sy

Sling/Scala weekly progress report.(26-05-2008 to 01-06-2008)

2008-06-01 Thread janandith jayawardena
Sling/Scala weekly progress report. Duration : 26th Monday 2008 to 1st June 2008. Progress: 1. Setting up development environment in eclipse. 2. Discovering the presence of an Interpreter in Scala compiler library. 3. Created a standalone project to test the Interpreter.

Re: what is the correct way to run non javascript embedded in html using sling.

2008-05-31 Thread janandith jayawardena
Hi Felix , Thanks your explanation helped me a lot. There is another thing to clarify. I created a separate standalone project to test the scala Interpreter. According to what I observed the interpreter takes in the script as a string to evaluate. Therefore I guess I will have to read the script

what is the correct way to run non javascript embedded in html using sling.

2008-05-31 Thread janandith jayawardena
Hi , Scala has an interpreter which I intend to call in the eval method of my script engine to run scripts. To check whether it's loading I did the following, I have set the mime type using "setMimeTypes" as "text/scala" and name using "setNames" as "scala" in the Script Factory. Using the exampl

What is the difference between javascript and other scripting modules.

2008-05-29 Thread janandith jayawardena
Hi , Why does javascript module contain "wrapper" , "helper" and "io" classes instead of having only a Factory and an Engine like modules for other scripting languages. janandith.

How can I write automated tests.

2008-05-28 Thread janandith jayawardena
Hi all , I would like to write test cases (Automated tests) for the scala module as I code. Can you guide me how to write automated tests. And are these tests performed in maven while building or can I run them separately. If some of the tests fail in maven build but the module gets built and l

Re: How can i setup eclipse for development.

2008-05-28 Thread janandith jayawardena
Hi all, The wiki post on setting up the Eclipse IDE for sling is now available under heading "*Setting up Eclipse IDE*" in Developing for Sling - > *Setting up Eclipse IDE. *Please feel free to add necessary modifications and correct any errors. regards, Janandith * *

Re: How can i setup eclipse for development.

2008-05-27 Thread janandith jayawardena
Hi Carsten , I've started on it. :-) . janandith. On Tue, May 27, 2008 at 12:10 PM, Carsten Ziegeler <[EMAIL PROTECTED]> wrote: > Can you put this on our wiki? > > Carsten > >> >> *Here is what i did.* >> >> 1. Install maven pluggin to eclipse using the url >> http://m2eclipse.sonatype.org/upd

How can i setup eclipse for development.

2008-05-25 Thread janandith jayawardena
Hi all, So far I have been working with vim-editor and the terminal to go through the source and do maven builds for sling. Instead of building manually I like to use the eclipse IDE. I would like to use it to checkout latest source code and build the project. In trying to do so during the past

Re: Summer of Code coding period starts next Monday

2008-05-21 Thread janandith jayawardena
Thanks Bertrand. janandith.

Re: Summer of Code coding period starts next Monday

2008-05-20 Thread janandith jayawardena
Hi Bertrand , When printing the Contributor License Agreement should I include the paragraph between * The Apache Software Foundation* * Individual Contributor License Agreement ("Agreement") V2.0* * http://www.apache.org/licenses/* and The spaces to fill Fullname and

Re: what are the roles of extensions in sling.

2008-05-15 Thread janandith jayawardena
Hi Alex, Thanks alot for the detailed explanation. It helps me get a good understanding. Regards, Janandith. On Fri, May 16, 2008 at 3:46 AM, Alexander Saar < [EMAIL PROTECTED]> wrote: > Hi, > > Am 15.05.2008 um 22:11 schrieb janandith jayawardena: > > The extensio

what are the roles of extensions in sling.

2008-05-15 Thread janandith jayawardena
Hi, The extensions directory in sling contains 3 directories. 1. apt 2. dojo 3. dojo-ujax How can i use these extensions and what are the roles of each extension in sling ?. Is apt used for list processing. If so how does it fit in sling ?. I would also like to know more about ujax. Is it re

Re: difference between sling & micro sling.

2008-05-12 Thread janandith jayawardena
So does this mean if i come across any reference to microsling i can consider it as part of the launchpad and isolate it from other parts of sling ?. Another thing to clarify is Sling framework = (all code in Sling directory) minus ( site + parent + maven + launchpad directories) janandi

which repository.xml is actually used in sling ?.

2008-05-12 Thread janandith jayawardena
Hi, There are four repository.xml files in the sling directory. These are 1. sling/launchpad/app/sling/repository.xml 2. sling/jcr/jackrabbit-server/target/classes/repository.xml 3. sling/jcr/jackrabbit-server/src/main/resources/repository.xml 4. sling/launchpad/webapp/target/it/sling/reposit

Re: How to access the repository.

2008-05-12 Thread janandith jayawardena
Hi, Thanks Paul for the information about available walkthroughs. Also it's great to hear there is a jcr browser coming up. Good luck on it Craig. janandith.

difference between sling & micro sling.

2008-05-11 Thread janandith jayawardena
Hi , What is the difference between sling and microsling. Is microsling a scaled down version of sling ?. regards , Janandith.

Re: How to access the repository.

2008-05-11 Thread janandith jayawardena
Hi Bertrand, I think creating a blog to understand sling is a good exercise. I will start on it. >feel free to ask more questions. Thanks a lot I will :-). Janandith.

How to access the repository.

2008-05-09 Thread janandith jayawardena
Hi, Is the repository in Sling accessible like a database directly to a script so the user can query the repository to get the content. How can i manually create , modify and remove content and add to the Sling repository without a tool like curl. Also I would like to know what type of content c

Understanding Script Context.

2008-04-30 Thread janandith jayawardena
Hi , According to what i observed from scripting modules in Sling there is a Script Context used in the Script Engine's eval method. Also according to what i understood from the JSR 223 spec a Script context provide a view of host application to the Script Engine. ex: Define Global scope , Engin

Re: What are the best practices used in Sling.

2008-04-30 Thread janandith jayawardena
Hi Bertrand , Carsten, Thanks a lot :-). regards, janandith.

Re: What are the best practices used in Sling.

2008-04-25 Thread janandith jayawardena
Hi Felix, Gert, Thanks a lot Felix i will look into the references. Thanks Gert for your wishes and the link. I will have a look at the POM file. :-). regards, janandith.

What are the best practices used in Sling.

2008-04-24 Thread janandith jayawardena
Hi , I would like to know about the development process and best practices used in Sling. Specially, 1. If there is any preferred coding standard used. 2. How to submit my work for review. 3. How to report bugs , errors , warnings. and any other best practices , procedures etc. janandith.

Re: Welcome Janandith, let's make Scala happen for Sling during GSoc!

2008-04-23 Thread janandith jayawardena
Hi all, Thanks a lot. I grateful to sling-dev for helping me make my dream come true. little bit about me, I am janandith uditha jayawardena. I am an undergraduate of the Department of Computer Science & Engineering in University of Moratuwa. www.cse.mrt.ac.lk I am in my final level(year) and

Re: question about adding a bundle using launchpad & net beans 5.0 warning.

2008-04-16 Thread janandith jayawardena
Hi , Thanks a lot. I'm sorry i didn't know screenshots are not allowed in the mailing list. I have configured my project to use java 6. Therefore I guess then there is a conflict with BSF 3.0 which causes the warning. I havent implemented any code for the engine yet. I have to get more insight in

Re: Where does the name "Sling" come from?

2008-04-16 Thread janandith jayawardena
Hi Bertrand, I had the same question in my mind from the time I came to know of this project. I was trying to solve it myself :-). This might not be the best source for coming out with an answer to this question but I thought of helping out with my finding. Slinging org has a description abou

Re: question about adding a bundle using launchpad & net beans 5.0 warning.

2008-04-16 Thread janandith jayawardena
Hi, Sorry i couldn't send the warning in net beans 5.0 for my second question. It is in the attachment screenshot. regards , janandith. On Wed, Apr 16, 2008 at 2:01 PM, janandith jayawardena <[EMAIL PROTECTED]> wrote: > Hi , > > I have two questions. > First is abou

question about adding a bundle using launchpad & net beans 5.0 warning.

2008-04-16 Thread janandith jayawardena
Hi , I have two questions. First is about starting a new bundle manually. Second is about a warning message shown by net beans 5.0. This is a lenghty description but i think it is necessary. * First question* I wrote two skeleton classes ScalaScriptEngineFactory and ScalaScriptEngine with out a

  1   2   >