Don't forget that if the lift filter is inspecting the request before
your servlet, you'll need to tell lift to pass it on. In boot:
LiftRules.passNotFoundToChain = true
chris
sunanda wrote:
> Hi David,
>
> Thank for all the help so far.
>
> My lift application needs to coexist with the s
Does mvn dependency:tree help?
chris
David Pollak wrote:
> Folks,
>
> I've narrowed down part of the slowness problem. There's a reference to
> javax.script:script-js that's never satisfied.
>
> How can I track down what is including this reference or alternatively
> blacklist the particular
ttributes from the template as is.
> This is in addition to being able to pass attributes to many SHtml methods;
> being able to add attributes to the returned NodeSeq; binding on attributes;
> and attribute snippets.
>
> ---------
> Chris Lewis wrote:
>
Hello list,
I was looking for a way to attach elements to form inputs (via
DOM id), and I came across this thread:
http://www.mail-archive.com/liftweb@googlegroups.com/msg04821.html
This suggests that bind points, when expanded, result in elements that
have any attribute under the bind point
I'm writing an app to deploy to googele app engine, and so I'm using
JPA. Here are the cons I've encountered:
1) JPA mandates conventions on model class code. In scala this usually
means any persistent fields are public vars, which is theoretically
dangerous (and generally frowned upon). I pers
No, CascadeType.ALL should work as expected. By chance does replacing
the use of Model.persist with Model.mergeAndFlush work as you'd expected?
Warren Strange wrote:
> OK, I think I fixed my problem
>
> I did not call Model.persist on my linked child object. I thought the
> cascade = ALL would t
I'm not sure what you mean exactly. If you have a link on a page that
wants to open in a new window, just specify that in the template html:
Home
If you're wanting to wire up some ajax behavior to fire when a link is
click and then open a window, you have several options. Here's one:
the snipp
passed what it had to offer. I was
sorely wrong.
Thanks again,
Chris Lewis
David Pollak wrote:
> Folks,
>
> I've been doing Scala for three years as of today. I wrote a blog post
> about it:
> http://blog.lostlake.org/index.php?/archives/97-Happy-3rd-Anniversay.html
>
y
good way to handle the common-edit-dialog problem, and certainly the
cleanest I've seen yet. I wonder though, is it intentional that bind
points work when not explicitly wrapped in a snippet call tag?
thanks!
chris
Jeppe Nejsum Madsen wrote:
> Chris Lewis writes:
>
>> Classic use
Classic use case: a user chooses to view/edit and object by clicking on
a link. This causes the app to fetch an edit view (form) and render it
asynchronously, probably rendering it as a modal dialog. To specify the
case a bit more, consider a table of like objects that allows you to
edit them (
I can't say I enjoy eclipse for scala code, but did you make sure your
project has the Scala Nature?
Oscar Picasso wrote:
> Hi,
>
> I did import a new created lift project in a eclipse as a maven project.
> The project is recognized as a scala project but there is neither syntax
> syntax highli
On a related note, I suggest that the lift community read through the
general Scala style guide proposed by Daniel Spiewak. Lift set a few
norms of its own; I'm wondering what the reaction of the core team might
be to some of the suggestions.
http://www.codecommit.com/scala-style-guide.pdf
si
Hello list,
Often in an AJAX handler I need to update something on the client side;
usually a UI control that initiated the handler. The only way I know to
handle this is to generate a DOM id in the snippet during a rendering
call (like a bind() call in a flatMap over a dataset), look for that
, and I agree Derek that it would be great to
> have this updated in the Archetype when you get a chance.
>
> Troy
>
> On Mon, Nov 2, 2009 at 11:55 AM, Derek Chen-Becker
> mailto:dchenbec...@gmail.com>> wrote:
>
> If updating the pom hibernate version fixes t
Troy,
I ran into the same problem. It seems to be a hibernate issue - that
archetype uses an older version of hibernate that breaks with mysql.
Change the version in your pom for hibernate (I don't remember the
latest, maybe 3.4GA). I meant to post this a while ago, as it cost me an
hour or m
Great suggestions - thanks guys!
Jeppe Nejsum Madsen wrote:
> Timothy Perrett writes:
>
>> Ah. In that case, does this help:
>>
>> Menu(Loc("Some", List("some","page"), "Some",
>>EarlyResponse(() => {
>> // do some response here,
>> // return Empty if you dont wan
jlist9 wrote:
> It's often hard to describe some (I'd say most) of the Scala syntax
> if you want to search for an answer online.
I can't relate with that. I've been coding scala for 3-4 months, and
I've never had any problem finding method definitions. Most of this
probably had to do with th
My head just exploded. Twice.
ngocdaothanh wrote:
> Because Lift's ad is so good.
*boom*
For example:
>
> "Lift is the only new framework in the last four years to offer fresh
> and innovative approaches to web development. It's not just some
> incremental improvements over the status quo, i
you are rewriting to already has (or has
> not) been allowed access via sitemap.
>
> Sounds like your trying to add rewritten URLs to your sitemap?
>
> Cheers, Tim
>
> PS: Jeppe, thanks for the link recycling!!
>
> On 23 Oct 2009, at 16:43, Chris Lewis wrote:
>
>
hes a page in the SiteMap?
Jeppe Nejsum Madsen wrote:
> Chris Lewis writes:
>
>> Hi list,
>>
>> I'm working on an appengine app, and need to store some user
>> information. I authenticate the user with their google account, and I
>> need to create
bob wrote:
> i believe that one of the best ways to learn a new programming
> language is to read software written in it
>
> when reading Scala code, I rarely say "i don't understand how that
> works" and when I do, there's usually a good explanation of it
> somewhere on the web.
>
> usually I
I *think* you're referring to a thread I started some time ago:
http://www.nabble.com/functional-newbie,-domain-entities-td22957479.html
It turned out to be a lively discussion. On a related note, Jonas Boner
gisted this in August:
http://gist.github.com/173921
It's not full code, but it gi
Hi list,
I'm working on an appengine app, and need to store some user
information. I authenticate the user with their google account, and I
need to create their "local" entity only if it's their first time
logging in.
When a user logs in via google, they are redirected back to your app, to
a
Maven stores artifacts in your local repository, which by default is in
~/.m2/repository.
jli...@gmail.com wrote:
> Hello Indrajit and those who replied, thanks for all your help.
> Finally I got it working. It probably had something to do with
> the proxy in my work environment.
>
> BTW, do yo
It has nothing to do with lift, but the servlet container. "jsessionid"
is a specified standard, and appending it I *think* is part of the
mandate when implementing the servlet api. That is to say, the automatic
appending will probably occur on any servlet container. Google around
and you'll f
javax.script
glenn wrote:
> I think the trick to a really vibrant CMS is the ability to create
> plugins - modules in
> Lift that can be dynamically installed. I'm not sure how to affect
> this except through
> OSGi.
>
> On Aug 19, 8:55 am, TylerWeir wrote:
>> Wonderful!
>>
>> On Aug 19, 11:03
Charles F. Munat wrote:
> It's not the AS, it's the souped-up Tomcat (JBoss Web). All their
> examples are WARs. But sure, send an EAR along, Mr. Van Gogh.
nice.
>
> Chas.
>
> Derek Chen-Becker wrote:
>> Also, if you're loading this up in JBoss, it might make more sense to
>> bundle the ar
Timothy Perrett wrote:
> Chris,
>
> I read your comments with interest - just to clarify, are you against
> changing code / would prefer a configuration file? I sort of got that
> vibe from some of your posts... Personally, im not down with
> configuration files and prefer code that configures
Jeppe Nejsum Madsen wrote:
> Chris Lewis writes:
>
>> Take a payment service example. I start off with PayPal and some
>> months later I switch my processor to CyberSource. I don't want to tie
>> the snippet to a specific processor, so my mind, transposing jav
tenance headache - I feel like I'm
missing your point here. I get the answer to "mocking" lift internals,
but hot-swapping service implementations without incurring a maintenance
hit is still unclear. Thanks again!
sincerely,
chris
David Pollak wrote:
>
>
David,
I'm still investigating options, but I wanted to restate my main issue
simply. It is the requirement snippets have on global data; that is it.
The way they receive data from and expose data to templates is really
nice. However, without the use of global objects (including lift
infrastr
r. Maybe that's too dirty, but
I'm just thinking of possibilities.
thanks again,
chris
David Pollak wrote:
>
>
> On Sun, Aug 30, 2009 at 8:21 AM, Chris Lewis <mailto:burningodzi...@gmail.com>> wrote:
>
>
> Thanks David,
>
> That does hel
al execution I'm not sure where you can plug something in.
I'd still love to hear more thoughts, and if this method could be at all
usable.
sincerely,
chris
Jeppe Nejsum Madsen wrote:
> Chris Lewis writes:
>
>> I am specifically talking about decoupling my web logic, ie,
there are chances for the application to use a
> different persistence mechanism then say JDBC. But many application
> don't really need such a rigorous decoupling so using mapper/record
> from snippets makes a lot of sense.
>
> Br's,
> Marius
>
> On Aug 30, 6:2
I like the Lift framework. It has its rough edges, but it's a great way
to get into web app development using scala. It borrows many good ideas
from other frameworks, most notably its convention over configuration
structure (rails) and its scriptless view layer (wicket).
One thing I'm not a bi
which ultimately
stores keyed objects on the session, right?
Thanks again for your dedication and commitment to the lift community.
chris
David Pollak wrote:
>
>
> On Thu, Aug 27, 2009 at 6:42 PM, Chris Lewis <mailto:burningodzi...@gmail.com>> wrote:
>
>
> Lift
>>
>> See /examples/http-authentication application.
>>
>> As far as Mapper goes it has a built in ProtoUser implementation for
>> login, registration, forgot password etc.
>>
>> Br's,
>> Marius
>>
>> On Aug 28, 4:42 am, Chris Lewis wrote
Lift users,
I'm curious what you all are using for user access control (Mapper users
excluded). I'm seriously evaluating lift for a project that will use
JPA. My full time job uses Spring Security, which while nice in that it
stays out of the way, is too clunky for my tastes. I haven't disse
I did use an archetype, but it was a 1.0 and must have been the
bare-bones (there were no models generated).
David Pollak wrote:
>
>
> On Wed, Jul 15, 2009 at 3:17 AM, Chris Lewis <mailto:burningodzi...@gmail.com>> wrote:
>
>
> I didn't, but I'd b
,
chris
David Pollak wrote:
>
>
> On Tue, Jul 14, 2009 at 3:32 PM, Chris Lewis <mailto:burningodzi...@gmail.com>> wrote:
>
>
> I guess the first question I should have asked is how do I go about
> logging a user in. I have my user model, which now mixes
l content.
And because they're XML docs, FF is rendering XML. I'm only assuming
those templates surround their content at "content" (as they do in the
1_1 example). I don't think this is a 1.0 issue, but it's possible.
thanks
chris
David Pollak wrote:
>
&
o I turn this off?
>
>
> Upgrade based on the fix I just checked in. :-)
>
>
>
>
>
> On Jul 14, 4:02 am, Chris Lewis <mailto:burningodzi...@gmail.com>> wrote:
> > Too easy! Thanks for the help David - I'll msg the channel when
&g
Too easy! Thanks for the help David - I'll msg the channel when the app
is on github. Fine job with Lift - it's been a joy so far!
David Pollak wrote:
>
>
> On Mon, Jul 13, 2009 at 8:57 PM, Chris Lewis <mailto:burningodzi...@gmail.com>> wrote:
>
>
>
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 tests if the user is logged in and will not
> disp
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
45 matches
Mail list logo