[Lift] Re: How to set different response in lift

2009-04-27 Thread marius d.
an XmlResponse. But NodeSeq seems easier to me. Br's, Marius On Apr 27, 12:57 pm, pravin pravinka...@gmail.com wrote: Hi guys, i want send xml response to request when i click on button i should get xml file as response in browser . How can i do that in lift? Thanks in advanced

[Lift] Re: How to set different response in lift

2009-04-27 Thread marius d.
BTW ... I'm not sure why you'd prefer an XML response back instead of JSON or JavaScript ... but it's up to you. Br's, Marius On Apr 27, 8:13 pm, marius d. marius.dan...@gmail.com wrote: Of course ...  You can use: 1. DispatchPf functions and return an XmlResponse 2. Try this:   def

[Lift] Re: Upgrade to 2.7.4 breaks with-param?

2009-04-27 Thread marius d.
I could implement this soon if you are too busy. Just let me know. Br's, Marius On Apr 27, 10:37 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Apr 27, 2009 at 12:33 PM, marius d. marius.dan...@gmail.com wrote: Good ... well then shouldn't the same rationale be applied

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

2009-04-28 Thread marius d.
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

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

2009-04-28 Thread marius d.
and Dave's example could probably be simplified by using JqJsCmds.ModalDialog object Br's, Marius On Apr 29, 2:43 am, David Pollak feeder.of.the.be...@gmail.com 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

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

2009-04-29 Thread marius d.
button of the alert dialog. Br's, Marius --~--~-~--~~~---~--~~ 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

[Lift] Re: Showing a directory in lift

2009-04-30 Thread marius d.
Please see the lift-widgets project. There is a tree widget in there. Br's, Marius On Apr 30, 10:36 pm, lostem...@gmail.com lostem...@gmail.com wrote: I'm new to lift, so I'm sorry if it was covered somewhere, please point me to the link if it was. So the question is what is the best way

[Lift] Re: buttons and textbox

2009-05-03 Thread marius d.
Greg, ajaxCall returns a tuple (String, JsExp) ... so when you use it try something like: (onclick - ajaxCall(JsRaw($('#whatField').attr('value')), s = updateWhat(s))._2) Br's, Marius On May 3, 9:00 am, Meredith Gregory lgreg.mered...@gmail.com wrote: Lifted, When i look at the button

[Lift] Re: buttons and textbox

2009-05-03 Thread marius d.
to lambda.x.x and $('#whatField').attr ('value') is just returning the 'value' attribute of the whatField node. This returns the value set statically which is different from document.getElementById(whatField).value. I know it's a bit odd ... Br's, Marius On May 3, 10:51 am, Meredith Gregory lgreg.mered

[Lift] Re: Localize an image

2009-05-03 Thread marius d.
As a continuation to Tim's notes. You can have templates suffixed with the locale suffix. So for the template applicable for one locale or another just use different CSS files. I guess you can also use chooseTemplate to render different variants of the markup in question. Br's, Marius On May 1

[Lift] Re: Do you guys ever use lift:a key=... ... in your templates?

2009-05-03 Thread marius d.
Well SHtml.a yields a lift:a and processed in its own snippet now. I guess I'm only challenging the need for lift:a ... and try to understand in what context people really use it. Br's, Marius On May 3, 11:12 pm, Timothy Perrett timo...@getintheloop.eu wrote: Marius, To clarify, your saying

[Lift] Re: How to handle refresh with S.redirectTo with state?

2009-05-04 Thread marius d.
Not at all. They are safe. On May 3, 9:49 pm, Bryan. germ...@gmail.com wrote: Would that mean that the state of the RequestVar could accidentally be shared with multiple requests? On May 3, 1:51 pm, marius d. marius.dan...@gmail.com wrote: Hmmm ... the code seems to be fine (as far as I

[Lift] Re: how to hide /display div tag in lift

2009-05-04 Thread marius d.
... if you need something more dynamic. Br's, Marius On May 4, 1:28 pm, pravin pravinka...@gmail.com wrote: HI, I want to hide /display div tag. how can i controlled it from my snippet? my div tag contain table tag. Thanks --~--~-~--~~~---~--~~ You received

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread marius d.
Dave if you're doing benchmarks can you try using the template caching mechanism ? .. and try to see the differences ? Br's, Marius On May 4, 6:23 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, May 3, 2009 at 4:11 PM, Daniel Guryca dun...@gmail.com wrote: I have just tried mvn

[Lift] Re: Some Lift enhancements

2009-05-05 Thread marius d.
Dave, if you need any help with optimizations just let me know. Br's, Marius On May 5, 1:29 am, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Based on feedback, I've made some enhancements to Lift:    - Template caching is on by default when in Production mode    - Method

[Lift] Re: 1st draft of response to Martin's code challenge for scalable componentized lambda evaluator

2009-05-05 Thread marius d.
Any reason why not using Scala's combinator parsers? ... or this is beyond the point of the exercise? Br's Marius On May 5, 4:55 am, Meredith Gregory lgreg.mered...@gmail.com wrote: Lifted, Scalad and lasses, Recently Martin passed along a little code challenge regarding scalable

[Lift] Re: 1st draft of response to Martin's code challenge for scalable componentized lambda evaluator

2009-05-05 Thread marius d.
Right ... I always found combinator parsers a very nice fit for BNF. I agree these parser are not trivial but I still like them a lot :) Br's, Marius On May 5, 5:48 pm, Meredith Gregory lgreg.mered...@gmail.com wrote: Marius, Thanks for the query. Yes, there is a not so subtle point. Take

[Lift] Re: Do you guys ever use lift:a key=... ... in your templates?

2009-05-05 Thread marius d.
sweet ! .. I'll take care of that. On May 5, 7:18 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, May 3, 2009 at 3:51 AM, Marius marius.dan...@gmail.com wrote: Hi, I'm asking this because SHtml.a is a bit a-typical in the sense of producing lift:a that will render the ajax

[Lift] Re: garbage collection

2009-05-07 Thread marius d.
- referenced hence become eligible for garbage collector. Br's, Marius On May 7, 10:15 am, Oliver Lambert olambo...@gmail.com wrote: I'm trying to get an understanding how garbage collection is implemented in Lift. Any pointers on what scala classes do the actual work? While I'm at it, S.functionMap

[Lift] Re: garbage collection

2009-05-07 Thread marius d.
, marius d. marius.dan...@gmail.com wrote: In short the current Lift GC is: 1. Each page has an ID 2. Each mapped function is associated with the page ID 3. There are periodical Ajax request sent from the page that are refreshing the timestamps on the mapped functions 4. Mapped functions

[Lift] Re: garbage collection

2009-05-07 Thread marius d.
Just FYI ... Things in this area are may change a bit once JQuery fixes the bug related with namespaces.This was the main reason why we had to deviate from Dave's original idea of using lift:gc attributes. Br's, Marius On May 7, 3:47 pm, Oliver Lambert olambo...@gmail.com wrote: Ah, you mean

[Lift] Re: garbage collection

2009-05-07 Thread marius d.
, Marius On May 7, 10:22 pm, Oliver Lambert olambo...@gmail.com wrote: Any chance of exposing a getter on messageCallback that would return some statistics (the number of functions being stored would be a good starting point)? On Thu, May 7, 2009 at 11:21 PM, marius d. marius.dan...@gmail.com

[Lift] Re: garbage collection

2009-05-08 Thread marius d.
Can't you use a regular Java profiler to determine this? Perhaps would be beneficial to start thinking of a generic enough stats module that would reveal information like that to the lift applications. I guess we need to see what the general consensus is and take it from there. Br's, Marius

[Lift] Re: Tail merge?

2009-05-08 Thread marius d.
A lift:tail built in snippet might me a good addition. I could probably allocate some time to noodle on it. Br's, Marius On May 8, 5:05 pm, KWright kev.lee.wri...@googlemail.com wrote: It's becoming an established best practice that scripts should be put at the END of a page, where possible

[Lift] Re: Locale/Language in URL?

2009-05-09 Thread marius d.
Yeah ... Please see LiftRules.urlDecorate In your boot you can say something like: LiftRules.urlDecorate.append { case url = // here add the code that will add the lang query parameter } With this, all URI-s toward your app should have the information you appended. Br's, Marius On May

[Lift] Re: Tail merge?

2009-05-10 Thread marius d.
People can choose to smash multiple js/css files into a single one, in fact it is a common practice. However for scripts that can be deferred putting them at the bottom of the page can improve rendering. Br's, Marius On May 10, 4:42 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri

[Lift] Re: Tail merge?

2009-05-10 Thread marius d.
On May 10, 4:57 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, May 10, 2009 at 6:55 AM, marius d. marius.dan...@gmail.com wrote: People can choose to smash multiple js/css files into a single one, in fact it is a common practice. However for scripts that can be deferred

[Lift] Re: Tail merge?

2009-05-10 Thread marius d.
, especially the ecommerce tracking code. Here's something to keep an eye on as well:  http://blog.digg.com/?p=621 -- still very new and in development. --Bryan On May 10, 9:57 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, May 10, 2009 at 6:55 AM, marius d

[Lift] Re: Tail merge?

2009-05-11 Thread marius d.
On May 10, 9:57 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, May 10, 2009 at 6:55 AM, marius d. marius.dan...@gmail.com wrote: People can choose to smash multiple js/css files into a single one, in fact it is a common practice. However for scripts that can

[Lift] Re: Alternating row colors

2009-05-11 Thread marius d.
here else (class - my_gray_out) ) }/table } note that i did not test the code ... so it may not compile ... but I hope you got the idea. Br's, marius On May 11, 3:52 pm, Magnus Alvestad magnus.alves...@gmail.com wrote: I'm still learning lift (and scala). For my sample application

[Lift] Re: Alternating row colors

2009-05-11 Thread marius d.
JS= $('.striped tr:nth-child(odd)').css('background-color','#DD'); Ref:http://dev.opera.com/articles/view/zebra-striping-tables-with-css3/ Cheers, Viktor On Mon, May 11, 2009 at 3:54 PM, marius d. marius.dan...@gmail.com wrote: Assume that in your snippet you have a List[String

[Lift] Re: Confusion about Lift-Core

2009-05-12 Thread marius d.
not make sense in the diagram you posted? ... given the fact that this is a component level diagram and not a sequence/ flow one. Br's, Marius On May 12, 11:22 am, Charles F. Munat c...@munat.com wrote: Oh, that's easy. I don't get anything. The entire pipeline is a mystery to me. What I'd like

[Lift] Re: Confusion about Lift-Core

2009-05-12 Thread marius d.
comes up with ! Br's, Marius On May 12, 8:53 pm, Charles F. Munat c...@munat.com wrote: Marius, I think that there's some confusion about what I am looking for vs. what my questions were about the component diagram. These are two separate issues. Re the component diagram, I am just trying

[Lift] Re: A few things about the lift installer

2009-05-13 Thread marius d.
Windows... On May 13, 10:34 am, Timothy Perrett timo...@getintheloop.eu wrote: Which platform? windows? mac? Sent from my iPhone On 13 May 2009, at 07:41, Marius marius.dan...@gmail.com wrote: Hi, I had it everything working having the git sources and built lift from

[Lift] Re: A few things about the lift installer

2009-05-13 Thread marius d.
One other thing ... I just installed on Windows using the installer and I did not want it's maven and Java rebel. After installation I noticed that in my M2_REPO the lift's artifacts are not in my repository. Maybe I just don't understand how the installer works. Br's, Marius On May 13, 10:49

[Lift] Re: A few things about the lift installer

2009-05-13 Thread marius d.
On 13 May 2009, at 08:49, marius d. marius.dan...@gmail.com wrote: Windows... On May 13, 10:34 am, Timothy Perrett timo...@getintheloop.eu wrote: Which platform? windows? mac? Sent from my iPhone On 13 May 2009, at 07:41, Marius marius.dan...@gmail.com wrote: Hi, I had

[Lift] Re: A few things about the lift installer

2009-05-13 Thread marius d.
intention, just want to understand it ... Br's, Marius On May 13, 11:09 am, Timothy Perrett timo...@getintheloop.eu wrote: Ah right yes - it just does not do that :-) The installer configures the environent ready for dev. We took the   descion some time ago to not try and replicate the maven

[Lift] Re: A few things about the lift installer

2009-05-13 Thread marius d.
Just thank you very very much ! :) Br's, Marius On May 13, 11:46 am, Timothy Perrett timo...@getintheloop.eu wrote: The binaries are in our main maven repo of course on scala-tools... If we put them in the installer, this does 2 things: 1. makes more work for us to regularly update

[Lift] Re: Builing Lift ... again

2009-05-13 Thread marius d.
Well in the pom from master we have: 1. pluginRepositories points to repo-releases 2. repositories points to both repo-releases and repo-snapshots Br's, Marius On May 13, 4:17 pm, Josh Suereth joshua.suer...@gmail.com wrote: Do you have the scala-tools.org/repo-snapshots configured?   Maven

[Lift] Re: Bindings and Validation request cycle

2009-05-15 Thread marius d.
On May 15, 10:18 pm, Scalanewbie mc...@gmx.de wrote: Hi, as a lift-scala-newbie i am trying out various things with lift to see advantages etc. to other frameworks (rails, grails,...) I am now trying to integrate a third party java validation library and i want to embed the results into

[Lift] Re: Bindings and Validation request cycle

2009-05-15 Thread marius d.
15, 11:20 pm, Scalanewbie mc...@gmx.de wrote: Hi Marius, this is what i do at the moment, but i dont see a way to put the css class information into my elements after the validation. This seems not to be possible with the msgs class. Because it just prints out the error with a specific css

[Lift] Re: Tail merge?

2009-05-16 Thread marius d.
merge as head merge did not handle certain cases. Duplicates between head and tail contents though are not determined. Should you have any questions/suggestions/comments, please let me know. Br's, Marius On May 11, 10:37 am, Viktor Klang viktor.kl...@gmail.com wrote: On Sun, May 10, 2009 at 10:39

[Lift] Re: Bindings and Validation request cycle

2009-05-16 Thread marius d.
{ var myObject = new MyObject // set values from your bound functions and read values when redering happens ... } Br's, Marius On May 16, 2:49 am, Scalanewbie mc...@gmx.de wrote: In addtion to my problem, i found out that request vars live from the current request till the next request

[Lift] Re: Tail merge?

2009-05-16 Thread marius d.
ooops .. checking it right now :( On May 16, 7:53 pm, David Pollak feeder.of.the.be...@gmail.com wrote: I think you missed a file during your checkin.  The Tail object is missing :-( On Sat, May 16, 2009 at 7:15 AM, marius d. marius.dan...@gmail.com wrote: Folks, I just added

[Lift] Re: Tail merge?

2009-05-16 Thread marius d.
Done! ... very sorry about this. On May 16, 8:23 pm, marius d. marius.dan...@gmail.com wrote: ooops .. checking it right now :( On May 16, 7:53 pm, David Pollak feeder.of.the.be...@gmail.com wrote: I think you missed a file during your checkin.  The Tail object is missing :-( On Sat

[Lift] Re: Another StatefulSnippet question...

2009-05-16 Thread marius d.
Could you please post the code ... which is most relevant to this issue ? Br's, Marius On May 16, 11:53 am, ivan ivan.se...@gmail.com wrote: First I have to say sorry everyone for asking too many questions, asking a question is my last choice after i coludn't find an answer in a book

[Lift] Re: Length too long for generated XML

2009-05-18 Thread marius d.
{ case XhtmlResponse(node, docType, headers, cookies, code, renderInIEMode) = // do whatever you want with node and return a new XhtmlResponse case resp = resp } Br's, Marius On May 18, 1:43 am, sailormoo...@gmail.com sailormoo...@gmail.com wrote: Hi:   I would like to know if there is a way

[Lift] Re: Lift vs JSF?

2009-05-19 Thread marius d.
LOL ! On May 19, 7:45 am, Meredith Gregory lgreg.mered...@gmail.com wrote: Marius, No, seriously, tell us how you really feel. ;-) Best wishes, --greg On Mon, May 18, 2009 at 12:22 PM, marius d. marius.dan...@gmail.com wrote: I've been working on JSF projects in the past and IMO

[Lift] Re: Scala Sass Compiler

2009-05-19 Thread marius d.
I'm not quite a SASS fan but this looks pretty cool. If there is a lot of buy in for SASS out there maybe in time it will make sense for Lift to provide SASS support out of the box Br's, Marius On May 19, 6:35 am, David Pollak feeder.of.the.be...@gmail.com wrote: Very nifty stuff. On Mon

[Lift] Re: how to serve html fragments

2009-05-20 Thread marius d.
As I understood you want to make an Ajax request and serve back a Document Fragment. If so please also take a look at Jx stuff. We discuss Jx classes in a fairly amount of details in the lift book. Br's, Marius On May 20, 9:32 am, fatu fab...@gmail.com wrote: Timothy, thanks for the links, I

[Lift] Re: Problems with the MenuWidget

2009-05-20 Thread marius d.
is in your app pom :) (dumb question ...) Br's, Marius On May 20, 8:58 pm, Gonzalo N gonn...@gmail.com wrote: Thanks for the quick response. Yes, I've initialised the widget in the boot with Widget init ** In boot.scala: * package bootstrap.liftweb import _root_.net.liftweb.util

[Lift] Re: Problems with the MenuWidget

2009-05-20 Thread marius d.
Could you please post your code ? ... Are you initializing the widget in your boot ? Br's, Marius On May 20, 7:52 pm, Gonzalo N gonn...@gmail.com wrote: Hi, I've recently started using Lift in a project and probably my difficulty is basic, but I've tried the Widgets that are uploaded

[Lift] Re: Problems with the MenuWidget

2009-05-20 Thread marius d.
I emailed you privately an simple chat application that has the MenuWidget in it. I had no problem with putting it. If you stil can't figure it out please email me a minimalistic lift app where it just doesn't work. Br's, Marius On May 20, 10:04 pm, Gonzalo N gonn...@gmail.com wrote: After

[Lift] Re: Cron style job support?

2009-05-21 Thread marius d.
Or use Scala actors + ActorPing from lift. Marius On May 21, 12:54 am, Timothy Perrett timo...@getintheloop.eu wrote: Checkout the lift-machine module... should do what you want. Right now   it's tied to mapper, so if your not using that you'll have to look   elsewhere in normal JEE land

[Lift] Re: Welcome Alexander Kiok, you're the 1,000th member of the Lift community

2009-05-22 Thread marius d.
level of    popularity.    - *Beginning Scala* and *The Definitive Guide to Lift* shipped this    week.  Congrats to Derek, Marius, and Tyler on their book (my copy is on its    way to Romania for an autograph).    - Innovation Games Online (a Scala and Lift powered serious gaming site)    went

[Lift] Re: Namespace prefix error.

2009-05-24 Thread marius d.
Do you see any errors in the server console/logs? ... Do you have the XHTML markup that browser gets? Br's, Marius On May 24, 4:40 am, KaniniPazham mohan.narayanasw...@credit- suisse.com wrote: I guess my previous post didn't reach. I have tried enough to my lift knowledge, but need someone's

[Lift] Re: The new LiftActor code is live

2009-05-24 Thread marius d.
I'm wondering maybe it would be good to abstract the actors in Lift such that when Scala Actors are in a better shape we could just switch the implementation back to Scala Actors with very little Lift code changes. Br's, Marius On May 24, 2:26 am, David Pollak feeder.of.the.be...@gmail.com

[Lift] Re: The new LiftActor code is live

2009-05-24 Thread marius d.
evolve it. P.S. This will probably raise some questions from folks that want to adopt Lift. Br's, Marius On May 24, 8:56 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, May 24, 2009 at 1:46 AM, marius d. marius.dan...@gmail.com wrote: I'm wondering maybe it would be good

[Lift] Re: lift-tag discussion

2009-05-25 Thread marius d.
. Hopefully are people would feel the same. Br's, Marius On May 25, 12:44 pm, Timothy Perrett timo...@getintheloop.eu wrote: +1 for option 1... seems to make the most sense given our current infrastructure. What would be the benifit of keeping lift tags around longer term? Are there any performance

[Lift] Re: Giving an Actor access to S

2009-05-25 Thread marius d.
actor. Not sure why you need the hostName from inside an actor but you know best what application you are building. Br's, Marius On May 25, 9:39 pm, Bryan germ...@gmail.com wrote: How can I give an Actor access to S?  I need this for adding results to a SessionVar of a HashMap. If I call show

[Lift] Re: Giving an Actor access to S

2009-05-25 Thread marius d.
Well and S object is initiated but in an asynchronous operation you wont really have request information cause you are beyond a request scope. Some things from S maybe available at that time. Br's, Marius On May 26, 1:42 am, Timothy Perrett timo...@getintheloop.eu wrote: My understanding

[Lift] Re: lift-tag discussion

2009-05-26 Thread marius d.
Ok I have a first draft implementation for #1 above and I'll check it in soon in wip-marius-dom-optimizations branch. I need to run more tests on it before putting it into master. Br's, Marius On May 25, 1:31 pm, marius d. marius.dan...@gmail.com wrote: No performance implications especially

[Lift] Re: lift-tag discussion

2009-05-26 Thread marius d.
the lift prefix configurable from LiftRules but I really don't see the value added by this. W On May 25, 6:31 am, marius d. marius.dan...@gmail.com wrote: No performance implications especially since built-in snippets are objects and invoked non reflectively. It's just that the way these two

[Lift] Re: Giving an Actor access to S

2009-05-26 Thread marius d.
in the context of S ... val listener: Actor = actor { val ownSession = S.session loop { react { case 'show = S.initIfUninitted(ownSession) { myVar(some value) } } } ... Br's, Marius On May 26, 4:26 pm, Bryan. germ...@gmail.com wrote: Thanks for the reply, guys

[Lift] Re: lift-tag discussion

2009-05-26 Thread marius d.
On May 26, 2:18 pm, Willis Blackburn willis.blackb...@gmail.com wrote: is this too bad? lift:display      user:name/      user:address/ /lift:display No, it's not bad.  But allowing non-lift prefixes would neatly solve your problem by changing the definition of the lift prefix

[Lift] Re: Sticking the little toe in the LiftActor water

2009-05-26 Thread marius d.
So we essentially use LiftActors for ContinuationActors but still keep Scala Actors for CometActors. I'm more comfortable with this approach not from technical reasoning but from adoption/political. Br's, Marius On May 26, 9:09 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks

[Lift] Re: Session usage in Lift

2009-05-27 Thread marius d.
On May 27, 9:17 am, Kristinn kristinn.daniels...@gmail.com wrote: Yes, I understand your confusion, however sometimes people make designs that don't make much sense to others on first look (like using sessions for rendering all html). But there are often good reasons for these decisions

[Lift] Re: Serve a static xml file

2009-05-27 Thread marius d.
Have you tried to put that URL in the LiftRules.liftRequest ? .. you can decide there if that one will be served by lift or not. Br's, Marius On May 27, 3:23 pm, Timothy Perrett timo...@getintheloop.eu wrote: Hey guys, Is there a reason that I can not just place an xml file in webapp

[Lift] Re: What version of Lift is that?

2009-05-28 Thread marius d.
SUPER NICE ! On May 28, 3:11 am, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I've just committed up a little bit of niceness to Lift.  You can do the following: Lift version lift:version_info.lift/ built on lift:version_info.date/ These are snippets that recall the Lift

[Lift] Re: What version of Lift is that?

2009-05-28 Thread marius d.
Dave is there a reason why you removed the the deprecation log call for snippet A? ... I thought we discussed on a different thread that it should be deprecated. Also I can't seem to find VersionInfo snippet. Did you add it ? Br's, Marius On May 28, 9:49 am, marius d. marius.dan...@gmail.com

[Lift] Re: ** Significant commits **

2009-05-28 Thread marius d.
I asked about the same thing on a different thread :). I think this is not related with the commit above but with the latest commit Dave made :) Br's, Marius On May 28, 11:58 am, Timothy Perrett timo...@getintheloop.eu wrote: Yup, thats now fixed, but lift is still broken. When doing a build

[Lift] Re: Record with the new bind-immutable

2009-05-29 Thread marius d.
or complementary functionality so that people to not get confused. I'm not trying at all to be negative or anything, just trying to understand the value added. Br's, Marius On May 29, 11:01 am, Oliver Lambert olambo...@gmail.com wrote: I'm aware of S.error and my ValidationError uses it when I'm

[Lift] Re: How important is AJAX to you?

2009-05-29 Thread marius d.
still have the same context semantics but referred from URI not cookies. Br's, Marius On May 29, 7:00 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, May 29, 2009 at 7:58 AM, Joe Wass j...@folktunefinder.com wrote: This may be heresy on this list, but I'll ask it anyway

[Lift] Re: Dependent fields in form

2009-05-30 Thread marius d.
That should be quite easy. See http://demo.liftweb.net/ajax-form Marius On May 29, 9:46 pm, feelgood asseliva...@gmail.com wrote: Is it real to create form with dependent field? Suppose whe have two select boxes: for the country and for the city. It would be quite good, if country selection

[Lift] Re: Lift does not display templates as described in the book.

2009-05-30 Thread marius d.
descriptions etc. Maybe some things in the book are not very obvious for a first read or just reading it as ultimatelly learning Lift is about coding trying things. The book is just a mean to an end, I would say. Br's, Marius On May 30, 9:38 pm, Sean Reque seanre...@gmail.com wrote: I have

[Lift] Re: JavaScript interface to Comet

2009-05-30 Thread marius d.
? P.S. By default Lift's Ajax/Comet support works against JavaScript content type responses and not JSON. However you can use JSON as well. Br's, Marius On May 30, 3:12 pm, Xavi Ramirez xavi@gmail.com wrote: Hello, I was wondering if Lift provides a javascript interface to comet? Ideally

[Lift] Re: Lift does not display templates as described in the book.

2009-05-30 Thread marius d.
your problem and you will get answers. - Sean Reque On May 30, 2:56 pm, marius d. marius.dan...@gmail.com wrote: To access a page you need to add it in the SiteMap. I assume you are a bit confused about the relation between a Menu and a page. I mean after all maybe for your site you don't

[Lift] Re: JavaScript interface to Comet

2009-05-31 Thread marius d.
. What you're trying to do seems like an interesting thing for a Lift demo app in the sense that it would provide an interesting visual effect through CometActor. Br's, Marius On May 31, 4:46 am, Xavi Ramirez xavi@gmail.com wrote: I'm trying add some comet features to an existing JS app

[Lift] Re: Showing a Box or Redirecting?

2009-05-31 Thread marius d.
class SomeSnippet { val foo: Box[Foo] = tryo(session1.get(S.param(id).getOrElse ())) // But I think with this code you'll always get a Full Box due to getOrElse ? def render(func: foo = NodeSeq) = foo.map(l = func(l)) openOr (your code in case foo is empty and potentially return

[Lift] Re: Ideas for an ordered list in a form

2009-05-31 Thread marius d.
A couple of years ago I did the same thing with drag and drop ... but I wrote the JS code, and for some reason I didn't really look for an existent solution :) ... I think I still have the damn thing and if you want to I could send it to you. On May 31, 3:01 am, Derek Chen-Becker

[Lift] Re: lift views

2009-05-31 Thread marius d.
Agreed with Tim. I also don't see any value. And the point of viewing the template statically is not an argument to me because the template is still incomplete for a proper rendering, xhtml browser would probably complain about prefixes it doesn't know about etc. Br's, Marius On May 31, 5:32

[Lift] Re: JavaScript interface to Comet

2009-06-01 Thread marius d.
a comet stream? P.P.S.S.  I feel there's some utility in a JsCometActor.  If you all are amenable, I'd love to write up a proposal and maybe even lend a hand with implementing it. On Sun, May 31, 2009 at 4:07 AM, marius d. marius.dan...@gmail.com wrote: Yes looks like this is exactly what

[Lift] Re: JavaScript interface to Comet

2009-06-01 Thread marius d.
Sorry hit send too soon ... continuation below On Jun 1, 10:42 am, marius d. marius.dan...@gmail.com wrote: On Jun 1, 2:59 am, Xavi Ramirez xavi@gmail.com wrote: Thanks for pointing me into the right direction.  I've created a simple example (see attachment).  In my example, the user

[Lift] Re: Record and Field

2009-06-01 Thread marius d.
what Java version are you using? On Jun 1, 1:58 pm, Oliver Lambert olambo...@gmail.com wrote: When I try to run createRecord on a net.liftweb.record.Record, I get a java.lang.ExceptionInInitializerError. Any ideas what I might be doing wrong? cheers Oliver

[Lift] Re: Prevent direct access to templates

2009-06-01 Thread marius d.
What do you have in your SiteMap? .. only login or both login and login_ru. Normally you should only have login and login_ru would be picked up automatically by lift depending on what Locale the LiftRules.localeCalculator returns. Br's, Marius On Jun 1, 9:52 am, feelgood asseliva...@gmail.com

[Lift] Re: Future of the Lift wiki

2009-06-02 Thread marius d.
I believe Debbie was asking the community for a few folks willing to garden the wiki. Anyone interested? Br's, Marius On Jun 2, 11:07 am, Timothy Perrett timo...@getintheloop.eu wrote: Guys, I know you chaps are quite new on this lift, so just to add a bit of background - we've been here

[Lift] Re: Ideas for an ordered list in a form

2009-06-03 Thread marius d.
golden :) Derek On Tue, Jun 2, 2009 at 3:02 PM, Marius Danciu marius.dan...@gmail.comwrote: Derek, Here is the thing (FWIW). Embedding JQuery UI in Lift sounds like a good thing to me as many JQuery plugins requires it. I hope there are no other non-technical implications though

[Lift] Re: Problem with Menu.builder li_path/li_item

2009-06-03 Thread marius d.
attribute with the same name but different prefixes should be ok as long as the prefixes are bound to namespace URL's. Br's, Marius On Jun 3, 12:24 am, Derek Chen-Becker dchenbec...@gmail.com wrote: I think that this has been discussed on the list before. It's definitely an issue with having

[Lift] Re: Future of the Lift wiki

2009-06-03 Thread marius d.
That's fantastic we have a couple of folks willing to contribute to the wiki! I'm cc-ing Debby as she's great with organizing things (in case she doesn't watch this thread). Debby any thoughts ? Br's, Marius On Jun 2, 5:16 pm, Bryan. germ...@gmail.com wrote: I too am willing to help. I

[Lift] Re: How to remove leading text in Msgs.error

2009-06-05 Thread marius d.
, if yes let's talk about it. Br's, Marius On Jun 5, 12:48 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, I'm trying to remove the Notice, Error lead in text that is displayed when using the Msgs snippet, like this:  lift:snippet type=msgs           lift:notice_msg class=success

[Lift] Re: How to remove leading text in Msgs.error

2009-06-05 Thread marius d.
Personally I don't think that a debug warning is necessary ... since if the node is empty it is very intuitive for the user that nothing will be rendered there which leads to an intended behavior. Br's, Marius On Jun 5, 5:06 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: +1. If someone

[Lift] Re: How to remove leading text in Msgs.error

2009-06-05 Thread marius d.
it out, that would be confusing. Kind of a deprecation warning, so to speak. Derek On Fri, Jun 5, 2009 at 8:25 AM, marius d. marius.dan...@gmail.com wrote: Personally I don't think that a debug warning is necessary ... since if the node is empty it is very intuitive for the user

[Lift] Re: How to remove leading text in Msgs.error

2009-06-05 Thread marius d.
Committed. Let me know if that works for you. On Jun 5, 6:31 pm, marius d. marius.dan...@gmail.com wrote: Oh right ..that  makes sense. Thanks Derek ! On Jun 5, 6:28 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Well, I meant for a period of time, since we're changing default behavior

[Lift] Re: Snippets and Requests

2009-06-07 Thread marius d.
the page in binds. Br's, Marius On Jun 6, 11:14 pm, Lance Walton lance.c.wal...@googlemail.com wrote: Hi. From my various readings, I believed that a single instance of a snippet will be used for a particular request. I am trying to make use of this in order to implement a search feature in my app

[Lift] Re: Lift Jquery autocomplete *** API CHANGE CANDIDATE ***

2009-06-08 Thread marius d.
Other folks, please speak up ! :) ... I will soon migrate this into a Lift widget. Br's, Marius On Jun 6, 4:53 pm, David Pollak feeder.of.the.be...@gmail.com wrote: I think I'm using in one place in one project so my api breakage factor is low.  I'm okay with moving it unless someone else

[Lift] Re: Attributes in Menu.item not rendered

2009-06-08 Thread marius d.
Do you see any behavior change if you put a text value such as: lift:Menu.item name=helpMenu a:class=nav Some tex / lift:Menu.item Br's, Marius On Jun 8, 12:55 am, Ewan ehar...@gmail.com wrote: I'm trying to create a menu using CSS and links that is a class=nav/ which accoring

[Lift] Re: Google App Engine for Scala!

2009-06-08 Thread marius d.
Out of curiosity have you tried JDO with GAE? Does anyone have a simple example? Br's, Marius On Apr 11, 10:53 am, Atsuhiko Yamanaka atsuhiko.yaman...@gmail.com wrote: Hi, On Fri, Apr 10, 2009 at 10:03 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Thank you! Thank you! Thank you

[Lift] Re: Programming in Scala #5, Lift Book #8, Beginning Scala #9

2009-06-08 Thread marius d.
On the apress site: http://apress.com/book/downloadfile/4390 Apress decided (we agreed) that the appendixes will not be included in the first printing run in order to get the book ready for Java One. Br's, Marius On Jun 8, 5:49 pm, Peter Bliznak bliz...@rogers.com wrote: As an loyalist

[Lift] Re: Attributes in Menu.item not rendered

2009-06-08 Thread marius d.
=/help/Help Me!/a -- Ewan On Jun 8, 9:07 am, marius d. marius.dan...@gmail.com wrote: Do you see any behavior change if you put a text value such as: lift:Menu.item name=helpMenu a:class=nav Some tex / lift:Menu.item Br's, Marius On Jun 8, 12:55 am, Ewan ehar...@gmail.com wrote

[Lift] Re: Attributes in Menu.item not rendered

2009-06-08 Thread marius d.
Ewan, I just committed a fix on master. The pattern matching was actually failing and the attributes were never added. I gave it a try and worked for me. Please test and let me know if it works for you Br's, Marius On Jun 8, 6:58 pm, Ewan ehar...@gmail.com wrote: I think you mean and reading

<    2   3   4   5   6   7   8   9   10   >