[Lift] Re: Javascript "confirm(..)" dialog with ajaxButton

2009-04-28 Thread marius d.

Still there might be situations when users do not use blockUI (I
encountered such situation when having a really fancy dialog) and
blockUI was screwing it up a bit. So for more complex cases where the
dialog function is much more complex I tend to think that we need
something more generic.

Oh and Dave's example could probably be simplified by using
JqJsCmds.ModalDialog object

Br's,
Marius

On Apr 29, 2:43 am, David Pollak 
wrote:
> Here's an example of a confirm dialog box.  Hope it helps.
>
> PS -- I grew up in Rhode Island.
>
> On Tue, Apr 28, 2009 at 1:15 PM, Derek Chen-Becker 
> wrote:
>
>
>
> > I agree. Allowing for a "guard" JavaScript expression to be called before
> > the Ajax call is made would be nice.
>
> > Derek
>
> > On Tue, Apr 28, 2009 at 3:02 PM, marius d. wrote:
>
> >> Pretty much all SHtml function related to Ajax invokes the ajax call
> >> as to click the link, button, etc. SHtml.ajaxCall function allow you
> >> to provide a JsExp (which could be any JavScript expression) who's
> >> result would be passed to the ajax call. But I don't think this will
> >> help your case a whole lot.
>
> >> Maybe we can do another SHtml helper that would help your case. Such
> >> as:
>
> >> 1. On click, we are calling a user defined Ajax function and pass to
> >> it a function that does the actual Ajax call
> >> 2 In your JS function (which would be the confirm function) you can
> >> choose to call the function passed whenever you want, so you'd have
> >> the liberty to actually do the ajax request or not.
>
> >> Of course you could implement this yourself quite easily but I think
> >> it worth having something like that in SHtml for a simpler use.
>
> >> Looks to me that this would be a nice addition to SHtml.
>
> >> Br's,
> >> Marius
>
> >> On Apr 28, 3:48 am, Chris  wrote:
> >> > Hi Tim,
> >> > just one addition. Wicket has something called an ajaxcall decorator
> >> > (IAjaxCallDecorator) that allows you to modify the script and more
> >> > specifically the "decorateScript" method allows you to prepend a char-
> >> > sequence to the script. This would allow me to do exactly what I want.
> >> > Is there any way in Lift to achieve the same thing? I'd really like to
> >> > avoid dealing with JavaScript directly apart from something as trivial
> >> > as the "confirm(...)" dialog or similar.
> >> > Cheers, Chris.
>
> >> > On Apr 28, 9:56 am, Chris  wrote:
>
> >> > > Hi Tim,
> >> > > not sure if I really got across what I need. I need the AJAX
> >> > > functionality in this case as I'm displaying a large amount of data in
> >> > > a table and would like to allow the user to delete individual records
> >> > > without the refresh problem of having the button cause a POST. I also
> >> > > need to make sure the user hasn't "accidentally" pressed "delete",
> >> > > hence the "confirm(..)" dialog. Does option (1) above prevent the
> >> > > subsequent call of the ajaxButton if the user presses "cancel" on the
> >> > > JS "confirm" dialog, but allow it if he presses "OK"? Option (2) is
> >> > > just a slightly different way of doing what I've already tried (I
> >> > > added the "onclick" attribute to the ajaxButton call itself) and this
> >> > > subsequently removes the actual AJAX call itself.
> >> > > Thanks, Chris.
>
> >> > > On Apr 28, 9:22 am, Timothy Perrett  wrote:
>
> >> > > > Hey,
>
> >> > > > Seems like you have a couple of options...
>
> >> > > > 1. you could just write normal javascript irrespective of lift and
> >> > > > just put that in a JS file like normal. Something like:
>
> >> > > > $('#mybutton').click(function(e){
> >> > > >   confirm... //blah blah code here
>
> >> > > > });
>
> >> > > > 2. If you *really* want to use the on-click handler (personally I
> >> > > > wouldn't) then you could do somethig like this in your snippet:
>
> >> > > > SHtml.ajaxButton("submit", () => println("badger")) % ("onclick" ->
> >> > > > "confirm();")
>
> >> > > > I would highly recommend using option one as the functionality is
> >> > > > purely a client side concern in that sense and nothing to do with
> >> > > > lift. Does that help?
>
> >> > > > Cheers, Tim
>
> >> > > > On Apr 27, 11:29 pm, Chris  wrote:
>
> >> > > > > Hi there,
> >> > > > > I'm pretty new to Lift and Scala for that matter, but have long
> >> been
> >> > > > > on the lookout for something like seaside running on the JVM and
> >> this
> >> > > > > is just great! Now to my issue...
> >> > > > > I've hit a brick-wall in the attempt to get a confirmation dialog
> >> > > > > working before executing an ajaxButton. I've tried adding an
> >> "onclick"
> >> > > > > attribute to the ajaxButton call, but that only seems to replace
> >> the
> >> > > > > AJAX call itself rather than say prepending the call with the
> >> contents
> >> > > > > of the "onclick" attribute. I'd like to implement a "delete"
> >> button
> >> > > > > with a confirmation dialog. I've looked at ModalDialog, but due to
> >> my
> >> > > > > inexperience and lack of examples hav

[Lift] sync posted, how to comet?

2009-04-28 Thread Lee Mighdoll
I've posted a first snapshot of the jSync server (and the corresponding
javascipt client) here on
github.


jSync synchronizes trees of objects between javascript and scala.  jSync is
not complete enough for use yet, but I'm pleased with the approach so far.
I think it'll be a great way to write rich client apps.  You can try running
the tests pretty easily:
  $ git clone git://github.com/mighdoll/jsync.git
  $ cd jsync && mvn install
  $ cd server && mvn jetty:run
  $ firefox http://localhost:8080/jsync/test/tests.html

If you're interested in this kind of thing do poke around the code -- I'd
welcome comments.

jSync uses lift of course, but I could use some help...

For example, how can I wire in a comet connection?  The current
implementation uses http very simply.  The javascript client sends http POST
messages to /sync, and looks for one or more responses in the http
response.  I've currently wired it in via LiftRules.dispatch.prepend(), but
I'm sure that's not right.  How do I comet-ify this?

Lee

--~--~-~--~~~---~--~~
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: Javascript "confirm(..)" dialog with ajaxButton

2009-04-28 Thread Chris Forkin

Hi David,
I copied the ajaxButton method from SHtml and created an
ajaxConfirmButton that called "confirm(...)" before conditionally
executing the method, but your solution is much more elegant. It's
exactly what I was after. You might want to post this on the wiki
somewhere (maybe in a cookbook of snippets?) as it's a neat solution
to a requirement that I'd assume should come up every now and then.
Cheers, Chris.

On Apr 29, 9:43 am, David Pollak 
wrote:
> Here's an example of a confirm dialog box.  Hope it helps.
>
> PS -- I grew up in Rhode Island.
>
> On Tue, Apr 28, 2009 at 1:15 PM, Derek Chen-Becker 
> wrote:
>
>
>
> > I agree. Allowing for a "guard" JavaScript expression to be called before
> > the Ajax call is made would be nice.
>
> > Derek
>
> > On Tue, Apr 28, 2009 at 3:02 PM, marius d. wrote:
>
> >> Pretty much all SHtml function related to Ajax invokes the ajax call
> >> as to click the link, button, etc. SHtml.ajaxCall function allow you
> >> to provide a JsExp (which could be any JavScript expression) who's
> >> result would be passed to the ajax call. But I don't think this will
> >> help your case a whole lot.
>
> >> Maybe we can do another SHtml helper that would help your case. Such
> >> as:
>
> >> 1. On click, we are calling a user defined Ajax function and pass to
> >> it a function that does the actual Ajax call
> >> 2 In your JS function (which would be the confirm function) you can
> >> choose to call the function passed whenever you want, so you'd have
> >> the liberty to actually do the ajax request or not.
>
> >> Of course you could implement this yourself quite easily but I think
> >> it worth having something like that in SHtml for a simpler use.
>
> >> Looks to me that this would be a nice addition to SHtml.
>
> >> Br's,
> >> Marius
>
> >> On Apr 28, 3:48 am, Chris  wrote:
> >> > Hi Tim,
> >> > just one addition. Wicket has something called an ajaxcall decorator
> >> > (IAjaxCallDecorator) that allows you to modify the script and more
> >> > specifically the "decorateScript" method allows you to prepend a char-
> >> > sequence to the script. This would allow me to do exactly what I want.
> >> > Is there any way in Lift to achieve the same thing? I'd really like to
> >> > avoid dealing with JavaScript directly apart from something as trivial
> >> > as the "confirm(...)" dialog or similar.
> >> > Cheers, Chris.
>
> >> > On Apr 28, 9:56 am, Chris  wrote:
>
> >> > > Hi Tim,
> >> > > not sure if I really got across what I need. I need the AJAX
> >> > > functionality in this case as I'm displaying a large amount of data in
> >> > > a table and would like to allow the user to delete individual records
> >> > > without the refresh problem of having the button cause a POST. I also
> >> > > need to make sure the user hasn't "accidentally" pressed "delete",
> >> > > hence the "confirm(..)" dialog. Does option (1) above prevent the
> >> > > subsequent call of the ajaxButton if the user presses "cancel" on the
> >> > > JS "confirm" dialog, but allow it if he presses "OK"? Option (2) is
> >> > > just a slightly different way of doing what I've already tried (I
> >> > > added the "onclick" attribute to the ajaxButton call itself) and this
> >> > > subsequently removes the actual AJAX call itself.
> >> > > Thanks, Chris.
>
> >> > > On Apr 28, 9:22 am, Timothy Perrett  wrote:
>
> >> > > > Hey,
>
> >> > > > Seems like you have a couple of options...
>
> >> > > > 1. you could just write normal javascript irrespective of lift and
> >> > > > just put that in a JS file like normal. Something like:
>
> >> > > > $('#mybutton').click(function(e){
> >> > > >   confirm... //blah blah code here
>
> >> > > > });
>
> >> > > > 2. If you *really* want to use the on-click handler (personally I
> >> > > > wouldn't) then you could do somethig like this in your snippet:
>
> >> > > > SHtml.ajaxButton("submit", () => println("badger")) % ("onclick" ->
> >> > > > "confirm();")
>
> >> > > > I would highly recommend using option one as the functionality is
> >> > > > purely a client side concern in that sense and nothing to do with
> >> > > > lift. Does that help?
>
> >> > > > Cheers, Tim
>
> >> > > > On Apr 27, 11:29 pm, Chris  wrote:
>
> >> > > > > Hi there,
> >> > > > > I'm pretty new to Lift and Scala for that matter, but have long
> >> been
> >> > > > > on the lookout for something like seaside running on the JVM and
> >> this
> >> > > > > is just great! Now to my issue...
> >> > > > > I've hit a brick-wall in the attempt to get a confirmation dialog
> >> > > > > working before executing an ajaxButton. I've tried adding an
> >> "onclick"
> >> > > > > attribute to the ajaxButton call, but that only seems to replace
> >> the
> >> > > > > AJAX call itself rather than say prepending the call with the
> >> contents
> >> > > > > of the "onclick" attribute. I'd like to implement a "delete"
> >> button
> >> > > > > with a confirmation dialog. I've looked at ModalDialog, but due to
> >> my
> >> > > > > inexperience 

[Lift] Re: Customizing Javascript

2009-04-28 Thread David Pollak
So, you'd probably do something like:


  
  




class MyScriptManager {
  def render(in: NodeSeq) =
   bind("script", in, FuncAttrBindParam("onload",
what => Text("".r.replaceAllIn(what.text, "'Hello World'"))
,"onload"))

}

Please give it a try.

On Sun, Apr 26, 2009 at 5:47 PM, sailormoo...@gmail.com <
sailormoo...@gmail.com> wrote:

>
> Hi David :
>
>  I think I need some really simple example, for example
> 
>
> Can you give me the detail how to make this ?
> It doesn't seem to work as 
>
>
> From the Liftbook, there are some advanced examples with Comet and
> Ajax,
> but my problem is even some simple things I don't know how to make it.
>
> The previous javascript code needs 3 parameters, "start_time",
> "end_time" and an "until_string"( just for the message to display),
> but in the original PHP there are two functions with the same name,
> it's the code that decides which to use.
>
> The javascript is to display a message to show much time left, it
> calls itself to replenish the display,
> that's why there is an setTimeout('realtime_output()', 1000); in the
> end of the function.
>
> And other than javascript, I would like to know how to make dynamic
> CSS.
>
>
>
> 
>
> My solution to this CSS is still a snippet, because I don't know how
> to make a dynamic CSS other than snippet.
>
> Thanks to the help.
>
> >
>


-- 
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: lift and background processing

2009-04-28 Thread David Pollak
On Tue, Apr 28, 2009 at 5:21 PM, Timothy Perrett wrote:

>
> Nice example David - very illustrative for newbies :)
>
> Just wondering if having somthing like this in either sites or sites/
> example is worthwhile?
>

I'm going to roll some of the recent examples into sites/example


>
> Cheers, Tim
>
> On Apr 29, 1:15 am, David Pollak 
> wrote:
> > Howdy,
> >
> > Here's an example of using an actor to do background processing and
> > redirecting a browser to the result when it's been calculated.
> >
> > 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: lift and background processing

2009-04-28 Thread Timothy Perrett

Nice example David - very illustrative for newbies :)

Just wondering if having somthing like this in either sites or sites/
example is worthwhile?

Cheers, Tim

On Apr 29, 1:15 am, David Pollak 
wrote:
> Howdy,
>
> Here's an example of using an actor to do background processing and
> redirecting a browser to the result when it's been calculated.
>
> Thanks,
>
> David

--~--~-~--~~~---~--~~
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: lift and background processing

2009-04-28 Thread David Pollak
Howdy,

Here's an example of using an actor to do background processing and
redirecting a browser to the result when it's been calculated.

Thanks,

David

On Wed, Apr 22, 2009 at 1:38 PM, Rogelio  wrote:

>
> Hi,
>
> New to the forum and new to Scala/Lift.  In a previous Ruby Rails
> project, I needed to
> generate some PDF files on the fly in response to a user clicking a
> link.  For that, I
> passed the task off the a worker with BackgroundRb so that the mongrel
> instance would
> not be tied up for a long time.  I then used Ajax calls to update the
> user's webpage when
> the pdf was ready.
>
> I'm considering Scala/Lift for my next project but am unclear how
> something like this
> would be done.  I've read about Actors and concurrency but the
> examples I've seen have
> been for passing simple message (stock quotes or something) and not
> for starting a
> long running process like connecting to a MySQL DB and generating a
> PDF report.
> Should I even be looking at Actors for this?  Is Comet that is
> integrated into Lift a
> possibility?
>
> Basically, how does something (not necessarily PDF generation, but any
> long running
> process that user could request) like this get done with Lift/Scala?
> I'm thinking I would have to
> have Scala use the IText pdf library perhaps.  I don't need to have
> thousands of
> background threads generating PDFs, but it should be able to handle
> say 50 before
> it starts queueing up the PDF requests (ie, I don't want a simple
> first in first out as that
> could take to long for the user to get results).
>
> Thanks for you advice and patience with newbie questions.
>
> Rogelio
>
> >
>


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



longtime.tgz
Description: GNU Zip compressed data


[Lift] Re: override def editMenuLocParams

2009-04-28 Thread David Pollak
Can you post (or send privately to me) your failing code?

On Mon, Apr 27, 2009 at 11:50 PM, Tobias Daub  wrote:

>  My pom.xml file says "1.1-SNAPSHOT" and I changed it to scala version
> 2.7.4 and did a "mvn -U clean install" again. But I still get the same
> error.?
>
>
>
>
>
>
> David Pollak schrieb:
>
>
>
> On Sun, Apr 26, 2009 at 1:11 PM, Tobias Daub  wrote:
>
>>
>> Hi There,
>>
>> I've got a compiler error when I tried to override those new CRUDify
>> methods.
>>
>> value editMenuLocParams is not a member of org.tobster.model.LimitOrder
>> with
>> net.liftweb.mapper.KeyedMetaMapper[Long,org.tobster.model.LimitOrder]
>> with ScalaObject
>>
>> I tried it with showAllMenuLocParams too, and got the same error.
>>
>> The class LimitOrder extends CRUDify and mixes in another traid. I did
>> "mvn -U clean install" and several "mvn -U jetty:run" and created a new
>> project and copied the sources in there, but still got the same error.
>> Seems to me that my local version wasn't updated to 1.1, or?
>
>
>  Does your pom.xml file list Lift 1.0 or 1.1-SNAPSHOT?
>
>
>>
>>
>>
>> thanks.
>>
>>
>>
>
>
> --
> 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
>
>
>
> >
>


-- 
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: Has anyone put together an Ajax file upload widget for Lift

2009-04-28 Thread Timothy Perrett

This is the one:

http://github.com/drogus/jquery-upload-progress/tree/master

Cheers, Tim

On Apr 29, 12:54 am, Timothy Perrett  wrote:
> Yeah there is a really great little lib I found for it... 5 mins and I¹ll
> dig it out
>
> On 29/04/2009 00:43, "David Pollak"  wrote:
>
>
>
>
>
> > On Tue, Apr 28, 2009 at 4:17 PM, Timothy Perrett 
> > wrote:
>
> >> Was only just looking at this the other day... I really only wanted an ajax
> >> uploader with progress bar and for that I need streaming uploads (which we
> >> don¹t have) so right now it was a non-starter.
>
> > Is there a jQuery thingy for the client side?  I can work on wiring up the
> > server side.
> >  
>
> >> Cheers, Tim
>
> >> On 29/04/2009 00:07, "David Pollak"  >>  > wrote:
>
> >>> ?
--~--~-~--~~~---~--~~
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: Has anyone put together an Ajax file upload widget for Lift

2009-04-28 Thread Timothy Perrett

Yeah there is a really great little lib I found for it... 5 mins and I¹ll
dig it out

On 29/04/2009 00:43, "David Pollak"  wrote:

> 
> 
> On Tue, Apr 28, 2009 at 4:17 PM, Timothy Perrett 
> wrote:
>> 
>> Was only just looking at this the other day... I really only wanted an ajax
>> uploader with progress bar and for that I need streaming uploads (which we
>> don¹t have) so right now it was a non-starter.
> 
> Is there a jQuery thingy for the client side?  I can work on wiring up the
> server side.
>  
>> 
>> Cheers, Tim 
>> 
>> On 29/04/2009 00:07, "David Pollak" >  > wrote:
>> 
>>> ?
>> 
>> 
> 
> 


--~--~-~--~~~---~--~~
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: Has anyone put together an Ajax file upload widget for Lift

2009-04-28 Thread David Pollak
On Tue, Apr 28, 2009 at 4:17 PM, Timothy Perrett wrote:

>
> Was only just looking at this the other day... I really only wanted an ajax
> uploader with progress bar and for that I need streaming uploads (which we
> don’t have) so right now it was a non-starter.
>

Is there a jQuery thingy for the client side?  I can work on wiring up the
server side.


>
> Cheers, Tim
>
> On 29/04/2009 00:07, "David Pollak"  wrote:
>
> ?
>
>
> >
>


-- 
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: Javascript "confirm(..)" dialog with ajaxButton

2009-04-28 Thread David Pollak
Here's an example of a confirm dialog box.  Hope it helps.

PS -- I grew up in Rhode Island.

On Tue, Apr 28, 2009 at 1:15 PM, Derek Chen-Becker wrote:

> I agree. Allowing for a "guard" JavaScript expression to be called before
> the Ajax call is made would be nice.
>
> Derek
>
>
> On Tue, Apr 28, 2009 at 3:02 PM, marius d. wrote:
>
>>
>> Pretty much all SHtml function related to Ajax invokes the ajax call
>> as to click the link, button, etc. SHtml.ajaxCall function allow you
>> to provide a JsExp (which could be any JavScript expression) who's
>> result would be passed to the ajax call. But I don't think this will
>> help your case a whole lot.
>>
>> Maybe we can do another SHtml helper that would help your case. Such
>> as:
>>
>>
>> 1. On click, we are calling a user defined Ajax function and pass to
>> it a function that does the actual Ajax call
>> 2 In your JS function (which would be the confirm function) you can
>> choose to call the function passed whenever you want, so you'd have
>> the liberty to actually do the ajax request or not.
>>
>> Of course you could implement this yourself quite easily but I think
>> it worth having something like that in SHtml for a simpler use.
>>
>> Looks to me that this would be a nice addition to SHtml.
>>
>> Br's,
>> Marius
>>
>> On Apr 28, 3:48 am, Chris  wrote:
>> > Hi Tim,
>> > just one addition. Wicket has something called an ajaxcall decorator
>> > (IAjaxCallDecorator) that allows you to modify the script and more
>> > specifically the "decorateScript" method allows you to prepend a char-
>> > sequence to the script. This would allow me to do exactly what I want.
>> > Is there any way in Lift to achieve the same thing? I'd really like to
>> > avoid dealing with JavaScript directly apart from something as trivial
>> > as the "confirm(...)" dialog or similar.
>> > Cheers, Chris.
>> >
>> > On Apr 28, 9:56 am, Chris  wrote:
>> >
>> > > Hi Tim,
>> > > not sure if I really got across what I need. I need the AJAX
>> > > functionality in this case as I'm displaying a large amount of data in
>> > > a table and would like to allow the user to delete individual records
>> > > without the refresh problem of having the button cause a POST. I also
>> > > need to make sure the user hasn't "accidentally" pressed "delete",
>> > > hence the "confirm(..)" dialog. Does option (1) above prevent the
>> > > subsequent call of the ajaxButton if the user presses "cancel" on the
>> > > JS "confirm" dialog, but allow it if he presses "OK"? Option (2) is
>> > > just a slightly different way of doing what I've already tried (I
>> > > added the "onclick" attribute to the ajaxButton call itself) and this
>> > > subsequently removes the actual AJAX call itself.
>> > > Thanks, Chris.
>> >
>> > > On Apr 28, 9:22 am, Timothy Perrett  wrote:
>> >
>> > > > Hey,
>> >
>> > > > Seems like you have a couple of options...
>> >
>> > > > 1. you could just write normal javascript irrespective of lift and
>> > > > just put that in a JS file like normal. Something like:
>> >
>> > > > $('#mybutton').click(function(e){
>> > > >   confirm... //blah blah code here
>> >
>> > > > });
>> >
>> > > > 2. If you *really* want to use the on-click handler (personally I
>> > > > wouldn't) then you could do somethig like this in your snippet:
>> >
>> > > > SHtml.ajaxButton("submit", () => println("badger")) % ("onclick" ->
>> > > > "confirm();")
>> >
>> > > > I would highly recommend using option one as the functionality is
>> > > > purely a client side concern in that sense and nothing to do with
>> > > > lift. Does that help?
>> >
>> > > > Cheers, Tim
>> >
>> > > > On Apr 27, 11:29 pm, Chris  wrote:
>> >
>> > > > > Hi there,
>> > > > > I'm pretty new to Lift and Scala for that matter, but have long
>> been
>> > > > > on the lookout for something like seaside running on the JVM and
>> this
>> > > > > is just great! Now to my issue...
>> > > > > I've hit a brick-wall in the attempt to get a confirmation dialog
>> > > > > working before executing an ajaxButton. I've tried adding an
>> "onclick"
>> > > > > attribute to the ajaxButton call, but that only seems to replace
>> the
>> > > > > AJAX call itself rather than say prepending the call with the
>> contents
>> > > > > of the "onclick" attribute. I'd like to implement a "delete"
>> button
>> > > > > with a confirmation dialog. I've looked at ModalDialog, but due to
>> my
>> > > > > inexperience and lack of examples haven't found a way of achieving
>> > > > > this. Could someone enlighten me as to how I could implement this?
>> > > > > Cheers, Chris.
>> > > > > PS: I hope this isn't a FAQ but I've searched this group and the
>> web
>> > > > > on the matter, but haven't found an answer, so sorry in advance if
>> > > > > this has been answered before.
>>
>>
>
> >
>


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

--~--~---

[Lift] Re: Has anyone put together an Ajax file upload widget for Lift

2009-04-28 Thread Timothy Perrett

Was only just looking at this the other day... I really only wanted an ajax
uploader with progress bar and for that I need streaming uploads (which we
don¹t have) so right now it was a non-starter.

Cheers, Tim 

On 29/04/2009 00:07, "David Pollak"  wrote:

> ?


--~--~-~--~~~---~--~~
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] Has anyone put together an Ajax file upload widget for Lift

2009-04-28 Thread 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
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: malformed Scala signature of User

2009-04-28 Thread erik.karls...@iki.fi

It works now!

Thanks a lot for the help!

- Erik

On Apr 28, 8:12 pm, David Pollak 
wrote:
> How about:
>
> override def fieldOrder = List[BaseOwnedMappedField[User]](id, firstName,
> lastName, email,
> locale, timezone, password, textArea)
>
> The compiler often gets the type signature wrong on Lists of MappedField.
>
> On Tue, Apr 28, 2009 at 9:51 AM, erik.karls...@iki.fi <
>
>
>
> erik.b.karls...@gmail.com> wrote:
>
> > hello,
>
> > Tried to dig a bit more. I noticed that I get the cryptic compile
> > error with the mock objects if I have the following code for User:
> > ---
> > object User extends MetaUser {
>
> >  override def dbTableName = "users" // define the DB table name
> >  override def screenWrap = Full( > at="content">
> >                               )
>
> >   override def fieldOrder = List(id, firstName, lastName, email,
> > locale, timezone, password, textArea)
> >   override def skipEmailValidation = true
> > }
>
> > trait MetaUser extends User with MetaMegaProtoUser[User]
>
> > /**
> >  * An O-R mapped "User" class that includes first name, last name,
> > password and we add a "Personal Essay" to it
> >  */
> > class User extends MegaProtoUser[User] {
> >  def getSingleton = User // what's the "meta" server
>
> >  // define an additional field for a personal essay
> >  object textArea extends MappedTextarea(this, 2048) {
> >    override def textareaRows  = 10
> >    override def textareaCols = 50
> >    override def displayName = "Personal Essay"
> >  }
> > }
> > ---
>
> > However, if I change the line:
>
> > override def fieldOrder = List(id, firstName, lastName, email, locale,
> > timezone, password, textArea)
>
> > to:
>
> > override def fieldOrder = List(firstName, lastName, email, locale,
> > timezone, password,textArea)
>
> > then things get compiled nicely. I noticed that if I putt the Id
> > anywhere inside the list the compile error hits.
> > Am I just doing something really stupid or have I hit some real issue
> > with the compiler? I think more about the first option.
>
> > br,
> > - Erik
>
> > On Apr 28, 12:52 am, "erik.karls...@iki.fi"
> >  wrote:
> > > Hi,
>
> > > I have noticed this and I always run mvn clean before running the
> > > tests or just compiling them. So I get the issue even I run the clean
> > > command.
>
> > > -erik
>
> > > David Pollak kirjoitti:
>
> > > > Erik,
>
> > > > Please do an:
>
> > > > mvn clean test
>
> > > > From the command line.
>
> > > > The Eclipse plugin uses a different version of Scala than does Lift.
> >  There
> > > > will be weird errors like the one you've seen.
>
> > > > Thanks,
>
> > > > David
>
> > > > On Mon, Apr 27, 2009 at 2:24 PM, erik.karls...@iki.fi <
> > > > erik.b.karls...@gmail.com> wrote:
>
> > > > > Weird thing is  that I'm able to mock "MetaTeam":
>
> > > > > ---
> > > > > trait MetaTeam extends Team with LongKeyedMetaMapper[Team] {
> > > > >  def findByUser(user:User): List[Team]
> > > > > }
>
> > > > > object Team extends MetaTeam {
> > > > >  def findByUser(user:User): List[Team] =
> > > > >    UserTeam.findAll(
> > > > >      By(UserTeam.user, user.id),
> > > > >      OrderBy(UserTeam.team, Ascending)).map(_.team.obj.open_!)
> > > > > }
> > > > > ---
>
> > > > > - Erik
>
> > > > > On Apr 28, 12:19 am, "erik.karls...@iki.fi"
> > > > >  wrote:
> > > > > > Hi,
>
> > > > > > I have set of specs test and I'm using mockito
>
> > > > > > I noticed that if I have a list of Users (pretty much same class
> > that
> > > > > > is coming from archetype) and do following test:
>
> > > > > > users(1).firstName must beEqualTo(name2)
>
> > > > > > Then I get :
> > > > > > [WARNING] Exception in thread "main" java.lang.RuntimeException:
> > > > > > malformed Scala signature of User at 13798; reference type _5 of
> > > > > >  refers to nonexisting symbol.
>
> > > > > > If the line is changed to:
>
> > > > > > (users(1).firstName == name2) must beTrue
>
> > > > > > it compiles really nicely. Based on previous posts here it seams to
> > be
> > > > > > that this is scala bug (I use 2.7.4|3)
>
> > > > > > Much bigger problem for me is that when trying to mock the User:
>
> > > > > > var userDbMock = mock[MetaUser]
>
> > > > > > causes the same issue:
> > > > > > [WARNING] Exception in thread "main" java.lang.RuntimeException:
> > > > > > malformed Scala signature of User at 13798; reference type _5 of
> > > > > >  refers to nonexisting symbol.
>
> > > > > > MetaUser is trait:
>
> > > > > > object User extends MetaUser {
>
> > > > > >   override def dbTableName = "users" // define the DB table name
> > > > > >   override def screenWrap = Full( > > > > > at="content">
> > > > > >                                )
> > > > > >   // define the order fields will appear in forms and output
> > > > > >   override def fieldOrder = List(id, firstName, lastName, email,
> > > > > >   locale, timezone, password, textArea)
>
> > > > > >   // comment this line out to require email validations
> > > > > >   override def skipEmailValidation = true
>
> >

[Lift] Re: Javascript "confirm(..)" dialog with ajaxButton

2009-04-28 Thread Derek Chen-Becker
I agree. Allowing for a "guard" JavaScript expression to be called before
the Ajax call is made would be nice.

Derek

On Tue, Apr 28, 2009 at 3:02 PM, marius d.  wrote:

>
> Pretty much all SHtml function related to Ajax invokes the ajax call
> as to click the link, button, etc. SHtml.ajaxCall function allow you
> to provide a JsExp (which could be any JavScript expression) who's
> result would be passed to the ajax call. But I don't think this will
> help your case a whole lot.
>
> Maybe we can do another SHtml helper that would help your case. Such
> as:
>
>
> 1. On click, we are calling a user defined Ajax function and pass to
> it a function that does the actual Ajax call
> 2 In your JS function (which would be the confirm function) you can
> choose to call the function passed whenever you want, so you'd have
> the liberty to actually do the ajax request or not.
>
> Of course you could implement this yourself quite easily but I think
> it worth having something like that in SHtml for a simpler use.
>
> Looks to me that this would be a nice addition to SHtml.
>
> Br's,
> Marius
>
> On Apr 28, 3:48 am, Chris  wrote:
> > Hi Tim,
> > just one addition. Wicket has something called an ajaxcall decorator
> > (IAjaxCallDecorator) that allows you to modify the script and more
> > specifically the "decorateScript" method allows you to prepend a char-
> > sequence to the script. This would allow me to do exactly what I want.
> > Is there any way in Lift to achieve the same thing? I'd really like to
> > avoid dealing with JavaScript directly apart from something as trivial
> > as the "confirm(...)" dialog or similar.
> > Cheers, Chris.
> >
> > On Apr 28, 9:56 am, Chris  wrote:
> >
> > > Hi Tim,
> > > not sure if I really got across what I need. I need the AJAX
> > > functionality in this case as I'm displaying a large amount of data in
> > > a table and would like to allow the user to delete individual records
> > > without the refresh problem of having the button cause a POST. I also
> > > need to make sure the user hasn't "accidentally" pressed "delete",
> > > hence the "confirm(..)" dialog. Does option (1) above prevent the
> > > subsequent call of the ajaxButton if the user presses "cancel" on the
> > > JS "confirm" dialog, but allow it if he presses "OK"? Option (2) is
> > > just a slightly different way of doing what I've already tried (I
> > > added the "onclick" attribute to the ajaxButton call itself) and this
> > > subsequently removes the actual AJAX call itself.
> > > Thanks, Chris.
> >
> > > On Apr 28, 9:22 am, Timothy Perrett  wrote:
> >
> > > > Hey,
> >
> > > > Seems like you have a couple of options...
> >
> > > > 1. you could just write normal javascript irrespective of lift and
> > > > just put that in a JS file like normal. Something like:
> >
> > > > $('#mybutton').click(function(e){
> > > >   confirm... //blah blah code here
> >
> > > > });
> >
> > > > 2. If you *really* want to use the on-click handler (personally I
> > > > wouldn't) then you could do somethig like this in your snippet:
> >
> > > > SHtml.ajaxButton("submit", () => println("badger")) % ("onclick" ->
> > > > "confirm();")
> >
> > > > I would highly recommend using option one as the functionality is
> > > > purely a client side concern in that sense and nothing to do with
> > > > lift. Does that help?
> >
> > > > Cheers, Tim
> >
> > > > On Apr 27, 11:29 pm, Chris  wrote:
> >
> > > > > Hi there,
> > > > > I'm pretty new to Lift and Scala for that matter, but have long
> been
> > > > > on the lookout for something like seaside running on the JVM and
> this
> > > > > is just great! Now to my issue...
> > > > > I've hit a brick-wall in the attempt to get a confirmation dialog
> > > > > working before executing an ajaxButton. I've tried adding an
> "onclick"
> > > > > attribute to the ajaxButton call, but that only seems to replace
> the
> > > > > AJAX call itself rather than say prepending the call with the
> contents
> > > > > of the "onclick" attribute. I'd like to implement a "delete" button
> > > > > with a confirmation dialog. I've looked at ModalDialog, but due to
> my
> > > > > inexperience and lack of examples haven't found a way of achieving
> > > > > this. Could someone enlighten me as to how I could implement this?
> > > > > Cheers, Chris.
> > > > > PS: I hope this isn't a FAQ but I've searched this group and the
> web
> > > > > on the matter, but haven't found an answer, so sorry in advance if
> > > > > this has been answered before.
> >
>

--~--~-~--~~~---~--~~
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: Javascript "confirm(..)" dialog with ajaxButton

2009-04-28 Thread marius d.

Pretty much all SHtml function related to Ajax invokes the ajax call
as to click the link, button, etc. SHtml.ajaxCall function allow you
to provide a JsExp (which could be any JavScript expression) who's
result would be passed to the ajax call. But I don't think this will
help your case a whole lot.

Maybe we can do another SHtml helper that would help your case. Such
as:


1. On click, we are calling a user defined Ajax function and pass to
it a function that does the actual Ajax call
2 In your JS function (which would be the confirm function) you can
choose to call the function passed whenever you want, so you'd have
the liberty to actually do the ajax request or not.

Of course you could implement this yourself quite easily but I think
it worth having something like that in SHtml for a simpler use.

Looks to me that this would be a nice addition to SHtml.

Br's,
Marius

On Apr 28, 3:48 am, Chris  wrote:
> Hi Tim,
> just one addition. Wicket has something called an ajaxcall decorator
> (IAjaxCallDecorator) that allows you to modify the script and more
> specifically the "decorateScript" method allows you to prepend a char-
> sequence to the script. This would allow me to do exactly what I want.
> Is there any way in Lift to achieve the same thing? I'd really like to
> avoid dealing with JavaScript directly apart from something as trivial
> as the "confirm(...)" dialog or similar.
> Cheers, Chris.
>
> On Apr 28, 9:56 am, Chris  wrote:
>
> > Hi Tim,
> > not sure if I really got across what I need. I need the AJAX
> > functionality in this case as I'm displaying a large amount of data in
> > a table and would like to allow the user to delete individual records
> > without the refresh problem of having the button cause a POST. I also
> > need to make sure the user hasn't "accidentally" pressed "delete",
> > hence the "confirm(..)" dialog. Does option (1) above prevent the
> > subsequent call of the ajaxButton if the user presses "cancel" on the
> > JS "confirm" dialog, but allow it if he presses "OK"? Option (2) is
> > just a slightly different way of doing what I've already tried (I
> > added the "onclick" attribute to the ajaxButton call itself) and this
> > subsequently removes the actual AJAX call itself.
> > Thanks, Chris.
>
> > On Apr 28, 9:22 am, Timothy Perrett  wrote:
>
> > > Hey,
>
> > > Seems like you have a couple of options...
>
> > > 1. you could just write normal javascript irrespective of lift and
> > > just put that in a JS file like normal. Something like:
>
> > > $('#mybutton').click(function(e){
> > >   confirm... //blah blah code here
>
> > > });
>
> > > 2. If you *really* want to use the on-click handler (personally I
> > > wouldn't) then you could do somethig like this in your snippet:
>
> > > SHtml.ajaxButton("submit", () => println("badger")) % ("onclick" ->
> > > "confirm();")
>
> > > I would highly recommend using option one as the functionality is
> > > purely a client side concern in that sense and nothing to do with
> > > lift. Does that help?
>
> > > Cheers, Tim
>
> > > On Apr 27, 11:29 pm, Chris  wrote:
>
> > > > Hi there,
> > > > I'm pretty new to Lift and Scala for that matter, but have long been
> > > > on the lookout for something like seaside running on the JVM and this
> > > > is just great! Now to my issue...
> > > > I've hit a brick-wall in the attempt to get a confirmation dialog
> > > > working before executing an ajaxButton. I've tried adding an "onclick"
> > > > attribute to the ajaxButton call, but that only seems to replace the
> > > > AJAX call itself rather than say prepending the call with the contents
> > > > of the "onclick" attribute. I'd like to implement a "delete" button
> > > > with a confirmation dialog. I've looked at ModalDialog, but due to my
> > > > inexperience and lack of examples haven't found a way of achieving
> > > > this. Could someone enlighten me as to how I could implement this?
> > > > Cheers, Chris.
> > > > PS: I hope this isn't a FAQ but I've searched this group and the web
> > > > on the matter, but haven't found an answer, so sorry in advance if
> > > > this has been answered before.
--~--~-~--~~~---~--~~
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: jQuery datePicker?

2009-04-28 Thread TylerWeir

And by "just" I mean "use"

What an odd typo.

On Apr 28, 1:44 pm, TylerWeir  wrote:
> Grab the git repo for PocketChange, we just the UI 
> Datepicker:http://github.com/tjweir/pocketchangeapp/tree
>
> On Apr 28, 12:06 pm, Andrew Scherpbier  wrote:
>
>
>
> > Scala, Javascript, and Lift newbie question:
>
> > How do I integrate the jQuery datepicker?
>
> > I'd like to enforce some standard date format that a user must enter for
> > a database field.  I'm use CRUDify on a model object with a date field
> > and I'd like to have it use a datepicker instead of just a text field
> > when entering a date.
>
> > I'm using lift-1.1-SNAPSHOT
>
> > --Andrew
--~--~-~--~~~---~--~~
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: jQuery datePicker?

2009-04-28 Thread TylerWeir

Grab the git repo for PocketChange, we just the UI Datepicker:
http://github.com/tjweir/pocketchangeapp/tree


On Apr 28, 12:06 pm, Andrew Scherpbier  wrote:
> Scala, Javascript, and Lift newbie question:
>
> How do I integrate the jQuery datepicker?
>
> I'd like to enforce some standard date format that a user must enter for
> a database field.  I'm use CRUDify on a model object with a date field
> and I'd like to have it use a datepicker instead of just a text field
> when entering a date.
>
> I'm using lift-1.1-SNAPSHOT
>
> --Andrew
--~--~-~--~~~---~--~~
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: malformed Scala signature of User

2009-04-28 Thread David Pollak
How about:

override def fieldOrder = List[BaseOwnedMappedField[User]](id, firstName,
lastName, email,
locale, timezone, password, textArea)

The compiler often gets the type signature wrong on Lists of MappedField.



On Tue, Apr 28, 2009 at 9:51 AM, erik.karls...@iki.fi <
erik.b.karls...@gmail.com> wrote:

>
> hello,
>
> Tried to dig a bit more. I noticed that I get the cryptic compile
> error with the mock objects if I have the following code for User:
> ---
> object User extends MetaUser {
>
>  override def dbTableName = "users" // define the DB table name
>  override def screenWrap = Full( at="content">
>   )
>
>   override def fieldOrder = List(id, firstName, lastName, email,
> locale, timezone, password, textArea)
>   override def skipEmailValidation = true
> }
>
> trait MetaUser extends User with MetaMegaProtoUser[User]
>
> /**
>  * An O-R mapped "User" class that includes first name, last name,
> password and we add a "Personal Essay" to it
>  */
> class User extends MegaProtoUser[User] {
>  def getSingleton = User // what's the "meta" server
>
>  // define an additional field for a personal essay
>  object textArea extends MappedTextarea(this, 2048) {
>override def textareaRows  = 10
>override def textareaCols = 50
>override def displayName = "Personal Essay"
>  }
> }
> ---
>
> However, if I change the line:
>
> override def fieldOrder = List(id, firstName, lastName, email, locale,
> timezone, password, textArea)
>
> to:
>
> override def fieldOrder = List(firstName, lastName, email, locale,
> timezone, password,textArea)
>
> then things get compiled nicely. I noticed that if I putt the Id
> anywhere inside the list the compile error hits.
> Am I just doing something really stupid or have I hit some real issue
> with the compiler? I think more about the first option.
>
> br,
> - Erik
>
> On Apr 28, 12:52 am, "erik.karls...@iki.fi"
>  wrote:
> > Hi,
> >
> > I have noticed this and I always run mvn clean before running the
> > tests or just compiling them. So I get the issue even I run the clean
> > command.
> >
> > -erik
> >
> > David Pollak kirjoitti:
> >
> > > Erik,
> >
> > > Please do an:
> >
> > > mvn clean test
> >
> > > From the command line.
> >
> > > The Eclipse plugin uses a different version of Scala than does Lift.
>  There
> > > will be weird errors like the one you've seen.
> >
> > > Thanks,
> >
> > > David
> >
> > > On Mon, Apr 27, 2009 at 2:24 PM, erik.karls...@iki.fi <
> > > erik.b.karls...@gmail.com> wrote:
> >
> > > > Weird thing is  that I'm able to mock "MetaTeam":
> >
> > > > ---
> > > > trait MetaTeam extends Team with LongKeyedMetaMapper[Team] {
> > > >  def findByUser(user:User): List[Team]
> > > > }
> >
> > > > object Team extends MetaTeam {
> > > >  def findByUser(user:User): List[Team] =
> > > >UserTeam.findAll(
> > > >  By(UserTeam.user, user.id),
> > > >  OrderBy(UserTeam.team, Ascending)).map(_.team.obj.open_!)
> > > > }
> > > > ---
> >
> > > > - Erik
> >
> > > > On Apr 28, 12:19 am, "erik.karls...@iki.fi"
> > > >  wrote:
> > > > > Hi,
> >
> > > > > I have set of specs test and I'm using mockito
> >
> > > > > I noticed that if I have a list of Users (pretty much same class
> that
> > > > > is coming from archetype) and do following test:
> >
> > > > > users(1).firstName must beEqualTo(name2)
> >
> > > > > Then I get :
> > > > > [WARNING] Exception in thread "main" java.lang.RuntimeException:
> > > > > malformed Scala signature of User at 13798; reference type _5 of
> > > > >  refers to nonexisting symbol.
> >
> > > > > If the line is changed to:
> >
> > > > > (users(1).firstName == name2) must beTrue
> >
> > > > > it compiles really nicely. Based on previous posts here it seams to
> be
> > > > > that this is scala bug (I use 2.7.4|3)
> >
> > > > > Much bigger problem for me is that when trying to mock the User:
> >
> > > > > var userDbMock = mock[MetaUser]
> >
> > > > > causes the same issue:
> > > > > [WARNING] Exception in thread "main" java.lang.RuntimeException:
> > > > > malformed Scala signature of User at 13798; reference type _5 of
> > > > >  refers to nonexisting symbol.
> >
> > > > > MetaUser is trait:
> >
> > > > > object User extends MetaUser {
> >
> > > > >   override def dbTableName = "users" // define the DB table name
> > > > >   override def screenWrap = Full( > > > > at="content">
> > > > >)
> > > > >   // define the order fields will appear in forms and output
> > > > >   override def fieldOrder = List(id, firstName, lastName, email,
> > > > >   locale, timezone, password, textArea)
> >
> > > > >   // comment this line out to require email validations
> > > > >   override def skipEmailValidation = true
> >
> > > > > }
> >
> > > > > trait MetaUser extends User with MetaMegaProtoUser[User]  {
> >
> > > > > }
> >
> > > > > Have anybody encountered similar problem when mocking or even found
> a
> > > > > workaround for this case?
> >
> > > > > br,
> > > > > - Erik
> >
> >

[Lift] Re: malformed Scala signature of User

2009-04-28 Thread erik.karls...@iki.fi

hello,

Tried to dig a bit more. I noticed that I get the cryptic compile
error with the mock objects if I have the following code for User:
---
object User extends MetaUser {

  override def dbTableName = "users" // define the DB table name
  override def screenWrap = Full(
   )

  override def fieldOrder = List(id, firstName, lastName, email,
locale, timezone, password, textArea)
  override def skipEmailValidation = true
}

trait MetaUser extends User with MetaMegaProtoUser[User]

/**
 * An O-R mapped "User" class that includes first name, last name,
password and we add a "Personal Essay" to it
 */
class User extends MegaProtoUser[User] {
  def getSingleton = User // what's the "meta" server

  // define an additional field for a personal essay
  object textArea extends MappedTextarea(this, 2048) {
override def textareaRows  = 10
override def textareaCols = 50
override def displayName = "Personal Essay"
  }
}
---

However, if I change the line:

override def fieldOrder = List(id, firstName, lastName, email, locale,
timezone, password, textArea)

to:

override def fieldOrder = List(firstName, lastName, email, locale,
timezone, password,textArea)

then things get compiled nicely. I noticed that if I putt the Id
anywhere inside the list the compile error hits.
Am I just doing something really stupid or have I hit some real issue
with the compiler? I think more about the first option.

br,
- Erik

On Apr 28, 12:52 am, "erik.karls...@iki.fi"
 wrote:
> Hi,
>
> I have noticed this and I always run mvn clean before running the
> tests or just compiling them. So I get the issue even I run the clean
> command.
>
> -erik
>
> David Pollak kirjoitti:
>
> > Erik,
>
> > Please do an:
>
> > mvn clean test
>
> > From the command line.
>
> > The Eclipse plugin uses a different version of Scala than does Lift.  There
> > will be weird errors like the one you've seen.
>
> > Thanks,
>
> > David
>
> > On Mon, Apr 27, 2009 at 2:24 PM, erik.karls...@iki.fi <
> > erik.b.karls...@gmail.com> wrote:
>
> > > Weird thing is  that I'm able to mock "MetaTeam":
>
> > > ---
> > > trait MetaTeam extends Team with LongKeyedMetaMapper[Team] {
> > >  def findByUser(user:User): List[Team]
> > > }
>
> > > object Team extends MetaTeam {
> > >  def findByUser(user:User): List[Team] =
> > >    UserTeam.findAll(
> > >      By(UserTeam.user, user.id),
> > >      OrderBy(UserTeam.team, Ascending)).map(_.team.obj.open_!)
> > > }
> > > ---
>
> > > - Erik
>
> > > On Apr 28, 12:19 am, "erik.karls...@iki.fi"
> > >  wrote:
> > > > Hi,
>
> > > > I have set of specs test and I'm using mockito
>
> > > > I noticed that if I have a list of Users (pretty much same class that
> > > > is coming from archetype) and do following test:
>
> > > > users(1).firstName must beEqualTo(name2)
>
> > > > Then I get :
> > > > [WARNING] Exception in thread "main" java.lang.RuntimeException:
> > > > malformed Scala signature of User at 13798; reference type _5 of
> > > >  refers to nonexisting symbol.
>
> > > > If the line is changed to:
>
> > > > (users(1).firstName == name2) must beTrue
>
> > > > it compiles really nicely. Based on previous posts here it seams to be
> > > > that this is scala bug (I use 2.7.4|3)
>
> > > > Much bigger problem for me is that when trying to mock the User:
>
> > > > var userDbMock = mock[MetaUser]
>
> > > > causes the same issue:
> > > > [WARNING] Exception in thread "main" java.lang.RuntimeException:
> > > > malformed Scala signature of User at 13798; reference type _5 of
> > > >  refers to nonexisting symbol.
>
> > > > MetaUser is trait:
>
> > > > object User extends MetaUser {
>
> > > >   override def dbTableName = "users" // define the DB table name
> > > >   override def screenWrap = Full( > > > at="content">
> > > >                                )
> > > >   // define the order fields will appear in forms and output
> > > >   override def fieldOrder = List(id, firstName, lastName, email,
> > > >   locale, timezone, password, textArea)
>
> > > >   // comment this line out to require email validations
> > > >   override def skipEmailValidation = true
>
> > > > }
>
> > > > trait MetaUser extends User with MetaMegaProtoUser[User]  {
>
> > > > }
>
> > > > Have anybody encountered similar problem when mocking or even found a
> > > > workaround for this case?
>
> > > > br,
> > > > - Erik
>
> > > > PS. Weirdest thing is that I'm able to run the test cases in
> > > > Eclipse...
>
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Beginning Scalahttp://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:

[Lift] Re: 1.1-SNAPSHOT API docs

2009-04-28 Thread Timothy Perrett

The webkit docs are here:

http://scala-tools.org/mvnsites-snapshots/liftweb/lift-webkit/scaladocs/inde
x.html

If you want to generate them locally, just download the lift src and run
this from the top level directory:

mvn install scala:doc

Cheers, Tim


On 28/04/2009 17:08, "Andrew Scherpbier"  wrote:

> 
> Are the 1.1-SNAPSHOT API docs online somewhere?
> If not, can I generate them myself using maven2?
> 
> (As an aside, I'm new to maven...  How the !&#$#$ do you figure out what
> commands are available in maven?  I'm used to "ant -projecthelp" to give
> me a hint as to what is available)
> 
> --Andrew
> 
> > 
> 



--~--~-~--~~~---~--~~
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: 1.1-SNAPSHOT API docs

2009-04-28 Thread David Pollak
On Tue, Apr 28, 2009 at 9:08 AM, Andrew Scherpbier wrote:

>
> Are the 1.1-SNAPSHOT API docs online somewhere?


http://scala-tools.org/mvnsites-snapshots/liftweb/lift-util/scaladocs/index.html
http://scala-tools.org/mvnsites-snapshots/liftweb/lift-webkit/scaladocs/index.html

etc.


> If not, can I generate them myself using maven2?
>
> (As an aside, I'm new to maven...  How the !&#$#$ do you figure out what
> commands are available in maven?  I'm used to "ant -projecthelp" to give
> me a hint as to what is available)
>
> --Andrew
>
> >
>


-- 
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] 1.1-SNAPSHOT API docs

2009-04-28 Thread Andrew Scherpbier

Are the 1.1-SNAPSHOT API docs online somewhere?
If not, can I generate them myself using maven2?

(As an aside, I'm new to maven...  How the !&#$#$ do you figure out what 
commands are available in maven?  I'm used to "ant -projecthelp" to give 
me a hint as to what is available)

--Andrew

--~--~-~--~~~---~--~~
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] jQuery datePicker?

2009-04-28 Thread Andrew Scherpbier

Scala, Javascript, and Lift newbie question:

How do I integrate the jQuery datepicker?

I'd like to enforce some standard date format that a user must enter for 
a database field.  I'm use CRUDify on a model object with a date field 
and I'd like to have it use a datepicker instead of just a text field 
when entering a date.

I'm using lift-1.1-SNAPSHOT

--Andrew


--~--~-~--~~~---~--~~
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] [patch] work around for errors running unit tests in IDEA/NetBeans

2009-04-28 Thread James Strachan

I was trying out various IDEs to run the unit tests in the lift-webkit
module and was getting errors. I guess due to recent changes in scala
language version?

Here's the trivial patch that fixes it - it seems reflection on the
continuation stuff was no longer working
http://github.com/jstrachan/liftweb/commit/2ca3b683733969bd8689e36dad99a990711b4071

-- 
James
---
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

--~--~-~--~~~---~--~~
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: how to add object into session scope in lift

2009-04-28 Thread David Pollak
On Tue, Apr 28, 2009 at 5:30 AM, pravin  wrote:

>
> Hi guys,
> I want to add objects into session scope.
>
> i am using following code :
>
> object sessionObj extends SessionVar[HashMap[String, Int]](
>new HashMap[String, Int]
>  {
>   override def default(key: String): Int = 0
> }
> )
>
> So as per my understanding :-
>
>1. Session object is of HashMap[String, Int] type.
>2. I want to add no of string object into above map so i can
> access them during my session


to add an object to this session var:

sessionObj.is+ ("foo" -> 1)
sessionObj.is+ ("bar" -> 88)

if (sessionObj.is.contains("bar")) println("yes, it works")

The only caveat is that HashMap is not thread-safe and you might be
accessing this object from multiple threads at the same time.



>
>
>correct me if i am wrong
>
>
>   So please let me know how can i add/remove  different String object
> from session scope with above code snippet
>
> Thanks in advance
>
> >
>


-- 
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: how to add object into session scope in lift

2009-04-28 Thread Derek Chen-Becker
Or even scala.collection.Map ;)

On Tue, Apr 28, 2009 at 7:58 AM, Timothy Perrett wrote:

>
>
> Try:
>
> // this gets you whatever is in the session object so add to it here
> SessionObj.is
>
> Do you specifically need to use Java HashMap? If not, seems like
> List[(String,Int)] would be more lift-esq.
>
> Cheers, Tim
>
> On 28/04/2009 13:30, "pravin"  wrote:
>
> >
> > Hi guys,
> > I want to add objects into session scope.
> >
> > i am using following code :
> >
> > object sessionObj extends SessionVar[HashMap[String, Int]](
> > new HashMap[String, Int]
> >   {
> >override def default(key: String): Int = 0
> >  }
> > )
> >
> > So as per my understanding :-
> >
> > 1. Session object is of HashMap[String, Int] type.
> > 2. I want to add no of string object into above map so i can
> > access them during my session
> >
> > correct me if i am wrong
> >
> >
> >So please let me know how can i add/remove  different String object
> > from session scope with above code snippet
> >
> > Thanks in advance
> >
> > >
> >
>
>
>
> >
>

--~--~-~--~~~---~--~~
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: jpa, emf Model and unit tests

2009-04-28 Thread Derek Chen-Becker
OK, the DDD approach makes more sense. Having a layer of repository DAO
interfaces that can be implemented by concrete provider classes is a common
way of separating this out, and is much cleaner than having any DAO
functionality on your entities proper. Just thinking off the top of my head,
you could implement this as a manager object, like:

object EntityRepository {
  var engine : EntityDAO = _
}

trait EntityDAO {
  def locateAddress(addr : String) = {...}
  ...
}

class HibernateDAO(sessionFactory : ...) extends EntityDAO {
  ...
}

Then you can set the engine in either your Boot.boot, or in your test setup
hooks based on your needs.

On Tue, Apr 28, 2009 at 2:50 AM, TSP  wrote:

>
> But you don't want the Session in the domain model I thought.
>
> Anyway, after a few hours digging around looking at how other people
> do this stuff with respect to DDD in particular, it looks like I am
> asking the wrong question to a certain extent. The way it is done in
> the DDD site sample app (dddsample.sourceforge.net if you;'re
> interested) is to have repositories - one for each "aggregate" - set
> of linked classes (typical example is an order which aggregates order
> lines and possibily delivery history). The repositories are
> implemented as interfaces and have persistence neutral finders "get
> all outstanding orders with credit-stopped customers" for example.
> This is part of the domain model, but returns typical jpa/hibernate
> persisted objects. The implementation of the repository is hibernate
> aware and uses getCurrentSession() quite freely. The implementation is
> injected via spring.
>
> Back in my context, this means I want my repository impls to be EM or
> session aware too - so my original question stands - but the
> repository mechanism separates the domain model from the direct
> persistence layer which should allay your concerns.
>
> Tim
>
> On Apr 28, 6:48 am, Viktor Klang  wrote:
> > Also, if you use Hibernate, you can use:
> >
> > *Session.createFilter*(city.getAddresses(), "where this.name like
> > 'S%'").list();
> >
> > On Tue, Apr 28, 2009 at 5:31 AM, Derek Chen-Becker <
> dchenbec...@gmail.com>wrote:
> >
> >
> >
>
> >
>

--~--~-~--~~~---~--~~
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: how to add object into session scope in lift

2009-04-28 Thread Timothy Perrett


Try:

// this gets you whatever is in the session object so add to it here
SessionObj.is

Do you specifically need to use Java HashMap? If not, seems like
List[(String,Int)] would be more lift-esq.

Cheers, Tim

On 28/04/2009 13:30, "pravin"  wrote:

> 
> Hi guys,
> I want to add objects into session scope.
> 
> i am using following code :
> 
> object sessionObj extends SessionVar[HashMap[String, Int]](
> new HashMap[String, Int]
>   {
>override def default(key: String): Int = 0
>  }
> )
> 
> So as per my understanding :-
> 
> 1. Session object is of HashMap[String, Int] type.
> 2. I want to add no of string object into above map so i can
> access them during my session
> 
> correct me if i am wrong
> 
> 
>So please let me know how can i add/remove  different String object
> from session scope with above code snippet
> 
> Thanks in advance
> 
> > 
> 



--~--~-~--~~~---~--~~
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] how to add object into session scope in lift

2009-04-28 Thread pravin

Hi guys,
I want to add objects into session scope.

i am using following code :

object sessionObj extends SessionVar[HashMap[String, Int]](
new HashMap[String, Int]
  {
   override def default(key: String): Int = 0
 }
)

So as per my understanding :-

1. Session object is of HashMap[String, Int] type.
2. I want to add no of string object into above map so i can
access them during my session

correct me if i am wrong


   So please let me know how can i add/remove  different String object
from session scope with above code snippet

Thanks in advance

--~--~-~--~~~---~--~~
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: jpa, emf Model and unit tests

2009-04-28 Thread TSP

Hi Derek,

This is proving a useful debate for me since it has helped clarify my
issues.

As far as I can see the "conventional" method of using JPA is, within
a single "session" to use some initial query process to obtain one or
more entities. All subsequent operations within that session must be
via navigation through the associations of those initial entities that
are expressly bi-directional.

The DDD model, as I understand it, takes the view that there should be
no unnecessary bi-directional links and that reaching objects by
searching the other side of the association is not only acceptable but
to be encouraged, since it reduces the interlinking between
components. This is a perfectly respectable viewpoint - not just some
weird idea I've dreamed up (honest!). my sympathies are in this camp.

Environments like Spring (and Grails which is what I've been working
in) enable the second model, since they'll happily inject the current
hibernate session (and presumably jpa EM) anywhere you want it to be
injected. So it's quite straight forward to use without breaking the
usage patterns.

But your scalajpa follows, essentially, the stricter line that once
the em has given you the first objects (presumably from a controller
or service based query, thus outside the domain model), that's it.

Does that correctly sum up the arguments?

Tim




On Apr 28, 4:31 am, Derek Chen-Becker  wrote:
> OK, for one, the bidirectional mapping adds no cost in terms of DB access
> other than the time it takes you to write it. Collections are lazily loaded,
> so unless your code *retrieves* City.addresses, the database never gets hit.
> JPA is really not designed with the concept of entities having access to the
> EntityManager that loaded them, although there may be some provider-specific
> way to get at it. Unfortunately, you're on your own if you want an entity to
> obtain other entities via queries or some other non-relationship means.
> Generally, if you need that kind of coverage you should do it through logic
> code that can glue things together instead of tying it to your entities.
> After all, I'd argue that if the logic isn't part of what you can express in
> the database then it doesn't belong in the entity classes anyways. When you
> say "bogged down in bidirectional mappings" are you referring simply to the
> overhead of adding the mappings to your entities, or do you think that
> there's some performance issue with bidirectional mappings (AFAIK, there
> aren't any).
>
> Derek
>
> On Mon, Apr 27, 2009 at 6:01 PM, TSP  wrote:
>

--~--~-~--~~~---~--~~
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: jpa, emf Model and unit tests

2009-04-28 Thread TSP

But you don't want the Session in the domain model I thought.

Anyway, after a few hours digging around looking at how other people
do this stuff with respect to DDD in particular, it looks like I am
asking the wrong question to a certain extent. The way it is done in
the DDD site sample app (dddsample.sourceforge.net if you;'re
interested) is to have repositories - one for each "aggregate" - set
of linked classes (typical example is an order which aggregates order
lines and possibily delivery history). The repositories are
implemented as interfaces and have persistence neutral finders "get
all outstanding orders with credit-stopped customers" for example.
This is part of the domain model, but returns typical jpa/hibernate
persisted objects. The implementation of the repository is hibernate
aware and uses getCurrentSession() quite freely. The implementation is
injected via spring.

Back in my context, this means I want my repository impls to be EM or
session aware too - so my original question stands - but the
repository mechanism separates the domain model from the direct
persistence layer which should allay your concerns.

Tim

On Apr 28, 6:48 am, Viktor Klang  wrote:
> Also, if you use Hibernate, you can use:
>
> *Session.createFilter*(city.getAddresses(), "where this.name like
> 'S%'").list();
>
> On Tue, Apr 28, 2009 at 5:31 AM, Derek Chen-Becker 
> wrote:
>
>
>

--~--~-~--~~~---~--~~
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: override def editMenuLocParams

2009-04-28 Thread Tobias Daub
My pom.xml file says "1.1-SNAPSHOT" and I changed it to scala version 
2.7.4 and did a "mvn -U clean install" again. But I still get the same 
error.?






David Pollak schrieb:
>
>
> On Sun, Apr 26, 2009 at 1:11 PM, Tobias Daub  > wrote:
>
>
> Hi There,
>
> I've got a compiler error when I tried to override those new CRUDify
> methods.
>
> value editMenuLocParams is not a member of
> org.tobster.model.LimitOrder
> with
> net.liftweb.mapper.KeyedMetaMapper[Long,org.tobster.model.LimitOrder]
> with ScalaObject
>
> I tried it with showAllMenuLocParams too, and got the same error.
>
> The class LimitOrder extends CRUDify and mixes in another traid. I did
> "mvn -U clean install" and several "mvn -U jetty:run" and created
> a new
> project and copied the sources in there, but still got the same error.
> Seems to me that my local version wasn't updated to 1.1, or?
>
>
> Does your pom.xml file list Lift 1.0 or 1.1-SNAPSHOT?
>  
>
>
>
>
> thanks.
>
>
>
>
>
> -- 
> 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
-~--~~~~--~~--~--~---