[Lift] Re: Snippet Failure

2008-09-01 Thread Marius
I'm using Eclipse on Ubuntu but didn't upgrade the plugin to version 2.7.2 ... Br's, Marius On Sep 1, 9:29 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: David, Marius, It looks like it was an eclipse problem. mvn *clean* jetty:run Where the clean is very important. I now have hello

[Lift] Re: json form

2008-09-01 Thread Marius
I also copy pasted your code and it compiles and works fine for me. But if you're using Scala 2.7.2 it might cause problems. Can you try with 2.7.1? Br's, Marius On Sep 1, 8:04 pm, Marius [EMAIL PROTECTED] wrote: Hi, I have pretty much the same code working just fine but the imports

[Lift] Re: RTL Localization

2008-09-02 Thread Marius
luck with UAT :) P.S. May I ask what difficulties are you facing with regards of localization/internationalization? Br's, Marius On Sep 2, 9:19 am, Tim Perrett [EMAIL PROTECTED] wrote: Hey chaps, Im currently out in israel right now, and something has just occurred to me: with languages

[Lift] Re: RTL Localization

2008-09-02 Thread Marius
On Sep 2, 5:17 pm, Tim Perrett [EMAIL PROTECTED] wrote: Hey Marius, I've been working on RTL localization on my current job for Saudi- Arabia (unfortunately not lift). Localization per-se was not a problem but it was challenging to make coherent right to left. Putting dir=RTL for html

[Lift] Re: RTL Localization

2008-09-03 Thread Marius
,images) are server by a frontend server with reverse proxy on it. Br's, Marius On Sep 3, 10:06 am, Marius [EMAIL PROTECTED] wrote: On Sep 3, 9:05 am, Tim Perrett [EMAIL PROTECTED] wrote: ... it really depends on the specific situation. I'm not sure though in what extend this is a framework

[Lift] Re: Missing Scala class?

2008-09-09 Thread Marius
Scala version is specified in the parent pom properties scala.version2.7.1/scala.version /properties Br's, Marius On Sep 8, 9:06 pm, Kris Nuttycombe [EMAIL PROTECTED] wrote: The deps in my pom.xml are lift-webkit 0.9, scala 2.7.1 Out of curiosity, why does the lift-webkit pom

[Lift] Re: Template questions

2008-09-10 Thread Marius
(item.getName } ... just out of curiosity is there a reason why you;re using java,util.collection and not Scala List, Seq etc? Br's, Marius On Sep 11, 12:16 am, Kris Nuttycombe [EMAIL PROTECTED] wrote: Man, I really wish I understood the Scala type system better. def list(xhtml

[Lift] Re: Desiderata. Was: Re: [Lift] Re: RBAC in Lift

2008-09-11 Thread Marius
On Sep 11, 10:27 pm, Charles F. Munat [EMAIL PROTECTED] wrote: The websites I build tend to have the following features in common: 1. Some method of authentication. I mostly roll my own, but as I sometimes have one set of users using multiple sites, I'm curious about OpenID. I know that

[Lift] Re: Template questions

2008-09-11 Thread Marius
. Derek On Wed, Sep 10, 2008 at 12:39 PM, Kris Nuttycombe [EMAIL PROTECTED] wrote: Hrm. I think that I need to do something extra there to extract and bind against just the order:items element to avoid re-binding over the entire contents of the snippet. Marius, can you expand at all

[Lift] Re: [scala] A Lift and Scala presentation at SAP TechEd

2008-09-11 Thread Marius
BRAVO ! On Sep 12, 12:01 am, David Pollak [EMAIL PROTECTED] wrote: http://www.youtube.com/watch?v=JFJMpFkpoQU Marius Danciu wrote: Excellent Dave and congrats! Can't wait to see the videos ... hopefully this time the videos quality is better so I can actually see you :) Br's

[Lift] Re: Desiderata. Was: [Lift] RBAC in Lift

2008-09-12 Thread Marius
to be special provisions for StatefulSnippets if the credentials change from them starting? Well since any snippet can be context aware (has access to LiftSession or some SessionVar-s) lots of things can be easily done. Marc On 12/09/2008, at 8:09 AM, Charles F. Munat wrote: Marius wrote

[Lift] Re: Snippet question

2008-09-13 Thread Marius
Does the Misc class package corresponds with the snippet folder? ... looks like it could not lod the Misc class as a snippet. Br's, Marius On Sep 12, 8:37 am, Charles F. Munat [EMAIL PROTECTED] wrote: I copied the Misc snippet over from the example, changed the package and import statements

[Lift] Lift Scala 2.7.2-rc1

2008-09-13 Thread Marius
], why))) case _ = } } ... now Exit takes an AbstractActor instead of an Actor and I had to narrow it down. Did anyone find out anything else ? P.S. I'm not suggesting to switch to 2.7.2 until it i final but I think we should kind of keep an eye on it ... Br's, Marius

[Lift] Source file encoding ...

2008-09-13 Thread Marius
Is anyone seeing this? IO error while decoding /media/WORK/marius/workspace/lift/liftweb- framework/src/test/scala/net/liftweb/util/StringHelpersSpec.scala with UTF-8 Please try specifying another one using the -encoding option Br's, Marius

[Lift] Re: Lift Scala 2.7.2-rc1

2008-09-13 Thread Marius
Very cool ! ... forgot about that :( On Sep 13, 4:40 pm, David Pollak [EMAIL PROTECTED] wrote: Marius, Jorge has a 2.7.2 branch that he's actively maintaining. Thanks, David Marius wrote: Hi, Has anyone tried to compile lift with Scala 2.7.2-rc1 ? I just did and the only change I

[Lift] Re: Custom snippet attributes

2008-09-16 Thread Marius
. So sems to me that the fix would be to just remove the last line: attrs.get(form).map(ft = form action={S.uri} method={ft.text}{ret}/form % checkMultiPart(attrs)) getOrElse ret Br's, Marius On Sep 16, 4:54 pm, Tim Perrett [EMAIL PROTECTED] wrote: Hey guys, If you have a call like

[Lift] Re: Source file encoding ...

2008-09-21 Thread Marius
... so kind of risky. Br's, Marius On Sep 21, 8:52 pm, Jorge Ortiz [EMAIL PROTECTED] wrote: well, heh, so the relevant test is: encode a string replacing non-ASCII characters by their unicode value in { niña.encJs must_== 'ni\\u00f1a' } --j On Sun, Sep 21, 2008 at 3:46 AM

[Lift] Re: Validations, Server side controls etc

2008-09-21 Thread Marius
Kind of funny ... we were writing almost in parallel :) On Sep 21, 9:30 pm, Tim Perrett [EMAIL PROTECTED] wrote: WOW! Marius this is so fricking sweet. well done, awesome stuff indeed! Functionally, I think this would serve as an excellent place to start for providing validation

[Lift] Re: Validations, Server side controls etc

2008-09-21 Thread Marius
I thought I replied :) On Sep 21, 9:37 pm, Tim Perrett [EMAIL PROTECTED] wrote: Great minds Marius - you sent your mail at 19:29, and mine at 19:30! What do you think on my comments above? Cheers, Tim On 21 Sep 2008, at 19:29, Marius wrote: Guys please try running the application

[Lift] Re: Validations, Server side controls etc

2008-09-21 Thread Marius
On Sep 21, 9:48 pm, Tim Perrett [EMAIL PROTECTED] wrote: That would be sweet ! ... anything particular in mind? ... things like email, phone number validation etc? Totally - nothing crazy to begin with, perhaps with some way of passing a regex or whatever to ward off boiler plate code

[Lift] Re: Source file encoding ...

2008-09-21 Thread Marius
? --j On Sun, Sep 21, 2008 at 11:20 AM, David Pollak [EMAIL PROTECTED] wrote: If we do the \u encoding thing, the test will still be valid. On Sun, Sep 21, 2008 at 11:18 AM, Marius [EMAIL PROTECTED] wrote: I think it is reasonable to comment out this test until a better solution can

[Lift] Re: ExtLink not working

2008-09-24 Thread Marius
Looks to me like a bug. I mean it appears to render the random string generated instead of what createLink returns. Br's, Marius On Sep 24, 12:15 pm, Charles F. Munat [EMAIL PROTECTED] wrote: When I create an external link in the SiteMap thus: Menu(Loc(google, ExtLink(http://google.com

[Lift] About _root_

2008-09-24 Thread Marius
Hi, I understand from SLS what _root_ does ... but I'm wondering what is the reason behind it in lift. What was the problem? Br's, Marius --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post

[Lift] Re: Image Submit Buttons fail to Submit (in IE)

2008-09-26 Thread Marius
to detect if a mobile browser is used instead of a PC browser. I don't think there is some other option then user-agent. But user- agent can be used today in lift but I agree that a higher abstraction is needed. P.S. At JS level, yeah object detection sounds really good. Br's, Marius On Sep 26, 12:25 pm

[Lift] Re: Image Submit Buttons fail to Submit (in IE)

2008-09-26 Thread Marius
Cool. On Sep 26, 7:40 pm, David Pollak [EMAIL PROTECTED] wrote: Marius wrote: +1. So is anyone taking ownership on this? ... I could add this support within a week or two maybe. I'd rather you continue to work on the Record/Field stuff. Can we get another taker on this project

[Lift] Re: Image Submit Buttons fail to Submit (in IE)

2008-09-29 Thread Marius
walls in the past with other frameworks). But never mind ... it was just a though not actually a full blown proposal. Br's, Marius On Sep 29, 7:24 pm, Tim Perrett [EMAIL PROTECTED] wrote: IMHO, I wouldn't like this way of doing it. It seems too fragile. Experience tells us that its usually

[Lift] Re: error page

2008-10-02 Thread Marius
Hi, Please see LiftRules.browserResponseToException ... this is called when an exception is thrown from the application. Here you can intercept the Throwable and redirect to your own error page using RedirectResponse or RedirectWithState. Br's, Marius On Oct 2, 10:48 am, Oliver [EMAIL

[Lift] Re: error page

2008-10-02 Thread Marius
Or you can use LiftRules.logAndReturnExceptionToBrowser ...actually browserResponseToException is ultimately called by logAndReturnExceptionToBrowser On Oct 2, 10:59 am, Marius [EMAIL PROTECTED] wrote: Hi, Please see LiftRules.browserResponseToException ... this is called when an exception

[Lift] Re: Please Welcome Al Thompson to the Lift committers

2008-10-03 Thread Marius
WELCOME Al ! On Oct 3, 3:14 am, David Pollak [EMAIL PROTECTED] wrote: Folks, I've know Al Thompson for longer than any of the other Lift committers. Cast you mind back to '97... I was doing crazy things with browser-based, multi-user spreadsheets. Al was my technical liaison at Sun. Now

[Lift] Re: Todays questions

2008-10-03 Thread Marius
I guess you could disable the submit button on first submit? ... on server side you could get rid of the processing function from the cache that is associated with that specific thing. However this kind of seems unnecessary for your use-case ... maybe. Br's, Marius On Oct 3, 3:55 am, Oliver

[Lift] Re: error page

2008-10-03 Thread Marius
The run mode is coming from Props.mode Br's, Marius On Oct 3, 2:16 pm, Tim Perrett [EMAIL PROTECTED] wrote: Hey Marius, Thats right, the RunModes... If you wanted to specify a different error setup depending on the run mode, how would you do so? Cheers Tim

[Lift] Re: Todays questions

2008-10-03 Thread Marius
for your use-case ... maybe. Its funny you mention that Marius - not only 2 days ago was I trying to do something like this... I tried adding a onsubmit=submitonce(this); (where submitonce is a function to disable the button) type javascript call into my markup but still, even with the previous

[Lift] Re: Please welcome Kris Nuttycombe as a Lift committer

2008-10-14 Thread Marius
Welcome Kris! On Oct 14, 2:32 pm, David Pollak [EMAIL PROTECTED] wrote: Folks, I pleased to announce that Kris Nuttycombe has joined the Lift committers. Please join me in welcoming him! Thanks, David -- Lift, the simply functional web frameworkhttp://liftweb.net Collaborative Task

[Lift] Re: Passing functions as arguments

2008-10-16 Thread Marius
Hey Tim, Do default handlers actually do anything? Why not using functions or a List[(String) = Any] (Instead of String you may pass any type so the function signature is not so important). This is a paradigm used in Lift a lot. Br's, Marius On Oct 16, 1:36 pm, Tim Perrett [EMAIL PROTECTED

[Lift] Re: Passing functions as arguments

2008-10-16 Thread Marius
requirements of I want to build it so that users can execute any code they wish upon a different event from paypal. since users can register arbitrary functions Br's, Marius On Oct 16, 4:52 pm, Tim Perrett [EMAIL PROTECTED] wrote: Do default handlers actually do anything? Right now, no they don't, I

[Lift] Re: Passing functions as arguments

2008-10-16 Thread Marius
On Oct 16, 9:33 pm, Tim Perrett [EMAIL PROTECTED] wrote: Thanks for the explanation Marius - that makes perfect sense. I'll take that advice as your right, it fits the need perfectly. If I wanted a list of functions that could have a couple of different parameters I guess it would

[Lift] Re: Passing functions as arguments

2008-10-17 Thread Marius
to you variable like: myList = (myList ::: list).removeDuplicates 3. Play with diff and intersect ... but it is probably the most expensive Br's, Marius Would the variable X have both event handlers or would it just have one? I have a list of event objects to wrap the statuses retrived from

[Lift] Re: () = xxx... but I want to use parameters

2008-10-17 Thread Marius
, Marius On Oct 17, 5:21 am, Charles F. Munat [EMAIL PROTECTED] wrote: In the Loc I can do: If( () = true, ) So I can do: def isLoggedIn_?() = true If(isLoggedIn_?, ) But what if I want to pass in a list of roles? def isInRole_?(List[String]) = true Now If complains because it expects

[Lift] Re: Thanks!

2008-10-22 Thread Marius
Many thanks Josh! On Oct 22, 6:35 am, Josh Suereth [EMAIL PROTECTED] wrote: Hey Lift community. Just wanted to say thanks for working on the Lift Web Framework. I began using it (to be honest) because I have to interface with EJBs and Lift has much better maven-support than Grails, and I

[Lift] Re: Scala+Lift Philosophical Question

2008-10-22 Thread Marius
this to companies or even corporates to adopt it over the oversold (Spring, Struts, JSF etc) it very tough. But regardless, more and more commercial applications are written in Lift (AFAIK). My 2 cents ... Br's, Marius On Oct 22, 12:37 pm, Warren Henning [EMAIL PROTECTED] wrote: On Tue, Oct 21, 2008 at 5

[Lift] Re: Scala+Lift Philosophical Question

2008-10-22 Thread Marius
to learn Scala .. nowadays it's much much more then that. I love it that almost every-time I'm coding in Scala I learn new things ... how cool can this be! Br's, Marius On Oct 22, 7:47 pm, Erik Engbrecht [EMAIL PROTECTED] wrote: I think you need to be able to quantify the risk versus reward

[Lift] Re: Dynamically adding fields to a form

2008-10-26 Thread Marius
an extension to that idea to generate JS code to add fields to a Record from client side as well. Such thing may have side effects when the Records is mapped to a RDBMS table .. such as adding a new field to a record, that record may not correspond to the table structure ... Br's, Marius On Oct 25

[Lift] Re: deployment hassles with multiple sites

2008-10-27 Thread Marius
Why don't deploy your app using root context / in tomcat? On Oct 27, 8:45 am, Charles F. Munat [EMAIL PROTECTED] wrote: I've deployed a beta version of my app to Tomcat, so it's available at localhost:8080/xxx/ Then I proxied Apache over to localhost:8080/xxx/ And it works. But all the

[Lift] Re: deployment hassles with multiple sites

2008-10-27 Thread Marius
but that's trivial. Let me know your thoughts. Br's, Marius On Oct 27, 8:09 pm, David Pollak [EMAIL PROTECTED] wrote: Lift automatically takes care of prepending the context path to URLs that Lift rewrites.  I had worked on a way around it, but have not finished the work. Is having the context

[Lift] Re: deployment hassles with multiple sites

2008-10-27 Thread Marius
on your tomcat version where this should be. On tomcat 6.x context.xml should be in META-INF folder (if I remember correctly) Br's, Marius On Oct 27, 9:00 pm, Charles F. Munat [EMAIL PROTECTED] wrote: Not sure I understand. How does one do that? Do you have a link? (I'll start looking.) Would

[Lift] Re: deployment hassles with multiple sites

2008-10-27 Thread Marius
funny my old post went through ... (sorry for the spam) On Oct 27, 9:41 pm, Marius [EMAIL PROTECTED] wrote: In tomcat you usually have a webapps/ROOT folder. Try putting you webapp in this ROOT folder (unarchived). If that does not work, try looking into server.xml for Context path= docBase

[Lift] Re: deployment hassles with multiple sites

2008-10-27 Thread Marius
hmm .. I though I hit send but my response didn't seem to make it. 1. Try to unwar your app in webapps/ROOT folder 2. Try to set context path= docBase=path to your folder/. You can do this in server.xml or context.xml Br's, Marius On Oct 27, 9:00 pm, Charles F. Munat [EMAIL PROTECTED] wrote

[Lift] Re: Flot widget commited to lift repository

2008-11-02 Thread Marius
On Nov 1, 11:09 pm, Francois Bertrand [EMAIL PROTECTED] wrote: Hi Marius 1. I was wondering why the use of Option and not Can ? Because I didn't need the Failure part of Can. I'm not saying Option is bad Can is good ... not by far. But Can is more liftish even if you do not use Failure

[Lift] Re: Session problems when running the Lift sample apps and my own simultaneously

2008-11-02 Thread Marius
back them) Do you see the same behavior if you open the apps in separate browsers? Br's, Marius On Nov 2, 1:16 am, Charles F. Munat [EMAIL PROTECTED] wrote: I don't know if anyone else has observed this behavior, but... When I run my Lift app (mvn jetty:run) on port , and simultaneously

[Lift] Re: Extending lifts template loader...

2008-11-03 Thread Marius
should be able to load the template from virtually anywhere ... Br's, Marius On Nov 3, 6:19 pm, Tim Perrett [EMAIL PROTECTED] wrote: Hey guys, Myself and Ty have just been chatting about lifts template loader... right now, is there a way of adding additional places to look for lift templates

[Lift] Re: How's the record / field branch coming along?

2008-11-04 Thread Marius
On Nov 4, 10:47 pm, Tim Perrett [EMAIL PROTECTED] wrote: Marius, The example you sent me was super sweet. Thats awesome work guys - im so glad to see this kind of functionality coming into lift; IMO, this is the kind of thing that will give lift mainstream appeal. One thing I got

[Lift] Re: *Breaking Changes* CometActor instantiation and SHtml.submit() and SHtml.hidden()

2008-11-08 Thread Marius
Nice stuff for CometActor ... it's really handy having the session etc. to be injected automatically by Lift Br's, Marius On Nov 7, 3:14 am, David Pollak [EMAIL PROTECTED] wrote: Folks, I've make some breaking changes to Lift:     * CometActors no longer take any parameters during

[Lift] Re: REST Web Services questions and suggestions

2008-11-08 Thread Marius
) ... or it was just an example out of the hat? Regarding DispatchPf you get a RequestState as a parameter and from it you can obtain a ParsePath hence you have access to the suffix. Br's, Marius On Nov 8, 2:36 pm, Tim Perrett [EMAIL PROTECTED] wrote: Hey guys, Just having a look at implementing some REST APIs

[Lift] Re: REST Web Services questions and suggestions

2008-11-08 Thread Marius
Please see /liftweb/sites/example/src/main/scala/net/liftweb/example/ snippet/Json.scala .. a very simple and concise example. Also maybe this would help as well http://liftweb.net/index.php/HowTo_use_JSON_forms but it's more about Json forms still it relies on JsonHandler. Br's, Marius On Nov

[Lift] Re: Ajax error/notice/warning works but no class attribute is specified

2008-11-13 Thread Marius
even need to specify a class in your markup. Br's, Marius On Nov 12, 8:22 pm, Ramzi BEN YAHIA [EMAIL PROTECTED] wrote: Hi, the following for example loses the class attribute when rendered def deleteDialog(video: Video, deleteFun: Video = Boolean) = {         val yesLink = SHtml.a(Text(S

[Lift] Lift Record Field

2008-11-15 Thread Marius
All, I just committed in master the code for generic support for Record/ Field. David will start adding JDBC spices soon. Perhaps there a a couple of more field types to add so please take a look and let us know your thoughts. Br's, Marius

[Lift] Re: Lift Record Field

2008-11-16 Thread Marius
On Nov 16, 1:32 am, Tim Perrett [EMAIL PROTECTED] wrote: wow this is super sweet marius! A couple of questions: - net.liftweb.record.Test... shouldn't this be in the tests package? I'll remove this. My bad. - DBRecord, whats the difference between this and ordinary record? DBRecord

[Lift] Re: Lift Record Field

2008-11-16 Thread Marius
behavior. Good point, but to implement JPS you need to extend Record and not DRecord. Record itself has no idea about save, delete etc. functions. Wouldn't this suffice? Cheers, Derek On Sat, Nov 15, 2008 at 11:30 AM, Marius [EMAIL PROTECTED] wrote: All, I just committed in master

[Lift] Re: Valid XHTML

2008-11-16 Thread Marius
Would be nice if you can provide concrete example where Lift breaks the XHTML DTD so we can fix them. Also some XHTML things are generated automatically by Scala XML. Br's, Marius On Nov 16, 7:24 am, Charles F. Munat [EMAIL PROTECTED] wrote: Is there an interest in Lift using valid XHTML

[Lift] Re: Scala 2.7.2 and documentation?

2008-11-17 Thread Marius
Tyler is there a way for me to sneaky see what you guys done so far? :) Br's, Marius On Nov 18, 2:50 am, TylerWeir [EMAIL PROTECTED] wrote: Derek and I expect the first draft of ours in January 2009. On Nov 17, 7:01 pm, Oscar Picasso [EMAIL PROTECTED] wrote: Two book? Wow! Any idea

[Lift] Re: Scala 2.7.2 and documentation?

2008-11-18 Thread Marius
Thanks man ! On Nov 18, 10:28 am, Charles F. Munat [EMAIL PROTECTED] wrote: It's on github, I think: git clone git://github.com/tjweir/liftbook.git Chas. Marius wrote: Tyler is there a way for me to sneaky see what you guys done so far? :) Br's, Marius On Nov 18, 2:50 am

[Lift] Re: Response file consolidation

2008-11-22 Thread Marius
net.liftweb.http._ // will still pull all the classes right? Cheers, Tim On Nov 22, 6:41 pm, Marius [EMAIL PROTECTED] wrote: I guess it's fine by me ... although instead of StandardResponses.scala I'd prefer HttpResponses.scala --~--~-~--~~~---~--~~ You received

[Lift] Re: MetaRecord.asHtml

2008-11-23 Thread Marius
the record's fields. Field.asXhtml when rendering a Record based on a provided user form template. thoughts? Br's, Marius On Nov 24, 2:20 am, Derek Chen-Becker [EMAIL PROTECTED] wrote: I'm writing up the chapter on Record right now (nothing like a moving target!) and I just wanted to confirm

[Lift] Re: MetaRecord.asHtml

2008-11-24 Thread Marius
ok I just did a quick commit - please take a look. On Nov 24, 2:20 am, Derek Chen-Becker [EMAIL PROTECTED] wrote: I'm writing up the chapter on Record right now (nothing like a moving target!) and I just wanted to confirm that the MetaRecord.asHtml is really intended to default to

[Lift] Re: Two items on Record

2008-11-26 Thread Marius
On Nov 26, 5:34 pm, Derek Chen-Becker [EMAIL PROTECTED] wrote: I'm in the process of playing with the Record code so I have some examples for the book. I've run into two small issues:    1. I'm writing a custom Field type (DecimalField) and it seems like the    valueCouldNotBeSet var

[Lift] Re: Lift Record and Object Oriented DB

2008-11-26 Thread Marius
don't think it would be part of lift core (... but I've been wrong before :) ...). Br's, Marius On Nov 26, 3:48 am, Erick Fleming [EMAIL PROTECTED] wrote: I'm real interested in using Lift with OODBs (currently using DB4O and looking and Berkeley). Is the new Record/Field stuff (I'm ignorant

[Lift] Re: Two items on Record

2008-11-26 Thread Marius
please do a git pull On Nov 26, 7:56 pm, Marius [EMAIL PROTECTED] wrote: On Nov 26, 5:34 pm, Derek Chen-Becker [EMAIL PROTECTED] wrote: I'm in the process of playing with the Record code so I have some examples for the book. I've run into two small issues:    1. I'm writing a custom

[Lift] Re: Named Partial Functions

2008-11-26 Thread Marius
TrackPf ? On Nov 26, 10:21 pm, David Pollak [EMAIL PROTECTED] wrote: Folks, One of the things that came out of the Lift Workshop was the need for tracing of rewrites, sitemaps, etc. Most of the rewrite, etc. logic is buried in PartialFunctions that are composed together. In order to

[Lift] Re: Upgrading to Manifest[C] from Class[C]

2008-11-27 Thread Marius
Nice ! ... is this committed anywhere? On Nov 28, 4:57 am, Jorge Ortiz [EMAIL PROTECTED] wrote: Folks, First, I've deprecated the containsClass method in ClassHelpers. It was only being used once in the entire Lift codebase, and it was basically equivalent to a very short call to

[Lift] Re: Alter presentation behavior with snippet markup

2008-11-28 Thread Marius
Yup ... or you can have val count = S.attr(count).map(_.toInt) openOr 5 Br's, Marius On Nov 28, 2:15 pm, Tim Perrett [EMAIL PROTECTED] wrote: Wow, I cant belive I didnt know about that - thats pretty fricking useful!! Presumably:     val count: Int = S.attr(count) match {       case Full

[Lift] Re: JPA and Record

2008-12-01 Thread Marius
libraries, or for people who would like to use JPA for the additional features, compatibility with Java apps, etc, I'd like to have a better answer than an absolute Don't use Record or Switch to Record. Derek On Sun, Nov 30, 2008 at 1:40 AM, Marius [EMAIL PROTECTED] wrote: I totally

[Lift] Record small paradigm shift

2008-12-02 Thread Marius
{ def meta = MyRecordMeta val firstName = new StringField(this, John) override def beforeValidation { println(Before validation) } } Br's, Marius --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift

[Lift] Re: Record small paradigm shift

2008-12-02 Thread Marius
observation ! Br's, Marius On Dec 2, 8:51 pm, Jorge Ortiz [EMAIL PROTECTED] wrote:   class Foo   // type is singleton type Bar.type   object Bar extends Foo {     def exc = (new Exception).printStackTrace   }   // type is structural type Foo{def exc: Unit}   val Baz = new Foo {     def

[Lift] Re: Record small paradigm shift

2008-12-02 Thread Marius
there is no way to invoke them such as: class A { } A a = new A() { public void m() { } }; a.m(); will fail to compile Again .. Scala seems smarter :) Br's, Marius On Dec 2, 9:42 pm, Alex Boisvert [EMAIL PROTECTED] wrote: Ok

[Lift] Re: How does lift wrap the templates

2008-12-04 Thread Marius
Unless I'm missing something LiftRules.addTemplateBefore should suffice. Lift (see findVisibleTemplate which is called before processSurroundAndInclude) will look for your template so your Pf can return it virtually from anywhere. Br's, Marius On Dec 4, 10:10 pm, Derek Chen-Becker [EMAIL

[Lift] Re: How does lift wrap the templates

2008-12-04 Thread Marius
On Dec 4, 10:29 pm, David Pollak [EMAIL PROTECTED] wrote: On Thu, Dec 4, 2008 at 12:24 PM, Marius [EMAIL PROTECTED] wrote: Unless I'm missing something LiftRules.addTemplateBefore should suffice. Lift (see findVisibleTemplate which is called before processSurroundAndInclude) will look

[Lift] ** Small breaking change **

2008-12-07 Thread Marius
Hi, LiftRules.ResourceServerPath was renamed to LiftRules.resourceServerPath since resourceServerPath is a variable and sould follow the same naming model applied for other variables. Br's, marius --~--~-~--~~~---~--~~ You received this message because you

[Lift] LiftRules consolidation

2008-12-09 Thread Marius
Hi. Unfortunatelly only some vars that are essentially Lists of something are private and prepend/append functions are exposed. I proposed to do this for ALL List variables. Br's, Marius --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Lift] Re: LiftRules consolidation

2008-12-09 Thread Marius
opportunity for an abstraction... Why not make them (*gasp*) mutable data structures with prepend/append methods? --j On Tue, Dec 9, 2008 at 1:35 PM, Marius [EMAIL PROTECTED] wrote: Hi. Unfortunatel... --~--~-~--~~~---~--~~ You received this message because you

[Lift] Re: LiftRules consolidation

2008-12-09 Thread Marius
case _ = throw new IllegalStateException(Can not modify after boot.); } } def prependRule(r: T) { safe_? { rules = r :: rules } } def appendRule(r: T) { safe_? { rules = rules ::: List(r) } } } Br's, marius On Dec 9, 10:12 pm, Jorge Ortiz [EMAIL PROTECTED

[Lift] Re: LiftRules consolidation

2008-12-09 Thread Marius
think in this specific context it has little consequence. If this approach is fine with everyone I can start implementing it. Br's, Marius On Dec 9, 10:25 pm, Jorge Ortiz [EMAIL PROTECTED] wrote: I would use a ListBuffer as the underlying representation. I would call the methods append

[Lift] Re: LiftRules consolidation

2008-12-09 Thread Marius
I started to add a few RulesSeq ... looks pretty neat so far not to mention that LiftRules is reducing its size. And these var can actually be publicly exposed as val-s. On Dec 9, 10:30 pm, Marius [EMAIL PROTECTED] wrote: I agree with append/prepend naming. As far as ListBuffer goes I'm

[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-14 Thread Marius
distinguishing between functions and partial functions here by using Either or even using different RulesSeq traits would not bring much benefits ... but I hope I'm wrong. --j On Sat, Dec 13, 2008 at 2:31 PM, Marius marius.dan...@gmail.com wrote: All, I committed a bunch of changes in LiftRules

[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-14 Thread Marius
On Dec 14, 12:10 pm, Viktor Klang viktor.kl...@gmail.com wrote: On Sun, Dec 14, 2008 at 9:28 AM, Marius marius.dan...@gmail.com wrote: On Dec 14, 3:02 am, Jorge Ortiz jorge.or...@gmail.com wrote: Not to beat a dead horse, but... what's the rationale, again, for throwing an exception

[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-14 Thread Marius
On Dec 14, 12:53 pm, Viktor Klang viktor.kl...@gmail.com wrote: On Sun, Dec 14, 2008 at 11:42 AM, Marius marius.dan...@gmail.com wrote: On Dec 14, 12:10 pm, Viktor Klang viktor.kl...@gmail.com wrote: On Sun, Dec 14, 2008 at 9:28 AM, Marius marius.dan...@gmail.com wrote: On Dec 14, 3

[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-14 Thread Marius
, Marius On Dec 14, 5:21 pm, Viktor Klang viktor.kl...@gmail.com wrote: On Sun, Dec 14, 2008 at 4:01 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Dec 14, 2008 at 6:51 AM, Viktor Klang viktor.kl...@gmail.comwrote: David, sounds reasonable. So being able to call prepend

[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-15 Thread Marius
Sorry Dan ... There were too many changes in LiftRules. You should be able to determine real quick what changed in LiftRules since the variables naming is more or less the same. If you can not fix your code can you please copy-paste it here ? ... in this way I may be able to help. Br's, Marius

[Lift] Re: url handling

2008-12-20 Thread Marius
Looks like a function will be executed when this request is submitted. In what conditions are you seeing this? Are you calling S.redirectTo and pass a function? ... or use RedirectWithState? Br's, Marius On 20 Dec, 05:26, Oliver Lambert ola...@gmail.com wrote: Hi I notice lift sometimes

[Lift] Re: url handling

2008-12-20 Thread Marius
Yeah but there are 2 overloaded versions. Are you also pasing a function to it? On 20 Dec, 14:31, Oliver Lambert ola...@gmail.com wrote: Im using a net.liftweb.http.S.redirectTo within a stateful snippet. On 20/12/2008, at 9:40 PM, Marius wrote: Looks like a function will be executed

[Lift] Re: Can or Box or something else

2008-12-20 Thread Marius
Can is more like Option but richer. Not much like Either. On 20 Dec, 20:33, Oliver Lambert ola...@gmail.com wrote: Is Can a little less like Option and more like scala.Either, where the   left side is used to indicate failure? On 21/12/2008, at 1:43 AM, David Pollak wrote: Folks, Over

[Lift] Re: LiftRules.logAndReturnExceptionToBrowser doesnt alway work

2008-12-20 Thread Marius
You already got good advices to your particular problem still an exception thrown from LoanWrapper-s should be caught by and your function called. I'll look into it tomorrow. Br's, Marius On 18 Dec, 23:58, Oliver ola...@gmail.com wrote: I was redirecting to an error page using

[Lift] Re: url handling

2008-12-21 Thread Marius
It really does ... In fact redirectTo from StatefulSnippet calls S.redirectTo and passes a function which sets this current snippet on S when redirect happens. Br's, Marius On Dec 20, 8:44 pm, Oliver Lambert ola...@gmail.com wrote: No, but as Derek suggests, it sounds a bit like the stateful

[Lift] Re: Bypassing LiftFilter

2008-12-22 Thread Marius
On Dec 22, 3:29 am, Mark Chadwick mark.chadw...@gmail.com wrote: Howdy. From my googling, I'm gathering this is a tall order (due to the servlet spec), but thought I'd ping the list to see if smarter brains than my own had an idea.  The idea is that I have particular URL with strict

[Lift] Re: error message tag

2008-12-23 Thread Marius
LIft code actually does this for empty node that are not div, script or textarea. I could quick fix it for span as well but can you verify if there are are cases except span where IE is messing around with us? On Dec 23, 10:55 am, Oliver Lambert ola...@gmail.com wrote: I have a html/css

[Lift] Re: Who eats the script tags?

2008-12-23 Thread Marius
Ok cool :) On Dec 23, 9:55 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Dec 23, 2008 at 11:52 AM, Marius marius.dan...@gmail.com wrote: Ok .. found the problem ... I'll commit a fix in a bit. I'm already on it. :-) On Dec 23, 7:22 pm, Joachim A. wallaby.po

[Lift] Re: Who eats the script tags?

2008-12-23 Thread Marius
Looks like the script tag is not empty and it contains a space ... this makes the script nodes to be considered the same :) On Dec 23, 9:56 pm, Marius marius.dan...@gmail.com wrote: Ok cool :) On Dec 23, 9:55 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Dec 23, 2008 at 11

[Lift] Re: Who eats the script tags?

2008-12-23 Thread Marius
Actually thank you for revealing this ! On Dec 23, 10:52 pm, Joachim A. wallaby.po...@googlemail.com wrote: David, I have to thank you and Marius for responding to quickly. Joachim Joachim, Thanks for taking the time to create an example of the failure. I've committed a fix

[Lift] Re: Partial functions

2008-12-27 Thread Marius
)) { x(arg) } Br's, Marius On Dec 27, 2:29 am, Charles F. Munat c...@munat.com wrote: As a holiday gift to myself I am reading Programming in Scala from cover to cover. I've gotten as far as the pattern matching stuff and there's a discussion of partial functions. PiS says: In general, you

[Lift] Re: Lift and HAppS

2008-12-27 Thread Marius
I don't see in what way. Lift runs in a J(2)EE web container (Jetty, Tomcat ... you name it). Br's, Marius On Dec 27, 5:17 am, Stefan Scott stefanscottal...@gmail.com wrote: Is lift very similar to HAppS? --~--~-~--~~~---~--~~ You received this message because

[Lift] Re: unsecured form post from flash

2008-12-28 Thread Marius
Well since there is no function binding on server side you do not have a function to process it or separate functions for each field (as you well know) You would probably use a DispatchPF function to process the request manually Br's, Marius On Dec 28, 3:01 pm, Tim Perrett he

  1   2   3   4   5   6   7   8   9   10   >