[Lift] Re: A round of thanks to Marius for better GC

2009-02-19 Thread marius d.
Thank you Dave, I just noticed a little bug in case cookies are disabled. I just committed a fix for it. Br's, Marius On Feb 20, 4:29 am, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Marius made some patches to Lift's GC support today.  He removed the lift:gc tag so we don't

[Lift] Re: A round of thanks to Marius for better GC

2009-02-20 Thread marius d.
On Feb 20, 5:30 pm, Viktor Klang viktor.kl...@gmail.com wrote: I unfortunately have been working alot lately and havent had a chance to check the new GC code out. Some kind soul who can explain the new solution? Well instead of using lift:gc all around the gc polling send up only the page

[Lift] Re: Sanity Check...

2009-02-25 Thread marius d.
On Feb 24, 10:16 pm, Tim Perrett he...@timperrett.com wrote: Guys, Just looking for a sanity check. Im planning out some database localization stuff that I need to implement to localize a system... Im not concerned with currency or other such fun localization problems, simply localizing

[Lift] Re: Adding bundle factory to LiftRules

2009-02-27 Thread marius d.
How would LiftRule.resourceNames work with type ResourceBundleFactoryPF = PartialFunction[Locale,Box [ResourceBundle]] var resourceBundleFactories : RulesSeq[ResourceBundleFactory] ... from usability perspective ? On Feb 27, 7:38 pm, Tim Perrett timo...@getintheloop.eu wrote: Ok,

[Lift] Re: Adding bundle factory to LiftRules

2009-02-27 Thread marius d.
Any reason why not use NamedPF.applyBox ? On Feb 27, 7:12 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Take 3. Change the factory application to: LiftRules.resourceBundleFactories.toList.find(_.isDefinedAt(locale)).toList.map(_.apply(locale)) Derek On Fri, Feb 27, 2009 at 11:05 AM,

[Lift] Re: Adding bundle factory to LiftRules

2009-02-27 Thread marius d.
, marius d. marius.dan...@gmail.com wrote: How would LiftRule.resourceNames work with type ResourceBundleFactoryPF = PartialFunction[Locale,Box [ResourceBundle]] var resourceBundleFactories : RulesSeq[ResourceBundleFactory] ... from usability perspective

[Lift] Re: Configurable JQuery Version?

2009-02-28 Thread marius d.
GC stuff is not dependent on the underlying JS library. On Feb 28, 7:36 pm, Tim Perrett timo...@getintheloop.eu wrote: Ah right excellent - I was not sure if any of the new GC stuff *needed* that version or not hence my reason for asking :-) Cheers, Tim

[Lift] Re: Record and JSON

2009-03-04 Thread marius d.
:) .. ok ... let me noodle for while on this and I'll get back with more details ... perhaps a POC On Mar 4, 7:11 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Mar 4, 2009 at 9:08 AM, Marius marius.dan...@gmail.com wrote: Hi, I was thinking that it might be useful to be

[Lift] Re: I would Love to see JSR 168/ 268 Portlet Support

2009-03-05 Thread marius d.
Out of curiosity are you looking for both local and remote (WSRP) portlets support ? On Mar 5, 1:11 am, abut rmoska...@gmail.com wrote: Having evaluated by Grails and Lift, and being about ready to start a project, the only thing that inclines me to Grails is the portlet support. Is such a

[Lift] Re: Awesome Scala, Lift, EMSE, and Buy a Feature press

2009-03-05 Thread marius d.
Outstanding ! On Mar 4, 9:55 pm, David Pollak feeder.of.the.be...@gmail.com wrote: http://www.adtmag.com/article.aspx?id=24080 -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git

[Lift] Re: Proposed localization change to S

2009-03-06 Thread marius d.
+1 for overloading '? ' On Mar 6, 4:52 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: I think this is a reasonable addition, but I would use def ?(key : String, defaultKey : String) = ... That way changing the default text just doesn't require changes to code. Derek On Fri, Mar 6,

[Lift] Re: Record and JSON

2009-03-07 Thread marius d.
Why not use Lift's parser one for the purpose of Record integration? However the way I see it converting from a Record to JSON the result should be a JsObj structure so that it can be used in other JS expressions. Also converting from a Record to JsObj is pretty straight forward at this Record

[Lift] Re: Bug in LiftRules defaultLocaleCalculator

2009-03-11 Thread marius d.
Ohh goody goody goody ... I won't have to fix it :D ... so back on the book work ... On Mar 11, 5:15 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Fixed in the 1.1 branch.  It might make sense to back-port to the 1.0 branch On Wed, Mar 11, 2009 at 1:49 PM, marius d. marius.dan

[Lift] Re: How can I use unit tests with S.?(key) ?

2009-03-11 Thread marius d.
Can you try S.initIfUninitted(liftSession) { do your code here } ? ... but you'd still need to create a dumb LiftSession Br's, Marius On Mar 11, 8:40 pm, Joachim A. wallaby.po...@googlemail.com wrote: Hi, I have a unit test which call a method which uses the locale method S.?

[Lift] Re: OpenID defect and fix

2009-03-15 Thread marius d.
Good points but OpenIdConsumer is typically not directly used. To make it work from your application you just use OpenIdVendor On Mar 15, 8:52 pm, Jan Lohre jan.lo...@googlemail.com wrote: Breaking the api IMHO needs stronger justification than naming consistency. But thats just my two cents.

[Lift] Re: OpenID defect and fix

2009-03-15 Thread marius d.
+1 Charles... (... I would rather avoid diverging into a philosophical discussion). I wonder if there is someone out there that actually used directly OpenIDConsumer ... it's likely not break anything since Lift's OpenID support is pretty undocumented ... till now. Furthermore I opted in for

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-15 Thread marius d.
just out of curiosity are you setting manually in the HTTP header Content-Type: text/html; charset=UTF-8 and it's still broken? P.S. Sometimes HTTP equiv from HTML header just doesn't do the trick. Br's, Marius On Mar 15, 11:20 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Crapola:

[Lift] Re: OpenID defect and fix

2009-03-16 Thread marius d.
: lift-util, lift-http, and lift-mapper.  The others I consider to be a little more slushy. Thanks, David On Sun, Mar 15, 2009 at 8:44 PM, marius d. marius.dan...@gmail.com wrote: Good points but OpenIdConsumer is typically not directly used. To make it work from your application you

[Lift] Re: Error in Msgs

2009-03-16 Thread marius d.
You're right. Can you fix and commit it ? On Mar 16, 8:20 pm, Charles F. Munat c...@munat.com wrote: Line 54 in net.liftweb.builtin.snippet.Msgs.scala reads:    (styles \\ error_msg \\ @class)), 1), It should read:    (styles \\ warning_msg \\ @class)), 1), Chas.

[Lift] Re: Error in Msgs

2009-03-16 Thread marius d.
Wow I could have swear that Charles is on bord ! LOL I'll commit it in a bit :) On Mar 16, 9:26 pm, Charles F. Munat c...@munat.com wrote: Heh, heh. You don't want me sticking my nose in there... Chas. marius d. wrote: You're right. Can you fix and commit it ? On Mar 16, 8:20 pm

[Lift] Re: Error in Msgs

2009-03-16 Thread marius d.
committed in both master anf 1.0 On Mar 16, 10:00 pm, marius d. marius.dan...@gmail.com wrote: Wow I could have swear  that Charles is on bord ! LOL I'll commit it in a bit :) On Mar 16, 9:26 pm, Charles F. Munat c...@munat.com wrote: Heh, heh. You don't want me sticking my nose

[Lift] Re: Welcome Lee Mighdoll to the Lift committers

2009-03-18 Thread marius d.
Lee, you're most welcomed ! On Mar 18, 5:11 am, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I'm pleased to welcome Lee Mighdoll to the Lift committers.  Lee wrote the brilliant line: Lift is an expressive and elegant framework for writing web applications. Almost 18 months

[Lift] Re: Forms validation formatter

2009-03-18 Thread marius d.
On Mar 18, 8:54 pm, Clemens clemens.oer...@gmail.com wrote: Yes I am referring to toForm but note that you can provide your own template. Please see formTemplate. I did, thanks for the pointer. formTemplate applies to the record as a whole, right? If I want to render a record

[Lift] Re: horizontal navbar drop-downs

2009-03-19 Thread marius d.
I'm wondering if we shouldn't provide this by the means of a Lift widget. Looks like a needed feature ... WDYT ? Br's, Marius On Mar 19, 6:43 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Mar 19, 2009 at 9:30 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: This is

[Lift] Re: Forms validation formatter

2009-03-19 Thread marius d.
On Mar 18, 11:24 pm, Clemens clemens.oer...@gmail.com wrote: Thank you for your patience, Marius. Well you can use different RecordMeta implementations if you need to different representation of a record without sequential template change. So no state dependency. , b I'm really not

[Lift] Re: Forms validation formatter

2009-03-19 Thread marius d.
On Mar 19, 7:08 pm, marius d. marius.dan...@gmail.com wrote: On Mar 18, 11:24 pm, Clemens clemens.oer...@gmail.com wrote: Thank you for your patience, Marius. Well you can use different RecordMeta implementations if you need to different representation of a record without sequential

[Lift] Re: horizontal navbar drop-downs

2009-03-19 Thread marius d.
, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Mar 19, 2009 at 9:50 AM, marius d. marius.dan...@gmail.comwrote: I'm wondering if we shouldn't provide this by the means of a Lift widget. Looks like a needed feature ... WDYT ? Sounds good to me. Br's, Marius

[Lift] Re: horizontal navbar drop-downs

2009-03-19 Thread marius d.
...@gmail.com wrote: Feel free to take it when we let you ;). On Thu, Mar 19, 2009 at 1:16 PM, marius d. marius.dan...@gmail.com wrote: Derek let me know if you want to own this ... otherwise I'll take it if no one else claims it ... after I'm added to the magic owner list on lighthouse :D

[Lift] Re: Lift as a UI in server side OSGi

2009-03-19 Thread marius d.
Hi Chad, On Mar 19, 9:45 pm, chad skinner chadwskin...@gmail.com wrote: I am trying to redesign our web applications into a more services / component based system that would allow us to add features without having to worry about breaking other components. I have been investigating OSGi as a

[Lift] Re: Lift Web, why no download of a zipped archive on the website?

2009-03-19 Thread marius d.
I guess it would be beneficial for the zip to contain the built artifacts such as http://scala-tools.org/hudson/job/lift/643/ ... and a little script that would push them into the local maven repository ? Br's, Marius On Mar 19, 10:34 pm, BerlinBrown berlin.br...@gmail.com wrote:

[Lift] Re: Welcome Charles Munat to the Lift committers

2009-03-20 Thread marius d.
Welcome Charles ... I know I'm on the list of people that always thought you're already a committer ... so now my confusion is gone ! Glad to have you on board and not over it :) On Mar 20, 9:49 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I am pleased to welcome Charles Munat

[Lift] Re: horizontal navbar drop-downs

2009-03-20 Thread marius d.
at the YUI version for those people using YUI     (I'm using both, though obviously not at the same time).     Chas.     David Pollak wrote:       On Thu, Mar 19, 2009 at 9:50 AM, marius d.     marius.dan...@gmail.com mailto:marius.dan...@gmail.com       mailto:marius.dan

[Lift] Re: Menu widget

2009-03-21 Thread marius d.
branch to show what I mean if you'd like. Derek On Sat, Mar 21, 2009 at 8:22 AM, marius d. marius.dan...@gmail.com wrote: Similar approach yes, duplicate not quite. It just utilizes that the API provided by SiteMap, MenuItem etc. and walks through a tree structure and build ul/li constructs

[Lift] Re: Menu widget

2009-03-21 Thread marius d.
have something usable. Derek On Sat, Mar 21, 2009 at 10:01 AM, marius d. marius.dan...@gmail.com wrote: I think I am aware what you meant ... If you want to make SiteMap to know how to render itself as ul/li hence centralize this fine by me. I have nothing against it, I just don't see

[Lift] Re: Menu widget

2009-03-21 Thread marius d.
Good point ... perhaps put it on the Lift online demo application? Br's, Marius On Mar 21, 6:29 pm, James Matlik james.mat...@gmail.com wrote: Is there a running version of the widgets site online, or is this only available in source format?  It would be nice to have something like this

[Lift] Re: Menu widget

2009-03-23 Thread marius d.
and let you know when I have something usable. Derek On Sat, Mar 21, 2009 at 10:01 AM, marius d. marius.dan...@gmail.com mailto:marius.dan...@gmail.com wrote:     I think I am aware what you meant ... If you want to make SiteMap to     know how to render itself as ul/li hence

[Lift] Re: [ANN] Exploring Lift: a Book for the Scala-based Web Framework

2009-03-23 Thread marius d.
LOL ... but damn right. At this point I can only wholeheartedly thanks David and each and every committer for Lift's existence. Br's, Marius On Mar 23, 11:22 pm, Viktor Klang viktor.kl...@gmail.com wrote: On Mon, Mar 23, 2009 at 10:16 PM, David Pollak feeder.of.the.be...@gmail.com wrote:

[Lift] Re: State and binding

2009-03-24 Thread marius d.
be a performance killer. -Alex On Mar 24, 2:46 am, marius d. marius.dan...@gmail.com wrote: The foo reference is captured in checkAndSave which is saved on LiftSession in function mapping. Br's, Marius On Mar 24, 10:23 am, Alex a...@liivid.com wrote: If I have this in a (not Stateful

[Lift] Re: Adding / Updating a JsObj

2009-03-24 Thread marius d.
Please see def props: List[(String,JsExp)] and def +*(other: JsObj) would this suffice ? +* looks like an awkward name to me ... ++ expresses concatenation better IMHO. Br's, Marius On Mar 24, 8:36 pm, Tim Perrett timo...@getintheloop.eu wrote: Hey guys, So, I have a JsObj with a

[Lift] Re: Adding / Updating a JsObj

2009-03-24 Thread marius d.
oops typo Perreyt = Perrett :D On Mar 24, 10:15 pm, marius d. marius.dan...@gmail.com wrote: On Mar 24, 9:46 pm, Timothy Perrett timo...@getintheloop.eu wrote: Hmm, it seems like this is not enough as lists do not care for keys. A valid JSON structure allows multiple properties

[Lift] Re: Adding / Updating a JsObj

2009-03-24 Thread marius d.
On Mar 24, 10:27 pm, Timothy Perrett timo...@getintheloop.eu wrote: Hey Marius, Not difficult but not convenient either such as: def update(name: String, newVal: JsExp, obj: JsObj) = (for (found - obj.props if found._1 != name) yield found) ::: List(name, newVal) I think your exactly

[Lift] Re: Lift Authentication

2009-03-25 Thread marius d.
On Mar 25, 6:00 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Mar 25, 2009 at 8:56 AM, Chad Skinner chadwskin...@gmail.comwrote: All of our applications are currently using form based authentication in the EJB container .. am I correct that this (Form based authentication)

[Lift] Re: State and binding

2009-03-25 Thread marius d.
On Mar 25, 3:46 pm, Chad Skinner chadwskin...@gmail.com wrote: Not know much about lift yet and wanting to learn more, what is stored in the server session for a simple application? I am assuming it is used by the binder to store the generated form field names so the submitted fields

[Lift] Re: Lift Authentication

2009-03-25 Thread marius d.
Hi, Everything said here pretty much covers it. I just want to say the HTTP authentication has pretty much nothing to do with form based authentication. Lift HTTP authentication is based on RFC 2617. Form based authentication is something invented by J(2)EE JSR specs and J(2) EE containers use

[Lift] Re: Form action URI's

2009-03-26 Thread marius d.
You could use some hidden form fields and have another rewriter in front of you existent one. This will read the hidden params and reconstruct the query string. But it looks to me that changing the action via JS would be easier. Br's, Marius On Mar 26, 9:51 pm, Timothy Perrett

[Lift] Re: mixinAttributes help

2009-03-27 Thread marius d.
If I may you can also use something like: bind(f, xhtml, query - {n: NodeSeq = (for (node - BindHelpers.currentNode) yield BindHelpers.mixinAttributes(SHtml.text(query, query = _))(node)) open_! }, submit - SHtml.submit(Submit, processSearch) ) lift:MyItems.search form=POST Query:br /

[Lift] Re: mixinAttributes help

2009-03-27 Thread marius d.
;) Br's, Marius On Mar 27, 9:40 pm, marius d. marius.dan...@gmail.com wrote: If I may you can also use something like: bind(f, xhtml,      query - {n: NodeSeq = (for (node - BindHelpers.currentNode) yield BindHelpers.mixinAttributes(SHtml.text(query, query = _))(node)) open_! },      submit

[Lift] Re: Bidirectional Record - JSON conversion

2009-03-29 Thread marius d.
Apologies ... fixing it now. On Mar 29, 11:34 pm, Timothy Perrett timo...@getintheloop.eu wrote: FYI - the job is also failing on Hudson http://scala-tools.org/hudson/job/lift/926/ On Mar 29, 9:29 pm, Timothy Perrett timo...@getintheloop.eu wrote: @marius, this is slick. However, its

[Lift] Re: Bidirectional Record - JSON conversion

2009-03-29 Thread marius d.
Done ... The Box's implicits were not visible. Funny it was working on my Eclipse plugin 2.8.0 ... Sorry again and thanks for pointing it out ! Br's, Marius On Mar 29, 11:45 pm, marius d. marius.dan...@gmail.com wrote: Apologies ... fixing it now. On Mar 29, 11:34 pm, Timothy Perrett timo

[Lift] Re: lift on vista

2009-03-30 Thread marius d.
Does it work if you put http://127.0.0.1:8080 ? if it does you need to add 127.0.0.01localhost in your c:/windows/sys32/drivers/etc/hosts Br's, Marius On Mar 29, 6:29 pm, vpalle fredrik.skeel.loe...@gmail.com wrote: Hi there I've followed the getting started guide and managed to

[Lift] Re: Derek's #1

2009-03-30 Thread marius d.
Keep on Rockin' Derek ! On Mar 30, 7:15 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, It's almost the end of the most active month ever on the Lift list.  I'm happy to report that Derek is the #1 poster this month.  He's been helping lots of folks and improving Lift. So,

[Lift] Re: Welcome Jonas Bonér to the Lift committer s

2009-03-30 Thread marius d.
Welcome Jonas ! On Mar 30, 7:52 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Please join me in welcoming Jonas as a Lift committer.  I had the pleasure of meeting Jonas as QCon in London this month.  Jonas, Tim, and I went out a grabbed a few pints and chatted.  I think

[Lift] Re: Welcome Jonas Bonér to the Lift committer s

2009-03-30 Thread marius d.
there is a market for it somewhere. Lee On Mon, Mar 30, 2009 at 11:15 AM, marius d. marius.dan...@gmail.comwrote: Welcome Jonas ! On Mar 30, 7:52 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Please join me in welcoming Jonas as a Lift committer.  I had

[Lift] Re: Forms validation formatter

2009-03-31 Thread marius d.
. I'm really glad you like Lift ! Thank you for listening/reading, Clemens On 19-Mar-09, at 1:08 PM, marius d. wrote: On Mar 18, 11:24 pm, Clemens clemens.oer...@gmail.com wrote: Thank you for your patience, Marius. Well you can use different RecordMeta implementations if you need

[Lift] Re: Forms validation formatter

2009-03-31 Thread marius d.
On Mar 31, 9:09 pm, Clemens Oertel clemens.oer...@gmail.com wrote: Marius: On 31-Mar-09, at 12:31 PM, marius d. wrote: On Mar 31, 5:06 pm, Clemens Oertel clemens.oer...@gmail.com wrote: - Why not provide the same template mechanism used for forms for HTML output? This way I can

[Lift] Re: Menu widget

2009-04-01 Thread marius d.
ideas on how to prevent/fix this?  Do I need to modify my .pom? Thanks, David On Mar 23, 12:18 pm, marius d. marius.dan...@gmail.com wrote: Cool ... if you tested it and theMenuWidget, from my perspective it is good to go into master. And it's really great that you added the ScalaDocs

[Lift] Re: A gap in my knowledge, JsCommands

2009-04-01 Thread marius d.
On Apr 1, 5:59 pm, TylerWeir tyler.w...@gmail.com wrote: Rewriting ajaxCall_* to incorporate Vik's idea fixes this:   private def ajaxCall_*(jsCalcValue: JsExp, func: AFuncHolder): (String, JsExp) = {     val (n, r) = fmapFunc(func)(name =         (name, makeAjaxCall(JsRaw('+name+=' +

[Lift] Re: Widget CSS

2009-04-02 Thread marius d.
Can you scope your stylesheet props? ... such as adding prefixes to classes etc. ... or use styles per ID-s. Looks to me that even if we change the order the application specific styles could potentially conflict with TableSorter's. The TableSorter's CSS are coming from JQuery plugin and not

[Lift] Re: liftAjax.js generation bug in case of LiftRules.enableLiftGC = false

2009-04-03 Thread marius d.
committed. On Apr 3, 8:10 pm, marius d. marius.dan...@gmail.com wrote: well I just assigned it to myself ... Dave if youreally want it just let me know to stay away ... I should be commititng the fix either today or tomorrow. Br's, Marius On Apr 3, 7:12 pm, David Pollak feeder.of.the.be

[Lift] Re: Lift using JQuery and JCarousel

2009-04-03 Thread marius d.
Hmm ... I'd be very surprised if the the presence of the multiple ready function calls would cause this. Virtually you can have as many as you want. But what is the exact problem ? I could probably take a look tomorrow and maybe make a lift widget out of it. Br's, Marius P.S. You can

[Lift] Re: Forms validation formatter

2009-04-04 Thread marius d.
: Exercise for the reader: Instead of selective linking, have only   either A or B be displayed, depending on the embedding context. On 31-Mar-09, at 3:59 PM, marius d. wrote: Outer Template lift:surround with=default at=content    h2Create a New Site/h2    lift:snippet type

[Lift] Re: Lift using JQuery and JCarousel

2009-04-04 Thread marius d.
wrote: The problem is how the carousel looks like. It shows all the picture one below the other. I know this effect, then normaly JQuery is missing. But I can try it as snippet or lift:embed. Cheers Torsten On Apr 3, 10:03 pm, marius d. marius.dan...@gmail.com wrote: Hmm ... I'd be very

[Lift] Re: Lift using JQuery and JCarousel

2009-04-05 Thread marius d.
application. So I don't have an explanation why foir the static examples I'm getting camel case node name and for the online one I'm getting the lower case. However if you use UL inyour markup should work. Br's, Marius On Apr 5, 9:35 am, marius d. marius.dan...@gmail.com wrote: I tried it last night

[Lift] Re: Lift using JQuery and JCarousel

2009-04-05 Thread marius d.
I guess jcarousel developers should have taking care of case insentitiveness ... Br's, Marius On Apr 5, 10:48 am, marius d. marius.dan...@gmail.com wrote: Holy cow ... this one is weird. In the jcarousel() function we have the following condition: if (e.nodeName == 'UL' || e.nodeName == 'OL

[Lift] Re: Lift using JQuery and JCarousel

2009-04-05 Thread marius d.
xhtml for some reason. So you can probably file a bug to JCarousel so that JCarousel folks to fix it. It is a trivial fix anyways. Br's, Marius On Apr 5, 11:05 am, marius d. marius.dan...@gmail.com wrote: I guess jcarousel developers should have taking care of case insentitiveness ... Br's

[Lift] Re: TemplateCache

2009-04-05 Thread marius d.
Good :) ... I was also thinking on a flush-able caching mechanism. So far the InMemoryCache is more for exemplification as it is not yet thread safe. It is based on LRU cache but I'm also thinking to also combine the ConcurrentHashMap approach with LRU ... also I was thinking to a SoftReference

[Lift] Re: TemplateCache

2009-04-05 Thread marius d.
, marius d. marius.dan...@gmail.com wrote: Good :) ... I was also thinking on a flush-able caching mechanism. So far the InMemoryCache is more for exemplification as it is not yet thread safe. It is based on LRU cache but I'm also thinking to also combine the ConcurrentHashMap approach

[Lift] Re: TemplateCache

2009-04-05 Thread marius d.
On Apr 6, 12:06 am, Timothy Perrett timo...@getintheloop.eu wrote: True, very true. I know DPP is generally against caching, but we all recognise the need to caching in a production environment. Perhaps, rather than asking if we should re-invent the wheel with a specific cache mech within

[Lift] Re: Who did the hungarian translation?

2009-04-06 Thread marius d.
locale strings so just need a HU translation for Undefined Cheers, Tim On 04/04/2009 15:16, marius d. marius.dan...@gmail.com wrote: A co-worker of mine. I could have him do the translation on Monday ... just send the English text. Br's, Marius On Apr 4, 3:23 pm, Tim Perrett timo

[Lift] Re: Hidden field in form

2009-04-06 Thread marius d.
Well putting an id to the hidden field allows you to manipulate it via JavaScript. Br's, Marius On Apr 6, 5:01 pm, wapgui torsten.schm...@wapgui.com wrote: Hi, is there an equivalent in lift to the hidden input filed used in forms. The SHtml.hidden is only for functions not for parameters,

[Lift] Re: liftAjax Yahoo issue?

2009-04-06 Thread marius d.
Charles, Do you have a minimalistic example/project? ... YUI Lift used to work just fine for me but I haven't looked at it in a while. I could probably look on it sometimes this week ... Br's, Marius On Apr 6, 10:06 am, Charles F. Munat c...@munat.com wrote: I'm using YUI to build an

[Lift] Re: Hidden field in form

2009-04-07 Thread marius d.
my small experience on my website to help other newbies. No worries it is good to ask questions. Cheers Torsten On Apr 6, 4:47 pm, marius d. marius.dan...@gmail.com wrote: Well putting an id to the hidden field allows you to manipulate it via JavaScript. Br's, Marius On Apr 6, 5

[Lift] Re: Hidden field in form

2009-04-07 Thread marius d.
. Cheers Torsten On Apr 7, 8:56 am, marius d. marius.dan...@gmail.com wrote: On Apr 6, 10:05 pm, wapgui torsten.schm...@wapgui.com wrote: Did you mean something like that ? color - hidden(() = fp.color) % (id - color) Yes But how can I get the value of the color and how to set the value

[Lift] Re: Hidden field in form

2009-04-07 Thread marius d.
and built a function that does exactly what you want.  We've tried to layer Lift so that it's easy to add what you need. Thanks, David On Tue, Apr 7, 2009 at 6:37 AM, marius d. marius.dan...@gmail.com wrote: Note the SHtml.hidden function is defined as: def hidden(func: () = Any

[Lift] Re: Hidden field in form

2009-04-07 Thread marius d.
Ok ... I took the liberty to overload it. Here is the signature: def hidden(func: (String) = Any, defaultlValue: String, attrs: (String, String)*): Elem Br's, Marius On Apr 7, 7:08 pm, marius d. marius.dan...@gmail.com wrote: I actually encountered situations where I had to pass actual data

[Lift] Re: Can't find Javascript files using LiftRules.resourceServerPath

2009-04-09 Thread marius d.
In your boot try this: ResourceServer.allow { case jquery-tabs.js :: Nil = true case jquery-ui-1.7.1.custom.min.js :: Nil = true } On Apr 9, 12:17 am, glenn gl...@exmbly.com wrote: What am I doing wrong? I'm trying to implement tabs using the jquery-tabs.js (the JqueryTabs Plugin), but

[Lift] Re: Can't find Javascript files using LiftRules.resourceServerPath

2009-04-09 Thread marius d.
that to :) ... the above should also work as well if you leave your files in toserve. ResourceServer is also discussed in the upcoming Lift book. If one understands how ResourceServer works there is no need for further explanations of sub-folders etc. Relevant examples can be found in

[Lift] Re: TemplateCache

2009-04-11 Thread marius d.
caching infrastructure in lift? This would be great re the localization / translation stuff im working on which currently uses KeyedCache in lift-util as a base. Im just doing a git pull for the cache branch... Cheers Tim On 05/04/2009 20:38, marius d. marius.dan...@gmail.com

[Lift] Re: TemplateCache

2009-04-11 Thread marius d.
I committed it of course in wip-marius-template-cache branch. On Apr 11, 11:16 pm, marius d. marius.dan...@gmail.com wrote: I just committed a SoftReferenceCache implementation in utils and it is used by InMemoryCache. So far testing it looks pretty good. The point of a SoftReferenceMap

[Lift] Re: stateful vs stateless snippet

2009-04-11 Thread marius d.
:14 AM, marius d. marius.dan...@gmail.com wrote: The StatefulSnippet is not a snippet instance that is always used in the context of your session. Yikes! in that case, I wrote a whole application based on false assumption. It says in the lift book a StatefulSnippet is ideal for small

[Lift] Re: stateful vs stateless snippet

2009-04-11 Thread marius d.
Oh and if that helps from the Scaladoc: * If the StatefulSnippet is used to render a form, a hidden field is added to * the form that causes the same instance to be used on the page that is the * target of the form submission. On Apr 12, 8:49 am, marius d. marius.dan...@gmail.com wrote

[Lift] Re: Attribute as MappedField efficiency concerns

2009-04-12 Thread marius d.
Personally I'm not aware of a benchmark yielding concrete comparison numbers. However this questions extends to Scala's anonymous class files generation and surprisingly Scala's performance is unbelievably close to Java's. JIT compilers really do their job. Now comparing Record fields which are

[Lift] Re: TemplateCache

2009-04-13 Thread marius d.
? Cheers, Tim On Apr 11, 9:16 pm, marius d. marius.dan...@gmail.com wrote: I just committed a SoftReferenceCache implementation in utils and it is used by InMemoryCache. So far testing it looks pretty good. The point of a SoftReferenceMap is probably obvious to prevent (as much as possible

[Lift] Re: Liftweb without Maven?

2009-04-14 Thread marius d.
Even if I find maven quite helpful for Lift there are people that just want to stay away from maven. I can understand that. Perhaps it would be helpful to also have some ant script to build a lift project? ... or perhaps have a downloadable zip archive from lift's site that contains incipient

[Lift] Re: Liftweb without Maven?

2009-04-14 Thread marius d.
On Apr 14, 2:40 pm, Viktor Klang viktor.kl...@gmail.com wrote: On Tue, Apr 14, 2009 at 1:38 PM, marius d. marius.dan...@gmail.com wrote: Even if I find maven quite helpful for Lift there are people that just want to stay away from maven. I can understand that. Perhaps it would

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread marius d.
Perhaps lift-widgets project will shed some light for you. Widgets are in many respects self contained in terms of dependencies and you just use the exposed functions in your snippets. Br's, Marius On Apr 14, 3:44 pm, Mick Delaney mickdela...@gmail.com wrote: Hi, i'm currently having a look

[Lift] Re: create todo item during boot

2009-04-15 Thread marius d.
You can probably do that in you Lift Boot class after you DB connections are setup etc. Br's, Marius On Apr 15, 6:55 pm, Tobias Daub hannes.flo...@gmx.li wrote: Hi There, I wanna have some kind of standard todo item, that should always be there (in the database). I Don't want to create

[Lift] Re: Using Jx classes to output HTML

2009-04-16 Thread marius d.
the Jx classes that works. All examples in the LiftBook have been tested. Jx is a very powerful artifact but for some reason people are staying away from it ... maybe it's because it is not very simple to understand. Glenn Silverman On Apr 15, 12:30 pm, marius d. marius.dan...@gmail.com wrote

[Lift] Re: Using Jx classes to output HTML

2009-04-16 Thread marius d.
. Glenn Silverman On Apr 15, 12:30 pm, marius d. marius.dan...@gmail.com wrote: How about 1. Use a decalred variable JsCrVar(func, Jx(ul{                                     JxMap(JsVar(it), Jx(lia href={JsVar(it)}/a/li

[Lift] Re: Using Jx classes to output HTML

2009-04-16 Thread marius d.
- SHtml.ajaxButton(Text(Press me), () = ajaxFunc) Maybe that's why I'm getting 'F560600551708Y4K=true' emitted. I'm beginning to think nobody has actually written code using the Jx classes that works. Glenn Silverman On Apr 15, 12:30 pm, marius d. marius.dan...@gmail.com wrote

[Lift] Re: Using Jx classes to output HTML

2009-04-16 Thread marius d.
           /div            div id=items_list/div /div /lift:surround The button is emitted but the items variable is not. In any case, the code above does not do anything. Have I got it all wrong? Glenn Silverman On Apr 16, 9:26 am, marius d. marius.dan...@gmail.com wrote: Glenn

[Lift] Re: Welcome Atsuhiko Yamanaka to the Lift Committers

2009-04-17 Thread marius d.
Welcome,welcome,welcome ! On Apr 18, 1:42 am, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I am pleased at announce that Atsuhiko Yamanaka has joined the Lift committers.  He did some great Google App Engine work with Lift and has been making other enhancements to the Lift code

[Lift] Re: Lift works on Google App Engine (within the confines of what's possible)

2009-04-17 Thread marius d.
I'm very skeptic and reluctant to GAE right now with all due respect for Google.I'm used to quite large apps requiring a high degree of control, DB close to the app and tunings for the app, dedicated HW, etc. Yeah I know Google promises lots of these things I just can't see how they can provide

[Lift] Re: How to create dynamic table in response

2009-04-21 Thread marius d.
Perhaps something like: // in your markup lift:TableFeed.build table t:rows/ /table /lift:TableFeed.build // your snippet class TableFeed { val data = Item1 :: item2 :: Nil val empty: NodeSeq = NodeSeq.Empty def buildRows: NodeSeq = (empty /: data)((l, r) = l ++ trtd{r}/ td/tr) def

[Lift] Re: Error message undecipherable

2009-04-21 Thread marius d.
The reason for the tuple is Lift's garbage collection mechanism. However due to some jQuery issues regarding namespaces, this mechanism is not yet used instead a more generalized GC mechanism is today in place. Note that you also have SHtml.makeAjaxCall function that just returns the JsExp.

[Lift] Re: How to create dynamic table in response

2009-04-21 Thread marius d.
, marius d. marius.dan...@gmail.com wrote: Perhaps something like: // in your markup lift:TableFeed.build table   t:rows/ /table /lift:TableFeed.build // your snippet class TableFeed { val data = Item1 :: item2 :: Nil val empty: NodeSeq = NodeSeq.Empty def buildRows

[Lift] Re: Avoiding polling when using Comet. Reverse AJAX

2009-04-21 Thread marius d.
Comet is also known as long polling especially when browsers are involved. That's because: 1. When timeout occurs ... after x seconds/minutes client needs to re- establish connection 2. Client reconnects after response is provided by server But what is the problem with long pooling if a

[Lift] Re: Avoiding polling when using Comet. Reverse AJAX

2009-04-22 Thread marius d.
22, 2009 at 8:54 AM, przemek.pokrywka przemyslaw.pokry...@gmail.com wrote: It is 10 sec actually at Comet chat example. Not very good for high-traffic public portals. Przemek On Apr 21, 7:21 pm, marius d. marius.dan...@gmail.com wrote: But what is the problem with long pooling

[Lift] Re: Netbeans 6.5 Out of Memory Error with 4MB file forces Eclipse for me

2009-04-22 Thread marius d.
LOL :) On Apr 22, 11:14 am, Timothy Perrett timo...@getintheloop.eu wrote: What on earth do you mean by this? Tim. On 22/04/2009 06:15, jsm2prof jsm2p...@googlemail.com wrote: Would someone please kick Lift up to the status of playing with the heavy weight?

[Lift] Re: Welcome Greg Meredith to the Lift committers

2009-04-23 Thread marius d.
You're most welcomed Greg ! On Apr 23, 7:16 am, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, It's been a new-commiter-o-rama lately... and I'm wicked pleased to announce that Greg Meredith has agreed to join the Lift committers. Greg has applied his vast mathematical mind to

  1   2   3   4   5   6   >