Neat!
Maybe a better name would be asyncLoad?
-
David Pollak wrote:
This is nifty... I think it's worthy of inclusion in Lift. Thanks for the
suggestion!
On Wed, Aug 26, 2009 at 2:44 PM, harryh wrote:
>
> Let's say you have a bit of a page like so:
>
>
>
Hi,
Looks like the JS is being double escaped.
Changed following methods to fix:
def onLoad(id: String, graphStyle: SparklineStyle.Value, data:
JsArray, opts: JsObj) : NodeSeq = {
{
Script(OnLoad(sparkExp(id, graphStyle, data, opts)))
}
}
def toJsEx
This is nifty... I think it's worthy of inclusion in Lift. Thanks for the
suggestion!
On Wed, Aug 26, 2009 at 2:44 PM, harryh wrote:
>
> Let's say you have a bit of a page like so:
>
>
>
>
>
> Now, let's assume that computing whatever is bound to
> takes a long time (maybe it takes a netwo
On Wed, Aug 26, 2009 at 9:06 PM, Lance Zheng wrote:
>
> fixed.
I love it when folks find answers to their own questions.
Thanks for being part of the Lift community!
>
> because image name have '.' character, which is not allowed, so select
> by id cant get the element.
>
> On Aug 27, 5:41 a
On Wed, Aug 26, 2009 at 8:32 PM, E. Biggs wrote:
>
> Thanks David! My pages now render - although broken... the cause
> appears to be a failed head merge between my template's head and the
> surrounding template's head.
Can you post an example of the failing use case and I'll roll it into our
fixed.
because image name have '.' character, which is not allowed, so select
by id cant get the element.
On Aug 27, 5:41 am, Lance Zheng wrote:
> hi,
> please help me, I can't find the reason, the code on
> gisthttp://gist.github.com/175858
> def remove(img:String)={
> HomePage.rem
Thanks David! My pages now render - although broken... the cause
appears to be a failed head merge between my template's head and the
surrounding template's head.
On Aug 26, 7:51 pm, David Pollak
wrote:
> I've just pushed a new version live that will behave more gracefully if the
> xsd cannot b
Has anyone used lift with Ext.JS forms/Ext.Direct?
P.S. It would be neat if it could interact with Lift's JSON support. I wonder
what it would take.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
T
I've just pushed a new version live that will behave more gracefully if the
xsd cannot be loaded.
On Wed, Aug 26, 2009 at 7:39 PM, Justin Reardon wrote:
>
> Probably caused by this if you're in a dev environment:
> http://groups.google.com/group/liftweb/t/90750187a6c29c2c
>
> On Aug 26, 9:36 pm,
I've just pushed a new version live that will behave more gracefully if the
xsd cannot be loaded.
On Wed, Aug 26, 2009 at 5:17 PM, Justin Reardon wrote:
>
> After updating, attempting to load any page results in the error
> message below. Given the message, I'm guessing this isn't the fault of
>
Probably caused by this if you're in a dev environment:
http://groups.google.com/group/liftweb/t/90750187a6c29c2c
On Aug 26, 9:36 pm, "E. Biggs" wrote:
> Hi there,
>
> I just did a mvn -U jetty:run
>
> and my site that I know was working fine before is now broken with
> this error displayed in t
Hi there,
I just did a mvn -U jetty:run
and my site that I know was working fine before is now broken with
this error displayed in the browser for any url:
org.xml.sax.SAXParseException: schema_reference.4: Failed to read
schema document 'http://www.w3.org/2002/08/xhtml/xhtml1-
transitional.xsd
This is more a scala question I guess, so I apologize, but I thought
someone here may have run into this before working with their own
model objects.
I have a trait, Posts, in the same file as my Post class and object.
I've now abstracted some boilerplate code into a new trait,
FormHelper, which
After updating, attempting to load any page results in the error
message below. Given the message, I'm guessing this isn't the fault of
my own code? Turning off validation as recommended causes the page to
load normally again.
The error:
Exception occured while processing /index
Message: org.xml.
Folks,
I've made some significant revisions to a number of aspects of Lift:
- I condensed two of the rewrite phases into one (the header/tail rewrite
and the URL rewriting) and improved the efficiency of the former. The net
effect is that the lift:when attribute is no longer on comet co
What is the best (and simplest) WYSIWYG editor for Lift application?
For now I just need to be able to add images to textarea, so that a
user will see it's text relative to images before submitting it.
It seems than TinyMCE is suitable for this, but I don't know, may be
there is a better solutio
Thanks.
Changed and pushed to GitHub. Allow 2 hours for Maven availability.
On Wed, Aug 26, 2009 at 4:15 PM, harryh wrote:
>
> > What's the change to the RegEx?
>
> val emailPattern = Pattern.compile("^[a-z0-9._%-+]+@(?:[a-z0-9-]+\\.)+
> [a-z]{2,4}$")
>
> note the addition of the + to the allo
On Wed, Aug 26, 2009 at 3:15 PM, harryh wrote:
>
> It doesn't allow for + in the name part of the e-mail (harryh
> +l...@gmail.com).
> Can one of the lift commiters fix this? It's a one character change.
What's the change to the RegEx?
>
>
> -harryh
>
> >
>
--
Lift, the simply functional
> What's the change to the RegEx?
val emailPattern = Pattern.compile("^[a-z0-9._%-+]+@(?:[a-z0-9-]+\\.)+
[a-z]{2,4}$")
note the addition of the + to the allowed characters before the @
-harryh
--~--~-~--~~~---~--~~
You received this message because you are subscr
It doesn't allow for + in the name part of the e-mail (harryh
+l...@gmail.com).
Can one of the lift commiters fix this? It's a one character change.
-harryh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" gr
hi,
please help me, I can't find the reason, the code on gist
http://gist.github.com/175858
def remove(img:String)={
HomePage.removeImg(img)
JsCmds.Run("$('#"+img+"').remove()")
}
var imglist=imgs.map(i =>{
{SHtml.ajaxButton(S.?("delete")
Let's say you have a bit of a page like so:
Now, let's assume that computing whatever is bound to
takes a long time (maybe it takes a network call, or a long database
query, or whatever). You don't want to hold up your entire page view
on that so.
Then in your Util snip
Answering my own question:
val (name, exp) = ajaxInvoke(() => { SetHtml(id, xhtml) })
{Script(OnLoad(exp.cmd))}
AFAIK I can just ignore name?
-harryh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
T
Its not the primary ORM at the moment. Although, its developing, and its
still simply awesome if you are not using JDBC storage.
If you just need regular JDBC style connectivity, then use Mapper for now.
Cheers, Tim
On 26/08/2009 19:01, "inca" wrote:
> Is there any documentation available fo
Just to follow up on this, using CRUDify's edit page to update a model
entry using this primary key causes this exception to be thrown. Is
there any way to give Mapper and/or CRUDify a clue that it should
update the existing entry, not try to create a new one?
Thanks,
Peter
On Jul 30, 10:47 am,
On Wed, Aug 26, 2009 at 10:13 AM, glenn wrote:
>
> Timothy,
>
> I'm still not convinced that Lift applications can be modularized as
> simply as you suggest.
> Do you have any samples of your MyLib.init? How do you handle the non-
> PF's, like schemify and setSiteMap?
I typically return my menu
Hi,
Then I guess my next question is: how do you define where your css is located?
I have a function that gives the location of my css in the following way:
def css =
You shouldn't need the S.hostAndPath+"/" part unless you're using
fancy redirecting like I'm doing. I call that function from m
Hey Glenn,
I actually don't use those features in my libs... For reasons I wont go into
that's just not what my kind of work involves... So I cant really comment
from experience im afraid.
Cheers, Tim
On 26/08/2009 18:13, "glenn" wrote:
>
> Timothy,
>
> I'm still not convinced that Lift ap
def someFunc(): JsCmd = {
// some JsCmd
}
I want to run this on page load. This is close, but not quite right:
{Script(OnLoad(ajaxInvoke(someFunc _)))}
-harryh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Li
Is there any documentation available for Lift Record Framework? From
liftbook: "The Record framework is relatively new to Lift. The plan is
to move to Record as the primary ORM framework for Lift sometime after
version 1.0". Is it the "primary ORM" now?
--~--~-~--~~~--
Timothy,
I'm still not convinced that Lift applications can be modularized as
simply as you suggest.
Do you have any samples of your MyLib.init? How do you handle the non-
PF's, like schemify and setSiteMap?
As for templates, I've learned that you can use the templating
mechanism in Loc to elimin
+1 for W3C validations: I feel more comfortable with valid code than with
invalid which somehow runs on (some) browsers.
Heiko
2009/8/26 David Pollak
> Folks,
> I've been working on the XHTML validation stuff for Lift. Basically, you
> can, in dev mode, turn on validation and you'll get an "err
Right, and even if this were the case we already provide a mechanism
for users to set the output DocType so one could just read that and
change validation mode or whatever.
Validation sounds like a good idea to me.
Regarding templates i've also been meaning to make a XSLT that smashes
together o
It should be invalid for in any mode of XHTML (strict,
transitional) or HTML4 whatever you choose.
is an inline element that was never meant to support a block
level element (, etc.)
Browsers nowadays are very smart to render anything you throw at it
gracefully but that cannot be a license to
On Wed, Aug 26, 2009 at 9:12 AM, Peter Robinett wrote:
>
> Would it be too complicated to let the developer choose (perhaps in
> Boot.scala) whether they want a strict mode?
Even transitional mode has these restrictions
>
>
> Peter Robinett
>
> On Aug 26, 8:20 am, David Pollak
> wrote:
> > Fo
On Wed, Aug 26, 2009 at 9:35 AM, Timothy Perrett wrote:
>
>
> Looks right to me - what w3c validation did you have in mind?
Validating against the XHTML XSD (Strict or Transitional)
>
>
> On 26/08/2009 16:20, "David Pollak" wrote:
>
> > Is this right? Is it worthwhile to add W3C validation w
Would it be too complicated to let the developer choose (perhaps in
Boot.scala) whether they want a strict mode?
Peter Robinett
On Aug 26, 8:20 am, David Pollak
wrote:
> Folks,
> I've been working on the XHTML validation stuff for Lift. Basically, you
> can, in dev mode, turn on validation and
Looks right to me - what w3c validation did you have in mind?
On 26/08/2009 16:20, "David Pollak" wrote:
> Is this right? Is it worthwhile to add W3C validation when these constructs
> are allowed by browsers?
--~--~-~--~~~---~--~~
You received this message
Folks,
I've been working on the XHTML validation stuff for Lift. Basically, you
can, in dev mode, turn on validation and you'll get an "error box" at the
bottom of each screen that has a validation error as well as an error in the
console.
I've found that a fair number of constructs that work in
If you want to compromise you can call it example-sites if it's not too
verbose...
-
David Pollak wrote:
+1 on re-org
No opinion on naming
+1 on archetypes
On Wed, Aug 26, 2009 at 2:39 AM, Timothy Perrett wrote:
>
> Chaps,
>
> Any objections to me renaming
+1 on re-org
No opinion on naming
+1 on archetypes
On Wed, Aug 26, 2009 at 2:39 AM, Timothy Perrett wrote:
>
> Chaps,
>
> Any objections to me renaming "sites" to examples?
>
> Moreover, I want to move some of these so called "examples" to be
> archetypes as it strikes me that they are better st
So it sounds like people like this - I'll get onto it later
hopefully :-)
Cheers, Tim
On Aug 26, 12:44 pm, Indrajit Raychaudhuri
wrote:
> Tim,
>
> sites to examples, certainly. For consistency lift-examples could be
> better.
> Some examples becoming archetype is great idea.
>
> Cheers, Indra
Hi, Dorinel.
Current Scala support in IDEA 9 is targeted to Scala 2.8 whereas lift uses
Scala 2.7, so it would be better to stick with IDEA 8 for a while. There are
several ways to adjust your project.
1. Create new project from an existing pom.xml file which seems to be not
working for you.
2. Cr
Thanks Jeppe. I wasn't realizing that since it has to be done on the server,
there's a chicken and egg problem with respect to getting it there
encrypted. I just wasn't thinking.
I will use a post.
On Wed, Aug 26, 2009 at 6:45 AM, Jeppe Nejsum Madsen wrote:
>
> jack writes:
>
> > Of course I co
Hi Dorinel,
I had the same problem with Intellj 8.1.3 on mac osx.
In my case even though i had the Maven plugin installed, it wasn't
configured yet for some reason it never ask me to configure it.
As it turns out, the Maven settings are project specific. Configure
them like this:
File -> Template
I've found the problem. I was running IDEA under root user (I needed
to debug an application on port allowed only to root some time ago,
and since then the start up script of idea was running under root
user) When I switched to normal user it was able to import pom.xml
file. Hope this help you to
Hi,
you are absolutely right.
I use mvn jetty:run in my development environment to test the
application.
Than I build a package with mvn package and copy it to the tomcat
webapp directory.
Thank you,
Yousry
On 26 Aug., 12:46, Jefken De Vleesetenden Boterham
wrote:
> Hi,
>
> I'm assuming you me
Hi,
another rtfm case.
Adding a CSSHelper to Boot.scala resolves the problem:
LiftRules.fixCSS("css" :: "kungleNext" :: Nil, Empty)
Thanks,
Yousry
On 26 Aug., 12:46, Jefken De Vleesetenden Boterham
wrote:
> Hi,
>
> I'm assuming you mean deploying under jetty and tomcat. I only know
> derby to
Tim,
sites to examples, certainly. For consistency lift-examples could be
better.
Some examples becoming archetype is great idea.
Cheers, Indrajit
On Aug 26, 2:59 pm, Timothy Perrett wrote:
> To clarify, only some of the examples will become archetypes... Not all.
>
> On 26/08/2009 10:39, "Tim
Hi, Ilya,
Thank you for quick answer.
Yesterday I've upgraded to 8.1.3 yesterday and had the same problem.
I'm running under ubuntu 8.10 and had to manually add mvn path to be
able to compile things with maven from idea, but the libraries are
still not in the project classpath, so the syntax highl
Hi,
I'm using POJT (plain old JDBC transactions :-) with a single db. I
would like to:
1) Manually rollback changes if some validations fail
2) Have the tx rolled back if an error happens
I think 1) can be achieved by DB.rollback(DefaultConnectionIdentifier),
but in general, how do I get the cu
renaming sites to examples would probably be more obvious for people.
So fine by me.
About archetypes thingy that's an interesting idea. I like it.
Br's,
Marius
On Aug 26, 12:39 pm, Timothy Perrett wrote:
> Chaps,
>
> Any objections to me renaming "sites" to examples?
>
> Moreover, I want to m
Hi,
I'm assuming you mean deploying under jetty and tomcat. I only know
derby to be a database.
How exactly do you deploy under jetty and tomcat?
Personally, I use jetty for testing and deploy with mvn jetty:run,
while I use tomcat on the test and production servers in which case I
just drop th
jack writes:
> Of course I could use a POST instead of a GET but my question was
> really about how to process a form value in a snippet, before the form
> is submitted. This way I can encrypt the password before it is sent in
> the body of the post, over the wire.
Snippets are server side code
To clarify, only some of the examples will become archetypes... Not all.
On 26/08/2009 10:39, "Timothy Perrett" wrote:
>
> Chaps,
>
> Any objections to me renaming "sites" to examples?
>
> Moreover, I want to move some of these so called "examples" to be
> archetypes as it strikes me that t
I have found generating IDEA project (*.ipr) and module (*.iml) files
with mvn idea:idea to be more consistent. It would take care of
downloading the required jars.
You can then proceed and open the project with IDEA. Newer versions
might ask if you want to move to new project format which you can
Hi,
I'm working with 1.1 snapshot (latest) and have the following problem
with a local css reference:
If I deploy my webapp under derby the resulting html output looks
fine:
The same application deployed under tomcat produces this buggy
reference:
My snippet defines the ling as follows:
Thank you David,
I found that I'm using lift-1.0.
After i changed to 1.1 snapshot, it works well now.
thanks
On Aug 26, 5:32 am, David Pollak
wrote:
> PreCache works as expected.
>
> Here's the data model:
>
> class RoomChoice extends LongKeyedMapper[RoomChoice] with IdPK {
> def getSingleton
Chaps,
Any objections to me renaming "sites" to examples?
Moreover, I want to move some of these so called "examples" to be
archetypes as it strikes me that they are better starting points than
anything else (e.g. HTTP Auth, PayPal etc)
Thoughts?
Cheers, Tim
--~--~-~--~~---
Hello.
Normally, there must be no problems, if you point to the existing pom.xml
file as a project file (File -> New Project etc.). All libraries should be
fetched form the repository automatically. What build of IDEA do you use?
Cheers,
Ilya
2009/8/26 Dorinel
>
> I've managed to create simple
Jack,
Read:
http://wiki.github.com/dpp/liftweb/how-to-binding-view-content-to-code
Cheers, Tim
On Aug 26, 8:57 am, Viktor Klang wrote:
> On Wed, Aug 26, 2009 at 5:42 AM, jack wrote:
>
> > I have a template with username and password fields. I want to submit
> > to another page where I will, a
I'll take a look and get back to you. A resource is eventually read
using container's provided API (from the ServletContext.getResourceXXX
functions). The container first locates a resource from WEB-INF/
classes folder and then it looks up in the jar files.
Br's,
Marius
On Aug 26, 8:39 am, Shane
Hi,
On Mon, Aug 17, 2009 at 9:18 AM, Mark Tye wrote:
...
> I don't know if compatibility with App Engine is a priority for the
> Lift team, but if this doesn't get fixed, I face an ugly choice
> between remaining frozen at 1.1-M4 as Lift development moves forward,
> or migrating away from App Eng
On Wed, Aug 26, 2009 at 5:42 AM, jack wrote:
>
> I have a template with username and password fields. I want to submit
> to another page where I will, among other things, encrypt the
> password. But I don't want to show the password in the querystring
> before I encrypt it.
>
> Where do I encrypt
I can confirm that your fix of the fix has fixed my issue (which means
I've grabbed the latest 1.1 snapshot and it's all good again)
Thank you
Richard
On Tue, Aug 25, 2009 at 9:55 PM, David
Pollak wrote:
> I think I've fixed my bone-headed attempt to fix another issue.
>
> On Tue, Aug 25, 2009 a
Hi,
I've been working through the book Exploring Lift. I'm trying to
override the CSS file for a CalendarMonthView widget without any
luck. The book says:
provide your own style.css file under the WEB-INF/classes/calendars/
monthview directory in your project
I have done this but the style do
I have a template with username and password fields. I want to submit
to another page where I will, among other things, encrypt the
password. But I don't want to show the password in the querystring
before I encrypt it.
Where do I encrypt it before lift puts it into the querystring?
--~--~-
Of course I could use a POST instead of a GET but my question was
really about how to process a form value in a snippet, before the form
is submitted. This way I can encrypt the password before it is sent in
the body of the post, over the wire.
I don't mean to suggest this is anything non-trivial
I've managed to create simple scala projects in Intellij IDEA, but
when I try to import an existing lift pom.xml file I fail.
It seems that all the libraries from pom.xml are not added to the
project and all the lift classes used in project are marked as syntax
errors.
Have anybody managed to add
On Tue, Aug 25, 2009 at 11:42 PM, mal3 wrote:
>
> I want to read data from multiple sockets (typically about three
> sockets) which can each send their data to a set of actors (also
> typically about three actors). Multiple actors is no problem. But how
> to handle varying numbers of sockets is n
70 matches
Mail list logo