I would love to help making how-to's for simple stuff i think every
webapp creator needs to start coding!
On Jul 13, 8:06 pm, Peter Robinett wrote:
> I think that would be nice, for instance pointing out to newcomers how
> many methods of common Lift objects can be overloaded.
>
> Speaking of
Naftoli Gugenhem writes:
> Not speaking for anyone else, but currently what I would like most is
> information on lift's internals.
Me too :-) Don't know how stable this information will be though.
But in the larger scheme where, I believe, the goal is to attract people
to using Lift, I think
On Mon, Jul 13, 2009 at 8:57 PM, Chris Lewis wrote:
>
> That'll get me started. User there however, must mixin MegaProtoUser
> instead of ProtoUser right (getting compilation errors)?
Yeah... you have to build your User from MegaProtoUser/MetaMegaProtoUser.
>
>
> I guess I'm interested in how/
That'll get me started. User there however, must mixin MegaProtoUser
instead of ProtoUser right (getting compilation errors)?
I guess I'm interested in how/when/where the checking happens, but that
suggests I need to have a source dive. I do need secured pages in the
SiteMenu (which I can have on
In Boot.scala, define your SiteMap as:
// Build SiteMap
val entries = Menu(Loc("Home", List("index"), "Home")) ::
Menu(Loc("Protected", List("protected"), "Protected", If(User.loggedIn_?
_, "You must be loggd in to view this page"))) ::
User.sitemap
Note the "If()" clause that te
Hello list,
I'm writing a lift app for a presentation Wednesday. It's a simple
little app that is all but done, missing only the ability to secure
pages. I've got a /really/ simple registration page (template with a
user name field, bound in a snippet that persists the User model).
What's missing
I think that would be nice, for instance pointing out to newcomers how
many methods of common Lift objects can be overloaded.
Speaking of fellow beginners, I would like to see authoritative How
Tos and recipes for common tasks such as requiring a user to be logged
in to access and page and making
Not speaking for anyone else, but currently what I would like most is
information on lift's internals.
-
Xavi Ramirez wrote:
Hello,
I've volunteered as a wiki gardener, and I'm looking for suggestions
on how to improve the liftwiki.
I personally feel that
Hello,
I've volunteered as a wiki gardener, and I'm looking for suggestions
on how to improve the liftwiki.
I personally feel that developing a comprehensive set of HowTo
articles (aka Cookbook receipts) is a worthwhile goal. This type of
format has been suggested several times on the mailing l
Hello.
I am using MathML to present some mathematical formulas in my page,
but in order to do some of the mathematical render, I need to add in
the top of the page this code:
http://www.w3.org/
TR/xhtml11/DTD/xhtml11.dtd">
http://www.w3.org/1999/xhtml"; xmlns:lift="http://
liftweb.net/" xml:lang
Thanks, David. Here is its class definition:
class Packet extends LongKeyedMapper[Packet] with IdPK {
def getSingleton = Packet
object node extends MappedLongForeignKey(this, Node)
object dt extends MappedDateTime(this)
object temp extends MappedDouble(this)
object mAh extends MappedDou
On Mon, Jul 13, 2009 at 5:12 PM, Peter Robinett wrote:
>
> Hello,
>
> I'd appreciate any tips on how to take POSTed data and use it to save
> a new object. Using previous threads here I've figured out how to do
> the basic request processing but my limited knowledge of Mapper and
> Scala's maps me
Hello,
I'd appreciate any tips on how to take POSTed data and use it to save
a new object. Using previous threads here I've figured out how to do
the basic request processing but my limited knowledge of Mapper and
Scala's maps mean that I'm not sure how exactly to save the data I
receive. I'm gue
On Mon, Jul 13, 2009 at 9:42 AM, Timothy Perrett wrote:
>
> Hey David,
>
> Yeah - before Marius replied, I was not aware the same method existed
> on LiftSession; my bad.
>
> Anywho... what are you thinking on Marius' suggestion about using
> localSetup in a comet actor? I think that should negate
On Mon, Jul 13, 2009 at 3:21 PM, Ross Mellgren wrote:
>
> Hi all,
>
> Is there any way to get a StatefulSnippet instance for a particular
> class in the current session? It looks like there's machinery in S,
> LiftRules, and LiftSession to get these but they're all marked
> private[http].
>
> I'm
Hi all,
Is there any way to get a StatefulSnippet instance for a particular
class in the current session? It looks like there's machinery in S,
LiftRules, and LiftSession to get these but they're all marked
private[http].
I'm still getting used to Lift, so I could very well be approaching
OK, on wip-dcb-unique-indices there's now a GenericIndex that should give
you full flexibility to do whatever you want for an index. I'll hold until
tomorrow to merge with trunk.
Derek
On Mon, Jul 13, 2009 at 9:26 AM, Derek Chen-Becker wrote:
> I'll add a UserIndex type that will let you specify
Thanks, David.
--~--~-~--~~~---~--~~
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 email to
liftweb+unsubscr...@googlegroup
On Mon, Jul 13, 2009 at 1:32 PM, Peter Robinett wrote:
>
> Thanks guys, I happened to be looking for this right now.
>
> For those looking to output single Boxed result from findAll, I think
> you would do something like this:
> JsonResponse(JsObj("results" -> Node.find(By(Content.id,
> yourIdQuer
Thanks guys, I happened to be looking for this right now.
For those looking to output single Boxed result from findAll, I think
you would do something like this:
JsonResponse(JsObj("results" -> Node.find(By(Content.id,
yourIdQuery)).openOr(Content).asJs))
The problem is that if the Content row i
Forgot the code:
Some needed import:
import _root_.scala.xml.{NodeSeq, Text, Group}
The xhtml:
File name:
MIME Type:
File length:
MD5 Hash:
Select a file to upload:
David Pollak writes:
[...]
> So, there needed to be a mechanism for flushing cached RequestVars that are
> dependent on SessionVars when the session identifier changes. Thus, the
> new trait that signals to the RequestVar mechanism that a RequestVar is
> dependent on a SessionVar and needs to
On Mon, Jul 13, 2009 at 11:42 AM, fbettag wrote:
>
> JsonResponse(JsObj("results" -> JsArray(Content.findAll.map{ o =>
> o.asJs } :_* )))
>
> this works.
>
Great!
>
> On Jul 13, 8:08 pm, fbettag wrote:
> > WebServices.scala:118: error: type mismatch;
> > found : net.liftweb.http.js.JsExp
>
JsonResponse(JsObj("results" -> JsArray(Content.findAll.map{ o =>
o.asJs } :_* )))
this works.
On Jul 13, 8:08 pm, fbettag wrote:
> WebServices.scala:118: error: type mismatch;
> found : net.liftweb.http.js.JsExp
> required: Iterable[net.liftweb.http.js.JsExp]
> JsObj("resul
Thanks, I've now taken the upload part of the code and integrated it
in to my learning project. I can now choose a file for upload, the
file is uploaded but not stored, after the upload is complete the page
displays the file details. Very good :-)
I'm planning to build a video training site. I wil
WebServices.scala:118: error: type mismatch;
found : net.liftweb.http.js.JsExp
required: Iterable[net.liftweb.http.js.JsExp]
JsObj("results" -> JsArray(Content.findAll.flatMap(_.asJs) :_*
))
^
one error found
On Mon, Jul 13, 2009 at 10:11 AM, fbettag wrote:
>
> i've read almost every topic about JsonResponse and i've played with
> it for the _whole_ day. I don't get it to work and it drives me more
> than nuts by now.
>
> I just want a simple list dumped to json:
>
>def listContents(): JsonRes
i've read almost every topic about JsonResponse and i've played with
it for the _whole_ day. I don't get it to work and it drives me more
than nuts by now.
I just want a simple list dumped to json:
def listContents(): JsonResponse = {
JsonResponse(JsObj("results" -> JsExp
On Sun, Jul 12, 2009 at 2:00 PM, Jeppe Nejsum Madsen wrote:
>
> On Fri, Jul 10, 2009 at 8:12 PM, David
> Pollak wrote:
> > Okay... I just checked in a change to Lift that allows RequestVars to be
> > reset once the session is known.
> >
> > Please do a build with the latest (if you're not building
Joe Wass wrote:
> Incidentally Tim, your apostrophe on "*wouldn't*" appears to be
> 1!
>
Needs more :s/MacRoman/UTF-8/g :)
-0xe1a
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this grou
Hey David,
Yeah - before Marius replied, I was not aware the same method existed
on LiftSession; my bad.
Anywho... what are you thinking on Marius' suggestion about using
localSetup in a comet actor? I think that should negate the issues
with the comet actor being placed on the page dynamically.
Tim,
I would avoid any and all globals. I'd strongly suggest finding a way to do
things with sessions.
There's no way to push an ad hoc CometActor to the browser. CometActors
must be on the page at full page-load time. They can be hidden and dormant,
but they must be on the page. I'd opt for
Hi there again,
Please keep discussions strictly on list - its the only way for everyone to
benefit from the conversation we have and interject where they feel they
want to. This means you get more input from more sources and doesn't mail
people directly (my personal preference).
If your interes
Hi there again,
Please keep discussions strictly on list - its the only way for
everyone to benefit from the conversation we have and interject where
they feel they want to. This means you get more input from more
sources and doesn't mail people directly (my personal preference).
If your interes
pushed
On Mon, Jul 13, 2009 at 8:17 AM, David Pollak wrote:
>
>
> On Mon, Jul 13, 2009 at 7:18 AM, Jeppe Nejsum Madsen wrote:
>
>>
>> Jeppe Nejsum Madsen writes:
>>
>> > Hi,
>> >
>> > Just figured out that while JsObj generates valid javascript
>> > expressions, it doesn't generate valid JSON o
Just curious since there are a lot of smart folks here:
Anybody using smartfrog for production deployments? Conceptually, it
seems great, but the documentation is quite limited.
If you feel like bending my ear off-list with any opinions, much
appreciated.
Thanks,
Eric
--
Eric Bowman
Boboco L
I'll add a UserIndex type that will let you specify the creation of the
index directly. Unique indices are generally supported across all DBs,
AFAIK, so it makes it more clear to have a specific type.
Derek
On Mon, Jul 13, 2009 at 7:40 AM, Calen Pennington <
calen.penning...@gmail.com> wrote:
>
On Mon, Jul 13, 2009 at 7:18 AM, Jeppe Nejsum Madsen wrote:
>
> Jeppe Nejsum Madsen writes:
>
> > Hi,
> >
> > Just figured out that while JsObj generates valid javascript
> > expressions, it doesn't generate valid JSON objects since it uses
> > single quotes instead of double quotes for strings.
Jeppe Nejsum Madsen writes:
> Hi,
>
> Just figured out that while JsObj generates valid javascript
> expressions, it doesn't generate valid JSON objects since it uses
> single quotes instead of double quotes for strings.
>
> Is there another way in Lift to generate JSON?
On a slightly related n
Hi,
Just figured out that while JsObj generates valid javascript
expressions, it doesn't generate valid JSON objects since it uses
single quotes instead of double quotes for strings.
Is there another way in Lift to generate JSON?
/Jeppe
--~--~-~--~~~---~--~~
Yo
Hey, I'm glad the code could make it in. One comment on your changes:
It seems to me that using the pattern matching in ensureIndexes puts
Lift in the position of maintaining support for various DBs, rather
than letting the client code do it in a project by project basis (for
instance, the FULLTEX
Hi there,
Generally speaking, that's now how uploading in lift works - any given
upload goes into a FileParamHolder object then you can persist it however
you would like (filesystem, database etc) as your essentially left with
Array[Byte]...
Does that help?
Cheers, Tim
On 13/07/2009 14:26, "k
Oh yeah :-| - thanks. The XML literal syntax is still a bit foreign.
When I just tried that I was getting:
ambiguous reference to overloaded definition
It was due to track.viewUrl being a mapper field - so
track.viewUrl.toString fixed it. Not a fan of the extra verbosity but
that way of creatin
I'm a newbie and I'm having troble with finding a hint in the Liftbook
on how to set the path for an upload folder in Lift. In the manual
there is an example using a variable called tmpDir. Problem is, there
is no explanation for what the value of this variable should be. Apart
from that, I've at
:) it is possible
bind("track", xhtml,
"name" -> Text(track.name),
"viewUrl" -> {track.viewUrl}
)
Br's,
Marius
On Jul 13, 2:28 pm, chrislewis wrote:
> It's a value known at runtime; iie queried from a database, so that's
> impossible. I
>
> On Jul 13, 2:28 am, "mari
It's a value known at runtime; iie queried from a database, so that's
impossible. I
On Jul 13, 2:28 am, "marius d." wrote:
> Just use your text here
>
> Br's,
> Marius
>
> On Jul 13, 1:26 am, chrislewis wrote:
>
> > Hello list,
>
> > I need to generate a link from a field in a database. SHtml.l
Thanks for the heads up!
What you could to is to set up an embedded repo in the Git project (that's
what I did with Cassidy (Thanks DavidB and TimP) )
http://groups.google.com/group/liftweb/browse_thread/thread/3e8820bcfeaf82f7/5f931e039f43627d?lnk=gst&q=embedded+repository&pli=1
On Mon, Jul 13,
Thanks. Good idea. I'll add this option.
On Jul 13, 11:15 am, Viktor Klang wrote:
> Instead of:
>
> class MyActor extends Actor {
> makeTransactionRequired …
>
> }
>
> woudn't it be clean to have:
>
> trait TxRequired
> {
> self : TransactionManagement =>
>
> makeTransaction
All jars are in the ./lib dir. Running the kernel from ./bin dir works
out of the box. Put apps in the ./deploy dir.
If you want I build it using maven you have install some missing libs
that are not in any public maven repo (and all these jars are in
lib). .
Easiest way is simply to download th
By the way, installing AKKA requires currently some hand-waving to add
dependencies that are not resolved:
com.facebook.fb303-1.0.jar
org.apache.cassandra:cassandra:jar:0.4.0-dev
Or is my Maven just b0rked?
On Mon, Jul 13, 2009 at 11:15 AM, Viktor Klang wrote:
> Instead of:
>
> class MyActor ex
Instead of:
class MyActor extends Actor {
makeTransactionRequired …
}
woudn't it be clean to have:
trait TxRequired
{
self : TransactionManagement =>
makeTransactionRequired
}
class MyActor extends Actor with TxRequired
{
}
On Mon, Jul 13, 2009 at 11:04 AM, Jonas
Hi.
On Jul 13, 9:51 am, Timothy Perrett wrote:
> From what I can see, its not just about concurrency, right? STM is probally
> used in conjunction with Cassandra...?
>
Right. Even though messages in the actor model are immutable the
actors are not. If they were they would be almost useless.
Th
>From what I can see, its not just about concurrency, right? STM is probally
used in conjunction with Cassandra...?
Cheers, Tim
On 13/07/2009 07:25, "marius d." wrote:
> I wonder why STM in a message passing concurrency model where things
> supposed to be immutable.
--~--~-~--~
Thanks guys - all very interesting.
Had an offline talk with marius and it seems that there was an effort
to standardize the api from the outset which subsequently didnt work
out...
Im happy to leave this for now as im not sure there is any tangible
benefit.
Cheers, Tim
On Jul 12, 4:23 pm, "ma
54 matches
Mail list logo