[Lift] Re: *** BREAKING CHANGES COMING UP SOON ***

2009-08-04 Thread marius d.
Things like AsyncWeb, some HTTP stacks on top of Netty ... Br's, Marius On Aug 4, 11:37 pm, Derek Chen-Becker wrote: > I don't necessarily have a problem with this, but what's the gain? Are there > other HTTP frameworks that don't use the javax.servlet API? Just curious. > > Derek > > On Tue, A

[Lift] Re: Exception for S.? while booting

2009-08-04 Thread marius d.
messages: > > minLen=At least %s characters required! > maxLen=At most %s characters allowed! > > Thanx > Heiko > > 2009/8/4 marius d. > > > > > > > S lifetime is per request. S is not constructed on Boot. Could you > > post a code snippet on what y

[Lift] Re: Extend StatefulSnippet lifetime

2009-08-04 Thread marius d.
In StatefulSnippet you have a redirectTo function that essentially does a redirect with state The definition is something like: def redirectTo(where: String) = S.redirectTo(where, registerThisSnippet) So you can do it like S.redirectTo(where, () => registerThisSnippet) ... of course would be

[Lift] Re: Exception for S.? while booting

2009-08-04 Thread marius d.
with val. But this is a Scala thingy, please do not > bother. If it makes you easier replace val with def. > The question remains: How can i18n be done in "stateless" (request state) > cases? > > 2009/8/5 marius d. > > > > > > > I thought validati

[Lift] Re: Extend StatefulSnippet lifetime

2009-08-04 Thread marius d.
-var). hence > Button clicked - redirect to prev page > Page load 3 - snippet still registered? > Do I have to store a call to registerSnippet in the other page? > > ----- > > marius d. wrote: > > In StatefulSnippet you have a redirectTo

[Lift] Re: *** BREAKING CHANGES COMING UP SOON ***

2009-08-05 Thread marius d.
Sounds good to me On Aug 5, 1:51 pm, Yousry Abdallah wrote: > Could you setup a milestone before the merge? > > On 4 Aug., 21:51, Marius wrote: > > > Folks, > > > I spent a few days decoupling Lift from JEE web container > > dependencies: javax.servlet._ The code is currently in wip-marius-http

[Lift] Re: *** BREAKING CHANGES COMING UP SOON ***

2009-08-05 Thread marius d.
2009 at 5:08 AM, marius d. wrote: > > > Sounds good to me > > > On Aug 5, 1:51 pm, Yousry Abdallah wrote: > > > Could you setup a milestone before the merge? > > > > On 4 Aug., 21:51, Marius wrote: > > > > > Folks, > > > > > I spent a

[Lift] Re: More than one in HTML file

2009-08-05 Thread marius d.
No. Each template must be xml well formed so you can not have more then one root element, Please see to handle multiple binds. Br;s, Marius On Aug 6, 12:04 am, pabraham wrote: > Hello there, > > Is it possible for an HTML file to have more than one lift:surround > tag? > > For example, defaul

[Lift] Re: Exception for S.? while booting

2009-08-05 Thread marius d.
his subject? > > - > > Heiko Seeberger wrote: > > Ah, yes!Sorry, I did not get the point, but obviously the val is to be > blamed ;-) > Now it's running, thanx!!! > > Heiko > > 2009/8/5 marius d. > > > > > I'm aware abou

[Lift] Re: Alternate part of view

2009-08-05 Thread marius d.
Please see chooseTemplate from Helpers._ (It's actually defined in BindHelpers) For examples see: \sites\example\src\main\webapp\guess.html \sites\example\src\main\scala\net\liftweb\example\snippet \CountGame.scala .. see if that helps you case. Br's, Marius On Aug 6, 6:44 am, Naftoli Gugenhe

[Lift] Re: More than one in HTML file

2009-08-06 Thread marius d.
On Aug 6, 3:46 pm, pabraham wrote: > Thanks everyone.  I can get things to work now using param ...> > > However, I found a post[1] by DPP that says that > is deprecated.  Is this true? We tried to deprecate it a little while ago but AFAIK it's not deprecated anymore. > > Regards, > > Paul.

[Lift] Re: Db.addLogFunc

2009-08-06 Thread marius d.
Yeah we're aware of that. That is based on toString application which is JDBC driver dependent. I think Derek started some work on this to correct this behavior. Derek ? Br's, Marius On Aug 6, 8:01 pm, jon wrote: > Hi, > > I have the following in boot: >   DB.addLogFunc((query, len) => Log.inf

[Lift] Re: Db.addLogFunc

2009-08-06 Thread marius d.
> > Derek > > On Thu, Aug 6, 2009 at 11:03 AM, marius d. wrote: > > > Yeah we're aware of that. That is based on toString application which > > is JDBC driver dependent. I think Derek started some work on this to > > correct this behavior. Derek ? > > >

[Lift] Re: Rendering dynamic templates

2009-08-06 Thread marius d.
Please see LiftSession.processSurroundAndInclude ... I wouldn't recommend processing templates outside normal rendering pipeline ... but for specific cases it might be ok. But what is your use case? Br's, Marius On Aug 6, 11:12 pm, fbettag wrote: > Hi there, > > i was just wondering how one w

[Lift] Re: *** BREAKING CHANGES COMMITTED ***

2009-08-07 Thread marius d.
map to JEE servlets world please see refinements from net.liftweb.http.provider.servlet package If your application does not explicitly relies on usage on javax.servlet._ package you should have very little or no changes to make. Br's, Marius On Aug 5, 3:05 pm, "marius d." wrote: >

[Lift] Re: Using ExtJS with Lift?

2009-08-07 Thread marius d.
Keep in mind that for YUI to work with lift you also need to include liftYUI.js Br's, Marius On Aug 7, 10:16 pm, Stefan Scott wrote: > Hi Dirk - > > Nice to meet you. I'm still rather new to lift myself, and completely > new to ExtJS. I'm studying this stuff in my spare time, and I haven't > ha

[Lift] Re: Full stack for building RIAs

2009-08-07 Thread marius d.
What do you mean by UI framework here? Lift is pretty neatly integrated with JQuery, or you can use YUI or virtually any UI framework. So what are your expectations from a UI framework? Br's, Marius On Aug 7, 10:55 pm, ivo wrote: > Hi all, > > I want to start learning about promising technolog

[Lift] Re: Full stack for building RIAs

2009-08-07 Thread marius d.
data to a JQuery plugin very easily. > > I know this is not the JQuery list :-) but that David's quotation > aroused my curiosity about the Bespin + Lift project. In another > occasion, David also said "I'm just not a fan of the GWT model". I > wander what he meant...

[Lift] Re: Scala XML Bug?

2009-08-09 Thread marius d.
What if you declare declaring the lift namespace ? Br's, Marius On Aug 9, 7:34 pm, fbettag wrote: > Hi there, > > i know this is not the right place, but i wanted your opinions first. > I'm trying to run XML.loadString onto this: > > >         >                 >                         >

[Lift] Re: makeUtf8 and HttpServletRequest broken in new build???

2009-08-10 Thread marius d.
Your makeUTF8 should look like this: private def makeUtf8(req: HTTPRequest): Unit = {req.setCharacterEncoding("UTF-8")} just use HTTPRequest instead of HttpServletRequest. Br's, Marius On Aug 10, 7:49 pm, glenn wrote: > I just got a type mismatch found error in LiftRules.early.append > (mak

[Lift] Re: Db.addLogFunc

2009-08-11 Thread marius d.
ensus that we want our own JDBC wrappers I'll go ahead and > write them. > > Derek > > On Thu, Aug 6, 2009 at 1:19 PM, marius d. wrote: > > > Probably building our own wrappers would be more lightweight then 3-rd > > party. Jus' guessing > > > Br&#

[Lift] Re: How to override lift messages?

2009-08-11 Thread marius d.
You can specify your own ResourceBundle for Lift's strings: LiftRules.liftCoreResourceName which is currently set to "i18n.lift- core" or you can manually change lift-core.properties files from the Lift's jar file. Current Lift's strings are in lift\src\main\resources\i18n\lift- core.properties

[Lift] Re: SOAP web services?

2009-08-11 Thread marius d.
On Aug 11, 7:09 pm, Meredith Gregory wrote: > Tim, > > i was under the same impression, but then read a couple of IBM comparison > articles and a WSO2 blog and it seemed that the WSDL 2.0 was gaining ground. > Further, the tooling for WSDL, with integration into all the major IDE's, > has been

[Lift] Re: Mapper with id=-1

2009-08-11 Thread marius d.
Steffen new members are moderated ... so please have a little patience. Once someone brings valuable information and show genuine interest in Lift and this list, most likely his/her posts will not be moderated anymore. Br's, Marius On Aug 11, 10:01 pm, Steffen Weißmann wrote: > Sorry, it was a

[Lift] Re: Two concerns about Lift

2009-08-11 Thread marius d.
On Aug 12, 9:12 am, Yuan wrote: > I am new to Lift. I like it lot. I have great respects to the members > of this open source project, specifically the committers. I want to > contribute some effort to this warm community. > > Here I want to share my two concerns about Lift; (I know most of > p

[Lift] Re: Welcome Joni Freeman to the Lift committers

2009-08-13 Thread marius d.
Welcome on board Joni ! On Aug 13, 7:06 pm, David Pollak wrote: > Folks, > > I'm pleased to announce that Joni Freeman has joined the Lift committers. > > Joni will be adding his high performance JSON library as a module in Lift... > and I certainly hope that Lift's JSON support will improve. >

[Lift] Re: is that a lift's bug?

2009-08-14 Thread marius d.
On Aug 14, 11:10 am, "xiaomingzhen...@gmail.com" wrote: > i am a newer to lift, and now i am reading the book the definitive > guide to lift. In chapter 5.1, book told me this: > val helpMenu = Menu(Loc("helpHome",("help" :: "" :: Nil) -> > true,"Help")) make all the files under help folder acc

[Lift] Re: Attributes question

2009-08-14 Thread marius d.
What listing from the book are you referring to ? 7.13 ? and the code: class Ledger { def balance (content : NodeSeq ) : NodeSeq = { bind ("ledger", content, "time" -> {(new java.util.Date).toString}) } } would output Sat Mar 28 16:43:48 EET 2009. so ledger:id was preserved in the output

[Lift] Re: Attributes question

2009-08-14 Thread marius d.
The book exposes current functionality for Lift 1.0. If functionality X was not intended to be there is a different story, but regardless it is there and the way I see it it is OK to be in the book. Personally I don't see it as defect as preserving attributes (to the top level resulting NodeSeq)

[Lift] Re: Attributes question

2009-08-14 Thread marius d.
l is used to merge > attributes to an Elem.) The right side can be an Elem or a Box/Option of an > Elem. > What do people think of this syntax? > P.S. Another way is to append ".%%" to an Elem making it into a NodeSeq > function. > > --

[Lift] Re: Cookie not being removed for custom user logout

2009-08-15 Thread marius d.
Your code looks fine to me. There is notmagic withXHtml.link just that when you click the link on server-side your function gets called before the /logout page gets rendered. Can you add a function to LiftRules.onEndServicing ? LiftRules.onEndServicing.append { case (req, Full(resp)) => val

[Lift] Re: Cookie not being removed for custom user logout

2009-08-16 Thread marius d.
ing that in other situations). > > What I see when the logout link is followed is: > > List() > > When I set the cookie originally, I do see a List(HTTPCookie(...)) > > I'm running all of this on 127.0.0.1:8080. > > Thanks > Richard > > On Sat, Aug 15, 2009 at

[Lift] Re: Cookie not being removed for custom user logout

2009-08-16 Thread marius d.
ot;). > > What I should be doing is a RedirectResponse("/index", > S.responseCookies:_*) to ensure the delete of the cookie happens. > > I've now re-read section 3.14 of master.pdf which pointed me towards > RedirectWithState which was a great help. > > Thank you! > Ri

[Lift] Re: ScalaTest dependency

2009-08-16 Thread marius d.
ees any > > problems with it. > > > Derek > > > On Tue, Aug 11, 2009 at 11:08 AM, Derek Chen-Becker < > > dchenbec...@gmail.com> wrote: > > >> Will do. > > >> On Tue, Aug 11, 2009 at 2:33 AM, marius d. < > >> marius.dan...@gmail

[Lift] Re: ScalaTest dependency

2009-08-16 Thread marius d.
st[(LogStatement) => Any] = Nil Br's, Marius > > Derek > > On Sun, Aug 16, 2009 at 8:09 AM, marius d. wrote: > > > Derek, > > > I was looking to your code, GOOD stuff ! One thing though.The > > LoggedStatement.toString would return a List of log entries

[Lift] Re: ScalaTest dependency

2009-08-16 Thread marius d.
hat they're all > local, but it seems like we should just time everything. > > Thoughts? I like it ... and I'd go for concrete cases classes(LoggedStatement, LoggedMetaCommand ...) above as opposed to tupples. So at least you got my vote :) > > On Sun, Aug 16, 2009 at 8:31 AM,

[Lift] Re: Lift templates lack obvious stuff (?)

2009-08-16 Thread marius d.
You can use multiple bind pointx by the means of Your tag soup Your tag stue ... tag. Br's, Marius On Aug 16, 9:34 pm, "incarn...@whiteants.net" wrote: > Greetings. I've googled quite a while for a very obvious feature that > all templating engines out there have and it seems like L

[Lift] Re: Getting started: Rendering a template (Definitive Guide)

2009-08-16 Thread marius d.
I believe the book describes the SiteMap quite extensively. Yes, if you are using SiteMap then you have to add your new page to the SiteMap. Br's, Marius On Aug 17, 8:27 am, Morris Jones wrote: > Derek Williams wrote: > > The tag is used to reference another template that will > > contain your

[Lift] Re: slow down ajax?

2009-08-16 Thread marius d.
Would you please post a code snippet with what you're doing? (a minimalistic example) Br's, Marius On Aug 17, 7:41 am, g-man wrote: > I am moving nicely with my 'save all dates as millis and let the > client localize for display' project, learning while enhancing the > ToDo sample app. > > I ha

[Lift] Re: slow down ajax?

2009-08-16 Thread marius d.
the ajax invocation function. In other words your code gets that function that does the ajax call meaning that you have the control over when the ajax call is made. Br's, Marius On Aug 17, 8:55 am, "marius d." wrote: > Would you please post a code snippet with what you're d

[Lift] Re: lift-openid broken

2009-08-16 Thread marius d.
Thank you for pointing this out. Most likely I'll make the corrections today. Br's, Marius On Aug 17, 1:48 am, Vassil wrote: > Hello guys, > > It seems the HTTP refactoring around 10 days ago broke OpenId. Here's > a small patch that made it work for me: > > --- dpp-liftweb-e845b3c129baf16bc35b

[Lift] Re: How do I add jar files to my app?

2009-08-17 Thread marius d.
The JDBC driver should not be in the applications class-path (WEB-INF/ lib) but in container's classpath. Say jetty's lib folder. Br's, Marius On Aug 17, 2:24 pm, Goldfish wrote: > I am trying to point my app at an Oracle database, but am getting > ClassNotFound exceptions: > > [INFO] Scanning

[Lift] Re: Invoking Views

2009-08-17 Thread marius d.
Please add the path to your SiteMap. Menu(Loc("MyView", "MyView" :: _, "MyView")) Br's, Marius On Aug 17, 8:25 pm, Michel Klijn wrote: > Hi, > > I'm new to Lift and I've been fooling around with all it's cool > features. > > At the moment, I'm trying to access MyView that I have defined in the

[Lift] Re: slow down ajax?

2009-08-17 Thread marius d.
80KN').hide();"> >                type="text" value="1248493271843" >          onkeypress="lift_blurIfReturn(event)" size="10" /> >     > > > So, all the parts work well together, but Lift's ajax just takes off >

[Lift] Re: lift-openid broken

2009-08-17 Thread marius d.
Done. Br's, Marius On Aug 17, 9:39 pm, David Pollak wrote: > On Sun, Aug 16, 2009 at 11:52 PM, marius d. wrote: > > > Thank you for pointing this out. Most likely I'll make the corrections > > today. > > Please let us know when the changes are rolled

[Lift] Re: Attributes question

2009-08-17 Thread marius d.
ld actually be implemented shorter: > > elem currentNode.map(_.attributes).openOr(scala.xml.Null)) > > etc. > > On Fri, Aug 14, 2009 at 4:50 PM, marius d. wrote: > > > IMHO: > > > The problem with > > > "name" some_new_operator_beside_-> expr &g

[Lift] Re: SHtml.a generating an with bad attributes

2009-08-17 Thread marius d.
Looks like a bug to me Br's, Marius On Aug 17, 11:04 pm, harryh wrote: > Further information: > > Stripping things down to almost nothing, a test.html: > > >  ignore > > > Generates the following HTML: > > key="xxx">ignore > > Still confused on how the "with" and "at" attributes are get

[Lift] Re: SHtml.a generating an with bad attributes

2009-08-17 Thread marius d.
with lift:a attributes for some reason. Dave did you add this recently ? ... I mean the call to S.setVars (elm.attributes) {processSurroundAndInclude(...) } inside LiftSession.processSurroundAndInclude (LiftSession line 935) Br's, Marius On Aug 17, 11:14 pm, "marius d." wrote: &

[Lift] Re: Recent presentation to the Boulder JUG

2009-08-17 Thread marius d.
Great talk Derek !!! Br's, Marius On Aug 18, 2:46 am, Derek Chen-Becker wrote: > http://blip.tv/file/2485411 > > A big thanks to BJUG and especially Fred Jean for recording this. I'll be > giving another talk in December to the Denver Open Source User Group > (DOSUG). Hopefully we'll have some

[Lift] Re: Has anyone tried Stax?

2009-08-18 Thread marius d.
A friend of mine is building a lift app and wants to host it there. Indeed the lack of sticky session is problematic for large scale apps. that require more then one node. Haven't found a workaround yet ... Br's, Marius On Aug 18, 4:41 pm, Ryan Donahue wrote: > Is anybody using Stax for anythin

[Lift] Re: Has anyone tried Stax?

2009-08-18 Thread marius d.
On Aug 18, 5:05 pm, Naftoli Gugenheim wrote: > You set whether you want a shared server, or dedicated/various speeds. > In any case, is there room to entertain the thought of at some point adding > support in Lift to propogate sessions across instances? (Is it easier now > that it's been deco

[Lift] Re: slow down ajax?

2009-08-18 Thread marius d.
Having def ajaxText(value: String, jsFunc: Call, func: String => JsCmd) jsFunc parameter is a Call which is defined as: case class Call(function: String, params: JsExp*) extends JsExp So by this you represent a javascript function invocations. So assuming somewhere you have a javascript funct

[Lift] Re: slow down ajax?

2009-08-18 Thread marius d.
now, I will change to an ajaxForm, but the learning is all good, > and if you want to keep teaching, I will listen! > > Thanks for your patience... > > On Aug 18, 12:41 pm, "marius d." wrote: > > > Having > > > def ajaxText(value: String, jsFunc: Call

[Lift] Re: lift:with-params deprecation alternatives

2009-08-19 Thread marius d.
, 10:55 am, inca wrote: > As suggested > inhttp://groups.google.com/group/liftweb/browse_thread/thread/d664b712d... > by Mr. Marius D., I should use lift:with-param in order to insert > content into multiple bind points of template. But recently I read > that this tag is deprecat

[Lift] Re: lift:with-params deprecation alternatives

2009-08-19 Thread marius d.
> On 19 авг, 12:07, "marius d." wrote: > > > Yes we tried to deprecate it but later on we un-derprecate it :) > > > So you can use safely. Purely for naming perspective > > seems to me more intuitive than ... > > I'm not sure if this is a strong

[Lift] Re: slow down ajax?

2009-08-19 Thread marius d.
t; That's why I thought I had to override something... > > Is there a newer version I should be using? > > On Aug 18, 10:38 pm, "marius d." wrote: > > > No you can't override it because SHtml is an object not a type. The > > function definitio

[Lift] Re: Read context param

2009-08-19 Thread marius d.
In 1.1-SNAPSHOT you don't have access to servletRequest. you have val r: HTTPRequest = S.containerRequest But currently HTTPRequest does not provide a way of getting the net.liftweb.http.provider.HTTPContext. I will add this support pretty soon. You can still do that by: import net.liftweb.ht

[Lift] Re: AutoComplete IE bug?

2009-08-19 Thread marius d.
If no other committer wants to look into this I'll look on it. Tim, would this interest you ? Br's, Marius On Aug 19, 9:13 pm, jon wrote: > Hi, > > The AutoComplete widget leaves a trailing "," in the javascript that > causes IE to complain and not function.  Or, at least i think that's > the o

[Lift] Re: slow down ajax?

2009-08-19 Thread marius d.
created using the 1.1-SNAPSHOT, so I will keep hacking unless you have > some further guidance for me. > > On Aug 19, 12:20 pm, "marius d." wrote: > > > Please use Lift 1.1-SNAPSHOT > > > Br's, > > Marius > > > On Aug 19, 10:06 pm, g-man wr

[Lift] Re: Read context param

2009-08-19 Thread marius d.
I think that regardless of Naftoli's particular case he brought up a valid point such as if when initializing a servlet user has a ServletConfig ... we could easily abstract things here as well to make it available in Boot as well. I'll noodle on this and see what I can do. Of course I would not

[Lift] Re: lift:with-params deprecation alternatives

2009-08-20 Thread marius d.
David Pollak wrote: > > > On Wed, Aug 19, 2009 at 2:46 AM, marius d. wrote: > > > > This is a decision that needs consensus ... and David's agreement. > > > I'm cool with it. > > > It might also be worth thinking about creating some "alias&

[Lift] Re: lift:with-params deprecation alternatives

2009-08-20 Thread marius d.
ot; - I agree with-param is not ideal, but > im not sure that "insert" is ideal either. I also agree with marius, what > would you suggest to resolve this issue? > > I tried to post yesterday but it looks like my mail didn't make it into the > group. > > Cheer

[Lift] Re: lift:with-params deprecation alternatives

2009-08-20 Thread marius d.
I love or ... Br's, Marius On Aug 20, 5:43 pm, David Pollak wrote: > How about which works with > I'm also open to non-English words that mean the same (as long as they are > ASCII). > > 2009/8/20 marius d. > > > > > > > Well the way I see

[Lift] Re: Read context param

2009-08-20 Thread marius d.
: HTTPContext Br's, Marius On Aug 20, 8:53 am, Naftoli Gugenheim wrote: > H2's DbStarter reads the url/username/password and stores a connection object > back in the servlet context. > > ----- > > marius d. wrote: > > I think that

[Lift] Re: lift:with-params deprecation alternatives

2009-08-20 Thread marius d.
0, 7:17 pm, "marius d." wrote: > I love or ... > > Br's, > Marius > > On Aug 20, 5:43 pm, David Pollak > wrote: > > > How about which works with > > I'm also open to non-English words that mean the same (as long as they are > > ASCII)

[Lift] Re: Notes from 8/19/09 Lift Committers Call

2009-08-22 Thread marius d.
;s, Marius On Aug 22, 5:25 pm, David Pollak wrote: > On Sat, Aug 22, 2009 at 2:31 AM, marius d. wrote: > > > Greg/Viktor, > > > We could meet and discuss using whatever means (skype, chat, mail > > etc.) and brainstorm what can we do about this. Even though I like a > &g

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread marius d.
Changed the thread subject ... Marius On Aug 22, 6:17 pm, "marius d." wrote: > Great thing Dave. > > Roughly having a bound function f that user provided say in an > ajaxButton call.The function f may hold references to other functions, > session/request-vars,  r

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread marius d.
difficult. Br's, Marius On Aug 23, 2:50 pm, Kevin Wright wrote: > I'm wondering if we can't leverage JavaSpaces to handle a lot of this stuff. >  From my experience with the technology it seems to be a pretty good fit for > the problem. > > On Sun, Aug 23, 2009 at 1

[Lift] Re: lift:with-params deprecation alternatives

2009-08-23 Thread marius d.
Currently both with-param and bind-at are supported. I'll try to update the wiki. Br's, Marius On Aug 23, 5:28 pm, _rogerio_ wrote: > I tried to find some info about the correct usage of template related > tags on wiki but I couldn't find the most recent information about it. > I'm starting wit

[Lift] Re: Lift vs Rails

2009-08-23 Thread marius d.
Looks like you don't need to be convinced :) ... Scala with its features + Java compatibility + Lift's rich set of features + performance of Scala & Lift makes it a no brainer. Enumerating all the pros of Scala and Lift would just take way to long. The list of Scala books and the Lift book are

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread marius d.
At a first glace Java serialization is needed because of its awareness of the reference graph. But in the same time it does not perform well. One way might be the byte level instrumentation that would induce code to figure out the reference graph and know how to stream-ify it using a given efficie

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread marius d.
p of primitives, Calenars, SessionVar/RequestVar etc. If users need their own classes to be LiftSerilizable they would have to implement LiftSerializable trait. Thoughts? Br's, Marius On Aug 23, 8:30 pm, "marius d." wrote: > At a first glace Java serialization is needed becaus

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread marius d.
be any reasons > not to tattach the lift objects tohe HttpSession to support existing > session replication mechanisms such as Tomcat's? There probably would as typically container's HTTPSession's are using Java's serialization and the above would aim for a different one. >

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread marius d.
for comment in a day or > so. > > Best wishes, > > --greg > > > > On Sun, Aug 23, 2009 at 10:45 AM, marius d. wrote: > > > Hmmm .. I'm wondering if we can write a Scala compiler plugin that > > transform functions provided to Lift's S/SHtml fu

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread marius d.
On Aug 24, 12:06 am, David Pollak wrote: > On Sun, Aug 23, 2009 at 10:45 AM, marius d. wrote: > > > Hmmm .. I'm wondering if we can write a Scala compiler plugin that > > transform functions provided to Lift's S/SHtml function etc. into a > > richer Function

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-24 Thread marius d.
On Aug 24, 10:39 am, Viktor Klang wrote: > On Mon, Aug 24, 2009 at 8:13 AM, marius d. wrote: > > > On Aug 24, 12:06 am, David Pollak > > wrote: > > > On Sun, Aug 23, 2009 at 10:45 AM, marius d. > > wrote: > > > > > Hmmm .. I'm w

[Lift] Re: JPA blank archetype

2009-08-24 Thread marius d.
Charles, AFAIK I removed all dependencies to javax.servlet.* classes even from archetypes. Are you using master? ... I did a full search and servlet things are not being used. The archetype looks ok to me ... Am I missing something? Br's, Marius On Aug 24, 9:06 am, "Charles F. Munat" wrote: >

[Lift] Re: JPA blank archetype

2009-08-24 Thread marius d.
mething on my machine, > but everything else is working fine. > > The Maven command I used is reproduced below. > > Chas. > > marius d. wrote: > > Charles, > > > AFAIK I removed all dependencies to javax.servlet.* classes even from > > archetypes.  Ar

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-24 Thread marius d.
Just a FYI. I briefly talked with Martin and he said this idea is possible but quite tricky. Stephane Micheloud did something similar and he may share some of his work. I'm waiting some feedback from him. Br's, Marius On Aug 24, 10:46 am, "marius d." wrote: > On Aug 24,

[Lift] Re: Submit to different page

2009-08-25 Thread marius d.
Well you can put a regular lift form that submits to itself in terms or URI, do the computation in your processing function and redirect- with-state to your new page. So this would imply a redirect which one can say that it is suboptimal as it implies one additional request. Personally I see no r

[Lift] Re: Submit to different page

2009-08-25 Thread marius d.
Something like that yes. Of course if action is missing current behavior will apply. Br's, Marius On Aug 25, 12:34 pm, Timothy Perrett wrote: > Marius, > > So to clarify, your proposing: > > > > Cheers, Tim > > On 25/08/2009 10:24, "marius d." wrote:

[Lift] Re: Linking URLs in Lift

2009-08-25 Thread marius d.
What Scala & lift version are you using ? Are you compiling with one scala version and use a different one at runtime? The error also looks like an invalid xml provided. Can you paste you xml template where you have the snippet ? Br's, Marius On Aug 25, 12:45 pm, celestocalculus wrote: > I rea

[Lift] Re: Submit to different page

2009-08-25 Thread marius d.
Sure this is totally doable but I think we should be able to support the case above where a form can submit to a different page. Br's, Marius On Aug 25, 2:05 pm, Timothy Perrett wrote: > Ulises, > > Am I missing something? There is nothing stopping you making a URL like: > > /search?for=Some+Te

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-25 Thread marius d.
12:55 PM, David Pollak < > > feeder.of.the.be...@gmail.com> wrote: > > >> On Mon, Aug 24, 2009 at 12:36 PM, marius d. wrote: > > >>> Just a FYI. I briefly talked with Martin and he said this idea is > >>> possible but quite tricky. Stephane Michelo

[Lift] Re: Lift on Tomcat

2009-08-25 Thread marius d.
Lift jar's are in maven's repository. if you do a mvn package it'll create the war archive that you can easily deploy on tomcat. I think there is also a tomcat maven plugin so you could do mvn tomcat:run Br's, Marius On Aug 25, 5:29 pm, jack wrote: > I want to set up Lift with Tomcat. I set u

[Lift] Re: Submit to different page

2009-08-25 Thread marius d.
1. I just pushed a little change that allows: ... 2. You can also do In both cases you can use Lift's html abstractions such as SHtml.text etc. and bind your function. In the second example we used a snippet that has no idea about form ... it is just wrapped by a form. So in bo

[Lift] Re: Submit to different page

2009-08-25 Thread marius d.
The topic was brought up in the discussion. Br's, Marius On Aug 25, 7:32 pm, David Pollak wrote: > On Tue, Aug 25, 2009 at 9:23 AM, marius d. wrote: > > > 1. I just pushed a little change that allows: > > > > > ... > > > > > 2. You can also do

[Lift] Re: Submit to different page

2009-08-25 Thread marius d.
David, The action attribute is no different than class, id and target attributes currently supported when lift is magically building the form tag around the snippet content. My other notes inline. Br's, Marius On Aug 25, 8:11 pm, David Pollak wrote: > On Tue, Aug 25, 2009 at 9:46 AM,

[Lift] Re: Read context param

2009-08-25 Thread marius d.
getParameter(servletContext, "db.user", "sa"); >             String password = getParameter(servletContext, "db.password", > "sa"); > >             conn = DriverManager.getConnection(url, user, password); >             servletContext.setAttribute(&

[Lift] Re: Submit to different page

2009-08-25 Thread marius d.
On Aug 25, 9:26 pm, David Pollak wrote: > On Tue, Aug 25, 2009 at 11:09 AM, marius d. wrote: > > > David, > > > The action attribute is no different than class, id and target > > attributes currently supported when lift is magically building the > > form t

[Lift] Re: Read context param

2009-08-25 Thread marius d.
Marius On Aug 25, 9:44 pm, Naftoli Gugenheim wrote: > On Tue, Aug 25, 2009 at 2:29 PM, marius d. wrote: > > > So you need access attributes not to context params (which are only > > init params). Should be no problem abstracting over those. Give me a > > little time. &g

[Lift] Re: Submit to different page

2009-08-25 Thread marius d.
It's out :) Br's, Marius On Aug 25, 9:45 pm, "marius d." wrote: > On Aug 25, 9:26 pm, David Pollak > wrote: > > > > > On Tue, Aug 25, 2009 at 11:09 AM, marius d. wrote: > > > > David, > > > > The action attribute is no differe

[Lift] Re: CSS Override

2009-08-26 Thread marius d.
I'll take a look and get back to you. A resource is eventually read using container's provided API (from the ServletContext.getResourceXXX functions). The container first locates a resource from WEB-INF/ classes folder and then it looks up in the jar files. Br's, Marius On Aug 26, 8:39 am, Shane

[Lift] Re: Codebase Organization...

2009-08-26 Thread marius d.
renaming sites to examples would probably be more obvious for people. So fine by me. About archetypes thingy that's an interesting idea. I like it. Br's, Marius On Aug 26, 12:39 pm, Timothy Perrett wrote: > Chaps, > > Any objections to me renaming "sites" to examples? > > Moreover, I want to m

[Lift] Re: some questions on lift

2009-08-27 Thread marius d.
Tim has a magic articles bag :) On Aug 27, 4:20 pm, Timothy Perrett wrote: > Checkout my article here on how to localize with Lift:  http://is.gd/1NXGN > > Cheers, Tim > > On 27/08/2009 14:08, "surfman" wrote: > > > 3) internationalization support. how does lift support this? --~--~-~--

[Lift] Re: authentication and access control

2009-08-28 Thread marius d.
I'm not sure you HTTP authentication is what your looking for. Lift has support for both BASIC and DIGEST authentication models (irrespective of any persistence technology) and you can grant access based on Roles defined as a hierarchical structure. See /examples/http-authentication application.

[Lift] Re: how to use thread in lift

2009-08-28 Thread marius d.
Why don't you use scala actors? ... and after you populate asynchronously the two lists do you need to report the lists back to client asynchronously (say Comet) or when the page is rendered? ... If it's the later that you'd probably need a count-down-latch or a cyclic barrier. Br's, Mairus On

[Lift] Re: Db.addLogFunc

2009-08-28 Thread marius d.
to master I would appreciate it. > > Derek > > On Sat, Aug 15, 2009 at 8:02 AM, Derek Chen-Becker > wrote: > > > OK, a preliminary version of log wrappers is checked in on > > wip-dcb-sql-log-wrappers. I'll merge it on Tuesday if no one sees any > > problems wi

[Lift] Re: Creating your own tags?

2009-08-28 Thread marius d.
Personally I'm not a fan of such feature. To me this doesn't bring much benefits especially that snippets pretty much allow this support such as: ...yes the wrapping tag is extra typing but still I can't find a real problem where a custom tags solves it and snippets do now. To me this look

[Lift] Re: Creating your own tags?

2009-08-28 Thread marius d.
if you define a set of tags for your CMS template and you run that against Lift's templating engine how do you prevent lift specific "tags" to be executed? > > Cheers, Tim > > On Aug 28, 5:48 pm, "marius d." wrote: > > > Personally I'm not a

<    1   2   3   4   5   6   >