[Lift] Re: beginner's question about surround/bind/bind-at/with-param

2009-11-05 Thread jhonig

James,

> That would be because those are examples of tags, not copy-and-paste-code
> necessarily.

I didn't just cut and paste, tried to extract the "rule" how to do it
(of course).

> I can think of about million definitions of "just didn't work".  Which one
> do you mean here?

Blank page when I referred to my new "index" page referring to the
template.
No error message.  Looks like "nothing happening at all".   Assuming
the
"surround" didn't get bound.

When I said "head merging" didn't work, it was just that.  I tried to
merge a
title to the "head" element but it didn't make it.  No error message.
So in
this case "didn't work" meant "didn't have any visible effects at
all".  Sorry
for the overloading of the term "didn't work" :-)

Only  when I used a surround with "at" and a single bind point it my
page
showed up in the browser with the title merged.  That is the page I
have
now.

> Again.  No code, can't really tell you what's wrong, or right.

I'm sorry for that.  The problem was that I switched to a single bind
point
(which did what I wanted for now) and didn't keep the old code because
I
assumed I had used outdated documentation.  But now it appears that
the
working version is based on outdated information!

I will recreate the other version today and report any successes or
failures,
including code.

> Which examples are you talking about?  Most of the ones I've seen are fairly
> trivial.

My examples were even more trivial :-)  For now, I want just 3 static
pages
that refer to each other, each with a number of areas that are bound
to a
hook in a page template.  That's all.  That shouldn't be too
difficult, I thought.

Job Honig

--~--~-~--~~~---~--~~
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: beginner's question about surround/bind/bind-at/with-param

2009-11-05 Thread jhonig

I used 1.0, now switching to 1.1-M7, will report later.  First result
is that now the
Boot file of the demo project doesn't compile anymore.   Box, Full,
and Empty
are not found.

Job H.

On Nov 5, 11:47 pm, David Pollak 
wrote:
> On Thu, Nov 5, 2009 at 2:30 PM, Jim Barrows  wrote:
>
> > On Thu, Nov 5, 2009 at 3:04 PM, jhonig  wrote:
>
> >> Thank you James,
>
> >> What I tried first was taken from
> >>http://wiki.github.com/dpp/liftweb/about-lift-tags.
> >> I don't have the code anymore.  It was a surround without "at"
> >> attribute, and with
> >> multiple "bind-at"-s inside.   Nothing got bound, as far as I could
> >> see.  When I
> >> replaced the bind-at's with with-params, they *did* bind as expected.
> >> However,
> >> head-merging didn't work.   No errors either, just didn't work.
>
> >  That would be because those are examples of tags, not copy-and-paste-code
> > necessarily.
>
> > I can think of about million definitions of "just didn't work".  Which one
> > do you mean here?
>
> >> When I used a surround with an "at" attribute as in the old wiki, but
> >> without bind-at's
> >> or with-params, head-merging *did* work!   That's why I assumed that
> >> that description
> >> was the newer version!  So now it seems I'm on the wrong track,
> >> because that's
> >> the code I started using.
>
> > Again.  No code, can't really tell you what's wrong, or right.
>
> >> Another problem I didn't resolve sofar is that I had a few
> >> conventional 
> >> elements in my page.  But jetty can't resolve them so clearly I have
> >> to do more
> >> than that.  Should be trivial, of course.  Guess it has something to
> >> do with the
> >> sitemap, but I don't have a clear picture as to how that works.  The
> >> examples
> >> I found are much more involved than what I was looking for.
>
> > Yes, sitemap is a place to start looking.
> > The problem is that you're not providing enough detail to help you out.
> > "Doesn't work" is not enough to help out.  Did you get a 404 error?  blank
> > page?  Anything at all?
>
> > Which examples are you talking about?  Most of the ones I've seen are
> > fairly trivial.
>
> Also, please use Lift 1.1 (either M7 or SNAPSHOT).  It's got much better
> error reporting.
>
>
>
>
>
> >> Any help appreciated!
>
> >> Job Honig
>
> > --
> > James A Barrows
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Surf the harmonics

--~--~-~--~~~---~--~~
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: Changes to scala-tools.org Hudson

2009-11-05 Thread Indrajit Raychaudhuri

Josh, thank you for driving us do the 'right thing' :)

Hudson build would trigger when the pom.xml changes.
So do you want your fork (b9588f...) to be applied right away. Or do you 
want us to wait for a pre-set time for the transition?

Committers, do you insist a ticket/reviewboard for this. If yes, I'll do 
the needful?

Cheers, Indrajit

On 06/11/09 6:28 AM, Josh Suereth wrote:
> Scala-tools.org's Hudson server will no longer allow local deployment to
> the repository.  You *must* submit all snapshot/release artifacts
> through the nexus webapp.   The hudson server will provide a server id
> (nexus.scala-tools.org ) that will have
> appropriate (and appropriately hidden) credentials for nightly
> deployments of snapshots.
>
> As such, the following changes should be made to lift's pom.xml (I'm
> trying to update your hudson lift configuration to cause the least
> amount of disruption):
>
> I have a forked repo (jsuereth/liftweb) with the changes as well (if you
> want to use github's "fork queue" feature):
>
> --- a/pom.xml
> +++ b/pom.xml
> @@ -806,16 +806,16 @@
> hudson
> 
> 
> - hudson.scala-tools.org 
> - file:///home/scala-tools.org/www/repo-snapshots
> 
> + nexus.scala-tools.org 
> + http://nexus.scala-tools.org/content/repositories/releases
> 
> 
> - hudson.scala-tools.org 
> - file:///home/scala-tools.org/www/repo-snapshots
> 
> + nexus.scala-tools.org 
> + http://nexus.scala-tools.org/content/repositories/snapshots
> false
> 
> 
> - hudson.scala-tools.org 
> + nexus.scala-tools.org 
> file:///home/scala-tools.org/www/mvnsites-snapshots/liftweb
> 
> 
> 
>
>
> >

--~--~-~--~~~---~--~~
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: Rendering a "template bit"

2009-11-05 Thread Jeppe Nejsum Madsen

DFectuoso  writes:

> The thing is that i want the NodeSeq to reside in a html file, not
> inside the model.


Have a look at TemplateFinder.findAnyTemplate, it will load the
template from file. 

If you want to process a complete template, look at S.runTemplate

/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: record framework questions

2009-11-05 Thread Jeppe Nejsum Madsen

David Pollak  writes:
>
> The most important driver of Record is people using it.  Tim has been doing
> some stuff with it.  If you start using it actively, you'll be the guy
> driving a lot of the changes.

I think a big blocker for more people starting to use Record is the
RDBMS backend (I know at least I'm waiting for this :-). 

As much buzz there is for various "NoSQL" datastores, I still think the
majority of apps written atm will need some RDBMS backing and thus can't
use record.

/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: Latest API Documentation

2009-11-05 Thread Indrajit Raychaudhuri

Of course we build the entire documentation during a snapshot build.
See: http://scala-tools.org/mvnsites-snapshots/liftweb/ for the latest 
and greatest.

The scaladoc stays in the "Project Report" section for respective package.

However, we still don't 'aggregate' the generated scaladoc by default 
(vscaladoc considers it experimental and doesn't recommend putting them 
in pom.xml at the moment).

Cheers, Indrajit

On 06/11/09 4:21 AM, David Pollak wrote:
>
>
> On Thu, Nov 5, 2009 at 2:45 PM, Jonathan Ferguson  > wrote:
>
> Is it practical to build the snapshot documentation or is it being
> built to often?
>
>
> Indrajit is probably the best person to answer that question, but I
> think it'd be a good thing (tm)
>
>
> Jono
>
> 2009/11/6 David Pollak  >
>
>
>
> On Wed, Nov 4, 2009 at 10:44 PM, aw  > wrote:
>
>
> When clicking on the "API Documentation" link, it links to 1.0
> documentation...  Is there a link for 1.1-M7 documentation?
>
> (I tried going to
> http://scala-tools.org/scaladocs/liftweb/1.1-M7/ but
> that didn't work...)
>
>
> Try:
> http://scala-tools.org/mvnsites/liftweb-1.1-M6/
>
> The M7 docs will be up in 30-60 minutes.
>
>
>
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
>
>
>
>
>
>
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
>
> >

--~--~-~--~~~---~--~~
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: lift jpa maven

2009-11-05 Thread Indrajit Raychaudhuri

The archetypes needs some spit and polish.
I'll take them up next week.

Cheers, Indrajit

On 06/11/09 2:54 AM, David Pollak wrote:
> Hmmm...
>
> I am seeing the same thing.  It appears that there's no archetype.xml
> file as part of the archetype JARs.
>
> Please file a ticket here: http://github.com/dpp/liftweb/issues
>
> We will add testing of the archetypes as part of the build process.
>
> On Thu, Nov 5, 2009 at 4:29 AM, ivan  > wrote:
>
>
> This is what I am trying to do:
>
> mvn -e archetype:create -U -DarchetypeGroupId=net.liftweb -
> DarchetypeArtifactId=lift-archetype-jpa-basic -DarchetypeVersion=1.1-
> scala2.7.7.RC2-SNAPSHOT -DremoteRepositories=http://scala-tools.org/
> repo-snapshots 
> -DgroupId=hr.ivan.lift -DartifactId=lift-jpa-basic
>
>
> Ant this is what I'am getting:
>
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Error creating from archetype
>
> Embedded error: The META-INF/maven/archetype.xml descriptor cannot be
> found.
>
> Any ideas what could be the problem. I have tried with other versions
> and even some from repo-releases but can't get jpa-basic working.
>
> Thanks!
>
>
>
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
>
> >

--~--~-~--~~~---~--~~
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: javax.mail 1.4.3-SNAPSHOT

2009-11-05 Thread Indrajit Raychaudhuri



On 06/11/09 2:24 AM, aw wrote:
>
> I upgraded to 1.1-M7 and was surprised to see that javax.mail-1.4.3-
> SNAPSHOT is now appearing as a dependency.  Generally speaking, we
> don't want SNAPSHOT dependencies because they aren't re-creatable, but
> somehow, it sneaked into the Java.Net Maven 2 Repository:
> http://download.java.net/maven/2/javax/mail/mail/
>
> It is being pulled in because the lift pom here:
>  
> http://scala-tools.org/repo-releases/net/liftweb/lift/1.1-M7/lift-1.1-M7.pom
> declares the dependency:
>
>
>  javax.mail
>  mail
>  [1.4,1.5)
>
>
> Normally, the above should be fine.  Alas, I think the underlying
> problem is really Java.Net's Maven 2 Repository -- the SNAPSHOT build
> should not have made it to the repository...

As you can see, the intention is to allow all 1.4.x series stable releases.

Lift POM doesn't have any reference to Java.Net Maven 2 Repository. 
Therefore, within Lift, javax.mail.mail is always picked up from Maven 
central repository (repo1.maven.org/maven2) which isn't polluted with 
SNAPSHOT builds.

I guess, your project has reference to Java.Net repository which wins 
over Maven central repository. This in turn results in 1.4.3-SNAPSHOT 
being pulled. See if it helps to have the release and snapshot policies 
set for the Java.Net repository node in your POM [0].

Let us know how it goes, and we'll take it from there.

[0]: http://maven.apache.org/pom.html#Repositories

>
> BTW...  I noticed that the javax.activation dependency is explicitly
> declared:
>
>
>  javax.activation
>  activation
>  [1.1,1.2)
>
>
> but it should be a transitive dependency of javax,mail (so this could
> be removed).

Indeed. This was an oversight, thanks for sharing. As David mentioned, 
raise a ticket and I'll fix it.

>
> I'm not sure what I am going to do to resolve this -- probably add an
> explicit dependency in my project to override it.  Thought I'd
> share...
>
> >

--~--~-~--~~~---~--~~
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: using Dispatch library for Http

2009-11-05 Thread Ross Mellgren
I'm not familiar with Dispatch, sorry, perhaps use ex.printStackTrace  
to see where in the Dispatch code and look up the source to see what  
it's doing?

-Ross

On Nov 5, 2009, at 11:59 PM, Jack Widman wrote:

> Tried and I see now that the exception is  
> java.nio.BufferUnderflowException
> Any idea what might be causing this?
>
> On Thu, Nov 5, 2009 at 11:51 PM, Ross Mellgren   
> wrote:
>
> Many exceptions do not have a message, e.g. NullPointerException
> (unless thrown by hand).
>
> Maybe:
>
> try {
> ...
> } catch {
> case ex: Exception if ex.getMessage == null => "Message: " +
> ex.toString
> case ex: Exception => "Message: " + ex.getMessage
> }
>
> -Ross
>
> On Nov 5, 2009, at 11:45 PM, jack wrote:
>
> >
> > I'm using the Dispatch Databinder library for Http.  http://bit.ly/NPWcW
> >
> > My code is this simple method.
> >
> > def testCheckPage(url:String):String = {
> >try {
> >  var http = new Http
> >  var request = new Request
> > (url)
> >  val req_with_agent = request <:< Map("User-Agent" -> "Mozilla/
> > 5.0")
> >  val responseBody = Http (req_with_agent as_str)
> >  responseBody.length.toString
> >} catch {
> >   case ex: Exception => {
> >"Message: " + ex.getMessage
> >   }
> >}
> >  }
> >
> > For some urls, e.g., http://bae.cf.huffingtonpost.com/ , an  
> exception
> > is thrown but the exception message is null. Any ideas?
> > >
>
>
>
>
>
>
> -- 
> Jack Widman
>
> co-founder / cto,  Authoritude, Inc.
>
> 203-641-9355
>
> >


--~--~-~--~~~---~--~~
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: using Dispatch library for Http

2009-11-05 Thread Jack Widman
Tried and I see now that the exception is java.nio.BufferUnderflowException
Any idea what might be causing this?

On Thu, Nov 5, 2009 at 11:51 PM, Ross Mellgren  wrote:

>
> Many exceptions do not have a message, e.g. NullPointerException
> (unless thrown by hand).
>
> Maybe:
>
> try {
> ...
> } catch {
> case ex: Exception if ex.getMessage == null => "Message: " +
> ex.toString
>  case ex: Exception => "Message: " + ex.getMessage
> }
>
> -Ross
>
> On Nov 5, 2009, at 11:45 PM, jack wrote:
>
> >
> > I'm using the Dispatch Databinder library for Http.  http://bit.ly/NPWcW
> >
> > My code is this simple method.
> >
> > def testCheckPage(url:String):String = {
> >try {
> >  var http = new Http
> >  var request = new Request
> > (url)
> >  val req_with_agent = request <:< Map("User-Agent" -> "Mozilla/
> > 5.0")
> >  val responseBody = Http (req_with_agent as_str)
> >  responseBody.length.toString
> >} catch {
> >   case ex: Exception => {
> >"Message: " + ex.getMessage
> >   }
> >}
> >  }
> >
> > For some urls, e.g., http://bae.cf.huffingtonpost.com/ , an exception
> > is thrown but the exception message is null. Any ideas?
> > >
>
>
> >
>


-- 
Jack Widman

co-founder / cto,  Authoritude, Inc.

203-641-9355

--~--~-~--~~~---~--~~
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: using Dispatch library for Http

2009-11-05 Thread Jack Widman
Thanks Ross, I'll try it.

On Thu, Nov 5, 2009 at 11:51 PM, Ross Mellgren  wrote:

>
> Many exceptions do not have a message, e.g. NullPointerException
> (unless thrown by hand).
>
> Maybe:
>
> try {
> ...
> } catch {
> case ex: Exception if ex.getMessage == null => "Message: " +
> ex.toString
> case ex: Exception => "Message: " + ex.getMessage
> }
>
> -Ross
>
> On Nov 5, 2009, at 11:45 PM, jack wrote:
>
> >
> > I'm using the Dispatch Databinder library for Http.  http://bit.ly/NPWcW
> >
> > My code is this simple method.
> >
> > def testCheckPage(url:String):String = {
> >try {
> >  var http = new Http
> >  var request = new Request
> > (url)
> >  val req_with_agent = request <:< Map("User-Agent" -> "Mozilla/
> > 5.0")
> >  val responseBody = Http (req_with_agent as_str)
> >  responseBody.length.toString
> >} catch {
> >   case ex: Exception => {
> >"Message: " + ex.getMessage
> >   }
> >}
> >  }
> >
> > For some urls, e.g., http://bae.cf.huffingtonpost.com/ , an exception
> > is thrown but the exception message is null. Any ideas?
> > >
>
>
> >
>


-- 
Jack Widman

co-founder / cto,  Authoritude, Inc.

203-641-9355

--~--~-~--~~~---~--~~
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: using Dispatch library for Http

2009-11-05 Thread Ross Mellgren

Many exceptions do not have a message, e.g. NullPointerException  
(unless thrown by hand).

Maybe:

try {
 ...
} catch {
 case ex: Exception if ex.getMessage == null => "Message: " +  
ex.toString
 case ex: Exception => "Message: " + ex.getMessage
}

-Ross

On Nov 5, 2009, at 11:45 PM, jack wrote:

>
> I'm using the Dispatch Databinder library for Http.  http://bit.ly/NPWcW
>
> My code is this simple method.
>
> def testCheckPage(url:String):String = {
>try {
>  var http = new Http
>  var request = new Request
> (url)
>  val req_with_agent = request <:< Map("User-Agent" -> "Mozilla/
> 5.0")
>  val responseBody = Http (req_with_agent as_str)
>  responseBody.length.toString
>} catch {
>   case ex: Exception => {
>"Message: " + ex.getMessage
>   }
>}
>  }
>
> For some urls, e.g., http://bae.cf.huffingtonpost.com/ , an exception
> is thrown but the exception message is null. Any ideas?
> >


--~--~-~--~~~---~--~~
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] using Dispatch library for Http

2009-11-05 Thread jack

I'm using the Dispatch Databinder library for Http.  http://bit.ly/NPWcW

My code is this simple method.

 def testCheckPage(url:String):String = {
try {
  var http = new Http
  var request = new Request
(url)
  val req_with_agent = request <:< Map("User-Agent" -> "Mozilla/
5.0")
  val responseBody = Http (req_with_agent as_str)
  responseBody.length.toString
} catch {
   case ex: Exception => {
 "Message: " + ex.getMessage
   }
}
  }

For some urls, e.g., http://bae.cf.huffingtonpost.com/ , an exception
is thrown but the exception message is null. Any ideas?
--~--~-~--~~~---~--~~
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: Rendering a "template bit"

2009-11-05 Thread DFectuoso

The thing is that i want the NodeSeq to reside in a html file, not
inside the model.

On Nov 5, 10:20 pm, harryh  wrote:
> What you want can be done with very basic usage of snippets (the way
> that templates interface with code in Lift).  In your template:
>
> 
>
> Then in YourSnippet.scala:
>
> class YourSnippet {
>   def foo(xhtml: NodeSeq) = Site.render()
>
> }
>
> Make sure render returns a NodeSeq.
>
> -harryh
>
> On Nov 5, 9:35 pm, DFectuoso  wrote:
>
> > I want to do the following pattern, i don't know how(or if its
> > possible) to do it in lift:
>
> > -> I want any part of my code to call a Site.render() where site is a
> > model and render is a function inside that model that will print it
> > the information
> > -> I want the xhtml to be in a html file so that any designer/html guy
> > can play with it and its css/html. (also they won't have to compile
> > and/or scala:cc after every change).
>
> > Is this possible?
>
> > I was playing with the  and sending
> > parameters, but i didn't know how to catch those params in the xml,
> > has anyone done this pattern? Am i trying to solve something that can
> > be solved other pattern?
--~--~-~--~~~---~--~~
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: Rendering a "template bit"

2009-11-05 Thread harryh

What you want can be done with very basic usage of snippets (the way
that templates interface with code in Lift).  In your template:



Then in YourSnippet.scala:

class YourSnippet {
  def foo(xhtml: NodeSeq) = Site.render()
}

Make sure render returns a NodeSeq.

-harryh

On Nov 5, 9:35 pm, DFectuoso  wrote:
> I want to do the following pattern, i don't know how(or if its
> possible) to do it in lift:
>
> -> I want any part of my code to call a Site.render() where site is a
> model and render is a function inside that model that will print it
> the information
> -> I want the xhtml to be in a html file so that any designer/html guy
> can play with it and its css/html. (also they won't have to compile
> and/or scala:cc after every change).
>
> Is this possible?
>
> I was playing with the  and sending
> parameters, but i didn't know how to catch those params in the xml,
> has anyone done this pattern? Am i trying to solve something that can
> be solved other pattern?
--~--~-~--~~~---~--~~
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: Question about megaprotouser S.error

2009-11-05 Thread DFectuoso

I just want to learn and understand why it is like that, i love lift
and I keep doing different project with it.

I DO understand i can change anything in different scales and layers
and so far i have been able to solve any problem one way or another.

Thank you.

On Nov 5, 9:01 pm, David Pollak  wrote:
> On Thu, Nov 5, 2009 at 5:44 PM, DFectuoso  wrote:
>
> > I'm sorry to keep picking on this but i want to undertand, why would
> > MappedPassword have a default value that i can't override and that is
> > shown to user with ProtoUser if i don't override the full signup
> > form's xhtml?
>
> If you do not like the way a particular feature is implemented in Lift, you
> can copy the source code and change the implementation (Lift's Apache 2
> license allows for that).  Lift is layered.  You can change out pieces that
> don't suit your needs.  You don't like the issues related to MegaProtoUser
> (like the whole templates in code thing), then copy the code into your user
> class and change the template calls to load the templates however you want.
> If you don't like how MappedPassword is implemented, then do your own
> implementation.
>
>
>
>
>
> > I would like to think that i can start any project, extend proto user
> > and have a register/login system that is very easy to undertand for
> > all user and i know that having a pre-filled value seems to be a "non-
> > important" issue, still is one of the most voted things in my
> > uservoice!
>
> > At this moment i will override and create the html for the form to
> > avoid having two fields prefilled with **.
>
> > On Nov 5, 2:59 pm, Heiko Seeberger 
> > wrote:
> > > 2009/11/4 David Pollak 
>
> > > It is a bug in MappedPassword (not ProtoUser):
>
> > > > It's not a bug, it's by design.
>
> > > Well , issue 157 ("MappedPassword contains misspelled key for unset
> > > password") is a bug, but  "**" as default value is by design, of
> > course.
>
> > > Heiko
>
> > > My job: weiglewilczek.com
> > > My blog: heikoseeberger.name
> > > Follow me: twitter.com/hseeberger
> > > OSGi on Scala: scalamodules.org
> > > Lift, the simply functional web framework: liftweb.net
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Surf the harmonics
--~--~-~--~~~---~--~~
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: H2 Database

2009-11-05 Thread sunanda

Hi Naftoli,
I was just asking which file to put as main class. It is
org.h2.tools.Server. Everything is set now.
Thanks.
Sunanda

On Nov 6, 1:52 pm, Naftoli Gugenheim  wrote:
> What do you mean configure it?
>
> -
>
> sunanda wrote:
>
> Hi,
> Though this question is not related to Lift I would appreciate if
> anyone can suggest me how to configure
> h2 database on eclipse.
> I was trying with Hsql , but came to know that Lift does not support
> Hsql.
>
> Sunanda.
--~--~-~--~~~---~--~~
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: Question about megaprotouser S.error

2009-11-05 Thread David Pollak
On Thu, Nov 5, 2009 at 5:44 PM, DFectuoso  wrote:

>
> I'm sorry to keep picking on this but i want to undertand, why would
> MappedPassword have a default value that i can't override and that is
> shown to user with ProtoUser if i don't override the full signup
> form's xhtml?
>

If you do not like the way a particular feature is implemented in Lift, you
can copy the source code and change the implementation (Lift's Apache 2
license allows for that).  Lift is layered.  You can change out pieces that
don't suit your needs.  You don't like the issues related to MegaProtoUser
(like the whole templates in code thing), then copy the code into your user
class and change the template calls to load the templates however you want.
If you don't like how MappedPassword is implemented, then do your own
implementation.

>
> I would like to think that i can start any project, extend proto user
> and have a register/login system that is very easy to undertand for
> all user and i know that having a pre-filled value seems to be a "non-
> important" issue, still is one of the most voted things in my
> uservoice!
>
> At this moment i will override and create the html for the form to
> avoid having two fields prefilled with **.
>
> On Nov 5, 2:59 pm, Heiko Seeberger 
> wrote:
> > 2009/11/4 David Pollak 
> >
> > It is a bug in MappedPassword (not ProtoUser):
> >
> >
> >
> > > It's not a bug, it's by design.
> >
> > Well , issue 157 ("MappedPassword contains misspelled key for unset
> > password") is a bug, but  "**" as default value is by design, of
> course.
> >
> > Heiko
> >
> > My job: weiglewilczek.com
> > My blog: heikoseeberger.name
> > Follow me: twitter.com/hseeberger
> > OSGi on Scala: scalamodules.org
> > Lift, the simply functional web framework: liftweb.net
> >
>


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

--~--~-~--~~~---~--~~
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: H2 Database

2009-11-05 Thread Naftoli Gugenheim

What do you mean configure it?

-
sunanda wrote:


Hi,
Though this question is not related to Lift I would appreciate if
anyone can suggest me how to configure
h2 database on eclipse.
I was trying with Hsql , but came to know that Lift does not support
Hsql.

Sunanda.


--~--~-~--~~~---~--~~
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] H2 Database

2009-11-05 Thread sunanda

Hi,
Though this question is not related to Lift I would appreciate if
anyone can suggest me how to configure
h2 database on eclipse.
I was trying with Hsql , but came to know that Lift does not support
Hsql.

Sunanda.
--~--~-~--~~~---~--~~
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] Rendering a "template bit"

2009-11-05 Thread DFectuoso

I want to do the following pattern, i don't know how(or if its
possible) to do it in lift:

-> I want any part of my code to call a Site.render() where site is a
model and render is a function inside that model that will print it
the information
-> I want the xhtml to be in a html file so that any designer/html guy
can play with it and its css/html. (also they won't have to compile
and/or scala:cc after every change).

Is this possible?

I was playing with the  and sending
parameters, but i didn't know how to catch those params in the xml,
has anyone done this pattern? Am i trying to solve something that can
be solved other pattern?

--~--~-~--~~~---~--~~
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: Question about megaprotouser S.error

2009-11-05 Thread DFectuoso

I'm sorry to keep picking on this but i want to undertand, why would
MappedPassword have a default value that i can't override and that is
shown to user with ProtoUser if i don't override the full signup
form's xhtml?

I would like to think that i can start any project, extend proto user
and have a register/login system that is very easy to undertand for
all user and i know that having a pre-filled value seems to be a "non-
important" issue, still is one of the most voted things in my
uservoice!

At this moment i will override and create the html for the form to
avoid having two fields prefilled with **.

On Nov 5, 2:59 pm, Heiko Seeberger 
wrote:
> 2009/11/4 David Pollak 
>
> It is a bug in MappedPassword (not ProtoUser):
>
>
>
> > It's not a bug, it's by design.
>
> Well , issue 157 ("MappedPassword contains misspelled key for unset
> password") is a bug, but  "**" as default value is by design, of course.
>
> Heiko
>
> My job: weiglewilczek.com
> My blog: heikoseeberger.name
> Follow me: twitter.com/hseeberger
> OSGi on Scala: scalamodules.org
> Lift, the simply functional web framework: liftweb.net
--~--~-~--~~~---~--~~
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: S.notices, etc broken from within AJAX/JSON calls in 1.1-SNAPSHOT

2009-11-05 Thread Ross Mellgren
Done:

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

Thanks David,
-Ross

On Nov 5, 2009, at 6:24 PM, David Pollak wrote:

> Please open a ticket for this issue.  I may have broken it when I  
> was addressing some other issues related to JSON in the last few  
> weeks.
>
> On Thu, Nov 5, 2009 at 3:18 PM, Ross Mellgren   
> wrote:
>
> Hey all,
>
>I had some code working where the snippet generates a JSON  
> callback
> which uses S.notice / S.error to push notifications back to the
> browser in addition to whatever JS commands the snippet decides to
> push down, but it seems that this is now broken in 1.1-SNAPSHOT and
> 1.1-M7. I can confirm that just after I call S.notice within the
> jsonCall that S.getNotices has the proper thing in it, but by the time
> LiftRules.noticesToJsCmd gets called it has vanished.
>
> A quick survey makes me think that the only way this could happen is
> if the RequestVars are getting cleared between the two points, but I
> don't want to speculate too hard.
>
> I've created a modified lift-archetype-blank that demonstrates the
> behavior at http://www.github.com/dridus/test-missing-notices -- here
> is a overview of the code:
>
> In template:
>
> 
> 
>
> Welcome to your project!
> 
> 
>
> 
>
> Click me
>
> 
>
> In Boot:
>
> val oldNoticesToJsCmd = LiftRules.noticesToJsCmd
>
> LiftRules.noticesToJsCmd = () => {
> println("at noticesToJsCmd: S.getNotices = " +
> S.getNotices)
> oldNoticesToJsCmd()
> }
>
> In snippet:
>
> class HelloWorld extends DispatchSnippet {
> val dispatch: DispatchIt = {
> case "callback" => renderCallback _
> }
>
> def renderCallback(ns: NodeSeq): NodeSeq = {
> S.notice("this is the test notice from the snippet")
> { Script {
> Function("testCallback", Nil, jsonCall(JsNull, (_: Any)
> => {
> S.notice("this is the test notice from the callback")
> println("in callback: S.getNotices = " + S.getNotices)
> Noop
> })._2)
> } }
> }
> }
>
> The output from this on the command line is:
>
> INFO - Service request (GET) / took 570 Milliseconds
> INFO - Service request (GET) /classpath/jquery.js took 15 Milliseconds
> INFO - Service request (GET) /ajax_request/liftAjax.js took 8
> Milliseconds
> in callback: S.getNotices = List((net.liftweb.http.NoticeType(0),this
> is the test notice from the snippet,Empty),
> (net.liftweb.http.NoticeType(0),this is the test notice from the
> callback,Empty))
> at noticesToJsCmd: S.getNotices = List()
> INFO - Service request (POST) /ajax_request/F1007892194776GPS/ took 59
> Milliseconds
>
> And no notice appears.
>
> Is there anything I'm doing wrong or that I can do to help diagnose
> this further? I really need this kind of behavior to work :-/
>
> Thanks in advance,
> -Ross
>
>
>
>
>
>
> -- 
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
>
> >


--~--~-~--~~~---~--~~
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: record framework questions

2009-11-05 Thread Tim Nelson
Sounds good. Thanks again.

On Thu, Nov 5, 2009 at 5:47 PM, David Pollak
wrote:

>
>
> On Thu, Nov 5, 2009 at 3:39 PM, Tim Nelson  wrote:
>
>> Thanks David. Ticket has been filed:
>> http://github.com/dpp/liftweb/issues/#issue/162
>>
>> Regarding my last question about stability of the record files; I'm trying
>> to decide if I should use the record framework and the back end
>> implementation I wrote to build my website or if I should use the more basic
>> framework I wrote. My main concern is having to make changes to my
>> implementation if the record files are modified. Not that I'm against
>> changes, I just want to plan ahead as much as possible.
>>
>> I realize that changes will always be a possibility and that you probably
>> won't know more until you actually write the other back end implementations,
>> I just want to get a sense of how you currently feel about them and what, if
>> any, plans you have for the record framework in general.
>
>
> The most important driver of Record is people using it.  Tim has been doing
> some stuff with it.  If you start using it actively, you'll be the guy
> driving a lot of the changes.
>
>
>>
>>
>> Thanks,
>> Tim
>>
>>
>>
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
>
> >
>

--~--~-~--~~~---~--~~
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] Changes to scala-tools.org Hudson

2009-11-05 Thread Josh Suereth
Scala-tools.org's Hudson server will no longer allow local deployment to the
repository.  You *must* submit all snapshot/release artifacts through the
nexus webapp.   The hudson server will provide a server id (
nexus.scala-tools.org) that will have appropriate (and appropriately hidden)
credentials for nightly deployments of snapshots.

As such, the following changes should be made to lift's pom.xml (I'm trying
to update your hudson lift configuration to cause the least amount of
disruption):

I have a forked repo (jsuereth/liftweb) with the changes as well (if you
want to use github's "fork queue" feature):

--- a/pom.xml
+++ b/pom.xml
@@ -806,16 +806,16 @@
   hudson
   
 
-  hudson.scala-tools.org
-  file:///home/scala-tools.org/www/repo-snapshots
+  nexus.scala-tools.org
+  http://nexus.scala-tools.org/content/repositories/releases

 
 
-  hudson.scala-tools.org
-  file:///home/scala-tools.org/www/repo-snapshots
+  nexus.scala-tools.org
+  http://nexus.scala-tools.org/content/repositories/snapshots

   false
 
 
-  hudson.scala-tools.org
+  nexus.scala-tools.org
   file:///home/scala-tools.org/www/mvnsites-snapshots/liftweb

 
   

--~--~-~--~~~---~--~~
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: 1.1-SNAPSHOT In() with OrderBy mapper bug

2009-11-05 Thread David Pollak
On Thu, Nov 5, 2009 at 3:47 PM, jon  wrote:

>
> I just verified that the newer h2 fixes the problem.  Thanks for
> investigating!
>

Sure thing.  Party on!


>
> On Nov 5, 6:33 pm, David Pollak  wrote:
> > On Wed, Nov 4, 2009 at 10:02 AM, jon  wrote:
> >
> > > Hi,
> >
> > > I just noticed OrderBy statements cause Inner selects to break in h2:
> >
> > > I query such as: User.findAll(In(User.id, Dog.owner, OrderBy(Dog.name,
> > > Ascending)), MaxRows(5))
> >
> > > Produces:
> >
> > > Message: org.h2.jdbc.JdbcSQLException: Order by expression NAME must
> > > be in the result list in this case; SQL statement:
> > > SELECT DISTINCT OWNER AS _0
> > > FROM PUBLIC.DOG /* PUBLIC.DOG_TABLE_SCAN */
> > > ORDER BY =NAME [90068-117]
> >
> > This is an issue in H2 1.1.  Please upgrade to 1.2.121 and the problem
> goes
> > away.
> >
> > If it's not possible for you to upgrade to 1.2.121, let's discuss by
> phone
> > or privately.
> >
> >
> >
> > > Code to duplicate here:
> >
> > >http://github.com/hoffrocket/lift_1_1_sample/commit/0093e2585e0d9d799.
> ..
> >
> > > This works in M5.  Any chance a workaround or fix could be put out
> > > before M7?  Sorry, I didn't notice until today.
> >
> > > Thanks,
> >
> > > Jon
> >
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > Follow me:http://twitter.com/dpp
> > Surf the harmonics
> >
>


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

--~--~-~--~~~---~--~~
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: record framework questions

2009-11-05 Thread David Pollak
On Thu, Nov 5, 2009 at 3:39 PM, Tim Nelson  wrote:

> Thanks David. Ticket has been filed:
> http://github.com/dpp/liftweb/issues/#issue/162
>
> Regarding my last question about stability of the record files; I'm trying
> to decide if I should use the record framework and the back end
> implementation I wrote to build my website or if I should use the more basic
> framework I wrote. My main concern is having to make changes to my
> implementation if the record files are modified. Not that I'm against
> changes, I just want to plan ahead as much as possible.
>
> I realize that changes will always be a possibility and that you probably
> won't know more until you actually write the other back end implementations,
> I just want to get a sense of how you currently feel about them and what, if
> any, plans you have for the record framework in general.


The most important driver of Record is people using it.  Tim has been doing
some stuff with it.  If you start using it actively, you'll be the guy
driving a lot of the changes.


>
>
> Thanks,
> Tim
>
> >
>


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

--~--~-~--~~~---~--~~
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: 1.1-SNAPSHOT In() with OrderBy mapper bug

2009-11-05 Thread jon

I just verified that the newer h2 fixes the problem.  Thanks for
investigating!

On Nov 5, 6:33 pm, David Pollak  wrote:
> On Wed, Nov 4, 2009 at 10:02 AM, jon  wrote:
>
> > Hi,
>
> > I just noticed OrderBy statements cause Inner selects to break in h2:
>
> > I query such as: User.findAll(In(User.id, Dog.owner, OrderBy(Dog.name,
> > Ascending)), MaxRows(5))
>
> > Produces:
>
> > Message: org.h2.jdbc.JdbcSQLException: Order by expression NAME must
> > be in the result list in this case; SQL statement:
> > SELECT DISTINCT OWNER AS _0
> > FROM PUBLIC.DOG /* PUBLIC.DOG_TABLE_SCAN */
> > ORDER BY =NAME [90068-117]
>
> This is an issue in H2 1.1.  Please upgrade to 1.2.121 and the problem goes
> away.
>
> If it's not possible for you to upgrade to 1.2.121, let's discuss by phone
> or privately.
>
>
>
> > Code to duplicate here:
>
> >http://github.com/hoffrocket/lift_1_1_sample/commit/0093e2585e0d9d799...
>
> > This works in M5.  Any chance a workaround or fix could be put out
> > before M7?  Sorry, I didn't notice until today.
>
> > Thanks,
>
> > Jon
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Surf the harmonics
--~--~-~--~~~---~--~~
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: record framework questions

2009-11-05 Thread Tim Nelson
Thanks David. Ticket has been filed:
http://github.com/dpp/liftweb/issues/#issue/162

Regarding my last question about stability of the record files; I'm trying
to decide if I should use the record framework and the back end
implementation I wrote to build my website or if I should use the more basic
framework I wrote. My main concern is having to make changes to my
implementation if the record files are modified. Not that I'm against
changes, I just want to plan ahead as much as possible.

I realize that changes will always be a possibility and that you probably
won't know more until you actually write the other back end implementations,
I just want to get a sense of how you currently feel about them and what, if
any, plans you have for the record framework in general.

Thanks,
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: 1.1-SNAPSHOT In() with OrderBy mapper bug

2009-11-05 Thread David Pollak
On Wed, Nov 4, 2009 at 10:02 AM, jon  wrote:

>
> Hi,
>
> I just noticed OrderBy statements cause Inner selects to break in h2:
>
> I query such as: User.findAll(In(User.id, Dog.owner, OrderBy(Dog.name,
> Ascending)), MaxRows(5))
>
> Produces:
>
> Message: org.h2.jdbc.JdbcSQLException: Order by expression NAME must
> be in the result list in this case; SQL statement:
> SELECT DISTINCT OWNER AS _0
> FROM PUBLIC.DOG /* PUBLIC.DOG_TABLE_SCAN */
> ORDER BY =NAME [90068-117]
>

This is an issue in H2 1.1.  Please upgrade to 1.2.121 and the problem goes
away.

If it's not possible for you to upgrade to 1.2.121, let's discuss by phone
or privately.


>
> Code to duplicate here:
>
>
> http://github.com/hoffrocket/lift_1_1_sample/commit/0093e2585e0d9d799b503f32da7496e212efd873
>
> This works in M5.  Any chance a workaround or fix could be put out
> before M7?  Sorry, I didn't notice until today.
>
> Thanks,
>
> Jon
> >
>


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

--~--~-~--~~~---~--~~
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: S.notices, etc broken from within AJAX/JSON calls in 1.1-SNAPSHOT

2009-11-05 Thread David Pollak
Please open a ticket for this issue.  I may have broken it when I was
addressing some other issues related to JSON in the last few weeks.

On Thu, Nov 5, 2009 at 3:18 PM, Ross Mellgren  wrote:

>
> Hey all,
>
>I had some code working where the snippet generates a JSON callback
> which uses S.notice / S.error to push notifications back to the
> browser in addition to whatever JS commands the snippet decides to
> push down, but it seems that this is now broken in 1.1-SNAPSHOT and
> 1.1-M7. I can confirm that just after I call S.notice within the
> jsonCall that S.getNotices has the proper thing in it, but by the time
> LiftRules.noticesToJsCmd gets called it has vanished.
>
> A quick survey makes me think that the only way this could happen is
> if the RequestVars are getting cleared between the two points, but I
> don't want to speculate too hard.
>
> I've created a modified lift-archetype-blank that demonstrates the
> behavior at http://www.github.com/dridus/test-missing-notices -- here
> is a overview of the code:
>
> In template:
>
> 
> 
>
> Welcome to your project!
> 
> 
>
> 
>
> Click me
>
> 
>
> In Boot:
>
> val oldNoticesToJsCmd = LiftRules.noticesToJsCmd
>
> LiftRules.noticesToJsCmd = () => {
> println("at noticesToJsCmd: S.getNotices = " +
> S.getNotices)
> oldNoticesToJsCmd()
> }
>
> In snippet:
>
> class HelloWorld extends DispatchSnippet {
> val dispatch: DispatchIt = {
> case "callback" => renderCallback _
> }
>
> def renderCallback(ns: NodeSeq): NodeSeq = {
> S.notice("this is the test notice from the snippet")
> { Script {
> Function("testCallback", Nil, jsonCall(JsNull, (_: Any)
> => {
> S.notice("this is the test notice from the callback")
> println("in callback: S.getNotices = " + S.getNotices)
> Noop
> })._2)
> } }
> }
> }
>
> The output from this on the command line is:
>
> INFO - Service request (GET) / took 570 Milliseconds
> INFO - Service request (GET) /classpath/jquery.js took 15 Milliseconds
> INFO - Service request (GET) /ajax_request/liftAjax.js took 8
> Milliseconds
> in callback: S.getNotices = List((net.liftweb.http.NoticeType(0),this
> is the test notice from the snippet,Empty),
> (net.liftweb.http.NoticeType(0),this is the test notice from the
> callback,Empty))
> at noticesToJsCmd: S.getNotices = List()
> INFO - Service request (POST) /ajax_request/F1007892194776GPS/ took 59
> Milliseconds
>
> And no notice appears.
>
> Is there anything I'm doing wrong or that I can do to help diagnose
> this further? I really need this kind of behavior to work :-/
>
> Thanks in advance,
> -Ross
>
>
> >
>


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

--~--~-~--~~~---~--~~
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] S.notices, etc broken from within AJAX/JSON calls in 1.1-SNAPSHOT

2009-11-05 Thread Ross Mellgren

Hey all,

I had some code working where the snippet generates a JSON callback  
which uses S.notice / S.error to push notifications back to the  
browser in addition to whatever JS commands the snippet decides to  
push down, but it seems that this is now broken in 1.1-SNAPSHOT and  
1.1-M7. I can confirm that just after I call S.notice within the  
jsonCall that S.getNotices has the proper thing in it, but by the time  
LiftRules.noticesToJsCmd gets called it has vanished.

A quick survey makes me think that the only way this could happen is  
if the RequestVars are getting cleared between the two points, but I  
don't want to speculate too hard.

I've created a modified lift-archetype-blank that demonstrates the  
behavior at http://www.github.com/dridus/test-missing-notices -- here  
is a overview of the code:

In template:


 

 Welcome to your project!
 
 

 

 Click me



In Boot:

 val oldNoticesToJsCmd = LiftRules.noticesToJsCmd

 LiftRules.noticesToJsCmd = () => {
 println("at noticesToJsCmd: S.getNotices = " +  
S.getNotices)
 oldNoticesToJsCmd()
 }

In snippet:

class HelloWorld extends DispatchSnippet {
 val dispatch: DispatchIt = {
 case "callback" => renderCallback _
 }

 def renderCallback(ns: NodeSeq): NodeSeq = {
 S.notice("this is the test notice from the snippet")
 { Script {
 Function("testCallback", Nil, jsonCall(JsNull, (_: Any)  
=> {
 S.notice("this is the test notice from the callback")
 println("in callback: S.getNotices = " + S.getNotices)
 Noop
 })._2)
 } }
 }
}

The output from this on the command line is:

INFO - Service request (GET) / took 570 Milliseconds
INFO - Service request (GET) /classpath/jquery.js took 15 Milliseconds
INFO - Service request (GET) /ajax_request/liftAjax.js took 8  
Milliseconds
in callback: S.getNotices = List((net.liftweb.http.NoticeType(0),this  
is the test notice from the snippet,Empty),  
(net.liftweb.http.NoticeType(0),this is the test notice from the  
callback,Empty))
at noticesToJsCmd: S.getNotices = List()
INFO - Service request (POST) /ajax_request/F1007892194776GPS/ took 59  
Milliseconds

And no notice appears.

Is there anything I'm doing wrong or that I can do to help diagnose  
this further? I really need this kind of behavior to work :-/

Thanks in advance,
-Ross


--~--~-~--~~~---~--~~
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: Latest API Documentation

2009-11-05 Thread David Pollak
On Thu, Nov 5, 2009 at 2:45 PM, Jonathan Ferguson wrote:

> Is it practical to build the snapshot documentation or is it being built to
> often?


Indrajit is probably the best person to answer that question, but I think
it'd be a good thing (tm)


>
> Jono
>
> 2009/11/6 David Pollak 
>
>>
>>
>> On Wed, Nov 4, 2009 at 10:44 PM, aw  wrote:
>>
>>>
>>> When clicking on the "API Documentation" link, it links to 1.0
>>> documentation...  Is there a link for 1.1-M7 documentation?
>>>
>>> (I tried going to http://scala-tools.org/scaladocs/liftweb/1.1-M7/ but
>>> that didn't work...)
>>>
>>>
>> Try:
>> http://scala-tools.org/mvnsites/liftweb-1.1-M6/
>>
>> The M7 docs will be up in 30-60 minutes.
>>
>>
>>>
>>>
>>
>>
>> --
>> Lift, the simply functional web framework http://liftweb.net
>> Beginning Scala http://www.apress.com/book/view/1430219890
>> Follow me: http://twitter.com/dpp
>> Surf the harmonics
>>
>>
>>
>
> >
>


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

--~--~-~--~~~---~--~~
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: Latest API Documentation

2009-11-05 Thread Jonathan Ferguson
Is it practical to build the snapshot documentation or is it being built to
often?

Jono

2009/11/6 David Pollak 

>
>
> On Wed, Nov 4, 2009 at 10:44 PM, aw  wrote:
>
>>
>> When clicking on the "API Documentation" link, it links to 1.0
>> documentation...  Is there a link for 1.1-M7 documentation?
>>
>> (I tried going to http://scala-tools.org/scaladocs/liftweb/1.1-M7/ but
>> that didn't work...)
>>
>>
> Try:
> http://scala-tools.org/mvnsites/liftweb-1.1-M6/
>
> The M7 docs will be up in 30-60 minutes.
>
>
>>
>>
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
>
> >
>

--~--~-~--~~~---~--~~
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: beginner's question about surround/bind/bind-at/with-param

2009-11-05 Thread David Pollak
On Thu, Nov 5, 2009 at 2:30 PM, Jim Barrows  wrote:

>
> On Thu, Nov 5, 2009 at 3:04 PM, jhonig  wrote:
>
>>
>> Thank you James,
>>
>> What I tried first was taken from
>> http://wiki.github.com/dpp/liftweb/about-lift-tags.
>> I don't have the code anymore.  It was a surround without "at"
>> attribute, and with
>> multiple "bind-at"-s inside.   Nothing got bound, as far as I could
>> see.  When I
>> replaced the bind-at's with with-params, they *did* bind as expected.
>> However,
>> head-merging didn't work.   No errors either, just didn't work.
>>
>
>  That would be because those are examples of tags, not copy-and-paste-code
> necessarily.
>
> I can think of about million definitions of "just didn't work".  Which one
> do you mean here?
>
>
>
>> When I used a surround with an "at" attribute as in the old wiki, but
>> without bind-at's
>> or with-params, head-merging *did* work!   That's why I assumed that
>> that description
>> was the newer version!  So now it seems I'm on the wrong track,
>> because that's
>> the code I started using.
>>
>
> Again.  No code, can't really tell you what's wrong, or right.
>
>
>>
>> Another problem I didn't resolve sofar is that I had a few
>> conventional 
>> elements in my page.  But jetty can't resolve them so clearly I have
>> to do more
>> than that.  Should be trivial, of course.  Guess it has something to
>> do with the
>> sitemap, but I don't have a clear picture as to how that works.  The
>> examples
>> I found are much more involved than what I was looking for.
>>
>
>
> Yes, sitemap is a place to start looking.
> The problem is that you're not providing enough detail to help you out.
> "Doesn't work" is not enough to help out.  Did you get a 404 error?  blank
> page?  Anything at all?
>
> Which examples are you talking about?  Most of the ones I've seen are
> fairly trivial.
>

Also, please use Lift 1.1 (either M7 or SNAPSHOT).  It's got much better
error reporting.


>
>
>
>> Any help appreciated!
>>
>> Job Honig
>>
>>
>>
>
>
> --
> James A Barrows
>
>
>
> >
>


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

--~--~-~--~~~---~--~~
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: Two how-to questions

2009-11-05 Thread Derek Chen-Becker
That would probably work in the simple case.

Derek

On Thu, Nov 5, 2009 at 3:19 PM, Naftoli Gugenheim wrote:

>
> Hi. Thanks for responding.
> I haven't looked it up, but I don't really need anything very specialized.
> I didn't mean that the time it runs each day has to be very precise. The
> point is just to back up the database daily.
> Should I use java.util.Timer.scheduleAtFixedRate?
>
> -
> Derek Chen-Becker wrote:
>
> I'm not sure how much complexity you want, but Quartz might be good for #1:
>
> http://www.opensymphony.com/quartz/
>
> Derek
>
> On Mon, Nov 2, 2009 at 12:40 PM, Naftoli Gugenheim  >wrote:
>
> >
> > Could someone give me a quick code sample to get me started on each of
> the
> > following?
> > 1. A task that should run at a fixed time each day
> > 2. (If it's possible.) Errors logged should be emailed.
> > Thanks!
> >
> > >
> >
>
>
>
> >
>

--~--~-~--~~~---~--~~
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: beginner's question about surround/bind/bind-at/with-param

2009-11-05 Thread Jim Barrows
On Thu, Nov 5, 2009 at 3:04 PM, jhonig  wrote:

>
> Thank you James,
>
> What I tried first was taken from
> http://wiki.github.com/dpp/liftweb/about-lift-tags.
> I don't have the code anymore.  It was a surround without "at"
> attribute, and with
> multiple "bind-at"-s inside.   Nothing got bound, as far as I could
> see.  When I
> replaced the bind-at's with with-params, they *did* bind as expected.
> However,
> head-merging didn't work.   No errors either, just didn't work.
>

 That would be because those are examples of tags, not copy-and-paste-code
necessarily.

I can think of about million definitions of "just didn't work".  Which one
do you mean here?



> When I used a surround with an "at" attribute as in the old wiki, but
> without bind-at's
> or with-params, head-merging *did* work!   That's why I assumed that
> that description
> was the newer version!  So now it seems I'm on the wrong track,
> because that's
> the code I started using.
>

Again.  No code, can't really tell you what's wrong, or right.


>
> Another problem I didn't resolve sofar is that I had a few
> conventional 
> elements in my page.  But jetty can't resolve them so clearly I have
> to do more
> than that.  Should be trivial, of course.  Guess it has something to
> do with the
> sitemap, but I don't have a clear picture as to how that works.  The
> examples
> I found are much more involved than what I was looking for.
>


Yes, sitemap is a place to start looking.
The problem is that you're not providing enough detail to help you out.
"Doesn't work" is not enough to help out.  Did you get a 404 error?  blank
page?  Anything at all?

Which examples are you talking about?  Most of the ones I've seen are fairly
trivial.



> Any help appreciated!
>
> Job Honig
>
> >
>


-- 
James A Barrows

--~--~-~--~~~---~--~~
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: Access to cached object in mapper (.obj)

2009-11-05 Thread Naftoli Gugenheim

See also LongMappedMapper.

-
David Pollak wrote:

Makes sense.  Please open a ticket: http://github.com/dpp/liftweb/issues

On Thu, Nov 5, 2009 at 6:44 AM, Jean-Adrien  wrote:

>
> Hello,
>
> I have a question regarding the .obj field in MappedForeignKey trait;
> If I load a persisted object, if see that I can modify the value of
> one MappedForeignKey column, and the change is not reflected in .obj
> method. Doesn't it make sense to have the updated value, since the .is
> method returns the updated foreign key:
>
> val testUser : User = User.find(By(User.id, 1)).open_!
> val testAddress = testUser.homeAddress.obj;
> Log.debug("Current FK id is "+testUser.homeAddress.is) // returns 1
>
> testAddress match {
>  case Full(addr) =>
> val anotherAddr : Address = Address.find(By(Address.id,
> 2)).open_!
> Log.debug("There was an address: "+addr+". Replace it with
> addr id#2: "+anotherAddr);
>  testUser.homeAddress(anotherAddr).save
>
>  case _ =>
>[...]
>}
>val retestAddress = testUser.homeAddress.obj
>Log.debug("Now obj is "+retestAddress); // returns a Box with the
> old address (former id)
>Log.debug("And is is "+testUser.homeAddress.is) // returns 2
>
> By the way, what is the best method to reload the changes, if, i.e. I
> have no reference on the query that produced the original (parent)
> object (e.g. testUser), and therefore no way to reload it
>
> >
>


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



--~--~-~--~~~---~--~~
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: AutoComplete, but optional

2009-11-05 Thread David Pollak
On Thu, Oct 29, 2009 at 5:10 PM, Trav  wrote:

>
> My goal is to use auto complete for "suggested" text box values.
> Unfortunately, when using the AutoComplete wiget, the onsubmit
> function receives an empty string if a value is not selected from the
> drop down.
>
> Is there any way around this?
>

Please open a ticket for this issue at http://github.com/dpp/liftweb/issues


>
> thanks,
> -Trav
>
> >
>


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

--~--~-~--~~~---~--~~
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: beginner's question about surround/bind/bind-at/with-param

2009-11-05 Thread jhonig

Thank you James,

What I tried first was taken from 
http://wiki.github.com/dpp/liftweb/about-lift-tags.
I don't have the code anymore.  It was a surround without "at"
attribute, and with
multiple "bind-at"-s inside.   Nothing got bound, as far as I could
see.  When I
replaced the bind-at's with with-params, they *did* bind as expected.
However,
head-merging didn't work.   No errors either, just didn't work.

When I used a surround with an "at" attribute as in the old wiki, but
without bind-at's
or with-params, head-merging *did* work!   That's why I assumed that
that description
was the newer version!  So now it seems I'm on the wrong track,
because that's
the code I started using.

Another problem I didn't resolve sofar is that I had a few
conventional 
elements in my page.  But jetty can't resolve them so clearly I have
to do more
than that.  Should be trivial, of course.  Guess it has something to
do with the
sitemap, but I don't have a clear picture as to how that works.  The
examples
I found are much more involved than what I was looking for.

Any help appreciated!

Job Honig

--~--~-~--~~~---~--~~
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: Latest API Documentation

2009-11-05 Thread David Pollak
On Wed, Nov 4, 2009 at 10:44 PM, aw  wrote:

>
> When clicking on the "API Documentation" link, it links to 1.0
> documentation...  Is there a link for 1.1-M7 documentation?
>
> (I tried going to http://scala-tools.org/scaladocs/liftweb/1.1-M7/ but
> that didn't work...)
>
>
Try:
http://scala-tools.org/mvnsites/liftweb-1.1-M6/

The M7 docs will be up in 30-60 minutes.


> >
>


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

--~--~-~--~~~---~--~~
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: Two how-to questions

2009-11-05 Thread Naftoli Gugenheim

Hi. Thanks for responding.
I haven't looked it up, but I don't really need anything very specialized. I 
didn't mean that the time it runs each day has to be very precise. The point is 
just to back up the database daily.
Should I use java.util.Timer.scheduleAtFixedRate?

-
Derek Chen-Becker wrote:

I'm not sure how much complexity you want, but Quartz might be good for #1:

http://www.opensymphony.com/quartz/

Derek

On Mon, Nov 2, 2009 at 12:40 PM, Naftoli Gugenheim wrote:

>
> Could someone give me a quick code sample to get me started on each of the
> following?
> 1. A task that should run at a fixed time each day
> 2. (If it's possible.) Errors logged should be emailed.
> Thanks!
>
> >
>



--~--~-~--~~~---~--~~
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: record framework questions

2009-11-05 Thread David Pollak
On Wed, Nov 4, 2009 at 3:24 AM, Tim Nelson  wrote:

>
> I have been working on a back end implementation for Record that uses
> MongoDB and I have a couple of quick questions;
>
> Is there a reason that valMinLen and valMaxLen were not copied into
> StringField?
>

It has been argued that they should not live in StringField, but in a
separate helper object.

If you want them in StringField or elsewhere, please open a ticket.


>
> TimeZoneField has a companion object that has a list of the available
> time zones, it would be nice to have a similar companion object for
> LocaleField.
>

Please put that in your ticket as well.


>
> How stable are the current Record, MetaRecord and Field* files? Are
> there any plans to make any changes to these?
>

Unless Marius has bandwidth to work on them, no.


>
> Thanks,
> Tim
>
>
> >
>


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

--~--~-~--~~~---~--~~
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: Access to cached object in mapper (.obj)

2009-11-05 Thread David Pollak
Makes sense.  Please open a ticket: http://github.com/dpp/liftweb/issues

On Thu, Nov 5, 2009 at 6:44 AM, Jean-Adrien  wrote:

>
> Hello,
>
> I have a question regarding the .obj field in MappedForeignKey trait;
> If I load a persisted object, if see that I can modify the value of
> one MappedForeignKey column, and the change is not reflected in .obj
> method. Doesn't it make sense to have the updated value, since the .is
> method returns the updated foreign key:
>
> val testUser : User = User.find(By(User.id, 1)).open_!
> val testAddress = testUser.homeAddress.obj;
> Log.debug("Current FK id is "+testUser.homeAddress.is) // returns 1
>
> testAddress match {
>  case Full(addr) =>
> val anotherAddr : Address = Address.find(By(Address.id,
> 2)).open_!
> Log.debug("There was an address: "+addr+". Replace it with
> addr id#2: "+anotherAddr);
>  testUser.homeAddress(anotherAddr).save
>
>  case _ =>
>[...]
>}
>val retestAddress = testUser.homeAddress.obj
>Log.debug("Now obj is "+retestAddress); // returns a Box with the
> old address (former id)
>Log.debug("And is is "+testUser.homeAddress.is) // returns 2
>
> By the way, what is the best method to reload the changes, if, i.e. I
> have no reference on the query that produced the original (parent)
> object (e.g. testUser), and therefore no way to reload it
>
> >
>


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

--~--~-~--~~~---~--~~
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: form input tag name values changed when moving from M6 to M7

2009-11-05 Thread David Pollak
On Thu, Nov 5, 2009 at 8:50 AM, ben  wrote:

>
> Hi,
>
> I was running 1.1-M6 with 2.7.6 with run.mode=test, and had written a
> bunch of acceptance tests using Cucumber.
> I just upgraded to 1.1-M7 with 2.7.7 and all the name values of form
> input tags have changed, failing all my tests :(
>

D'oh.


>
> Name value with 1.1-M6 + 2.7.6
> f01001_77444531b59f74f18fbde8c81a40a22e862a00cb
>
> Name value with 1.1-M7 + 2.7.7
> f01001_1bceef1fd31e439accaa8462e3dfd1942e1a05ea
>
> Can anyone shed any light on :
>
> 1) How are these ids generated
>

def formFuncName: String = if (Props.testMode) {
val bump: Long = ((_formGroup.is openOr 0) + 1000L) * 1L
val num: Int = formItemNumber.is
formItemNumber.set(num + 1)
import _root_.java.text._
val prefix: String = new DecimalFormat("0").format(bump
+ num)
"f" + prefix + "_" + Helpers.hashHex((new
Exception).getStackTrace.toList.take(10).map(_.toString).mkString(","))
  } else {
_formGroup.is match {
  case Full(x) => Helpers.nextFuncName(x.toLong * 1L)
  case _ => Helpers.nextFuncName
}
  }



> 2) Will they always change when we upgrade liftweb/scala versions ?
>

It's based on the stack trace (10 frames), so I think so.  I'm open to other
mechanisms of generating stable identifiers, so if you've got something that
will generate something stable and unique, changing things is cool with me.


>
> Cheers,
> Ben
>
> >
>


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

--~--~-~--~~~---~--~~
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: beginner's question about surround/bind/bind-at/with-param

2009-11-05 Thread David Pollak
In general, the information at http://wiki.github.com/dpp/liftweb is up to
date.  The stuff on wiki.liftweb.net is many years out of date and mostly
refers to pre-1.0 Lift.  We had a project to migrate the content, but it
foundered... :-(

On Thu, Nov 5, 2009 at 9:41 AM, jhonig  wrote:

>
> Hi,
>
> I am starting to experiment with lift, and don't seem to be able to
> make a lot of progress, even for the simplest things.  Obviously,
> learning a new platform takes some effort, but I really think there is
> a documentation problem.
> Or maybe I just didn't find the proper documents.
>
> - It is very difficult to get the picture at a high level
> - There's a lot of conflicting information floating around.
>
> To given an example: I tried to make templates with a single bind
> point and with multiple bind points.  However,
> the bind-at I found at
> http://wiki.liftweb.net/index.php/LiftTags#with-param.2Fbind-at
> didn't seem to do anything.
> Then tried the with-param (which you're advised not to use, but at
> least it worked).  Also, the wiki doesn't specify the "at" attribute
> while the book does.
>
> Another problem with the version using "with-param" to bind was that
> head-merging didn't work.  Again, I found conflicting information
> about the exact way to do it, e.g., a "lift:tohead" element that I
> couldn't find in other references.  When I used to single bind version
> of "surround" with the "at" attribute, head-merging worked fine.  But
> actually, that version *is not document in the wiki*!!!
>
> But again, it's the lack of a global picture that is the main
> problem.  I still haven't found a way to make some simple
> rather static pages that refer to each other.  Guess I should make a
> user menu (from the Boot class I found), but I can't even find the
> User object in the apidocs.
>
> Concluding, my question is really: where can I find a high level
> description of the Lift platform...?  The book is not high level,
> IMHO, it lacks the architecture description.
>
> Help to get some references
>
>
> >
>


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

--~--~-~--~~~---~--~~
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: lift jpa maven

2009-11-05 Thread David Pollak
Hmmm...

I am seeing the same thing.  It appears that there's no archetype.xml file
as part of the archetype JARs.

Please file a ticket here: http://github.com/dpp/liftweb/issues

We will add testing of the archetypes as part of the build process.

On Thu, Nov 5, 2009 at 4:29 AM, ivan  wrote:

>
> This is what I am trying to do:
>
> mvn -e archetype:create -U -DarchetypeGroupId=net.liftweb -
> DarchetypeArtifactId=lift-archetype-jpa-basic -DarchetypeVersion=1.1-
> scala2.7.7.RC2-SNAPSHOT -DremoteRepositories=http://scala-tools.org/
> repo-snapshots 
> -DgroupId=hr.ivan.lift 
> -DartifactId=lift-jpa-basic
>
>
> Ant this is what I'am getting:
>
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Error creating from archetype
>
> Embedded error: The META-INF/maven/archetype.xml descriptor cannot be
> found.
>
> Any ideas what could be the problem. I have tried with other versions
> and even some from repo-releases but can't get jpa-basic working.
>
> Thanks!
>
> >
>


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

--~--~-~--~~~---~--~~
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: javax.mail 1.4.3-SNAPSHOT

2009-11-05 Thread David Pollak
Yikes.

Please file a ticket for this.  We'll fix it.  I think there's going to be a
M7-SUPL release in the SNAPSHOT repo that addresses a bug that Jon reported.

Thanks,

David

On Thu, Nov 5, 2009 at 12:54 PM, aw  wrote:

>
> I upgraded to 1.1-M7 and was surprised to see that javax.mail-1.4.3-
> SNAPSHOT is now appearing as a dependency.  Generally speaking, we
> don't want SNAPSHOT dependencies because they aren't re-creatable, but
> somehow, it sneaked into the Java.Net Maven 2 Repository:
> http://download.java.net/maven/2/javax/mail/mail/
>
> It is being pulled in because the lift pom here:
>
> http://scala-tools.org/repo-releases/net/liftweb/lift/1.1-M7/lift-1.1-M7.pom
> declares the dependency:
>
>  
>javax.mail
>mail
>[1.4,1.5)
>  
>
> Normally, the above should be fine.  Alas, I think the underlying
> problem is really Java.Net's Maven 2 Repository -- the SNAPSHOT build
> should not have made it to the repository...
>
> BTW...  I noticed that the javax.activation dependency is explicitly
> declared:
>
>  
>javax.activation
>activation
>[1.1,1.2)
>  
>
> but it should be a transitive dependency of javax,mail (so this could
> be removed).
>
> I'm not sure what I am going to do to resolve this -- probably add an
> explicit dependency in my project to override it.  Thought I'd
> share...
>
> >
>


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

--~--~-~--~~~---~--~~
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: Question about megaprotouser S.error

2009-11-05 Thread Heiko Seeberger
2009/11/4 David Pollak 

It is a bug in MappedPassword (not ProtoUser):
>>
>
> It's not a bug, it's by design.
>

Well , issue 157 ("MappedPassword contains misspelled key for unset
password") is a bug, but  "**" as default value is by design, of course.

Heiko

My job: weiglewilczek.com
My blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala: scalamodules.org
Lift, the simply functional web framework: liftweb.net

--~--~-~--~~~---~--~~
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] javax.mail 1.4.3-SNAPSHOT

2009-11-05 Thread aw

I upgraded to 1.1-M7 and was surprised to see that javax.mail-1.4.3-
SNAPSHOT is now appearing as a dependency.  Generally speaking, we
don't want SNAPSHOT dependencies because they aren't re-creatable, but
somehow, it sneaked into the Java.Net Maven 2 Repository:
http://download.java.net/maven/2/javax/mail/mail/

It is being pulled in because the lift pom here:
http://scala-tools.org/repo-releases/net/liftweb/lift/1.1-M7/lift-1.1-M7.pom
declares the dependency:

  
javax.mail
mail
[1.4,1.5)
  

Normally, the above should be fine.  Alas, I think the underlying
problem is really Java.Net's Maven 2 Repository -- the SNAPSHOT build
should not have made it to the repository...

BTW...  I noticed that the javax.activation dependency is explicitly
declared:

  
javax.activation
activation
[1.1,1.2)
  

but it should be a transitive dependency of javax,mail (so this could
be removed).

I'm not sure what I am going to do to resolve this -- probably add an
explicit dependency in my project to override it.  Thought I'd
share...

--~--~-~--~~~---~--~~
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: Milestone 7 released

2009-11-05 Thread David Pollak
On Thu, Nov 5, 2009 at 10:53 AM, jlist9  wrote:

>
> Congrats on the new release!
>
> Just curious - what are the differences between Lift Actor and Akka Actor
> when
> used locally?
>

Akka actors have a whole monitor hierarchy and other goodies (Jonas can tell
us about these).  Lift Actors have different exception handling and never
stop.


>
> On Wed, Nov 4, 2009 at 11:18 PM, Charles F. Munat  wrote:
> >
> > The Lift Web Framework team is pleased to announce the lift-1.1-M7
> release!
> >
> > Lift is an expressive and elegant framework for writing web
> > applications. Lift stresses the importance of security, maintainability,
> > scalability and performance while allowing for high levels of developer
> > productivity. Lift is a Scala web framework.
> >
> > Changes in this version include:
> >
> > New features:
> > o Enhanced the documentation for an type signatures for Actors
> > o Revised Lift to use LiftActors and be compatible with Akka Actors
> > o DB.runQuery isn't ConnectionIdentifier-aware  Issue: 125.
> > o JSON diff and merge
> > o Add parameterized ?? to S  Issue: 82.
> >
> > Fixed Bugs:
> > o Textile parser outputs non-valid output. Changed some null to Null.
> > Issue: 94. Thanks to vdichev.
> > o S.deleteCookie broken in M6  Issue: 126.
> > o Misspelling in field name in ProtoExtendedSession  Issue: 119.
> > o net.liftweb.widgets.autocomplete in version 1.1-M6
> > changed return type from NodeSeq to Elem  Issue: 120.
> > o StatefulSnippets generate invalid markup  Issue: 122.
> > o Stacked URL Rewriting correctly deals with params  Issue: 143.
> > o Simplified Factory signatures in LiftRules  Issue: 141.
> > o Use paranamer to find out case class constructor argument names
> > o Enhance CRUDify i18n  Issue: 84.
> > o Inaccurate ranges for previous and next (page) in CRUDify  Issue: 87.
> > o No i18n for "Sign Up" in MetaMegaProtoUser.signupXhtm  Issue: 81.
> > o Lost password submit button is not rendered correctly  Issue: 111.
> > o Signup mail body not i18ned  Issue: 113.
> > o Misspelled Key "pasword.changed" in ProtoUser.scala  Issue: 114.
> > o Enhance Msgs snippet to optionally show all messages  Issue: 123.
> > o MappedPassword contains misspelled key for unset password  Issue: 157.
> >
> > Changes:
> > o Improve error message if database is not supported  Issue: 57.
> > o Change net.liftweb.mapper.ByList to take a Seq[T] instead of a List[T]
> >  Issue: 77.
> > o Boxed payment status so that IPN cancelations appear as
> > Empty. Breaking API change for implementors.  Issue: 88.
> > o Updated Lift to use Scala 2.7.7  Issue: 142.
> > o Restructured Lift codebase (now categorized into lift-base,
> > lift-persistence, lift-modules, lift-archetypes and lift-examples).
> > Issue: 127.
> > o Project build models are more enriched and streamlined.  Issue: 128.
> > o Generalized JSON serialization
> >
> >
> > Have fun!
> > -Lift Web Framework team
> >
> >
> > >
> >
>
> >
>


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

--~--~-~--~~~---~--~~
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: Milestone 7 released

2009-11-05 Thread jlist9

Congrats on the new release!

Just curious - what are the differences between Lift Actor and Akka Actor when
used locally?

On Wed, Nov 4, 2009 at 11:18 PM, Charles F. Munat  wrote:
>
> The Lift Web Framework team is pleased to announce the lift-1.1-M7 release!
>
> Lift is an expressive and elegant framework for writing web
> applications. Lift stresses the importance of security, maintainability,
> scalability and performance while allowing for high levels of developer
> productivity. Lift is a Scala web framework.
>
> Changes in this version include:
>
> New features:
> o Enhanced the documentation for an type signatures for Actors
> o Revised Lift to use LiftActors and be compatible with Akka Actors
> o DB.runQuery isn't ConnectionIdentifier-aware  Issue: 125.
> o JSON diff and merge
> o Add parameterized ?? to S  Issue: 82.
>
> Fixed Bugs:
> o Textile parser outputs non-valid output. Changed some null to Null.
> Issue: 94. Thanks to vdichev.
> o S.deleteCookie broken in M6  Issue: 126.
> o Misspelling in field name in ProtoExtendedSession  Issue: 119.
> o net.liftweb.widgets.autocomplete in version 1.1-M6
>         changed return type from NodeSeq to Elem  Issue: 120.
> o StatefulSnippets generate invalid markup  Issue: 122.
> o Stacked URL Rewriting correctly deals with params  Issue: 143.
> o Simplified Factory signatures in LiftRules  Issue: 141.
> o Use paranamer to find out case class constructor argument names
> o Enhance CRUDify i18n  Issue: 84.
> o Inaccurate ranges for previous and next (page) in CRUDify  Issue: 87.
> o No i18n for "Sign Up" in MetaMegaProtoUser.signupXhtm  Issue: 81.
> o Lost password submit button is not rendered correctly  Issue: 111.
> o Signup mail body not i18ned  Issue: 113.
> o Misspelled Key "pasword.changed" in ProtoUser.scala  Issue: 114.
> o Enhance Msgs snippet to optionally show all messages  Issue: 123.
> o MappedPassword contains misspelled key for unset password  Issue: 157.
>
> Changes:
> o Improve error message if database is not supported  Issue: 57.
> o Change net.liftweb.mapper.ByList to take a Seq[T] instead of a List[T]
>  Issue: 77.
> o Boxed payment status so that IPN cancelations appear as
>         Empty. Breaking API change for implementors.  Issue: 88.
> o Updated Lift to use Scala 2.7.7  Issue: 142.
> o Restructured Lift codebase (now categorized into lift-base,
> lift-persistence, lift-modules, lift-archetypes and lift-examples).
> Issue: 127.
> o Project build models are more enriched and streamlined.  Issue: 128.
> o Generalized JSON serialization
>
>
> Have fun!
> -Lift Web Framework team
>
>
> >
>

--~--~-~--~~~---~--~~
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: Two how-to questions

2009-11-05 Thread Derek Chen-Becker
I'm not sure how much complexity you want, but Quartz might be good for #1:

http://www.opensymphony.com/quartz/

Derek

On Mon, Nov 2, 2009 at 12:40 PM, Naftoli Gugenheim wrote:

>
> Could someone give me a quick code sample to get me started on each of the
> following?
> 1. A task that should run at a fixed time each day
> 2. (If it's possible.) Errors logged should be emailed.
> Thanks!
>
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---