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

2010-01-12 Thread Madhav
i tried to put custom attributes in scala code but still its nt working. Auto calculation is'nt happening yet. my view source in browser shows form method=post action=/mop fieldset legendAddition/legend preptext1 :input name=F567656735301UY5 type=text value= /: 1/p/pre prepText2 :input

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

2010-01-12 Thread Madhav
i tried to put custom attributes in scala code but still its nt working. Auto calculation is'nt happening yet. my view source in browser shows form method=post action=/addition fieldset legendAddition/legend preptext1 :input name=F567656735301UY5 type=text value= / : 1/p/pre prepText2 :input

Re: [Lift] Re: API-Doc generation help, pls

2010-01-12 Thread Indrajit Raychaudhuri
Please do mvn clean scala:doc. That should work. - Indrajit On 12/01/10 4:10 AM, joe wrote: I am receiving the same error as posted above attempting to build the scala docs. d:\dev\liftprojects\liftwebmvn -version Apache Maven 2.2.1 (r801777; 2009-08-06 13:16:01-0600) Java version: 1.6.0_12

[Lift] Re: Problem with validation

2010-01-12 Thread dominikgr
Yes i have tired, but it was the same problem. First validation is presented on form, but then is function actionConfirm() called (and there is redirection). And the bad thing is that redirection is not stoped. -- You received this message because you are subscribed to the Google Groups Lift

[Lift] Using Lift to Build stand alone multi threaded (multi actor?) apps. (was Lift based backend server subscribing via amqp)

2010-01-12 Thread vishnu
Reposting since this seemed to have gotten lost in the stream :) I'm trying to build a stand alone application where I have multiple threads or actors that subscribe to a queueing system and persist stuff on a database. Does it make sense to use mapper here? I ask because of this stack

[Lift] TextileParser

2010-01-12 Thread aw
Playing around with the TextileParser code, I am using paraFixer. I noticed that bbold/b yields bold HTML. Similarly, emitalic/em yields italic HTML. But strongbold/strong does NOT yield bold HTML... Looks like we need to add some extra tags to the function isValidTag. I'd like to see tags

Re: [Lift] Using Lift to Build stand alone multi threaded (multi actor?) apps. (was Lift based backend server subscribing via amqp)

2010-01-12 Thread Timothy Perrett
OK, so i'll try again to answer your question. Use lift-amqp for the service subscription. Then you have a choice between mapper and JPA... mapper should do what you want however and is probably simpler. Job done. The best advice is to actually try this stuff out... I get the impression you

Re: [Lift] Re: problems with file upload inside modal

2010-01-12 Thread Timothy Perrett
I just looked at it. Your getting this problem because you are literally doing a hard post to /ajax_request/.. its no wonder its dumping the response to the browser. I see you have two options; one is to just stuff the normal form in an element hidden within the page and then display that

Re: [Lift] Re: **IMPORTANT** Lift 2.0 Milestone1 is coming and it's time to test the SNAPSHOT in master

2010-01-12 Thread Timothy Perrett
Its changed quite considerably - however, git should be clever enough to track the functions / changes themselves rather than files. At worst, it might just ask you if what its doing is right or whatever. Should be fine. Cheers, Tim On 11 Jan 2010, at 21:31, Naftoli Gugenheim wrote: To

[Lift] Re: TextileParser

2010-01-12 Thread Timothy Perrett
The textile support is fairly complete, there are some cases that are not covered though. If you just want simple bolden, italics etc the sure, TextileParser.toHtml will deal with that for you with no problems. Cheers, Tim On Jan 12, 8:35 am, aw anth...@whitford.com wrote: Playing around with

[Lift] Lift on Stack Overflow

2010-01-12 Thread Daniel Sobral
I gathered some stats on number of question by tag: java x 30950 asp.net x 26451 php x 24854 asp.net-mvc x 8670 ruby-on-rails x 8513 ruby x 6620 -- just to contrast with ruby-on-rails django x 4550 flash x 3828 silverlight x 3365 spring x 1468 forms x 1339 jsp x 1326 wordpress x 1004 j2ee x 844

Re: [Lift] Using Lift to Build stand alone multi threaded (multi actor?) apps. (was Lift based backend server subscribing via amqp)

2010-01-12 Thread Naftoli Gugenheim
Mapper works standalone, but you'll need to include some other lift jars (if you use maven it will take care of that) because some mapper features reference classes in webkit etc. and if you don't classloading will fail. But it can be used in a non-Lift application fine.

Re: [Lift] Re: Ajax button + submitting a form

2010-01-12 Thread Adam Warski
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(fmapFunc(contextFuncBuilder(func))(name = button onclick={makeAjaxCall(JsRaw(

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

2010-01-12 Thread Naftoli Gugenheim
Why are you specifying some by name and some by id? Do not use name. SHtml.text works by using an autogenerated name. If you're doing id and it doesn't work, does, say 'size' work? - Madhavmail.madhavsha...@gmail.com wrote: i tried to put custom attributes

[Lift] Re: Ajax button + submitting a form

2010-01-12 Thread 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 = {    

[Lift] Re: **IMPORTANT** Lift 2.0 Milestone1 is coming and it's time to test the SNAPSHOT in master

2010-01-12 Thread Neil.Lv
Hi all, Maybe the mapper is broken in M8 ? I use only one database in M8 ( upgrade from M7) it works fine, but use two db connection and it doesn't work. (works fine in M7). Here is the topic about this issue. Thank you very much for any help! Cheers, Neil -- You received this

[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 and

Re: [Lift] Lift on Stack Overflow

2010-01-12 Thread David Pollak
My 2 cents (and maybe this is 'cause I'm an old guy), but I don't see the value of supporting yet another Lift support forum. This list is highly visible and the folks on this list of very helpful. The list is searchable (although not taggable). We don't do support on Twitter. We don't

Re: [Lift] Lift on Stack Overflow

2010-01-12 Thread Timothy Perrett
StackOverflow tends to be peer to peer IMO; I dont believe that MUST be committers or whatever, as DPP says, this is the official forum, if other users or committers use stack overflow, then sure, but i doubt I'll be hanging out there massively. Cheers, Tim On 12 Jan 2010, at 16:41, David

[Lift] Re: Ajax button + submitting a form

2010-01-12 Thread Marius
I must have misread your post. I did test the ajaxButton above (with your corrections) and the behaviour is correct. Form field functions are invoked first and then your ajax function provided to ajaxButton. Thus this is a good way for adding submit functions for ajax form without the need of

Re: [Lift] Lift on Stack Overflow

2010-01-12 Thread Naftoli Gugenheim
What would be really neat is if someone would make a Lift app that would be a front end for this mailing list, and add the ability to organize threads into categories, and tag them, etc. :) - Timothy Perretttimo...@getintheloop.eu wrote: StackOverflow

Re: [Lift] Lift on Stack Overflow

2010-01-12 Thread Alex Boisvert
As someone who answers questions, I prefer email because of the unified inbox. I can organize many things in a single location and refer to them easily. (I know I can use RSS with SO but I have yet to find a satisfying way to organize question feeds into my existing stream of emails) As

[Lift] User Presence Heartbeat

2010-01-12 Thread Daniel Spiewak
I'm looking to implement a user presence feature (think: Facebook or Gmail chat) in a Lift 1.0 application. Ideally, I would like to avoid adding extraneous connections. Is it possible to hook into the Lift Comet heartbeat which is already in use across our system? I've looked at the source for

Re: [Lift] User Presence Heartbeat

2010-01-12 Thread Naftoli Gugenheim
You are already using Comet, or just Lift? - Daniel Spiewakdjspie...@gmail.com wrote: I'm looking to implement a user presence feature (think: Facebook or Gmail chat) in a Lift 1.0 application. Ideally, I would like to avoid adding extraneous connections. Is

[Lift] Re: User Presence Heartbeat

2010-01-12 Thread Daniel Spiewak
We're already using the Comet support within Lift quite extensively across the board. There are very, very few pages in our application which do not have a CometActor embedded in them at some level of nesting. Daniel On Jan 12, 12:08 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: You are

Re: [Lift] Re: User Presence Heartbeat

2010-01-12 Thread Timothy Perrett
Whilst, I dont have an answer just yet, I wanted to say that the below statement is very, very cool! Cheers, Tim On 12 Jan 2010, at 18:25, Daniel Spiewak wrote: We're already using the Comet support within Lift quite extensively across the board. There are very, very few pages in our

Re: [Lift] Re: User Presence Heartbeat

2010-01-12 Thread Naftoli Gugenheim
Tim, ask him if he's using ScalaQuery with Lift! - Timothy Perretttimo...@getintheloop.eu wrote: Whilst, I dont have an answer just yet, I wanted to say that the below statement is very, very cool! Cheers, Tim On 12 Jan 2010, at 18:25, Daniel Spiewak wrote:

Re: [Lift] User Presence Heartbeat

2010-01-12 Thread Alex Boisvert
The current GC liveliness entrypoint is in LiftServlet.handleAjax() which calls liftSession.updateFuncByOwner(). There's no extension point for what you want at the moment although it would be fairly easy to add something to LiftSession. The closest thing right now is

Re: [Lift] Re: User Presence Heartbeat

2010-01-12 Thread David Pollak
I'm kind swamped today, but the simplest thing you can do is: private def notifyListen = { MyUserThingy.gotAListenEventFor(User.currentUser) false } private def notifyUnlisten = { MyUserThingy.gotAnUnlistenEventFor(User.currentUser) false } override def highPriority = { case Listen(_,

Re: [Lift] Re: **IMPORTANT** Lift 2.0 Milestone1 is coming and it's time to test the SNAPSHOT in master

2010-01-12 Thread David Pollak
On Tue, Jan 12, 2010 at 6:47 AM, Neil.Lv anim...@gmail.com wrote: Hi all, Maybe the mapper is broken in M8 ? I'm in meetings for most of today, but I will look at the DB issues you've reported tonight. I use only one database in M8 ( upgrade from M7) it works fine, but use two db

[Lift] Ajax forms and (multiple) submit buttons

2010-01-12 Thread Marius
Dear all, Recently (and not only) there have been discussions about ajax forms and their submit Scala functions not being called and that's because JQuery's form serialization doesn't serialize the input submits (for pertinent reasons). The workaround is as you know to use hidden fields. Adam

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

2010-01-12 Thread Alex Boisvert
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, 2010 at 2:39 PM, Marius marius.dan...@gmail.com wrote: Dear all, Recently (and not

[Lift] Dynamic sorting of Javascript dependencies

2010-01-12 Thread Mads Hartmann
Hello everyone Is there any way to tell Lift if a javascript file (or just script tag) is dependent of another one? - this would allow lift to order the script tags correctly Example: The AutcoComplete widget adds the '/classpath/autocomplete/ jquery.autocomplete.js' javascript file to the

[Lift] Re: User Presence Heartbeat

2010-01-12 Thread Daniel Spiewak
Sweet, that looks like exactly what I need! I'll post back here if that doesn't work properly. Daniel On Jan 12, 12:46 pm, David Pollak feeder.of.the.be...@gmail.com wrote: I'm kind swamped today, but the simplest thing you can do is: private def notifyListen = {  

[Lift] Re: Dynamic sorting of Javascript dependencies

2010-01-12 Thread Mads Hartmann
Glad you like it Marius :) I think I saw this feature in wordpress, but I'm not sure :) On Jan 12, 9:07 pm, Marius marius.dan...@gmail.com wrote: No we don't have that but I find it quite interesting and useful in practice. I think it worth opening a ticket (http://github.com/dpp/

[Lift] Re: Dynamic sorting of Javascript dependencies

2010-01-12 Thread Mads Hartmann
Ups forgot - I created an issue on github here: http://github.com/dpp/liftweb/issues/#issue/281 On Jan 12, 9:07 pm, Marius marius.dan...@gmail.com wrote: No we don't have that but I find it quite interesting and useful in practice. I think it worth opening a ticket (http://github.com/dpp/

[Lift] Re: problems with file upload inside modal

2010-01-12 Thread stephanos
ah - that explains it :-) On Jan 12, 6:56 am, Naftoli Gugenheim naftoli...@gmail.com wrote: If you mean David I think he's off the list until Wednesday. Maybe one of the other committers or knowledgable users can help though. -

[Lift] Re: problems with file upload inside modal

2010-01-12 Thread stephanos
Thanks for your feedback! I knew I was doing sth. obviously wrong. The idea with the hidden form element is cool - didn't think of that before. When I try/tried to submit the form via AJAX myself I fail: -I tried to use an ajaxButton - but then the processFile() method wasn't called anymore.

[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: Binding a snippet in a comet actor?

2010-01-12 Thread Felipe Rodrigues
I have a similar problem here. I didn't find this issue on github. Is this issue solved? Thanks, Felipe On Oct 9 2009, 5:17 pm, David Pollak feeder.of.the.be...@gmail.com wrote: This is a defect.  I've opened a ticket:http://github.com/dpp/liftweb/issues#issue/93 I'll have a fix

[Lift] Meaning of message

2010-01-12 Thread Naftoli Gugenheim
What does this output message mean? Msgs: Default Error is not rendered as the default title is now empty string It's repeated for Warning and Notice. -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

Re: [Lift] Re: Binding a snippet in a comet actor?

2010-01-12 Thread Alex Boisvert
Yes. The issue is here: http://github.com/dpp/liftweb/issues/closed/#issue/93 It was fixed in 1.1M7 and later. alex On Tue, Jan 12, 2010 at 1:47 PM, Felipe Rodrigues felipero.maill...@gmail.com wrote: I have a similar problem here. I didn't find this issue on github. Is this issue

[Lift] Re: Lift on Stack Overflow

2010-01-12 Thread joseph b.
Stack Overflow may not be so much better a way of delivering support to someone who already has a Lift question, but presence there would be a great way to publicize Lift to the many developers who go there without Lift in mind but have problems that Lift could be applied to. -- You received this

[Lift] Choose template in a custom Loc

2010-01-12 Thread Misha Korablin
I'm writing a custom Loc for a page and want to choose a different template in lift:surround if a certain URL parameter is present. How can I do this? Misha -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

[Lift] Nginx question

2010-01-12 Thread Naftoli Gugenheim
I have nginx set up as a frontend. How can I have it display Down for maintenance instead of pointing to jetty? -- 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,

Re: [Lift] Nginx question

2010-01-12 Thread Alex Boisvert
follow this thread for a few suggestions: http://nginx.org/pipermail/nginx/2009-February/009791.html On Tue, Jan 12, 2010 at 4:33 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I have nginx set up as a frontend. How can I have it display Down for maintenance instead of pointing to jetty?

[Lift] Re: **IMPORTANT** Lift 2.0 Milestone1 is coming and it's time to test the SNAPSHOT in master

2010-01-12 Thread Neil.Lv
Oh, I'm sorry about that I forget pasting the topic url. Here is : http://groups.google.com/group/liftweb/browse_thread/thread/6ca3fd7deb41b1f9 Thank you very much! Cheers, Neil On Jan 13, 2:48 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Jan 12, 2010 at 6:47 AM,

[Lift] Squid with lift?

2010-01-12 Thread Naftoli Gugenheim
I saw this on http://wiki.nginx.org/NginxFaq For which general use cases is Nginx more appropriate than Squid? (And vice versa...) Nginx is generally deployed as a reverse proxy, not as a caching proxy (like Squid). The key advantage with Nginx is its nominal RAM and CPU usage under heavy

[Lift] Re: Lift on Stack Overflow

2010-01-12 Thread Peter Robinett
I'm a huge SO fan and have used it to ask a lot of my stupid Scala questions but I've been asking my Lift questions here. Perhaps the reason there are so few Lift questions is because others are doing the same? Note that Scala has a respectable 698 questions. Peter On Jan 12, 2:28 pm, joseph b.

[Lift] Scheduling the San Francisco Scala Lift Off

2010-01-12 Thread David Pollak
Folks, For the last two years, the San Francisco Scala Lift Off has happened the day after JavaOne. It's looking like JavaOne might not happen this year, so I'm starting to think about a time in the April-June timeframe when there are a lot of Scala and/or Java folks in San Francisco. If you

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

2010-01-12 Thread Madhav
hi Actually i was using name for text1 and text2 and id for result because the plugin page (http://www.pengoworks.com/workshop/jquery/ calculation/calculation.plugin.htm) says to use this name syntax.I tried with using only id also but no use . But yes the size attribute works. I was initially

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

2010-01-12 Thread Madhav
hi Actually i was using name for text1 and text2 and id for result because the plugin page (http://www.pengoworks.com/workshop/jquery/ calculation/calculation.plugin.htm) says to use this name syntax.I tried with using only id also but no use . But yes the size attribute works. I was initially

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

2010-01-12 Thread Madhav
hi Actually i was using name for text1 and text2 and id for result because the plugin page (http://www.pengoworks.com/workshop/jquery/ calculation/calculation.plugin.htm) says to use this name syntax.I tried with using only id also but no use . But yes the size attribute works. I was initially

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

2010-01-12 Thread Naftoli Gugenheim
That's you're problem. SHtml.text needs to set name to its own autogenerated value. If you need a custom name then you have to handle processing it manually. Use S.param in e.g. the SHtml.submit callback to read the query params. For example, S.param(text1) returns a Box that is Full if the URL or

[Lift] Re: Two database are broken in 1.1-M8, works fine in 1.1-M7 .

2010-01-12 Thread David Pollak
The problem with this code is you are using the same connection vendor for both connection identifiers *and* you're not defining a vendor for the DefaultConnectionIdentifier On Jan 11, 7:05 am, Neil.Lv anim...@gmail.com wrote: Hi all,    There is a problem when i upgrading the 1.1-M7 to

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

2010-01-12 Thread Madhav
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 number in text1 and second in text2 and immediately addition result is shown in result box without pressing submit button ,

[Lift] Default Schema for DefaultConnectionIdentifier

2010-01-12 Thread aw
I specify my database by specifying a jndiName for DefaultConnectionIdentifier: DefaultConnectionIdentifier.jndiName = jdbc/myOracleDb I really need to specify a default schema too... (For Hibernate, I would specify this in persistence.xml.) Is there a way to specify a default schema?

[Lift] SessionVar that loses it contents

2010-01-12 Thread Juha Syrjälä
Hello all, I am having a problem with SessionVar that keeps losing its contents. I have defined the SessionVar like this: object MyObject { object myVar extends SessionVar[Box[MyObject]](Empty) } Then I set value once for myVar: MyObject.myVar(Full(value)) My problem is that after some

[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 On

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

2010-01-12 Thread Marius
You can get query params with JavaScript with something like: var url = window.location.toString(); and then split it up ... if that is what you're looking for. One small thing, with bind, if you want to preserve the node attributes specified in your markup and not put then from scala you can