[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
feeder.of.the.be...@gmail.com wrote:
 Please open a ticket

 On Wed, Sep 16, 2009 at 11:27 AM, harryh har...@gmail.com 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
-~--~~~~--~~--~--~---



[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] 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 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 mondraym...@gmail.com 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 feeder.of.the.be...@gmail.com
 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 new_branch_name
  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] [scala:testCompile {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 mondraym...@gmail.com 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 feeder.of.the.be...@gmail.com
 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 new_branch_name
  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] [scala:testCompile {execution: default}]
  [INFO] Checking for multiple versions of scala
  [WARNING] No source files found.
  [INFO] 

[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 run...@gmail.com 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 mondraym...@gmail.com 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 feeder.of.the.be...@gmail.com
  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 new_branch_name
   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 

[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
 http://scala-tools.org?  If not, please send mail to
 ad...@scala-tools.org mailto:ad...@scala-tools.org

I don't. Have sent mail.


 On Sat, Sep 19, 2009 at 12:58 PM, Indrajit Raychaudhuri
 indraj...@gmail.com 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.
  
  
  
  
 
 http://maven.apache.org/guides/introduction/introduction-to-profiles.html
  
   On Sat, Sep 19, 2009 at 6:28 PM, Indrajit Raychaudhuri
   indraj...@gmail.com mailto:indraj...@gmail.com
 mailto:indraj...@gmail.com 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:
   profiles
   profile
   iddppactor/id
   activation
   activeByDefaultfalse/activeByDefault
   /activation
   dependencies
   dependency
   groupIdnet.liftweb/groupId
   artifactIdlift-actor/artifactId
   version1.1-SNAPSHOT/version
   classifierdpp/classifier
   /dependency
   /dependencies
   /profile
   /profiles
  
   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
 feeder.of.the.be...@gmail.com mailto:feeder.of.the.be...@gmail.com
   mailto:feeder.of.the.be...@gmail.com
 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
 http://liftweb.net
   http://liftweb.net
Beginning Scalahttp://www.apress.com/book/view/1430219890
 http://www.apress.com/book/view/1430219890
   http://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.com/dpp
 Git some: 

[Lift] Re: Tabs + menu builder

2009-09-20 Thread Jeppe Nejsum Madsen

tiro tim.romb...@googlemail.com 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)
xml:groupmenu:bind/ /xml:group
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)) span{linkText}/span 
else a href={link}{linkText}/a) % 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] 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: 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 liep...@xs4all.nl 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
-~--~~~~--~~--~--~---