[Lift] indicator.gif has not been included in lift-webkit

2009-04-15 Thread Atsuhiko Yamanaka

Hi,

The lift-webkit has included jquery-autocomplete, but indicator.gif
has not been.

That gif file will be refered as
  http://foo.com/classpath/jquery-autocomplete/indicator.gf
from the javascirpt
  http://foo.com/classpath/jquery-autocomplete/jquery.autocomplete.js

I have pushd and enabled it on my branch as follows,
http://github.com/ymnk/liftweb/commit/da75cabb82380126c5565526a603819825986d96
http://github.com/ymnk/liftweb/commit/46c406565f320ee989182ebcf07de8d2b4e89d7f

PS. GAE/J's Dashboard is really helpful to find such a glitch instantly :-)


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
+1-415-578-3454
Fax +81-22-224-8773
Skype callto://jcraft/

--~--~-~--~~~---~--~~
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: Liftweb without Maven?

2009-04-15 Thread tk050305cnx


On Apr 14, 7:53 pm, TylerWeir tyler.w...@gmail.com wrote:

 You'll have a better experience if you take the time to learn how
 maven works.

Perhaps. But, it's a bit like this:

Can I have a beer, please.
We don't have beer right now, but I think you would have a better
experience with our own brand whiskey.

Never mind. I can't get it to work right now. I know how to write
servlets and filters directly, so that may be the easier approach for
me. I'll certainly check in again later.

Thanks  keep up the good work,
CNX

--~--~-~--~~~---~--~~
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: Liftweb without Maven?

2009-04-15 Thread Timothy Perrett


Perhaps David B can help on the feasibility of this with our current hudson
install / services.

Cheers, Tim

On 15/04/2009 06:40, marius d. marius.dan...@gmail.com wrote:

 
 sounds good to me
 
 On Apr 14, 10:58 pm, Timothy Perrett timo...@getintheloop.eu wrote:
 Perhaps we could couple this with Hudson? Hudson has an API (see
 here:http://wiki.hudson-ci.org/display/HUDSON/Remote+access+API) so
 perhaps we could serve stuff up on the fly through that? Just
 spitballing here



--~--~-~--~~~---~--~~
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: Eclipse tooling for Lift?

2009-04-15 Thread maku

First of all, thank you for your efforts to provide an eclipse plugin
for Scala.

From my point of view, I would really like to have more tool support
for developing my scala apps in general. (not only in context of Lift)
As a beginner in Scala and also in Lift,  tooling is the weakest
point.

In my opinion it is painful to get information via inspecting the used
libraries (Scala / Lift)  (generally in Scala but especially using
Lift because of the powerful abstractions)
Inspection libraries is a main source for usage.

From my point of view I would not really benefit from special Lift
functionality.
But I would really benefit from a stronger general support like in
Java.


e.g. a simple example of the current situation when I want to inspect
the content of the Lift's MetaMegaProtoUser (Lift Mapper framework)
used in a common User:

object User extends User with MetaMegaProtoUser[User] ...
class User extends MegaProtoUser[User] {
...

When I want to inspect MetaMegaProtoUser (F3 in eclipse) - the class
User is shown
When I want to inspect MegaProtoUser - java.lang.Object is shown

When I open MetaMegaProtoUser (by type search) there is an outline
view presented. But it is not navigable and the structure of the open
file is not reflected (several traits in one source file).
It is not possible to search methods in a comfortable way (e.g. with
Eclipse quick search - CTRL_O)

- and so on

Important would be correct outlinining of methods, searching of
classes, jumping from method to method and so on...
The current version (I  update regularly and use the daily build)
provides some func. but works not as expected.

I strongly believe that the support of the basic IDE funct. using
Scala would be the greatest benefit for users. Especially for those
(like me) which come new in the Scala / Lift space.

Regards,
Martin


On Apr 14, 1:46 pm, Miles Sabin mi...@milessabin.com wrote:
 I'm about to start putting together a Lift-based website for my Scala
 consulting business, and it struck me that it might be helpful if
 there were support for Lift applications, either as part of the main
 Scala IDE or as an extension.

 Would there be any interest? What would people like to see?

 Cheers,

 Miles

 --
 Miles Sabin
 tel:+44 (0)7813 944 528
 skype:  milessabinhttp://twitter.com/milessabin

--~--~-~--~~~---~--~~
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: Rewrite to URL

2009-04-15 Thread Timothy Perrett


Take a look at:

// Your boot.scala
LiftRules.dispatch.append {
  case Req(.)
}

Do a dispatch call and yeild a Box[RedirectResponse] (subtype of
LiftResponse) and this will do what you need.

Cheers, Tim


On 15/04/2009 12:53, wapgui torsten.schm...@wapgui.com wrote:

 
 Hi,
 
 I want to rewrite to an URL. The request is like
 http://localhost:8080/d/120a96bdbf7
 and 120a96bdbf7 is a database key for
 http://localhost:8080/apps/save/newsreader1239792999415.wgt.
 So I added this to my Boot.scala
 
 LiftRules.rewrite.prepend {
   case RewriteRequest(ParsePath(d :: widget :: Nil, , _,_), _, _)
 = {
  val rUrl = SmUrl.getSmUrl(widget).roboSplit(/) //get URL from
 DB and split to List, this looks fine
  RewriteResponse(rUrl)
   }
 }
 
 In between I found out that RewriteResponse  is only working for Map
 entries. Now I used S.redirectTo instead of RewriteResponse and
 net.liftweb.http.ResponseShortcutException: Shortcut is thrown. Last
 try was to use LiftRules.DispatchPf like in us.esme.model.UrlStore but
 DispatchPf is not (longer?) a member of LiftRules.
 What else can I do?
 
 Cheers
 Torsten
 
  
 



--~--~-~--~~~---~--~~
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: Liftweb without Maven?

2009-04-15 Thread Josh Suereth
Does the ant build file already exist?  If not, it wouldn't be too hard to
create a maven assembly that assembles all the various dependencies and
such into a directory (or uses something like the maven-ant-tasks to
materialize them for the project later), and includes an ant build
script/starter project code.   I can add this to my list of things todo,
however if someone else is interested and has time, I'm more than willing to
help answer questions / point you in the correct maven direction.

I guess it would be ideal to make use of the current archetypes, but I don't
even see this as necessary.  An assembly for a zip/tgz file could be
generated which includes a project-starter kit for ANT and could be deployed
into the maven repository with all the other artifacts for a build.   This
could be downloaded from the maven repository then (and versioned, etc.).
We actually use this at work for our ubiquituous install (we also have
RPMs, etc. for installing our software).

My question here, is why should the project be generated on the fly?  Is
that so you can have your desired package structure on startup?


-Josh

--~--~-~--~~~---~--~~
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] Constructor for Req in custom dispatch functions

2009-04-15 Thread Heiko Seeberger
Hi,
In the current version of Exploring Lift Listing 3.20 shows an example of a
custom dispatch function:

LiftRules.dispatch.append {
  case Req(chart :: balances :: endDate :: Nil, _, _) = ...

How does this work? I cannot find a constructor for Req taking these
parameters (a List as first one).

Thanx
-- 
Heiko Seeberger
www.heikoseeberger.name
OSGi on Scala

--~--~-~--~~~---~--~~
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: Constructor for Req in custom dispatch functions

2009-04-15 Thread Derek Chen-Becker
This is actually handled by the unapply method on the Req object (not the
Req class). If you look at the type signature, the unapply method returns

Option 
http://www.scala-lang.org/docu/files/api/scala/Option.html[(Listhttp://www.scala-lang.org/docu/files/api/scala/List.html
[String http://java.sun.com/javase/6/docs/api/java/lang/String.html],
String http://java.sun.com/javase/6/docs/api/java/lang/String.html,
RequestTypehttp://scala-tools.org/scaladocs/liftweb/1.0/net/liftweb/http/RequestType.html
)]

Which is what you're actually matching against. I'll clarify that in the
text.

Derek

On Wed, Apr 15, 2009 at 6:17 AM, Heiko Seeberger 
heiko.seeber...@googlemail.com wrote:

 Hi,
 In the current version of Exploring Lift Listing 3.20 shows an example of a
 custom dispatch function:

 LiftRules.dispatch.append {
   case Req(chart :: balances :: endDate :: Nil, _, _) = ...

 How does this work? I cannot find a constructor for Req taking these
 parameters (a List as first one).

 Thanx
 --
 Heiko Seeberger
 www.heikoseeberger.name
 OSGi on Scala

 


--~--~-~--~~~---~--~~
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: Constructor for Req in custom dispatch functions

2009-04-15 Thread Heiko Seeberger
Ah, thanx!I forgot about Extractors ;-)

2009/4/15 Derek Chen-Becker dchenbec...@gmail.com

 This is actually handled by the unapply method on the Req object (not the
 Req class). If you look at the type signature, the unapply method returns

 Option 
 http://www.scala-lang.org/docu/files/api/scala/Option.html[(Listhttp://www.scala-lang.org/docu/files/api/scala/List.html
 [String http://java.sun.com/javase/6/docs/api/java/lang/String.html],
 String http://java.sun.com/javase/6/docs/api/java/lang/String.html,
 RequestTypehttp://scala-tools.org/scaladocs/liftweb/1.0/net/liftweb/http/RequestType.html
 )]

 Which is what you're actually matching against. I'll clarify that in the
 text.

 Derek


 On Wed, Apr 15, 2009 at 6:17 AM, Heiko Seeberger 
 heiko.seeber...@googlemail.com wrote:

 Hi,
 In the current version of Exploring Lift Listing 3.20 shows an example of
 a custom dispatch function:

 LiftRules.dispatch.append {
   case Req(chart :: balances :: endDate :: Nil, _, _) = ...

 How does this work? I cannot find a constructor for Req taking these
 parameters (a List as first one).

 Thanx
 --
 Heiko Seeberger
 www.heikoseeberger.name
 OSGi on Scala




 



-- 
Heiko Seeberger
www.heikoseeberger.name
OSGi on Scala

--~--~-~--~~~---~--~~
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: Rewrite to URL

2009-04-15 Thread wapgui

Thanks. If anybody needs it to:

LiftRules.dispatch.append {
  case r @ Req(d :: widget :: Nil, _, GetRequest) = () =
SmUrl.servUrl(widget, r)
}

and

def servUrl(url: String, r: Req): Box[LiftResponse] = {
  Full(RedirectResponse(SmUrl.getSmUrl(url)))
}


On Apr 15, 2:01 pm, Timothy Perrett timo...@getintheloop.eu wrote:
 Take a look at:

 // Your boot.scala
 LiftRules.dispatch.append {
   case Req(.)

 }

 Do a dispatch call and yeild a Box[RedirectResponse] (subtype of
 LiftResponse) and this will do what you need.

 Cheers, Tim

 On 15/04/2009 12:53, wapgui torsten.schm...@wapgui.com wrote:



  Hi,

  I want to rewrite to an URL. The request is like
 http://localhost:8080/d/120a96bdbf7
  and 120a96bdbf7 is a database key for
 http://localhost:8080/apps/save/newsreader1239792999415.wgt.
  So I added this to my Boot.scala

  LiftRules.rewrite.prepend {
    case RewriteRequest(ParsePath(d :: widget :: Nil, , _,_), _, _)
  = {
       val rUrl = SmUrl.getSmUrl(widget).roboSplit(/) //get URL from
  DB and split to List, this looks fine
       RewriteResponse(rUrl)
    }
  }

  In between I found out that RewriteResponse  is only working for Map
  entries. Now I used S.redirectTo instead of RewriteResponse and
  net.liftweb.http.ResponseShortcutException: Shortcut is thrown. Last
  try was to use LiftRules.DispatchPf like in us.esme.model.UrlStore but
  DispatchPf is not (longer?) a member of LiftRules.
  What else can I do?

  Cheers
  Torsten

--~--~-~--~~~---~--~~
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: Liftweb without Maven?

2009-04-15 Thread David Pollak
On Tue, Apr 14, 2009 at 8:52 PM, tk050305cnx tk050305...@gmail.com wrote:



 On Apr 14, 7:53 pm, TylerWeir tyler.w...@gmail.com wrote:
 
  You'll have a better experience if you take the time to learn how
  maven works.

 Perhaps. But, it's a bit like this:

 Can I have a beer, please.
 We don't have beer right now, but I think you would have a better
 experience with our own brand whiskey.


You know... it's more like:

I want all of you hundreds of people who have successfully used Lift with
Maven to stop what you're doing and pay attention to me and throw out your
work and do things my way.

While we are a community that welcomes newbies and tries to work with as
many different people and with as many different styles as possible, there
are things that we've collectively learned.  We've found that Maven is
preferable for our style of development.  If you want to use Ant, there's
nothing stopping you and we'd welcome some Ant scripts for building Lift,
but we're not going to stop what we're doing and write one for you just
because you demand that we do so.  Please go back and write the Ant scripts
yourself and contribute to the community rather than being rude to us
because we don't do things the way you want.  That will demonstrate that you
are willing to contribute in rather than demand and insult when your demands
are not met.




 Never mind. I can't get it to work right now. I know how to write
 servlets and filters directly, so that may be the easier approach for
 me. I'll certainly check in again later.

 Thanks  keep up the good work,
 CNX

 



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

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



[Lift] create todo item during boot

2009-04-15 Thread Tobias Daub

Hi There,

I wanna have some kind of standard todo item, that should always be 
there (in the database). I Don't want to create that todo item manually 
by hand, instead I want to create it during boot. Means I wanna check 
everytime when Lift is started, if it already exists and if not, it'll 
be created.

I know that this doesn't make any sense for todo items, but I need it 
for something else.

In which source file should I do that?

thanks
Tobias

--~--~-~--~~~---~--~~
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: create todo item during boot

2009-04-15 Thread marius d.

You can probably do that in you Lift Boot class after you DB
connections are setup etc.


Br's,
Marius

On Apr 15, 6:55 pm, Tobias Daub hannes.flo...@gmx.li wrote:
 Hi There,

 I wanna have some kind of standard todo item, that should always be
 there (in the database). I Don't want to create that todo item manually
 by hand, instead I want to create it during boot. Means I wanna check
 everytime when Lift is started, if it already exists and if not, it'll
 be created.

 I know that this doesn't make any sense for todo items, but I need it
 for something else.

 In which source file should I do that?

 thanks
 Tobias
--~--~-~--~~~---~--~~
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: create todo item during boot

2009-04-15 Thread David Pollak
Dude... it's the magic of dbAddTable in the MetaMapper object:

in object ToDo... add:

override def dbAddTable = Full(populate _)

private def populate {
ToDo.create.().save
}

When Schemifier adds a table, it will invoke the function specified by
dbAddTable and that's a perfect place to add the default ToDo item.

On Wed, Apr 15, 2009 at 9:09 AM, marius d. marius.dan...@gmail.com wrote:


 You can probably do that in you Lift Boot class after you DB
 connections are setup etc.


 Br's,
 Marius

 On Apr 15, 6:55 pm, Tobias Daub hannes.flo...@gmx.li wrote:
  Hi There,
 
  I wanna have some kind of standard todo item, that should always be
  there (in the database). I Don't want to create that todo item manually
  by hand, instead I want to create it during boot. Means I wanna check
  everytime when Lift is started, if it already exists and if not, it'll
  be created.
 
  I know that this doesn't make any sense for todo items, but I need it
  for something else.
 
  In which source file should I do that?
 
  thanks
  Tobias
 



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

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



[Lift] Re: create todo item during boot

2009-04-15 Thread Tobias Daub

Yeah, I though about that too, but I couln't find an appropriate place 
in the code where to hook in.


 You can probably do that in you Lift Boot class after you DB
 connections are setup etc.


 Br's,
 Marius

 On Apr 15, 6:55 pm, Tobias Daub hannes.flo...@gmx.li wrote:
   
 Hi There,

 I wanna have some kind of standard todo item, that should always be
 there (in the database). I Don't want to create that todo item manually
 by hand, instead I want to create it during boot. Means I wanna check
 everytime when Lift is started, if it already exists and if not, it'll
 be created.

 I know that this doesn't make any sense for todo items, but I need it
 for something else.

 In which source file should I do that?

 thanks
 Tobias
 
 
   


--~--~-~--~~~---~--~~
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: create todo item during boot

2009-04-15 Thread Tobias Daub

Dave,

thanks alot man!

cheers
Tobias
 Dude... it's the magic of dbAddTable in the MetaMapper object:

 in object ToDo... add:

 override def dbAddTable = Full(populate _)
  
 private def populate {
 ToDo.create.().save
 }

 When Schemifier adds a table, it will invoke the function specified by 
 dbAddTable and that's a perfect place to add the default ToDo item.

 On Wed, Apr 15, 2009 at 9:09 AM, marius d. marius.dan...@gmail.com 
 mailto:marius.dan...@gmail.com wrote:


 You can probably do that in you Lift Boot class after you DB
 connections are setup etc.


 Br's,
 Marius

 On Apr 15, 6:55 pm, Tobias Daub hannes.flo...@gmx.li
 mailto:hannes.flo...@gmx.li wrote:
  Hi There,
 
  I wanna have some kind of standard todo item, that should
 always be
  there (in the database). I Don't want to create that todo item
 manually
  by hand, instead I want to create it during boot. Means I wanna
 check
  everytime when Lift is started, if it already exists and if not,
 it'll
  be created.
 
  I know that this doesn't make any sense for todo items, but I
 need it
  for something else.
 
  In which source file should I do that?
 
  thanks
  Tobias




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

 


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



[Lift] Re: Liftweb without Maven?

2009-04-15 Thread Alexander Kellett

which would also make
http://code.google.com/p/simple-build-tool/wiki/WebApplicationExample
much much more interesting to me...

Alex

On Tue, Apr 14, 2009 at 8:58 PM, marius d. marius.dan...@gmail.com wrote:



 On Apr 14, 2:40 pm, Viktor Klang viktor.kl...@gmail.com wrote:
 On Tue, Apr 14, 2009 at 1:38 PM, marius d. marius.dan...@gmail.com wrote:

  Even if I find maven quite helpful for Lift there are people that just
  want to stay away from maven. I can understand that. Perhaps it would
  be helpful to also have some ant script to build a lift project? ...
  or perhaps have a downloadable zip archive from lift's site that
  contains incipient projects like the results produced by Lift's
  archetypes? ... so that people can just download that project zip file
  with the ant build in it and then start building the app on top of
  that? ... would that work ?

 Nice angle!
 Or perhaps have an online service where you can specify the archetype
 details and have a compressed payload downloaded?

 Yup crossed my mind ... and I love it. Basically run the archetype on
 demand and serve back the zip content.






  Br's,
  Marius

  On Apr 14, 2:23 pm, João Pereira joaomiguel.pere...@gmail.com wrote:
   Hello,

   I find that maven will ease your work a lot. Usually it take only one
   step to get a lift app running.

   mvn jetty:run

   if you want to create an eclipse project for the downloaded app, you
   just do mvn eclipse:eclipse and then import it to eclipse.

   Not using maven you'll have to deal with all the dependency management
   by yourself :(

   Can you specify what do you expected from maven? what were the
   problems encountered?

   On Tue, Apr 14, 2009 at 12:11 PM, tk050305cnx tk050305...@gmail.com
  wrote:

I am new to Liftweb. Unfortunately, the example app in the getting
started doc did not work. That is... Maven did not produce the
expected output. I don't want to bother with Maven at this time. Can
you point me to a source that describes how to set up a helloworld
type of application manually and deploy it on Tomcat? Is there any
Eclipse automation for that?

Cheers, CNX

   --
   João Miguel Pereira, PMPhttp://jpereira.euhttp://
 www.linkedin.com/in/joaomiguelpereira
   joaomiguel.pere...@gmail.com
   (351) 96 275 68 58

 --
 Viktor Klang
 Senior Systems Analyst
 


--~--~-~--~~~---~--~~
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: Liftweb without Maven?

2009-04-15 Thread Alexander Kellett

On Wed, Apr 15, 2009 at 5:26 PM, David Pollak
feeder.of.the.be...@gmail.com wrote:
 While we are a community that welcomes newbies and tries to work with as
 many different people and with as many different styles as possible, there
 are things that we've collectively learned.  We've found that Maven is
 preferable for our style of development.  If you want to use Ant, there's
 nothing stopping you and we'd welcome some Ant scripts for building Lift,
 but we're not going to stop what we're doing and write one for you just
 because you demand that we do so.  Please go back and write the Ant scripts
 yourself and contribute to the community rather than being rude to us
 because we don't do things the way you want.  That will demonstrate that you
 are willing to contribute in rather than demand and insult when your demands
 are not met.

many people are scared by maven. myself included after my previous
fun with getting lift working.

is there a way to get a self contained hello world zip up on github
if it is not already there? afaiu maven also allows for local caches,
could that that be placed in the zip, or is it simply too big?

i think that might scare people much less than pasting the very opaque
four liner which asks questions i do not know the answer to :)

Alex

--~--~-~--~~~---~--~~
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: Liftweb without Maven?

2009-04-15 Thread Timothy Perrett


Alex,

We could do something like this, but it would still need to use maven to
start the server (mvn jetty:run). Unfortunately, you'll need to have a local
maven repo, that's a) part of how maven works and b) the legal implications
of us redistributing a bunch of other peoples code to make it self contained
probably had various ramifications.

We could supply a hello world on github, but this is just what the archetype
creates for you. Perhaps this is a case of education in our community about
how maven works? If there were supporting documentation would it be so
scary? (it might help you answer mvn's questions too!)

Cheers, Tim

On 15/04/2009 17:37, Alexander Kellett lypa...@gmail.com wrote:

 many people are scared by maven. myself included after my previous
 fun with getting lift working.
 
 is there a way to get a self contained hello world zip up on github
 if it is not already there? afaiu maven also allows for local caches,
 could that that be placed in the zip, or is it simply too big?
 
 i think that might scare people much less than pasting the very opaque
 four liner which asks questions i do not know the answer to :)



--~--~-~--~~~---~--~~
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: Liftweb without Maven?

2009-04-15 Thread Alexander Kellett

looks like it works
   Welcome to hello-lift at Wed Apr 15 20:17:44 CEST 2009

:)

Alex

On Wed, Apr 15, 2009 at 8:17 PM, Alexander Kellett lypa...@gmail.com wrote:
 from what i can see the latest sbt supports jetty-run command :)
 testing it out now!
 next step, write a command for it to perform the equiv of mvn idea:idea.

 Alex

 On Wed, Apr 15, 2009 at 7:22 PM, Timothy Perrett
 timo...@getintheloop.eu wrote:


 Alex,

 We could do something like this, but it would still need to use maven to
 start the server (mvn jetty:run). Unfortunately, you'll need to have a local
 maven repo, that's a) part of how maven works and b) the legal implications
 of us redistributing a bunch of other peoples code to make it self contained
 probably had various ramifications.

 We could supply a hello world on github, but this is just what the archetype
 creates for you. Perhaps this is a case of education in our community about
 how maven works? If there were supporting documentation would it be so
 scary? (it might help you answer mvn's questions too!)

 Cheers, Tim

 On 15/04/2009 17:37, Alexander Kellett lypa...@gmail.com wrote:

 many people are scared by maven. myself included after my previous
 fun with getting lift working.

 is there a way to get a self contained hello world zip up on github
 if it is not already there? afaiu maven also allows for local caches,
 could that that be placed in the zip, or is it simply too big?

 i think that might scare people much less than pasting the very opaque
 four liner which asks questions i do not know the answer to :)



 



--~--~-~--~~~---~--~~
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: Liftweb without Maven?

2009-04-15 Thread Alexander Kellett

from what i can see the latest sbt supports jetty-run command :)
testing it out now!
next step, write a command for it to perform the equiv of mvn idea:idea.

Alex

On Wed, Apr 15, 2009 at 7:22 PM, Timothy Perrett
timo...@getintheloop.eu wrote:


 Alex,

 We could do something like this, but it would still need to use maven to
 start the server (mvn jetty:run). Unfortunately, you'll need to have a local
 maven repo, that's a) part of how maven works and b) the legal implications
 of us redistributing a bunch of other peoples code to make it self contained
 probably had various ramifications.

 We could supply a hello world on github, but this is just what the archetype
 creates for you. Perhaps this is a case of education in our community about
 how maven works? If there were supporting documentation would it be so
 scary? (it might help you answer mvn's questions too!)

 Cheers, Tim

 On 15/04/2009 17:37, Alexander Kellett lypa...@gmail.com wrote:

 many people are scared by maven. myself included after my previous
 fun with getting lift working.

 is there a way to get a self contained hello world zip up on github
 if it is not already there? afaiu maven also allows for local caches,
 could that that be placed in the zip, or is it simply too big?

 i think that might scare people much less than pasting the very opaque
 four liner which asks questions i do not know the answer to :)



 


--~--~-~--~~~---~--~~
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 Jx classes to output HTML

2009-04-15 Thread glenn

I'm a novice at this, and I've seen discussions of using Jx classes to
output HTML on the client, but how exactly is this done?  Are there
any complete examples of sending JavaScript functions produced by the
Jx classes to the client and running them?

Suppose, for example, I have a json object:

var list = {
tabs: [
  {class: posts selected},
  {class: comments},
  {class: category},
  {class: famous},
  {class: random}
]
  }

and a function defined so:

def renderTabs = Jx(li class='{JsVar(it, class)}'/li)

I then want to create tabs on the client with

Jx(ul class=tabMenu{JxMap(JsVar(it.tabs), renderTabs)}/ul)

How, exactly is this to be done? Obviously, this won't work - the
JavaScript function isn't generated:

def head(xhtml:NodeSeq): NodeSeq = {

val  renderTabs = Jx(li class='{JsVar(it, class)}'/li)

head
  script type=text/javascript
 Jx(ul class=tabMenu{JxMap(JsVar(it.tabs),
renderTabs)}/ul)

  /script
/head
  }

I see the value in the Jx classes, if only I knew how to use them.
Any help would be appreciated

Glenn Silverman

--~--~-~--~~~---~--~~
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] Updates to Menu-related stuff

2009-04-15 Thread David Pollak
Folks,

I just checked in new code for menu-related snippet stuff (note that this
will only be available for local builds... our Hudson server is still not
up):

   - For lift:Menu.builder/ there are a couple of new attributes:
   outer_tag=div (defaults to ul) and inner_tag=span (defaults to li).
   This allows you to have a different tag structure for the menu.
   - lift:Menu.json var=myMenu/ will emit a script tag assigning the
   menu information to the variable specified in the var attribute (defaults to
   lift_menu)

Enjoy.

Thanks,

David

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

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



[Lift] Re: Using Jx classes to output HTML

2009-04-15 Thread glenn

Marius,

I appreciate the reply. Not sure if it helps, though. What's with
(JsVar(items) and why did you use that?

The Liftbook is very cryptic on the use of Jx classes. It just says,

 If we send this generated JavaScript function to client and calling
it by pass the list variable
above It will create the following document fragment:...

Nothing in the book about how to actually do this.

I tried the json example in the book (sec 8.4) and all I got emitted
on the client was:
  button onclick=lift_ajaxHandler('F560600551708Y4K=true', null,
null); return false;Press me/button

That doesn't do any good. Generated variable names in emitted
javascript aren't much good for referencing in scala classes.

The book is wrong by the way. This won't compile.

bind(ex, xhtml,
button - SHtml.ajaxButton(Text(Press me), ajaxFunc)

You need to do something like this:

bind(ex, xhtml,
button - SHtml.ajaxButton(Text(Press me), () = ajaxFunc)

Maybe that's why I'm getting 'F560600551708Y4K=true' emitted.

I'm beginning to think nobody has actually written code using the Jx
classes
that works.

Glenn Silverman


On Apr 15, 12:30 pm, marius d. marius.dan...@gmail.com wrote:
 How about

 1. Use a decalred variable

 JsCrVar(func, Jx(ul{
                                     JxMap(JsVar(it), Jx(lia
 href={JsVar(it)}/a/li))
                                    }
                                    /ul).toJs)  Call(func, JsVar
 (items))

 2.

  Jx(ul{
      JxMap(JsVar(it), Jx(lia href={JsVar(it)}/a/li))
  }/ul).toJs asInstanceOf[AnonFunc].applied(JsVar(items))

 ... that should just call the anonymous function constructed by Jx

 Note that I haven't actaully tested the code but is should work unless
 I'm missing some parentheses etc.

 Also Jx is discussed in the LiftBook

 Br's,
 Marius

 On Apr 15, 9:25 pm, glenn gl...@exmbly.com wrote:





  I'm a novice at this, and I've seen discussions of using Jx classes to
  output HTML on the client, but how exactly is this done?  Are there
  any complete examples of sending JavaScript functions produced by the
  Jx classes to the client and running them?

  Suppose, for example, I have a json object:

  var list = {
              tabs: [
                {class: posts selected},
                {class: comments},
                {class: category},
                {class: famous},
                {class: random}
              ]
            }

  and a function defined so:

  def renderTabs = Jx(li class='{JsVar(it, class)}'/li)

  I then want to create tabs on the client with

  Jx(ul class=tabMenu{JxMap(JsVar(it.tabs), renderTabs)}/ul)

  How, exactly is this to be done? Obviously, this won't work - the
  JavaScript function isn't generated:

  def head(xhtml:NodeSeq): NodeSeq = {

      val  renderTabs = Jx(li class='{JsVar(it, class)}'/li)

      head
            script type=text/javascript
                   Jx(ul class=tabMenu{JxMap(JsVar(it.tabs),
  renderTabs)}/ul)

        /script
      /head
    }

  I see the value in the Jx classes, if only I knew how to use them.
  Any help would be appreciated

  Glenn Silverman

--~--~-~--~~~---~--~~
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: Updates to Menu-related stuff

2009-04-15 Thread Timothy Perrett
Awesome - thanks David

Sent from my iPhone

On 15 Apr 2009, at 22:15, David Pollak feeder.of.the.be...@gmail.com  
wrote:

 Folks,

 I just checked in new code for menu-related snippet stuff (note that  
 this will only be available for local builds... our Hudson server is  
 still not up):
 For lift:Menu.builder/ there are a couple of new attributes:  
 outer_tag=div (defaults to ul) and inner_tag=span (defaults to  
 li).  This allows you to have a different tag structure for the menu.
 lift:Menu.json var=myMenu/ will emit a script tag assigning  
 the menu information to the variable specified in the var attribute  
 (defaults to lift_menu)
 Enjoy.

 Thanks,

 David

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

 

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



[Lift] Re: Using Jx classes to output HTML

2009-04-15 Thread glenn


Actually, the json example code in the Liftbook works, as long
as you change it to read:

bind(ex, xhtml,
button - SHtml.ajaxButton(Text(Press me), () = ajaxFunc)

But this example uses a simple function, alert, and emits it using
JsRaw.

I would like to see a similar example, but using Jx to emit a
javascript function and have it called.

Glenn Silverman


On Apr 15, 2:58 pm, glenn gl...@exmbly.com wrote:
 Marius,

 I appreciate the reply. Not sure if it helps, though. What's with
 (JsVar(items) and why did you use that?

 The Liftbook is very cryptic on the use of Jx classes. It just says,

  If we send this generated JavaScript function to client and calling
 it by pass the list variable
 above It will create the following document fragment:...

 Nothing in the book about how to actually do this.

 I tried the json example in the book (sec 8.4) and all I got emitted
 on the client was:
   button onclick=lift_ajaxHandler('F560600551708Y4K=true', null,
 null); return false;Press me/button

 That doesn't do any good. Generated variable names in emitted
 javascript aren't much good for referencing in scala classes.

 The book is wrong by the way. This won't compile.

 bind(ex, xhtml,
 button - SHtml.ajaxButton(Text(Press me), ajaxFunc)

 You need to do something like this:

 bind(ex, xhtml,
 button - SHtml.ajaxButton(Text(Press me), () = ajaxFunc)

 Maybe that's why I'm getting 'F560600551708Y4K=true' emitted.

 I'm beginning to think nobody has actually written code using the Jx
 classes
 that works.

 Glenn Silverman

 On Apr 15, 12:30 pm, marius d. marius.dan...@gmail.com wrote:

  How about

  1. Use a decalred variable

  JsCrVar(func, Jx(ul{
                                      JxMap(JsVar(it), Jx(lia
  href={JsVar(it)}/a/li))
                                     }
                                     /ul).toJs)  Call(func, JsVar
  (items))

  2.

   Jx(ul{
       JxMap(JsVar(it), Jx(lia href={JsVar(it)}/a/li))
   }/ul).toJs asInstanceOf[AnonFunc].applied(JsVar(items))

  ... that should just call the anonymous function constructed by Jx

  Note that I haven't actaully tested the code but is should work unless
  I'm missing some parentheses etc.

  Also Jx is discussed in the LiftBook

  Br's,
  Marius

  On Apr 15, 9:25 pm, glenn gl...@exmbly.com wrote:

   I'm a novice at this, and I've seen discussions of using Jx classes to
   output HTML on the client, but how exactly is this done?  Are there
   any complete examples of sending JavaScript functions produced by the
   Jx classes to the client and running them?

   Suppose, for example, I have a json object:

   var list = {
               tabs: [
                 {class: posts selected},
                 {class: comments},
                 {class: category},
                 {class: famous},
                 {class: random}
               ]
             }

   and a function defined so:

   def renderTabs = Jx(li class='{JsVar(it, class)}'/li)

   I then want to create tabs on the client with

   Jx(ul class=tabMenu{JxMap(JsVar(it.tabs), renderTabs)}/ul)

   How, exactly is this to be done? Obviously, this won't work - the
   JavaScript function isn't generated:

   def head(xhtml:NodeSeq): NodeSeq = {

       val  renderTabs = Jx(li class='{JsVar(it, class)}'/li)

       head
             script type=text/javascript
                    Jx(ul class=tabMenu{JxMap(JsVar(it.tabs),
   renderTabs)}/ul)

         /script
       /head
     }

   I see the value in the Jx classes, if only I knew how to use them.
   Any help would be appreciated

   Glenn Silverman

--~--~-~--~~~---~--~~
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] Open Source Bridge seminars

2009-04-15 Thread Charles F. Munat

There are currently two proposals to Open Source Bridge (Portland, June 
17-19) involving Lift:

David has this:

http://opensourcebridge.org/proposals/152

And I have this:

http://opensourcebridge.org/proposals/192

They have way more proposals for seminars than they can actually handle, 
so they will decide which proposals to include based in part on comments 
from the public.

If you think that it's important that Lift be represented at the OSB, 
please click on the links above and add a comment favoring the seminar. 
You probably have to register (not the same as buying a ticket) and 
log in to comment.

The conference is cheap and looks kind of cool, so if you're able to get 
to Portland, consider attending.

Chas.

--~--~-~--~~~---~--~~
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] Resizing images

2009-04-15 Thread Charles F. Munat

Has anyone here done anything with Lift in which uploaded images are 
resized (or otherwise manipulated) before saving? If so, how did you do 
it? Any recommendations for libraries?

Thanks!

Chas.

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