Hi Lifters,
How would you feel about renaming .scala files to match the main class/trait
in them?
Let me give you a few examples,
lift/src/main/scala/net/liftweb/http/auth/Authentication.scala
currently holds a trait named HttpAuthentication.
I'd like to rename it HttpAuthentication.scala
State is maintained on the app server, not pawned
off to some other place. This leads to better scalability characteristics.
The developer deals with higher level abstractions than dissecting the HTTP
request and reconstituting state.
I have just seen to many Sorry your session expired and
I fetched the JPA Archetype, maven installed it, cd'd to web, did a
mvn jetty:run and got this error in firefox. So in got into Netbeans
and did the same thing, I know I did something wrong, just what.
XML Parsing Error: junk after document element
Location: http://localhost:9090/
Line Number
I agree that this is a nasty behavior. One could say that it's the
user's responsibility to keep track of their session time, but I don't
subscribe to that. I try to make my sites as user friendly as possible.
Try telling anyone in marketing, user experience, or anyone not in
tech that it's
I'm not sure that this is of any help or even applies to lift, but we
had once a very similar situation with a corporate application.
Difference was that the problem occurred when you were working slower.
Here's the description of the problem and what the reason was. When we
ran our application
Are there any plans for some tutorials/info for people that have no
programming experience (at least none in the last decade)?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send
I've wanted to try a solid-state disk for a while. All but the
cheapest systems you can buy these days are Core 2 Duo with 2+ GB of
decently fast RAM (i.e. you can get a decent dual-core laptop with 2
GB of RAM that will run Ubuntu like a champ for ~$500). It seems like
the real way to boost
David, you're right that needing to surround the element text of a
with span is a unique case and should be a custom snippet. I've
removed the span now and think that Derek's addition of always would
be just what I need. Adding group=foo to Menu.builder would suffice
as well.
Thanks for the
Derek,
What OS are you running? The old numbers are worse than my HP 2133 Netbook
which clocks in at 15 minutes for a full Lift build.
Thanks,
David
On Tue, Mar 24, 2009 at 7:42 PM, Derek Chen-Becker dchenbec...@gmail.comwrote:
I just wanted to throw this out there in case anyone else is
On Tue, Mar 24, 2009 at 5:38 PM, Alex a...@liivid.com wrote:
With Lift
1) Form submits: B2345235DSFGA = Long agonizing post
2) Function mapping has been cleared. Application panics and has no
idea what that junk was.
1. This is an empirically wrong statement. Test it out.
2. A
On Tue, Mar 24, 2009 at 11:04 PM, Alex Boisvert boisv...@intalio.comwrote:
Hi Lifters,
How would you feel about renaming .scala files to match the main
class/trait in them?
Let me give you a few examples,
lift/src/main/scala/net/liftweb/http/auth/Authentication.scala
currently holds a
On Tue, Mar 24, 2009 at 9:35 PM, Randinn rand...@gmail.com wrote:
Are there any plans for some tutorials/info for people that have no
programming experience (at least none in the last decade)?
Sorry. Lift requires basic knowledge of Scala as well as some ability to do
stuff at the command
thanks!
--~--~-~--~~~---~--~~
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...@googlegroups.com
Wow! Great write-up. I think this has applicability in a number of my
other projects. :-)
On Tue, Mar 24, 2009 at 8:53 PM, Daniel Mueller
dan.in.a.bot...@gmail.comwrote:
I'm not sure that this is of any help or even applies to lift, but we
had once a very similar situation with a corporate
So, in my experience and to my mind, the tenet of minimizing server-side
state is broken and wrong. State should placed where it is (1) most secure
and (2) leads to the most responsive apps.
Not know much about lift yet and wanting to learn more, what is stored in
the server session for a
On Wed, Mar 25, 2009 at 6:15 AM, Chad Skinner chadwskin...@gmail.comwrote:
So, in my experience and to my mind, the tenet of minimizing server-side
state is broken and wrong. State should placed where it is (1) most secure
and (2) leads to the most responsive apps.
Not know much about lift
Ubuntu 8.10 x64. Java is
java version 1.6.0_12
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) 64-Bit Server VM (build 11.2-b01, mixed mode)
Here's AMD's rundown of the difference between the CPUs:
http://products.amd.com/en-us/DesktopCPUSideBySide.aspx?id=522id=59
Note
Oh, here's a reactor summary for the build, too:
[INFO]
[INFO]
[INFO] Reactor Summary:
[INFO]
[INFO] Lift
I have been reading about Lift Authentication and the Authentication
mechanism in OSGi and have a couple of questions and possibly feature
requests.
Is it possible to inspect a request to perform authentication before sending
the 401 if a user is not authenticated?
We use an authentication server
Same here; I like the convenience of placing various related classes in the
same file.
alex
2009/3/25 Derek Chen-Becker dchenbec...@gmail.com
I think that it's a good idea. I actually like the Java convention of
naming the source file after the main class for the reason you mention
Please don't shoot me for bringing this up again. I still don't think
the current behavior of Menu.item makes sense. If the user doesn't
want that link to appear on the page, then they shouldn't include
lift:Menu.item name=foo1 / in its source. Most people put text
around their link:
So, are the sessions replicated or do you lose active connections if a node
goes down?
I agree I don't have a problem with server session state ... the only
problem I have is we originally used JSF for a number of our applications
and I hate the reliance on POST in order to submit the serialized
Chad,
We have HTTP Basic Auth and HTTP Digest Auth support in Lift. The
authentication is implemented as a partial function that you implement
like so:
LiftRules.httpAuthProtectedResource.prepend {
case (ParsePath(api :: _, _, _, _)) = Full(AuthRole(admin))
}
Hmm - Im a little skeptical. One of the nice things about Scala is
that you don't need one source file per class... that really bugs me
about Java.
Can you be suscint about what stuff your splitting. Right now the
codebase in lift feels workable. I wouldnt want to see it split out
into a jillion
Further to that example, no doubt someone will laugh at me for using
database access on each request... However this is just an example! In
reality I actually read from an LRU cache to save the database access.
Cheers, Tim
On 25/03/2009 15:08, Timothy Perrett timo...@getintheloop.eu wrote:
Tim, I think you misunderstood the proposal. There's going to be the same
number of source files overall. They will just be named according to the
main (as in most significant) class they contain.
2009/3/25 Timothy Perrett timo...@getintheloop.eu
Hmm - Im a little skeptical. One of the
Ah ok I see this - so your not doing any splitting? just re-naming?
What rational would you apply to decide on most significant class /
object?
Im not trying to be difficult or anything, id just like to fully
understand what you want to chage and how that could happen.
Cheers, Tim
On Mar 25,
2009/3/25 Timothy Perrett timo...@getintheloop.eu
Ah ok I see this - so your not doing any splitting? just re-naming?
What rational would you apply to decide on most significant class /
object?
Yes, just renaming.
Right now, I'd say I'm picking the class that most closely matches the
On Wed, Mar 25, 2009 at 7:11 AM, Derek Chen-Becker dchenbec...@gmail.comwrote:
Yeah, the iostat indicates very little disk activity, and since my machine
is running servers for web, email and VPN what I'm seeing could be entirely
unrelated to the build. As a comparison, my laptop (Dell
On Wed, Mar 25, 2009 at 7:38 AM, Chad Skinner chadwskin...@gmail.comwrote:
So, are the sessions replicated or do you lose active connections if a node
goes down?
Yes. And your app goes down if the RDBMS goes down.
I agree I don't have a problem with server session state ... the only
That is indeed a fair point! The current rational for naming is probably
something along the lines of that's what felt right rather than anything
more logical :(
Ok, what your proposing sounds cool to me. Provided it doesn't change any
FCQN then were good to go.
Cheers, Tim
On 25/03/2009
All of our applications are currently using form based authentication in the
EJB container .. am I correct that this (Form based authentication) is not
supported in Lift?
As I see it, After checking the users cookie against the Authentication
server I would want to cache the returned User object
On Wed, Mar 25, 2009 at 8:56 AM, Chad Skinner chadwskin...@gmail.comwrote:
All of our applications are currently using form based authentication in
the EJB container .. am I correct that this (Form based authentication) is
not supported in Lift?
You are incorrect. Form-based authentication
Ohh... Right my apologies. I saw the post with Tyler and presumed you
specifically wanted to know about HTTP auth. My bad!
You can do form-based authentication just perfectly in lift... Its no
problem at all.
Thanks, Tim
On 25/03/2009 16:00, David Pollak feeder.of.the.be...@gmail.com
On Mar 25, 6:00 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Wed, Mar 25, 2009 at 8:56 AM, Chad Skinner chadwskin...@gmail.comwrote:
All of our applications are currently using form based authentication in
the EJB container .. am I correct that this (Form based authentication)
Also, what command are you running to constitute a ³build²? I usually run:
mvn clean package install scala:doc
What are you guys running as im interested in the comparison.
Cheers, Tim
On 25/03/2009 12:38, David Pollak feeder.of.the.be...@gmail.com wrote:
Derek,
What OS are you running?
You're talking about JAAS, right? I think that the term form-based
authentication is a bit ambiguous. For those that aren't familiar, the EJB
server can use an application-provided form and authtentication callback to
go against an existing JAAS auth module.
Derek
On Wed, Mar 25, 2009 at 10:56
I'm just running mvn clean install. I'll try your command and see what it
does. I'm not a maven expert, but isn't package a subset of install
anyway?
Derek
On Wed, Mar 25, 2009 at 11:22 AM, Timothy Perrett
timo...@getintheloop.euwrote:
Also, what command are you running to constitute a
Ohh... Right my apologies. I saw the post with Tyler and presumed you
specifically wanted to know about HTTP auth. My bad!
You can do form-based authentication just perfectly in lift... Its no
problem at all.
No apologies required at all. I am reading a lot and am trying to wrap my
head
Hello, all.
I happy to announce, that last version of Scala plugin IntelliJ IDEA (
http://plugins.intellij.net/plugin/?id=1347) provides possibility to run and
debug easily lift applications.
To import an existing lift application into IDEA just choose Import project
from existing model when
Yes, on an ejb server you configure the authentication realm and then submit
a form to a location that is handled by the container, i.e.
form action=j_security_check method=POST
input type=text name=j_username
input type=password name=j_password
input type=submit /
/form
On Wed, Mar
Very cool. And it looks like a new version of the Scala plugin for
IDEA was released today as well. Huzzah!
On Wed, Mar 25, 2009 at 9:18 AM, Ilya Sergey ilyas...@gmail.com wrote:
I happy to announce, that last version of Scala plugin IntelliJ IDEA
(http://plugins.intellij.net/plugin/?id=1347)
Running mvn -o clean install, I get:
27:04 on my old desktop (1Ghz Sempron 3100, 2gb, software raid 1)
6:59 on my new laptop (Core2 Duo CPU 9550 2.66Ghz, 4gb, software raid 1)
4:41 on my new desktop (3Ghz Core2 Quad 9650, 8gb, hardware raid 10)
(I ran mvn clean install first to make sure I had
mvn -o clean install gets me:
6min 33sec on my Mac Book Pro 2.4 Core 2 Duo
5min 59sec on my Mac Pro 2x 2.66 Dual-Core Xenon
On Mar 25, 5:05 pm, Lee Mighdoll leemighd...@gmail.com wrote:
Running mvn -o clean install, I get:
27:04 on my old desktop (1Ghz Sempron 3100, 2gb, software raid 1)
On Mar 25, 3:46 pm, Chad Skinner chadwskin...@gmail.com wrote:
Not know much about lift yet and wanting to learn more, what is stored in
the server session for a simple application? I am assuming it is used by
the
binder to store the generated form field names so the submitted fields
Nice. I ran the command line that you specified and the run is closer to 10
minutes. That would indicate that scaladoc generation is on the order of 3
minutes, although I'm not 100% positive there because of the inclusion of
both package and install targets.
Derek
On Wed, Mar 25, 2009 at 12:45
Generating a template form to do that in Lift is trivial. Assuming we had a
default template for the Lift app already set up:
lift:surround with=default at=content
form action=j_security_check method=POST
input type=text name=j_username
input type=password name=j_password
input
Hi,
Everything said here pretty much covers it. I just want to say the
HTTP authentication has pretty much nothing to do with form based
authentication. Lift HTTP authentication is based on RFC 2617. Form
based authentication is something invented by J(2)EE JSR specs and J(2)
EE containers use
Further it's my understanding that the current crop of Scala books
assume you already have a working knowledge of java.
On Mar 26, 12:01 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Tue, Mar 24, 2009 at 9:35 PM, Randinn rand...@gmail.com wrote:
Are there any plans for some
Thinking on it further it seems I need to ask this of the Scala crowd.
My knowledge of programming is antiquated but I do not want to learn
Java just to un-learn parts of it Scala changes.
On Mar 26, 12:01 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Tue, Mar 24, 2009 at 9:35 PM,
I'm having a hard time visualizing how a Scala for absolute programming
newbs would look like.
But I'd believe that there could be a market for it.
On Wed, Mar 25, 2009 at 9:09 PM, Randinn rand...@gmail.com wrote:
Thinking on it further it seems I need to ask this of the Scala crowd.
My
Programming in Scala is not for absolute-never-programmed-before
beginners, but you don't need to know any Java to use it. You'll
probably have to learn a little bit of Java as you go along with Scala
anyway, but not much in my experience.
Chas.
Randinn wrote:
Thinking on it further it
On Wed, Mar 25, 2009 at 1:09 PM, Randinn rand...@gmail.com wrote:
Thinking on it further it seems I need to ask this of the Scala crowd.
My knowledge of programming is antiquated but I do not want to learn
Java just to un-learn parts of it Scala changes.
You can try Beginning Scala. I
Hi,
I want to dynamically generate images (actually a graph). I could
write a seperate servlet for this but I'd like easy access to the
Mapper classes and the logged in User etc so would prefer to write it
as a method in lift.
Is there a hook for this? I suppose I essentially want direct
Oddly enough, I'm working on code like this right now... I'll post what I
can.
On Wed, Mar 25, 2009 at 2:38 PM, Thomas Rynne thomas.ry...@gmail.comwrote:
Hi,
I want to dynamically generate images (actually a graph). I could
write a seperate servlet for this but I'd like easy access to the
Check out our JFreeChart graphing class in PocketChange:
http://github.com/tjweir/pocketchangeapp/blob/903ae91ab2787aebd9a94a5439a7e39a9386bcdb/PocketChange/src/main/scala/com/pocketchangeapp/util/Charting.scala
And how it hooks into the request cycle in Boot:
If you'd like graphing, depending on your use case perhaps check out
the flot graph widget in lift-widgets
Sent from my iPhone
On 25 Mar 2009, at 21:38, Thomas Rynne thomas.ry...@gmail.com wrote:
Hi,
I want to dynamically generate images (actually a graph). I could
write a seperate
Here's some code to serve an image out of the database. Here's the Mapper
definition:
class Image extends LongKeyedMapper[Image] with IdPK {
def getSingleton = Image
object image extends MappedBinary(this)
object lookup extends MappedUniqueId(this, 32) {
override def dbIndexed_? =
58 matches
Mail list logo