Works like a charm.
Gracias.
On Jan 18, 10:46 am, ced wrote:
> You may try this:
>
> def ajaxLiveText(value: String, func: String => JsCmd, attrs: (String,
> String)*): Elem = {
> S.fmapFunc(S.SFuncHolder(func)) {funcName =>
> (attrs.foldLeft()(_ %
> _)) %
>
How do you launch jetty? If it's an eclipse maven launch, specify JRebel in the
JVM arguments. For command-line maven, specify it in the MAVEN_OPTS environment
variable.
If you launch via sbt (assuming there's such a thing) then you have to check
the sbt docs.
Ultimately the command line that la
hi
Value is result of calculation done by jquery plugin in the html
template . It can be thought of simple addition of numbers in two
fields and display of value in a third readonly field and i need to
capture this value in readonly field during submit call .
madhav
--
You received this message
Where does the value come from?
-
Madhav wrote:
Hi
In my application i have declared a text field as readonly and when
submitting i am not able to capture the value associated with the text
field . I have declared textfield as readonly in my snippet as follows
Hi
In my application i have declared a text field as readonly and when
submitting i am not able to capture the value associated with the text
field . I have declared textfield as readonly in my snippet as follows
"sum" -> SHtml.text(sum, sum = _,"id"->"totalSum","readonly"-
>"readonly")
and in ht
Thanks.
"The Eclipse incremental compiler, Jetty & the JRebel plugin makes for
fairly rapid turnaround times."
This is interesting. I wonder if there are instructions somewhere online
about how to use Eclipse + sbt + JRebel for Lift development. The Lift
Get Started Guide mentions a lot of start
On Sun, Jan 17, 2010 at 12:24 PM, ced 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 for this purpose.
LiftRules.snippets
LiftRu
Please don't open tickets unless you discuss them on this list first.
On Sun, Jan 17, 2010 at 6:45 PM, tommycli wrote:
> I created two new issues for TextileParser.
>
> 290. TextileParser molests divs
>
> 291. TextileParser does not support notextile
>
> Additionally, it'd be nice if TextilePars
Thanks for the response. I have created a small project here:
http://drop.io/memtest (btw - the zip file is so big because there are
3 heap dumps - before that it was only 21k!) which i believe does
exhibit the problem. One comet actor page which gets updated every 20
sec. via tick.
So to run thi
Aargh! Yes that pesky capital M fixed the errors.
Thanks Ross.
Paul.
On 18 Jan, 22:22, Ross Mellgren wrote:
> flatMap (with a capital M)
>
> -Ross
>
> On Jan 18, 2010, at 5:21 PM, pabraham wrote:
>
> > Hi Naftoli,
>
> > The code I have is:
>
> > def allexpenses(expenseTemplate: NodeSe
flatMap (with a capital M)
-Ross
On Jan 18, 2010, at 5:21 PM, pabraham wrote:
> Hi Naftoli,
>
> The code I have is:
>
> def allexpenses(expenseTemplate: NodeSeq): NodeSeq = Expense.findAll(By
> (Expense.month,m.toLong)).flatmap ({ month =>
> bind("month", expenseTemplate,
> "name" -> Te
Hi Naftoli,
The code I have is:
def allexpenses(expenseTemplate: NodeSeq): NodeSeq = Expense.findAll(By
(Expense.month,m.toLong)).flatmap ({ month =>
bind("month", expenseTemplate,
"name" -> Text( month.item ),
"amount" -> Text( month.amount )
)
})
bind("thismonth", xhtml, "expe
By default Django escapes the data passed into template. If you want to pass
in HTML, you have to explicitly mark it as safe in the template. You
probably could mark it as safe in the control function too.
For me, that's been effective in making me think twice before HTML to the
templates.
Eric
On Mon, Jan 18, 2010 at 10:48 PM, Timothy Perrett
wrote:
> Jeppe,
>
> Very interesting stuff - agree with most of your points, however, this
> statement:
>
> "While you can’t get code into your templates, it’s easy to get UI
> into your code, which is (almost) just as bad. The dynamic part of the
val l = List(1,2,3)
l.map(x => x * 2) == List(2,4,6)
So map take as its argument a function that transforms every member of the list.
flatmap is similar but instead of the new List *consisting of* the transformed
elements, it consists of the *concatenation* of the results of the function
(which
Jeppe,
Very interesting stuff - agree with most of your points, however, this
statement:
"While you can’t get code into your templates, it’s easy to get UI
into your code, which is (almost) just as bad. The dynamic part of the
UI is done by snippets and they of course need to emit HTML. But it is
Hi Adam,
Thanks for your advice. Unfortunately if I paste your code, I get
"error: not found: value expensesformonth".
I need to convert my "m" value to an instance of Month where the ID of
this instance is "m", but I can't work out how.
I then tried this:
def allexpenses(expenseTemplate: Node
Hi,
A while ago, I started writing an experience report on using Scala &
Lift. I finally finished this (it has been a little more than 6 months
now, time is flying :-)
http://jeppenejsum.wordpress.com/2010/01/18/scala-and-lift-status-after-six-months/
/Jeppe
--
You received this message because
I was hacking around with the 2.0-M1 release and it appears that the
StringField used by Wizard and defined in lift-base webkit
LiftScreen.scala is not the same as the StringField defined in lift-
persistence StringField.scala.
Can I assume this is an artifact of development and some unification
o
Hi,
Something puzzled me about this as in firebug the parameters order was
correct. So here is the explanation why it doesn't for with your code:
1. HTTP parameters MAY arrive in an unpredictable order into the
servlet. Container may alter their order due to use of maps etc, or
browsers may even
I missed the step of setting up the snippet dispatcher. Fixed.
On Jan 18, 12:23 pm, Tim Maxwell wrote:
> Hi Folks,
>
> I got the example project up and running. However as I start to modify
> it, I run into a nasty error.
>
> Here are the changes I've made:
>
> 1. added to Boot.scala
>
> Menu(L
That's a little better.. thanks
greekscala wrote:
Hello,
know what you mean. You can use JsCmds._Noop to return "nohting" as
JsCmd.
best regards
On 18 Jan., 17:25, Felipe Rodrigues
wrote:
Here is how I made it, but seems ugly:
SHtml.a(() => {serverSideFunction(t.text); Call("void", Num(
Hi Folks,
I got the example project up and running. However as I start to modify
it, I run into a nasty error.
Here are the changes I've made:
1. added to Boot.scala
Menu(Loc("Wiz", List("wiz"), "Wizard")), //boilerplate
Menu(Loc("Wiz3", List("wiz3"), "Signup Wizard")), //my addition
Menu
Found it in the repository.
Thanks!
On 18 Jan., 18:46, greekscala wrote:
> Hello,
>
> the Replace JsCmd is not present in 1.0.
> workaround wrap it with an div.
>
> best regards
>
> On 18 Jan., 18:39, ced wrote:
>
>
>
> > Sorry, but I can't find it. Which version of Lift do you use? I'm
> > usi
You may try this:
def ajaxLiveText(value: String, func: String => JsCmd, attrs: (String,
String)*): Elem = {
S.fmapFunc(S.SFuncHolder(func)) {funcName =>
(attrs.foldLeft()(_ %
_)) %
("onkeyup" -> makeAjaxCall(JsRaw("'" + funcName +
"=' + encodeURIComponent(t
Hello,
the Replace JsCmd is not present in 1.0.
workaround wrap it with an div.
best regards
On 18 Jan., 18:39, ced wrote:
> Sorry, but I can't find it. Which version of Lift do you use? I'm
> using version 1.0. In the scaladoc I can't find it either.
>
> On 18 Jan., 18:21, greekscala wrote:
Sorry, but I can't find it. Which version of Lift do you use? I'm
using version 1.0. In the scaladoc I can't find it either.
On 18 Jan., 18:21, greekscala wrote:
> Hello,
>
> I looked at the source and there is JsCmds.Replace which replaces a
> Node with another.
> I am always using div as conta
Hello,
know what you mean. You can use JsCmds._Noop to return "nohting" as
JsCmd.
best regards
On 18 Jan., 17:25, Felipe Rodrigues
wrote:
> Here is how I made it, but seems ugly:
>
> SHtml.a(() => {serverSideFunction(t.text); Call("void", Num(0)).cmd}, t)
>
> It is awkward having to add a JsCmd
Yes, using a div or span is recommended so you can replace multiple times.
Alex
On Jan 18, 2010 9:21 AM, "greekscala" wrote:
Hello,
I looked at the source and there is JsCmds.Replace which replaces a
Node with another.
I am always using div as containers for replacement
best regards
On 1
Hello,
I looked at the source and there is JsCmds.Replace which replaces a
Node with another.
I am always using div as containers for replacement
best regards
On 18 Jan., 17:41, ced wrote:
> Hello,
> I'm wondering if there is a way to replace an HTML element after an
> AJAX call? I've found
Hello,
I'm wondering if there is a way to replace an HTML element after an
AJAX call? I've found the SetHtml JsCmd, but this one replaces the
content. But I'd like to replace the element itself.
Any idea anyone?
--
You received this message because you are subscribed to the Google Groups
"Lift" g
Hi all,
It's just to inform you that demo.liftweb.net is down. I just received a 502
Bad Gateway from http://demo.liftweb.net/
If liftweb mailing-list is not the right place to send such warning messages
: (1) sorry to bother everybody, (2) would you, please, reply with right
procedure ?
Thank yo
Here is how I made it, but seems ugly:
SHtml.a(() => {serverSideFunction(t.text); Call("void", Num(0)).cmd}, t)
It is awkward having to add a JsCmd even when I don't need it.
Felipe
Naftoli Gugenheim wrote:
Never mind my question; I hadn't paid attention to the subject.
--
Never mind my question; I hadn't paid attention to the subject.
-
Felipe Rodrigues wrote:
Hi all,
I want to create a link which when clicked calls a server side function.
No need for JavaScript callback.
I tried with no success:
SHtml.a(() => {serverSideFunc
Do you want the link to navigate the browser/reload the page?
-
Felipe Rodrigues wrote:
Hi all,
I want to create a link which when clicked calls a server side function.
No need for JavaScript callback.
I tried with no success:
SHtml.a(() => {serverSideFuncti
On Mon, Jan 18, 2010 at 3:56 PM, Indrajit Raychaudhuri
wrote:
> Jeppe,
>
> Good find! This happens because the new top level pom.xml hasn't been
> deployed in the scala-tools repo.
>
> Have fixed in master, give it a try in half an hour or so.
Works now, thanks!
/Jeppe
--
You received this mess
Hi all,
I want to create a link which when clicked calls a server side function.
No need for JavaScript callback.
I tried with no success:
SHtml.a(() => {serverSideFunction(t.text)}, t)
Any idea how can I accomplish that will be appreciated.
Thanks,
Felipe
--
You received this message be
that worked, thanks.
On Jan 18, 8:52 am, Indrajit Raychaudhuri wrote:
> I guess you meant lift-archetype-basic :) That is meant for you to
> quickly get started with a with a working project from scratch. It
> doesn't really serve as example.
>
> For examples, go to the examples directory at the
Marc,
Thanks for reporting. Have fixed in master, give it a try in half an
hour or so after hudson is done with the build.
Cheers, Indrajit
On 18/01/10 2:58 PM, Marc wrote:
Hi,
I tried to switch a 1.1-SNAPSHOT project to 2.0-SNAPSHOT. I did this
by changing the following:
net.
Jeppe,
Good find! This happens because the new top level pom.xml hasn't been
deployed in the scala-tools repo.
Have fixed in master, give it a try in half an hour or so.
Cheers, Indrajit
On 18/01/10 2:49 PM, Jeppe Nejsum Madsen wrote:
Hi,
Just tried an mvn -U clean test and got this:
[INF
I guess you meant lift-archetype-basic :) That is meant for you to
quickly get started with a with a working project from scratch. It
doesn't really serve as example.
For examples, go to the examples directory at the top level. They
haven't been removed, just relocated from lift-examples to ex
> Go to the corresponding directory and do "mvn package".
I'm using the maven basic archetype. The examples directories have
been removed from that, so I don't have a corresponding directory,
this is my main obstacle.
--
You received this message because you are subscribed to the Google Groups
On 18/01/10 7:10 PM, Tim Maxwell wrote:
Hi Folks,
I am messing around with the 2.0-M1 build and I can't figure out a
couple of things.
a. What is the prefered method of installing the lift-examples?
Go to the corresponding directory and do "mvn package".
Once done, you would have all shiny
Hi Folks,
I am messing around with the 2.0-M1 build and I can't figure out a
couple of things.
a. What is the prefered method of installing the lift-examples?
b. Does LiftWizard work yet? I am getting an Instantiation exception
when I call new Wizard. The docs say this exception only gets thrown
Hi,
I tried to switch a 1.1-SNAPSHOT project to 2.0-SNAPSHOT. I did this
by changing the following:
net.liftweb
lift-mapper
1.1-SNAPSHOT
to
net.liftweb
lift-mapper
2.0-SNAPSHOT
and then did
mvn -U clean install
but I get this error:
Hi,
Just tried an mvn -U clean test and got this:
[INFO] Unable to find resource 'net.liftweb:lift:pom:2.0-SNAPSHOT' in
repository scala-tools.org.snapshots (http://scala-tools.org/repo-
snapshots)
[INFO]
[ERROR] BUILD ERROR
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 to
> be physically in the form element (at least that's the way I see
> it.).
actua
Hello,
> I have HTML to print out expenses for a given month (i.e. URL = .../
> month/12):
>
>
> ...
>
>
>
>
>
>
> ...
>
>
> The area I'm having problems with is the code to drive the above
> HTML. I need something like:
>
> class MonthPage {
> def summary( xhtml : NodeS
Is there a SHtml.ajaxText equivalent that will perfrom an ajax call
when the onkeyPress is invoked? I want the ability to query the db to
see if a particular username is "available" or "unavailable" each time
the user types in a letter within the input field. I can only get
this accomplished on b
Is there a SHtml.ajaxText equivalent that will perfrom an ajax call
when the onkeyPress is invoked? I want the ability to query the db to
see if a particular username is "available" or "unavailable" each time
the user types in a letter within the input field. I can only get
this accomplished on b
50 matches
Mail list logo