[Lift] Re: HTTP Authentication Example

2008-11-25 Thread Derek Chen-Becker
I just noticed your commit today with this stuff. Looks great! I like the hook in LiftRules :) Derek On Sat, Nov 22, 2008 at 3:50 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote: I like partial functions :) The really nice thing is that you can use matching. Looks good! Derek On Sat, Nov 22

[Lift] Re: WAS [Lift committers] Re: Adding JPA scaffolding to lift?

2008-11-25 Thread Derek Chen-Becker
providers. What doyou think Derek? Sorry, that email turned out to get mangled. Basically, there are a couple of good solutions available. :) On Tue, Nov 25, 2008 at 10:12 PM, Derek Chen-Becker [EMAIL PROTECTED] wrote: That's a very interesting idea. It's been a long time since I've

[Lift] MetaRecord.asHtml

2008-11-23 Thread Derek Chen-Becker
I'm writing up the chapter on Record right now (nothing like a moving target!) and I just wanted to confirm that the MetaRecord.asHtml is really intended to default to NodeSeq.Empty. Since there's a default template for form generation it seemed a little strange that there isn't a default for

[Lift] Re: HTTP Authentication Example

2008-11-22 Thread Derek Chen-Becker
that stuff, and b) using objects rather than class / case class. I'll noodle this a bit more, but if you have any input that would be awesome. Cheers, Tim On Nov 22, 5:58 am, Derek Chen-Becker [EMAIL PROTECTED] wrote: On second thought the PasswordLookup should really be an authentication

[Lift] Re: HTTP Authentication Example

2008-11-22 Thread Derek Chen-Becker
I like partial functions :) The really nice thing is that you can use matching. Looks good! Derek On Sat, Nov 22, 2008 at 7:47 AM, Tim Perrett [EMAIL PROTECTED] wrote: Ok, i've refactored a whole bunch of stuff. I used a partial function :-) All a user need to now is something like:

[Lift] Re: HTTP Authentication Example

2008-11-21 Thread Derek Chen-Becker
I'm getting a type mismatch, so I assume that's what you mean by dispatching code. It almost looks like you're mixing up object and class apply semantics, since your call looks like case r @ Req(badger :: Nil, , _) = new SimpleHttpBasicAuth(r){ PlainTextResponse(DFGDF) } The

[Lift] Strange behavior for /index.html

2008-11-21 Thread Derek Chen-Becker
I may be missing something here, but when I browse to the root of my webapp context: http://foo.com/context/ I get served up the index.html template *unprocessed*. If I use the full URL instead: http://foo.com/context/index I get the processed template. The only thing I did was add a SiteMap

[Lift] Re: [scala] [ANN] Lift nightlies upgraded to Scala 2.7.2

2008-11-17 Thread Derek Chen-Becker
That's great! On Mon, Nov 17, 2008 at 12:00 PM, David Pollak [EMAIL PROTECTED] wrote: On Mon, Nov 17, 2008 at 10:58 AM, Jorge Ortiz [EMAIL PROTECTED]wrote: I've just upgraded Lift's trunk to work with the newest release of Scala (2.7.2), Specs (1.4.0), and Scalacheck (1.5). These changes

[Lift] Re: Tracking Down a Memory Leak

2008-11-17 Thread Derek Chen-Becker
Off the top of my head, VisualVM (https://visualvm.dev.java.net/) may help you narrow it down a little. The profiler portion should be able to dump lots of memory info so you can see what is being allocated and by which objects. The Netbeans profiler is supposed to be pretty good, too, but I

[Lift] Re: Recommended tools ?

2008-11-16 Thread Derek Chen-Becker
... -Josh On Sat, Nov 15, 2008 at 7:20 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote: Out of curiosity, how does Netbeans handle Maven projects, particularly ones with nested modules? The most recent Eclipse plugin still has some warts, but it generally seems to work OK if I set up

[Lift] Re: Recommended tools ?

2008-11-15 Thread Derek Chen-Becker
Out of curiosity, how does Netbeans handle Maven projects, particularly ones with nested modules? The most recent Eclipse plugin still has some warts, but it generally seems to work OK if I set up the .classpath file properly to point at all of the source folders. Thanks, Derek On Sat, Nov 15,

[Lift] Re: Lift Record Field

2008-11-15 Thread Derek Chen-Becker
That's funny, I just checked out the wip-record2-dpp branch this morning to start looking at it :) So far, I really like what I see. I would agree with Tim on calling it Persistable... vs DB... but otherwise it's looking very good. If I have some time this week I might start looking at how to meld

[Lift] Re: Encrypting user passwords with Jasypt and JPA

2008-10-28 Thread Derek Chen-Becker
SecurityHelpers is what I was referring to before when I said I copied what was in Mapper. It uses the helpers for random strings, hash, crypto, etc. Derek On Mon, Oct 27, 2008 at 10:25 PM, efleming969 [EMAIL PROTECTED] wrote: There is also SecurityHelpers which has some of this included.

[Lift] Re: Encrypting user passwords with Jasypt and JPA

2008-10-28 Thread Derek Chen-Becker
No worries. I don't think I made it clear enough in my original comment. Thanks for clarifying :) Derek On Tue, Oct 28, 2008 at 1:02 PM, Erick Fleming [EMAIL PROTECTED]wrote: @Derek, Sorry after reading through the posts I forgot you metioned it.

[Lift] Re: Dynamically adding fields to a form

2008-10-27 Thread Derek Chen-Becker
is the best approach. You can add arbitrary client fields and as long as there's a server-side JSON handler for the given field, you're golden. On Mon, Oct 27, 2008 at 2:48 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote: I was also wondering if you could use a JSON form and the associated

[Lift] Re: binding nested groups

2008-10-24 Thread Derek Chen-Becker
You should be able to do that with a combination of bind and chooseTemplate. For instance, your template could look like: ... lift:MySnippet.categories h1Categories/h1 categories:entries category:name/ category:links link:name/ /category:links /categories:entries

[Lift] Re: JPA and hiberated generated fields in Lift app

2008-10-24 Thread Derek Chen-Becker
add the triggers for me is beyond me. It's easier just to set them in the application, I think. Thanks for the help. Live and learn, I guess. Chas. Derek Chen-Becker wrote: Yeah, I think you want insertable to be true on the first one (just omit the insertable val

[Lift] Re: JPA and hiberated generated fields in Lift app

2008-10-24 Thread Derek Chen-Becker
Of course, that won't prevent whoever uses that class from manually changing them... On Fri, Oct 24, 2008 at 9:40 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote: It's a JPA annotation for lifecycle methods. There's a really nice chart explaining when they get called here: http

[Lift] Re: Lifecycle of a Lift Snippet Class

2008-10-22 Thread Derek Chen-Becker
On Wed, Oct 22, 2008 at 4:41 PM, David Pollak [EMAIL PROTECTED] wrote: Awesome! Couldn't have explained it better myself. I've learned from the master ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift

[Lift] Accessing SessionVars from inside a rewrite function?

2008-10-21 Thread Derek Chen-Becker
I could have sworn this had been covered recently on the list but I can't seem to find it. I'd like to have a rewrite function that checks to see if someone is logged in and in the proper role before allowing them to get to the page. I had wanted to do this using LiftRules.addRewriteBefore

[Lift] Re: Accessing SessionVars from inside a rewrite function?

2008-10-21 Thread Derek Chen-Becker
because the URL rewriting takes place before the sessionless dispatch is consulted. This happens before the session is retrieved/created and the regular flow happens. Access control on an HTML page level should be done in SiteMap. On Tue, Oct 21, 2008 at 1:00 PM, Derek Chen-Becker [EMAIL

[Lift] Re: Accessing SessionVars from inside a rewrite function?

2008-10-21 Thread Derek Chen-Becker
? Thanks, Derek On Tue, Oct 21, 2008 at 2:21 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote: OK, that makes sense. Sometimes when you have a hammer everything looks like a nail :) On Tue, Oct 21, 2008 at 2:05 PM, David Pollak [EMAIL PROTECTED] wrote: SessionVars are not available during

[Lift] Re: MIME Types?

2008-10-19 Thread Derek Chen-Becker
Google maps doesn't work with XHTML, so you have to tweak the Content-Type header using LiftRules.*determineContentType* from your Boot class*. *It takes a partial function so that you can make it specific to a single page: LiftRules.determineContentType = { case (Full(RequestState(view :: map

[Lift] Re: Preview form (JPA)

2008-10-18 Thread Derek Chen-Becker
Well, I've already checked in the code for keeping the object in the continuation instead of the ID on the wip-dc-jpa-jta branch of liftweb. I thought we had discussed this in a previous email. To get the object instead of the Id you just grab a val on the object and re-inject it with a hidden

[Lift] Re: Weird SessionVar behavior

2008-10-16 Thread Derek Chen-Becker
] ^ Also, it needs the () after the ?. This works: def isAuthenticated_?() = CurrentUserId.is.map((Long) = true) openOr false Thanks! Chas. Derek Chen-Becker wrote: Everything there looks kosher at first glance to me. SessionVars should stay in the session no matter

[Lift] Re: A stupid question

2008-10-15 Thread Derek Chen-Becker
Charles, to put this in the context of the JPA stuff I'm working on, here's the pattern I would use for, say, viewing an Author when I have a corresponding RequestVar: object passedAuthor extends RequestVar[Can[Author]](Empty) def view (xhtml : NodeSeq) : NodeSeq = passedAuthor.map({ author =

[Lift] Re: JPA questions (was Re: SnippetFailure)

2008-10-15 Thread Derek Chen-Becker
be the backbone of a native Scala reflection API (yay!) --j On Tue, Oct 14, 2008 at 6:13 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote: You can just do Model.find(classOf[User], userId) and the type on the method will be inferred. Any time you see a Class[A] parameter, it wants the result of a classOf

[Lift] Re: JPA questions (was Re: SnippetFailure)

2008-10-14 Thread Derek Chen-Becker
You can just do Model.find(classOf[User], userId) and the type on the method will be inferred. Any time you see a Class[A] parameter, it wants the result of a classOf[...]. Derek On Tue, Oct 14, 2008 at 5:52 PM, Charles F. Munat [EMAIL PROTECTED] wrote: A question from the JPADemo... How

[Lift] Re: SnippetFailure

2008-10-11 Thread Derek Chen-Becker
), Add a New Category, Hidden)) ), ANY suggestions for how to do any of this better greatly appreciated. Do I need to add the val dispatch... part? If so, why is this different from the JPADemo? Thanks! Chas. Derek Chen-Becker wrote: It means

[Lift] Re: SnippetFailure

2008-10-11 Thread Derek Chen-Becker
is not populated because category is a new Category, not the one from the database (I checked). Any ideas? Chas. Derek Chen-Becker wrote: OK, one thing I see in your code is that your editor snippet is emitting the form tag. You really shouldn't do it that way. The snippet tag should look

[Lift] Re: SnippetFailure

2008-10-10 Thread Derek Chen-Becker
It means that the dispatch function on whatever Stateful Snippet is being called isn't matching what you're asking it to provide. For instance, if your snippet tag looks like lift:MySnippet.add Then the dispatchPf in the MySnippet stateful snippet has to have a dispatch function like: val

[Lift] Re: Progress on JPADemo and JTA

2008-10-10 Thread Derek Chen-Becker
this weekend. Just let me know what branch to pull from. Kris On Fri, Oct 10, 2008 at 3:14 PM, Derek Chen-Becker [EMAIL PROTECTED] wrote: Well, I have it all working under Jetty using Atomikos as the underlying JTA provider. I'd like to test it out under JBoss and/or Glassfish before

[Lift] Re: Progress on JPADemo and JTA

2008-10-10 Thread Derek Chen-Becker
OK, if I do git checkout do I need to backup my changed files somewhere else? I've already made a lot of changes and I don't want to lose them. Thanks for the advice! Derek On Fri, Oct 10, 2008 at 3:43 PM, Martin Ellis [EMAIL PROTECTED] wrote: On Fri, Oct 10, 2008 at 10:37 PM, Derek Chen

[Lift] Re: Progress on JPADemo and JTA

2008-10-10 Thread Derek Chen-Becker
and searched but couldn't find anything concrete for TopLink. Please let me know if you run into any difficulties and hopefully we'll get this sorted out. Derek On Fri, Oct 10, 2008 at 4:04 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote: OK, done: http://github.com/dpp/liftweb/tree/wip-dcb-jpa-jta

[Lift] JPA Demo with JTA and JNDI

2008-10-09 Thread Derek Chen-Becker
I'm very close to getting this working. I can look up the EM via JNDI as well as the UserTransaction, but I'm getting a weird error with Atomikos: Message: java.lang.RuntimeException: Transaction Service Not Running? com.atomikos.icatch.jta.J2eeUserTransaction.checkSetup(Unknown Source)

[Lift] Re: Simple Build Tool

2008-10-08 Thread Derek Chen-Becker
) this is part of the version 2.8-SNAPSHOT, that should be released next week. /davidB On Mon, Oct 6, 2008 at 7:06 PM, Derek Chen-Becker [EMAIL PROTECTED] wrote: I agree on the Maven mojo programming. Anything to simplify custom build scripts would be great, so SBT sounds like

[Lift] Re: JPADemo weird disappearing boot

2008-10-08 Thread Derek Chen-Becker
. (But this is a hell week for me, so I don't know how far I'll get.) Chas. Derek Chen-Becker wrote: This is really, really strange, since what's in Git works fine for me here. Can you do me a favor and wipe your maven repository, re-pull from github, do a mvn clean and then see if it works? I just did

[Lift] Re: Simple Build Tool

2008-10-06 Thread Derek Chen-Becker
features? Cheers Tim On Oct 5, 11:33 pm, Derek Chen-Becker [EMAIL PROTECTED] wrote: There's no *requirement* to use all of the -D stuff. If you just do mvn -U archetype:generate you actually get a nice list of archetypes, two of which are: 31: internal - lift-archetype-blank

[Lift] Re: Welcome Derek to the Lift committers

2008-10-06 Thread Derek Chen-Becker
Klang [EMAIL PROTECTED]wrote: Welcome aboard, ol' chap! On Mon, Oct 6, 2008 at 8:44 PM, Jorge Ortiz [EMAIL PROTECTED] wrote: Awesome! On Mon, Oct 6, 2008 at 10:12 AM, David Pollak [EMAIL PROTECTED] wrote: Folks, Derek Chen-Becker has just joined the Lift committers. One might ask What

[Lift] Re: Simple Build Tool

2008-10-05 Thread Derek Chen-Becker
There's no *requirement* to use all of the -D stuff. If you just do mvn -U archetype:generate you actually get a nice list of archetypes, two of which are: 31: internal - lift-archetype-blank (A blank/empty liftweb project) 32: internal - lift-archetype-basic (The basic (liftweb) project) If

[Lift] New JPA Demo version

2008-10-03 Thread Derek Chen-Becker
I added in Oliver's UserType support for enums and some utility methods on the Model object (wrapEM). I didn't have time this week to work on getting JNDI and JTA to work in Jetty, but hopefully next week will be slightly less crazy. Derek --~--~-~--~~~---~--~~

[Lift] Re: JPA and enumerations

2008-10-02 Thread Derek Chen-Becker
, 2008 at 11:07 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote: OK, I've run into problems again now that I'm trying to actually use the enumerations. In my book class I have the variable defined as: @Type{val `type` = com.foo.jpaweb.model.GenreType} var genre = Genre.unknown Enumv.Value(name

[Lift] Re: Change and New Features

2008-10-01 Thread Derek Chen-Becker
Dude, when are you not working? :) Seriously, though, very cool. Derek On Tue, Sep 30, 2008 at 5:50 PM, David Pollak [EMAIL PROTECTED] wrote: Folks, I've moved the JavaScript for Comet and Ajax to separately loaded JS files rather than putting them on the page. LiftRules.autoIncludeComet

[Lift] Re: Suggestion for JPA Tutorial

2008-10-01 Thread Derek Chen-Becker
) = if (re.getCause() == null) { (re,No cause) } else { (re.getCause(), re.getCause().getMessage()) } this.error(EM Commit error: {}, message) this.error(Full trace, re) handler(cause) } } } On Tue, Sep 30, 2008 at 5:25 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote

[Lift] Re: JPA and enumerations

2008-10-01 Thread Derek Chen-Becker
, Sep 22, 2008 at 8:29 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote: Looks good. In keeping with the theme of a Library catalog I'm going to rework Gender as Genre and add things like Mystery, Horror, Comedy, Childrens' , etc. I think I can just put the Money on as a purchase price. Thanks

[Lift] Re: Suggestion for JPA Tutorial

2008-09-30 Thread Derek Chen-Becker
I may have some time tomorrow to get it working. My initial goal is actually to get JNDI and JTA working in Jetty so that we have a dev environment that matches the production env. Derek On Tue, Sep 30, 2008 at 5:01 PM, Tim Perrett [EMAIL PROTECTED] wrote: Awesome - I personally would be very

[Lift] Re: JPA many-to-many deletion

2008-09-29 Thread Derek Chen-Becker
:48 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote: Argh! Stupid gmail hotkeys... Here's what I wanted to say: class Student { // ... everything else up here ... @ManyToMany{ val targetEntity = classOf[Course] } var courses : java.util.Set[Course] = new java.util.HashSet[Course] } class

[Lift] LiftRules.useXhtmlMimeType got lost...

2008-09-27 Thread Derek Chen-Becker
Back in this commit: http://github.com/dpp/liftweb/commit/645d9649a5956f0b67edbe8ded4d1b0136164980 If the intention is for LiftRules.determineContentType to be the sole arbiter of the Content-Type header, we should probably remove and/or deprecate LiftRules.useXhtmlMimeType. Otherwise, the

[Lift] Re: mixin javascript call

2008-09-26 Thread Derek Chen-Becker
I hope it was pleasant :) On Fri, Sep 26, 2008 at 4:12 AM, Oliver Lambert [EMAIL PROTECTED] wrote: Forget that - brain had gone for a holiday. On 26/09/2008, at 12:04 PM, Oliver wrote: Hi Say I want to have a onMouseOver call a javascript function - How? // this doesnt work - I want to

[Lift] Re: Image Submit Buttons fail to Submit (in IE)

2008-09-26 Thread Derek Chen-Becker
Not the most popular option out there but I generally detect IE6 from the agent string and redirect to the Get Firefox page ;) On Fri, Sep 26, 2008 at 3:51 AM, Marius [EMAIL PROTECTED] wrote: Charles ... this is not only about JS level. One may simply click a link or submit a simple form

[Lift] Re: Image Submit Buttons fail to Submit (in IE)

2008-09-25 Thread Derek Chen-Becker
jQuery has the jquery.browser and other user agent methods (under the utilities section of the docs: http://docs.jquery.com/Utilities). If that's not enough, there's this under the MIT license: http://davecardwell.co.uk/javascript/jquery/plugins/jquery-browserdetect/ Derek On Thu, Sep 25, 2008

[Lift] Re: Image Submit Buttons fail to Submit (in IE)

2008-09-25 Thread Derek Chen-Becker
Duh. I should stop posting before 7am. On Thu, Sep 25, 2008 at 9:27 AM, David Pollak [EMAIL PROTECTED] wrote: On Thu, Sep 25, 2008 at 6:05 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote: jQuery has the jquery.browser and other user agent methods (under the utilities section of the docs

[Lift] Passing data with JsonHandler?

2008-09-24 Thread Derek Chen-Becker
Hi, I was looking over the JsonHandler stuff and it looks pretty interesting. I thought I'd try it out for a member add page on my latest project, but I can't figure out how to pass state through the snippet. Basically, I have a Team object that I want to add coaches (Member objects) to. I was

[Lift] Re: Making Record a reality [was: Validations, Server side controls etc]

2008-09-23 Thread Derek Chen-Becker
If you want to tell them to enter a value, I'm sure that you could write (if it doesn't already exist) a notEmpty validation that would say the right thing and do something like: val validations = notEmpty(You must provide an email address) _ :: valRegex(... Derek On Tue, Sep 23, 2008 at 9:41

[Lift] Re: HTTP Client?

2008-09-23 Thread Derek Chen-Becker
Tim, you rock :) On Tue, Sep 23, 2008 at 10:29 AM, Tim Perrett [EMAIL PROTECTED] wrote: Hey guys, Ok, i've abstracted it all out into a class which you call a little like this: var paypal: PayPal = new PayPal(sandbox) paypal.transactionToken = S.param(tx).openOr()

[Lift] Re: JPA demo overwrites attributes

2008-09-17 Thread Derek Chen-Becker
What I do in my code is add a member object to the session to indicate whether it's logged in: object currentUserObjVar extends SessionVar[Can[Member]](Empty) def currentUserObj = currentUserObjVar.is def currentUsername = currentUserObj map {_.userId} openOr Not logged in def

[Lift] Re: Deprecations / compilation failure on 0.10-SNAPSHOT

2008-09-17 Thread Derek Chen-Becker
I stand corrected :) On Wed, Sep 17, 2008 at 4:07 PM, Jorge Ortiz [EMAIL PROTECTED] wrote: Kris, There were no changes to the 'bind' function. What changed was the way in which BindParams (which bind takes as arguments) are generated. The deprecated code for generating BindParams (using

[Lift] Slightly newer version of JPA demo code

2008-09-17 Thread Derek Chen-Becker
See attached. Some minor tweaks. The biggest change was the refactoring and addition of some of the value-add methods on ScalaEntityManager. Derek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post

[Lift] Re: Caching JPA entities and JPA vs Hibernate

2008-09-16 Thread Derek Chen-Becker
You're probably on the right track, although I want to clarify: are the entity and its collections something that won't change often? Do you need transactional views on it (i.e. changes made by one session are immediately visible in others)? From your question about caching at Boot it sounds like

[Lift] Re: Lift, Jetty and OneJar

2008-09-16 Thread Derek Chen-Becker
Do you mean a JAR that you can just run, a la java -jar mywebapp.jar ? On Mon, Sep 15, 2008 at 5:25 PM, David Pollak [EMAIL PROTECTED] wrote: Folks, Has anyone built a Lift app that's deployable as a JAR file with Jetty as the container? Thanks, David

[Lift] Re: JPA Table annotation

2008-09-16 Thread Derek Chen-Becker
Technically you can drop the constructor parens as well so it looks like @Table{val name=roles} Derek On Mon, Sep 15, 2008 at 5:08 PM, Tim Perrett [EMAIL PROTECTED] wrote: Chas, Change you annotation to this: @Table(){val name=roles} Scrap the xml attribute, then it will work no

[Lift] Re: Caching JPA entities and JPA vs Hibernate

2008-09-16 Thread Derek Chen-Becker
Cool. For now I'd say just load it once, although you might want to make your own object to manage it. You could easily make it a lazy var for now and turn it into a synchronized def later if you need flush behavior. Derek On Tue, Sep 16, 2008 at 6:59 AM, Tim Perrett [EMAIL PROTECTED] wrote:

[Lift] Re: Template questions

2008-09-12 Thread Derek Chen-Becker
)) and foo.bar has the potential to return null, what is the best practice for safely handling this without cluttering the code too much (since Text will throw an exception if passed a null in the constructor)? Thanks, Kris On Wed, Sep 10, 2008 at 2:28 PM, Derek Chen-Becker [EMAIL PROTECTED

[Lift] Re: Desiderata. Was: Re: [Lift] Re: RBAC in Lift

2008-09-12 Thread Derek Chen-Becker
You can get the human-readable pages via the LiftRules.addDispatch... methods. They take a partial function which uses a RequestMatcher to determine which handler to use for a particular request. In the process, you can use Scala's List wildcarding to extract parts of the URL that was passed in.

[Lift] Re: [scala] A Lift and Scala presentation at SAP TechEd

2008-09-12 Thread Derek Chen-Becker
Great presentation! It's really exciting to be a part of this community :) Derek On Fri, Sep 12, 2008 at 1:26 AM, Viktor Klang [EMAIL PROTECTED]wrote: Excellent stuff David! Gonna show it to some people today :) Cheers! Viktor On Thu, Sep 11, 2008 at 11:16 PM, David Pollak [EMAIL

[Lift] Re: Desiderata. Was: Re: [Lift] Re: RBAC in Lift

2008-09-12 Thread Derek Chen-Becker
[EMAIL PROTECTED] wrote: Indeed - just reading this thread back and not quite understanding why its *not* possible to friendly urls in lift its very easy as derek points out. Check out: http://liftweb.net/index.php/UrlRewriting Tim On Sep 12, 2:17 pm, Derek Chen-Becker [EMAIL PROTECTED

[Lift] Re: One further: JPA + JTA + Lift

2008-09-10 Thread Derek Chen-Becker
Thanks for pointing that out. I usually use JTA-enabled datasources so I don't muck around with UserTransaction directly that much. Derek On Wed, Sep 10, 2008 at 2:23 PM, Martin Ellis [EMAIL PROTECTED] wrote: On Wed, Sep 10, 2008 at 4:27 PM, Kris Nuttycombe [EMAIL PROTECTED] wrote: The

[Lift] Re: JPA w/Scala

2008-09-09 Thread Derek Chen-Becker
Looks like I missed a lot in the two days I was gone :). I'm going to look at Oliver's code and merge it. As for Tim's problem with the insertions, the AUTO ID generation should usually just work. I don't have a SQL Server instance to try it out on, but after I merge the code I'll test it again

[Lift] Re: JPA w/Scala

2008-09-09 Thread Derek Chen-Becker
changed the module naming per Oliver's suggestion. I'll test against the other DBs this afternoon, but so far I've had no issues with HSQLDB. Derek On Tue, Sep 9, 2008 at 8:35 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote: Looks like I missed a lot in the two days I was gone :). I'm going

[Lift] Re: One further: JPA + JTA + Lift

2008-09-09 Thread Derek Chen-Becker
I'm pretty sure that the RequestVar should be around for the life of the Lift session, which means that you should still have a valid lift session in *any* snippet that would get called. Viktor's correct that this is a common error that people run into with JPA, but it's usually because they're

[Lift] Re: lift tags not replace (new JPA tutorial)

2008-09-06 Thread Derek Chen-Becker
Actually, just / fails to process the index.html file. It just returns the raw XML. I didn't know about that recommendation, but it seems in this case that something else is going on. Derek On Sat, Sep 6, 2008 at 7:59 AM, David Pollak [EMAIL PROTECTED] wrote: Are you making a request on

[Lift] Re: lift tags not replace (new JPA tutorial)

2008-09-06 Thread Derek Chen-Becker
On Sat, Sep 6, 2008 at 8:14 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote: Actually, just / fails to process the index.html file. It just returns the raw XML. I didn't know about that recommendation, but it seems in this case that something else is going on. Derek On Sat, Sep 6, 2008 at 7:59

[Lift] Re: lift tags not replace (new JPA tutorial)

2008-09-06 Thread Derek Chen-Becker
Thanks, I'll add that in. You can also craft a link so that entire subdirectory trees are permitted based on matching the head of the list. Derek On Sat, Sep 6, 2008 at 6:57 PM, Tim Perrett [EMAIL PROTECTED] wrote: Oh yes of course! Ergo, the sitemap should be: val entries =

[Lift] Re: Problems with persistence context (Lift/JPA)

2008-09-04 Thread Derek Chen-Becker
at 9:20 AM, Kris Nuttycombe [EMAIL PROTECTED]wrote: On Wed, Sep 3, 2008 at 4:12 PM, Derek Chen-Becker [EMAIL PROTECTED] wrote: Technically, no. I use the Model object to also hold some implicit defs for converting java.util collections into their Scala counterparts to make some

[Lift] Re: JPA w/Scala - never mind

2008-09-03 Thread Derek Chen-Becker
Sorry I didn't get back to you on that. I'm working on an improved version of the tutorial to include a complete example but it's dependent on 0.10-SNAPSHOT right now. As soon as 0.10 goes GA I'll revise the tutorial page. Derek On Tue, Sep 2, 2008 at 8:35 PM, Charles F. Munat [EMAIL PROTECTED]

<    4   5   6   7   8   9