[Lift] Re: Tic Tac Toe, Lift Style

2009-01-30 Thread Meredith Gregory
David, i don't know if this is any help, but here's the git version i'm using. Best wishes, --greg bash-3.2$ which git /opt/local/bin/git bash-3.2$ git -v Unknown option: -v usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [-p|--paginate|--no-pager] [--bare] [--git-dir=GIT_DIR] [--work-tree

[Lift] Re: Tic Tac Toe, Lift Style

2009-01-30 Thread Meredith Gregory
David, i'm probably just misusing git, but this is what happens for me bash-3.2$ git clone http://github.com/dpp/lift-samples/tree/c5d22b8bca126ea518107f231a27353b63841ef8/tictac Initialized empty Git repository in /Users/lgm/work/src/projex/biosimilarity/tictac/.git/ fatal: http://github.com/dpp

[Lift] Re: [SOLVED] Req lazy val xml not working

2009-01-30 Thread Meredith Gregory
David, i figured, but i know some people with really strong opinions about XML. ;-) Best wishes, --greg On Fri, Jan 30, 2009 at 8:04 PM, David Pollak wrote: > > > On Fri, Jan 30, 2009 at 7:02 PM, Meredith Gregory < > lgreg.mered...@gmail.com> wrote: > >> Tim, >> >> In this last email i'm tryi

[Lift] Re: building lift from source --- warnings/errors expected?

2009-01-30 Thread David Pollak
On Fri, Jan 30, 2009 at 7:36 PM, mighdoll wrote: > > Hey folks, I'm trying to build the lift sources. It mostly works, but > I see more errors and warnings than I expected. I'm wondering if my > configuration is set up correctly. Or do you see errors/warnings > too? Thx. > > mvn jetty:run in

[Lift] Re: building lift from source --- warnings/errors expected?

2009-01-30 Thread David Pollak
Lee, The hellodarwin example has no maintainer. I'll look into the problem can check in some fixed code. I'll also look into some of the warnings. Thanks, David On Fri, Jan 30, 2009 at 7:36 PM, mighdoll wrote: > > Hey folks, I'm trying to build the lift sources. It mostly works, but > I se

[Lift] Re: [SOLVED] Req lazy val xml not working

2009-01-30 Thread David Pollak
On Fri, Jan 30, 2009 at 7:02 PM, Meredith Gregory wrote: > Tim, > > In this last email i'm trying to parse this sentence > > XML request processing should not work perfectly >> > > Is this > >- a philosophical stance >- a warning, or >- a typo? > > typo... XML request processing should

[Lift] building lift from source --- warnings/errors expected?

2009-01-30 Thread mighdoll
Hey folks, I'm trying to build the lift sources. It mostly works, but I see more errors and warnings than I expected. I'm wondering if my configuration is set up correctly. Or do you see errors/warnings too? Thx. mvn jetty:run in liftweb/sites/example seems to work. I've tried mvn clean, and

[Lift] Re: [SOLVED] Req lazy val xml not working

2009-01-30 Thread Meredith Gregory
Tim, In this last email i'm trying to parse this sentence XML request processing should not work perfectly > Is this - a philosophical stance - a warning, or - a typo? Best wishes, --greg On Fri, Jan 30, 2009 at 3:14 PM, Tim Perrett wrote: > > Ok, found the problem. Req.scala need

[Lift] Re: Tic Tac Toe, Lift Style

2009-01-30 Thread Meredith Gregory
David, Thanks for this! i'm looking forward to diving in. Best wishes, --greg On Fri, Jan 30, 2009 at 5:18 PM, David Pollak wrote: > Folks, > > I've committed up a Tic Tac Toe example: > > http://github.com/dpp/lift-samples/tree/c5d22b8bca126ea518107f231a27353b63841ef8/tictac > > It's an exam

[Lift] Tic Tac Toe, Lift Style

2009-01-30 Thread David Pollak
Folks, I've committed up a Tic Tac Toe example: http://github.com/dpp/lift-samples/tree/c5d22b8bca126ea518107f231a27353b63841ef8/tictac It's an example of using the StatefulComet stuff. Things I like: ToeDisplay is very concise The example works Things I don't like: Way too much display stuff i

[Lift] [Fwd: Welcome to scala-xml!]

2009-01-30 Thread Alex Cruise
Originally sent from my other account that's not a subscriber to liftweb... *sigh* -0xe1a --~--~-~--~~~---~--~~ 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 T

[Lift] [SOLVED] Req lazy val xml not working

2009-01-30 Thread Tim Perrett
Ok, found the problem. Req.scala needed a patch, which I have applied and committed into master. XML request processing should not work perfectly Cheers, Tim On Jan 30, 10:48 pm, Tim Perrett wrote: > Attached is an example application that shows the problem > > Cheers, Tim > >  problem_example

[Lift] Menus with Submenus - can I have a top level menu as container only?

2009-01-30 Thread Dano
I have an application with a menu which has too many items. I would like to move some of the menu items into submenus. For example, let's say I have menu items called "Client Admin" and "Custom Content" at the top level and I want to put them under a new top level menu item called "Site Admin".

[Lift] Re: Req lazy val xml not working

2009-01-30 Thread Tim Perrett
David, Try this: object RestApi extends XMLApiHelper { def dispatch: LiftRules.DispatchPF = { case r @ Req("api" :: "user" :: user :: Nil, "", _) => () => modify_user(user, r) } // user methods def modify_user(username: String, req: Req): LiftResponse = { println("Is XML: " + req

[Lift] Packaging lift application for distribution

2009-01-30 Thread Thomas Santana
I'm starting to look at lift as an alternative to a Scala+Swing application I have. I'll most likely embed Jetty anyway but after playing a little with Maven a question came to my mind: How to I package a Lift application to be run standalone on a desktop. My application comes with all the jars i

[Lift] Re: submit and redirect

2009-01-30 Thread Meredith Gregory
Lifted, Apps from gmail to Swik have demonstrated tagging as a pretty good alternative metaphor to the standard notion of container. The real beauty of this is that it can push all the way back to the data model. With that intro i was wondering if anyone has already built a tagging-style app in li

[Lift] Re: submit and redirect

2009-01-30 Thread Derek Chen-Becker
Right, really the same mechanism in different guises. Still, the code that Sergey sent should work as far as I can tell... Derek On Fri, Jan 30, 2009 at 11:01 AM, Marius wrote: > > Yeah it does... in essence not very different from initial proposal > since internally redirectTo from stateful sn

[Lift] Re: Req lazy val xml not working

2009-01-30 Thread David Pollak
On Fri, Jan 30, 2009 at 12:28 PM, Tim Perrett wrote: > > > > > Try: > > > > sdfsdfsdf > > > > > > I'd already tried before, that and still no luck. I've also tried just > getting it to print something out that was passed. Even param1=badger type > post requests, but no luck. > > Thoughts? P

[Lift] Re: Req lazy val xml not working

2009-01-30 Thread Tim Perrett
> > Try: > > sdfsdfsdf > > I'd already tried before, that and still no luck. I've also tried just getting it to print something out that was passed. Even param1=badger type post requests, but no luck. Thoughts? Cheers, Tim --~--~-~--~~~---~--~~ You recei

[Lift] Re: Req lazy val xml not working

2009-01-30 Thread David Pollak
On Fri, Jan 30, 2009 at 12:22 PM, Tim Perrett wrote: > > The xml is: > > > > sdfsdfsdf > > > I've tried all sorts, but still no cigar any ideas? Try: sdfsdfsdf > > > Cheers, Tim > > > On Jan 30, 8:17 pm, David Pollak > wrote: > > On Fri, Jan 30, 2009 at 12:12 PM, Tim Perrett > w

[Lift] Re: Req lazy val xml not working

2009-01-30 Thread Tim Perrett
The xml is: sdfsdfsdf I've tried all sorts, but still no cigar any ideas? Cheers, Tim On Jan 30, 8:17 pm, David Pollak wrote: > On Fri, Jan 30, 2009 at 12:12 PM, Tim Perrett wrote: > > > Guys, > > > Just writing a little rest service, and I want to process the incoming > > XML... T

[Lift] Re: Req lazy val xml not working

2009-01-30 Thread David Pollak
On Fri, Jan 30, 2009 at 12:12 PM, Tim Perrett wrote: > > Guys, > > Just writing a little rest service, and I want to process the incoming > XML... The Req class has the following methods: > > xml_? : Boolean > xml: Box[Elem] > > Now then, xml_? is returning true, and the content-length header is

[Lift] Req lazy val xml not working

2009-01-30 Thread Tim Perrett
Guys, Just writing a little rest service, and I want to process the incoming XML... The Req class has the following methods: xml_? : Boolean xml: Box[Elem] Now then, xml_? is returning true, and the content-length header is the correct length, but req.xml always, always returns Empty. FYI, eve

[Lift] Re: Jorge's birthday ...

2009-01-30 Thread Meredith Gregory
Jorge, chestit rozden den Best wishes, --greg On Fri, Jan 30, 2009 at 8:32 AM, Tim Perrett wrote: > > lol! This is like the most global happy birthday greeting ever! ;-) > > On Jan 30, 4:04 pm, Derek Chen-Becker wrote: > > ¡Feliz cumpleaños, señor! > > > > -- L.G. Meredith Managing Partne

[Lift] Re: Added HTTP Auth example to sites directory

2009-01-30 Thread Marius
Nice stuff Tim. Thanks for adding this. On Jan 30, 2:06 pm, Tim Perrett wrote: > Guys, > > Its been ages, and im sorry its taken so long, but please now find an > example of how to use the HTTP Auth stuff in the sites directory. > > Respect to Marius who's been chipping away on this keeping it u

[Lift] Re: submit and redirect

2009-01-30 Thread Marius
Yeah it does... in essence not very different from initial proposal since internally redirectTo from stateful snippet does the same thing: binds a function to be executed upon redirect. On Jan 30, 5:47 pm, Derek Chen-Becker wrote: > Unless I'm missing something the stateful snippet should be wor

[Lift] Re: Jorge's birthday ...

2009-01-30 Thread Tim Perrett
lol! This is like the most global happy birthday greeting ever! ;-) On Jan 30, 4:04 pm, Derek Chen-Becker wrote: > ¡Feliz cumpleaños, señor! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to

[Lift] Re: Jorge's birthday ...

2009-01-30 Thread Derek Chen-Becker
¡Feliz cumpleaños, señor! On Fri, Jan 30, 2009 at 12:48 AM, Marius wrote: > > If Skype is right it must be Jorge's birthday ! > > HAPPY BIRTHDAY MAN ! > > Br's, > Marius > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[Lift] Re: submit and redirect

2009-01-30 Thread Derek Chen-Becker
Unless I'm missing something the stateful snippet should be working. The this.redirectTo call should be invoking the StatefulSnippet's redirectTo, which should associate the same snippet instance with the new page. That should allow access to the same var. I just coded up a test app (attached) and

[Lift] Re: submit and redirect

2009-01-30 Thread Marius
On Jan 30, 2:14 pm, Sergey Andreev wrote: > Marius, thanks for the code sample. I read your mails about that usage of > the redirectTo method on the list before but was confused how to use it. I > wish there was a way to hide function's hash code from the URL without > losing state. Lift knows

[Lift] Re: Jorge's birthday ...

2009-01-30 Thread David Pollak
Happy Birthday! On Thu, Jan 29, 2009 at 11:48 PM, Marius wrote: > > If Skype is right it must be Jorge's birthday ! > > HAPPY BIRTHDAY MAN ! > > Br's, > Marius > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Foll

[Lift] Re: submit and redirect

2009-01-30 Thread Sergey Andreev
Derek, The templates are quite simple: fist one: second one: //other attributes are ommitted Sergey On Fri, Jan 30, 2009 at 10:01 AM, Derek Chen-Becker wrote: > That looks like it should be working, but could you post the template(s) > that go along with this? > > Derek > > > On Thu,

[Lift] Re: submit and redirect

2009-01-30 Thread Sergey Andreev
Marius, thanks for the code sample. I read your mails about that usage of the redirectTo method on the list before but was confused how to use it. I wish there was a way to hide function's hash code from the URL without losing state. Cheers, Sergey On Fri, Jan 30, 2009 at 10:40 AM, Marius wrote:

[Lift] bug in mixinAttributes

2009-01-30 Thread Sergey Andreev
Hi, I have encountered a bug in the mixinAttributes method If you put the following xml in the template: and bind it like that: bind("data", xhtml, "textBoxes" -> mixinAttributes(text("",)) _) then the attributes won't be merged. Whereas, if you change the template: attributes ar

[Lift] Re: Jorge's birthday ...

2009-01-30 Thread TylerWeir
Happy Birthday Sir! On Jan 30, 4:44 am, Tim Perrett wrote: > Happy birthday Jorge!! > > On Jan 30, 8:34 am, Viktor Klang wrote: > > > Grattis på födelsedagen! > > > On Fri, Jan 30, 2009 at 9:30 AM, David Bernard > > wrote: > > > > Bon Anniversaire > > > > On Fri, Jan 30, 2009 at 08:48, Marius

[Lift] Added HTTP Auth example to sites directory

2009-01-30 Thread Tim Perrett
Guys, Its been ages, and im sorry its taken so long, but please now find an example of how to use the HTTP Auth stuff in the sites directory. Respect to Marius who's been chipping away on this keeping it up-to- date with the RulesSeq stuff etc as the lift API has moved forward. For an example of

[Lift] Re: Jorge's birthday ...

2009-01-30 Thread Tim Perrett
Happy birthday Jorge!! On Jan 30, 8:34 am, Viktor Klang wrote: > Grattis på födelsedagen! > > On Fri, Jan 30, 2009 at 9:30 AM, David Bernard > wrote: > > > > > Bon Anniversaire > > > On Fri, Jan 30, 2009 at 08:48, Marius wrote: > > >> If Skype is right it must be Jorge's birthday ! > > >> HAPPY

[Lift] Re: Jorge's birthday ...

2009-01-30 Thread Viktor Klang
Grattis på födelsedagen! On Fri, Jan 30, 2009 at 9:30 AM, David Bernard wrote: > Bon Anniversaire > > > On Fri, Jan 30, 2009 at 08:48, Marius wrote: > >> >> If Skype is right it must be Jorge's birthday ! >> >> HAPPY BIRTHDAY MAN ! >> >> Br's, >> Marius >> >> > > > > -- Viktor Klang Senior Sy

[Lift] Re: Jorge's birthday ...

2009-01-30 Thread David Bernard
Bon Anniversaire On Fri, Jan 30, 2009 at 08:48, Marius wrote: > > If Skype is right it must be Jorge's birthday ! > > HAPPY BIRTHDAY MAN ! > > Br's, > Marius > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "L