[Lift] Re: HSQL support

2009-09-20 Thread David Pollak
On Sun, Sep 20, 2009 at 5:18 PM, sergey  wrote:

>
> Hi!
>
> My question is - does Lift support HSQL now?
>

No and we have no plans to support HSQL.  We support H2.

Is there a particular reason that you need HSQL?


> (I have the following error when trying to create connection to HSQL-
> scala.MatchError: HSQL Database Engine)
>
> Thank you
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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: javascript disabled on mobile phone browsers

2009-09-20 Thread marius d.

Yes .. you can use lift with zero javascript. But obviously you won't
have comet, you need to turn off auto Ajax and comet generation from
LiftRules

LiftRules.enableLiftGC = false;
Liftules.autoIncludeComet = session => false
Liftules.autoIncludeAjax = session => false


Br's,
Marius

On Sep 20, 6:18 am, koveen  wrote:
> Hi,
>
> I am new to this lift group and just starting to build a website for
> mobile phone users. While I like to use dynamically loaded pages, I am
> afraid that some older mobile phone browsers don't support Javascript.
>
> Is there a way to include Javascript in my web-pages, but to keep a
> working site is Javascript is not supported?
>
> Thanks,
>
> Ko
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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] HSQL support

2009-09-20 Thread sergey

Hi!

My question is - does Lift support HSQL now?
(I have the following error when trying to create connection to HSQL-
scala.MatchError: HSQL Database Engine)

Thank you

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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: Tabs + menu builder

2009-09-20 Thread Jeppe Nejsum Madsen

tiro  writes:

> Jeppe> We've made primary/secondary navigation where primary
> navigation is ...
>
> I did something similar..found it difficult to work with the default
> snippets.
> But found it hard, when writing my own group snippet, to identify the
> current Loc within the LocGroups Locs.

It's been a while since I wrote this, so don't recall if there any
issues, but this is my group snippet:

  def group(template:NodeSeq) : NodeSeq = {
val toBind = if ((template \ "bind").filter(_.prefix == "menu").isEmpty)
 
else 
   template

val attrs = S.prefixedAttrsToMetaData("a")

for (group <- S.attr("group").toList;
 siteMap <- LiftRules.siteMap.toList;
 loc <- siteMap.locForGroup(group);
 req <- S.request;
 curLoc <- req.location;
 link <- loc.createDefaultLink;
 linkText <- loc.linkText) yield {

  val a = (if (inPath(loc,  curLoc.breadCrumbs)) {linkText} 
else {linkText}) % attrs

  Group(bind("menu", toBind, "bind" -> a))
  }
  }

>
> So Jeppe, would be very interested in your code for that snippet. Mine
> is below (only slightly modified from Menu.group). But it's not yet
> quite there.

I also used Menu.group as a starting point.
>
> I also had a fiendish problem (lift 1.0.2 scala 2.7.5) when trying to
> use attributes li:class="x" li_item:class="y" on the tag. Isn't that a
> standard technique? Does it work for everyone else? For me, Scala
> chokes on that with a syntax error (further experiments suggest that
> it doesn't like two attributes with same name and different prefix,
> perhaps also because BOTH prefixes are from an unknown namespace). Of
> course it doesn't show you the exact error but faults with an
> IllegalArgumentException on scala.io.Source, but this has been
> discussed elsewhere. Anyway, that's why I have the new unprefixed
> attributes in the code below.
>

Actually, I think I reported this as well and this works now (at least
in 1.1-SNAPSHOT). If possible, you should upgrade to 1.1 since the error
reporting has improved a lot. The IllegalArgumentException error you see
is not the root cause in your code, but an error that happens when
trying to show the source of the error !


/Jeppe

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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: Alternate Lift builds?

2009-09-20 Thread Indrajit Raychaudhuri



On 20/09/09 4:46 AM, David Pollak wrote:
> Care to take a look at the pom.xml files in the dpp_wip_actorized branch
> and make them to the right thing?

Done: 
http://github.com/dpp/liftweb/commit/45dc2e55bd37104aa2a56990914b38a1895b18f6

But the tests don't pass in lift-util hope that's a known one.

>
> Also, do you have rights on Hudson/Nexus on scala-tools.org
> ?  If not, please send mail to
> ad...@scala-tools.org 

I don't. Have sent mail.

>
> On Sat, Sep 19, 2009 at 12:58 PM, Indrajit Raychaudhuri
> mailto:indraj...@gmail.com>> wrote:
>
>
> Acknowledged. Using property to activate profile allows greater
> flexibility and would be preferred option indeed.
>
> Cheers, Indrajit
>
>
> On 20/09/09 1:19 AM, Kevin Wright wrote:
>  > Quite right, it's "classifier" and not "qualifier".  It was a typo,
>  > honest! :-p
>  >
>  >
>  > Nice thinking about using profiles, lets you keep the pom in sync
>  > between trunk and the branch, should help nicely with those
> merges  One
>  > change I would make though is to activate the profile by way of a
> property:
>  >
>  >
> http://maven.apache.org/guides/introduction/introduction-to-profiles.html
>  >
>  > It doesn't make a great deal of difference at this level, but
> I've found
>  > it can really make things a lot more flexible if you want to start
>  > mixing in configurations based on architecture or JVM version, or if
>  > you're working with multi-module builds.
>  >
>  >
>  >
>  >
> 
> 
>  >
>  > On Sat, Sep 19, 2009 at 6:28 PM, Indrajit Raychaudhuri
>  > mailto:indraj...@gmail.com>
> >> wrote:
>  >
>  >
>  > Dependency classifier might be close to what you'd need.
>  > See the 'Classifier' section in
>  > http://maven.apache.org/pom.html#Dependencies
>  >
>  > So, you could create a build profile (disabled by default), say
>  > dppactor as so:
>  > 
>  > 
>  > dppactor
>  > 
>  > false
>  > 
>  > 
>  > 
>  > net.liftweb
>  > lift-actor
>  > 1.1-SNAPSHOT
>  > dpp
>  > 
>  > 
>  > 
>  > 
>  >
>  > See http://maven.apache.org/pom.html#Profiles for more.
>  >
>  > Now if you invoke mvn -Pdppactor compile, the dependency
> would be on
>  > lift-actor-1.1-SNAPSHOT-dpp.jar!
>  >
>  > To create lift-actor-1.1-SNAPSHOT-dpp.jar, you can follow the
> same
>  > technique (another profile). Just use the optional config
> parameter
>  > 'classifier'
>  > See:
>  >
> http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html#classifier
>  >
>  > Now Hudson build would just need the extra param (-P) to do the
>  > needful.
>  >
>  > Hope this helps.
>  >
>  > Cheers, Indrajit
>  >
>  >
>  > On Sep 19, 4:38 am, David Pollak
> mailto:feeder.of.the.be...@gmail.com>
>  >  >>
>  > wrote:
>  > > Folks,
>  > > Is there a clean and easy way that anyone knows of to have
> Hudson do
>  > > alternate builds from different Git branches and put them in
>  > SNAPSHOTS with
>  > > different versions (e.g., 1.1-SNAPSHOT_DPP_ACTOR)?
>  > >
>  > > I am making some wholesale changes to Lift's use of Actors
> (basically
>  > > getting rid of all Scala Actors and creating some simple traits
>  > that Akka or
>  > > other systems can implement so that Lift-based systems can choose
>  > different
>  > > Actor implementations.
>  > >
>  > > Given that these changes are non-trivial, I'd like to run a
>  > parallel version
>  > > of Lift for at least a few weeks and get feedback on the API
>  > changes and
>  > > performance before committing the code to the main branch, but I
>  > want the
>  > > code to available in Hudson.
>  > >
>  > > So... any ideas?
>  > >
>  > > Thanks,
>  > >
>  > > David
>  > >
>  > > --
>  > > Lift, the simply functional web frameworkhttp://liftweb.net
> 
>  > 
>  > > Beginning Scalahttp://www.apress.com/book/view/1430219890
> 
>  > 
>  > > Follow me:http://twitter.com/dpp
>  > > Git some:http://github.com/dpp
>  >
>  >
>  >
>  > >
>
>
>
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.co

[Lift] Re: Pain Building Lift

2009-09-20 Thread Tim Nelson
The appendices were not included in the printed book. You can get them
online here:
http://www.apress.com/book/downloadfile/4390

Also, they are included in the os version of the book:
http://groups.google.com/group/the-lift-book

Tim

On Sun, Sep 20, 2009 at 7:44 AM, runt  wrote:

>
> Thank you all for the responses.
>
> I try and build everything from source - and no it is not always easy
> but I like doing it. I sudo'd because I was in /usr/local/src - on my
> machine this did require sudo. I had already played around with lift
> using the maven commands and from the Eclipse IDE - this is well
> documented online and in the books I have bought. Did the hello world
> thing (from your book Derek, p.s. where are the Appendixes? Seriously
> I can't find them in the copy I paid for from Apress), then tried to
> build from source...
>
> And this is an example where an idiot compiling from source is evil -
> the problem was path related. Running java -version reports the 1.6
> java I downloaded and installed from sun. Running mvn -version shows
> otherwise (on my mac now as I had this light bulb moment at home)
>
> myee-riris-macbook-pro:liftweb runt$ /opt/apache-maven-2.2.1/bin/mvn -
> version
> Apache Maven 2.2.1 (r801777; 2009-08-07 05:16:01+1000)
> Java version: 1.5.0_16
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
> Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x" version: "10.5.8" arch: "i386" Family: "unix"
>
> Fixed the path to use my 1.6 java. Can now build successfully, and
> have been checking it out. Happiness++.
>
> My apologies for spamming you with my stupidity. Take pleasure in
> knowing said stupidity is immortalised on the web.
>
> On Sep 20, 6:06 am, mond ray mond  wrote:
> > Ha - beat you ;-)
> >
> > [INFO]
> > 
> > [INFO] BUILD SUCCESSFUL
> > [INFO]
> > 
> > [INFO] Total time: 7 minutes 56 seconds
> > [INFO] Finished at: Sat Sep 19 22:02:30 CEST 2009
> > [INFO] Final Memory: 47M/85M
> > [INFO]
> > 
> > bash-3.2$
> >
> > Must have been the 'clean'.  My missus says I should tidy up more
> > often too!
> >
> > Thanks for the support
> >
> > Best regards
> >
> > Ray
> >
> > On Sep 19, 7:03 pm, David Pollak 
> > wrote:
> >
> > > On my Mac OS X box:
> >
> > > pony:liftweb dpp$ mvn -version
> > > Maven version: 2.0.9
> > > Java version: 1.6.0_15
> > > OS name: "mac os x" version: "10.6" arch: "i386" Family: "mac"
> > > pony:liftweb dpp$
> >
> > > Here's the build log:
> >
> > > pony:~ dpp$ cd tmp/
> > > pony:tmp dpp$ git clone git://github.com/dpp/liftweb.git
> > > Initialized empty Git repository in /Users/dpp/tmp/liftweb/.git/
> > > remote: Counting objects: 35122, done.
> > > remote: Compressing objects: 100% (12807/12807), done.
> > > remote: Total 35122 (delta 14036), reused 34877 (delta 13857)
> > > Receiving objects: 100% (35122/35122), 18.53 MiB | 907 KiB/s, done.
> > > Resolving deltas: 100% (14036/14036), done.
> > > pony:tmp dpp$ cd liftweb/
> > > pony:liftweb dpp$ git tag
> > > 0.10
> > > 0.9
> > > 1.0
> > > 1.0.1
> > > 1.0.2
> > > 1.1-M1
> > > 1.1-M3
> > > 1.1-M4
> > > 1.1-M5
> > > bonded_to_rev_121_baf_dpp
> > > buy_a_feature_svn_130
> > > igo_1_0
> > > innovation_games_oneline_1_0
> > > osgi01
> > > teched08_demo_jam
> > > pony:liftweb dpp$ git checout 1.0.2
> > > git: 'checout' is not a git-command. See 'git --help'.
> >
> > > Did you mean this?
> > > checkout
> > > pony:liftweb dpp$ git checkout 1.0.2
> > > Note: moving to '1.0.2' which isn't a local branch
> > > If you want to create a new branch from this checkout, you may do so
> > > (now or later) by using -b with the checkout command again. Example:
> > >   git checkout -b 
> > > HEAD is now at eb3efbd... [release] prepare 1.0.2
> > > pony:liftweb dpp$ mvn clean install
> > > [INFO] Scanning for projects...
> > > [INFO] Reactor build order:
> > > [INFO]   Lift
> > > [INFO]   Lift Utils
> > > [INFO]   Lift WebKit
> > > [INFO]   Lift Mapper
> > > [INFO]   Lift Machine
> > > [INFO]   Lift Record
> > > [INFO]   Lift Textile
> > > [INFO]   Lift Facebook
> > > [INFO]   Lift AMQP
> > > [INFO]   Lift XMPP
> > > [INFO]   Lift Widgets
> > > [INFO]   Lift OpenID
> > > [INFO]   Lift OAuth
> > > [INFO]   Lift PayPal
> > > [INFO]   Lift TestKit
> > > [INFO]   Lift Core (full lift)
> > > [INFO]   Lift Sites
> > > [INFO]   Lift Example
> > > [INFO]   Skittr Example
> > > [INFO]   HelloLift example application
> > > [INFO]   HelloDarwin tutorial application
> > > [INFO]   JPA Demo Master
> > > [INFO]   JPADemo-spa
> > > [INFO]   JPADemo-web
> > > [INFO]   HTTP Authentication example
> > > [INFO]   lift-archetype-blank
> > > [INFO]   lift-archetype-basic
> > > WAGON_VERSION: 1.0-beta-2
> > > [INFO]
> > >
> ---

[Lift] Re: Pain Building Lift

2009-09-20 Thread runt

Thank you all for the responses.

I try and build everything from source - and no it is not always easy
but I like doing it. I sudo'd because I was in /usr/local/src - on my
machine this did require sudo. I had already played around with lift
using the maven commands and from the Eclipse IDE - this is well
documented online and in the books I have bought. Did the hello world
thing (from your book Derek, p.s. where are the Appendixes? Seriously
I can't find them in the copy I paid for from Apress), then tried to
build from source...

And this is an example where an idiot compiling from source is evil -
the problem was path related. Running java -version reports the 1.6
java I downloaded and installed from sun. Running mvn -version shows
otherwise (on my mac now as I had this light bulb moment at home)

myee-riris-macbook-pro:liftweb runt$ /opt/apache-maven-2.2.1/bin/mvn -
version
Apache Maven 2.2.1 (r801777; 2009-08-07 05:16:01+1000)
Java version: 1.5.0_16
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.5.8" arch: "i386" Family: "unix"

Fixed the path to use my 1.6 java. Can now build successfully, and
have been checking it out. Happiness++.

My apologies for spamming you with my stupidity. Take pleasure in
knowing said stupidity is immortalised on the web.

On Sep 20, 6:06 am, mond ray mond  wrote:
> Ha - beat you ;-)
>
> [INFO]
> 
> [INFO] BUILD SUCCESSFUL
> [INFO]
> 
> [INFO] Total time: 7 minutes 56 seconds
> [INFO] Finished at: Sat Sep 19 22:02:30 CEST 2009
> [INFO] Final Memory: 47M/85M
> [INFO]
> 
> bash-3.2$
>
> Must have been the 'clean'.  My missus says I should tidy up more
> often too!
>
> Thanks for the support
>
> Best regards
>
> Ray
>
> On Sep 19, 7:03 pm, David Pollak 
> wrote:
>
> > On my Mac OS X box:
>
> > pony:liftweb dpp$ mvn -version
> > Maven version: 2.0.9
> > Java version: 1.6.0_15
> > OS name: "mac os x" version: "10.6" arch: "i386" Family: "mac"
> > pony:liftweb dpp$
>
> > Here's the build log:
>
> > pony:~ dpp$ cd tmp/
> > pony:tmp dpp$ git clone git://github.com/dpp/liftweb.git
> > Initialized empty Git repository in /Users/dpp/tmp/liftweb/.git/
> > remote: Counting objects: 35122, done.
> > remote: Compressing objects: 100% (12807/12807), done.
> > remote: Total 35122 (delta 14036), reused 34877 (delta 13857)
> > Receiving objects: 100% (35122/35122), 18.53 MiB | 907 KiB/s, done.
> > Resolving deltas: 100% (14036/14036), done.
> > pony:tmp dpp$ cd liftweb/
> > pony:liftweb dpp$ git tag
> > 0.10
> > 0.9
> > 1.0
> > 1.0.1
> > 1.0.2
> > 1.1-M1
> > 1.1-M3
> > 1.1-M4
> > 1.1-M5
> > bonded_to_rev_121_baf_dpp
> > buy_a_feature_svn_130
> > igo_1_0
> > innovation_games_oneline_1_0
> > osgi01
> > teched08_demo_jam
> > pony:liftweb dpp$ git checout 1.0.2
> > git: 'checout' is not a git-command. See 'git --help'.
>
> > Did you mean this?
> >     checkout
> > pony:liftweb dpp$ git checkout 1.0.2
> > Note: moving to '1.0.2' which isn't a local branch
> > If you want to create a new branch from this checkout, you may do so
> > (now or later) by using -b with the checkout command again. Example:
> >   git checkout -b 
> > HEAD is now at eb3efbd... [release] prepare 1.0.2
> > pony:liftweb dpp$ mvn clean install
> > [INFO] Scanning for projects...
> > [INFO] Reactor build order:
> > [INFO]   Lift
> > [INFO]   Lift Utils
> > [INFO]   Lift WebKit
> > [INFO]   Lift Mapper
> > [INFO]   Lift Machine
> > [INFO]   Lift Record
> > [INFO]   Lift Textile
> > [INFO]   Lift Facebook
> > [INFO]   Lift AMQP
> > [INFO]   Lift XMPP
> > [INFO]   Lift Widgets
> > [INFO]   Lift OpenID
> > [INFO]   Lift OAuth
> > [INFO]   Lift PayPal
> > [INFO]   Lift TestKit
> > [INFO]   Lift Core (full lift)
> > [INFO]   Lift Sites
> > [INFO]   Lift Example
> > [INFO]   Skittr Example
> > [INFO]   HelloLift example application
> > [INFO]   HelloDarwin tutorial application
> > [INFO]   JPA Demo Master
> > [INFO]   JPADemo-spa
> > [INFO]   JPADemo-web
> > [INFO]   HTTP Authentication example
> > [INFO]   lift-archetype-blank
> > [INFO]   lift-archetype-basic
> > WAGON_VERSION: 1.0-beta-2
> > [INFO]
> > 
> > [INFO] Building Lift
> > [INFO]    task-segment: [clean, install]
> > [INFO]
> > 
> > [INFO] artifact org.scala-tools:maven-scala-plugin: checking for updates
> > from scala-tools.org
> > [INFO] artifact org.apache.maven.plugins:maven-eclipse-plugin: checking for
> > updates from scala-tools.org
> > [INFO] [clean:clean]
> > [INFO] [scala:compile {execution: default}]
> > [INFO] Checking for multiple versions of scala
> > [WARNING] No source files found.
> > [INFO]

[Lift] Re: Pain Building Lift

2009-09-20 Thread runt

Thank you all for the responses.

I try and build everything from source - and no it is not always easy
but I like doing it. I sudo'd because I was in /usr/local/src - on my
machine this did require sudo. I had already played around with lift
using the maven commands and from the Eclipse IDE - this is well
documented online and in the books I have bought. Did the hello world
thing (from your book Mr Chen-Becker, p.s. where are the Appendixes?
Seriously I can't find them in the copy I paid for from Apress), then
tried to build from source...

And this is an example where an idiot compiling from source is evil -
the problem was path related. Running java -version reports the 1.6
java I downloaded and installed from sun. Running mvn -version shows
otherwise (on my mac now as I had this light bulb moment at home)

myee-riris-macbook-pro:liftweb runt$ /opt/apache-maven-2.2.1/bin/mvn -
version
Apache Maven 2.2.1 (r801777; 2009-08-07 05:16:01+1000)
Java version: 1.5.0_16
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.5.8" arch: "i386" Family: "unix"

Fixed the path to use my 1.6 java. Can now build successfully, and
have been checking it out. Happiness++.

My apologies for spamming you with my stupidity. Take pleasure in
knowing said stupidity is immortalised on the web.

On Sep 20, 6:06 am, mond ray mond  wrote:
> Ha - beat you ;-)
>
> [INFO]
> 
> [INFO] BUILD SUCCESSFUL
> [INFO]
> 
> [INFO] Total time: 7 minutes 56 seconds
> [INFO] Finished at: Sat Sep 19 22:02:30 CEST 2009
> [INFO] Final Memory: 47M/85M
> [INFO]
> 
> bash-3.2$
>
> Must have been the 'clean'.  My missus says I should tidy up more
> often too!
>
> Thanks for the support
>
> Best regards
>
> Ray
>
> On Sep 19, 7:03 pm, David Pollak 
> wrote:
>
> > On my Mac OS X box:
>
> > pony:liftweb dpp$ mvn -version
> > Maven version: 2.0.9
> > Java version: 1.6.0_15
> > OS name: "mac os x" version: "10.6" arch: "i386" Family: "mac"
> > pony:liftweb dpp$
>
> > Here's the build log:
>
> > pony:~ dpp$ cd tmp/
> > pony:tmp dpp$ git clone git://github.com/dpp/liftweb.git
> > Initialized empty Git repository in /Users/dpp/tmp/liftweb/.git/
> > remote: Counting objects: 35122, done.
> > remote: Compressing objects: 100% (12807/12807), done.
> > remote: Total 35122 (delta 14036), reused 34877 (delta 13857)
> > Receiving objects: 100% (35122/35122), 18.53 MiB | 907 KiB/s, done.
> > Resolving deltas: 100% (14036/14036), done.
> > pony:tmp dpp$ cd liftweb/
> > pony:liftweb dpp$ git tag
> > 0.10
> > 0.9
> > 1.0
> > 1.0.1
> > 1.0.2
> > 1.1-M1
> > 1.1-M3
> > 1.1-M4
> > 1.1-M5
> > bonded_to_rev_121_baf_dpp
> > buy_a_feature_svn_130
> > igo_1_0
> > innovation_games_oneline_1_0
> > osgi01
> > teched08_demo_jam
> > pony:liftweb dpp$ git checout 1.0.2
> > git: 'checout' is not a git-command. See 'git --help'.
>
> > Did you mean this?
> >     checkout
> > pony:liftweb dpp$ git checkout 1.0.2
> > Note: moving to '1.0.2' which isn't a local branch
> > If you want to create a new branch from this checkout, you may do so
> > (now or later) by using -b with the checkout command again. Example:
> >   git checkout -b 
> > HEAD is now at eb3efbd... [release] prepare 1.0.2
> > pony:liftweb dpp$ mvn clean install
> > [INFO] Scanning for projects...
> > [INFO] Reactor build order:
> > [INFO]   Lift
> > [INFO]   Lift Utils
> > [INFO]   Lift WebKit
> > [INFO]   Lift Mapper
> > [INFO]   Lift Machine
> > [INFO]   Lift Record
> > [INFO]   Lift Textile
> > [INFO]   Lift Facebook
> > [INFO]   Lift AMQP
> > [INFO]   Lift XMPP
> > [INFO]   Lift Widgets
> > [INFO]   Lift OpenID
> > [INFO]   Lift OAuth
> > [INFO]   Lift PayPal
> > [INFO]   Lift TestKit
> > [INFO]   Lift Core (full lift)
> > [INFO]   Lift Sites
> > [INFO]   Lift Example
> > [INFO]   Skittr Example
> > [INFO]   HelloLift example application
> > [INFO]   HelloDarwin tutorial application
> > [INFO]   JPA Demo Master
> > [INFO]   JPADemo-spa
> > [INFO]   JPADemo-web
> > [INFO]   HTTP Authentication example
> > [INFO]   lift-archetype-blank
> > [INFO]   lift-archetype-basic
> > WAGON_VERSION: 1.0-beta-2
> > [INFO]
> > 
> > [INFO] Building Lift
> > [INFO]    task-segment: [clean, install]
> > [INFO]
> > 
> > [INFO] artifact org.scala-tools:maven-scala-plugin: checking for updates
> > from scala-tools.org
> > [INFO] artifact org.apache.maven.plugins:maven-eclipse-plugin: checking for
> > updates from scala-tools.org
> > [INFO] [clean:clean]
> > [INFO] [scala:compile {execution: default}]
> > [INFO] Checking for multiple versions of scala
> > [WARNING] No source files found.
>

[Lift] Non-autogenerated primary keys

2009-09-20 Thread Thomas

I'm in the process of working with an application that uses UUIDs for
the primary keys of all my tables. After updating to 1.1-M5, I started
getting "java.lang.NullPointerException: Trying to open an empty Box
" excptions.

After tracking down what the problem was, it seems that checkin for
supporting non-autogenerated primary keys broke them. By using this
patch, they appear to be working again:

@@ -884,7 +884,7 @@ trait MetaMapper[A<:Mapper[A]] extends
BaseMetaMapper with M
 mappedColumnInfo(colName) = mf
 mappedColumns(colName) = v
   }
-  if (mf.dbPrimaryKey_? && mf.dbAutogenerated_?) {
+  if (mf.dbPrimaryKey_?) {
 indexMap = Full(MapperRules.quoteColumnName
(mf.dbColumnName)) // Fu
   }

Is there something that I'm breaking here or is this a valid patch?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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: Pain Building Lift

2009-09-20 Thread mond ray mond

1.0.2 builds OK on my Mac (as above) but the 1.1 build still gives me
the setSQL failures.

On further inspection...

bash-3.2$ java -version
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-226)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-92, mixed mode)

bash-3.2$ mvn -version
+ exec /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/
Home/bin/java -Xmx1g -classpath /Users/ray/Development/tools/apache-
maven-2.0.9/boot/classworlds-1.1.jar -Dclassworlds.conf=/Users/ray/
Development/tools/apache-maven-2.0.9/bin/m2.conf -Dmaven.home=/Users/
ray/Development/tools/apache-maven-2.0.9
org.codehaus.classworlds.Launcher '"-version"'
Maven version: 2.0.9
Java version: 1.5.0_20
OS name: "mac os x" version: "10.5.8" arch: "i386" Family: "unix"

So indeed I was building under 1.5 through a misconfiguration of Maven
- I am sharing this foolishness since there may be other fools out
there too ;-)

Thanks for the support.

Best regards

Ray

On Sep 19, 10:07 pm, Derek Chen-Becker  wrote:
> That particular error is saying that java.sql.PreparedStatement.setSQLXML
> doesn't exist. This method was added in 1.6, so I may have unwittingly made
> the build break under 1.5. Are you, by any chance, using a 1.5 JDK?
>
> Derek
>
> On Sat, Sep 19, 2009 at 10:31 AM, mond ray mond wrote:
>
>
>
> > It's an open source project so I don't think that users that have the
> > temerity to build it should be questioned ;-)
>
> > Like our friend runt (probably not his / her real name), I have built
> > 1.0.2 from the github tag, following your instructions and get build
> > problems with the SQLMapper.  A small sample:
>
> > [WARNING] /Users/ray/NetBeansProjects/liftweb/lift-mapper/src/main/
> > scala/net/liftweb/mapper/LoggingStatementWrappers.scala:565: error:
> > value setSQLXML is not a member of java.sql.PreparedStatement
> > [WARNING]       underlying.setSQLXML(index, x)
> > [WARNING]                  ^
> > [WARNING] 28 errors found
> > [INFO]
> > 
> > [ERROR] BUILD FAILURE
> > [INFO]
> > 
>
> > What must be done to build successfully?
>
> > Thanks
>
> > Ray
>
> > On Sep 19, 10:35 am, Timothy Perrett  wrote:
> > > runt,
>
> > > Why on earth are you sudo'ing for a simple build? Moreover, is there a
> > > reason you want to build from source? See my instructions here:
>
> > >http://wiki.github.com/dpp/liftweb/how-to-getting-and-building-from-s...
>
> > > To be honest, if you just want to use lift then you really don't need
> > > to build the source - try the following command also:
>
> > > mvn archetype:generate -DarchetypeCatalog=http://scala-tools.org/
>
> > > Try those and let me know...
>
> > > Cheers, Tim
>
> > > On Sep 19, 1:14 am, runt  wrote:
>
> > > > Hi Everyone,
>
> > > > Ok, so I want to see what the hype is about with Lift - it sounds
> > > > pretty exciting. However trying to build Lift from source is killing
> > > > my buzz, I tried using the instructions from the wiki
>
> > > > sudo git clone git://github.com/dpp/liftweb.git
> > > > cd liftweb
> > > > sudo /opt/maven/bin/mvn -e install
>
> > > > on unbuntu 9.04, with maven 2.2.1, and git 1.6.3.3. I have a tried it
> > > > a couple times and had epic fails that have ranged from compilation
> > > > errors to runtime errors.
>
> > > > Readinghttp://wiki.liftweb.net/index.php/Source_codesaystheclone
> > > > URL is from the trunk. Please correct me if I am mistaken with that -
> > > > I cannot seem to find anything about Lift's release management.
>
> > > > My question is are stable release sources available? I would like to
> > > > try my luck with one of those.
>
> > > > Thankyou - runt

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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] javascript disabled on mobile phone browsers

2009-09-20 Thread koveen

Hi,

I am new to this lift group and just starting to build a website for
mobile phone users. While I like to use dynamically loaded pages, I am
afraid that some older mobile phone browsers don't support Javascript.

Is there a way to include Javascript in my web-pages, but to keep a
working site is Javascript is not supported?

Thanks,

Ko


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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: Session locking...

2009-09-20 Thread marius d.

What would addSetupFunction do ?

I think this locking mechanism can be irrespective of LiftSession and
built into your app. Such as you set a logical lock to a resource that
a certain session has access to. Other sessions trying to use that
resource would be denied access with a user friendly message in the
browser. This is not a thread lock ... just a guard. You could use a
lease mechanism so that a lock is released after a period of time and
this would not necessary mean session expiration.


If user A drops and say closes the browser the lease will expire
anyways. Detecting close browser actions is not 100% reliable.

Br's,
Marius

On Sep 20, 7:37 am, Timothy Perrett  wrote:
> Hmm - see what you mean Derek. It seems like it would be really
> helpful to have a addSetupFunction method on LiftSession - what are
> your thoughts?
>
> Cheers, Tim
>
> On Sep 19, 9:17 pm, Derek Chen-Becker  wrote:
>
> > S.session.foreach { _.addCleanupFunction { sess => ... } }, I think should
> > work. I haven't looked at the session code in a while. You would need to
> > register that call for each user's session. Alternatively, there's
> > LiftSession.onShutdownSession, but I think that that call comes later in the
> > shutdown process, and may not work correctly.
>
> > Derek
>
> > On Sat, Sep 19, 2009 at 11:10 AM, Timothy Perrett
> > wrote:
>
> > > Guys,
>
> > > I have a situation where i need to sort of present some kind of
> > > locking to the users of this application. For instance, user A opens
> > > thing Z (perhaps i update the database with some flag or whatever)
> > > then user B attempts  to open thing Z from another terminal. Its at
> > > that point that I want user B to be told that its locked or being
> > > edited by another user. So far, so good.
>
> > > However, if user A dropped out without saving or whatever (thus
> > > unsetting the locked flag) it would be locked for all. To that end, I
> > > was wondering if its possible to register some kind of session
> > > destruction callback. By that I mean lift keeps sessions open for as
> > > long as the browser window is open, so when the session is killed off
> > > i could just have some function execute to unlock the thing Z or
> > > whatever.
>
> > > Is there a way to do this?
>
> > > Cheers, Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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: Session locking...

2009-09-20 Thread Timothy Perrett

Hmm - see what you mean Derek. It seems like it would be really
helpful to have a addSetupFunction method on LiftSession - what are
your thoughts?

Cheers, Tim

On Sep 19, 9:17 pm, Derek Chen-Becker  wrote:
> S.session.foreach { _.addCleanupFunction { sess => ... } }, I think should
> work. I haven't looked at the session code in a while. You would need to
> register that call for each user's session. Alternatively, there's
> LiftSession.onShutdownSession, but I think that that call comes later in the
> shutdown process, and may not work correctly.
>
> Derek
>
> On Sat, Sep 19, 2009 at 11:10 AM, Timothy Perrett
> wrote:
>
>
>
>
>
> > Guys,
>
> > I have a situation where i need to sort of present some kind of
> > locking to the users of this application. For instance, user A opens
> > thing Z (perhaps i update the database with some flag or whatever)
> > then user B attempts  to open thing Z from another terminal. Its at
> > that point that I want user B to be told that its locked or being
> > edited by another user. So far, so good.
>
> > However, if user A dropped out without saving or whatever (thus
> > unsetting the locked flag) it would be locked for all. To that end, I
> > was wondering if its possible to register some kind of session
> > destruction callback. By that I mean lift keeps sessions open for as
> > long as the browser window is open, so when the session is killed off
> > i could just have some function execute to unlock the thing Z or
> > whatever.
>
> > Is there a way to do this?
>
> > Cheers, Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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: Bug in MappedEmail: emailPattern is wrong

2009-09-20 Thread Richard Dallaway

Apologies if I've duplicated the ticket, but I couldn't find it one,
and this issue is going to impact me too.

http://github.com/dpp/liftweb/issues/#issue/65

Cheers
Richard

On Fri, Sep 18, 2009 at 6:32 PM, David Pollak
 wrote:
> Please open a ticket
>
> On Wed, Sep 16, 2009 at 11:27 AM, harryh  wrote:
>>
>> Hrm, MappedEmail is now rejecting e-mails with a - in the part before
>> the @.
>>
>> is %-+ being interpreted as % through + and not % OR - OR + ?
>>
>> -harryh, who is easily confused by regular expressions
>>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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
-~--~~~~--~~--~--~---