[Lift] Re: Accessing innerHTML during bind?

2010-02-05 Thread Tim Maxwell
Thanks for the suggestions. I knew it was not the most efficient,
however, we don't have many products.

On Feb 4, 3:39 pm, David Pollak  wrote:
> On Thu, Feb 4, 2010 at 7:32 AM, Ross Mellgren  wrote:
> > I think this new version will be slower than your original one, as each
> > call to bind will visit the entire input XHTML. Why not use your original
> > formulation but instead of TheBindParam, use FuncBindParam (which is the
> > sugar-free version of body => ... that David describes)?
>
> Yeah... the bind operation is O(n log m) where 'n' is the number of element
> nodes and m is the number of things to be bound.  Using foldLeft, you're
> making that O(n m)  Then again, if the code is understandable for you, then
> a couple of nanoseconds here and there are not overly important.
>
>
>
>
>
>
>
> > -Ross
>
> > On Feb 4, 2010, at 10:28 AM, Tim Maxwell wrote:
>
> > > Hi David,
>
> > > There really are a lot of paths available with scala/lift, aren't
> > > there?
>
> > > After looking at what you wrote, here's what I came up with that works
> > > well/is functional and compact, in case anyone else is wondering about
> > > it.
>
> > >  def links(html:NodeSeq): NodeSeq={
>
> > >    Product.findActive.foldLeft(html) {
> > >      (html, prod) => bind("links",html,
> > >        "force_"+prod.product ->{x:NodeSeq => { > > product="+prod.product}>{x}}}
> > >      )
> > >    }
> > >  }
>
> > > Product is a JPA entity class, findactive returns a list of products.
>
> > > If anyone has suggestions, please share.
>
> > > Cheers,
> > > Tim
>
> > > On Feb 3, 5:08 pm, David Pollak  wrote:
> > >> On Wed, Feb 3, 2010 at 12:44 PM, Tim Maxwell 
> > wrote:
> > >>> Hi folks,
>
> > >>> I am trying to do binds based on a list of products. The point is to
> > >>> create links that can be wrapped around existing text or images.
> > >>> Something like this:
>
> > >>> This is the link text our marketing dept.
> > >>> creates
>
> > >>> Here's what I have so far in the snippet related to it:
>
> > >>>  def links(html:NodeSeq): NodeSeq={
>
> > >>>    val productBinds:Seq[BindParam] = Product.findActive.flatMap{
> > >>>      prod => List[BindParam] (  TheBindParam( "force_"+prod.product,
> > >>> SHtml.link("/forced?product="+prod.product, ()=>() , _ ) )  )
> > >>>    }
> > >>>    bind("links" , html, productBinds: _*)
>
> > >> It's so cool to see how people stuff in Lift...
>
> > >> Within your function, you can get the element that's being bound with:
>
> > >> BindHelpers.currentNode: Box[Elem]
>
> > >> On the other hand, if you're looking to get the children of the node
> > >> currently being bound:
>
> > >>  FuncBindParam("force_"+prod.product, body =>  > >> href={"/forced?product="+Helpers.urlEncode(prod.product)}>{body})
>
> > >> Hope this helps.
>
> > >> Thanks,
>
> > >> David
>
> > >>>  }
>
> > >>> Cheers,
> > >>> Tim
>
> > >>> --
> > >>> You received this message because you are subscribed to the Google
> > Groups
> > >>> "Lift" group.
> > >>> To post to this group, send email to lift...@googlegroups.com.
> > >>> To unsubscribe from this group, send email to
> > >>> liftweb+unsubscr...@googlegroups.com > >>>  >
> >  > s.com>>
> > >>> .
> > >>> For more options, visit this group at
> > >>>http://groups.google.com/group/liftweb?hl=en.
>
> > >> --
> > >> 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 lift...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > liftweb+unsubscr...@googlegroups.com > >
> > .
> > > For more options, visit this group at
> >http://groups.google.com/group/liftweb?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Lift" group.
> > To post to this group, send email to lift...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > liftweb+unsubscr...@googlegroups.com > >
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/liftweb?hl=en.
>
> --
> Lift, 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 lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.



[Lift] Re: Accessing innerHTML during bind?

2010-02-04 Thread Tim Maxwell
Hi David,

There really are a lot of paths available with scala/lift, aren't
there?

After looking at what you wrote, here's what I came up with that works
well/is functional and compact, in case anyone else is wondering about
it.

  def links(html:NodeSeq): NodeSeq={

Product.findActive.foldLeft(html) {
  (html, prod) => bind("links",html,
"force_"+prod.product ->{x:NodeSeq => { > SHtml.link("/forced?product="+prod.product, ()=>() , _ ) )  )
> >    }
> >    bind("links" , html, productBinds: _*)
>
> It's so cool to see how people stuff in Lift...
>
> Within your function, you can get the element that's being bound with:
>
> BindHelpers.currentNode: Box[Elem]
>
> On the other hand, if you're looking to get the children of the node
> currently being bound:
>
>  FuncBindParam("force_"+prod.product, body =>  href={"/forced?product="+Helpers.urlEncode(prod.product)}>{body})
>
> Hope this helps.
>
> Thanks,
>
> David
>
>
>
>
>
> >  }
>
> > Cheers,
> > Tim
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Lift" group.
> > To post to this group, send email to lift...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > liftweb+unsubscr...@googlegroups.com > >
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/liftweb?hl=en.
>
> --
> Lift, 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 lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.



[Lift] Accessing innerHTML during bind?

2010-02-03 Thread Tim Maxwell
Hi folks,

I am trying to do binds based on a list of products. The point is to
create links that can be wrapped around existing text or images.
Something like this:

This is the link text our marketing dept.
creates

Here's what I have so far in the snippet related to it:

 def links(html:NodeSeq): NodeSeq={

val productBinds:Seq[BindParam] = Product.findActive.flatMap{
  prod => List[BindParam] (  TheBindParam( "force_"+prod.product,
SHtml.link("/forced?product="+prod.product, ()=>() , _ ) )  )
}
bind("links" , html, productBinds: _*)

  }

Cheers,
Tim

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



[Lift] Re: Lift-Wizard Fields incompatible with lift-record fields

2010-01-19 Thread Tim Maxwell
Thanks for the update. Good luck with all the personal stuff. If I
decide to go the route of integrating I will report back on any
progress I make.

Cheers,
Tim

On Jan 19, 1:13 pm, David Pollak 
wrote:
> On Tue, Jan 19, 2010 at 11:06 AM, Tim Maxwell  wrote:
> > net.liftweb.record.field.EmailField
>
> The record stuff is not yet integrated into the Screen/Wizard stuff.  I'm
> likely to be the person to do that work and I'm massively behind due to a
> bunch of personal stuff.  I doubt any of the Record stuff will be integrated
> in the next month.
>
>
>
>
>
>
>
> > Am I wrong about these fields being what the UI layer uses to generate
> > forms?
>
> > On Jan 19, 1:02 pm, David Pollak 
> > wrote:
> > > On Tue, Jan 19, 2010 at 10:56 AM, Tim Maxwell 
> > wrote:
> > > > The lift-wizard and lift-record packages both have Field traits that
> > > > appear to do very similar things, with the end result being that the
> > > > lift-wizard currently can't use the existing EmailField,
> > > > PasswordField, UploadField traits.
>
> > > What EmailField?
>
> > > > Will these types be unified at some point? Will we be able to use the
> > > > existing Field types or should we start writing our own?
>
> > > > Sorry for the repost, my original title was not very descriptive.
>
> > > > Cheers,
> > > > Tim
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Lift" group.
> > > > To post to this group, send email to lift...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > liftweb+unsubscr...@googlegroups.com > > >  >
> >  > s.com>>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/liftweb?hl=en.
>
> > > --
> > > 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 lift...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > liftweb+unsubscr...@googlegroups.com > >
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/liftweb?hl=en.
>
> --
> Lift, 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 lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: Lift-Wizard Fields incompatible with lift-record fields

2010-01-19 Thread Tim Maxwell
net.liftweb.record.field.EmailField

Am I wrong about these fields being what the UI layer uses to generate
forms?

On Jan 19, 1:02 pm, David Pollak 
wrote:
> On Tue, Jan 19, 2010 at 10:56 AM, Tim Maxwell  wrote:
> > The lift-wizard and lift-record packages both have Field traits that
> > appear to do very similar things, with the end result being that the
> > lift-wizard currently can't use the existing EmailField,
> > PasswordField, UploadField traits.
>
> What EmailField?
>
>
>
>
>
>
>
> > Will these types be unified at some point? Will we be able to use the
> > existing Field types or should we start writing our own?
>
> > Sorry for the repost, my original title was not very descriptive.
>
> > Cheers,
> > Tim
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Lift" group.
> > To post to this group, send email to lift...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > liftweb+unsubscr...@googlegroups.com > >
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/liftweb?hl=en.
>
> --
> Lift, 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 lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Lift-Wizard Fields incompatible with lift-record fields

2010-01-19 Thread Tim Maxwell
The lift-wizard and lift-record packages both have Field traits that
appear to do very similar things, with the end result being that the
lift-wizard currently can't use the existing EmailField,
PasswordField, UploadField traits.

Will these types be unified at some point? Will we be able to use the
existing Field types or should we start writing our own?

Sorry for the repost, my original title was not very descriptive.

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




[Lift] Questions about Field traits

2010-01-18 Thread Tim Maxwell
I was hacking around with the 2.0-M1 release and it appears that the
StringField used by Wizard and defined in lift-base webkit
LiftScreen.scala is not the same as the StringField defined in lift-
persistence StringField.scala.

Can I assume this is an artifact of development and some unification
of types is planned? Before I go writing my own EmailField and
PasswordField, this would be good to know.

Either way, maybe a good thing to mention in the comments/docs, given
the namespace collision.

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




[Lift] Re: wizard error

2010-01-18 Thread Tim Maxwell
I missed the step of setting up the snippet dispatcher. Fixed.

On Jan 18, 12:23 pm, Tim Maxwell  wrote:
> Hi Folks,
>
> I got the example project up and running. However as I start to modify
> it, I run into a nasty error.
>
> Here are the changes I've made:
>
> 1. added to Boot.scala
>
>   Menu(Loc("Wiz", List("wiz"), "Wizard")), //boilerplate
>   Menu(Loc("Wiz3", List("wiz3"), "Signup Wizard")), //my addition
>   Menu(Loc("Wiz2", List("wiz2"), "Wizard Challenge")), //boilerplate
>
> 2. cp wiz.html wiz3.html
>
> 3. edit wiz3.html to point to  instead of
> 
>
> 4. edit Wizard.scala by copy/pasting the MyWizard object and renaming
> it SignupWizard
>
> That is all I have done.
>
> When I try to go to /wiz3.html, I get
>
> Error processing snippetSignupWizard.Reason:Exception During Snippet
> InstantiationXML causing this error:
> 
>
> In the jetty log its:
>
> WARN - Snippet instantiation error
> java.lang.InstantiationException:
> net.liftweb.example.snippet.SignupWizard
>         at java.lang.Class.newInstance0(Class.java:340)
>         at java.lang.Class.newInstance(Class.java:308)
>         at net.liftweb.http.LiftSession$$anonfun$net$liftweb$http
> $LiftSession$$instantiateOrRedirect$2.apply(LiftSession.scala:685)
>         at net.liftweb.util.ControlHelpers$class.tryo
> (ControlHelpers.scala:64)
>         at net.liftweb.util.Helpers$.tryo(Helpers.scala:30)
>         at net.liftweb.http.LiftSession.net$liftweb$http$LiftSession$
> $instantiateOrRedirect(LiftSession.scala:681)
>         at net.liftweb.http.LiftSession$$anonfun$net$liftweb$http
> $LiftSession$$findSnippetInstance$1$$anonfun$apply$48.apply
> (LiftSession.scala:730)
>         at net.liftweb.http.LiftSession$$anonfun$net$liftweb$http
> $LiftSession$$findSnippetInstance$1$$anonfun$apply$48.apply
> (LiftSession.scala:730)
>         at net.liftweb.common.Full.flatMap(Box.scala:332)
>         at net.liftweb.http.LiftSession$$anonfun$net$liftweb$http
> $LiftSession$$findSnippetInstance$1.apply(LiftSession.scala:730)
>         at net.liftweb.http.LiftSession$$anonfun$net$liftweb$http
> $LiftSession$$findSnippetInstance$1.apply(LiftSession.scala:730)
>         at net.liftweb.common.EmptyBox.or(Box.scala:374)
>         at net.liftweb.http.LiftSession.net$liftweb$http$LiftSession$
> $findSnippetInstance(LiftSession.scala:729)
>         at net.liftweb.http.LiftSession$$anonfun$locateAndCacheSnippet
> $1$1$$anonfun$17.apply(LiftSession.scala:820)
>         at net.liftweb.http.LiftSession$$anonfun$locateAndCacheSnippet
> $1$1$$anonfun$17.apply(LiftSession.scala:820)
>         at net.liftweb.common.EmptyBox.or(Box.scala:374)
>         at net.liftweb.http.LiftSession$$anonfun$locateAndCacheSnippet
> $1$1.apply(LiftSession.scala:820)
>         at net.liftweb.http.LiftSession$$anonfun$locateAndCacheSnippet
> $1$1.apply(LiftSession.scala:819)
>         at net.liftweb.common.EmptyBox.or(Box.scala:374)
>         at net.liftweb.http.LiftSession.locateAndCacheSnippet$1
> (LiftSession.scala:819)
>         at net.liftweb.http.LiftSession$$anonfun$18$$anonfun$apply$58$
> $anonfun$apply$61$$anonfun$apply$63.apply(LiftSession.scala:832)
>         at net.liftweb.http.LiftSession$$anonfun$18$$anonfun$apply$58$
> $anonfun$apply$61$$anonfun$apply$63.apply(LiftSession.scala:830)
>         at net.liftweb.common.EmptyBox.openOr(Box.scala:372)
>         at net.liftweb.http.LiftSession$$anonfun$18$$anonfun$apply$58$
> $anonfun$apply$61.apply(LiftSession.scala:830)
>         at net.liftweb.http.LiftSession$$anonfun$18$$anonfun$apply$58$
> $anonfun$apply$61.apply(LiftSession.scala:830)
>         at net.liftweb.common.EmptyBox.openOr(Box.scala:372)
>         at net.liftweb.http.LiftSession$$anonfun$18$$anonfun$apply
> $58.apply(LiftSession.scala:829)
>         at net.liftweb.http.LiftSession$$anonfun$18$$anonfun$apply
> $58.apply(LiftSession.scala:829)
>         at net.liftweb.http.S$.doSnippet(S.scala:1677)
>         at net.liftweb.http.LiftSession$$anonfun$18.apply
> (LiftSession.scala:827)
>         at net.liftweb.http.LiftSession$$anonfun$18.apply
> (LiftSession.scala:826)
>         at net.liftweb.common.Full.map(Box.scala:330)
>         at net.liftweb.http.LiftSession.net$liftweb$http$LiftSession$
> $processSnippet(LiftSession.scala:826)
>         at net.liftweb.http.LiftSession$$anonfun
> $_defaultLiftTagProcessing$1.apply(LiftSession.scala:942)
>         at net.liftweb.http.LiftSession$$anonfun
> $_defaultLiftTagProcessing$1.apply(LiftSession.scala:930)
>         at net.liftweb.util.NamedPF.apply(NamedPartialFunction.scala:
> 33)
>         at net.liftweb.util.NamedPF$.apply(NamedPartial

[Lift] wizard error

2010-01-18 Thread Tim Maxwell
Hi Folks,

I got the example project up and running. However as I start to modify
it, I run into a nasty error.

Here are the changes I've made:

1. added to Boot.scala

  Menu(Loc("Wiz", List("wiz"), "Wizard")), //boilerplate
  Menu(Loc("Wiz3", List("wiz3"), "Signup Wizard")), //my addition
  Menu(Loc("Wiz2", List("wiz2"), "Wizard Challenge")), //boilerplate

2. cp wiz.html wiz3.html

3. edit wiz3.html to point to  instead of


4. edit Wizard.scala by copy/pasting the MyWizard object and renaming
it SignupWizard

That is all I have done.

When I try to go to /wiz3.html, I get

Error processing snippetSignupWizard.Reason:Exception During Snippet
InstantiationXML causing this error:


In the jetty log its:

WARN - Snippet instantiation error
java.lang.InstantiationException:
net.liftweb.example.snippet.SignupWizard
at java.lang.Class.newInstance0(Class.java:340)
at java.lang.Class.newInstance(Class.java:308)
at net.liftweb.http.LiftSession$$anonfun$net$liftweb$http
$LiftSession$$instantiateOrRedirect$2.apply(LiftSession.scala:685)
at net.liftweb.util.ControlHelpers$class.tryo
(ControlHelpers.scala:64)
at net.liftweb.util.Helpers$.tryo(Helpers.scala:30)
at net.liftweb.http.LiftSession.net$liftweb$http$LiftSession$
$instantiateOrRedirect(LiftSession.scala:681)
at net.liftweb.http.LiftSession$$anonfun$net$liftweb$http
$LiftSession$$findSnippetInstance$1$$anonfun$apply$48.apply
(LiftSession.scala:730)
at net.liftweb.http.LiftSession$$anonfun$net$liftweb$http
$LiftSession$$findSnippetInstance$1$$anonfun$apply$48.apply
(LiftSession.scala:730)
at net.liftweb.common.Full.flatMap(Box.scala:332)
at net.liftweb.http.LiftSession$$anonfun$net$liftweb$http
$LiftSession$$findSnippetInstance$1.apply(LiftSession.scala:730)
at net.liftweb.http.LiftSession$$anonfun$net$liftweb$http
$LiftSession$$findSnippetInstance$1.apply(LiftSession.scala:730)
at net.liftweb.common.EmptyBox.or(Box.scala:374)
at net.liftweb.http.LiftSession.net$liftweb$http$LiftSession$
$findSnippetInstance(LiftSession.scala:729)
at net.liftweb.http.LiftSession$$anonfun$locateAndCacheSnippet
$1$1$$anonfun$17.apply(LiftSession.scala:820)
at net.liftweb.http.LiftSession$$anonfun$locateAndCacheSnippet
$1$1$$anonfun$17.apply(LiftSession.scala:820)
at net.liftweb.common.EmptyBox.or(Box.scala:374)
at net.liftweb.http.LiftSession$$anonfun$locateAndCacheSnippet
$1$1.apply(LiftSession.scala:820)
at net.liftweb.http.LiftSession$$anonfun$locateAndCacheSnippet
$1$1.apply(LiftSession.scala:819)
at net.liftweb.common.EmptyBox.or(Box.scala:374)
at net.liftweb.http.LiftSession.locateAndCacheSnippet$1
(LiftSession.scala:819)
at net.liftweb.http.LiftSession$$anonfun$18$$anonfun$apply$58$
$anonfun$apply$61$$anonfun$apply$63.apply(LiftSession.scala:832)
at net.liftweb.http.LiftSession$$anonfun$18$$anonfun$apply$58$
$anonfun$apply$61$$anonfun$apply$63.apply(LiftSession.scala:830)
at net.liftweb.common.EmptyBox.openOr(Box.scala:372)
at net.liftweb.http.LiftSession$$anonfun$18$$anonfun$apply$58$
$anonfun$apply$61.apply(LiftSession.scala:830)
at net.liftweb.http.LiftSession$$anonfun$18$$anonfun$apply$58$
$anonfun$apply$61.apply(LiftSession.scala:830)
at net.liftweb.common.EmptyBox.openOr(Box.scala:372)
at net.liftweb.http.LiftSession$$anonfun$18$$anonfun$apply
$58.apply(LiftSession.scala:829)
at net.liftweb.http.LiftSession$$anonfun$18$$anonfun$apply
$58.apply(LiftSession.scala:829)
at net.liftweb.http.S$.doSnippet(S.scala:1677)
at net.liftweb.http.LiftSession$$anonfun$18.apply
(LiftSession.scala:827)
at net.liftweb.http.LiftSession$$anonfun$18.apply
(LiftSession.scala:826)
at net.liftweb.common.Full.map(Box.scala:330)
at net.liftweb.http.LiftSession.net$liftweb$http$LiftSession$
$processSnippet(LiftSession.scala:826)
at net.liftweb.http.LiftSession$$anonfun
$_defaultLiftTagProcessing$1.apply(LiftSession.scala:942)
at net.liftweb.http.LiftSession$$anonfun
$_defaultLiftTagProcessing$1.apply(LiftSession.scala:930)
at net.liftweb.util.NamedPF.apply(NamedPartialFunction.scala:
33)
at net.liftweb.util.NamedPF$.apply(NamedPartialFunction.scala:
79)
at net.liftweb.http.LiftSession$$anonfun
$processSurroundAndInclude$1$$anonfun$apply$72$$anonfun$apply$73$
$anonfun$apply$74$$anonfun$apply$75.apply(LiftSession.scala:1044)
at net.liftweb.http.LiftSession$$anonfun
$processSurroundAndInclude$1$$anonfun$apply$72$$anonfun$apply$73$
$anonfun$apply$74$$anonfun$apply$75.apply(LiftSession.scala:1044)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:67)
at net.liftweb.http.S$.setVars(S.scala:1505)
at net.liftweb.http.LiftSession$$anonfun
$processSurroundAndInclude$1$$anonfun$apply$72$$anonfun$apply$73$
$anonfun$apply$74.apply(LiftSession.scala:1043)
at n

[Lift] Re: LiftWizard lift-examples 2.0-M1 questions

2010-01-18 Thread Tim Maxwell
that worked, thanks.

On Jan 18, 8:52 am, Indrajit Raychaudhuri  wrote:
> I guess you meant lift-archetype-basic :) That is meant for you to
> quickly get started with a with a working project from scratch. It
> doesn't really serve as example.
>
> For examples, go to the examples directory at the top level. They
> haven't been removed, just relocated from lift-examples to examples :)
>
> Do a git pull to get the fresh set.
>
> Cheers, Indrajit
>
> On 18/01/10 8:17 PM, Tim Maxwell wrote:
>
>
>
>
>
> >> Go to the corresponding directory and do "mvn package".
>
> > I'm using the maven basic archetype. The examples directories have
> > been removed from that, so I don't have a corresponding directory,
> > this is my main obstacle.
-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: LiftWizard lift-examples 2.0-M1 questions

2010-01-18 Thread Tim Maxwell

> Go to the corresponding directory and do "mvn package".

I'm using the maven basic archetype. The examples directories have
been removed from that, so I don't have a corresponding directory,
this is my main obstacle.

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




[Lift] LiftWizard lift-examples 2.0-M1 questions

2010-01-18 Thread Tim Maxwell
Hi Folks,

I am messing around with the 2.0-M1 build and I can't figure out a
couple of things.

a. What is the prefered method of installing the lift-examples?

b. Does LiftWizard work yet? I am getting an Instantiation exception
when I call new Wizard. The docs say this exception only gets thrown
when Class.forName() tries to instantiate an interface or abstract
class. I assume this is not expected behavior, or do I just have my
classpath all screwy?

Thanks a bunch,
Tim

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