In terms of the API docs part of it would just be expanding on the current
scaladoc to provider better explanation. Obviously there are a ton of
classes to document, so I'd like to focus efforts on getting the most bang
for the buck. I was thinking of starting with
net.liftweb.http.{LiftRules,S,SHt
I added Log.info("test") to my LiftRules.localeCalculator and saw test
being printed 21 times. Is this expected?
LiftRules.localeCalculator = localeCalculator _
private def localeCalculator (request : Box[HttpServletRequest]):
Locale = {
net.liftweb.util.Log.info("test")
LiftRules.d
Thanks again. Here's what I came up with.
// redirect handler that sets the locale cookie. redirect to same
page
// based on referer, as long as the host names are the same.
LiftRules.dispatch.append {
case r @ Req("change_locale" :: Nil, _, GetRequest) if S.param
("lang").isDefined => {
Please see the lift-widgets project. There is a tree widget in there.
Br's,
Marius
On Apr 30, 10:36 pm, "lostem...@gmail.com"
wrote:
> I'm new to lift, so I'm sorry if it was covered somewhere, please
> point me to the link if it was.
>
> So the question is what is the best way to show a tree
Ah, sorry, I saw this come out on the scala-user mailing list. I assume you
mean the root pom of Lift?
Well, maven-scala-plugin 2.10.1 is working now, and I have lift as one of my
final integration tests before release. So you should be good to go :).
- Josh
On Thu, Apr 30, 2009 at 4:08 PM, He
Oops, wrong list => Once more ;-)
-- Forwarded message --
From: Heiko Seeberger
Date: 2009/4/30
Subject: Update to maven-scala-plugin 2.10.1 and add maven-compiler-plugin?
To: _scala-user
Hi,
I would like to change the root POM:
1. Update to maven-scala-plugin -> 2.10.1
This is
The root POM for what? Well, plugin settings are inherited by child projects
=> Hence you can import lift-webkit, lift-util, etc. into Eclipse and will
find the correct compiler settings.
Heiko
2009/4/30 Josh Suereth
> I'm fine with these changes, but The root pom for what?
>
> Yes, the maven-sc
I'm new to lift, so I'm sorry if it was covered somewhere, please
point me to the link if it was.
So the question is what is the best way to show a tree (directory
tree, or yahoo type tree) in lift? It's a dynamic tree so it can't be
hardcoded in code. Also I would like to have sitemap functional
I'll make sure to note all of the things discussed here in the API updates.
On Thu, Apr 30, 2009 at 1:15 PM, Timothy Perrett wrote:
>
> Thanks guys, this is working great now - never knew that about jscmd!
>
> Thanks, Tim
>
> On Apr 30, 3:15 pm, "marius d." wrote:
> > As a general rule when we h
Thanks guys, this is working great now - never knew that about jscmd!
Thanks, Tim
On Apr 30, 3:15 pm, "marius d." wrote:
> As a general rule when we have a JsExp/JsCmd and was to stringify it
> as a JS expression always use toJsCmd.
>
> Br's,
> Marius
>
> On Apr 30, 4:50 pm, David Pollak
> wro
On Wed, Apr 29, 2009 at 11:57 AM, Andrew Scherpbier
wrote:
>
> I totally concur on the awesome explanation. As a matter of fact, can a
> committer add some of this stuff (maybe not the scala stuff but the
> actual explanation of the SessionVar) to the scaladocs of the SessionVar
> class/object?
Derek,
That's awesome. I want to help. What can I do? I can start by proof
reading stuff.
--Andrew
Derek Chen-Becker wrote:
> Updating docs are a high priority for me (an my TODO). I'm working on
> the proof copy of the APress book today and tomorrow but next week I'm
> going to start addi
Thank you, David.
On Apr 30, 12:05 pm, David Pollak
wrote:
> Personally, I'd use a custom dispatch. You're not rendering any HTML, so
> there's no reason to use the rendering machinery.
> LiftRules.dispatch.append {
> case r @ Req("change_language" :: Nil, _, GetRequest) if
> S.param("lang").
Updating docs are a high priority for me (an my TODO). I'm working on the
proof copy of the APress book today and tomorrow but next week I'm going to
start adding docs to the API.
Derek
On Wed, Apr 29, 2009 at 12:57 PM, Andrew Scherpbier
wrote:
>
> I totally concur on the awesome explanation. A
Ah. blank-single never existed under Lift 1.0, so I updated the POM to track
Lift's snapshot. The only changes you should have to make to use the
archetype under 1.0 is to modify the POM dependencies and set the
scala.version property to 2.7.3. I believe we're looking at doing a bugfix
release of 1
Personally, I'd use a custom dispatch. You're not rendering any HTML, so
there's no reason to use the rendering machinery.
LiftRules.dispatch.append {
case r @ Req("change_language" :: Nil, _, GetRequest) if
S.param("lang").isDefined && S.param("redirect").isDefined =>
TemporaryRedirectRespons
I have a link that needs to accept 2 request parameters, set a cookie
according to param1, and then redirect to "/" + param2. Is this what
a view is for?
for example, /change_language?lang=en_US&redirect=products.
This would set the lang cookie to en_US (expiring in 3 years) and then
redirect m
I can't get it to build on Windows XP. I get a different error
though. YUI compressor complains about some invalid character at the
start of some JavaScript file (which I don't see visible in the
file). Unfortunately, I do not have the exact error available right
now.
On Apr 30, 10:41 am, Mari
Derek,
Note jpa-blank-single. I actually pasted the text from pdf into local bat file
so I could re-run. I did that last week, though I don’t think you’ve changed
anything in that part of the book since. Only used lift from maven (in fact, to
be honest I can’t claim to have used “lift” at all y
That's really weird. The version in Git uses 1.0. I just used this command:
mvn archetype:generate -DarchetypeRepository=
http://scala-tools.org/repo-snapshots-DarchetypeArtifactId=lift-archetype-jpa-basic
-DarchetypeVersion=1.1-SNAPSHOT -DgroupId=com.foo.jpaweb
-DartifactId=JPADemo -Dversion=1.0-
As a general rule when we have a JsExp/JsCmd and was to stringify it
as a JS expression always use toJsCmd.
Br's,
Marius
On Apr 30, 4:50 pm, David Pollak
wrote:
> On Thu, Apr 30, 2009 at 6:44 AM, Timothy Perrett
> wrote:
>
>
>
> > The latter, its a toString
>
> That's the problem. JsExp (JsOb
On Thu, Apr 30, 2009 at 6:44 AM, Timothy Perrett wrote:
>
> The latter, its a toString
That's the problem. JsExp (JsObj is a JsExp) are NodeSeq as well (this is
to support the ability to render XML literals and JavaScript into
client-side node building). toString on a JsExp results in the XML-
The latter, its a toString
> Are you doing a "toJsCmd" on the JsObj that you're creating or a toString?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to liftweb@goog
On Thu, Apr 30, 2009 at 6:13 AM, Timothy Perrett wrote:
>
> The items with ‘item’ single quotes are just concatenated strings as
> they are fixed paths etc. Its not those which are causing the problem
> – its the serialization of JsObj that appears to be the issue here. If
> you remember some time
The items with Œitem¹ single quotes are just concatenated strings as they
are fixed paths etc. Its not those which are causing the problem its the
serialization of JsObj that appears to be the issue here. If you remember
some time ago I was asking about JsObj and Map[String,String], anyway I
en
The items with ‘item’ single quotes are just concatenated strings as
they are fixed paths etc. Its not those which are causing the problem
– its the serialization of JsObj that appears to be the issue here. If
you remember some time ago I was asking about JsObj and Map
[String,String], anyway I en
On Thu, Apr 30, 2009 at 5:44 AM, Timothy Perrett wrote:
>
> Yeah of course - im already familiar with the Script object. My code
> looks like:
>
> def show(xhtml: NodeSeq): NodeSeq = bind("uedit", xhtml,
>"application" -> Script(Run(script))
> )
script is a String. How is it built?
>
>
Yeah of course - im already familiar with the Script object. My code
looks like:
def show(xhtml: NodeSeq): NodeSeq = bind("uedit", xhtml,
"application" -> Script(Run(script))
)
And the rendered html looks like:
//
On Thu, Apr 30, 2009 at 5:13 AM, Timothy Perrett wrote:
>
> David,
>
> Thanks for your reply - so what your saying is that if I wrap it in a
> CDATA block then issues will go away?
Yeah.
Your code should look something like:
import net.liftweb.http.js.JsCmds._
This is some stuff on my page
{
On Thu, Apr 30, 2009 at 3:26 AM, Timothy Perrett wrote:
>
> Guys,
>
> Maven just pulled the latest jars from hudson and ooops, now my
> project is broken! lol.
>
> The changes to the string helpers etc to move to double quotes not
> single quotes has broken my entire application which is due to go
David,
Thanks for your reply - so what your saying is that if I wrap it in a
CDATA block then issues will go away?
Thanks, Tim
On Apr 30, 1:02 pm, David Pollak
wrote:
> On Thu, Apr 30, 2009 at 3:26 AM, Timothy Perrett
> wrote:
>
>
>
> > Guys,
>
> > Maven just pulled the latest jars from hudso
On Thu, Apr 30, 2009 at 5:04 AM, Alexander Kellett wrote:
>
> btw this is completely okay (no idea about valid) in a onclick for
> example, just not in a script block.
It works in attributes (because they cannot be CDATA.)
I've pushed reverted changes back to GitHub.
>
>
> On Thu, Apr 30, 200
btw this is completely okay (no idea about valid) in a onclick for
example, just not in a script block.
On Thu, Apr 30, 2009 at 12:26 PM, Timothy Perrett
wrote:
>
> Guys,
>
> Maven just pulled the latest jars from hudson and ooops, now my
> project is broken! lol.
>
> The changes to the string h
On Wed, Apr 29, 2009 at 7:14 PM, David Pollak
wrote:
>>> /classpath/date_2009_04_29_18_20/json.js
i don't really see many advantages to having the number half way
through the path, only disadvantages, it makes it slightly more
difficult to see / copy and paste the referenced path, for no real
bo
Guys,
Maven just pulled the latest jars from hudson and ooops, now my
project is broken! lol.
The changes to the string helpers etc to move to double quotes not
single quotes has broken my entire application which is due to go out
tomorrow. For instance:
{'useJSToGetCustomizationValues': 'false
I just realized, I removed the header comments to the classes under the
package scalame and had removed credit to Lift for SBind (modifying Bind).
My apologies, and I understand my code is nowhere near as well written as
the original.
Oliver
--~--~-~--~~~---~--~~
36 matches
Mail list logo