Hi all,
How to Embed the flash dynamic in Snippet in the Lift?
I use the swfobject to embed my flash and want to specify the
flashVar dynamic, but this is doesn't work!
Here is the code in the Snippet:
The flashSrc can shown correctly in the index page, but the
falshvar doesn't work!
Right, I agree that named arguments would be preferable but thats a 2.8 feature
and the current idiom implemented by other HttpResponse classes is to have
overloaded apply methods - hence the suggestion :)
If its functionality that you want right now, then sure, go for the apply route
-
Neil,
Try this:
import net.liftweb.http.js._
import net.liftweb.http.js.JE._
import net.liftweb.http.js.JsCmds._
val script = swfobject.embedSWF(' + flashSrc + ','myContent', '300',
'120', '9.0.0', 'expressInstall.swf', ' + flashVar + ');
def whatever(xhtml: NodeSeq): NodeSeq =
Hello guys,
I have the following scala code line:
XML.load(new java.io.InputStreamReader(conn.getInputStream, UTF-8))
I am downloading and parsing RSS feeds. This line parses most of the sites
without problems but some sites give the following error:
Content is not allowed in prolog
Any
Sorry I've sent this email to the wrong list.
On Nov 12, 2009, at 12:24 PM, GA wrote:
Hello guys,
I have the following scala code line:
XML.load(new java.io.InputStreamReader(conn.getInputStream, UTF-8))
I am downloading and parsing RSS feeds. This line parses most of the sites
Tim,
Here is the html code when i use the code in my Snippet, but it
doesn't work.
### Code in the Snippet ###
var flashSrc = /flash/test.swf
var flashVar = {name1=helloname2=worldname3=foobar}
val script = swfobject.embedSWF(' + flashSrc + ', 'myContent',
'300', '120', '9.0.0',
Hey Ferdinand,
Here are a couple of examples:
import _root_.net.liftweb.common._
val boxExample: Box[Int] = Int = {
case Full(x) = x
case Empty = 0
}
def boxExample2(boxedInt: Box[Int]): Int = {
boxedInt.map({i =
i
}) openOr 0
}
On Nov 12, 12:28 am, Naftoli
I published this tip on my blog (http://extremejava.tpk.com.br/
2009/11/12/customizing-liftwebs-errorwarningnotice-messages/), but,
I'll put here as a quick reference for other liftweb users: just
create a snippet named msgs. It can be like this one:
package mypkg.snippet
class Msgs {
def
Hi all,
this may be somewhat outdated but I spent some time to figure out how
to specify different properties with java-properties files:
The doc at http://scala-tools.org/scaladocs/liftweb/1.0/ says, that
the filename should be somewhat of this:
modeName.hostName.userName.filename.extension
Its a string because you havent properly escapped it... note that the code i
sent used the CONTENT markers, thus you need to escape them properly.
Cheers, Tim
On 12 Nov 2009, at 12:02, Neil.Lv wrote:
Why the flashSrc is a string in the Script ? Maybe it should be /
flash/test.swf ?
David,
Thanks for the blog entry and it does a great job in explaining how
Option works and how to use it.
May I suggest that we add a link to this blog post on Lift Wiki???
Correct me if I'm wrong but I think most newbie to Scala / Lift may
wonder and puzzle how Box / Option works.
I know
Opyate,
Thanks for the example. But my scala knowledge seems not good enough
to understand it.
Will try to re-read it couple of times and try to understand it
Cheers,
Ferdinand
On Nov 12, 8:06 pm, opyate opy...@gmail.com wrote:
Hey Ferdinand,
Here are a couple of examples:
import
On Thu, Nov 12, 2009 at 3:44 AM, Eduardo Costa eduardo.m.co...@gmail.comwrote:
I published this tip on my blog (http://extremejava.tpk.com.br/
Tim,
It can be shown correctly now!
It's so cool and easy to use.
Thank you very much !
Cheers,
Neil
On Nov 12, 9:08 pm, Timothy Perrett timo...@getintheloop.eu wrote:
Its a string because you havent properly escapped it... note that the code i
sent used the CONTENT markers,
Should I make these changes for the ScalaJPA project as well? Do we need to
notify all of the people who are hosting projects on scala-tools.org, or is
everyone pretty much on this list?
Derek
On Fri, Nov 6, 2009 at 11:23 AM, Josh Suereth joshua.suer...@gmail.comwrote:
Great, Thanks!
On
On Thu, Nov 12, 2009 at 7:58 AM, Derek Chen-Becker dchenbec...@gmail.comwrote:
Should I make these changes for the ScalaJPA project as well?
Yes.
Do we need to notify all of the people who are hosting projects on
scala-tools.org, or is everyone pretty much on this list?
I think Josh has
There is a related issue that if implemented, would certainly make the
Mapper framework more robust - that of marking table rows for
deletion,
rather than deleting them directly. Some RDBMS's have a built-in
marking
function, and another function that actually removes rows that have
been
so
Naftoli,
Isn't this really a cascading delete issue and not one isolated to
ManyToMany situations? Most ORM solutions allow for cascading deletes.
Such a feature could be added to the Mapper class, itself, and hold a
list of foreign key assignments that the delete function could iterate
over, if
I guess it's about two separate things: cascading delete, as you said; and that
it should silently skip dead-end joins rather than throwing an error. Note that
I'm not aware of an issue with OneToMany cascading deletes (although in order
to tell it to, you have to mix in Cascade).
What we have
Interesting. Did you see mapper.view.ItemsList?
-
glenngl...@exmbly.com wrote:
There is a related issue that if implemented, would certainly make the
Mapper framework more robust - that of marking table rows for
deletion,
rather than deleting them directly.
Hello guys,
I'm on the process of choosing a web framework for one of my (scala 2.8)
project. I know Tapestry 5, but as we are likely to have a lot of AJAX
to deal with, and T5 is not the best tool for that. I looked at gwt, but
I'm not sure I like what I'm seeing.
So, Lift could be a great
DPP has a local branch running a crippled version of lift that builds with 2.8
Is there any reason you could not work with 2.7.7 for your dev - it would get
you most of the way there until 2.8 is released.
Cheers, Tim
On 12 Nov 2009, at 18:37, Francois Armand wrote:
Hello guys,
I'm on
I am having some issues deploying my Lift web application to a tomcat
server.
When I run tomcat through maven (mvn tomcat:run), the web application
works properly and connects to my postgres database. However, when I
use mvn package to create a war file which I then deploy to a local
tomcat
On Thu, Nov 12, 2009 at 10:37 AM, Francois Armand fan...@gmail.com wrote:
Hello guys,
I'm on the process of choosing a web framework for one of my (scala 2.8)
project. I know Tapestry 5, but as we are likely to have a lot of AJAX
to deal with, and T5 is not the best tool for that. I looked
You feel this confident about Scala 2.8 release by Jan?
I'm curious because Scala 2.8 schedule seem to be
a fairly moving target.
On Thu, Nov 12, 2009 at 2:13 PM, David Pollak
feeder.of.the.be...@gmail.com wrote:
We are *very* serious and *VERY* (lots of emphasis) committed to Scala 2.8.
I'm
Its been a moving target since June ;-) Its gotta stop sometime, right?
Cheers, Tim
On 12 Nov 2009, at 19:16, Wilson MacGyver wrote:
You feel this confident about Scala 2.8 release by Jan?
I'm curious because Scala 2.8 schedule seem to be
a fairly moving target.
On Thu, Nov 12, 2009
Have you got any conflicting jars in TOMCAT_HOME/lib ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send
What version of Lift are you using?
If it's Lift 1.1-M7 or 1.1-SNAPSHOT, please make sure you've got the Scala
version set to 2.7.7
If you're using Eclipse for development, please make sure to do a mvn *clean
* package to build your WAR file. The clean phase is super important.
On Thu, Nov 12,
On Thu, Nov 12, 2009 at 11:16 AM, Wilson MacGyver wmacgy...@gmail.comwrote:
You feel this confident about Scala 2.8 release by Jan?
Maybe Scala 2.8 gets pushed back a little and we push Lift 1.1 back a
little.
If Scala 2.8 beta (which is coming very soon) is a complete disaster (I give
this
I don't appear to have any conflicting jars in my TOMCAT_HOME/common/
lib folder, however, I am now realizing that I have a postgres
jdbc3 .jar file in there and I am using a jdbc4 .jar postres file in
my webapp. Perhaps that is the problem? I'll check that out.
I am using Lift 1.0.1 with
Hi David,
I wrote you a message about the CometActor received shutdown thing.
I'm almost sure, that this is related to M7, but I've no idea, why or what.
kind regards
Tobias
Folks,
There are two critical issues with M7:
* Issue 164 http://github.com/dpp/liftweb/issues#issue/164
On Thu, Nov 12, 2009 at 11:36 AM, DavidV david.v.villa...@gmail.com wrote:
I don't appear to have any conflicting jars in my TOMCAT_HOME/common/
lib folder, however, I am now realizing that I have a postgres
jdbc3 .jar file in there and I am using a jdbc4 .jar postres file in
my webapp.
I'm importing HttpHelpers, and the implicit is not there.
Did this change for M7?
On Mon, Nov 9, 2009 at 6:41 PM, Ross Mellgren dri...@gmail.com wrote:
Use None (Option) or Empty (Box) as the value of the attribute -- this
will cause the pairToUnprefixed implicit that is being used inside
I would like to see an integrated dumbster test. You can pick an arbitrary
port to run the test on just by attempting to bind and iterating until you
succeed. Something (roughly) like this:
def openSmtpServer (startPort : Int, endPort : Int) : (Int,SimpleSmtpServer)
= {
var port = startPort
On a side note, while I'm installing Lift 1.0.2 with Scala2.7.5, I
always execute a clean command before the mvn package. However, I
also need to execute a clean in eclipse before the mvn package works
properly. Otherwise, I get this error:
David Pollak a écrit :
I'm going to get the in earnest Lift - 2.8 port rolling tomorrow.
Hopefully, I'll have a branch that tracks the current Lift code running
by mid next week.
That's so a great new :)
We are *very* serious and *VERY* (lots of emphasis) committed to Scala
2.8. I'm
Wilson MacGyver a écrit :
You feel this confident about Scala 2.8 release by Jan?
I'm curious because Scala 2.8 schedule seem to be
a fairly moving target.
My finger is telling me that we are going to see a release candidate
for the release candidate hummm tomorrow ;)
--
Francois Armand
I just tried to run the same code that used to work with Lift-1.0.1
and Scala 2.7.5 with my updates to Lift 1.0.1 and Scala 2.7.7 and I
got the following error:
[INFO] [tomcat:run {execution: default-cli}]
[INFO] Running war on http://localhost:8080/portal
[INFO] Creating Tomcat server
I'm not trying to change the subject but I was wondering if you looked
at Databinder Dispatch http://databinder.net/dispatch/About for your
url calls?
On Nov 12, 3:26 pm, Jack Widman jack.wid...@gmail.com wrote:
David,
I have attached my code. It runs but does not behave as I intended it to.
I did and its actually in the code I attached. In one place I use Dispatch
and in another place I use httpclient directly. I intend to use Dispatch for
everything.
On Thu, Nov 12, 2009 at 4:05 PM, Randinn rand...@gmail.com wrote:
I'm not trying to change the subject but I was wondering if you
Another potentially helpful detail is that I get the same liftFilter
error when running on a local jetty server through maven as I do when
running on tomcat (also through maven). I am executing a clean
command before running the web app each and every time.
...
2009-11-12 16:10:05.833::WARN:
On Thu, Nov 12, 2009 at 11:37 AM, Hannes hannes.flo...@gmx.li wrote:
Hi David,
I wrote you a message about the CometActor received shutdown thing. I'm
almost sure, that this is related to M7, but I've no idea, why or what.
Did you read my response? This message is normal and expected.
Have you ever used Dumbster?
On Thu, Nov 12, 2009 at 2:59 PM, Derek Chen-Becker dchenbec...@gmail.comwrote:
I would like to see an integrated dumbster test. You can pick an arbitrary
port to run the test on just by attempting to bind and iterating until you
succeed. Something (roughly) like
What's the advantage/purpose over they method I chose?
On Thu, Nov 12, 2009 at 4:36 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:
Have you ever used Dumbster?
On Thu, Nov 12, 2009 at 2:59 PM, Derek Chen-Becker
dchenbec...@gmail.comwrote:
I would like to see an integrated dumbster
On Wed, Nov 11, 2009 at 3:40 PM, Jim McBeath goo...@j.jimmc.org wrote:
OracleDriver doesn't work with CRUDify when attempting to view a
list of entries, it gets an SQL error due to use of LIMIT/OFFSET,
which Oracle does not support. Defining brokenLimit_? = true
in OracleDriver makes it
On Thu, Nov 12, 2009 at 11:49 AM, Jim Barrows jim.barr...@gmail.com wrote:
I'm importing HttpHelpers, and the implicit is not there.
Did this change for M7?
I think what you want is:
firstName - (SHtml.text(person.firstName, person.firstName = _) % (id
- firstName) % (disabled -
Scala is very, very, super ultra mega version fragile. This means that code
compiled with 2.7.5 will not work with code compiled with 2.7.7 and vice
versa.
So, in your pom.xml file, please set your scala version to 2.7.5 (nothing
else... not 2.7.4, not 2.7.7) and lift to 1.0.2
Then mvn clean
Will do. One more small question How do I send a message to the Comet Actor
from another class? Can the CometActor be an object instead of a class? In
the code
X ! messageToCometActor, what is X? I don't have a variable that holds the
instance of the CometActor.
On Thu, Nov 12, 2009 at 5:12
On Thu, Nov 12, 2009 at 2:16 PM, Jack Widman jack.wid...@gmail.com wrote:
Will do. One more small question How do I send a message to the Comet Actor
from another class? Can the CometActor be an object instead of a class? In
the code
Lift instantiates a new CometActor each time it needs one.
Thanks.
On Thu, Nov 12, 2009 at 5:32 PM, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Thu, Nov 12, 2009 at 2:16 PM, Jack Widman jack.wid...@gmail.comwrote:
Will do. One more small question How do I send a message to the Comet
Actor from another class? Can the CometActor be an
On Thu, Nov 12, 2009 at 2:25 PM, Jack Widman jack.wid...@gmail.com wrote:
Is it that I am putting things on a Queue from within an the Calculator
Actor and having the CometActor retrieve them from the Queue? Is that the
problem? I will read up on actors but it would help if you could tell me
Can one of our resident Maven experts quickly look at:
http://github.com/dpp/liftweb/issues/#issue/166
I took a brief look at the poms but couldn't figure why Maven was including
classes from lift-common and lift-actor into lift-webkit. It is a feature
of the maven-bundle-plugin?
I can take
got it. I was mixing metaphors.
On Thu, Nov 12, 2009 at 5:41 PM, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Thu, Nov 12, 2009 at 2:25 PM, Jack Widman jack.wid...@gmail.comwrote:
Is it that I am putting things on a Queue from within an the Calculator
Actor and having the
On Thu, Nov 12, 2009 at 3:57 AM, Cornelius d...@corcor.de wrote:
Hi all,
this may be somewhat outdated but I spent some time to figure out how
to specify different properties with java-properties files:
The doc at http://scala-tools.org/scaladocs/liftweb/1.0/ says, that
the filename
Could you open a ticket for it?
On Wed, Nov 11, 2009 at 11:53 AM, jon jonhoff...@gmail.com wrote:
Hi,
I'm currently adding a uniqueness requirement to a field, but there
are duplicate entries (for empty string) in my database already.
Currently valUnique maps each match it found to a
the issue is the new debugging help screen in dev mode got in the way of the
passing not found... so...
package services
import net.liftweb.http._
import net.liftweb.mapper._
import net.liftweb.util._
import java.sql.{Connection, DriverManager}
class Boot extends Bootable {
def boot {
Hi, thank you very much for your help so far I really appreciate it.
Apologies in advance if this thread has become inappropriate since it's not
directly related to Lift. Just let me know if that's the case and I will
attempt to solve this problem another way. But, I'm hoping you can help me
Hi, all (Derek! :),
Have there been significant changes in how transactions are handled by
lift-jpa since M6? Due to the rearrangement of the repository, I'm
having a hard time figuring out if the code has changed.
I have a repeatable issue that shows up when changing between M6 and
SNAPSHOT
Kris,
There was a bunch of changes in the net.liftweb.mapper.DB code for
transaction management, but I don't think that would impact JPA.
Also, in M7, there were changes in how RequestVars are handled during Ajax
requests... basically, state is snapshotted when the Ajax request is created
and
This is getting off-topic but...
I think the issue is that there's a single connection or a single thread
accessing MongoDB. I'd suggest trying a connection pool to MongoDB or to
otherwise see why the MongoDB stuff is not getting parallelized.
Also, Scala Actors do a lot of fancy stuff in
Hello David,
I have added some DB stuff + added S.addAround(DB.buildLoanWrapper)
But the code produces separate transactions.
For example, this code:
=
class Service {
def say(message: String) {
println(message)
(0 to 5).foreach( i =
When I try to save a record in my table from the Create form built by
CRUDify, I am getting a Trying to open an empty Box exception from
within MetaMapper.scala, line 617 (in 1.1M7), which is this line:
findApplier(indexMap.open_!, rs.getObject(1)) match {
It appears that indexMap is
Thanks David, I will give Lift Actors a try. Mongodb is supposedly
using a connection pool behind the scenes so it isn't supposed to
matter whether I create 1 or many connection objects, but I will check
the source as I'm not 100% sure.
Thanks,
Lincoln
On Thu, Nov 12, 2009 at 8:05 PM, David
If you can create a reproducible case, we're look into it.
On Thu, Nov 12, 2009 at 5:43 PM, Jim McBeath goo...@j.jimmc.org wrote:
When I try to save a record in my table from the Create form built by
CRUDify, I am getting a Trying to open an empty Box exception from
within MetaMapper.scala,
http://github.com/dpp/liftweb/issues/#issue/179
On Nov 12, 6:16 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
Could you open a ticket for it?
On Wed, Nov 11, 2009 at 11:53 AM, jon jonhoff...@gmail.com wrote:
Hi,
I'm currently adding a uniqueness requirement to a field, but there
http://reviewboard.liftweb.net/r/101/
http://reviewboard.liftweb.net/r/101/From my the end of my description:
Please advise me as to what testing is appropriate.
Also, when it finds broken joins should it log them?
On Thu, Nov 12, 2009 at 9:28 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:
It is in net.liftweb.http.
http://www.scala-tools.org/mvnsites-snapshots/liftweb/lift-webkit/scaladocs/net/liftweb/http/CometListener.html
By the way, the link you gave only indicates it's in either
net.liftweb.http, net.liftweb.util, net.liftweb or model (or a couple
other packages, since
I am trying to use CometListener. According to http://bit.ly/1Wnxt4 ,
it is in the package net.liftweb._ but compiler says it can't be
found. Is this the wrong package?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
I also tried net.liftweb.http
On Nov 12, 11:35 pm, jack jack.wid...@gmail.com wrote:
I am trying to use CometListener. According tohttp://bit.ly/1Wnxt4,
it is in the package net.liftweb._ but compiler says it can't be
found. Is this the wrong package?
C:\work\widman\src\main\scala\com\widman\comet\PackComet.scala:20: error:
type CometListener is not a member of package net.liftweb.http
I got this compile error.
I must be missing something obvious.
On Thu, Nov 12, 2009 at 11:42 PM, Ross Mellgren dri...@gmail.com wrote:
It is in
Oshyshki,
Your call to Service.say is outside the scope of the Lift HTTP request, so
it's not wrapped with the transaction management stuff. You could insert:
DB.use(DefaultConnectionIdentifier) {
ignore =
On Thu, Nov 12, 2009 at 5:16 PM, oshyshko oshys...@gmail.com wrote:
Hello David,
Oshyshki,
Your call to Service.say is outside the scope of the Lift HTTP request, so
it's not wrapped with the transaction management stuff. You could insert:
DB.use(
DefaultConnectionIdentifier) {
ignore =
(0 to 5).foreach(i = User.findAll)
}
Inside your say method and all of the requests
On Thu, Nov 12, 2009 at 8:54 PM, Jack Widman jack.wid...@gmail.com wrote:
C:\work\widman\src\main\scala\com\widman\comet\PackComet.scala:20: error:
type CometListener is not a member of package net.liftweb.http
I got this compile error.
I must be missing something obvious.
It's part of
I'm using lift version 1.1-M6. Which version of scala do I need? In
general, how do I know which version of Scala to use?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send email
Lift 1.1-M6 - Scala 2.7.5
Lift 1.1-M7 SNAPSHOT - Scala 2.7.7
On Thu, Nov 12, 2009 at 9:01 PM, jack jack.wid...@gmail.com wrote:
I'm using lift version 1.1-M6. Which version of scala do I need? In
general, how do I know which version of Scala to use?
--
Lift, the simply functional web
Assuming I prune it down to an example that requires only a few
files, which would probably include an SQL script for creating a test
database that has the appropriate schema in it, is there a procedure
for submitting such a test case? Should I just post source code
to this group? Make a jar
David,
I'm using lift 1.1 and scala 2.5 now and the compiler says it cant find
CometListener when I import net.liftweb.http._
Jack
On Fri, Nov 13, 2009 at 12:01 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:
On Thu, Nov 12, 2009 at 8:54 PM, Jack Widman jack.wid...@gmail.comwrote:
I am trying to clone git lift repo and keep getting this error:
git clone http://github.com/dpp/liftweb.git
Initialized empty Git repository in /home/ivan/Dokumenti/Projects/
scala/lift/liftweb/.git/
got 38024d4c9cdf764c6d5c8350c78a64ff233b7f05
walk 38024d4c9cdf764c6d5c8350c78a64ff233b7f05
maven-bundle-plugin? Well, that's my business, I guess. I will take a look
...
Heiko
2009/11/12 Alex Boisvert alex.boisv...@gmail.com
Can one of our resident Maven experts quickly look at:
http://github.com/dpp/liftweb/issues/#issue/166
I took a brief look at the poms but couldn't figure
OK, I spotted the problem and will work on the issue ...
Heiko
2009/11/13 Heiko Seeberger heiko.seeber...@googlemail.com
maven-bundle-plugin? Well, that's my business, I guess. I will take a look
...
Heiko
2009/11/12 Alex Boisvert alex.boisv...@gmail.com
Can one of our resident Maven
80 matches
Mail list logo