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 us
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
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 tim
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?
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 , but
If you have a template that looks like:
stuff here
In your snippet you can do:
class Template {
def chooseIt(in: NodeSeq): NodeSeq = {in}
def chooseTemplateName: String = if (normalTemplate) "default" else
"special_template"
}
On Tue, Jan 12, 2010 at 2:44 PM, Misha Korablin wrote:
In your code, you did not define a way to calculate the
DefaultConnectionIdentifier. That resulted in the error.
Enclosed, please find code that demonstrates two different connection
identifiers being successfully used in the same app.
On Tue, Jan 12, 2010 at 5:28 PM, Neil.Lv wrote:
>
> Oh, I
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" wrote:
> Hi all,
>
> There is a problem when i upgrading the 1.1-M7 to 1.1-M8, the db
> co
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 o
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 doub
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 doub
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 doub
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 all
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."
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 heav
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
wrote:
> On Tue, Jan 12, 2010 at 6:47 AM, Neil.Lv wrote:
> > Hi all,
>
>
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 wrote:
> I have nginx set up as a frontend. How can I have it display "Down for
> maintenance" instead of pointing to jetty?
>
> --
> You receive
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 gro
The first argument to Loc is a unique id for the menu. Is it used anywhere?
--
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 to
liftweb+unsubscr...@
I'm writing a custom Loc for a page and want to choose a different
template in 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...@googlegroups.com
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
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 sol
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 lift...@googlegrou
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
wrote:
> This is a defect. I've opened a ticket:http://github.com/dpp/liftweb/issues#issue/93
> I'll have a fix che
Cool.
Br's,
Marius
On Jan 12, 9:50 pm, Alex Boisvert 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, 2010 at 2:39 PM,
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.
-and
ah - that explains it :-)
On Jan 12, 6:56 am, Naftoli Gugenheim 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.
>
> -
>
> stephanos wrote:
>
> I don't want to appe
Ups forgot - I created an issue on github here:
http://github.com/dpp/liftweb/issues/#issue/281
On Jan 12, 9:07 pm, Marius 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/
> liftweb/issues) as a feat
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 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/
> liftweb/issues) as a feature requ
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
wrote:
> I'm kind swamped today, but the simplest thing you can do is:
>
> private def notifyListen = {
> MyUserThingy.gotAListenEventFor(User.currentUser)
>
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/
liftweb/issues) as a feature request.
Br's,
Marius
On Jan 12, 9:52 pm, Mads Hartmann wrote:
> Hello everyone
>
> Is there any way to tell Lift if a javascript f
Hello everyone
Is there any way to tell Lift if a javascript file (or just
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 wrote:
> Dear all,
>
> Recently (and not only) there have been d
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 al
On Tue, Jan 12, 2010 at 6:47 AM, Neil.Lv 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 connection and
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(_,
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 LiftSession.onBeginServicing
Tim, ask him if he's using ScalaQuery with Lift!
-
Timothy Perrett 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:
> We're already using
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 appli
I haven't actually used Comet. But isn't there a method that's called regularly
to update the html? So can't you just record activity in that method?
-
Daniel Spiewak wrote:
We're already using the Comet support within Lift quite extensively
across the board.
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 wrote:
> You are already using Comet, o
You are already using Comet, or just Lift?
-
Daniel Spiewak 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 it possible to hook
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
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 someo
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 Perrett wrote:
StackOverflow tends to be peer to peer IMO
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 using
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 Pol
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
official
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 wrote:
> On Jan 12, 4:20 pm, Adam Warski wrote:
>
>
>
> > Hello,
>
> > this *almost* works :).
>
> > I modified your code a bit and now I have:
>
> > def ajaxB
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
On Jan 12, 4:20 pm, Adam Warski 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(fmapFunc(contextFuncBuilder(func))(name =>
>
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?
-
Madhav wrote:
i tried to put custom attributes in scala code
but still its n
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 =>
{text}))(_ % _)
}
Now the form submits and
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.
---
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
gw
Hello Timothy,
there is nothing stoping me from using it.
But when I think of a framework it would be nice to "activate"
backbutton support.
I think this is somethink a lot of people would appreciate to have and
not everybody
should have to build this from the ground up.
I do not have to deal wit
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 wrote:
> Playing around with the TextileParser co
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 wha
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
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
ar
Playing around with the TextileParser code, I am using paraFixer. I
noticed that bold yields bold HTML. Similarly, italic
yields italic HTML. But bold does NOT yield bold
HTML... Looks like we need to add some extra tags to the function
isValidTag. I'd like to see tags like , , and added
for
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
overfl
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" gr
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\liftweb>mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 13:16:01-0600)
Java version: 1.6.0_12
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
Addition
text1 ::
1
Text2 :
result :
and my modified snippet code is :
bind("form", xhtml,
"text1" -> SHtml.text(text1,
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
Addition
text1 ::
1
Text2 :
result :
and my modified snippet code is :
bind("form", xhtml,
"text1" -> SHtml.text(text1,
66 matches
Mail list logo