I'd strongly suggest:
1. All should return Box. In case of parsing failure for example
return a Failure.
2. If a param is null, inside your method use (Box !! param) which
would give you an Empty if param is null.
We should not assume dumb default values for input that doesn't make
sense.
Br's,
As suggested I am with G-d's help working on a new
net.liftweb.http.ConversionRules object, to contain factories for parsers and
formatters for date, date-time, time java.util.Date objects. Then
LiftRules.formateDate and .parseDate would be deprecated I suppose.
One question is how to deal with
Thanks, got the 280_port and it works.
regards
Carlos
On Jan 14, 4:52 pm, Naftoli Gugenheim wrote:
> Either use an older version of Netbeans or another IDE, or checkout the
> unsupported 280_port branch from git and mvn clean install.
>
> -
>
> carlosayam wro
I just wanted to point out that clojure would be a nonstarter anyway on GAE.
Without threading, you can't use STM as well as some of the killer features of
clojure.
On Thu, Jan 14, 2010 at 5:45 PM, __kaveh__ wrote:
> Clojure is an elegant language "but" it is a Lisp and it is dynamic -
> and that
Lift has no dependency on it's various optional persistence layers. I don't see
any advantage in terms of data layer to not using lift.
But I'd like to question your reason for using GAE. I started a project in Lift
for GAE which I soon switched away from GAE. As far as I remember there is no
sp
No no, the Lift version was only frozen in Akka because of the sample
app (it was causing problems whilst we went through some growing
pains)... I can upgrade it in Akka to 2.0-M1 if you'd like?
One would imagine its just a case of composing the Akka Actor into the
comet actor? The composition app
On Thu, Jan 14, 2010 at 3:48 PM, Timothy Perrett wrote:
> David, have you actually mixed Akka actors with Lift comet actors (that is,
> akka actors powering our comet)? I keep meaning to try this, but havent yet.
>
I have not... plus Akka is on Lift 1.1 M6 which is so last decade. ;-)
>
> Cheer
David, have you actually mixed Akka actors with Lift comet actors (that is,
akka actors powering our comet)? I keep meaning to try this, but havent yet.
Cheers, Tim
On 14 Jan 2010, at 22:57, David Pollak wrote:
> Akka actors and Lift Actors share the same interface. Scala Actors do not
> shar
Please take a look at the way we test mapper:
http://github.com/dpp/liftweb/blob/master/framework/lift-persistence/lift-mapper/src/test/scala/net/liftweb/mapper/MapperSpecs.scala
On Thu, Jan 14, 2010 at 3:17 PM, Ferdinand Chan wrote:
> One follow up question about using H2 for testing.
>
> Assu
Ah, I didn't know I was missing that. Right, I'll go back to chapter 6
in the book and see how to accomplish that, thank you for the info.
On Jan 15, 9:43 am, David Pollak
wrote:
> On Thu, Jan 14, 2010 at 2:37 PM, Randinn wrote:
> >http://paste.pocoo.org/show/165532/
>
> You have to write code t
One follow up question about using H2 for testing.
Assuming I've created a DB in H2 for testing purpose. What I need to
do in the beforeAll and afterAll method?
My initial thinking is that I need to define the connection manager
and schemify all Model in the beforeAll method, like..
override def
2010/1/14 __kaveh__
So for cases like many little web
> applications that concurrency is not an issue or for technologies like
> GAE; we should simply fall back to Java?
>
NO!
Go for Scala + Lift!
Heiko
My job: weiglewilczek.com
My blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OS
On Sun, Jan 10, 2010 at 9:00 AM, greekscala wrote:
> Hello,
>
> I read only little about AKKA, but I read that the Lift Actors are now
> decopled and you can use AKKA
>
Akka actors and Lift Actors share the same interface. Scala Actors do not
share this interface.
> Actors or Scala Actors as
If you like Scala, you might be best served with Scala and Wicket... I
believe that Wicket is more GAE friendly than Lift.
On Thu, Jan 14, 2010 at 2:45 PM, __kaveh__ wrote:
> @David Pollak Thanks for your time and answering me!
>
> I am evaluating Cloud technologies for a social application - wit
@David Pollak Thanks for your time and answering me!
I am evaluating Cloud technologies for a social application - without
heavy real-time interaction - GAE appealed to me for easy integration
and interaction with other utilities in Google (like Google Docs which
is another candidate for us for ha
On Thu, Jan 14, 2010 at 2:37 PM, Randinn wrote:
> http://paste.pocoo.org/show/165532/
>
You have to write code that will copy each of the fields from the case class
to the mapper object.
>
> On Jan 15, 9:29 am, David Pollak
> wrote:
> > On Thu, Jan 14, 2010 at 2:26 PM, Randinn wrote:
> > > T
http://paste.pocoo.org/show/165532/
On Jan 15, 9:29 am, David Pollak
wrote:
> On Thu, Jan 14, 2010 at 2:26 PM, Randinn wrote:
> > Thank you both for your explanations it seems assigning val
> > Observation to Observe is a bad idea, what should I do to get the
> > parced information to the Observ
On Thu, Jan 14, 2010 at 2:26 PM, Randinn wrote:
> Thank you both for your explanations it seems assigning val
> Observation to Observe is a bad idea, what should I do to get the
> parced information to the Observation map?
>
What does your Observation class look like?
>
> On Jan 15, 8:42 am, R
Thank you both for your explanations it seems assigning val
Observation to Observe is a bad idea, what should I do to get the
parced information to the Observation map?
On Jan 15, 8:42 am, Ross Mellgren wrote:
> Isn't it that the val Observation is being assigned to the (compiler
> synthesized)
Oh, if anyone who's familiar with or has a vested interest in Record could take
a look at the changes in this commit of my branch, I would greatly appreciate
it:
http://github.com/dpp/liftweb/commit/eba18cbc2fcb1207ede22f0b2234fb47914d1ad0
-Ross
On Jan 14, 2010, at 1:28 AM, Ross Mellgren wrote
Thanks all for quick response.
Its working now...
Thanks
Ferd
On Jan 15, 4:29 am, Jeppe Nejsum Madsen wrote:
> Ferdinand Chan writes:
> > Hi,
>
> > I'm writing a unit test for a utility class that will make use of
> > information of a Model class. Here is the sample code for the model
> > cla
Isn't it that the val Observation is being assigned to the (compiler
synthesized) Observe singleton object? In either case, no save method.
-Ross
On Jan 14, 2010, at 4:41 PM, David Pollak wrote:
>
>
> On Thu, Jan 14, 2010 at 1:37 PM, Randinn wrote:
> Well here is the latest iteration of the
On Thu, Jan 14, 2010 at 1:37 PM, Randinn wrote:
> Well here is the latest iteration of the code:
>
> http://paste.pocoo.org/show/165511/
>
> but I'm getting this error
>
> Compiling 11 source files to C:\Users\Randin\Documents\Development
> \weather\target\classes at 1263504637934
> [ERROR]weathe
Well here is the latest iteration of the code:
http://paste.pocoo.org/show/165511/
but I'm getting this error
Compiling 11 source files to C:\Users\Randin\Documents\Development
\weather\target\classes at 1263504637934
[ERROR]weather/snippet/HelloWorld.scala:32: error: value save is not a
member
Thanks Jeppe and Naftoli,
i now use :
JsArray((m.toList map { case (k, (v1, v2)) => JsObj(k -> JsArray
(v1,v2)) }): _*)
as Naftoli suggested. I still need toList. I think this is most
readable.
Martin
On 14 Jan., 22:15, Naftoli Gugenheim wrote:
> JsArray((m map { case (k, (v1, v2)) => JsObj(
JsArray((m map { case (k, (v1, v2)) => JsObj(k -> JsArray(v1,v2)) }): _*)
-
Ross Mellgren wrote:
Oh sorry, my bad. I think it would be better to do m.toSeq.map ... instead of
m.elements.collect.map ...
-Ross
On Jan 14, 2010, at 3:14 PM, martinsema...@googlem
"martinsema...@googlemail.com" writes:
> Hi
> i need some help with a conversation from HashMap to JsArray.
>
> I have something like:
>
> var m = new HashMap[String, (Int,Int)]
>
> and i want to use it in JE.Call as an argument. I think it has to be
> converted to a JsArray. Some kind of map or
Ok
i now use toList :-). It seems to work on the data itself rather than
to construct a new one.
Thanks again
Martin
On 14 Jan., 21:36, Ross Mellgren wrote:
> Oh sorry, my bad. I think it would be better to do m.toSeq.map ... instead of
> m.elements.collect.map ...
>
> -Ross
>
> On Jan 14, 2010
Oh sorry, my bad. I think it would be better to do m.toSeq.map ... instead of
m.elements.collect.map ...
-Ross
On Jan 14, 2010, at 3:14 PM, martinsema...@googlemail.com wrote:
> Thanks
> .elements provides an Iterator. I have added collect to get a Seq and
> now it works:
>
> JsArray(
>
Ferdinand Chan writes:
> Hi,
>
> I'm writing a unit test for a utility class that will make use of
> information of a Model class. Here is the sample code for the model
> class
>
> class Category extends LongKeyedMapper[Category] with IdPK{
>
> def getSingleton = Category
>
> object parentCat
Thanks
.elements provides an Iterator. I have added collect to get a Seq and
now it works:
JsArray(
(m.elements.collect.map
{ case (k, v) => JsObj(k -> JsArray(v._1, v._2)) }
: _*)
)
Martin
On 14 Jan., 18:32, Ross Mellgren wrote:
>
+1 for this approach but I'd rather opt it for JsCmd cases classes/
objects and not really S/SHtml methods.
case class AjaxHash extends JsCmd {
...
}
you got the idea.
Br's,
Marius
On Jan 14, 8:29 pm, David Pollak
wrote:
> On Wed, Jan 13, 2010 at 6:02 PM, Alex Boisvert wrote:
>
>
>
> > Just
Okay... I found the problem and fixed it. The fix will be on review board
in a little while.
On Thu, Jan 14, 2010 at 12:33 AM, aw wrote:
> I enabled SQL logging recently, and started looking at the generated
> SQL from Mapper. I was surprised to see that "select DISTINCT" was
> generally being
On Tue, Jan 12, 2010 at 12:35 AM, aw wrote:
> Playing around with the TextileParser code, I am using paraFixer. I
> noticed that bold yields bold HTML. Similarly, italic
> yields italic HTML. But bold does NOT yield bold
> HTML... Looks like we need to add some extra tags to the function
> is
Haven't compiled or tested it, but here's something that should work:
JsArray(m.elements.map { case (k, v) => JsObj(k -> JsArray(v._1, v._2)) }: _*)
-Ross
On Jan 14, 2010, at 11:25 AM, martinsema...@googlemail.com wrote:
> Hi
> i need some help with a conversation from HashMap to JsArray.
>
>
can anyone point me to a guide for developers who are interested in
digging into the source code of the liftweb?
specifically, on how to build it and setting it up in IDE (like
eclipse)
I was poking around but could not find it.
Just clone the source code but it seems like there is no top level
po
Hi
i need some help with a conversation from HashMap to JsArray.
I have something like:
var m = new HashMap[String, (Int,Int)]
and i want to use it in JE.Call as an argument. I think it has to be
converted to a JsArray. Some kind of map or fold should fit here, but
i dont know how to do it.
The
Just came across this:
http://github.com/Marak/route.js
Might be interesting food for thought as it strikes me that would hook
into lifts function based javascript quite nicely.
Cheers, Tim
On Jan 14, 4:03 pm, Alex Boisvert wrote:
> Depends on your application. What would it do if it wasn't i
Depends on your application. What would it do if it wasn't implemented with
AJAX?
This isn't a magical feature. It's a feature that allows you to support
the back button 1) if it makes sense to you and 2) if you can figure out a
way to make it safe for the user.
For example, you click the dele
If you press delete then back what will happen?
-
Alex Boisvert wrote:
On Wed, Jan 13, 2010 at 6:10 PM, Naftoli Gugenheim wrote:
> I haven't really used Ajax much but it seems to me there are two kinds of
> changes.
> 1. Modifying the view, e.g., clicking an e
category.runSafe { ... } ?
-
Ferdinand Chan wrote:
Hi,
I'm writing a unit test for a utility class that will make use of
information of a Model class. Here is the sample code for the model
class
class Category extends LongKeyedMapper[Category] with IdPK{
d
On Wed, Jan 13, 2010 at 6:10 PM, Naftoli Gugenheim wrote:
> I haven't really used Ajax much but it seems to me there are two kinds of
> changes.
> 1. Modifying the view, e.g., clicking an emal in Gmail, or Expand All. One
> can make an analogy to a GET request, in that there's no permanent change.
Hmm, so you can't use the AutoComplete widget as part of a form if you
want it to work if some weirdo comes along who has javascript
disabled?
On Jan 14, 4:15 pm, Mads Hartmann wrote:
> Aha! There's no function bound to the keyUp event, so the hidden field
> doesn't update :)
>
> On Jan 14, 4:06
Aha! There's no function bound to the keyUp event, so the hidden field
doesn't update :)
On Jan 14, 4:06 pm, Mads Hartmann wrote:
> Hello,
> I've got a problem when using the AutoComplete widget.
>
>
> Problem
>
> I've got three fields which are all autocomplete
Hi,
I'm writing a unit test for a utility class that will make use of
information of a Model class. Here is the sample code for the model
class
class Category extends LongKeyedMapper[Category] with IdPK{
def getSingleton = Category
object parentCategoryId extends MappedLong(this)
object
Hello,
I've got a problem when using the AutoComplete widget.
Problem
I've got three fields which are all autocomplete fields. When i submit
the form I check if the three fields aren't blank and have different
values
If i deliberately enter the same value in fiel
What are you using for code-generation?
Cheers, Tim
On Jan 12, 4:43 am, Brian Hsu wrote:
> Hello, I'm interested in this project.
>
> Just in case that there are someone eles is working on this too.
>
> Currently I have started working on the part of generate Lift website
> skeleton correspondin
Ahhh, didn't know that :)
Thanks,
Mads Hartmann Jensen
On 14/01/2010, at 12.40, Timothy Perrett wrote:
> lift-oauth is an OAuth SERVER... you want an OAuth CLIENT.
>
> Try dispatch: http://dispatch.databinder.net/About as it already has a
> twitter client built in.
>
> Cheers, Tim
>
> On 1
lift-oauth is an OAuth SERVER... you want an OAuth CLIENT.
Try dispatch: http://dispatch.databinder.net/About as it already has a twitter
client built in.
Cheers, Tim
On 14 Jan 2010, at 10:20, Mads Hartmann wrote:
> Hey everyone
>
> I'm about to re-write the last part of my project - the com
The Lift Web Framework team is pleased to announce the framework-2.0-
M1 release!
Lift is an expressive and elegant framework for writing web
applications.
Lift stresses the importance of security, maintainability, scalability
and performance while allowing for high levels of developer
productivit
Hey everyone
I'm about to re-write the last part of my project - the communication
with twitter :)
I can see that lift has an oauth package but I can't seem to find any
information regarding how to use it, could anyone point me in the
right direction? If you do I promise to create a wiki article
Most likely I'll commit it today in master as it was approved by
review board.
Br's,
Marius
On Jan 14, 9:53 am, Adam Warski wrote:
> I would of course be very +1 to include the ajaxSubmit :). Thanks for the
> work.
>
> This looks a bit different to the button I tried before, maybe you have a
>
I enabled SQL logging recently, and started looking at the generated
SQL from Mapper. I was surprised to see that "select DISTINCT" was
generally being done for queries when it is not necessary. Is that
really necessary?
For example:
Team.findAll(OrderBy(Team.name, Ascending))
translated to:
OK, I'm not 100% sure what DB.globalDefaultSchemaName is supposed to
do because specifying it broke Schemifier as well as my queries.
Certainly, it sounded like what I needed, but doesn't do what I
expected...
Basically, I am looking for the Lift equivalent to:
hibernate.default_schema
(See secti
I found my issue -- the problem was that I specified
DB.globalDefaultSchemaName, and that was interfering with Schemifier.
Tried 2.0-SNAPSHOT too, but same issue.
I have another thread on trying to change the schema name:
http://groups.google.com/group/liftweb/browse_thread/thread/00f7a484e9e71
55 matches
Mail list logo