Re: [Lift] Re: what provides classpath/jquery.js?

2010-01-10 Thread Alex Boisvert
Understood.  I was referring to reusable snippets (e.g., flot widgets).

For your own apps, I can't think of a good reason right now.

Alex

On Jan 10, 2010 4:18 PM, "Alex Black"  wrote:

hmm.  We just upload a single WAR file to our server, its got
everything in it including JS etc.

On Jan 10, 5:16 pm, Alex Boisvert  wrote: > One
reason is to bundle html/j...

> On Jan 10, 2010 3:34 PM, "Alex Black"  wrote: > > Hi
Marius, I haven't heard of...
> liftweb+unsubscr...@googlegroups.com

>
> .
> For more options, visit this group athttp://
groups.google.com/group/liftweb?hl=en.

--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to
liftweb+unsubscr...@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.
-- 

You received this message because you are subscribed to the Google Groups "Lift" group.

To post to this group, send email to lift...@googlegroups.com.

To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.



[Lift] Re: what provides classpath/jquery.js?

2010-01-10 Thread Alex Black
hmm.  We just upload a single WAR file to our server, its got
everything in it including JS etc.

On Jan 10, 5:16 pm, Alex Boisvert  wrote:
> One reason is to bundle html/js/... along with their corresponding snippet
> in a jar file.
>
> Alex
>
> On Jan 10, 2010 3:34 PM, "Alex Black"  wrote:
>
> Hi Marius, I haven't heard of ResourceServer before, sounds
> interesting.
>
> Right now, our CSS and JS files are just in subfolders of webapp, e.g
> "src/main/webapp/js", what are the advantages of (or reasons behind)
> putting js files in resources?
>
> - Alex
>
> On Jan 9, 3:04 am, Marius  wrote: > It is given by
> LiftRules.resourceServe...
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com
> .
> For more options, visit this group 
> athttp://groups.google.com/group/liftweb?hl=en.
-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Re: what provides classpath/jquery.js?

2010-01-10 Thread Alex Boisvert
One reason is to bundle html/js/... along with their corresponding snippet
in a jar file.

Alex

On Jan 10, 2010 3:34 PM, "Alex Black"  wrote:

Hi Marius, I haven't heard of ResourceServer before, sounds
interesting.

Right now, our CSS and JS files are just in subfolders of webapp, e.g
"src/main/webapp/js", what are the advantages of (or reasons behind)
putting js files in resources?

- Alex

On Jan 9, 3:04 am, Marius  wrote: > It is given by
LiftRules.resourceServe...

--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to
liftweb+unsubscr...@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.
-- 

You received this message because you are subscribed to the Google Groups "Lift" group.

To post to this group, send email to lift...@googlegroups.com.

To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.



[Lift] Re: what provides classpath/jquery.js?

2010-01-10 Thread Alex Black
Hi Marius, I haven't heard of ResourceServer before, sounds
interesting.

Right now, our CSS and JS files are just in subfolders of webapp, e.g
"src/main/webapp/js", what are the advantages of (or reasons behind)
putting js files in resources?

- Alex

On Jan 9, 3:04 am, Marius  wrote:
> It is given by LiftRules.resourceServerPath. Resources places in /src/
> resources/toserve fodler are not served by container, but they are
> served by Lift. There is a ResourceServer class that manages that. if
> you put your own resources here you need to call ResourceServer.allow
> (in your boot) and grant access to those resources. This is a security
> related mechanism.
>
> Br's,
> Marius
>
> On Jan 9, 3:38 am, harmanjd  wrote:
>
> > I am working through the StartingWithLift document and saw that the
> > page includes /classpath/jquery.js.
>
> > Is that something that jetty supplies, or is that supplied by the lift
> > framework?  I didn't see that path mapped in the Boot class or
> > anything.
>
> > Thanks,
>
> > James
-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: what provides classpath/jquery.js?

2010-01-09 Thread Marius
It is given by LiftRules.resourceServerPath. Resources places in /src/
resources/toserve fodler are not served by container, but they are
served by Lift. There is a ResourceServer class that manages that. if
you put your own resources here you need to call ResourceServer.allow
(in your boot) and grant access to those resources. This is a security
related mechanism.

Br's,
Marius

On Jan 9, 3:38 am, harmanjd  wrote:
> I am working through the StartingWithLift document and saw that the
> page includes /classpath/jquery.js.
>
> Is that something that jetty supplies, or is that supplied by the lift
> framework?  I didn't see that path mapped in the Boot class or
> anything.
>
> Thanks,
>
> James
-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.