[Lift] Re: Signup Form: Some error messages are hidden by default

2009-12-30 Thread Marius
. I'm not sure if Mapper has something similar. Br's, Marius On Dec 30, 4:25 am, Naftoli Gugenheim naftoli...@gmail.com wrote: It would be nice if they did that. How would you tell Lift where to put the notice, in cases where it's not directly adjacent to the field

[Lift] Re: Happy New Year!

2009-12-30 Thread Marius
Thank you. Happy new year to you too. Br's Marius On Dec 30, 2:12 pm, koveen liep...@xs4all.nl wrote: I would like to wish everybody on this list a happy new year. A year in which it will be fun to  learn more about Lift Greetings, Ko -- You received this message because you

[Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Marius
referenced by uriNotFound. This approach allows your 404 case to be handled by the normal rendering pipeline without other hacks. Unless someone thinks this is a bad solution, Alex you could open an issue and I'll work on it. Br's, Marius Br's, Marius LIft is generally very good I've found

[Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Marius
Please see my previous reply and the proposed solution. Br's, Marius On Dec 30, 6:12 pm, Ross Mellgren dri...@gmail.com wrote: Ouch, it does sound ugly. Is there some alternative way to change the   currently requested URI, for the purposes of sitemap generation and so   on? It seems like

[Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Marius
that many people are using uriNotFound and it's really quite a small change which regardless needs to be announced. Other opinions on this? Br's, Marius On Dec 30, 6:20 pm, Alex Black a...@alexblack.ca wrote: While I totally agree that a plain 404 + markup is much more straightforward

[Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Marius
perfect, thanks. On Dec 30, 6:40 pm, Alex Black a...@alexblack.ca wrote: I opened a ticket:http://github.com/dpp/liftweb/issues/#issue/265 I hope I wrote it in a reasonable/acceptable way, its my first ticket. - Alex On Dec 30, 11:26 am, Marius marius.dan...@gmail.com wrote: Please open

[Lift] Re: Nice 404s sans Redirect

2009-12-31 Thread Marius
You could put a Script tag and inside set the title via JavaScript? But I'm still working on the solution I proposed which treats 404 as a normal page. Not sure if Dave will like it (probably not) but I'll send him a diff. Br's, Marius On Dec 31, 5:43 am, Alex Black a...@alexblack.ca wrote: Ok

[Lift] Re: Issue with Context Handling

2009-12-31 Thread Marius
correctly? Can you make a minimalistic Lift app, that I can just run, showing that context path is not used correctly by Lift? ... If you do I'll start working on it. Br's, Marius On Dec 31, 1:20 am, Timothy Perrett timo...@getintheloop.eu wrote: Guys, Im having a really strange problem

[Lift] Re: Issue with Context Handling

2009-12-31 Thread Marius
setting will override the contextpath setting that you may have in WEB-INF/jetty-web.xml With my test the cotnext path was used correctly .. so if you can put together that small app I requested would be helpful. Br's, Marius On Dec 31, 2:37 pm, Marius marius.dan...@gmail.com wrote: Are you

[Lift] Re: Issue with Context Handling

2009-12-31 Thread Marius
described here or something else. Br's, Marius On Dec 31, 3:57 pm, Timothy Perrett timo...@getintheloop.eu wrote: Hey Marius, Is there a way to specify this argument on the command line? That is, to tell jetty to use a particular jetty-web.xml ? Cheers, Tim On 31 Dec 2009, at 12:51, Marius wrote

[Lift] Re: Issue with Context Handling

2009-12-31 Thread Marius
: LiftRules.calculateContextPath = {req = Empty} ? that should get you the contexPath the same as S. BT S.contextPath is defined as: def contextPath: String = session.map(_.contextPath) openOr which essentially takes is from LiftSession. Br's, Marius On Dec 31, 5:41 pm, Ross Mellgren dri...@gmail.com

[Lift] Re: Issue with Context Handling

2009-12-31 Thread Marius
Also Req.context path is defined as: val contextPath = LiftRules.calculateContextPath(request) openOr request.contextPath Br's, Marius On Dec 31, 6:14 pm, Marius marius.dan...@gmail.com wrote: LiftSession is created with the contextPath that container provides. See LiftRules._getLiftSession

[Lift] Re: Issue with Context Handling

2009-12-31 Thread Marius
away. There should be a single point where the user can specify how the contextPath is calculated. Dave, I'm not sure why we keep them both but let me know if you have some reasons for keeping them both. Otherwise I'll work on a fix in the next days Br's, Marius On Dec 31, 6:22 pm, Marius

[Lift] Re: Issue with Context Handling

2009-12-31 Thread Marius
On Dec 31, 6:47 pm, Ross Mellgren dri...@gmail.com wrote: On Dec 31, 2009, at 11:39 AM, Marius wrote: O I think I know what the problem is: We have both: LiftRules.calcContextPath ... used by LiftSession.contextpath AND LiftRules.calculateContextPath ... used

[Lift] Re: Issue with Context Handling

2009-12-31 Thread Marius
Sure thing ! Br's, Marius On Dec 31, 7:19 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Dec 31, 2009 at 8:39 AM, Marius marius.dan...@gmail.com wrote: O I think I know what the problem is: We have both: LiftRules.calcContextPath ... used

[Lift] Re: Nice 404s sans Redirect

2010-01-01 Thread Marius
and an offline discussion with David about other more internal implications. We'll see where it goes. Br's, Marius On Jan 1, 12:12 am, Alex Black a...@alexblack.ca wrote: That sounds great. Just curious though, is there any chance runTemplate should just do the head merge? On Dec 31, 3:12 pm, David

[Lift] Re: Issue with Context Handling

2010-01-02 Thread Marius
Thanks Tim but first let's see if the board approves the changes :) Br's, Marius On Jan 2, 1:15 am, Timothy Perrett timo...@getintheloop.eu wrote: Just to continue this thread, Marius has done some great work, and its on review board i just tried it with my app and its working super duper

[Lift] Re: guid - function mapping not occuring for ajax generator rendered by CometActor

2010-01-04 Thread Marius
Thanks for checking this Chris. Br's, Marius On Jan 4, 3:10 am, ChrisX xtopher@gmail.com wrote: Marius, All working great now. Thanks for the quick response and fix. Chris On Dec 29 2009, 1:35 am, Marius marius.dan...@gmail.com wrote: This was a non trivial hustle to find the cause

[Lift] Re: Templating in lift

2010-01-04 Thread Marius
although they typically bind user's function that in turn could be compared with controllers. Snippets just render dynamic markup. Br's, Marius On Jan 4, 2:10 am, Mads Hartmann mads...@gmail.com wrote: Hello everyone, I just wrote a small blog post that contains an example of how you use

[Lift] Re: Templating in lift

2010-01-04 Thread Marius
Very neat !!! ... thanks. I wish Lift official site to have links towards all these cool articles. Br's, Marius On Jan 4, 12:22 pm, Mads Hartmann mads...@gmail.com wrote: @Marius You're right, I guess that would be why they're called Snippets and not controllers ;) @Timothy Just read

[Lift] Re: CometActor and JQuery

2010-01-04 Thread Marius
= partialUpdate(Call(foo)) Call is a JsCmd object from lift witch translates into a JS function call. You can also use JsRaw(put here any js code) You can also do it from render as well like: def render = { // do something new RenderOut(some_xhtml, Call(foo)) } Br's, Marius On Jan 4, 1

[Lift] Re: CometActor and JQuery

2010-01-04 Thread Marius
want to call ajaxInvoke etc, as SHtml provides a bunch of Ajax helpers (such as ajaxText) Br's, Marius On Jan 4, 3:36 pm, martinsema...@googlemail.com martinsema...@googlemail.com wrote: Thanks for that Marius, it works, but it is only for the server to client direction. In the generated Html

[Lift] Re: cookie vs url sessionId precedence

2010-01-04 Thread Marius
in all urls and the JEE container will not send down jsessionid cookie. So you don't need to manually put jsessioid in urls. Br's, Marius On Dec 31 2009, 10:03 pm, Jonathan Hoffman jonhoff...@gmail.com wrote: Hi, I'm using a flash upload widget to post to a Lift mapped function (/ajax_request

[Lift] Re: Errors not shown after AJAX form submit

2010-01-05 Thread Marius
attribute. Therefore ajax notices that are associates with an ID will not be shown in lift:Msgs showAll=true/ 's real estate. Please open a defect for this. Br's, Marius On Jan 5, 9:37 am, Adam Warski a...@warski.org wrote: Hello, Ah, I didn't spot this. I only have: lift:Msgs showAll=true/ which

[Lift] Re: ANN: Akka 0.6 is released

2010-01-05 Thread Marius
Kudos ! Great stuff. On Jan 5, 6:52 pm, Jonas Bonér jbo...@gmail.com wrote: Thanks 2010/1/5 David Pollak feeder.of.the.be...@gmail.com: Congratulations! On Tue, Jan 5, 2010 at 5:34 AM, Jonas Bonér jbo...@gmail.com wrote: Hi. I am proud to announce the release of Akka 0.6. It is a

[Lift] Re: Lift on Atmosphere

2010-01-06 Thread Marius
the playing field somewhat - right now the different containers are all doing different things in different ways. Marius is actively working on an abstraction of the thread dropping so that other containers that use different APIs can be plugged into Lift (or vice versa) because the Servlet 3.0

[Lift] Re: Thanks for the all the help so far...

2010-01-06 Thread Marius
I love how the site looks like. VERY cool job ! Br's, Marius On Jan 6, 7:34 pm, Alex Black a...@alexblack.ca wrote: I've been a member of this group for a little while now and I wanted to thank everyone for your help so far! Hopefully I'll be able to start helping back in the future as I get

[Lift] Re: Difference between rendered Shtml.a() on first Comet render and partial update?

2010-01-08 Thread Marius
How does you partialUpdate code looks like? Note that with partialUpdate you need to return a JsCmd, and not a NodeSeq. Br's, Marius On Jan 8, 2:25 pm, Dan Gravell dan.grav...@talk21.com wrote: I'm really enjoying using Lift. It makes this AJAX and comet stuff very easy! I have a problem

[Lift] Re: Difference between rendered Shtml.a() on first Comet render and partial update?

2010-01-08 Thread Marius
of your Node. Br's, Marius On Jan 8, 4:07 pm, Dan Gravell dan.grav...@talk21.com wrote: Hi Marius. It's pretty simple: creations : Seq[JsCmd] deletions : Seq[JsCmd] partialUpdate(JsCmds.seqJsToJs(creations ++ deletions)) Which is just a seq of JsCmds right? The JsCmds themselves appear

[Lift] Re: Lift AuthRoles, httpAuthProtectedResource

2010-01-08 Thread Marius
I definitely agree for httpAuthProctectedResource to take a Req instead of a ParsePath even this is a breaking change but I doubt that many people are using this yet. I could implement this tomorrow if this is fine with everyone. Br's, Marius On Jan 8, 10:28 pm, David Pollak feeder.of.the.be

[Lift] Re: Lift AuthRoles, httpAuthProtectedResource

2010-01-08 Thread Marius
On Jan 8, 10:58 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Jan 8, 2010 at 12:55 PM, Marius marius.dan...@gmail.com wrote: I definitely agree for httpAuthProctectedResource to take a Req instead of a ParsePath even this is a breaking change but I doubt that many people

[Lift] Re: what provides classpath/jquery.js?

2010-01-09 Thread Marius
) and grant access to those resources. This is a security related mechanism. Br's, Marius On Jan 9, 3:38 am, harmanjd harma...@gmail.com wrote: I am working through the StartingWithLift document and saw that the page includes /classpath/jquery.js. Is that something that jetty supplies

[Lift] Re: Lift AuthRoles, httpAuthProtectedResource

2010-01-09 Thread Marius
Ok, the changes are on review board. Br's, Marius On Jan 8, 11:36 pm, Marius marius.dan...@gmail.com wrote: On Jan 8, 10:58 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Jan 8, 2010 at 12:55 PM, Marius marius.dan...@gmail.com wrote: I definitely agree

[Lift] Re: Performance related question

2010-01-09 Thread Marius
Are you using vals mainly for the purpose of caching ? I think it is ok to call findAnyTemplates (without using vals) as templates are cached (in production mode) Br's, Marius On Jan 9, 5:29 pm, greekscala hellectro...@gmail.com wrote: Hello everyone, I am surprised about the few code I have

[Lift] Re: Performance related question

2010-01-09 Thread Marius
You could do that too ... but the way I see it it would be more a functional decision rather then a performance best practice. In some cases you could consider lift:embed instead of programmatic findAnyTemplate. It really depends on your design, preferences of doing things etc. Br's, Marius

[Lift] Minor *** breaking change *** LiftRules.httpAuthProtectedResource

2010-01-09 Thread Marius
Hi, LiftRules.httpAuthProtectedResource was changed from PartialFunction[ParsePath, Box[Role] to PartialFunction[Req, Box[Role] Also the HttpAuthProtected LocParam from HttpAuthProtected(role: () = Box[Role]) to HttpAuthProtected(role: (Req) = Box[Role]) Br's, Marius -- You received

[Lift] *** Breaking change *** issue 265 Providing more flexible behaviour for NotFound (404)

2010-01-09 Thread Marius
. This will be rendered // though the normal rendering pipeline case class NotFoundAsTemplate(path: ParsePath) extends NotFound // Use an arbitrary NodeSeq as a not found response. case class NotFoundAsNode(node: NodeSeq) extends NotFound Br's, Marius -- You received this message because you are subscribed

[Lift] Re: Can lift strip all the leading and trailing blank characters?

2010-01-10 Thread Marius
Could you please open a defect here? http://github.com/dpp/liftweb/issues Br's, Marius On Jan 10, 5:15 am, daiwhea daiw...@gmail.com wrote: I saw the html source generated by the lift both in dev and production mode, there are many leading and trailing blank characters and new lines

[Lift] Re: Is this correct way to handle RESTful like URL in Lift Framework?

2010-01-10 Thread Marius
, request) = ... } Br's, Marius On Jan 10, 7:32 am, Brian Hsu brianhsu@gmail.com wrote: If I have a URL likehttp://localhost/Test/edit/{id} and I would like the {id} transform to a parameter instead of URL path part. The problem is that if I have a template named edit.html under webapp

[Lift] Re: Is this correct way to handle RESTful like URL in Lift Framework?

2010-01-10 Thread Marius
your needs, using your approach is not bad either. Not sure where the boilerplate is as RESTfulLoc looks like a generic one. Br's, Marius On Jan 10, 11:39 am, Brian Hsu brianhsu@gmail.com wrote: Thanks for your reply, But I would like them combine with Menu tightly, so I could setup them

[Lift] Re: Can lift strip all the leading and trailing blank characters?

2010-01-10 Thread Marius
No problem Tim, thanks for reminding me. Either way I think having the issue there (defect OR feature doesn't really matter) is good for tracking purposes that people would like to see this in. If this will be fixed or rejected is a different story IMO. Br's, Marius On Jan 10, 11:46 am, Timothy

[Lift] Re: Ajax button + submitting a form

2010-01-10 Thread Marius
The ajax buttons doesn't have to be inside the form if you use SHtml.submitAjaxForm(form_ID) button onclick={SHtml.submitAjaxForm(form_ID).toJsCmd}blah/button Br's, Marius On Jan 10, 1:08 pm, Adam Warski a...@warski.org wrote: There is also a related problem: how can I have two ajax buttons

[Lift] Re: Ajax button + submitting a form

2010-01-10 Thread Marius
stuff here }) Br's, Marius On Jan 10, 2:02 pm, Adam Warski a...@warski.org wrote: right, I wrote about that in my original post, but how can I execute a button-specific method on the server-side? Thanks, Adam On Jan 10, 2010, at 12:15 PM, Marius wrote: The ajax buttons doesn't have

[Lift] Re: Ajax button + submitting a form

2010-01-10 Thread Marius
On Jan 10, 5:20 pm, Adam Warski a...@warski.org wrote: Hello, ajaxButton(Press me would ya'?, SHtml.submitAjaxForm (form_ID).toJsCmd, (some) = { do your stuff here }) Looking at the source code I think this might work, but I'm having trouble constructing the correct expression to

[Lift] Re: Ajax button + submitting a form

2010-01-10 Thread Marius
button onclick={((JqId(hidden_field_id) JqAttr(value, delete)) SHtml.submitAjaxForm(form_ID)).toJsCmd}delete/button Br's, Marius On Jan 10, 6:58 pm, Marius marius.dan...@gmail.com wrote: On Jan 10, 5:20 pm, Adam Warski a...@warski.org wrote: Hello, ajaxButton(Press me would ya

[Lift] Re: Ajax button + submitting a form

2010-01-11 Thread Marius
-case would be quite common in lift: I just want to add a couple of buttons to my form which execute different actions. Which is very easy to do. But your problem not is how you maintain your specific state (the elements) Thanks for the help! Adam On Jan 10, 2010, at 6:03 PM, Marius wrote

[Lift] Re: LiftRules organization

2010-01-11 Thread Marius
I think so because it's about user's defined rules ... it's just an extension of LiftRules, amd LiftRules lives in http package. Br's, Marius On Jan 11, 6:45 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Hmm, now this begs the question--does a ConversionRules object indeed belong in http

[Lift] Re: Ajax button + submitting a form

2010-01-11 Thread Marius
to contextFuncBuilde call. Please let me know if this works. If it does we should probably add it to SHtml. Br's, Marius On Jan 11, 10:54 pm, Adam Warski a...@warski.org wrote: Hello, trying the solution a bit more I came into another problem which I can't solve elegantly. The solution below works

[Lift] Re: Backbutton for Ajax

2010-01-11 Thread Marius
Could you please be more specific? ... what use case are you thinking of? Br's, Marius On Jan 11, 11:55 pm, greekscala hellectro...@gmail.com wrote: Hello Lift people! I would like to know how experienced lift devs think and what they do about ajax backbutton support. with best regards

[Lift] Re: Ajax button + submitting a form

2010-01-12 Thread Marius
have been executed. Adam On Jan 11, 2010, at 10:58 PM, Marius wrote: Adam I was thinking of a slightly different approach that does not involve hidden fields: Say you have your current form with SHtml.text, checkboxes or whatever have you: then your ajax buttons (outside the form

[Lift] Re: Ajax button + submitting a form

2010-01-12 Thread Marius
actually the sorting is per owner which should be fine. I'll give it a try and get back to you. Br's, marius On Jan 12, 4:46 pm, Marius marius.dan...@gmail.com wrote: On Jan 12, 4:20 pm, Adam Warski a...@warski.org wrote: Hello, this *almost* works :). I modified your code a bit

[Lift] Re: Ajax button + submitting a form

2010-01-12 Thread Marius
for for for those 3 steps? ... Br's, Marius On Jan 12, 4:20 pm, Adam Warski a...@warski.org wrote: Hello, this *almost* works :). I modified your code a bit and now I have: def ajaxButton(text: NodeSeq, formId: String, func: () = JsCmd, attrs: (String, String)*): Elem = {     attrs.foldLeft

[Lift] Ajax forms and (multiple) submit buttons

2010-01-12 Thread Marius
.) Noop })) ... you got the idea. This of course allows putting virtually any number of ajax submit buttons and the right function will be called on server side. I'm thinking to add this to Lift but first I'd like to know your thoughts. Br's, Marius -- You received this message because you

[Lift] Re: Ajax forms and (multiple) submit buttons

2010-01-12 Thread Marius
Cool. Br's, Marius On Jan 12, 9:50 pm, Alex Boisvert alex.boisv...@gmail.com wrote: I like it a lot.   Eliminates recent confusion about submit() in ajaxForm, prettier and semantically more correct than hidden fields and supports multiple actions.  What's not to like? alex On Tue, Jan 12

[Lift] Re: SessionVar that loses it contents

2010-01-12 Thread Marius
Hmmm ... I never saw this behavior. Do you happen to use multiple browser tabs using different sessions of your app? Can you trace the sessionID in your app with (S.session.map (_.uniqueId) openOr ') or trace the HTTP session Id by S.request.map (_.request.session.sessionId) ? Br's, Marius

[Lift] Re: binding form fields while using jquery plugin

2010-01-12 Thread Marius
use -% instead of - ... if I recall correctly. Br's, Marius On Jan 13, 8:50 am, Madhav mail.madhavsha...@gmail.com wrote: I got your point this makes sense and can be the cause of problem i am facing. but i have one more doubt as for example my use case of application is that user enters one

[Lift] Re: Ajax button + submitting a form

2010-01-13 Thread Marius
Yes please a small app would be best. Please use 2.0-SNAPSHOT. Also please see this thread: http://groups.google.com/group/liftweb/browse_thread/thread/75750c42ec3a2d7d?hl=en# Br's, Marius On Jan 13, 10:07 am, Adam Warski a...@warski.org wrote: Hello, the problem is that some form elements

[Lift] Re: SessionVar that loses it contents

2010-01-13 Thread Marius
I think you can override: override protected def setFunc(name: String, value: T): Unit put a trace there and then call super. Br's, Marius On Jan 13, 10:06 am, Juha Syrjälä juha.syrj...@gmail.com wrote: I am using only one tab.  The app itself is rather simple, it just contains forms where

[Lift] NGinx and sticky sessions

2010-01-13 Thread Marius
dispatch the request to node2 and so on. Is it possible to configure nginx like this? 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 lift...@googlegroups.com. To unsubscribe from this group, send email

[Lift] Re: NGinx and sticky sessions

2010-01-13 Thread Marius
may be behind NATs etc. and this may unbalance the cluster. Currently I have no config, so I'm still not sure how to config my case described here. Cheers, Tim On 13 Jan 2010, at 11:29, Marius wrote: Hi all, Did anyone here used nginx with sticky sessions? What I'm looking

[Lift] Re: NGinx and sticky sessions

2010-01-13 Thread Marius
Tim, Thanks SO MUCH about the info from the offline talk we've had. If other are interested, this may be helpful: http://wiki.nginx.org/NginxHttpUpstreamRequestHashModule Br's, Marius On Jan 13, 2:02 pm, Marius marius.dan...@gmail.com wrote: On Jan 13, 1:42 pm, Timothy Perrett timo

[Lift] Re: Ajax forms and (multiple) submit buttons

2010-01-14 Thread Marius
Most likely I'll commit it today in master as it was approved by review board. Br's, Marius On Jan 14, 9:53 am, Adam Warski a...@warski.org wrote: I would of course be very +1 to include the ajaxSubmit :). Thanks for the work. This looks a bit different to the button I tried before, maybe

[Lift] Re: Backbutton for Ajax

2010-01-14 Thread Marius
+1 for this approach but I'd rather opt it for JsCmd cases classes/ objects and not really S/SHtml methods. case class AjaxHash extends JsCmd { ... } you got the idea. Br's, Marius On Jan 14, 8:29 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Jan 13, 2010 at 6:02 PM, Alex

[Lift] Re: ConversionRules

2010-01-14 Thread Marius
, Marius On Jan 15, 4:38 am, Naftoli Gugenheim naftoli...@gmail.com wrote: As suggested I am with G-d's help working on a new net.liftweb.http.ConversionRules object, to contain factories for parsers and formatters for date, date-time, time java.util.Date objects. Then LiftRules.formateDate

[Lift] Re: Ajax forms and (multiple) submit buttons

2010-01-15 Thread Marius
the issue was with that as in my tests it worked fine. Thanks! Adam Most likely I'll commit it today in master as it was approved by review board. Br's, Marius On Jan 14, 9:53 am, Adam Warski a...@warski.org wrote: I would of course be very +1 to include the ajaxSubmit :). Thanks

[Lift] Re: Ajax forms and (multiple) submit buttons

2010-01-15 Thread Marius
On Jan 15, 5:59 pm, Adam Warski a...@warski.org wrote: Hello, Oh yeah contextFuncBuider ... good catch. I'll update today. thanks :) done. 2. The button will work only with full ajax-forms right? So forms wrapped with ajaxForm(...)? My initial use-case was for adding some ajax

[Lift] Re: Ajax forms and (multiple) submit buttons

2010-01-15 Thread Marius
is changed dynamically. If you have a form with static fields and put the button after all fields, I'm pretty sure it'll also work. Br's, Marius On Jan 15, 6:38 pm, Adam Warski a...@warski.org wrote: I kinda doubt that as I tested with a bunch of form fields. In the ajax request the function

[Lift] Re: Ajax forms and (multiple) submit buttons

2010-01-16 Thread Marius
On Jan 16, 12:02 pm, Adam Warski a...@warski.org wrote: Hello, Ok I just looked on your code. The problem is that you put the ajax button inside the form and there is not reason for that. Well, unless I do want the button to be inside the form ;) (for user-experience/layout reasons).

[Lift] Re: Ajax forms and (multiple) submit buttons

2010-01-16 Thread Marius
On Jan 16, 7:08 pm, Adam Warski a...@warski.org wrote: Hello, Hmm yes I wondered if the order in which the functions are bound is significant, but my experiments showed that it's not simply a first bound, first called principle. So I don't quite get it yet why it doesn't work. We

[Lift] Re: Need jquery jgGrid working example (Firefox problem)

2010-01-17 Thread Marius
yes some of the JQuery plugins are not working properly with xhtml. Br's, Marius On Jan 17, 12:50 am, ibonk i...@readysoft.de wrote: It works in IE but not in Firefox! The solution is: Put the following line into your boot          LiftRules.useXhtmlMimeType = false I found the solution

[Lift] Re: Some maven help please ...

2010-01-17 Thread Marius
Yes I tried both ways I'll send you my pom. On Jan 17, 7:37 pm, Indrajit Raychaudhuri indraj...@gmail.com wrote: Marius, This plugin section is directly under build.plugins or under build.pluginManagement.plugins ? I am assuming (wild guess) it's under build.pluginManagement.plugins

[Lift] Re: Hook into snippet creation

2010-01-17 Thread Marius
Why do you need this? Br's, Marius On Jan 17, 10:24 pm, ced docpom...@googlemail.com wrote: Hi all, is there a way to hook into the creation of snippets? I'd like to gain control over their creation. I tried to find something in LiftRules but couldn't find anything that might be suitable

[Lift] Re: Hook into snippet creation

2010-01-17 Thread Marius
is a thread about this topic http://groups.google.com/group/liftweb/browse_thread/thread/49abb968212f2743/07f09e3533df100c?lnk=gstq=dependency+injection#07f09e3533df100c Br's, Marius On Jan 17, 10:36 pm, ced docpom...@googlemail.com wrote: I thought about using a DI framework with Lift, having it manage

[Lift] Re: Ajax forms and (multiple) submit buttons

2010-01-18 Thread Marius
was correct. Br's, Marius On Jan 18, 10:36 am, Adam Warski a...@warski.org wrote: Hello, Right ... and it's not even a hack ... css is the right way of building layout not really the html. Putting buttons in the form ar giving this perception in the page doesn't mean that the button has

[Lift] Re: Actor.timer daemon thread terminates after first request?

2010-01-19 Thread Marius
? Br's, Marius On Jan 19, 8:04 am, Yu-Shan Fung ambivale...@gmail.com wrote: Hi All, I have a lift app, where one of the functions performs sub-computations (including network operations) in parallel via future(s) Futures.awaitAll. It runs fine on the first request, but subsequent requests

[Lift] Re: Welcome Mads Hartmann Jensen to the Lift Committers

2010-01-20 Thread Marius
Welcome Mads ! Please do work on that ... I never got to start working on it :) Br's, Marius On Jan 20, 12:12 am, Mads Hartmann mads...@gmail.com wrote: Thanks guys :) @Timothy Perrett Unless someone beats me to the punch I was thinking about solving this:http://github.com/dpp/liftweb

[Lift] Re: Embedding comet actor in ModalDialog

2010-01-20 Thread Marius
. Is that your use-case ? so see async intems coming from server only when the dialog is opened? Br's, Marius On Jan 20, 11:00 pm, ced docpom...@googlemail.com wrote: Hi all, I'm trying to create some sort of progress notification for a long lasting request. The idea is to answer an ajax request

[Lift] Re: Embedding comet actor in ModalDialog

2010-01-21 Thread Marius
backgroud server processes using comet but not really inside of a dialog. Putting them inside a modal dialog would be very easy. Br's, Marius On Jan 21, 9:54 am, ced docpom...@googlemail.com wrote: @David: Thanks. Now the approach is clear. Is that your use-case ? so see async intems

[Lift] Re: A better approach to ajax forms?

2010-01-21 Thread Marius
On Jan 21, 11:15 pm, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: On Thu, Jan 21, 2010 at 12:23 PM, Marius marius.dan...@gmail.com wrote: Instead of  submit - SHtml.submit(Parse, () = ()) use:  submit - SHtml.ajaxSubmit(Parse, () = ()) you can also send normal forms via ajax

[Lift] Re: Simple Ajax call to server side function

2010-01-22 Thread Marius
to keep Any) If so I could probably make the adjustments today since I'm on that defect anyways. Br's, Marius On Jan 22, 5:48 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Jan 18, 2010 at 10:31 AM, Felipe Rodrigues felipero.maill...@gmail.com wrote: That's a little better

[Lift] Re: Simple Ajax call to server side function

2010-01-22 Thread Marius
Very well then. If you do recall the rationale for keeping Any for non Ajax function, please let me/us know about it or add a comment in the code as I get the feeling that this will raise up again in the future. Br's, Marius On Jan 22, 8:36 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: I'm

[Lift] Re: Can sessions do this?

2010-01-23 Thread Marius
, or LiftRules.statelessRewrite for rewriting requests very early thus transforming them into some other forms. Br's, Marius On Jan 23, 4:52 am, Nolan Darilek no...@thewordnerd.info wrote: I'm porting an app I've written in Ruby over to Scala and Lift, and I'm wondering if Lift and Java's sessions can accomplish what

[Lift] Re: Can sessions do this?

2010-01-23 Thread Marius
LiftSessions have nothing to do with logins; they are bound to the container's HTTP session. But in a JEE container this is bound with JSESSIONID and if I understood correctly you don't want that. LiftSession.scala manages sessions in Lift. Br's, Marius On Jan 23, 5:21 pm, Nolan Darilek

[Lift] Re: Can sessions do this?

2010-01-23 Thread Marius
On Jan 23, 7:06 pm, Nolan Darilek no...@thewordnerd.info wrote: On 01/23/2010 09:34 AM, Marius wrote: LiftSessions have nothing to do with logins; they are bound to the container's HTTP session. But in a JEE container this is bound with JSESSIONID and if I understood correctly you don't

[Lift] Re: (Discussion) Autocomplete widget, bug or feature?

2010-01-23 Thread Marius
On Jan 23, 5:43 pm, Mads Hartmann mads...@gmail.com wrote: Hello everyone, I finally found the time to get a little coding done so i worked out a solution to this issue:http://github.com/dpp/liftweb/issues#issue/46 which is working nicely, but that is not what I want to write about this

[Lift] Re: Can sessions do this?

2010-01-24 Thread Marius
On Jan 24, 9:29 pm, Nolan Darilek no...@thewordnerd.info wrote: On 01/23/2010 11:32 AM, Marius wrote: Well that just the standard session behavior but if you want JSESSIONID in the URL yu should probbaly turn off cookies in Jetty (or whatever container you have). Thus the URL's from

[Lift] Re: Tomcat tips

2010-01-24 Thread Marius
layer over Comet implementation potentially allowing an implementation for Tomcat as well (even though their API is not very nice.). This adition is still on the review board. Br's, Marius On Jan 25, 12:10 am, aw anth...@whitford.com wrote: I have been developing my Lift app using the Jetty plugin

[Lift] Re: Welcome Jeppe to the Lift committers

2010-01-25 Thread Marius
Welcome Jeppe ! On Jan 25, 9:26 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: On Fri, Jan 22, 2010 at 5:25 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Please join me in welcoming Jeppe as a Lift Committer.  He's been helping people on the Lift list and contributing

[Lift] Re: FIXME comet type Full(xxx) name Full(yyy) timeout

2010-01-25 Thread Marius
For some reason your comet does not respond in about 26 seconds with a rendering message (AnswerRender) and this is when the Comet snippet wants to render out stuff. Can you send a minimalistic app where you can reproduce this so we can try it ? Br's, Marius On Jan 26, 8:57 am, aw anth

[Lift] Re: New ticketing system

2010-01-26 Thread Marius
pretty good. So you got my vote. Br's, Marius On Jan 26, 7:46 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, We switched to GitHub's ticketing system a bunch of months ago and, well, it's not making the grade.  It's slow.  It's limited (no unclosing tickets, no attachments, weak

[Lift] Re: jQuery 1.4

2010-01-27 Thread Marius
This broke my app ... with flying colors :D But it's not really Lift or jquery's fault. I'm using jstree plugin http://www.jstree.com/ and it doesn't seem to work properly with jquery 1.4. No biggies as I reverted to jquery 1.3.2. but others may hit this as well. Br's, Marius On Jan 26, 9:03

[Lift] Re: Netty integration

2010-01-27 Thread Marius
I'd strongly encourage you to do it. I was planning to work on it but I never seem to find slots for it :( If you run into some problems especially related with provider API please let me know. Br's, Marius On Jan 27, 2:54 pm, nick n...@glynnreeves.plus.com wrote: I'm just about to try and do

[Lift] Re: jQuery 1.4

2010-01-27 Thread Marius
Thanks Jon. On Jan 27, 5:19 pm, Jonathan Hoffman jonhoff...@gmail.com wrote: Hi Indrajit, I think you're right.  I didn't notice at first, but there are documented breaking changes in jQuery 1.4 which are outlined here:http://jquery14.com/day-01/jquery-14#backwards Marius, there's also

[Lift] Re: is there way to set multipart in ajaxform?

2010-01-28 Thread Marius
I don't think it's possible to do files upload via Ajax. There are workarounds but not directly with Ajax. If it would be possible Lift would have expose it already. Please look into widgets project on the upload widget. It does a fiel upload ajax-like including progress bar. Br's, Marius On Jan

[Lift] Re: Lift logging improvements

2010-01-28 Thread Marius
+1 On Jan 27, 11:59 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, I was thinking about some improvements to Lift's logging code: 1) Make the slf4j logging configurable in the same way as log4j (ie with dev, prod logback files) 2) Add support for MDC to Lift's logging interface (and

[Lift] Re: Exception notification?

2010-01-28 Thread Marius
See LiftRules.exceptionHandler On Jan 29, 12:33 am, Yu-Shan Fung ambivale...@gmail.com wrote: Hi All, A bit of a shot in the dark, but is there an easy way to setup email notification on an lift app whenever an uncaught exception occurs? Seems like a common enough use-case, just wonder if

[Lift] Re: Question on Javascript calls

2010-01-31 Thread Marius
that when serving the primordial lift-ajax/comet script. You can also use them for js events just to do some client stuff without invoking ajax. This is pretty handy as where you compute your button content from a snippet you can easily attach JS behavior as well. Br's, Marius On Feb 1, 2:27 am

[Lift] Re: Snippet attribute pass through

2010-02-01 Thread Marius
Replace your bind with: bind (ledger, content, time -% span{(new java.util.Date).toString}/span) ledger:id is not anymore preserved as after the was out this was considered a not intended feature and got moved. -% should do what you want. Br's, Marius On Feb 1, 5:57 pm, ced docpom

[Lift] Re: Snippet attribute pass through

2010-02-01 Thread Marius
Well the book reflects Lift at that point in time. Since then there were quite a few updates. I know Derek at some point tried to keep it up to date but I'm not sure now. This is not about fixing the book. Br's, Marius On 1 feb., 18:39, Naftoli Gugenheim naftoli...@gmail.com wrote: Anyone want

[Lift] Re: CometActor.fixedRender always below render?

2010-02-03 Thread Marius
to allow this ... Br's, Marius On Feb 3, 5:15 pm, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Hi, It looks like the output from fixedRender is always placed below the one from render. Is there a way to change this? Heiko -- Heiko Seeberger Work: weiglewilczek.com Blog

<    1   2   3   4   5   6   7   8   9   10   >