Hi Ross,
Thanks for the code - however it didn't compile on my machine, why is
that?
Also I cannot get it to show a menu, can you take a brief look at my
code, whats the problem? I notice supplimentalKidMenuItems gets called
every time the page is rendered so thats a positive, but no menu items
Also I guess there is another problem with this approach, it does not
render the entire menu, only one of 2nd level menu items. The 1st
level menu items are Menu. Am I right in saying this?
On 11月21日, 下午2時56分, Ross Mellgren dri...@gmail.com wrote:
Here's an example of doing what David decribed
Heiko,
Sounds pretty rational - couldn't agree more that we need a suitable policy in
place.
Cheers, Tim
On 21 Nov 2009, at 08:27, Heiko Seeberger wrote:
For me it is important that there is a version policy in place, such that
everyone knows what's the difference between a change to 1.1
Got my code working so it generates a menu.
Looked at WikiLoc in the Wiki Liftweb example, it has:
def defaultParams = Full(WikiLoc(HomePage, false))
So I guessed that it needs to have something with a Full
Changed it to:
override val defaultParams = Full(NullLocParams)
So now my code is
case
FWIW, I'm seeing the same thing. Unfortunately. I'm downloading the
source on another folder and cross referencing as I need.
Thanks.
regards,
CH
On Nov 19, 5:29 am, glenn gl...@exmbly.com wrote:
You can either use debugging facilities in Eclipse or, as I mostly
do,
sprinkle a lot of println
http://www.infoq.com/presentations/Scala-Basics-Bytecode-David-Pollak
--
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
On Sat, Nov 21, 2009 at 4:29 AM, Timothy Perrett timo...@getintheloop.euwrote:
Heiko,
Sounds pretty rational - couldn't agree more that we need a suitable policy
in place.
Heiko, can you find the stated version number policies of 3 or 4 other well
regarded open source projects? That will
Folks,
I got back from Devoxx late last night and thought I would just post
some thoughts and experiences from the event.
Firstly, there was an awesome interest in Scala and Lift - my talk was
really busy (~550 people) and the general Scala Enthusiast BOF right
afterwards was packed.
Myself,
By the way, the slide from my presentation can be found here: http://is.gd/50jVi
Cheers, tim
On Nov 21, 3:37 pm, Timothy Perrett timo...@getintheloop.eu wrote:
Folks,
I got back from Devoxx late last night and thought I would just post
some thoughts and experiences from the event.
Firstly,
I have seen this problem around and it seems basic but I haven't found
a solution. I need to turn an InputStream into a String. There seems
to be a bug in the Source class that fails for large files so I don't
want to use that (though it is an elegant approach).
The following doesn't work because
2009/11/20 monty chen montyc...@qq.com
David Pollk, thanks you reply!
Let us talk about tomcat or jetty Which web container is recommended
to use to deploy the Lift app.
I remember your reply of Derek Chen-Becker:
On 5月5日, 上午5时59分, David Pollak feeder.of.the.be...@gmail.com wrote:
Helpers.readWholeThing(reader): String
Yes... this method name is ripe for bettering.
On Sat, Nov 21, 2009 at 6:47 AM, jack jack.wid...@gmail.com wrote:
I have seen this problem around and it seems basic but I haven't found
a solution. I need to turn an InputStream into a String. There seems
Awesome write-up. Perfect way to start my day!
Thanks for working hard to promote Scala and Lift and community the value of
both to a broader audience.
On Sat, Nov 21, 2009 at 6:37 AM, Timothy Perrett timo...@getintheloop.euwrote:
Folks,
I got back from Devoxx late last night and thought I
Hi,
Heiko, can you find the stated version number policies of 3 or 4 other well
regarded open source projects? That will allow us to synthesize the best of
what others have done into a coherent policy for Lift.
Take a look at the recommended OSGi version policy:
No worries David - it was a great event, and something im really proud of :-)
Cheers, Tim
On 21 Nov 2009, at 15:58, David Pollak wrote:
Awesome write-up. Perfect way to start my day!
Thanks for working hard to promote Scala and Lift and community the value of
both to a broader audience.
I kind of like it. Says exactly what it does :)
On Sat, Nov 21, 2009 at 9:56 AM, David Pollak feeder.of.the.be...@gmail.com
wrote:
Helpers.readWholeThing(reader): String
Yes... this method name is ripe for bettering.
On Sat, Nov 21, 2009 at 6:47 AM, jack jack.wid...@gmail.com wrote:
I
HAHAHA. That is an awesome method name if ever i did see one. Little
confused why readWholeInputStream was somehow not the obvious
choice ;-)
Cheers, Tim
On Nov 21, 4:37 pm, Jack Widman jack.wid...@gmail.com wrote:
I kind of like it. Says exactly what it does :)
On Sat, Nov 21, 2009 at 9:56
How about
pleaseGoOutAndConvertThisInputStreamToAStringAndReturnIt
And then after returns the String you can call a function called
thankYou
On Sat, Nov 21, 2009 at 10:40 AM, Timothy Perrett
timo...@getintheloop.euwrote:
HAHAHA. That is an awesome method name if ever i did see one. Little
I am finally able to use the plugin.
I noticed the plugin version is 2.7.7 and that the lift project scala
version was 2.7.3 so I changed the scala version to 2.7.7
It works now. Actually I am not sure this was the change that made it work
because just before I restarted eclipse and it already
Hi David,
Thanks for your welcome. I hope to have now a little more time to take a
deeper look at lift.
I am delighted to see how much the community as grown around this exciting
framework.
I am really impressed by both the framework and the community.
Congratulations.
Oscar
On Tue, Nov 17,
Hi,
I just created a simple project with the maven archetype and tried to add a
view as explained in the The Definitive Guide to Lift.
package org.opicasso.two.view
import net.liftweb.http.LiftView
import scala.xml.NodeSeq
class SomeView extends LiftView {
override def dispatch = {
yejun on github opened up an issue:
def checkbox[T](possible : Seq[T], actual : Seq[T], func : (Seq[T])
= Any, attrs : (String, String)*)
Func will only return first element in possible when it is checked
or List().
It is easily reproducible.
Based on the type of func, I agree it looks
Amazing. Great news. Good job guys. Wish I was there.
2009/11/21 Timothy Perrett timo...@getintheloop.eu:
Folks,
I got back from Devoxx late last night and thought I would just post
some thoughts and experiences from the event.
Firstly, there was an awesome interest in Scala and Lift - my
Oscar,
Please use Lift 1.1. You'll get a much more information error message.
Basically, you need to add an entry to SiteMap.
Thanks,
David
On Sat, Nov 21, 2009 at 9:32 AM, Oscar Picasso oscarpica...@gmail.comwrote:
Hi,
I just created a simple project with the maven archetype and tried
Yeah, Full(()) makes sense for 1.1-SNAPSHOT which is what my code was using,
and Full(NullLocParams) makes sense for M7 and earlier. I apologize; I should
have asked what version you were developing against.
I think that you are correct with regard to the top level menu having to be
static --
In the recent thread, a couple people asked for the ability to create dynamic
menu items per request from the database. David suggested
Loc.supplimentalKidMenuItems which works fine for dynamic children of a static
menu, but doesn't support the ability to make the top level menu dynamic.
Menu
I'm poking around the LiftTicket codebase, and currently it suffers from an NPE
on Boot:
ERROR - Failed to Boot
java.lang.ExceptionInInitializerError
at
org.liftticket.liftticket.snippet.UserAdmin$.menus(UserAdmin.scala:41)
at bootstrap.liftweb.Boot.buildMenus(Boot.scala:74)
I think eclipse and maven might be two of the only projects following that
convention (besides others in the eclipse ecosystem). The question in my
mind is what is the popular version number convention in the Scala
ecosystem.
- Josh
On Sat, Nov 21, 2009 at 9:59 AM, Heiko Seeberger
Ross,
Where in your code are you calling this method? What I'd the context
that puts it outside of a request?
Cheers, Tim
Sent from my iPhone
On 21 Nov 2009, at 23:03, Ross Mellgren dri...@gmail.com wrote:
I'm poking around the LiftTicket codebase, and currently it suffers
from an NPE
It's being called to provide the link text for menus during sitemap creation at
boot time, as well as during class initialization time to make some vals that
contain error text. I believe initializing these at Boot time to be incorrect
since the correct locale cannot be known until a request is
Oops I misspoke, the strToLinkText conversion is already lazy, so it's not the
menu text, just the message. Here is the diff:
@@ -91,7 +91,7 @@ object RoleAdmin {
case _ = Text(S.?(No instance to delete))
}
- val missingTemplate = Text(S.?(Missing template))
+ def missingTemplate =
I agree that getting an NPE is less than desirable!
I'm not sure things are wrong per-say; the defualt locale calculator
has an app wide setting and there is nothing to say that that a user
must implement their locale calculator in a particular way... This is
one of the great things about
Hmm, you raise an interesting point. So I guess the situation is more
variegated:
1) If you have a locale calculator that works per-request and does not have an
app default, then it is definitely incorrect to call S.? out of a request
context,
2) but if you have one that works app-wide then it
OK - just a quick follow up.
I got a chance this afternoon to test the simple demo app that
Jean-Luc suggested. I changed the mapping on books to be
fetch=EAGER. and put a debug statement on the list method in
authorOps. Of course it works just fine :-) - so the problem lies
somewhere else in my
Hi all,
I'm planning for a simple project that involves a small web site and database.
I plan to use Lift for the web part so that I can learn it. For
database, I'm interested
in H2 database for its speed and flexibility. I've seen H2 database mentioned
a few times on the list. I wonder if those
Hi, I am using H2 database without any problems so far. Just change
the connection, use the right maven build or jars.
val driverName: String = Props.get(db.driver) openOr
org.h2.Driver
val dbUrl: String = Props.get(db.url) openOr
jdbc:h2:tcp://localhost/~/databasename
On
Looks like I was over-eager with the HPP stuff.
Yeah, checkbox should return the entire list of things checked.
On Sat, Nov 21, 2009 at 9:48 AM, Ross Mellgren dri...@gmail.com wrote:
yejun on github opened up an issue:
def checkbox[T](possible : Seq[T], actual : Seq[T], func : (Seq[T]) =
OK that's good to know. Thanks! I'll give that a try.
On Sat, Nov 21, 2009 at 5:45 PM, philip philip14...@gmail.com wrote:
Hi, I am using H2 database without any problems so far. Just change
the connection, use the right maven build or jars.
val driverName: String = Props.get(db.driver)
On review board: http://reviewboard.liftweb.net/r/117/
I added a few doc comments to nearby stuff, let me know if there are
inaccuracies or style changes that should be made.
-Ross
On Nov 21, 2009, at 9:37 PM, David Pollak wrote:
Looks like I was over-eager with the HPP stuff.
Yeah,
39 matches
Mail list logo